SPPIF30302_접수번호조회.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  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. <send>
  10. <termflag/>
  11. <fromdd/>
  12. <todd/>
  13. <insukind/>
  14. </send>
  15. <main>
  16. <list01>
  17. <gridacptnolist>
  18. <insukind/>
  19. <ioflag/>
  20. <ordfildcd/>
  21. <clamflagcd/>
  22. <clamno/>
  23. <acptno/>
  24. <acptdd/>
  25. <cnt/>
  26. <judgdg/>
  27. <instcd/>
  28. </gridacptnolist>
  29. </list01>
  30. </main>
  31. </root>
  32. </instance>
  33. <submission id="TRPIF30304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/>
  34. </model>
  35. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  36. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  37. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  38. <script type="javascript" ev:event="xforms-ready">
  39. <![CDATA[
  40. // 공통코드 Load작업
  41. CommCode_Load();
  42. ]]>
  43. </script>
  44. <script type="javascript">
  45. <![CDATA[
  46. // 공통코드 Load작업
  47. function CommCode_Load() {
  48. // 관련 Control 초기화
  49. if(model.getValue("/root/send/insukind") == "11") {
  50. cap_title.value = "접수번호조회(보험)";
  51. } else if(model.getValue("/root/send/insukind") == "21") {
  52. cap_title.value = "접수번호조회(의료급여)";
  53. } else if(model.getValue("/root/send/insukind") == "41") {
  54. cap_title.value = "접수번호조회(산재)";
  55. }
  56. }
  57. ]]>
  58. </script>
  59. </xhtml:head>
  60. <xhtml:body pagewidth="700" pageheight="400">
  61. <group id="group3" scroll="auto" style="left:5px; top:0px; width:682px; height:353px; ">
  62. <line id="line8" class="line_1" style="x1:0px; y1:87px; x2:682px; y2:87px; "/>
  63. <group id="group4" style="left:0px; top:25px; width:680px; height:35px; vertical-align:top; ">
  64. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:680px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  65. <line id="line18" class="line_4" style="x1:579px; y1:7px; x2:579px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  66. <caption id="caption31" style="left:196px; top:11px; width:15px; height:15px; ">~</caption>
  67. <select1 id="cmb_termflag" ref="/root/send/termflag" class="combo_search" appearance="minimal" style="left:9px; top:8px; width:100px; height:19px; ">
  68. <choices>
  69. <item>
  70. <label>진료년월</label>
  71. <value>1</value>
  72. </item>
  73. <item>
  74. <label>청구년월</label>
  75. <value>2</value>
  76. </item>
  77. <item>
  78. <label>접수일자</label>
  79. <value>3</value>
  80. </item>
  81. </choices>
  82. <script type="javascript" ev:event="xforms-value-changed">
  83. <![CDATA[
  84. if(cmb_termflag.value == "1" || cmb_termflag.value== "2") {
  85. ipt_fromdd.attribute("format") = "yyyy-mm";
  86. ipt_todd.attribute("format") = "yyyy-mm";
  87. model.setFocus("ipt_fromdd");
  88. model.refresh();
  89. } else if(cmb_termflag.value == "3") {
  90. ipt_fromdd.attribute("format") = "yyyy-mm-dd";
  91. ipt_todd.attribute("format") = "yyyy-mm-dd";
  92. model.setFocus("ipt_fromdd");
  93. model.refresh();
  94. }
  95. ]]>
  96. </script>
  97. </select1>
  98. <input id="ipt_fromdd" ref="/root/send/fromdd" style="left:120px; top:8px; width:70px; height:19px; ">
  99. <script type="javascript" ev:event="DOMFocusOut">
  100. <![CDATA[
  101. ipt_todd.value = ipt_fromdd.value;
  102. ]]>
  103. </script>
  104. </input>
  105. <input id="ipt_todd" ref="/root/send/todd" style="left:215px; top:8px; width:70px; height:19px; "/>
  106. <button id="btn_cancel" class="btn1_letter2" style="left:600px; top:8px; width:56px; height:22px; ">
  107. <caption>조회</caption>
  108. <script type="javascript" ev:event="DOMActivate">
  109. <![CDATA[
  110. if(cmb_termflag.value == null || cmb_termflag.value == "") {
  111. alert("조회조건을 선택해 주세요");
  112. model.setFocus("cmb_termflag");
  113. return false;
  114. } else if(ipt_fromdd.value== "" || ipt_fromdd.value== null) {
  115. alert("시작일을 입력해 주세요");
  116. model.setFocus("ipt_fromdd");
  117. return false;
  118. }else if(ipt_todd.value== "" || ipt_todd.value== null) {
  119. alert("종료일을 입력해 주세요");
  120. model.setFocus("ipt_todd");
  121. return false;
  122. } else if(ipt_fromdd.value > ipt_todd.value) {
  123. alert("시작일은 종료일보다 클수 없습니다.");
  124. model.setFocus("ipt_fromdd");
  125. return false;
  126. } else {
  127. model.resetInstanceNode("/root/main/list01");
  128. submit("TRPIF30304");
  129. }
  130. // btn_acptno.selected = true;
  131. ]]>
  132. </script>
  133. </button>
  134. <select1 id="cmb_insukind" ref="/root/send/insukind" appearance="minimal" style="left:400px; top:8px; width:85px; height:19px; ">
  135. <choices>
  136. <item>
  137. <label>보험</label>
  138. <value>11</value>
  139. </item>
  140. <item>
  141. <label>의료급여</label>
  142. <value>21</value>
  143. </item>
  144. <item>
  145. <label>산재</label>
  146. <value>41</value>
  147. </item>
  148. </choices>
  149. <script type="javascript" ev:event="xforms-value-changed">
  150. <![CDATA[
  151. if(model.getValue("/root/send/insukind") == "11") {
  152. cap_title.value = "접수번호조회(보험)";
  153. } else if(model.getValue("/root/send/insukind") == "21") {
  154. cap_title.value = "접수번호조회(의료급여)";
  155. } else if(model.getValue("/root/send/insukind") == "41") {
  156. cap_title.value = "접수번호조회(산재)";
  157. }
  158. ]]>
  159. </script>
  160. </select1>
  161. <caption id="caption1" class="search_name" style="left:315px; top:9px; width:80px; height:17px; ">보험유형</caption>
  162. </group>
  163. <caption id="caption7" class="tit_2" style="left:6px; top:70px; width:113px; height:14px; ">접수번호 리스트</caption>
  164. <datagrid id="grd_acptnolist" nodeset="/root/main/list01/gridacptnolist" caption="보험유형^내원유형^청구분야^청구형태^청구번호^접수번호^접수일자^건수^심사차수^기관코드" colsep="^" colwidth="70, 70, 85, 90, 80, 80, 80, 80, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:92px; width:680px; height:258px; ">
  165. <col ref="insukind" style="text-align:center; "/>
  166. <col ref="ioflag" style="text-align:center; "/>
  167. <col ref="ordfildcd" style="text-align:center; "/>
  168. <col ref="clamflagcd" style="text-align:center; "/>
  169. <col ref="clamno" style="text-align:center; "/>
  170. <col ref="acptno" style="text-align:center; "/>
  171. <col ref="acptdd" style="text-align:center; "/>
  172. <col ref="cnt" style="text-align:center; "/>
  173. <col ref="judgdg" visibility="hidden"/>
  174. <col ref="instcd" visibility="hidden"/>
  175. <script type="javascript" ev:event="onclick">
  176. <![CDATA[
  177. var row_cnt = grd_acptnolist.row;
  178. var insukind = model.getValue("/root/send/insukind");
  179. //if( destNode == null ) {
  180. // opener.grd_pifhrtns.addRow();
  181. //}
  182. if(row_cnt >0) {
  183. if(opener.javascript.getParameter("SPPIF30302_RTNTYPE") == 'P' ){
  184. opener.javascript.setParameter("SPPIF30302_acptno", model.getValue("/root/main/list01/gridacptnolist["+row_cnt+"]/acptno")); // 접수번호
  185. opener.javascript.setParameter("SPPIF30302_clamno", model.getValue("/root/main/list01/gridacptnolist["+row_cnt+"]/clamno")); // 청구번호
  186. opener.javascript.setParameter("SPPIF30302_judgdg", model.getValue("/root/main/list01/gridacptnolist["+row_cnt+"]/judgdg")); // 심사차수
  187. }else{
  188. opener.model.makeNode("/root/send/send01/acptno"); // 접수번호
  189. opener.model.makeNode("/root/main/list001/U0001/clamno"); // 청구번호
  190. opener.model.makeNode("/root/main/list002/U0002/judgdg"); // 심사차수
  191. if(insukind == "11") {
  192. //opener.model.setValue("/root/main/list01/gridpifhrtns/rtnflag", grd_rtnbalance.valueMatrix(row_cnt,0));
  193. opener.model.setValue("/root/send/send01/acptno", model.getValue("/root/main/list01/gridacptnolist["+row_cnt+"]/acptno")); // 접수번호
  194. opener.model.setValue("/root/main/list001/U0001/clamno", model.getValue("/root/main/list01/gridacptnolist["+row_cnt+"]/clamno")); // 청구번호
  195. opener.model.setValue("/root/main/list002/U0002/judgdg", model.getValue("/root/main/list01/gridacptnolist["+row_cnt+"]/judgdg")); // 심사차수
  196. opener.ipt_acptno.value = model.getValue("/root/main/list01/gridacptnolist["+row_cnt+"]/acptno");
  197. opener.cmb_clamno.value = model.getValue("/root/main/list01/gridacptnolist["+row_cnt+"]/clamno");
  198. opener.cmb_judgdg.value = model.getValue("/root/main/list01/gridacptnolist["+row_cnt+"]/judgdg");
  199. } else if(insukind == "21") {
  200. //opener.model.makeNode("/root/main/list00/list002/judgdglist/judgdg");
  201. //opener.model.makeNode("/root/main/list00/list002/clamno/clamno");
  202. opener.model.setValue("/root/send/send01/acptno", model.getValue("/root/main/list01/gridacptnolist["+row_cnt+"]/acptno")); // 접수번호
  203. opener.model.setValue("/root/main/list00/list003/judgdglist/judgdg", model.getValue("/root/main/list01/gridacptnolist["+row_cnt+"]/judgdg")); // 심사차수
  204. opener.model.setValue("/root/main/list00/list002/clamno/clamno", model.getValue("/root/main/list01/gridacptnolist["+row_cnt+"]/clamno")); // 청구번호
  205. opener.ipt_acptno.value = model.getValue("/root/main/list01/gridacptnolist["+row_cnt+"]/acptno");
  206. opener.ipt_clamno.value = model.getValue("/root/main/list01/gridacptnolist["+row_cnt+"]/clamno");
  207. opener.cmb_judgdg.value = model.getValue("/root/main/list01/gridacptnolist["+row_cnt+"]/judgdg");
  208. } else if(insukind = "41") {
  209. opener.model.setValue("/root/send/send01/acptno", model.getValue("/root/main/list01/gridacptnolist["+row_cnt+"]/acptno")); // 접수번호
  210. opener.model.setValue("/root/main/list001/U0001/clamno", model.getValue("/root/main/list01/gridacptnolist["+row_cnt+"]/clamno")); // 청구번호
  211. opener.model.setValue("/root/main/list002/U0002/judgdg", model.getValue("/root/main/list01/gridacptnolist["+row_cnt+"]/judgdg")); // 심사차수
  212. opener.ipt_acptno.value = model.getValue("/root/main/list01/gridacptnolist["+row_cnt+"]/acptno");
  213. opener.cmb_clamno.value = model.getValue("/root/main/list01/gridacptnolist["+row_cnt+"]/clamno");
  214. opener.cmb_judgdg.value = model.getValue("/root/main/list01/gridacptnolist["+row_cnt+"]/judgdg");
  215. }
  216. }
  217. model.close();
  218. //opener.grd_pifhrtns.rebuild();
  219. }
  220. ]]>
  221. </script>
  222. </datagrid>
  223. </group>
  224. <group id="group1" scroll="auto" style="left:5px; top:353px; width:680px; height:27px; ">
  225. <button id="button36" class="btn4_letter2" style="left:620px; top:3px; width:56px; height:22px; ">
  226. <caption>닫기</caption>
  227. <script type="javascript" ev:event="DOMActivate">
  228. <![CDATA[
  229. model.close();
  230. ]]>
  231. </script>
  232. </button>
  233. </group>
  234. <group id="group2" style="left:6px; top:5px; width:384px; height:13px; ">
  235. <caption id="cap_title" class="tit_1" style="left:5px; top:0px; width:164px; height:13px; ">접수번호조회</caption>
  236. </group>
  237. </xhtml:body>
  238. </xhtml:html>