SPPIE00810_수신정보삭제.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  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. <openflag/>
  11. <rsrvflag/>
  12. <uncoflag/>
  13. <cutflag/>
  14. </send>
  15. <main>
  16. <openflag/>
  17. <list/>
  18. </main>
  19. <init/>
  20. <hidden>
  21. </hidden>
  22. </root>
  23. </instance>
  24. <submission id="TXPIE00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list" resultref="/root/temp"/>
  25. <submission id="TXPIE00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list" resultref="/root/temp"/>
  26. <submission id="TXPIE00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list" resultref="/root/temp"/>
  27. <submission id="TXPIE00804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list" resultref="/root/temp"/>
  28. <submission id="TXPIE00805" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list" resultref="/root/temp"/>
  29. <submission id="TXPIE00806" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list" resultref="/root/temp"/>
  30. <submission id="TXPIE00807" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list" resultref="/root/temp"/>
  31. <submission id="TXPIE00808" ref="/root/main/list" resultref="/root/temp"/>
  32. <submission id="TXPIE00809" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list" resultref="/root/temp"/>
  33. <submission id="TXPIE05101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list" resultref="/root/temp"/>
  34. </model>
  35. <script type="javascript" ev:event="xforms-ready">
  36. <![CDATA[
  37. // 0. 권한체크 (보험팀 팀장의 경우에만 삭제가능함)
  38. // 1. 오픈화면에 따라 체크박스를 보여준다.
  39. var openflag = model.getValue("/root/main/list/data/openflag");
  40. // 접수반송증(F010)
  41. if (openflag == "f010") {
  42. model.setValue("/root/send/openflag", "f010");
  43. model.setValue("/root/send/rsrvflag", "Y");
  44. model.setValue("/root/send/uncoflag", "Y");
  45. model.setValue("/root/send/cutflag", "");
  46. chk_cutflag.disabled = true;
  47. // 요양급여심결통보서(F020)
  48. } else if (openflag == "f020") {
  49. model.setValue("/root/send/openflag", "f020");
  50. model.setValue("/root/send/rsrvflag", "Y");
  51. model.setValue("/root/send/uncoflag", "Y");
  52. model.setValue("/root/send/cutflag", "Y");
  53. // 의료급여심결통보서(F060)
  54. } else if (openflag == "f060") {
  55. model.setValue("/root/send/openflag", "f060");
  56. model.setValue("/root/send/rsrvflag", "Y");
  57. model.setValue("/root/send/uncoflag", "Y");
  58. model.setValue("/root/send/cutflag", "Y");
  59. // 원외처방심결통보서(F090)
  60. } else if (openflag == "f090") {
  61. model.setValue("/root/send/openflag", "f090");
  62. model.setValue("/root/send/rsrvflag", "Y");
  63. model.setValue("/root/send/uncoflag", "");
  64. model.setValue("/root/send/cutflag", "Y");
  65. chk_uncoflag.disabled = true;
  66. // 원외처방추가심결통보서(F080)
  67. } else if (openflag == "f080") {
  68. model.setValue("/root/send/openflag", "f080");
  69. model.setValue("/root/send/rsrvflag", "Y");
  70. model.setValue("/root/send/uncoflag", "");
  71. model.setValue("/root/send/cutflag", "Y");
  72. chk_uncoflag.disabled = true;
  73. // 요양급여정산내역서(F040)
  74. } else if (openflag == "f040") {
  75. model.setValue("/root/send/openflag", "f040");
  76. model.setValue("/root/send/rsrvflag", "Y");
  77. model.setValue("/root/send/uncoflag", "");
  78. model.setValue("/root/send/cutflag", "Y");
  79. chk_uncoflag.disabled = true;
  80. // 의료급여정산내역서(F050)
  81. } else if (openflag == "f050") {
  82. model.setValue("/root/send/openflag", "f050");
  83. model.setValue("/root/send/rsrvflag", "Y");
  84. model.setValue("/root/send/uncoflag", "");
  85. model.setValue("/root/send/cutflag", "Y");
  86. chk_uncoflag.disabled = true;
  87. // 원외처방정산내역서(F070)
  88. } else if (openflag == "f070") {
  89. model.setValue("/root/send/openflag", "f070");
  90. model.setValue("/root/send/rsrvflag", "Y");
  91. model.setValue("/root/send/uncoflag", "");
  92. model.setValue("/root/send/cutflag", "Y");
  93. chk_uncoflag.disabled = true;
  94. // 보완자료요청내역서(F110)
  95. } else if (openflag == "f110") {
  96. model.setValue("/root/send/openflag", "f110");
  97. model.setValue("/root/send/rsrvflag", "Y");
  98. model.setValue("/root/send/uncoflag", "");
  99. model.setValue("/root/send/cutflag", "");
  100. chk_uncoflag.disabled = true;
  101. chk_cutflag.disabled = true;
  102. // 자보접수반송증
  103. } else if (openflag == "n010") {
  104. model.setValue("/root/send/openflag", "n010");
  105. model.setValue("/root/send/rsrvflag", "Y");
  106. model.setValue("/root/send/uncoflag", "Y");
  107. model.setValue("/root/send/cutflag", "Y");
  108. chk_cutflag.disabled = true;
  109. // 자보심결통보서(N020)
  110. } else if (openflag == "n020") {
  111. model.setValue("/root/send/openflag", "n020");
  112. model.setValue("/root/send/rsrvflag", "Y");
  113. model.setValue("/root/send/uncoflag", "Y");
  114. model.setValue("/root/send/cutflag", "Y");
  115. // 자보보완자료요청내역서(N110)
  116. } else if (openflag == "n110") {
  117. model.setValue("/root/send/openflag", "n110");
  118. model.setValue("/root/send/rsrvflag", "Y");
  119. model.setValue("/root/send/uncoflag", "");
  120. model.setValue("/root/send/cutflag", "");
  121. chk_uncoflag.disabled = true;
  122. chk_cutflag.disabled = true;
  123. }
  124. model.refresh();
  125. ]]>
  126. </script>
  127. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  128. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  129. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  130. <script type="javascript">
  131. <![CDATA[
  132. // 수신정보 삭제
  133. function fDeleteData() {
  134. // 1. 체크값 확인 (하나라도 체크해야 함)
  135. var openflag = model.getValue("/root/send/openflag");
  136. var rsrvflag = model.getValue("/root/send/rsrvflag");
  137. var uncoflag = model.getValue("/root/send/uncoflag");
  138. var cutflag = model.getValue("/root/send/cutflag");
  139. if (rsrvflag == "" && uncoflag == "" && cutflag == "") {
  140. messageBox("삭제영역이 선택되지", "E007");
  141. return;
  142. }
  143. // 2. 삭제할 데이터 확인
  144. var nodelist = instance1.selectNodes("/root/main/list/data");
  145. var length = nodelist.length;
  146. if (parseInt(length) == 0) {
  147. messageBox("삭제할 수신정보가", "E016");
  148. return;
  149. }
  150. // 3. 기본 메세지
  151. if (messageBox("삭제", "S001") != 6) return;
  152. for(var i = 1; i <= length; i++){
  153. if (rsrvflag == "") model.setValue("/root/main/list/data["+ i +"]/rsrvflag", "N");
  154. else model.setValue("/root/main/list/data["+ i +"]/rsrvflag", rsrvflag);
  155. if (uncoflag == "") model.setValue("/root/main/list/data["+ i +"]/uncoflag", "N");
  156. else model.setValue("/root/main/list/data["+ i +"]/uncoflag", uncoflag);
  157. if (cutflag == "") model.setValue("/root/main/list/data["+ i +"]/cutflag", "N");
  158. else model.setValue("/root/main/list/data["+ i +"]/cutflag", cutflag);
  159. }
  160. // 4. 삭제 후 종료
  161. switch (openflag) {
  162. // 접수반송증(F010)
  163. case "f010" :
  164. submit("TXPIE00801");
  165. break;
  166. // 요양급여심결통보서(F020)
  167. case "f020" :
  168. submit("TXPIE00802");
  169. break;
  170. // 의료급여심결통보서(F060)
  171. case "f060" :
  172. submit("TXPIE00803");
  173. break;
  174. // 원외처방심결통보서(F090)
  175. case "f090" :
  176. submit("TXPIE00804");
  177. break;
  178. // 원외처방추가심결통보서(F080)
  179. case "f080" :
  180. submit("TXPIE00805");
  181. break;
  182. // 요양급여정산내역서(F040)
  183. case "f040" :
  184. submit("TXPIE00806");
  185. break;
  186. // 의료급여정산내역서(F050)
  187. case "f050" :
  188. submit("TXPIE00807");
  189. break;
  190. // 원외처방정산내역서(F070)
  191. case "f070" :
  192. submit("TXPIE00808");
  193. break;
  194. // 보완자료요청내역서(F110)
  195. case "f110" :
  196. submit("TXPIE00809");
  197. break;
  198. // 자보접수반송증(N010)
  199. case "n010" :
  200. submit("TXPIE05101");
  201. break;
  202. // 자보심결(N020)
  203. case "n020" :
  204. submit("TXPIE05102");
  205. break;
  206. case "n110" :
  207. submit("TXPIE05103");
  208. break;
  209. default :
  210. return;
  211. }
  212. window.close();
  213. }
  214. ]]>
  215. </script>
  216. </xhtml:head>
  217. <xhtml:body pagewidth="370" pageheight="130" tracing-position="center" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  218. <group id="group1" style="left:0px; top:0px; width:325px; height:13px; ">
  219. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:325px; height:14px; ">수신,미수,이의신청 정보 삭제</caption>
  220. </group>
  221. <group id="group3" scroll="auto" style="left:0px; top:13px; width:340px; height:67px; ">
  222. <line id="line1" class="line_1" style="x1:0px; y1:28px; x2:340px; y2:28px; "/>
  223. <caption id="caption2" class="tit_2" style="left:5px; top:13px; width:121px; height:14px; ">삭제영역 선택</caption>
  224. <select id="chk_rsrvflag" ref="/root/send/rsrvflag" class="checkbox_search" overflow="visible" appearance="full" style="left:5px; top:39px; width:75px; height:20px; border-style:none; ">
  225. <choices>
  226. <item>
  227. <label>수신정보</label>
  228. <value>Y</value>
  229. </item>
  230. </choices>
  231. </select>
  232. <select id="chk_uncoflag" ref="/root/send/uncoflag" class="checkbox_search" overflow="visible" appearance="full" style="left:95px; top:39px; width:75px; height:20px; border-style:none; ">
  233. <choices>
  234. <item>
  235. <label>미수정보</label>
  236. <value>Y</value>
  237. </item>
  238. </choices>
  239. </select>
  240. <select id="chk_cutflag" ref="/root/send/cutflag" class="checkbox_search" overflow="visible" appearance="full" style="left:185px; top:39px; width:75px; height:20px; border-style:none; ">
  241. <choices>
  242. <item>
  243. <label>이의신청정보</label>
  244. <value>Y</value>
  245. </item>
  246. </choices>
  247. </select>
  248. </group>
  249. <group id="grp_btn" scroll="auto" style="left:0px; top:82px; width:340px; height:25px; ">
  250. <button id="btn_close" class="btn4_letter2" style="left:280px; top:0px; width:56px; height:22px; ">
  251. <caption>닫기</caption>
  252. <script type="javascript" ev:event="DOMActivate">
  253. <![CDATA[
  254. // 윈도우 닫기
  255. window.close();
  256. ]]>
  257. </script>
  258. </button>
  259. <button id="btn_delete" class="btn4_letter2" style="left:220px; top:0px; width:56px; height:22px; ">
  260. <caption>삭제</caption>
  261. <script type="javascript" ev:event="DOMActivate">
  262. <![CDATA[
  263. fDeleteData();
  264. ]]>
  265. </script>
  266. </button>
  267. </group>
  268. </xhtml:body>
  269. </xhtml:html>