SMMMR03200_장애진단서청구이력.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  1. <?xml version="1.0" encoding="UTF-8"?>
  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>장애진단서 청구관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cond>
  11. <fromdd/>
  12. <todd/>
  13. <claiminstcd/>
  14. <handicapflag/>
  15. </cond>
  16. <handicappub>
  17. <handicappublist>
  18. <yearseqno/>
  19. <pid/>
  20. <hngnm/>
  21. <handicapflag/>
  22. <handicapgrdeno/>
  23. <adddetl/>
  24. <claimdd/>
  25. <price/>
  26. </handicappublist>
  27. </handicappub>
  28. </main>
  29. <send>
  30. <reqdata/>
  31. </send>
  32. <hidden/>
  33. <temp>
  34. <fromdd/>
  35. <todd/>
  36. <prntflag>I</prntflag>
  37. <totacc/>
  38. <totacc2/>
  39. <totcnt/>
  40. <totcnt2/>
  41. <startyyyymm/>
  42. <endyyyymm/>
  43. </temp>
  44. <init>
  45. <P0460/>
  46. <P0461/>
  47. <P0462/>
  48. <P0463/>
  49. </init>
  50. </root>
  51. </instance>
  52. <script type="javascript" ev:event="xforms-ready">
  53. <![CDATA[
  54. //화면초기화, 청구기간설정, 청구처, 장애구분 공통코드 조회
  55. model.removeNodeset("/root/main/handicappub/handicappublist");
  56. model.setValue("/root/main/cond/fromdd", getCurrentDate());
  57. model.setValue("/root/main/cond/todd" , getCurrentDate());
  58. zbcfGetCodeList(new Array("P0460",
  59. "P0461",
  60. "P0462",
  61. "P0463"),
  62. new Array("/root/init/P0460",
  63. "/root/init/P0461",
  64. "/root/init/P0462",
  65. "/root/init/P0463"));
  66. addComboInstance("/root/init/P0461", "cdid^cdnm", "-^전체", "P0461"); //장애구분 전체추가
  67. addComboInstance("/root/init/P0463", "cdid^cdnm", "-^전체", "P0463"); //청구기관 전체추가
  68. model.setValue("/root/main/cond/claiminstcd", "-");
  69. model.setValue("/root/main/cond/handicapflag" , "-");
  70. model.refresh();
  71. ]]>
  72. </script>
  73. <submission id="TRMMR03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/handicappub"/>
  74. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="urlencoded-post"/>
  75. <submission id="TRMMR03202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/claiminstlist"/>
  76. <submission id="TRMMR03203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/claiminstclspatlist"/>
  77. </model>
  78. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  80. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  82. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  83. <script type="javascript">
  84. <![CDATA[
  85. /**
  86. * @desc : 콤보박스에 원하는 instance node와 value를 설정
  87. */
  88. function addComboInstance(combopath, nodename, nodeval, parentnode){
  89. var xmlNode = model.instances(0).selectSingleNode(combopath + "/" + parentnode);
  90. if(xmlNode == null){
  91. return;
  92. }
  93. nodename = nodename.split("^");
  94. nodeval = nodeval.split("^");
  95. if(nodename.length != nodeval.length){
  96. return;
  97. }
  98. var label = model.instances(0).createElement(nodename[0]);
  99. var val = model.instances(0).createElement(nodename[1]);
  100. var combo = model.instances(0).createElement(parentnode);
  101. label.value = "" + nodeval[0] + "";
  102. val.value = "" + nodeval[1] + "";
  103. combo.appendChild(label);
  104. combo.appendChild(val);
  105. chkNode = model.instances(0).selectSingleNode(combopath);
  106. if(chkNode == null){
  107. model.makeNode(combopath);
  108. srcNode = model.instances(0).selectSingleNode(combopath);
  109. }else{
  110. srcNode = model.instances(0).selectSingleNode(combopath);
  111. }
  112. desNode = model.instances(0).selectSingleNode(combopath + "/" + parentnode);
  113. srcNode.insertBefore(combo, desNode);
  114. model.refresh();
  115. }
  116. ]]>
  117. </script>
  118. </xhtml:head>
  119. <xhtml:body guideline="1,1193;2,784;1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  120. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:144px; height:14px; ">장애진단서 청구관리</caption>
  121. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:17px; width:1193px; height:39px; background-color:#fffbf2; border-color:#ffd799; "/>
  122. <caption id="caption8" class="search_name" style="left:723px; top:27px; width:89px; height:17px; vertical-align:middle; ">장애구분 :</caption>
  123. <caption id="caption17" class="search_name" style="left:363px; top:27px; width:79px; height:17px; vertical-align:middle; ">청구처 :</caption>
  124. <caption id="lbl_PID" class="search_name" style="left:15px; top:27px; width:86px; height:17px; vertical-align:middle; ">청구기간 :</caption>
  125. <input id="input1" ref="/root/main/cond/fromdd" inputtype="date" appearance="input" style="left:106px; top:27px; width:100px; height:19px; "/>
  126. <input id="input2" ref="/root/main/cond/todd" inputtype="date" appearance="input" style="left:228px; top:27px; width:100px; height:19px; "/>
  127. <caption id="caption1" style="left:210px; top:27px; width:25px; height:20px; ">~</caption>
  128. <select1 id="combo1" ref="/root/main/cond/claiminstcd" appearance="minimal" style="left:440px; top:27px; width:245px; height:19px; ">
  129. <choices>
  130. <itemset nodeset="/root/init/P0463/P0463">
  131. <label ref="cdnm"/>
  132. <value ref="cdid"/>
  133. </itemset>
  134. </choices>
  135. </select1>
  136. <select1 id="combo2" ref="/root/main/cond/handicapflag" appearance="minimal" style="left:816px; top:27px; width:107px; height:19px; ">
  137. <choices>
  138. <itemset nodeset="/root/init/P0461/P0461">
  139. <label ref="cdnm"/>
  140. <value ref="cdid"/>
  141. </itemset>
  142. </choices>
  143. </select1>
  144. <button id="btn_req" class="btn1_letter2" style="left:1119px; top:25px; width:56px; height:22px; ">
  145. <caption>조회</caption>
  146. <script type="javascript" ev:event="DOMActivate">
  147. <![CDATA[
  148. model.removeNodeset("/root/send/reqdata");
  149. model.makeNode("/root/send/reqdata");
  150. model.copyNode("/root/send/reqdata", "/root/main/cond");
  151. if(submit("TRMMR03201")){
  152. }
  153. ]]>
  154. </script>
  155. </button>
  156. <line id="line3" style="x1:1101px; y1:25px; x2:1101px; y2:46px; border-color:#ffe4bb; border-left-style:solid; "/>
  157. <datagrid id="datagrid1" nodeset="/root/main/handicappub/handicappublist" caption="발행번호^환자명^주민등록번호^장애구분^급/호^주소^발급일^검진비^입금일^입금액^잔금" colsep="^" colwidth="100, 100, 133, 89, 75, 257, 88, 84, 79, 74, 81" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:86px; width:1193px; height:698px; ">
  158. <col ref="yearseqno"/>
  159. <col ref="hngnm"/>
  160. <col ref="rrgstno"/>
  161. <col disabled="true" ref="handicapflag" type="combo">
  162. <choices>
  163. <itemset nodeset="/root/init/P0461/P0461">
  164. <label ref="cdnm"/>
  165. <value ref="cdid"/>
  166. </itemset>
  167. </choices>
  168. </col>
  169. <col ref="handicapgrdeno" type="output"/>
  170. <col ref="detladdr"/>
  171. <col ref="claimdd" format="yyyy-mm-dd"/>
  172. <col ref="price" format="#,###" style="text-align:right; "/>
  173. <col ref="recvdd" format="yyyy-mm-dd" style="text-align:center; "/>
  174. <col ref="recvmoney" format="#,###" style="text-align:right; "/>
  175. <col ref="balance" format="#,###" style="text-align:right; "/>
  176. <script type="javascript" ev:event="ondblclick">
  177. <![CDATA[
  178. //pid^hngnm^claiminstcd^handicapflag^handicapgrde^handicapno^yearseqno^isssno
  179. if(isDataCell()){
  180. var currow = datagrid1.row;
  181. var pid = model.getValue("/root/main/handicappub/handicappublist[" + currow + "]/pid");
  182. var hngnm = model.getValue("/root/main/handicappub/handicappublist[" + currow + "]/hngnm");
  183. var claiminstcd = model.getValue("/root/main/handicappub/handicappublist[" + currow + "]/claiminstcd");
  184. var handicapflag= model.getValue("/root/main/handicappub/handicappublist[" + currow + "]/handicapflag");
  185. var handicapgrde= model.getValue("/root/main/handicappub/handicappublist[" + currow + "]/handicapgrde");
  186. var handicapno = model.getValue("/root/main/handicappub/handicappublist[" + currow + "]/handicapno");
  187. var yearseqno = model.getValue("/root/main/handicappub/handicappublist[" + currow + "]/yearseqno");
  188. var issno = model.getValue("/root/main/handicappub/handicappublist[" + currow + "]/issno");
  189. var param = pid + "^" + hngnm + "^" + claiminstcd + "^" + handicapflag + "^" + handicapgrde + "^" + handicapno + "^" + yearseqno + "^" + issno;
  190. setParameter("SPMMR06200_param", param);
  191. modal("SPMMR06200");
  192. btn_req.dispatch("DOMActivate");
  193. }
  194. ]]>
  195. </script>
  196. </datagrid>
  197. <line id="line1" class="line_1" style="x1:0px; y1:83px; x2:1193px; y2:82px; "/>
  198. <caption id="caption2" class="tit_2" style="left:0px; top:65px; width:139px; height:14px; vertical-align:middle; ">장애진단서 청구이력</caption>
  199. <button id="button1" class="btn2_letter2" style="left:1148px; top:59px; width:42px; height:19px; ">
  200. <caption>엑셀</caption>
  201. <script type="javascript" ev:event="DOMActivate">
  202. <![CDATA[
  203. var fileName = window.fileDialog("save", ",", false, "제증명이력", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  204. if (fileName != ""){
  205. datagrid1.saveExcel(fileName, "sheetname:sheet1;col_08:label;col_04:label;col_07:label;col_08:label;");
  206. }
  207. ]]>
  208. </script>
  209. </button>
  210. <group id="grup_claimprnt" visibility="hidden" style="left:465px; top:310px; width:265px; height:96px; border-color:#adceff; border-width:3px; border-style:solid; gradient:linear(0,0,100%,100%,white,#d7e7ff,1); ">
  211. <caption id="caption7" class="tit_2" style="left:3px; top:4px; width:236px; height:13px; ">장애진단서 청구이력 출력</caption>
  212. <button id="button5" class="btn2_letter2" style="left:170px; top:68px; width:42px; height:19px; ">
  213. <caption>출력</caption>
  214. <script type="javascript" ev:event="DOMActivate">
  215. <![CDATA[
  216. var prntflag = model.getValue("/root/temp/prntflag");
  217. var submitid = "";
  218. //기관지별 청구이력 출력
  219. if(prntflag == "I"){
  220. model.setValue("/root/temp/startyyyymm", model.getValue("/root/temp/fromdd").substring(0, 6));
  221. model.setValue("/root/temp/endyyyymm" , model.getValue("/root/temp/todd").substring(0, 6));
  222. model.removeNodeset("/root/send/reqdata");
  223. model.makeValue("/root/send/reqdata/fromdd", model.getValue("/root/temp/startyyyymm"));
  224. model.makeValue("/root/send/reqdata/todd" , model.getValue("/root/temp/endyyyymm"));
  225. if(submit("TRMMR03202")){
  226. var totacc = model.getXpathValue("sum(/root/main/claiminstlist/claiminstlist/account)");
  227. var totacc2= model.getXpathValue("sum(/root/main/claiminstlist/claiminstlist/account2)");
  228. var totcnt = model.getXpathValue("sum(/root/main/claiminstlist/claiminstlist/claimcnt)");
  229. var totcnt2= model.getXpathValue("sum(/root/main/claiminstlist/claiminstlist/claimcnt2)");
  230. model.setValue("/root/temp/totacc" , totacc);
  231. model.setValue("/root/temp/totacc2", totacc2);
  232. model.setValue("/root/temp/totcnt" , totcnt);
  233. model.setValue("/root/temp/totcnt2", totcnt2);
  234. exeReportPreview("RFMMR03202", "XMLSTR"); //미리보기만 가능
  235. }
  236. }else if(prntflag == "C"){
  237. model.setValue("/root/temp/startyyyymm", model.getValue("/root/temp/fromdd").substring(0, 6));
  238. model.setValue("/root/temp/endyyyymm" , model.getValue("/root/temp/todd").substring(0, 6));
  239. model.removeNodeset("/root/send/reqdata");
  240. model.makeValue("/root/send/reqdata/fromdd", model.getValue("/root/temp/startyyyymm"));
  241. model.makeValue("/root/send/reqdata/todd" , model.getValue("/root/temp/endyyyymm"));
  242. if(submit("TRMMR03203")){
  243. exeReportPreview("RFMMR03203", "XMLSTR"); //미리보기만 가능
  244. }
  245. }
  246. grup_claimprnt.attribute("visibility") = "hidden";
  247. model.refresh();
  248. ]]>
  249. </script>
  250. </button>
  251. <button id="button6" class="btn2_letter2" style="left:215px; top:68px; width:42px; height:19px; ">
  252. <caption>취소</caption>
  253. <script type="javascript" ev:event="DOMActivate">
  254. <![CDATA[
  255. grup_claimprnt.attribute("visibility") = "hidden";
  256. ]]>
  257. </script>
  258. </button>
  259. <caption id="caption23" class="cell_1" style="left:3px; top:44px; width:60px; height:23px; text-align:left; vertical-align:middle; ">출력종류</caption>
  260. <caption id="caption11" class="cell_1" style="left:3px; top:20px; width:60px; height:23px; text-align:left; vertical-align:middle; ">청구기관</caption>
  261. <input id="input3" ref="/root/temp/fromdd" inputtype="date" style="left:66px; top:23px; width:85px; height:19px; "/>
  262. <input id="input4" ref="/root/temp/todd" inputtype="date" style="left:164px; top:23px; width:85px; height:19px; "/>
  263. <caption id="caption3" style="left:150px; top:24px; width:15px; height:20px; text-align:center; ">~</caption>
  264. <select1 id="combo3" ref="/root/temp/prntflag" appearance="minimal" style="left:66px; top:46px; width:191px; height:19px; ">
  265. <choices>
  266. <item>
  267. <label>기관지별 청구이력</label>
  268. <value>I</value>
  269. </item>
  270. <item>
  271. <label>청구지별 청구이력</label>
  272. <value>C</value>
  273. </item>
  274. </choices>
  275. </select1>
  276. </group>
  277. <button id="button2" class="btn2_letter2" style="left:1104px; top:59px; width:42px; height:19px; ">
  278. <caption>출력</caption>
  279. <script type="javascript" ev:event="DOMActivate">
  280. <![CDATA[
  281. grup_claimprnt.attribute("visibility")="visible";
  282. model.setValue("/root/temp/fromdd", model.getValue("/root/main/cond/fromdd"));
  283. model.setValue("/root/temp/todd" , model.getValue("/root/main/cond/todd"));
  284. grup_claimprnt.refresh();
  285. ]]>
  286. </script>
  287. </button>
  288. </xhtml:body>
  289. </xhtml:html>