123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>장애진단서 청구관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cond>
- <fromdd/>
- <todd/>
- <claiminstcd/>
- <handicapflag/>
- </cond>
- <handicappub>
- <handicappublist>
- <yearseqno/>
- <pid/>
- <hngnm/>
- <handicapflag/>
- <handicapgrdeno/>
- <adddetl/>
- <claimdd/>
- <price/>
- </handicappublist>
- </handicappub>
- </main>
- <send>
- <reqdata/>
- </send>
- <hidden/>
- <temp>
- <fromdd/>
- <todd/>
- <prntflag>I</prntflag>
- <totacc/>
- <totacc2/>
- <totcnt/>
- <totcnt2/>
- <startyyyymm/>
- <endyyyymm/>
- </temp>
- <init>
- <P0460/>
- <P0461/>
- <P0462/>
- <P0463/>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면초기화, 청구기간설정, 청구처, 장애구분 공통코드 조회
- model.removeNodeset("/root/main/handicappub/handicappublist");
- model.setValue("/root/main/cond/fromdd", getCurrentDate());
- model.setValue("/root/main/cond/todd" , getCurrentDate());
- zbcfGetCodeList(new Array("P0460",
- "P0461",
- "P0462",
- "P0463"),
- new Array("/root/init/P0460",
- "/root/init/P0461",
- "/root/init/P0462",
- "/root/init/P0463"));
-
- addComboInstance("/root/init/P0461", "cdid^cdnm", "-^전체", "P0461"); //장애구분 전체추가
- addComboInstance("/root/init/P0463", "cdid^cdnm", "-^전체", "P0463"); //청구기관 전체추가
- model.setValue("/root/main/cond/claiminstcd", "-");
- model.setValue("/root/main/cond/handicapflag" , "-");
- model.refresh();
- ]]>
- </script>
- <submission id="TRMMR03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/handicappub"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="urlencoded-post"/>
- <submission id="TRMMR03202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/claiminstlist"/>
- <submission id="TRMMR03203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/claiminstclspatlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
- /**
- * @desc : 콤보박스에 원하는 instance node와 value를 설정
- */
- function addComboInstance(combopath, nodename, nodeval, parentnode){
- var xmlNode = model.instances(0).selectSingleNode(combopath + "/" + parentnode);
- if(xmlNode == null){
- return;
- }
- nodename = nodename.split("^");
- nodeval = nodeval.split("^");
- if(nodename.length != nodeval.length){
- return;
- }
- var label = model.instances(0).createElement(nodename[0]);
- var val = model.instances(0).createElement(nodename[1]);
- var combo = model.instances(0).createElement(parentnode);
- label.value = "" + nodeval[0] + "";
- val.value = "" + nodeval[1] + "";
- combo.appendChild(label);
- combo.appendChild(val);
- chkNode = model.instances(0).selectSingleNode(combopath);
- if(chkNode == null){
- model.makeNode(combopath);
- srcNode = model.instances(0).selectSingleNode(combopath);
- }else{
- srcNode = model.instances(0).selectSingleNode(combopath);
- }
- desNode = model.instances(0).selectSingleNode(combopath + "/" + parentnode);
- srcNode.insertBefore(combo, desNode);
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1193;2,784;1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:144px; height:14px; ">장애진단서 청구관리</caption>
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:17px; width:1193px; height:39px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption8" class="search_name" style="left:723px; top:27px; width:89px; height:17px; vertical-align:middle; ">장애구분 :</caption>
- <caption id="caption17" class="search_name" style="left:363px; top:27px; width:79px; height:17px; vertical-align:middle; ">청구처 :</caption>
- <caption id="lbl_PID" class="search_name" style="left:15px; top:27px; width:86px; height:17px; vertical-align:middle; ">청구기간 :</caption>
- <input id="input1" ref="/root/main/cond/fromdd" inputtype="date" appearance="input" style="left:106px; top:27px; width:100px; height:19px; "/>
- <input id="input2" ref="/root/main/cond/todd" inputtype="date" appearance="input" style="left:228px; top:27px; width:100px; height:19px; "/>
- <caption id="caption1" style="left:210px; top:27px; width:25px; height:20px; ">~</caption>
- <select1 id="combo1" ref="/root/main/cond/claiminstcd" appearance="minimal" style="left:440px; top:27px; width:245px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0463/P0463">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo2" ref="/root/main/cond/handicapflag" appearance="minimal" style="left:816px; top:27px; width:107px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0461/P0461">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_req" class="btn1_letter2" style="left:1119px; top:25px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- if(submit("TRMMR03201")){
- }
- ]]>
- </script>
- </button>
- <line id="line3" style="x1:1101px; y1:25px; x2:1101px; y2:46px; border-color:#ffe4bb; border-left-style:solid; "/>
- <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; ">
- <col ref="yearseqno"/>
- <col ref="hngnm"/>
- <col ref="rrgstno"/>
- <col disabled="true" ref="handicapflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0461/P0461">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="handicapgrdeno" type="output"/>
- <col ref="detladdr"/>
- <col ref="claimdd" format="yyyy-mm-dd"/>
- <col ref="price" format="#,###" style="text-align:right; "/>
- <col ref="recvdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="recvmoney" format="#,###" style="text-align:right; "/>
- <col ref="balance" format="#,###" style="text-align:right; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //pid^hngnm^claiminstcd^handicapflag^handicapgrde^handicapno^yearseqno^isssno
- if(isDataCell()){
- var currow = datagrid1.row;
- var pid = model.getValue("/root/main/handicappub/handicappublist[" + currow + "]/pid");
- var hngnm = model.getValue("/root/main/handicappub/handicappublist[" + currow + "]/hngnm");
- var claiminstcd = model.getValue("/root/main/handicappub/handicappublist[" + currow + "]/claiminstcd");
- var handicapflag= model.getValue("/root/main/handicappub/handicappublist[" + currow + "]/handicapflag");
- var handicapgrde= model.getValue("/root/main/handicappub/handicappublist[" + currow + "]/handicapgrde");
- var handicapno = model.getValue("/root/main/handicappub/handicappublist[" + currow + "]/handicapno");
- var yearseqno = model.getValue("/root/main/handicappub/handicappublist[" + currow + "]/yearseqno");
- var issno = model.getValue("/root/main/handicappub/handicappublist[" + currow + "]/issno");
-
- var param = pid + "^" + hngnm + "^" + claiminstcd + "^" + handicapflag + "^" + handicapgrde + "^" + handicapno + "^" + yearseqno + "^" + issno;
- setParameter("SPMMR06200_param", param);
- modal("SPMMR06200");
-
- btn_req.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:83px; x2:1193px; y2:82px; "/>
- <caption id="caption2" class="tit_2" style="left:0px; top:65px; width:139px; height:14px; vertical-align:middle; ">장애진단서 청구이력</caption>
- <button id="button1" class="btn2_letter2" style="left:1148px; top:59px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "제증명이력", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != ""){
- datagrid1.saveExcel(fileName, "sheetname:sheet1;col_08:label;col_04:label;col_07:label;col_08:label;");
- }
- ]]>
- </script>
- </button>
- <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); ">
- <caption id="caption7" class="tit_2" style="left:3px; top:4px; width:236px; height:13px; ">장애진단서 청구이력 출력</caption>
- <button id="button5" class="btn2_letter2" style="left:170px; top:68px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var prntflag = model.getValue("/root/temp/prntflag");
- var submitid = "";
-
- //기관지별 청구이력 출력
- if(prntflag == "I"){
- model.setValue("/root/temp/startyyyymm", model.getValue("/root/temp/fromdd").substring(0, 6));
- model.setValue("/root/temp/endyyyymm" , model.getValue("/root/temp/todd").substring(0, 6));
-
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/fromdd", model.getValue("/root/temp/startyyyymm"));
- model.makeValue("/root/send/reqdata/todd" , model.getValue("/root/temp/endyyyymm"));
-
- if(submit("TRMMR03202")){
- var totacc = model.getXpathValue("sum(/root/main/claiminstlist/claiminstlist/account)");
- var totacc2= model.getXpathValue("sum(/root/main/claiminstlist/claiminstlist/account2)");
- var totcnt = model.getXpathValue("sum(/root/main/claiminstlist/claiminstlist/claimcnt)");
- var totcnt2= model.getXpathValue("sum(/root/main/claiminstlist/claiminstlist/claimcnt2)");
-
- model.setValue("/root/temp/totacc" , totacc);
- model.setValue("/root/temp/totacc2", totacc2);
- model.setValue("/root/temp/totcnt" , totcnt);
- model.setValue("/root/temp/totcnt2", totcnt2);
-
- exeReportPreview("RFMMR03202", "XMLSTR"); //미리보기만 가능
- }
-
- }else if(prntflag == "C"){
- model.setValue("/root/temp/startyyyymm", model.getValue("/root/temp/fromdd").substring(0, 6));
- model.setValue("/root/temp/endyyyymm" , model.getValue("/root/temp/todd").substring(0, 6));
-
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/fromdd", model.getValue("/root/temp/startyyyymm"));
- model.makeValue("/root/send/reqdata/todd" , model.getValue("/root/temp/endyyyymm"));
-
- if(submit("TRMMR03203")){
- exeReportPreview("RFMMR03203", "XMLSTR"); //미리보기만 가능
- }
- }
- grup_claimprnt.attribute("visibility") = "hidden";
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter2" style="left:215px; top:68px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grup_claimprnt.attribute("visibility") = "hidden";
- ]]>
- </script>
- </button>
- <caption id="caption23" class="cell_1" style="left:3px; top:44px; width:60px; height:23px; text-align:left; vertical-align:middle; ">출력종류</caption>
- <caption id="caption11" class="cell_1" style="left:3px; top:20px; width:60px; height:23px; text-align:left; vertical-align:middle; ">청구기관</caption>
- <input id="input3" ref="/root/temp/fromdd" inputtype="date" style="left:66px; top:23px; width:85px; height:19px; "/>
- <input id="input4" ref="/root/temp/todd" inputtype="date" style="left:164px; top:23px; width:85px; height:19px; "/>
- <caption id="caption3" style="left:150px; top:24px; width:15px; height:20px; text-align:center; ">~</caption>
- <select1 id="combo3" ref="/root/temp/prntflag" appearance="minimal" style="left:66px; top:46px; width:191px; height:19px; ">
- <choices>
- <item>
- <label>기관지별 청구이력</label>
- <value>I</value>
- </item>
- <item>
- <label>청구지별 청구이력</label>
- <value>C</value>
- </item>
- </choices>
- </select1>
- </group>
- <button id="button2" class="btn2_letter2" style="left:1104px; top:59px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grup_claimprnt.attribute("visibility")="visible";
- model.setValue("/root/temp/fromdd", model.getValue("/root/main/cond/fromdd"));
- model.setValue("/root/temp/todd" , model.getValue("/root/main/cond/todd"));
- grup_claimprnt.refresh();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|