SPCHT00800_판정코드검색.xrw 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPCHT00800.xrw
  4. * 설 명 : 판정코드검색
  5. * 설 계 자 : 차재훈
  6. * 작 성 자 : 차재훈
  7. * 작 성 일 : 2008.08.20
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>판정코드 검색</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <etclst>
  20. <item>
  21. <etccdkey/>
  22. <etccd/>
  23. <etcdetlnm/>
  24. </item>
  25. </etclst>
  26. <detlcodelst>
  27. <item>
  28. <etcdetlcd/>
  29. <etcdetlnm/>
  30. </item>
  31. </detlcodelst>
  32. </main>
  33. <send>
  34. <clscd/>
  35. <req>
  36. <clscd/>
  37. <etccd/>
  38. </req>
  39. </send>
  40. <init>
  41. <selectinput>
  42. <item>
  43. <etcdetlnm/>
  44. <etcdetlcd/>
  45. </item>
  46. </selectinput>
  47. </init>
  48. <hidden>
  49. <item/>
  50. </hidden>
  51. </root>
  52. </instance>
  53. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  55. <script type="javascript" ev:event="xforms-ready">
  56. <![CDATA[
  57. var rsltflag = opener.window.javascript.getParameter("rsltflag");
  58. if( rsltflag == "O"){
  59. cmb_clscd.visible = false;
  60. cmb_clscd2.disabled = true;
  61. model.setValue("/root/send/clscd", "R");//선택형
  62. fGetEtcList();
  63. }else{
  64. cmb_clscd.visible = true;
  65. cmb_clscd2.visible = false;
  66. }
  67. model.refresh();
  68. ]]>
  69. </script>
  70. <submission id="TRCHT00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/etclst"/>
  71. <submission id="TRCHT00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/detlcodelst"/>
  72. </model>
  73. <script type="javascript">
  74. <![CDATA[
  75. /**
  76. * 분류코드 리스트 조회
  77. */
  78. function fGetEtcList(){
  79. model.removeNodeset("/root/main/etclst/item");
  80. model.removeNodeset("/root/main/detlcodelst/item");
  81. var ret = submit("TRCHT00801");
  82. return ret;
  83. }
  84. /**
  85. * 상세코드 리스트 조회
  86. */
  87. function fGetDetlCodeList(){
  88. var idx = grd_etclst.row;
  89. if( idx < 1) return ;
  90. model.removeNodeset("/root/main/detlcodelst/item");
  91. model.setValue("/root/send/req/clscd", model.getValue("/root/send/clscd"));
  92. model.setValue("/root/send/req/etccd", grd_etclst.valueMatrix(idx, grd_etclst.colRef("etccd")));
  93. var ret = submit("TRCHT00802");
  94. return ret;
  95. }
  96. //=========================//
  97. //선택된 값 부모창에 넘김 //
  98. //=========================//
  99. function fGetOpenerSend(){
  100. var grid = grd_detlcodelst;
  101. var rsltflag = opener.window.javascript.getParameter("rsltflag");
  102. var judgcdpath = opener.window.javascript.getParameter("receive_judgcd_path");
  103. var judgnmpath = opener.window.javascript.getParameter("receive_judgnm_path");
  104. var clscd_path = opener.window.javascript.getParameter("receive_clscd_path");
  105. var etccd_path = opener.window.javascript.getParameter("receive_etccd_path");
  106. var etcdetlcd_path = opener.window.javascript.getParameter("receive_etcdetlcd_path");
  107. var etcdetlnm_path = opener.window.javascript.getParameter("receive_etcdetlnm_path");
  108. if (grid.row > 0){
  109. var clscd = model.getValue("/root/send/req/clscd");
  110. var etccd = model.getValue("/root/send/req/etccd");
  111. var etcdetlcd = grid.valueMatrix( grid.row, grid.colRef("etcdetlcd"));
  112. var etcdetlnm = grid.valueMatrix( grid.row, grid.colRef("etcdetlnm"));
  113. var joincd = clscd + etccd + etcdetlcd;
  114. if(rsltflag == "joincode"){//code합하기
  115. opener.model.setValue(judgcdpath, joincd);
  116. opener.model.setValue(judgnmpath, etcdetlnm);
  117. }else if(rsltflag == "O"){//선택형
  118. opener.model.setValue(judgnmpath, etcdetlnm);
  119. }else if(rsltflag == "4code"){//4code
  120. opener.model.setValue(clscd_path, clscd);
  121. opener.model.setValue(etccd_path, etccd);
  122. opener.model.setValue(etcdetlcd_path, etcdetlcd);
  123. opener.model.setValue(etcdetlnm_path, etcdetlnm);
  124. }
  125. opener.model.refresh();
  126. window.close();
  127. } else {
  128. messageBox("조회하신 후 목록을 ","C002");
  129. }
  130. }
  131. ]]>
  132. </script>
  133. </xhtml:head>
  134. <xhtml:body pagewidth="780" pageheight="520" guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  135. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:755px; height:465px; ">
  136. <caption id="caption1" class="tit_2" style="left:5px; top:40px; width:78px; height:13px; ">분류코드</caption>
  137. <line id="line1" class="line_1" style="x1:0px; y1:55px; x2:360px; y2:55px; "/>
  138. <group id="grp_sea" style="left:0px; top:0px; width:750px; height:35px; vertical-align:top; ">
  139. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:750px; height:35px; "/>
  140. <caption id="caption2" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">대분류 :</caption>
  141. <line id="line13" class="line_4" style="x1:662px; y1:7px; x2:662px; y2:29px; "/>
  142. <select1 id="cmb_clscd" ref="/root/send/clscd" class="combo_s_essential" appearance="minimal" style="left:105px; top:8px; width:150px; height:19px; ">
  143. <choices>
  144. <item>
  145. <label>1차건진</label>
  146. <value>F</value>
  147. </item>
  148. <item>
  149. <label>2차건진</label>
  150. <value>S</value>
  151. </item>
  152. </choices>
  153. <script type="javascript" ev:event="xforms-select">
  154. <![CDATA[
  155. fGetEtcList();
  156. ]]>
  157. </script>
  158. </select1>
  159. <select1 id="cmb_clscd2" ref="/root/send/clscd" class="combo_s_essential" appearance="minimal" style="left:105px; top:8px; width:150px; height:19px; ">
  160. <choices>
  161. <item>
  162. <label>선택형결과</label>
  163. <value>R</value>
  164. </item>
  165. </choices>
  166. </select1>
  167. <button id="btn_search" class="btn1_letter2" style="left:678px; top:7px; width:56px; height:22px; ">
  168. <caption>조회</caption>
  169. <script type="javascript" ev:event="DOMActivate">
  170. <![CDATA[
  171. fGetEtcList();
  172. ]]>
  173. </script>
  174. </button>
  175. </group>
  176. <caption id="caption3" class="tit_2" style="left:371px; top:40px; width:78px; height:13px; ">상세코드</caption>
  177. <line id="line2" class="line_1" style="x1:366px; y1:55px; x2:750px; y2:55px; "/>
  178. <datagrid id="grd_etclst" nodeset="/root/main/etclst/item" caption="caption1^코드^분류코드명" colsep="^" colwidth="0, 100, 214" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:60px; width:360px; height:400px; ">
  179. <col ref="etccdkey" visibility="hidden"/>
  180. <col ref="etccd" maxlength="12"/>
  181. <col ref="etcdetlnm" maxlength="50"/>
  182. <script type="javascript" ev:event="ondblclick">
  183. <![CDATA[
  184. fGetDetlCodeList();
  185. ]]>
  186. </script>
  187. </datagrid>
  188. <datagrid id="grd_detlcodelst" nodeset="/root/main/detlcodelst/item" caption="코드^상세코드명" colsep="^" colwidth="100, 240" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:366px; top:60px; width:384px; height:400px; ">
  189. <col ref="etcdetlcd" maxlength="6"/>
  190. <col ref="etcdetlnm" maxlength="50"/>
  191. <script type="javascript" ev:event="ondblclick">
  192. <![CDATA[
  193. fGetOpenerSend();
  194. ]]>
  195. </script>
  196. </datagrid>
  197. </group>
  198. <group id="grp_btn" style="left:0px; top:465px; width:755px; height:27px; ">
  199. <button id="btn_cancel" class="btn4_letter2" style="left:699px; top:5px; width:56px; height:22px; ">
  200. <caption>취소</caption>
  201. <script type="javascript" ev:event="DOMActivate">
  202. <![CDATA[
  203. window.close();
  204. ]]>
  205. </script>
  206. </button>
  207. <button id="btn_conform" class="btn4_letter2" style="left:640px; top:5px; width:56px; height:22px; ">
  208. <caption>확인</caption>
  209. <script type="javascript" ev:event="DOMActivate">
  210. <![CDATA[
  211. fGetOpenerSend();
  212. ]]>
  213. </script>
  214. </button>
  215. </group>
  216. </xhtml:body>
  217. </xhtml:html>