SMPIF30110_주민보류관리.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>SMPPIF30110_주민보류관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <sendlnk>
  11. </sendlnk>
  12. <sendlist00>
  13. <clamym/>
  14. <acptno/>
  15. <judgdg/>
  16. <instcd/>
  17. </sendlist00>
  18. <imgdata>
  19. <photimg/>
  20. </imgdata>
  21. </send>
  22. <main>
  23. <list00>
  24. <gridpifhiunc00>
  25. <clamym/>
  26. <decoseq/>
  27. <instcd/>
  28. <acptno/>
  29. <reteseqno/>
  30. <retechk/>
  31. <printchk/>
  32. <depoyn/>
  33. <lossyn/>
  34. <docuseqno/>
  35. <reteno/>
  36. <reteresn/>
  37. <pid/>
  38. <patnm/>
  39. <clmcstotamt/>
  40. <clclamamt/>
  41. <jrjudgdeciamt/>
  42. <jrownbmaxexamt/>
  43. <depodd/>
  44. <judgrid/>
  45. <insukind/>
  46. <procinstmark/>
  47. <procinstmarknm/>
  48. <clamrrgstno/>
  49. <rrgstno/>
  50. <certno/>
  51. <updtpatnm/>
  52. <updtinsd/>
  53. <updtprocinstmark/>
  54. <updtcertno/>
  55. <clamdg/>
  56. <pidsn/>
  57. <seq/>
  58. </gridpifhiunc00>
  59. <hospinfo>
  60. <proccorpcd/>
  61. <hospnm/>
  62. <clamprsdtel/>
  63. <prsdnm/>
  64. </hospinfo>
  65. </list00>
  66. <list02>
  67. <gridpifhiunc/>
  68. </list02>
  69. <list03>
  70. <gridpifhiuncdel>
  71. </gridpifhiuncdel>
  72. </list03>
  73. <result/>
  74. </main>
  75. <init>
  76. <totcount>
  77. <totcnt/>
  78. </totcount>
  79. <temp>
  80. <printlist>
  81. <reteno01/>
  82. <reteresn01/>
  83. <patnm01/>
  84. <rrgstno01/>
  85. <updtpatnm01/>
  86. <updtprocinstmark01/>
  87. <updtcertno01/>
  88. </printlist>
  89. </temp>
  90. </init>
  91. </root>
  92. </instance>
  93. <submission id="TRPIF30111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist00" resultref="/root/main/list00"/>
  94. <submission id="TXPIF30111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list02" resultref="/root/main/result"/>
  95. <submission id="TXPIF30112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list03" resultref="/root/main/result"/>
  96. <submission id="TRPAMCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden" replace="instance" resultref="/root/hidden/hospinfo"/>
  97. <submission id="TRPID20709" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/instimg"/>
  98. </model>
  99. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  100. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  101. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  102. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  103. <script type="javascript" ev:event="xforms-ready">
  104. <![CDATA[
  105. // 그리드 헤더에 삭제필드 전체선택 체크박스를 생성한다.
  106. grd_pifhiunc.fixedcellcheckbox(0, grd_pifhiunc.colRef("retechk")) = true;
  107. select_init() ;
  108. ]]>
  109. </script>
  110. <script type="javascript">
  111. <![CDATA[
  112. function select_init() {
  113. var vclamym, vacptno, vinstcd, vjudgdg ;
  114. vacptno = model.getvalue("root/send/sendlnk/acptno");
  115. vclamym = model.getvalue("root/send/sendlnk/clamym");
  116. vjudgdg = model.getvalue("root/send/sendlnk/judgdg");
  117. vinstcd = model.getvalue("root/send/sendlnk/instcd");
  118. if (vacptno == "" || vclamym == "") return ;
  119. model.setvalue("/root/send/sendlist00/acptno", vacptno) ;
  120. model.setvalue("/root/send/sendlist00/clamym", vclamym) ;
  121. model.setvalue("/root/send/sendlist00/judgdg", vjudgdg) ;
  122. model.setvalue("/root/send/sendlist00/instcd", vinstcd) ;
  123. submit("TRPIF30111") ;
  124. var rows = grd_pifhiunc.rows;
  125. model.setValue("/root/init/totcount/totcnt", Number(rows) -1);
  126. rowChk();
  127. // 직인 이미지
  128. submit("TRPID20709");
  129. var imgdata = model.getValue("/root/init/instimg/list/photimg"); // base64 encoding 문자열을 가져온다.
  130. model.setValue("/root/send/imgdata/photimg", imgdata,true);
  131. setImageRefInstance("/root/send/imgdata/photimg"); //base64 encoding 문자열을 이미지로 변환하여 보여준다,
  132. model.refresh();
  133. }
  134. // 조회해온 결과값에서 결손여부 필드값이 'Y' 인 경우 출력여부와 입금여부 필드를 disable 해준다.
  135. function rowChk() {
  136. for(var i=1;i<grd_pifhiunc.rows;i++){
  137. if(model.getValue("/root/main/list00/gridpifhiunc00["+i+"]/lossyn") == "Y") {
  138. grd_pifhiunc.isReadOnly(i, grd_pifhiunc.colRef("printchk")) = true;
  139. //grd_pifhiunc.isReadOnly(i, grd_pifhiunc.colRef("depoyn")) = true;
  140. } else {
  141. grd_pifhiunc.isReadOnly(i, grd_pifhiunc.colRef("printchk")) = false;
  142. //grd_pifhiunc.isReadOnly(i, grd_pifhiunc.colRef("depoyn")) = false;
  143. }
  144. }
  145. }
  146. ]]>
  147. </script>
  148. </xhtml:head>
  149. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  150. <group id="SMPIF30110" scroll="auto" style="left:0px; top:3px; width:1194px; height:662px; ">
  151. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:134px; height:13px; ">주민보류내역</caption>
  152. <line id="line1" class="line_1" style="x1:0px; y1:26px; x2:1194px; y2:26px; "/>
  153. <datagrid id="grd_pifhiunc" nodeset="/root/main/list00/gridpifhiunc00" class="datagrid2" scroll="auto" caption="청구월^미수일련번호^기관코드^접수번호^No^^출력&#xA;선택^입금&#xA;여부^반송^명일련^보류번호^사유^등록번호^수진자^총진료비^청구액^심결액^상한금^지원금^장애인^심사자^보험유형^기관기호^기관명^주민번호(청구)^주민번호(확인)^증번호^수진자&#xA;(수정)^피보험자&#xA;(수정)^조합기호(수정)^증번호(수정)^청구차수(히든)^등록번호순번(히든)" colsep="^" colwidth="30, 30, 30, 30, 35, 30, 30, 30, 30, 50, 90, 40, 80, 60, 80, 80, 80, 80, 70, 71, 60, 55, 90, 80, 100, 100, 100, 60, 60, 108, 111, 100, 100, 100" dataheight="25" defaultrows="1" explorerbar="sortshowmove" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:0px; top:30px; width:1194px; height:629px; ">
  154. <col ref="clamym" visibility="hidden"/>
  155. <col ref="decoseq" visibility="hidden"/>
  156. <col ref="instcd" visibility="hidden"/>
  157. <col ref="acptno" visibility="hidden"/>
  158. <col ref="reteseqno" style="text-align:center; "/>
  159. <col checkvalue="Y,N" ref="retechk" type="checkbox"/>
  160. <col checkvalue="Y,N" ref="printchk" type="checkbox"/>
  161. <col ref="depoyn" style="text-align:center; "/>
  162. <col checkvalue="Y,N" ref="lossyn" type="checkbox"/>
  163. <col ref="docuseqno" style="text-align:center; "/>
  164. <col ref="reteno" type="input" maxlength="20" style="text-align:center; "/>
  165. <col ref="reteresn" type="input" maxlength="2" style="text-align:center; "/>
  166. <col ref="pid" style="text-align:center; "/>
  167. <col ref="patnm" style="text-align:center; "/>
  168. <col ref="clmcstotamt" format="#,###" style="text-align:right; "/>
  169. <col ref="clclamamt" format="#,###" style="text-align:right; "/>
  170. <col ref="jrjudgdeciamt" format="#,###" style="left:836px; top:23px; width:96px; height:23px; text-align:right; "/>
  171. <col ref="jrownbmaxexamt" format="#,###" style="text-align:right; "/>
  172. <col ref="jrsuppamt" format="#,###" style="text-align:right; "/>
  173. <col ref="jrhandicaprfund" format="#,###" style="text-align:right; "/>
  174. <col ref="judgrid" style="text-align:center; "/>
  175. <col ref="insukind" style="text-align:center; "/>
  176. <col ref="procinstmark" style="text-align:center; "/>
  177. <col ref="procinstmarknm" style="text-align:center; "/>
  178. <col ref="clamrrgstno" format="999999-9999999" style="text-align:center; "/>
  179. <col ref="rrgstno" type="input" format="999999-9999999" maxlength="13" style="text-align:center; "/>
  180. <col ref="certno" style="text-align:center; "/>
  181. <col ref="updtpatnm" type="input" maxlength="30" style="text-align:center; "/>
  182. <col ref="updtinsd" type="input" maxlength="20" style="text-align:center; "/>
  183. <col ref="updtprocinstmark" type="input" maxlength="8" style="text-align:center; "/>
  184. <col ref="updtcertno" type="input" maxlength="20" style="text-align:center; "/>
  185. <col ref="clamdg" visibility="hidden"/>
  186. <col ref="pidsn" visibility="hidden"/>
  187. <col ref="seq" visibility="hidden"/>
  188. <script type="javascript" ev:event="oncopy">
  189. <![CDATA[
  190. grid_oncopy();
  191. ]]>
  192. </script>
  193. </datagrid>
  194. <col type="checkbox"/>
  195. <button id="button12" class="btn2_letter4" style="left:1127px; top:5px; width:65px; height:19px; ">
  196. <caption>엑셀저장</caption>
  197. <script type="javascript" ev:event="onclick">
  198. <![CDATA[
  199. var today = new Date();
  200. var yy = today.getYear()+"";
  201. var mm = today.getMonth()+1;
  202. var dd = today.getDate();
  203. if(mm < 10) { mm = "0"+mm; } else { mm = mm+""; }
  204. if(dd < 10) { dd = "0" + dd; } else { dd = dd + ""; }
  205. var tmp = yy+mm+dd;
  206. var fileName = window.fileDialog("save", ",", false, "주민보류관리_"+tmp, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  207. if (fileName != "") { grd_pifhiunc.saveExcel(fileName, "SheetName", true, true, "", "", ""); }
  208. ]]>
  209. </script>
  210. </button>
  211. <button id="btn_listselect" class="btn2_letter6" visibility="hidden" style="left:953px; top:5px; width:86px; height:19px; ">
  212. <caption>전체삭제선택</caption>
  213. <script type="javascript" ev:event="onclick">
  214. <![CDATA[
  215. var i, vrowcount = grd_pifhiunc.rows, vretechk ;
  216. if (btn_listselect.text == "전체삭제선택" ) {
  217. vretechk = "Y" ;
  218. btn_listselect.text = "전체삭제해제" ;
  219. } else {
  220. vretechk = "N" ;
  221. btn_listselect.text = "전체삭제선택" ;
  222. }
  223. for (i = 1; i < vrowcount; i++) {
  224. // grd_pirhrgrt.retechk(i) = "Y" ;
  225. model.setValue("/root/main/list00/gridpifhiunc00[" + i + "]/retechk", vretechk);
  226. }
  227. ]]>
  228. </script>
  229. </button>
  230. <button id="btn_printselect" class="btn2_letter6" style="left:1040px; top:5px; width:64px; height:19px; ">
  231. <caption>전체출력선택</caption>
  232. <script type="javascript" ev:event="onclick">
  233. <![CDATA[
  234. var i, vrowcount = grd_pifhiunc.rows, vprintchk ;
  235. if (btn_printselect.text == "전체출력선택" ) {
  236. vprintchk = "Y" ;
  237. btn_printselect.text = "전체출력해제";
  238. } else {
  239. vprintchk = "N" ;
  240. btn_printselect.text = "전체출력선택";
  241. }
  242. for (i = 1; i < vrowcount; i++) {
  243. // grd_pirhrgrt.retechk(i) = "Y" ;
  244. model.setValue("/root/main/list00/gridpifhiunc00[" + i + "]/printchk", vprintchk);
  245. }
  246. ]]>
  247. </script>
  248. </button>
  249. <button id="button7" class="btn2_letter6" style="left:850px; top:5px; width:86px; height:19px; ">
  250. <caption>Open Excel</caption>
  251. <script type="javascript" ev:event="DOMActivate">
  252. <![CDATA[
  253. try {
  254. window.exec("excel");
  255. } catch(e) {
  256. alert(e);
  257. }
  258. ]]>
  259. </script>
  260. </button>
  261. <button id="button10" class="btn2_letter3" style="left:740px; top:5px; width:53px; height:19px; ">
  262. <caption>열카피</caption>
  263. <script type="javascript" ev:event="onclick">
  264. <![CDATA[
  265. grd_pifhiunc.attribute("selectionmode") = "bycol";
  266. ]]>
  267. </script>
  268. </button>
  269. <button id="button11" class="btn2_letter3" style="left:795px; top:5px; width:53px; height:19px; ">
  270. <caption>행카피</caption>
  271. <script type="javascript" ev:event="onclick">
  272. <![CDATA[
  273. grd_pifhiunc.attribute("selectionmode") = "byrow";
  274. ]]>
  275. </script>
  276. </button>
  277. <button id="button13" class="btn2_letter3" style="left:685px; top:5px; width:53px; height:19px; ">
  278. <caption>셀카피</caption>
  279. <script type="javascript" ev:event="onclick">
  280. <![CDATA[
  281. grd_pifhiunc.attribute("selectionmode") = "free";
  282. ]]>
  283. </script>
  284. </button>
  285. <caption id="caption2" style="left:135px; top:10px; width:90px; height:14px; ">요양기관기호 :</caption>
  286. <output id="output1" ref="/root/main/list00/hospinfo/proccorpcd" style="left:217px; top:7px; width:80px; height:19px; font-weight:bold; "/>
  287. <caption id="caption3" style="left:302px; top:10px; width:90px; height:14px; ">요양기관명칭 :</caption>
  288. <output id="output2" ref="/root/main/list00/hospinfo/hospnm" style="left:384px; top:7px; width:205px; height:19px; font-weight:bold; "/>
  289. </group>
  290. <group id="group2" scroll="auto" style="left:0px; top:670px; width:1194px; height:29px; ">
  291. <button id="button42" class="btn4_letter2" style="left:1013px; top:5px; width:56px; height:22px; ">
  292. <caption>저장</caption>
  293. <script type="javascript" ev:event="onclick">
  294. <![CDATA[
  295. var rows = grd_pifhiunc.rows;
  296. var cnt = 0;
  297. for(var i=1;i<rows;i++) {
  298. if(grd_pifhiunc.valueMatrix(i, grd_pifhiunc.colRef("retechk")) == "Y") {
  299. if(grd_pifhiunc.valueMatrix(i, grd_pifhiunc.colRef("reteno")) == "") {
  300. messageBox(i+"번째행의 보류번호를","C001");
  301. grd_pifhiunc.row(i);
  302. return false;
  303. }
  304. cnt++;
  305. }
  306. }
  307. if(cnt > 0) {
  308. //model.setValue("/root/main/list02/gridpifhiunc", grd_pifhiunc.getUpdateData());
  309. model.setValue("/root/main/list02/gridpifhiunc", '');
  310. model.setValue("/root/main/list02/gridpifhiunc", getNodeListCSV(instance1.selectNodes("/root/main/list00/gridpifhiunc00[retechk = 'Y']")));
  311. submit("TXPIF30111") ;
  312. rowChk(); // 조회결과에서 결손여부 행에 이벤트 주기
  313. select_init() ;
  314. }
  315. ]]>
  316. </script>
  317. </button>
  318. <button id="button93" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
  319. <caption>출력</caption>
  320. <script type="javascript" ev:event="DOMActivate">
  321. <![CDATA[
  322. model.resetInstanceNode("/root/init/totcount");
  323. //model.resetInstanceNode("/root/init/temp");
  324. model.removenode("/root/init/temp");
  325. var totcnt = getNodesetCount("/root/main/list00/gridpifhiunc00[printchk = 'Y']");
  326. var cnt = 0;
  327. for(var i=1;i<grd_pifhiunc.rows;i++){
  328. if(model.getValue("/root/main/list00/gridpifhiunc00["+i+"]/printchk") == "Y") {
  329. cnt++;
  330. model.makeNode("/root/init/temp/printlist["+cnt+"]/reteno01");
  331. model.makeNode("/root/init/temp/printlist["+cnt+"]/reteresn01");
  332. model.makeNode("/root/init/temp/printlist["+cnt+"]/patnm01");
  333. model.makeNode("/root/init/temp/printlist["+cnt+"]/rrgstno01");
  334. model.makeNode("/root/init/temp/printlist["+cnt+"]/updtpatnm01");
  335. model.makeNode("/root/init/temp/printlist["+cnt+"]/updtinsd");
  336. model.makeNode("/root/init/temp/printlist["+cnt+"]/updtprocinstmark01");
  337. model.makeNode("/root/init/temp/printlist["+cnt+"]/updtcertno01");
  338. model.setValue("/root/init/temp/printlist["+cnt+"]/reteno01", model.getValue("/root/main/list00/gridpifhiunc00["+i+"]/reteno"));
  339. model.setValue("/root/init/temp/printlist["+cnt+"]/reteresn01", model.getValue("/root/main/list00/gridpifhiunc00["+i+"]/reteresn"));
  340. model.setValue("/root/init/temp/printlist["+cnt+"]/patnm01", model.getValue("/root/main/list00/gridpifhiunc00["+i+"]/patnm"));
  341. model.setValue("/root/init/temp/printlist["+cnt+"]/rrgstno01", model.getValue("/root/main/list00/gridpifhiunc00["+i+"]/rrgstno"));
  342. model.setValue("/root/init/temp/printlist["+cnt+"]/updtpatnm01", model.getValue("/root/main/list00/gridpifhiunc00["+i+"]/updtpatnm"));
  343. model.setValue("/root/init/temp/printlist["+cnt+"]/updtinsd", model.getValue("/root/main/list00/gridpifhiunc00["+i+"]/updtinsd"));
  344. model.setValue("/root/init/temp/printlist["+cnt+"]/updtprocinstmark01", model.getValue("/root/main/list00/gridpifhiunc00["+i+"]/updtprocinstmark"));
  345. model.setValue("/root/init/temp/printlist["+cnt+"]/updtcertno01", model.getValue("/root/main/list00/gridpifhiunc00["+i+"]/updtcertno"));
  346. model.makeValue("/root/init/temp/printlist["+cnt+"]/proccorpcd", model.getValue("/root/main/list00/hospinfo/proccorpcd"));
  347. model.makeValue("/root/init/temp/printlist["+cnt+"]/hospnm", model.getValue("/root/main/list00/hospinfo/hospnm"));
  348. model.makeValue("/root/init/temp/printlist["+cnt+"]/clamprsdtel", model.getValue("/root/main/list00/hospinfo/clamprsdtel"));
  349. model.makeValue("/root/init/temp/printlist["+cnt+"]/prsdnm", model.getValue("/root/main/list00/hospinfo/prsdnm"));
  350. model.makeValue("/root/init/temp/printlist["+cnt+"]/totcnt", totcnt);
  351. //직인
  352. model.makeValue("/root/init/temp/printlist["+cnt+"]/photimg",model.getValue("/root/send/imgdata/photimg"),true);
  353. }
  354. }
  355. //병원정보카피
  356. //model.copyNode("/root/init/hospinfo", "/root/main/list00/hospinfo");
  357. exeReportPreview("RPPIF30110", "XMLSTR", "","", "false","","","","","false");
  358. ]]>
  359. </script>
  360. </button>
  361. <button id="button41" class="btn4_letter2" style="left:1073px; top:5px; width:56px; height:22px; ">
  362. <caption>삭제</caption>
  363. <script type="javascript" ev:event="onclick">
  364. <![CDATA[
  365. var i, j = 0, vpifhiuncrows = grd_pifhiunc.rows ;
  366. var vretechk = null, vdepoyn = null;
  367. for ( i = 1; i < vpifhiuncrows; i++ ) {
  368. vretechk = model.getValue("/root/main/list00/gridpifhiunc00[" + i + "]/retechk");
  369. if (vretechk == "Y") ++j ;
  370. }
  371. if (j < 1) return ;
  372. model.setValue("/root/main/list03/gridpifhiuncdel", grd_pifhiunc.getUpdateData());
  373. submit("TXPIF30112") ;
  374. select_init() ;
  375. ]]>
  376. </script>
  377. </button>
  378. <button id="button1" class="btn4_letter2" style="left:1133px; top:5px; width:56px; height:22px; ">
  379. <caption>닫기</caption>
  380. <script type="javascript" ev:event="onclick">
  381. <![CDATA[
  382. window.close();
  383. ]]>
  384. </script>
  385. </button>
  386. </group>
  387. </xhtml:body>
  388. </xhtml:html>