SPAER02200_검사치료기준수행부서관리.xrw 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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. <examcurelist>
  11. <item>
  12. <suppdeptcd/>
  13. <baseexcuroomcd/>
  14. <baseexcuroomnm/>
  15. <iudgb/>
  16. </item>
  17. </examcurelist>
  18. </main>
  19. <send>
  20. <basecd/>
  21. <globalinstance>
  22. <instance1/>
  23. </globalinstance>
  24. <req>
  25. <data/>
  26. </req>
  27. <windowloadinstance>SPAER02200</windowloadinstance>
  28. </send>
  29. <init>
  30. <cmb_info>
  31. <initbasesuppdeptcd>
  32. <basesuppdeptcd/>
  33. <depthngnm/>
  34. </initbasesuppdeptcd>
  35. </cmb_info>
  36. </init>
  37. <hidden>
  38. <item/>
  39. </hidden>
  40. </root>
  41. </instance>
  42. <submission id="TRAER02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info"/>
  43. <submission id="TXAER02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
  44. <submission id="TRAER02202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/examcurelist"/>
  45. <script type="javascript" ev:event="xforms-ready">
  46. <![CDATA[
  47. submit("TRAER02201");
  48. readfunc();
  49. ]]>
  50. </script>
  51. <submission id="TRZBC00101"/>
  52. </model>
  53. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  56. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  57. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  58. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  59. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  60. <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
  61. <script type="javascript">
  62. <![CDATA[
  63. function readfunc() {
  64. model.removeNodeset("/root/main/examcurelist/item");
  65. submit("TRAER02202");
  66. }
  67. function datacheck(){
  68. var ssuppdeptcd = "";
  69. var ssuppdeptcd1 = "";
  70. var sbaseexcuroomcd = "";
  71. for (var i = 1; i < datagrid1.rows; i++){
  72. ssuppdeptcd = model.getValue("/root/main/examcurelist/item[" + i + "]/suppdeptcd");
  73. if (ssuppdeptcd == ""){
  74. messageBox(i + "번째행의 수행부서는 필수 선택항목입니다.", "E999", "");
  75. return false;
  76. }
  77. sbaseexcuroomcd = model.getValue("/root/main/examcurelist/item[" + i + "]/baseexcuroomcd");
  78. if (sbaseexcuroomcd == ""){
  79. messageBox(i + "번째행의 기준검사실코드는 필수 선택항목입니다.", "E999", "");
  80. return false;
  81. }
  82. }
  83. for (var i = 1; i < datagrid1.rows - 1; i++){
  84. ssuppdeptcd = model.getValue("/root/main/examcurelist/item[" + i + "]/suppdeptcd");
  85. for (var j = 1; j < datagrid1.rows; j++){
  86. ssuppdeptcd1 = model.getValue("/root/main/examcurelist/item[" + j + "]/suppdeptcd");
  87. if (i != j){
  88. if (ssuppdeptcd == ssuppdeptcd1){
  89. messageBox(j + "번째에서 중복된 자료가 존재합니다", "E999", "");
  90. return false;
  91. }
  92. }
  93. }
  94. }
  95. }
  96. ]]>
  97. </script>
  98. </xhtml:head>
  99. <xhtml:body guideline="1,710;2,654;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  100. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:688px; height:642px; ">
  101. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:126px; height:13px; ">기준수행부서 관리</caption>
  102. <line id="line1" class="line_1" style="x1:3px; y1:28px; x2:683px; y2:29px; "/>
  103. <button id="btn_grdadd" class="btn2_letter3" style="left:575px; top:5px; width:53px; height:19px; ">
  104. <caption>행추가</caption>
  105. <script type="javascript" ev:event="DOMActivate">
  106. <![CDATA[
  107. datagrid1.addRow();
  108. var irow = datagrid1.row;
  109. model.setValue("/root/main/examcurelist/item[" + irow + "]/iudgb", 'I');
  110. ]]>
  111. </script>
  112. </button>
  113. <button id="btn_grddel" class="btn2_letter3" disabled="false" style="left:631px; top:5px; width:53px; height:19px; ">
  114. <caption>행삭제</caption>
  115. <script type="javascript" ev:event="DOMActivate">
  116. <![CDATA[
  117. var irow = datagrid1.row;
  118. model.setValue("/root/main/examcurelist/item[" + irow + "]/iudgb", 'D');
  119. datagrid1.deleteRow(irow);
  120. ]]>
  121. </script>
  122. </button>
  123. <datagrid id="datagrid1" nodeset="/root/main/examcurelist/item" caption="수행부서^기준검사실코드^기준검사실명^caption1" colsep="^" colwidth="228, 146, 279, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:685px; height:570px; ">
  124. <col disabled="true" ref="suppdeptcd" type="combo">
  125. <choices>
  126. <itemset nodeset="/root/init/cmb_info/initbasesuppdeptcd">
  127. <label ref="depthngnm"/>
  128. <value ref="basesuppdeptcd"/>
  129. </itemset>
  130. </choices>
  131. </col>
  132. <col ref="baseexcuroomcd" type="inputbutton"/>
  133. <col ref="baseexcuroomnm"/>
  134. <col ref="iudgb" visibility="hidden"/>
  135. <script type="javascript" ev:event="onbuttonclick">
  136. <![CDATA[
  137. var colidx = datagrid1.col;
  138. if(datagrid1.colAttribute(colidx, "ref") == "baseexcuroomcd"){
  139. var rownum = datagrid1.row;
  140. model.makeValue("/root/hidden/checkseq","23");
  141. window.load( "SPAEA02301_코드조회.xrw","modal","code", "left:100px; top:150px; width:530px; height:380px;min:hidden;max:hidden;resize:false;" );
  142. datagrid1.rowStatus(datagrid1.row) = 2;
  143. }
  144. ]]>
  145. </script>
  146. </datagrid>
  147. </group>
  148. <group id="grp_btn" style="left:0px; top:620px; width:685px; height:34px; ">
  149. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:179px; y2:0px; "/>
  150. <button id="btn_save" class="btn4_letter2" style="left:620px; top:5px; width:56px; height:22px; ">
  151. <caption>저장</caption>
  152. <script type="javascript" ev:event="DOMActivate">
  153. <![CDATA[
  154. if (datacheck() == false){
  155. return;
  156. }
  157. var update = getGridUpdateData(datagrid1);
  158. if(update == ""){
  159. messageBox("업데이트 정보가 없습니다.", "I");
  160. return 0;
  161. } else {
  162. model.setValue("/root/send/req/data", update);
  163. submit("TXAER02201");
  164. }
  165. readfunc();
  166. ]]>
  167. </script>
  168. </button>
  169. </group>
  170. <group id="grp_tle" style="left:0px; top:0px; width:685px; height:13px; ">
  171. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:188px; height:14px; ">검사/치료 기준수행부서 관리</caption>
  172. </group>
  173. </xhtml:body>
  174. </xhtml:html>