SMRTS03500_당직스케쥴조회.xrw 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <ngdtschedule>
  11. <ngdtschedulelist/>
  12. </ngdtschedule>
  13. </main>
  14. <hidden>
  15. </hidden>
  16. <temp>
  17. </temp>
  18. <init>
  19. <systemflag>T</systemflag>
  20. </init>
  21. <send>
  22. <req>
  23. <deptcd/>
  24. <instcd/>
  25. <apprtcdrflag/>
  26. <ngdtymfrom/>
  27. <ngdtymto/>
  28. <emplno/>
  29. <emplnm/>
  30. </req>
  31. <save/>
  32. </send>
  33. </root>
  34. </instance>
  35. <script type="javascript" ev:event="xforms-ready">
  36. <![CDATA[
  37. //사용자 권한
  38. fCheckAuth();
  39. misfGridInit(grd_ngdtschedule);
  40. misfMsterDetailSet(grd_ngdtschedule, null, "TRRTS03501", "Y");
  41. rszfGetLabelControlComboList("R0314", "cmb_instcd", "detldesc");
  42. var dutplceinstcd = getUserInfo("dutplceinstcd");
  43. model.setValue("/root/send/req/instcd", dutplceinstcd);
  44. misfComboComCdListMulti("R0234,R0151", "cmb_deptcd,cmb_apprtcdrflag");
  45. addComboItem( "cmb_deptcd", "전체", "", "above");
  46. model.setValue(cmb_deptcd.attribute("ref"), "");
  47. addComboItem( "cmb_apprtcdrflag", "전체", "", "above");
  48. model.setValue(cmb_apprtcdrflag.attribute("ref"), "");
  49. var today = getCurrentDate();
  50. var cur_yymm = parseInt(today.substring(0,6));
  51. model.setValue("/root/send/req/ngdtymfrom", cur_yymm);
  52. model.setValue("/root/send/req/ngdtymto", cur_yymm);
  53. if (dutplceinstcd == "001" && getUserInfo("dutplcecd") == "4110100000") {
  54. cmb_instcd.disabled = false;
  55. }else{
  56. cmb_instcd.disabled = true;
  57. }
  58. model.refresh();
  59. ]]>
  60. </script>
  61. <submission id="TRRTS00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdept" resultref="/root/main/ngdtcdlist"/>
  62. <bind id="bind1" ref="/root/main/ngdtamt/ngdtamtlist/ngdtamt" calculate="../weekno * 20000 + ../holino * 40000"/>
  63. <submission id="TXRTS03001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req"/>
  64. <submission id="TRRTS03501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/ngdtschedule"/>
  65. </model>
  66. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  70. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  71. <script type="javascript" src="../../../mis/tistrngeducplanmngtweb/js/SMRTS00600.js"/>
  72. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  73. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  74. <script type="javascript">
  75. <![CDATA[
  76. ]]>
  77. </script>
  78. </xhtml:head>
  79. <xhtml:body>
  80. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  81. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">당직 스케쥴 조회</caption>
  82. </group>
  83. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  84. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1195px; height:36px; background-color:#fffbf2; border-color:#ffd799; "/>
  85. <caption id="cap_yy" class="search_name" style="left:5px; top:15px; width:67px; height:17px; ">기간 :</caption>
  86. <datagrid id="grd_ngdtschedule" nodeset="/root/main/ngdtschedule/ngdtschedulelist" caption="임상과^당직파트^당직일자^사번^성명^년차^I/R^bp^핸드폰|임상과^당직파트^당직일자^사번^성명^년차^I/R^bp^핸드폰" colsep="^" colwidth="100, 214, 129, 147, 135, 100, 100, 148, 174" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:70px; width:1190px; height:670px; ">
  87. <col ref="deptnm" type="output"/>
  88. <col ref="ngdtcd" type="output">
  89. <choices>
  90. <itemset>
  91. <label/>
  92. <value/>
  93. </itemset>
  94. </choices>
  95. </col>
  96. <col ref="ngdtdd" type="output"/>
  97. <col ref="emplno" type="output"/>
  98. <col ref="emplnm" style="text-align:center; "/>
  99. <col ref="anual"/>
  100. <col ref="apprtcdrflag"/>
  101. <col ref="bpno" style="text-align:center; "/>
  102. <col ref="mpphonno" style="text-align:center; "/>
  103. </datagrid>
  104. <button id="btn_search" class="btn1_letter2" style="left:1130px; top:12px; width:56px; height:22px; text-align:left; ">
  105. <caption>조회</caption>
  106. <script type="javascript" ev:event="DOMActivate">
  107. <![CDATA[
  108. submit("TRRTS03501");
  109. model.refresh();
  110. ]]>
  111. </script>
  112. </button>
  113. <line id="line82" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:36px; border-color:#ffe4bb; border-left-style:solid; "/>
  114. <line id="line1" class="line_1" style="x1:0px; y1:66px; x2:1190px; y2:67px; "/>
  115. <select1 id="cmb_instcd" ref="/root/send/req/instcd" class="combo_s_essential" disabled="false" appearance="minimal" style="left:335px; top:14px; width:120px; height:19px; ">
  116. <choices>
  117. <itemset>
  118. <label/>
  119. <value/>
  120. </itemset>
  121. </choices>
  122. </select1>
  123. <caption id="cap_instcd" class="search_name" style="left:249px; top:14px; width:94px; height:17px; ">근무병원 :</caption>
  124. <input id="ipt_ngdtymfrom" ref="/root/send/req/ngdtymfrom" inputtype="date" format="yyyy-mm" style="left:65px; top:14px; width:80px; height:19px; "/>
  125. <button id="btn_execl" class="btn2_letter4" style="left:1125px; top:45px; width:64px; height:19px; ">
  126. <caption>엑셀저장</caption>
  127. <script type="javascript" ev:event="DOMActivate">
  128. <![CDATA[
  129. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  130. if (fileName != "") {
  131. grd_ngdtschedule.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:true;rowhiddenextend:false;exportfalsecols:0,0;col_1:value;");
  132. }
  133. ]]>
  134. </script>
  135. </button>
  136. <select1 id="cmb_deptcd" ref="/root/send/req/deptcd" class="combo_s_essential" disabled="false" appearance="minimal" style="left:535px; top:14px; width:125px; height:19px; ">
  137. <choices>
  138. <itemset>
  139. <label/>
  140. <value/>
  141. </itemset>
  142. </choices>
  143. </select1>
  144. <caption id="caption1" class="search_name" style="left:459px; top:14px; width:94px; height:17px; ">임상과 :</caption>
  145. <caption id="caption2" class="search_name" style="left:664px; top:15px; width:99px; height:17px; ">전공의구분 :</caption>
  146. <select1 id="cmb_apprtcdrflag" ref="/root/send/req/apprtcdrflag" class="combo_s_essential" disabled="false" appearance="minimal" style="left:765px; top:15px; width:125px; height:19px; ">
  147. <choices>
  148. <itemset>
  149. <label/>
  150. <value/>
  151. </itemset>
  152. </choices>
  153. </select1>
  154. <input id="ipt_emplnm" ref="/root/send/req/emplnm" class="input_default" style="left:1045px; top:15px; width:65px; height:19px; ">
  155. <script type="javascript" ev:event="onkeyup">
  156. <![CDATA[
  157. if (ipt_emplnm.currentText != null && ipt_emplnm.currentText != "" ) {
  158. inputEnterKey("ipt_emplnm", "xforms-value-changed");
  159. inputEnterKey("btn_search", "DOMActivate");
  160. }
  161. ]]>
  162. </script>
  163. <script type="javascript" ev:event="xforms-value-changed">
  164. <![CDATA[
  165. var recv_list = "emplno,emplnm" ;
  166. rpbfValidationCheck("EMPLNM", recv_list);
  167. model.refresh();
  168. ]]>
  169. </script>
  170. </input>
  171. <button id="btn_emplno" class="icon_search" style="left:1024px; top:15px; width:16px; height:16px; ">
  172. <caption/>
  173. <script type="javascript" ev:event="DOMActivate">
  174. <![CDATA[
  175. var recv_list = "emplno,emplnm" ;
  176. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, recv_list,"ipt_systemflag","N");
  177. model.refresh();
  178. if (model.getValue(ipt_emplno.attribute("ref")).length > 0) {
  179. btn_search.dispatch("DOMActivate");
  180. }
  181. ]]>
  182. </script>
  183. </button>
  184. <input id="ipt_emplno" ref="/root/send/req/emplno" class="input_default" style="left:950px; top:15px; width:70px; height:19px; ">
  185. <script type="javascript" ev:event="onkeyup">
  186. <![CDATA[
  187. if (ipt_emplno.currentText != null && ipt_emplno.currentText != "" ) {
  188. inputEnterKey("ipt_emplno", "xforms-value-changed");
  189. inputEnterKey("btn_search", "DOMActivate");
  190. }
  191. ]]>
  192. </script>
  193. <script type="javascript" ev:event="xforms-value-changed">
  194. <![CDATA[
  195. var recv_list = "emplno,emplnm" ;
  196. rpbfValidationCheck("EMPLNO", recv_list);
  197. model.refresh();
  198. ]]>
  199. </script>
  200. </input>
  201. <caption id="caption7" class="search_name" style="left:893px; top:15px; width:57px; height:17px; ">사번:</caption>
  202. <input id="ipt_ngdtymto" ref="/root/send/req/ngdtymto" inputtype="date" format="yyyy-mm" style="left:160px; top:14px; width:80px; height:19px; "/>
  203. <caption id="caption3" style="left:148px; top:14px; width:10px; height:20px; ">-</caption>
  204. <input id="ipt_systemflag" ref="/root/init/systemflag" visibility="hidden" style="left:65px; top:45px; width:90px; height:19px; "/>
  205. </group>
  206. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; "/>
  207. </xhtml:body>
  208. </xhtml:html>