SMRTS03400_당직등록현황조회.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>당직등록현황</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <ngdt>
  11. <ngdtlist/>
  12. </ngdt>
  13. <ngdtconfirm>
  14. <ngdtconfirmlist/>
  15. </ngdtconfirm>
  16. </main>
  17. <hidden>
  18. </hidden>
  19. <temp>
  20. </temp>
  21. <init/>
  22. <send>
  23. <req>
  24. <instcd/>
  25. <state/>
  26. <ngdtym/>
  27. </req>
  28. <save>
  29. <ngdtlist/>
  30. <ngdtconfirmlist/>
  31. </save>
  32. </send>
  33. </root>
  34. </instance>
  35. <script type="javascript" ev:event="xforms-ready">
  36. <![CDATA[
  37. //사용자 권한
  38. fCheckAuth();
  39. misfGridInit(grd_ngdtlist);
  40. misfMsterDetailSet(grd_ngdtlist, null, "TRRTS03401", "Y");
  41. rszfGetLabelControlComboList("R0314", "cmb_instcd", "detldesc");
  42. var dutplceinstcd = getUserInfo("dutplceinstcd");
  43. model.setValue("/root/send/req/instcd", dutplceinstcd);
  44. misfComboComCdListMulti("R0375", "cmb_state");
  45. addComboItem( "cmb_state", "전체", "", "above");
  46. model.setValue(cmb_state.attribute("ref"), "");
  47. var today = getCurrentDate();
  48. var cur_yymm = parseInt(today.substring(0,6));
  49. model.setValue("/root/send/req/ngdtym", cur_yymm);
  50. if (dutplceinstcd == "001" && getUserInfo("dutplcecd") == "4110100000") {
  51. cmb_instcd.disabled = false;
  52. }else{
  53. cmb_instcd.disabled = true;
  54. }
  55. model.refresh();
  56. ]]>
  57. </script>
  58. <submission id="TRRTS00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdept" resultref="/root/main/ngdtcdlist"/>
  59. <bind id="bind1" ref="/root/main/ngdtamt/ngdtamtlist/ngdtamt" calculate="../weekno * 20000 + ../holino * 40000"/>
  60. <submission id="TRRTS03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/ngdt"/>
  61. <submission id="TXRTS03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root"/>
  62. <submission id="TXRTS03402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root"/>
  63. </model>
  64. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  68. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  69. <script type="javascript" src="../../../mis/tistrngeducplanmngtweb/js/SMRTS00600.js"/>
  70. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  71. <script type="javascript">
  72. <![CDATA[
  73. function confirmNgdtState(mode){
  74. var trngteamcnfmyn;
  75. misfGridInit(grd_ngdtconfirmlist);
  76. misfMsterDetailSet(grd_ngdtconfirmlist, null, "TXRTS03401", "Y");
  77. for(var i = grd_ngdtlist.fixedRows; i < grd_ngdtlist.rows; i++){
  78. if(grd_ngdtlist.valueMatrix(i, grd_ngdtlist.colRef("confirm")) == "Y"){
  79. trngteamcnfmyn = grd_ngdtlist.valueMatrix(i, grd_ngdtlist.colRef("trngteamcnfmyn"));
  80. if(mode == 'C'){
  81. if(trngteamcnfmyn == 'Y') {
  82. messageBox(grd_ngdtlist.valueMatrix(i, grd_ngdtlist.colRef('deptnm'))+" 는 확정된 상태입니다.", "");
  83. return false;
  84. }
  85. }else if(mode == 'D'){
  86. if(trngteamcnfmyn == 'N') {
  87. messageBox(grd_ngdtlist.valueMatrix(i, grd_ngdtlist.colRef('deptnm'))+" 는 확정된 상태가 아닙니다.", "");
  88. return false;
  89. }
  90. }
  91. misfGridIUD(grd_ngdtconfirmlist, "A");
  92. grd_ngdtconfirmlist.valueMatrix(grd_ngdtconfirmlist.row, grd_ngdtconfirmlist.colRef("chk")) = 'Y';
  93. grd_ngdtconfirmlist.valueMatrix(grd_ngdtconfirmlist.row, grd_ngdtconfirmlist.colRef("instcd")) = grd_ngdtlist.valueMatrix(i, grd_ngdtlist.colRef("instcd"));
  94. grd_ngdtconfirmlist.valueMatrix(grd_ngdtconfirmlist.row, grd_ngdtconfirmlist.colRef("deptcd")) = grd_ngdtlist.valueMatrix(i, grd_ngdtlist.colRef("deptcd"));
  95. grd_ngdtconfirmlist.valueMatrix(grd_ngdtconfirmlist.row, grd_ngdtconfirmlist.colRef("ngdtym")) = model.getValue("/root/send/req/ngdtym");
  96. grd_ngdtconfirmlist.valueMatrix(grd_ngdtconfirmlist.row, grd_ngdtconfirmlist.colRef("mode")) = mode;
  97. grd_ngdtconfirmlist.valueMatrix(grd_ngdtconfirmlist.row, grd_ngdtconfirmlist.colRef("orddeptcd")) = grd_ngdtlist.valueMatrix(i, grd_ngdtlist.colRef("orddeptcd"));
  98. }
  99. }
  100. misfSave("TXRTS03401");
  101. }
  102. ]]>
  103. </script>
  104. </xhtml:head>
  105. <xhtml:body>
  106. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  107. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">임상과별 당직 등록 현황</caption>
  108. </group>
  109. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  110. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1195px; height:36px; background-color:#fffbf2; border-color:#ffd799; "/>
  111. <caption id="cap_yy" class="search_name" style="left:5px; top:15px; width:60px; height:17px; ">년월 :</caption>
  112. <datagrid id="grd_ngdtlist" nodeset="/root/main/ngdt/ngdtlist" caption="임상과^상태^선택^의국장^의국장^bp^핸드폰^deptcd^trngteamcnfmyn^partcd^instcd^statecd|임상과^상태^선택^사번^성명^bp^핸드폰^deptcd^trngteamcnfmyn^partcd^instcd^statecd" colsep="^" colwidth="388, 188, 56, 119, 115, 137, 148, 100, 100, 100, 100, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:70px; width:1190px; height:670px; ">
  113. <col ref="deptnm" type="output">
  114. <choices>
  115. <itemset>
  116. <label/>
  117. <value/>
  118. </itemset>
  119. </choices>
  120. </col>
  121. <col ref="state" type="output"/>
  122. <col checkvalue="Y,N" ref="confirm" type="checkbox"/>
  123. <col ref="emplno" type="output" style="text-align:center; "/>
  124. <col ref="emplnm" style="text-align:center; "/>
  125. <col ref="bpno" style="text-align:center; "/>
  126. <col ref="mpphonno" style="text-align:center; "/>
  127. <col ref="deptcd" visibility="hidden"/>
  128. <col ref="trngteamcnfmyn" visibility="hidden"/>
  129. <col ref="partcd" visibility="hidden"/>
  130. <col ref="instcd" visibility="hidden"/>
  131. <col ref="statecd" visibility="hidden"/>
  132. <col ref="orddeptcd" visibility="hidden"/>
  133. <script type="javascript" ev:event="xforms-rebuild">
  134. <![CDATA[
  135. var statecd;
  136. for (var i = grd_ngdtlist.fixedRows; i<grd_ngdtlist.rows; i++) {
  137. grd_ngdtlist.cellAttribute("disabled",grd_ngdtlist.row, grd_ngdtlist.colRef("confirm")) = "true";
  138. statecd = grd_ngdtlist.valueMatrix(i, grd_ngdtlist.colRef("statecd"));
  139. if(statecd != '03' && statecd != '04' && statecd != '05'){
  140. grd_ngdtlist.cellAttribute("disabled",i, grd_ngdtlist.colRef("confirm")) = "true";
  141. }
  142. }
  143. ]]>
  144. </script>
  145. </datagrid>
  146. <button id="btn_search" class="btn1_letter2" style="left:1130px; top:12px; width:56px; height:22px; text-align:left; ">
  147. <caption>조회</caption>
  148. <script type="javascript" ev:event="DOMActivate">
  149. <![CDATA[
  150. submit("TRRTS03401");
  151. model.refresh();
  152. ]]>
  153. </script>
  154. </button>
  155. <line id="line82" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:36px; border-color:#ffe4bb; border-left-style:solid; "/>
  156. <line id="line1" class="line_1" style="x1:0px; y1:66px; x2:1190px; y2:67px; "/>
  157. <select1 id="cmb_instcd" ref="/root/send/req/instcd" class="combo_s_essential" disabled="false" appearance="minimal" style="left:295px; top:14px; width:148px; height:19px; ">
  158. <choices>
  159. <itemset>
  160. <label/>
  161. <value/>
  162. </itemset>
  163. </choices>
  164. </select1>
  165. <caption id="cap_instcd" class="search_name" style="left:209px; top:14px; width:94px; height:17px; ">근무병원 :</caption>
  166. <input id="ipt_ngdtym" ref="/root/send/req/ngdtym" inputtype="date" format="yyyy-mm" style="left:65px; top:14px; width:100px; height:19px; "/>
  167. <button id="btn_execl" class="btn2_letter4" style="left:1125px; top:45px; width:64px; height:19px; ">
  168. <caption>엑셀저장</caption>
  169. <script type="javascript" ev:event="DOMActivate">
  170. <![CDATA[
  171. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  172. if (fileName != "") {
  173. grd_ngdtlist.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:true;rowhiddenextend:false;exportfalsecols:0,0;col_1:value;");
  174. }
  175. ]]>
  176. </script>
  177. </button>
  178. <select1 id="cmb_state" ref="/root/send/req/state" class="combo_s_essential" disabled="false" appearance="minimal" style="left:560px; top:14px; width:148px; height:19px; ">
  179. <choices>
  180. <itemset>
  181. <label/>
  182. <value/>
  183. </itemset>
  184. </choices>
  185. </select1>
  186. <caption id="caption1" class="search_name" style="left:474px; top:14px; width:94px; height:17px; ">등록상태 :</caption>
  187. <button id="button4" class="btn2_letter4" style="left:969px; top:45px; width:64px; height:19px; ">
  188. <caption>전체선택</caption>
  189. <script type="javascript" ev:event="DOMActivate">
  190. <![CDATA[
  191. for (var i = grd_ngdtlist.fixedRows; i<grd_ngdtlist.rows; i++) {
  192. if(grd_ngdtlist.cellAttribute("disabled",i, grd_ngdtlist.colRef("confirm")) != "true")
  193. grd_ngdtlist.valueMatrix(i, grd_ngdtlist.colRef("confirm")) = 'Y';
  194. }
  195. ]]>
  196. </script>
  197. </button>
  198. <button id="button5" class="btn2_letter6" style="left:1035px; top:45px; width:86px; height:19px; ">
  199. <caption>전체선택취소</caption>
  200. <script type="javascript" ev:event="DOMActivate">
  201. <![CDATA[
  202. for (var i=grd_ngdtlist.fixedRows; i<grd_ngdtlist.rows; i++) {
  203. grd_ngdtlist.valueMatrix(i, grd_ngdtlist.colRef("confirm")) = 'N';
  204. }
  205. ]]>
  206. </script>
  207. </button>
  208. <datagrid id="grd_ngdtconfirmlist" nodeset="/root/main/ngdtconfirm/ngdtconfirmlist" visibility="hidden" caption="체크여부^instcd^deptcd^statecd^emplno^ngdtym" colsep="^" colwidth="30, 50, 70, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:135px; top:440px; width:390px; height:80px; ">
  209. <col ref="chk"/>
  210. <col ref="instcd"/>
  211. <col ref="deptcd"/>
  212. <col ref="ngdtym"/>
  213. <col ref="mode"/>
  214. <col ref="orddeptcd"/>
  215. <!--
  216. <col ref="statecd"/>
  217. <col ref="emplno"/>
  218. <col ref="partcd"/> -->
  219. </datagrid>
  220. </group>
  221. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  222. <button id="button9" class="btn4_letter5" style="left:982px; top:3px; width:92px; height:22px; text-align:left; ">
  223. <caption>수련팀확정</caption>
  224. <script type="javascript" ev:event="DOMActivate">
  225. <![CDATA[
  226. if ( !isRequiredControls("ipt_ngdtym", "cmb_instcd") ) {
  227. return false;
  228. }
  229. confirmNgdtState('C');
  230. btn_search.dispatch("DOMActivate");
  231. model.refresh();
  232. ]]>
  233. </script>
  234. </button>
  235. <button id="button10" class="btn4_letter7" style="left:1075px; top:3px; width:116px; height:22px; text-align:left; ">
  236. <caption>수련팀확정취소</caption>
  237. <script type="javascript" ev:event="DOMActivate">
  238. <![CDATA[
  239. if ( !isRequiredControls("ipt_ngdtym", "cmb_instcd") ) {
  240. return false;
  241. }
  242. confirmNgdtState('D');
  243. btn_search.dispatch("DOMActivate");
  244. model.refresh();
  245. ]]>
  246. </script>
  247. </button>
  248. </group>
  249. </xhtml:body>
  250. </xhtml:html>