SMRTS01400_당직표조회.xrw 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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. <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. //model.setValue("/root/send/req/deptcd", getUserInfo("posdeptcd"));
  41. //cmb_deptcd.refresh();
  42. btn_search.disabled = !checkAuth("R") ;
  43. btn_cret.disabled = !checkAuth("X") ;
  44. btn_save.disabled = !checkAuth("X") ;
  45. model.setValue("/root/send/req/instcd", getUserInfo("dutplceinstcd"));
  46. cmb_instcd.disabled = !checkAuth("P") ;
  47. ]]>
  48. </script>
  49. <submission id="TRRTS01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/ngdtamt"/>
  50. <submission id="TRRTS00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdept" resultref="/root/main/ngdtcdlist"/>
  51. <submission id="TXRTS01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save"/>
  52. <submission id="TXRTS01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req"/>
  53. <bind id="bind1" ref="/root/main/ngdtamt/ngdtamtlist/ngdtamt" calculate="../weekno * 20000 + ../holino * 40000"/>
  54. </model>
  55. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  59. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  60. <script type="javascript" src="../../../mis/tistrngeducplanmngtweb/js/SMRTS00600.js"/>
  61. <script type="javascript">
  62. <![CDATA[
  63. ]]>
  64. </script>
  65. </xhtml:head>
  66. <xhtml:body>
  67. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  68. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">당직비 조회</caption>
  69. </group>
  70. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  71. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1195px; height:36px; background-color:#fffbf2; border-color:#ffd799; "/>
  72. <input id="ipt_yy" ref="/root/send/req/yy" class="input_s_essential" style="left:90px; top:14px; width:55px; height:19px; "/>
  73. <caption id="cap_yy" class="search_name" style="left:5px; top:15px; width:86px; height:17px; ">년 도 :</caption>
  74. <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; ">
  75. <col ref="ym" visibility="hidden"/>
  76. <col ref="instcd" visibility="hidden"/>
  77. <col ref="deptcd" visibility="hidden"/>
  78. <col ref="emplno"/>
  79. <col ref="name"/>
  80. <col ref="trngflagnm"/>
  81. <col ref="anual" style="text-align:center; "/>
  82. <col ref="weekno" type="input" style="text-align:center; "/>
  83. <col ref="holino" type="input" style="text-align:center; "/>
  84. <col ref="ngdtamt" format="#,###" style="text-align:center; "/>
  85. </datagrid>
  86. <button id="btn_search" class="btn1_letter2" style="left:1130px; top:12px; width:56px; height:22px; text-align:left; ">
  87. <caption>조회</caption>
  88. <script type="javascript" ev:event="DOMActivate">
  89. <![CDATA[
  90. if ( !isRequiredControls("ipt_yy", "ipt_mm", "cmb_deptcd", "cmb_instcd") ) {
  91. return false;
  92. }
  93. model.setValue("/root/send/req/mm", model.getValue("/root/send/req/mm").getLeftPad(2, "0"));
  94. ipt_mm.refresh();
  95. model.setValue("/root/send/req/ym", model.getValue("/root/send/req/yy") + model.getValue("/root/send/req/mm"));
  96. submit("TRRTS01301");
  97. ]]>
  98. </script>
  99. </button>
  100. <line id="line82" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:36px; border-color:#ffe4bb; border-left-style:solid; "/>
  101. <select1 id="cmb_deptcd" ref="/root/send/req/deptcd" class="combo_search" appearance="minimal" style="left:387px; top:14px; width:100px; height:19px; ">
  102. <choices>
  103. <itemset nodeset="/root/main/tisorddeptcdlist">
  104. <label ref="deptnm"/>
  105. <value ref="deptcd"/>
  106. </itemset>
  107. </choices>
  108. </select1>
  109. <caption id="cap_deptcd" class="search_name" style="left:315px; top:15px; width:75px; height:17px; ">임상과 :</caption>
  110. <caption id="caption5" class="tit_2" style="left:5px; top:48px; width:140px; height:13px; font-size:10pt; ">스케줄</caption>
  111. <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:1190px; y2:66px; "/>
  112. <input id="ipt_mm" ref="/root/send/req/mm" class="input_s_essential" style="left:234px; top:14px; width:50px; height:19px; "/>
  113. <caption id="cap_mm" class="search_name" style="left:160px; top:15px; width:86px; height:17px; ">근무월 :</caption>
  114. <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; ">
  115. <choices>
  116. <itemset>
  117. <label/>
  118. <value/>
  119. </itemset>
  120. </choices>
  121. </select1>
  122. <caption id="cap_instcd" class="search_name" style="left:501px; top:15px; width:94px; height:17px; ">근무병원 :</caption>
  123. <button id="btn_cret" class="btn2_letter6" style="left:1101px; top:44px; width:86px; height:19px; text-align:center; ">
  124. <caption>당직비 생성</caption>
  125. <script type="javascript" ev:event="DOMActivate">
  126. <![CDATA[
  127. var retMes = messageBox("당직비 생성을 ", "Q004");
  128. if ( retMes != 6) {
  129. return;
  130. }
  131. if ( !isRequiredControls("ipt_yy", "ipt_mm", "cmb_deptcd", "cmb_instcd") ) {
  132. return false;
  133. }
  134. model.setValue("/root/send/req/mm", model.getValue("/root/send/req/mm").getLeftPad(2, "0"));
  135. ipt_mm.refresh();
  136. model.setValue("/root/send/req/ym", model.getValue("/root/send/req/yy") + model.getValue("/root/send/req/mm"));
  137. submit("TXRTS01302");
  138. ]]>
  139. </script>
  140. </button>
  141. </group>
  142. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  143. <button id="btn_save" class="btn4_letter2" style="left:1130px; top:3px; width:56px; height:22px; text-align:left; ">
  144. <caption>저장</caption>
  145. <script type="javascript" ev:event="DOMActivate">
  146. <![CDATA[
  147. var retMes = messageBox("", "Q002");
  148. if ( retMes != 6) {
  149. return;
  150. }
  151. model.setValue("/root/send/save", grd_ngdtamtlist.getUpdateData("update"));
  152. if (submit("TXRTS01301"))
  153. {
  154. grd_ngdtamtlist.clearStatus();
  155. }
  156. ]]>
  157. </script>
  158. </button>
  159. </group>
  160. </xhtml:body>
  161. </xhtml:html>