SMRTS03200_당직비마감.xrw 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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. <ngdtamtlist>
  12. <instcd/>
  13. <holingdtamt/>
  14. <weekngdtamt/>
  15. </ngdtamtlist>
  16. </ngdtamt>
  17. </main>
  18. <hidden>
  19. </hidden>
  20. <temp>
  21. </temp>
  22. <init/>
  23. <send>
  24. <req>
  25. <instcd/>
  26. </req>
  27. <save>
  28. <ngdtamtlist/>
  29. </save>
  30. </send>
  31. </root>
  32. </instance>
  33. <script type="javascript" ev:event="xforms-ready">
  34. <![CDATA[
  35. model.setValue("/root/send/req/instcd", getUserInfo("dutplceinstcd"));
  36. rszfGetLabelControlComboList("R0314", "cmb_instcd", "detldesc");
  37. model.makeNode("/root/init/gridlavelcombo/R03140/R03140");
  38. model.copyNode("/root/init/gridlavelcombo/R03140", "/root/init/lavelcombo/R03140");
  39. addGridComboItem("cmb_instcd", "전체", "","above");
  40. cmb_instcd.value="";
  41. model.removeNodeset(grd_ngdtamtlist.nodeset);
  42. model.refresh();
  43. btn_search.dispatch("DOMActivate");
  44. ]]>
  45. </script>
  46. <submission id="TRRTS02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/ngdtcdlist"/>
  47. <submission id="TXRTS02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  48. </model>
  49. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  53. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  54. <script type="javascript" src="../../../mis/tistrngeducplanmngtweb/js/SMRTS00600.js"/>
  55. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  56. <script type="javascript">
  57. <![CDATA[
  58. function fCheckSaveData()
  59. {
  60. for(var currow = grd_ngdtamtlist.fixedRows ; currow < grd_ngdtamtlist.rows ; currow++)
  61. {
  62. if(grd_ngdtamtlist.valueMatrix(currow , grd_ngdtamtlist.colRef("instcd")).length == 0)
  63. {
  64. messageBox(currow + " 번째 근무 병원을 " ,"C001");
  65. grd_ngdtamtlist.row = currow;
  66. grd_ngdtamtlist.col= grd_ngdtamtlist.colRef("instcd");
  67. return false;
  68. }
  69. else
  70. {
  71. for(srcrow = currow + 1 ; srcrow < grd_ngdtamtlist.rows ; srcrow++)
  72. {
  73. if(grd_ngdtamtlist.valueMatrix(currow , grd_ngdtamtlist.colRef("instcd")) == grd_ngdtamtlist.valueMatrix(srcrow , grd_ngdtamtlist.colRef("instcd")))
  74. {
  75. messageBox("동일 근무병원이 [" + (currow - grd_ngdtamtlist.fixedRows + 1)+ "," + (srcrow - grd_ngdtamtlist.fixedRows + 1)+ "->" + grd_ngdtamtlist.valueMatrix(currow , grd_ngdtamtlist.colRef("instcd")) + "] 존재하여 저장 " ,"E001");
  76. return false;
  77. }
  78. }
  79. }
  80. }
  81. }
  82. ]]>
  83. </script>
  84. </xhtml:head>
  85. <xhtml:body>
  86. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  87. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">당직비 기본 정보 관리</caption>
  88. </group>
  89. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  90. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1195px; height:36px; background-color:#fffbf2; border-color:#ffd799; "/>
  91. <datagrid id="grd_ngdtamtlist" nodeset="/root/main/ngdtamt/ngdtamtlist" caption="임상과^주간금액^야간금액^적용일자" colsep="^" colwidth="188, 268, 245, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:70px; width:1190px; height:670px; ">
  92. <col ref="instcd" type="combo" visibility="visible" style="text-align:center; ">
  93. <choices>
  94. <itemset nodeset="/root/init/gridlavelcombo/R03140/R03140">
  95. <label ref="detldesc"/>
  96. <value ref="cdid"/>
  97. </itemset>
  98. </choices>
  99. </col>
  100. <col ref="weekngdtamt" type="input" format="#,###" style="text-align:right; "/>
  101. <col ref="holingdtamt" type="input" format="#,###" style="text-align:right; "/>
  102. <col type="inputdate"/>
  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. if ( !isRequiredControls("grd_ngdtamtlist.instcd") ) {
  109. return false;
  110. }
  111. model.removenode("/root/main/ngdtamt");
  112. submit("TRRTS02901");
  113. model.refresh();
  114. ]]>
  115. </script>
  116. </button>
  117. <line id="line82" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:36px; border-color:#ffe4bb; border-left-style:solid; "/>
  118. <caption id="caption5" class="tit_2" style="left:5px; top:48px; width:140px; height:15px; font-size:10pt; ">당직비</caption>
  119. <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:1190px; y2:66px; "/>
  120. <select1 id="cmb_instcd" ref="/root/send/req/instcd" class="combo_s_essential" disabled="false" appearance="minimal" style="left:97px; top:14px; width:148px; height:19px; ">
  121. <choices>
  122. <itemset>
  123. <label/>
  124. <value/>
  125. </itemset>
  126. </choices>
  127. </select1>
  128. <caption id="cap_instcd" class="search_name" style="left:11px; top:15px; width:94px; height:17px; ">근무병원 :</caption>
  129. <button id="btn_insert" class="btn2_letter3" style="left:1074px; top:43px; width:53px; height:19px; ">
  130. <caption>행추가</caption>
  131. <script type="javascript" ev:event="DOMActivate">
  132. <![CDATA[
  133. grd_ngdtamtlist.addRow();
  134. model.setValue(grd_ngdtamtlist.nodeset +"[" + (grd_ngdtamtlist.rows - grd_ngdtamtlist.fixedRows) + "]/instcd" ,model.getValue(cmb_instcd.attribute("ref")));
  135. ]]>
  136. </script>
  137. </button>
  138. <button id="button2" class="btn2_letter3" style="left:1135px; top:43px; width:53px; height:19px; ">
  139. <caption>행삭제</caption>
  140. <script type="javascript" ev:event="DOMActivate">
  141. <![CDATA[
  142. grd_ngdtamtlist.rowStatus(grd_ngdtamtlist.row) = "4";
  143. grd_ngdtamtlist.row += 1;
  144. ]]>
  145. </script>
  146. </button>
  147. <select1 id="combo1" ref="/root/send/req/instcd" class="combo_s_essential" disabled="false" appearance="minimal" style="left:416px; top:14px; width:148px; height:19px; ">
  148. <choices>
  149. <itemset>
  150. <label/>
  151. <value/>
  152. </itemset>
  153. </choices>
  154. </select1>
  155. <caption id="caption1" class="search_name" style="left:340px; top:15px; width:94px; height:17px; ">임상과 :</caption>
  156. </group>
  157. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  158. <button id="btn_save" class="btn4_letter2" style="left:1130px; top:3px; width:56px; height:22px; text-align:left; ">
  159. <caption>저장</caption>
  160. <script type="javascript" ev:event="DOMActivate">
  161. <![CDATA[
  162. fCheckSaveData();
  163. var retMes = messageBox("", "Q002");
  164. if ( retMes != 6) {
  165. return;
  166. }
  167. model.setValue("/root/send/save/ngdtamtlist", grd_ngdtamtlist.getUpdateData());
  168. submit("TXRTS02901");
  169. model.removenode("/root/main/ngdtamt");
  170. submit("TRRTS02901");
  171. grd_ngdtamtlist.clearStatus();
  172. model.refresh();
  173. ]]>
  174. </script>
  175. </button>
  176. </group>
  177. </xhtml:body>
  178. </xhtml:html>