SPPIR31120_정산의뢰취소.xrw 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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. <data1>
  11. <judgdg/>
  12. <clamno/>
  13. <acptno/>
  14. <docuseqno/>
  15. </data1>
  16. <data2>
  17. <judgdg/>
  18. <clamno/>
  19. <acptno/>
  20. <docuseqno/>
  21. <obtappflag/>
  22. </data2>
  23. <list1>
  24. <obtm/>
  25. </list1>
  26. </send>
  27. <main>
  28. <list1>
  29. <obtm/>
  30. </list1>
  31. <list2>
  32. <obtd/>
  33. </list2>
  34. </main>
  35. <init>
  36. <!-- 보험유형 -->
  37. <P0008list>
  38. <P0008>
  39. <cdnm/>
  40. <cdid/>
  41. </P0008>
  42. </P0008list>
  43. <!-- 이신구분 -->
  44. <P0264list>
  45. <P0264>
  46. <cdid/>
  47. <cdnm/>
  48. </P0264>
  49. </P0264list>
  50. </init>
  51. <hidden/>
  52. </root>
  53. </instance>
  54. <script type="javascript" ev:event="xforms-ready">
  55. <![CDATA[
  56. // 0. 데이터 초기화
  57. model.removenode("/root/main/list1");
  58. model.removenode("/root/main/list2");
  59. model.makeNode("/root/main/list1");
  60. model.makeNode("/root/main/list2");
  61. // 1. 공통코드 초기화 (보험유형, 이신구분)
  62. zbcfGetCodeList(
  63. new Array("P0008", "P0264"),
  64. new Array("/root/init/P0008list", "/root/init/P0264list")
  65. );
  66. // 2. 이의신청 명세서를 조회한다.
  67. submit("TRPIR31007");
  68. grd_obtmlist.refresh();
  69. grd_obtdlist.refresh();
  70. ]]>
  71. </script>
  72. <submission id="TRPIR31007" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/list1"/>
  73. <submission id="TRPIR31008" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/main/list2"/>
  74. <submission id="TXPIR31003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/list1" resultref="/root/temp"/>
  75. <submission id="TXPIR31004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/list1" resultref="/root/temp"/>
  76. </model>
  77. <script type="javascript">
  78. <![CDATA[
  79. ]]>
  80. </script>
  81. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  82. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  86. </xhtml:head>
  87. <xhtml:body pagewidth="830" pageheight="470" guideline="1,805;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  88. <group id="grp_tle" style="left:0px; top:0px; width:805px; height:13px; ">
  89. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; ">이의신청 정산의뢰 현황</caption>
  90. </group>
  91. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:805px; height:442px; ">
  92. <datagrid id="grd_obtmlist" nodeset="/root/main/list1/obtm" class="datagrid2" caption="선택^이신구분^접수번호^심사차수^청구번호^명일련^묶음번호^보험유형^메모^이의신청액" colsep="^" colwidth="30, 90, 55, 55, 70, 50, 55, 60, 205, 80" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:26px; width:805px; height:134px; ">
  93. <col ref="chksel" type="checkbox"/>
  94. <col disabled="true" ref="obtappflag" type="combo">
  95. <choices>
  96. <itemset nodeset="/root/init/P0264list/P0264">
  97. <label ref="cdnm"/>
  98. <value ref="cdid"/>
  99. </itemset>
  100. </choices>
  101. </col>
  102. <col ref="acptno"/>
  103. <col ref="judgdg"/>
  104. <col ref="clamno"/>
  105. <col ref="docuseqno"/>
  106. <col ref="setno"/>
  107. <col disabled="true" ref="insukind" type="combo">
  108. <choices>
  109. <itemset nodeset="/root/init/P0008list/P0008">
  110. <label ref="cdnm"/>
  111. <value ref="cdid"/>
  112. </itemset>
  113. </choices>
  114. </col>
  115. <col ref="obtapprem"/>
  116. <col ref="obtappamt" format="#,###" style="text-align:right; "/>
  117. <script type="javascript" ev:event="ondblclick">
  118. <![CDATA[
  119. var row = grd_obtmlist.row;
  120. var judgdg = model.getValue("/root/main/list1/obtm["+row+"]/judgdg");
  121. var clamno = model.getValue("/root/main/list1/obtm["+row+"]/clamno");
  122. var acptno = model.getValue("/root/main/list1/obtm["+row+"]/acptno");
  123. var docuseqno = model.getValue("/root/main/list1/obtm["+row+"]/docuseqno");
  124. var obtappflag = model.getValue("/root/main/list1/obtm["+row+"]/obtappflag");
  125. if (judgdg != "" && clamno != "" && acptno != "" && docuseqno != "" && obtappflag != "") {
  126. // 1. 이의신청 처방을 조회할 데이터를 담는다.
  127. model.makeValue("/root/send/data2/judgdg", judgdg);
  128. model.makeValue("/root/send/data2/clamno", clamno);
  129. model.makeValue("/root/send/data2/acptno", acptno);
  130. model.makeValue("/root/send/data2/docuseqno", docuseqno);
  131. model.makeValue("/root/send/data2/obtappflag", obtappflag);
  132. // 2. 선택한 이의신청 명세서의 이의신청 처방내역을 조회한다.
  133. model.removenode("/root/main/list2");
  134. model.makeNode("/root/main/list2");
  135. submit("TRPIR31008");
  136. }
  137. ]]>
  138. </script>
  139. </datagrid>
  140. <caption id="caption1" class="tit_2" style="left:5px; top:5px; width:160px; height:14px; ">이의신청 명세서</caption>
  141. <line id="line1" class="line_1" style="x1:0px; y1:21px; x2:805px; y2:21px; "/>
  142. <caption id="caption2" class="tit_2" style="left:5px; top:169px; width:160px; height:14px; ">이의신청 처방내역</caption>
  143. <line id="line2" class="line_1" style="x1:0px; y1:185px; x2:805px; y2:185px; "/>
  144. <datagrid id="grd_obtdlist" nodeset="/root/main/list2/obtd" class="datagrid2" caption="이신구분^EDI구분^EDI코드^처방코드^처방명^정산&#xA;일회^정산&#xA;일투^정산&#xA;총투^이의신청액" colsep="^" colwidth="90, 60, 100, 100, 185, 45, 45, 45, 80" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:190px; width:805px; height:210px; ">
  145. <col disabled="true" ref="obtappflag" type="combo">
  146. <choices>
  147. <itemset nodeset="/root/init/P0264list/P0264">
  148. <label ref="cdnm"/>
  149. <value ref="cdid"/>
  150. </itemset>
  151. </choices>
  152. </col>
  153. <col ref="edicdflag"/>
  154. <col ref="edicd"/>
  155. <col ref="calcscorcd"/>
  156. <col ref="hngnm"/>
  157. <col ref="obtapponeqty" format="###" style="text-align:right; "/>
  158. <col ref="obtappdayqty" format="###" style="text-align:right; "/>
  159. <col ref="obtapptotqty" format="###" style="text-align:right; "/>
  160. <col ref="obtappamt" format="(-)#,###" style="text-align:right; "/>
  161. </datagrid>
  162. </group>
  163. <button id="btn_delete" class="btn3_letter6" navindex="7" style="left:635px; top:425px; width:104px; height:22px; ">
  164. <caption>정산의뢰삭제</caption>
  165. <script type="javascript" ev:event="DOMActivate">
  166. <![CDATA[
  167. // 1. 데이터를 초기화한다.
  168. model.removenode("/root/send/list1");
  169. model.makeNode("/root/send/list1");
  170. // 2. 체크된 이의신청 명세서를 담는다.
  171. var check = false;
  172. var cnt = 0;
  173. for (i = 1; i < grd_obtmlist.rows; i++) {
  174. check = grd_obtmlist.valueMatrix(i, grd_obtmlist.colRef("chksel"));
  175. if (check == "true") {
  176. cnt++;
  177. model.makeValue("/root/send/list1/obtm["+cnt+"]/obtm_judgdg", model.getValue("/root/main/list1/obtm["+i+"]/judgdg"));
  178. model.makeValue("/root/send/list1/obtm["+cnt+"]/obtm_clamno", model.getValue("/root/main/list1/obtm["+i+"]/clamno"));
  179. model.makeValue("/root/send/list1/obtm["+cnt+"]/obtm_acptno", model.getValue("/root/main/list1/obtm["+i+"]/acptno"));
  180. model.makeValue("/root/send/list1/obtm["+cnt+"]/obtm_docuseqno", model.getValue("/root/main/list1/obtm["+i+"]/docuseqno"));
  181. model.makeValue("/root/send/list1/obtm["+cnt+"]/obtm_obtappflag", model.getValue("/root/main/list1/obtm["+i+"]/obtappflag"));
  182. }
  183. }
  184. if (cnt == 0) return;
  185. // 3. 이의신청 명세서를 삭제한다.
  186. if (messageBox("정산의뢰 요청한 이의신청 명세서를", "S001") != 6) return;
  187. // 4. 이의신청명세서 - 처방내역을 삭제한다.
  188. if (submit("TXPIR31003")) {
  189. // 5. 이의신청 청구서를 수정한다. (명세서가 모두 삭제되었으면 청구서도 삭제, 명세서가 존재하면 이의 합산 이의신청금액을 청구서에 반영한다.)
  190. if (submit("TXPIR31004")) {
  191. messageBox("정산의뢰 취소가", "I002");
  192. window.close();
  193. }
  194. }
  195. ]]>
  196. </script>
  197. </button>
  198. <button id="btn_close" class="btn3_letter2" navindex="7" style="left:745px; top:425px; width:56px; height:22px; ">
  199. <caption>취소</caption>
  200. <script type="javascript" ev:event="DOMActivate">
  201. <![CDATA[
  202. window.close();
  203. ]]>
  204. </script>
  205. </button>
  206. </xhtml:body>
  207. </xhtml:html>