SPAER02100_근무지변경관리.xrw 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  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. <list2>
  11. <item>
  12. <check/>
  13. <sortno/>
  14. <basecd/>
  15. <basecdflagdesc/>
  16. <excudd/>
  17. </item>
  18. </list2>
  19. </main>
  20. <send>
  21. <execrid/>
  22. <sortno/>
  23. <afexcudd/>
  24. <bfexcudd/>
  25. <bfexcuroomcd/>
  26. <afexcuroomcd/>
  27. <excudd/>
  28. <curerid/>
  29. <globalinstance>
  30. <instance1/>
  31. </globalinstance>
  32. </send>
  33. <send1>
  34. <instance1/>
  35. <excuroomcd/>
  36. </send1>
  37. <popdata>
  38. <execrid/>
  39. <excuroomcd/>
  40. <excudd/>
  41. </popdata>
  42. <init>
  43. <list1>
  44. <item>
  45. <basecd/>
  46. <basecdflagdesc/>
  47. </item>
  48. </list1>
  49. <curerlist>
  50. <curernm/>
  51. <curerid/>
  52. </curerlist>
  53. </init>
  54. <hidden/>
  55. <temp/>
  56. </root>
  57. </instance>
  58. <script type="javascript" ev:event="xforms-ready">
  59. <![CDATA[
  60. model.setValue("/root/send/execrid", model.getValue("/root/popdata/execrid"));
  61. model.setValue("/root/send/bfexcuroomcd", model.getValue("/root/popdata/excuroomcd"));
  62. model.setValue("/root/send/bfexcudd", model.getValue("/root/popdata/excudd"));
  63. aezfSetSuppDeptcd();
  64. model.setValue("/root/send/afexcudd", getCurrentDate());
  65. model.removeNodeset("/root/main/list2/item");
  66. submit("TRAEA00201");
  67. submit("TRAEA00203");
  68. model.refresh();
  69. ]]>
  70. </script>
  71. <submission id="TRAEA00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/list1"/>
  72. <submission id="TRAEA00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send1" replace="instance" resultref="/root/main/list2"/>
  73. <submission id="TRAEA00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/curerlist"/>
  74. <submission id="TXAER02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
  75. <script type="javascript" ev:event="xforms-model-destruct">
  76. <![CDATA[
  77. window.close();
  78. ]]>
  79. </script>
  80. </model>
  81. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  83. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  84. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  86. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  87. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  88. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  89. <script type="javascript">
  90. <![CDATA[
  91. function readfunc() {
  92. model.setValue("/root/send1/excuroomcd", model.getValue("/root/send/afexcuroomcd"));
  93. model.setValue("/root/send1/instance1", model.getValue("/root/send/globalinstance/instance1"));
  94. submit("TRAEA00202", false);
  95. model.refresh();
  96. }
  97. function datacheck(){
  98. var sexcudd = model.getValue("/root/send/afexcudd");
  99. if (sexcudd == ""){
  100. messageBox("시행일자는 필수 입력항목입니다.", "E999", "");
  101. return false;
  102. }
  103. if (isValidDateTime(sexcudd, "YYYYMMDD") == false){
  104. messageBox("날짜 형식이 잘못 입력되었습니다.", "E999", "");
  105. return false;
  106. }
  107. var sexcudd2 = model.getValue("/root/send/bfexcudd");
  108. if (sexcudd < sexcudd2){
  109. messageBox("이전 시행일자보다 현재 시행일자가 적어서 처리할 수 없습니다.", "E999", "");
  110. return false;
  111. }
  112. if (model.getValue("/root/send/afexcuroomcd") == model.getValue("/root/send/bfexcuroomcd")){
  113. messageBox("현근무지와 변경할 근무지가 동일합니다.", "E999", "");
  114. return false;
  115. }
  116. var sexecrid = model.getValue("/root/send/execrid");
  117. var irow = grd_curerlist.findRow(sexecrid, 1, 4, false, false);
  118. if (irow > 0){
  119. messageBox("변경할 근무지에 이미 등록되었습니다.", "E999", "");
  120. return false;
  121. }
  122. }
  123. ]]>
  124. </script>
  125. </xhtml:head>
  126. <xhtml:body pagewidth="475" pageheight="550" guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  127. <group id="group1" style="left:0px; top:0px; width:450px; height:13px; ">
  128. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">근무지 변경관리</caption>
  129. </group>
  130. <group id="group3" scroll="auto" style="left:1px; top:15px; width:454px; height:510px; ">
  131. <caption id="caption2" class="search_name" style="left:200px; top:20px; width:88px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">시 행 일 :</caption>
  132. <input id="input1" ref="/root/send/afexcudd" class="input_search" navindex="1" inputtype="date" _chartype="upper" style="left:295px; top:20px; width:110px; height:19px; text-align:center; ">
  133. <script type="javascript" ev:event="onkeydown">
  134. <![CDATA[
  135. inputEnterKey("btn_sea","DOMActivate");
  136. ]]>
  137. </script>
  138. </input>
  139. <caption id="caption1" class="search_name" style="left:20px; top:20px; width:90px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">사 번 :</caption>
  140. <caption id="caption3" class="search_name" style="left:200px; top:50px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">현근무지 :</caption>
  141. <select1 id="combo1" ref="/root/send/bfexcuroomcd" disabled="true" appearance="minimal" style="left:295px; top:50px; width:150px; height:19px; ">
  142. <choices>
  143. <itemset nodeset="/root/init/list1/item">
  144. <label ref="basecdflagdesc"/>
  145. <value ref="basecd"/>
  146. </itemset>
  147. </choices>
  148. </select1>
  149. <select1 id="combo2" ref="/root/send/afexcuroomcd" appearance="minimal" style="left:125px; top:82px; width:150px; height:19px; ">
  150. <choices>
  151. <itemset nodeset="/root/init/list1/item">
  152. <label ref="basecdflagdesc"/>
  153. <value ref="basecd"/>
  154. </itemset>
  155. </choices>
  156. <script type="javascript" ev:event="xforms-value-changed">
  157. <![CDATA[
  158. readfunc();
  159. ]]>
  160. </script>
  161. </select1>
  162. <caption id="caption4" class="search_name" style="left:20px; top:82px; width:99px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">변경근무지 :</caption>
  163. <caption id="caption5" class="search_name" style="left:20px; top:50px; width:90px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">순 번 :</caption>
  164. <input id="input2" ref="/root/send/sortno" style="left:95px; top:50px; width:95px; height:19px; text-align:center; "/>
  165. <datagrid id="grd_curerlist" nodeset="/root/main/list2/item" caption="^No^이름^사번^시행일" colsep="^" colwidth="33, 54, 101, 96, 112" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:16px; top:143px; width:424px; height:362px; ">
  166. <col checkvalue="Y,N" ref="check" type="checkbox" visibility="hidden"/>
  167. <col ref="sortno" format="99" style="text-align:center; "/>
  168. <col disabled="true" ref="basecd" type="combo" _key="true">
  169. <choices>
  170. <itemset nodeset="/root/init/curerlist">
  171. <label ref="curernm"/>
  172. <value ref="curerid"/>
  173. </itemset>
  174. </choices>
  175. </col>
  176. <col ref="basecdflagdesc" style="text-align:center; "/>
  177. <col ref="excudd" style="text-align:center; "/>
  178. </datagrid>
  179. <caption id="caption7" class="tit_2" style="left:20px; top:123px; width:133px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">근무자 현황</caption>
  180. <button id="btn_save" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:380px; top:119px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  181. <caption>저장</caption>
  182. <script type="javascript" ev:event="DOMActivate">
  183. <![CDATA[
  184. if (datacheck() == false){
  185. return;
  186. }
  187. submit("TXAER02101", false);
  188. window.close();
  189. ]]>
  190. </script>
  191. <script type="javascript" ev:event="DOMFocusIn">
  192. <![CDATA[
  193. checkKeyColumn("grd_curerlist");
  194. ]]>
  195. </script>
  196. </button>
  197. <select1 id="combo3" ref="/root/send/execrid" disabled="true" appearance="minimal" style="left:95px; top:20px; width:95px; height:19px; ">
  198. <choices>
  199. <itemset nodeset="/root/init/curerlist">
  200. <label ref="curernm"/>
  201. <value ref="curerid"/>
  202. </itemset>
  203. </choices>
  204. </select1>
  205. </group>
  206. </xhtml:body>
  207. </xhtml:html>