SMRTS01300_당직비조회.xrw 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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. <ngdtamt/>
  11. </main>
  12. <hidden>
  13. </hidden>
  14. <temp>
  15. </temp>
  16. <init/>
  17. <send>
  18. <req>
  19. <yy/>
  20. <mm/>
  21. <deptcd/>
  22. <instcd/>
  23. <ym/>
  24. </req>
  25. <save/>
  26. </send>
  27. </root>
  28. </instance>
  29. <script type="javascript" ev:event="xforms-ready">
  30. <![CDATA[
  31. misfComboComCdListMulti("Z0007", "cmb_instcd");
  32. submit("TRRTS00602");
  33. var today = getCurrentDate();
  34. var cur_mm = parseInt(today.substring(4, 6));
  35. var cur_yy = parseInt(today.substring(0, 4));
  36. model.setValue("/root/send/req/yy", cur_yy);
  37. model.setValue("/root/send/req/mm", cur_mm);
  38. ipt_yy.refresh();
  39. ipt_mm.refresh();
  40. var sPosdeptcd = getUserInfo("posdeptcd");
  41. // 내과의 세부분과일때 내과로 세팅
  42. if(sPosdeptcd == "2010300000" || sPosdeptcd == "2010400000" || sPosdeptcd == "2010500000" || sPosdeptcd == "2010600000" || sPosdeptcd == "2010700000" || sPosdeptcd == "2010800000" || sPosdeptcd == "2010900000" || sPosdeptcd == "2011000000" || sPosdeptcd == "2011100000")
  43. {
  44. model.setValue("/root/send/req/deptcd", "2010000000");
  45. }
  46. else
  47. {
  48. model.setValue("/root/send/req/deptcd", getUserInfo("posdeptcd"));
  49. }
  50. //model.setValue("/root/send/req/deptcd", getUserInfo("posdeptcd"));
  51. cmb_deptcd.refresh();
  52. btn_search.disabled = !checkAuth("R") ;
  53. btn_cret.disabled = !checkAuth("X") ;
  54. btn_save.disabled = !checkAuth("X") ;
  55. model.setValue("/root/send/req/instcd", getUserInfo("dutplceinstcd"));
  56. cmb_instcd.disabled = !checkAuth("P") ;
  57. ]]>
  58. </script>
  59. <submission id="TRRTS01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/ngdtamt"/>
  60. <submission id="TRRTS00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdept" resultref="/root/main/ngdtcdlist"/>
  61. <submission id="TXRTS01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save"/>
  62. <submission id="TXRTS01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req"/>
  63. <bind id="bind1" ref="/root/main/ngdtamt/ngdtamtlist/ngdtamt" calculate="../weekno * 20000 + ../holino * 40000"/>
  64. </model>
  65. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  69. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  70. <script type="javascript" src="../../../mis/tistrngeducplanmngtweb/js/SMRTS00600.js"/>
  71. <script type="javascript">
  72. <![CDATA[
  73. ]]>
  74. </script>
  75. </xhtml:head>
  76. <xhtml:body>
  77. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  78. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">당직비 조회</caption>
  79. </group>
  80. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  81. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1195px; height:36px; background-color:#fffbf2; border-color:#ffd799; "/>
  82. <input id="ipt_yy" ref="/root/send/req/yy" class="input_s_essential" style="left:90px; top:14px; width:55px; height:19px; "/>
  83. <caption id="cap_yy" class="search_name" style="left:5px; top:15px; width:86px; height:17px; ">년 도 :</caption>
  84. <datagrid id="grd_ngdtamtlist" nodeset="/root/main/ngdtamt/ngdtamtlist" caption="년월^기관코드^부서코드^사원번호^성명^전공의구분^년차^평일당직수^휴일당직수^당직비" colsep="^" colwidth="20, 20, 20, 70, 100, 80, 40, 90, 90, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:70px; width:1190px; height:670px; ">
  85. <col ref="ym" visibility="hidden"/>
  86. <col ref="instcd" visibility="hidden"/>
  87. <col ref="deptcd" visibility="hidden"/>
  88. <col ref="emplno"/>
  89. <col ref="name"/>
  90. <col ref="trngflagnm"/>
  91. <col ref="anual" style="text-align:center; "/>
  92. <col ref="weekno" type="input" style="text-align:center; "/>
  93. <col ref="holino" type="input" style="text-align:center; "/>
  94. <col ref="ngdtamt" format="#,###" style="text-align:center; "/>
  95. </datagrid>
  96. <button id="btn_search" class="btn1_letter2" style="left:1130px; top:12px; width:56px; height:22px; text-align:left; ">
  97. <caption>조회</caption>
  98. <script type="javascript" ev:event="DOMActivate">
  99. <![CDATA[
  100. if ( !isRequiredControls("ipt_yy", "ipt_mm", "cmb_deptcd", "cmb_instcd") ) {
  101. return false;
  102. }
  103. model.setValue("/root/send/req/mm", model.getValue("/root/send/req/mm").getLeftPad(2, "0"));
  104. ipt_mm.refresh();
  105. model.setValue("/root/send/req/ym", model.getValue("/root/send/req/yy") + model.getValue("/root/send/req/mm"));
  106. submit("TRRTS01301");
  107. ]]>
  108. </script>
  109. </button>
  110. <line id="line82" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:36px; border-color:#ffe4bb; border-left-style:solid; "/>
  111. <select1 id="cmb_deptcd" ref="/root/send/req/deptcd" class="combo_search" appearance="minimal" style="left:387px; top:14px; width:100px; height:19px; ">
  112. <choices>
  113. <itemset nodeset="/root/main/tisorddeptcdlist">
  114. <label ref="deptnm"/>
  115. <value ref="deptcd"/>
  116. </itemset>
  117. </choices>
  118. </select1>
  119. <caption id="cap_deptcd" class="search_name" style="left:315px; top:15px; width:75px; height:17px; ">임상과 :</caption>
  120. <caption id="caption5" class="tit_2" style="left:5px; top:48px; width:140px; height:13px; font-size:10pt; ">스케줄</caption>
  121. <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:1190px; y2:66px; "/>
  122. <input id="ipt_mm" ref="/root/send/req/mm" class="input_s_essential" style="left:234px; top:14px; width:50px; height:19px; "/>
  123. <caption id="cap_mm" class="search_name" style="left:160px; top:15px; width:86px; height:17px; ">근무월 :</caption>
  124. <select1 id="cmb_instcd" ref="/root/send/req/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:587px; top:14px; width:148px; height:19px; ">
  125. <choices>
  126. <itemset>
  127. <label/>
  128. <value/>
  129. </itemset>
  130. </choices>
  131. </select1>
  132. <caption id="cap_instcd" class="search_name" style="left:501px; top:15px; width:94px; height:17px; ">근무병원 :</caption>
  133. <button id="btn_cret" class="btn2_letter6" style="left:1101px; top:44px; width:86px; height:19px; text-align:center; ">
  134. <caption>당직비 생성</caption>
  135. <script type="javascript" ev:event="DOMActivate">
  136. <![CDATA[
  137. var retMes = messageBox("당직비 생성을 ", "Q004");
  138. if ( retMes != 6) {
  139. return;
  140. }
  141. if ( !isRequiredControls("ipt_yy", "ipt_mm", "cmb_deptcd", "cmb_instcd") ) {
  142. return false;
  143. }
  144. model.setValue("/root/send/req/mm", model.getValue("/root/send/req/mm").getLeftPad(2, "0"));
  145. ipt_mm.refresh();
  146. model.setValue("/root/send/req/ym", model.getValue("/root/send/req/yy") + model.getValue("/root/send/req/mm"));
  147. submit("TXRTS01302");
  148. ]]>
  149. </script>
  150. </button>
  151. </group>
  152. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  153. <button id="btn_save" class="btn4_letter2" style="left:1130px; top:3px; width:56px; height:22px; text-align:left; ">
  154. <caption>저장</caption>
  155. <script type="javascript" ev:event="DOMActivate">
  156. <![CDATA[
  157. var retMes = messageBox("", "Q002");
  158. if ( retMes != 6) {
  159. return;
  160. }
  161. model.setValue("/root/send/save", grd_ngdtamtlist.getUpdateData("update"));
  162. if (submit("TXRTS01301"))
  163. {
  164. grd_ngdtamtlist.clearStatus();
  165. }
  166. ]]>
  167. </script>
  168. </button>
  169. </group>
  170. </xhtml:body>
  171. </xhtml:html>