SPPIZ01000_심사수정사유관리.xrw 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SPPIZ01000_심사수정사유관리.xrw
  4. * 수정이력
  5. * - 2007.07.17 / 최초작성 / 정주미
  6. * /root/hidden/sppiz01000/cond/cdcls : opener종류(사후입원, 사후외래, 재원)
  7. * /root/hidden/sppiz01000/cond/cdid : 이전에 선택된 수정사유코드
  8. * /root/hidden/sppiz01000/rslt/cdid : 현재 선택된 수정사유코드
  9. -->
  10. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  11. <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">
  12. <xhtml:head>
  13. <xhtml:title>심사수정 사유관리</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. </main>
  19. <send>
  20. </send>
  21. <init>
  22. <P0153list>
  23. <P0153/>
  24. </P0153list>
  25. <P0127list>
  26. <P0127/>
  27. </P0127list>
  28. <adjtresndesc/>
  29. </init>
  30. <hidden>
  31. <sppiz01000>
  32. <cond>
  33. <cdcls/>
  34. <cdid/>
  35. </cond>
  36. <rslt>
  37. <cdid/>
  38. <adjtresndesc/>
  39. </rslt>
  40. </sppiz01000>
  41. </hidden>
  42. </root>
  43. </instance>
  44. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  45. <script type="javascript" ev:event="xforms-ready">
  46. <![CDATA[
  47. fInitialize(); // 화면을 초기화한다..
  48. ]]>
  49. </script>
  50. </model>
  51. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  52. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  53. <script type="javascript">
  54. <![CDATA[
  55. // 화면을 초기화한다.
  56. function fInitialize() {
  57. model.removeNodeset("/root/init/P0153list/P0153");
  58. model.removeNodeset("/root/init/P0127list/P0127");
  59. // 공통코드를 조회한다.
  60. if (checkOpener()) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
  61. var selectedCd = model.getValue("/root/hidden/sppiz01000/cond/cdid");
  62. if (model.getValue("/root/hidden/sppiz01000/cond/cdcls") == "aftin") { // opener가 사후 입원이면 P0127
  63. grd_judgresn0153.visible = false;
  64. grd_judgresn0127.visible = true;
  65. // (ZBC001.js) com.ZBCMCODE에서 기초코드 값을 가져와서 Combo 컨트롤 item으로 설정하기 위해 사용한다.
  66. zbcfGetCodeList( new Array("P0127"), new Array("/root/init/P0127list" ) );
  67. model.refresh();
  68. if (selectedCd) { // 기존에 선택된 사유
  69. for (var i = 1; i < grd_judgresn0127.rows; i++) {
  70. if (selectedCd == model.getValue("/root/init/P0127list/P0127[" + i + "]/cdid")) {
  71. grd_judgresn0127.row = i;
  72. i = grd_judgresn0127.rows;
  73. }
  74. }
  75. }
  76. }
  77. else if (model.getValue("/root/hidden/sppiz01000/cond/cdcls") == "aftout") { // opener가 사후 외래이면 P0127
  78. // 현재는 사후입원과 사후외래가 동일한 수정사유(같은 공통코드)를 사용하나, 추후 변경될수 있으므로 로직을 분리함
  79. grd_judgresn0153.visible = false;
  80. grd_judgresn0127.visible = true;
  81. // (ZBC001.js) com.ZBCMCODE에서 기초코드 값을 가져와서 Combo 컨트롤 item으로 설정하기 위해 사용한다.
  82. zbcfGetCodeList( new Array("P0127"), new Array("/root/init/P0127list" ) );
  83. model.refresh();
  84. if (selectedCd) { // 기존에 선택된 사유
  85. for (var i = 1; i < grd_judgresn0127.rows; i++) {
  86. if (selectedCd == model.getValue("/root/init/P0127list/P0127[" + i + "]/cdid")) {
  87. grd_judgresn0127.row = i;
  88. i = grd_judgresn0127.rows;
  89. }
  90. }
  91. }
  92. } else { // opener가 사전이면 P0153
  93. grd_judgresn0153.visible = true;
  94. grd_judgresn0127.visible = false;
  95. // (ZBC001.js) com.ZBCMCODE에서 기초코드 값을 가져와서 Combo 컨트롤 item으로 설정하기 위해 사용한다.
  96. zbcfGetCodeList( new Array("P0153"), new Array("/root/init/P0153list" ) );
  97. model.refresh();
  98. if (selectedCd) { // 기존에 선택된 사유
  99. for (var i = 1; i < grd_judgresn0153.rows; i++) {
  100. if (selectedCd == model.getValue("/root/init/P0153list/P0153[" + i + "]/cdid")) {
  101. grd_judgresn0153.row = i;
  102. i = grd_judgresn0153.rows;
  103. }
  104. }
  105. }
  106. }
  107. }
  108. }
  109. ]]>
  110. </script>
  111. </xhtml:head>
  112. <xhtml:body pagewidth="243" pageheight="400" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  113. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:227px; height:365px; ">
  114. <datagrid id="grd_judgresn0153" nodeset="/root/init/P0153list/P0153" caption="코드^사전 수정사유 명칭" colsep="^" colwidth="45, 180" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" selectionmode="byrow" style="left:0px; top:30px; width:227px; height:186px; ">
  115. <col ref="cdid"/>
  116. <col ref="cdnm"/>
  117. <script type="javascript" ev:event="ondblclick">
  118. <![CDATA[
  119. if (checkOpener()) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
  120. var judgresn = model.getValue( "/root/init/P0153list/P0153[" + grd_judgresn0153.row + "]/cdid");
  121. var adjtresndesc = model.getValue("/root/init/adjtresndesc");
  122. opener.model.makeNode("/root/hidden/sppiz01000/rslt/cdid");
  123. opener.model.makeNode("/root/hidden/sppiz01000/rslt/adjtresndesc");
  124. model.setValue(opener.root.hidden.sppiz01000.rslt.cdid, judgresn);
  125. model.setValue(opener.root.hidden.sppiz01000.rslt.adjtresndesc, adjtresndesc);
  126. window.close(); // F5 실행시 IE를 종료시킨다.
  127. }
  128. ]]>
  129. </script>
  130. </datagrid>
  131. <datagrid id="grd_judgresn0127" nodeset="/root/init/P0127list/P0127" caption="코드^사후 수정사유 명칭" colsep="^" colwidth="45, 180" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" selectionmode="byrow" style="left:0px; top:30px; width:227px; height:186px; ">
  132. <col ref="cdid"/>
  133. <col ref="cdnm"/>
  134. <script type="javascript" ev:event="ondblclick">
  135. <![CDATA[
  136. if (checkOpener()) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
  137. var judgresn = model.getValue( "/root/init/P0127list/P0127[" + grd_judgresn0127.row + "]/cdid");
  138. var adjtresndesc = model.getValue("/root/init/adjtresndesc");
  139. opener.model.makeNode("/root/hidden/sppiz01000/rslt/cdid");
  140. opener.model.makeNode("/root/hidden/sppiz01000/rslt/adjtresndesc");
  141. model.setValue(opener.root.hidden.sppiz01000.rslt.cdid, judgresn);
  142. model.setValue(opener.root.hidden.sppiz01000.rslt.adjtresndesc, adjtresndesc);
  143. window.close(); // F5 실행시 IE를 종료시킨다.
  144. }
  145. ]]>
  146. </script>
  147. </datagrid>
  148. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:69px; height:14px; ">수정사유</caption>
  149. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:227px; y2:25px; "/>
  150. <caption id="caption4" class="tit_2" style="left:5px; top:220px; width:95px; height:14px; ">수정세부사유</caption>
  151. <line id="line4" class="line_1" style="x1:0px; y1:235px; x2:227px; y2:235px; "/>
  152. <textarea id="textarea1" ref="/root/init/adjtresndesc" style="left:0px; top:240px; width:227px; height:125px; text-align:left; vertical-align:top; "/>
  153. </group>
  154. <group id="grp_btn" scroll="auto" style="left:0px; top:366px; width:227px; height:27px; ">
  155. <button id="btn_confirm" class="btn4_letter2" visibility="hidden" style="left:171px; top:5px; width:56px; height:22px; ">
  156. <caption>확인</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. if (checkOpener()) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
  160. if (grd_judgresn0153.visible == true) {
  161. var judgresn = model.getValue( "/root/init/P0153list/P0153[" + grd_judgresn0153.row + "]/cdid");
  162. var adjtresndesc = model.getValue("/root/init/adjtresndesc");
  163. opener.model.makeNode("/root/hidden/sppiz01000/rslt/cdid");
  164. opener.model.makeNode("/root/hidden/sppiz01000/rslt/adjtresndesc");
  165. model.setValue(opener.root.hidden.sppiz01000.rslt.cdid, judgresn);
  166. model.setValue(opener.root.hidden.sppiz01000.rslt.adjtresndesc, adjtresndesc);
  167. } else {
  168. var judgresn = model.getValue( "/root/init/P0127list/P0127[" + grd_judgresn0127.row + "]/cdid");
  169. var adjtresndesc = model.getValue("/root/init/adjtresndesc");
  170. opener.model.makeNode("/root/hidden/sppiz01000/rslt/cdid");
  171. opener.model.makeNode("/root/hidden/sppiz01000/rslt/adjtresndesc");
  172. model.setValue(opener.root.hidden.sppiz01000.rslt.cdid, judgresn);
  173. model.setValue(opener.root.hidden.sppiz01000.rslt.adjtresndesc, adjtresndesc);
  174. }
  175. } else {
  176. messageBox("상위화면이 변경되어 데이터를 전달할 수", "I004"); ///상위화면이 변경되어 데이터를 전달할 수 없습니다.
  177. }
  178. window.close(); // F5 실행시 IE를 종료시킨다.
  179. ]]>
  180. </script>
  181. </button>
  182. <button id="btn_cancel" class="btn4_letter2" visibility="hidden" style="left:136px; top:5px; width:56px; height:22px; ">
  183. <caption>취소</caption>
  184. <close ev:event="DOMActivate"/>
  185. </button>
  186. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:227px; y2:0px; "/>
  187. </group>
  188. </xhtml:body>
  189. </xhtml:html>