SPPIZ00800_산정코드조회.xrw 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SPPIZ00800_산정코드조회.xrw
  4. * 수정이력
  5. * - 2007.05.01 / 최초작성 / 이창재
  6. * - 2007.07.25 / 쿼리변경으로 send 조건중 repcd 노드 삭제 / 정주미
  7. *
  8. * - opener 에서 전달받는 조건 경로
  9. /root/hidden/cond
  10. * - opener 로 전달하는 결과값 경로
  11. * opener.root.hidden.sppiz00800.rslt.clcd
  12. -->
  13. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  14. <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">
  15. <xhtml:head>
  16. <xhtml:title>산정 코드 조회</xhtml:title>
  17. <model id="model1">
  18. <instance id="instance1">
  19. <root xmlns="">
  20. <send>
  21. <insukind/>
  22. <estmcls/>
  23. <estmmncd/>
  24. <todd/>
  25. </send>
  26. <main>
  27. <list1>
  28. <clcd>
  29. <estmclsnm/>
  30. <estmcls/>
  31. <estmmncd/>
  32. <estmcd/>
  33. <estmcdnm/>
  34. <addmthd/>
  35. <pnt/>
  36. <amt/>
  37. <rate/>
  38. <todd/>
  39. </clcd>
  40. </list1>
  41. </main>
  42. <init>
  43. <P0008list>
  44. </P0008list>
  45. <P0173list>
  46. <P0173>
  47. <cdnm/>
  48. <cdid/>
  49. </P0173>
  50. </P0173list>
  51. </init>
  52. <hidden>
  53. <cond/>
  54. </hidden>
  55. </root>
  56. </instance>
  57. <script type="javascript" ev:event="xforms-ready">
  58. <![CDATA[
  59. // 공통코드를 조회한다.
  60. // (ZBC001.js) com.ZBCMCODE에서 기초코드 값을 가져와서 Combo 컨트롤 item으로 설정하기 위해 사용한다.
  61. zbcfGetCodeList(new Array("P0008","P0173" ), new Array("/root/init/P0008list","/root/init/P0173list") );
  62. if (checkOpener()) {
  63. fCheckOpener(); // 팝업용인 경우
  64. // 팝업용 조회의 경우 opener에서 전달한 보험유형과 산정분류를 변경할 수 없다.
  65. cmb_insukind.disabled = true; // 보험유형
  66. cmb_estmcls.disabled = true; // 산정분류
  67. } else {
  68. fInitialize(); // 화면을 초기화한다.
  69. model.refresh();
  70. // 팝업용 화면이 아닌 경우 "닫기" Btn은 사용하지 않는다.
  71. btn_close.disabled = true;
  72. }
  73. ]]>
  74. </script>
  75. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  76. <submission id="TRPIZ00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list1"/>
  77. </model>
  78. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  80. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  82. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  83. <script type="javascript">
  84. <![CDATA[
  85. // 팝업용인 경우
  86. function fCheckOpener() {
  87. model.copyNode("/root/send", "/root/hidden/cond");
  88. if (checkOpener()) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
  89. if (model.getValue("/root/send/insukind") && model.getValue("/root/send/estmcls")) {
  90. model.resetInstanceNode("/root/send/estmmncd");
  91. submit("TRPIZ00801");
  92. var cond_estmmncd = model.getValue("/root/hidden/cond/estmmncd");
  93. if (cond_estmmncd) {
  94. for (var i = 1; i < grd_clcdmast.rows; i++) {
  95. if (cond_estmmncd == model.getValue("/root/main/list1/clcd["+ i +"]/estmmncd")) {
  96. grd_clcdmast.row = i;
  97. i = grd_clcdmast.rows;
  98. }
  99. }
  100. }
  101. }
  102. }
  103. }
  104. // 화면을 초기화한다.
  105. function fInitialize() {
  106. model.removeNodeset("/root/main/list1/clcd");
  107. model.resetInstanceNode("/root/send");
  108. model.setValue("/root/send/insukind", "11"); // 보험유형은 필수항목이므로 "건강보험"을 기본값으로 설정한다.
  109. }
  110. ]]>
  111. </script>
  112. </xhtml:head>
  113. <xhtml:body pagewidth="913" pageheight="540" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  114. <group id="grp_biz" overflow="scroll" scroll="auto" style="left:0px; top:0px; width:897px; height:513px; ">
  115. <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:121px; height:14px; ">산정코드조회내역</caption>
  116. <line id="line1" class="line_1" style="width:896px; x1:0px; y1:60px; x2:896px; y2:60px; "/>
  117. <datagrid id="grd_clcdmast" nodeset="/root/main/list1/clcd" class="datagrid2" caption="산정분류명^산정분류&#xA;코드^산정의미&#xA;코드^산정코드^산정명칭^방법^점수^가격^요율^종료일자" colsep="^" colwidth="120, 56, 57, 55, 270, 40, 60, 60, 55, 75" dataheight="25" ellipsis="true" explorerbar="sortshowmove" mergecellsfixedcols="byrow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:65px; width:896px; height:448px; ">
  118. <col disabled="true" ref="estmclsnm" type="combo">
  119. <choices>
  120. <itemset nodeset="/root/init/P0173list/P0173">
  121. <label ref="cdnm"/>
  122. <value ref="cdid"/>
  123. </itemset>
  124. </choices>
  125. </col>
  126. <col ref="estmcls" style="text-align:center; "/>
  127. <col ref="estmmncd" style="text-align:center; "/>
  128. <col ref="estmcd" style="text-align:center; "/>
  129. <col ref="estmcdnm"/>
  130. <col ref="addmthd" style="text-align:center; "/>
  131. <col ref="pnt" format="#.00" style="text-align:right; "/>
  132. <col ref="amt" style="text-align:right; "/>
  133. <col ref="rate" format="#.00" style="text-align:right; "/>
  134. <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
  135. <script type="javascript" ev:event="ondblclick">
  136. <![CDATA[
  137. if (grd_clcdmast.isCell(event.target) && grd_clcdmast.row >= grd_clcdmast.fixedRows) {
  138. if (checkOpener()) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
  139. var row = grd_clcdmast.row;
  140. model.copyNode(opener.root.hidden.sppiz00800.rslt.clcd, "/root/main/list1/clcd["+row+"]");
  141. window.close();
  142. }
  143. }
  144. ]]>
  145. </script>
  146. <script type="javascript" ev:event="onaftersort">
  147. <![CDATA[
  148. grd_clcdmast.gridToInstance();
  149. ]]>
  150. </script>
  151. </datagrid>
  152. <group id="group2" style="left:0px; top:0px; width:896px; height:35px; vertical-align:top; ">
  153. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:896px; height:35px; "/>
  154. <caption id="caption4" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">보험유형 :</caption>
  155. <caption id="caption5" class="search_name" style="left:433px; top:9px; width:112px; height:17px; ">산정의미코드 :</caption>
  156. <caption id="caption6" class="search_name" style="left:605px; top:9px; width:86px; height:17px; ">종료일자 :</caption>
  157. <line id="line13" class="line_4" style="x1:805px; y1:7px; x2:805px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  158. <button id="btn_search" class="btn1_letter2" navindex="5" style="left:820px; top:7px; width:56px; height:22px; ">
  159. <caption>조회</caption>
  160. <script type="javascript" ev:event="onclick">
  161. <![CDATA[
  162. if(model.getValue("/root/send/insukind") == "") {
  163. messageBox("보험유형을","C002");
  164. model.setFocus("cmb_insukind");
  165. return false;
  166. }
  167. model.removenode("/root/main/list1");
  168. submit("TRPIZ00801");
  169. ]]>
  170. </script>
  171. </button>
  172. <caption id="caption2" class="search_name" style="left:224px; top:9px; width:86px; height:17px; ">산정분류 :</caption>
  173. <select1 id="cmb_insukind" ref="/root/send/insukind" class="combo_s_essential" navindex="1" appearance="minimal" style="left:104px; top:8px; width:100px; height:19px; ">
  174. <choices>
  175. <itemset nodeset="/root/init/P0008list/P0008[cdid != '42' and cdid != '51' and cdid != '61' and cdid != '71']">
  176. <label ref="cdnm"/>
  177. <value ref="cdid"/>
  178. </itemset>
  179. </choices>
  180. </select1>
  181. <select1 id="cmb_estmcls" ref="/root/send/estmcls" navindex="2" appearance="minimal" style="left:313px; top:8px; width:100px; height:19px; ">
  182. <choices>
  183. <itemset nodeset="/root/init/P0173list/P0173[cdid != '-']">
  184. <label ref="cdnm"/>
  185. <value ref="cdid"/>
  186. </itemset>
  187. </choices>
  188. </select1>
  189. <input id="ipt_estmmncd" ref="/root/send/estmmncd" class="input_search" navindex="3" maxlength="5" format="99999" style="left:548px; top:8px; width:37px; height:19px; "/>
  190. <input id="ipt_todd" ref="/root/send/todd" class="input_search" navindex="4" inputtype="date" format="yyyy-mm-dd" style="left:694px; top:8px; width:91px; height:19px; "/>
  191. </group>
  192. </group>
  193. <group id="grp_btn" scroll="auto" style="left:0px; top:513px; width:897px; height:27px; ">
  194. <button id="btn_close" class="btn4_letter2" navindex="7" style="left:840px; top:5px; width:56px; height:22px; ">
  195. <caption>닫기</caption>
  196. <script type="javascript" ev:event="DOMActivate">
  197. <![CDATA[
  198. window.close(); // F5 실행시 IE를 종료시킨다.
  199. ]]>
  200. </script>
  201. </button>
  202. <button id="btn_init" class="btn4_letter3" navindex="6" style="left:769px; top:5px; width:68px; height:27px; ">
  203. <caption>초기화</caption>
  204. <script type="javascript" ev:event="DOMActivate">
  205. <![CDATA[
  206. fInitialize();
  207. if (checkOpener()) { // 팝업용 조회의 경우 opener에서 전달한 보험유형과 산정분류를 설정한다.
  208. model.setValue("/root/send/insukind", model.getValue("/root/hidden/cond/insukind"));
  209. model.setValue("/root/send/estmcls", model.getValue("/root/hidden/cond/estmcls"));
  210. }
  211. model.refresh();
  212. ]]>
  213. </script>
  214. </button>
  215. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:896px; y2:0px; "/>
  216. </group>
  217. </xhtml:body>
  218. </xhtml:html>