123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>SMPPIF30110_주민보류관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <sendlnk>
- </sendlnk>
- <sendlist00>
- <clamym/>
- <acptno/>
- <judgdg/>
- <instcd/>
- </sendlist00>
- <imgdata>
- <photimg/>
- </imgdata>
- </send>
- <main>
- <list00>
- <gridpifhiunc00>
- <clamym/>
- <decoseq/>
- <instcd/>
- <acptno/>
- <reteseqno/>
- <retechk/>
- <printchk/>
- <depoyn/>
- <lossyn/>
- <docuseqno/>
- <reteno/>
- <reteresn/>
- <pid/>
- <patnm/>
- <clmcstotamt/>
- <clclamamt/>
- <jrjudgdeciamt/>
- <jrownbmaxexamt/>
- <depodd/>
- <judgrid/>
- <insukind/>
- <procinstmark/>
- <procinstmarknm/>
- <clamrrgstno/>
- <rrgstno/>
- <certno/>
- <updtpatnm/>
- <updtinsd/>
- <updtprocinstmark/>
- <updtcertno/>
- <clamdg/>
- <pidsn/>
- <seq/>
- </gridpifhiunc00>
- <hospinfo>
- <proccorpcd/>
- <hospnm/>
- <clamprsdtel/>
- <prsdnm/>
- </hospinfo>
- </list00>
- <list02>
- <gridpifhiunc/>
- </list02>
- <list03>
- <gridpifhiuncdel>
- </gridpifhiuncdel>
- </list03>
- <result/>
- </main>
- <init>
- <totcount>
- <totcnt/>
- </totcount>
- <temp>
- <printlist>
- <reteno01/>
- <reteresn01/>
- <patnm01/>
- <rrgstno01/>
- <updtpatnm01/>
- <updtprocinstmark01/>
- <updtcertno01/>
- </printlist>
- </temp>
- </init>
- </root>
- </instance>
- <submission id="TRPIF30111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist00" resultref="/root/main/list00"/>
- <submission id="TXPIF30111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list02" resultref="/root/main/result"/>
- <submission id="TXPIF30112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list03" resultref="/root/main/result"/>
- <submission id="TRPAMCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden" replace="instance" resultref="/root/hidden/hospinfo"/>
- <submission id="TRPID20709" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/instimg"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 그리드 헤더에 삭제필드 전체선택 체크박스를 생성한다.
- grd_pifhiunc.fixedcellcheckbox(0, grd_pifhiunc.colRef("retechk")) = true;
- select_init() ;
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function select_init() {
- var vclamym, vacptno, vinstcd, vjudgdg ;
- vacptno = model.getvalue("root/send/sendlnk/acptno");
- vclamym = model.getvalue("root/send/sendlnk/clamym");
- vjudgdg = model.getvalue("root/send/sendlnk/judgdg");
- vinstcd = model.getvalue("root/send/sendlnk/instcd");
- if (vacptno == "" || vclamym == "") return ;
- model.setvalue("/root/send/sendlist00/acptno", vacptno) ;
- model.setvalue("/root/send/sendlist00/clamym", vclamym) ;
- model.setvalue("/root/send/sendlist00/judgdg", vjudgdg) ;
- model.setvalue("/root/send/sendlist00/instcd", vinstcd) ;
- submit("TRPIF30111") ;
- var rows = grd_pifhiunc.rows;
- model.setValue("/root/init/totcount/totcnt", Number(rows) -1);
-
- rowChk();
-
- // 직인 이미지
- submit("TRPID20709");
- var imgdata = model.getValue("/root/init/instimg/list/photimg"); // base64 encoding 문자열을 가져온다.
- model.setValue("/root/send/imgdata/photimg", imgdata,true);
- setImageRefInstance("/root/send/imgdata/photimg"); //base64 encoding 문자열을 이미지로 변환하여 보여준다,
-
- model.refresh();
- }
-
- // 조회해온 결과값에서 결손여부 필드값이 'Y' 인 경우 출력여부와 입금여부 필드를 disable 해준다.
- function rowChk() {
- for(var i=1;i<grd_pifhiunc.rows;i++){
- if(model.getValue("/root/main/list00/gridpifhiunc00["+i+"]/lossyn") == "Y") {
- grd_pifhiunc.isReadOnly(i, grd_pifhiunc.colRef("printchk")) = true;
- //grd_pifhiunc.isReadOnly(i, grd_pifhiunc.colRef("depoyn")) = true;
- } else {
- grd_pifhiunc.isReadOnly(i, grd_pifhiunc.colRef("printchk")) = false;
- //grd_pifhiunc.isReadOnly(i, grd_pifhiunc.colRef("depoyn")) = false;
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="SMPIF30110" scroll="auto" style="left:0px; top:3px; width:1194px; height:662px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:134px; height:13px; ">주민보류내역</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:26px; x2:1194px; y2:26px; "/>
- <datagrid id="grd_pifhiunc" nodeset="/root/main/list00/gridpifhiunc00" class="datagrid2" scroll="auto" caption="청구월^미수일련번호^기관코드^접수번호^No^^출력
선택^입금
여부^반송^명일련^보류번호^사유^등록번호^수진자^총진료비^청구액^심결액^상한금^지원금^장애인^심사자^보험유형^기관기호^기관명^주민번호(청구)^주민번호(확인)^증번호^수진자
(수정)^피보험자
(수정)^조합기호(수정)^증번호(수정)^청구차수(히든)^등록번호순번(히든)" 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; ">
- <col ref="clamym" visibility="hidden"/>
- <col ref="decoseq" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="acptno" visibility="hidden"/>
- <col ref="reteseqno" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="retechk" type="checkbox"/>
- <col checkvalue="Y,N" ref="printchk" type="checkbox"/>
- <col ref="depoyn" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="lossyn" type="checkbox"/>
- <col ref="docuseqno" style="text-align:center; "/>
- <col ref="reteno" type="input" maxlength="20" style="text-align:center; "/>
- <col ref="reteresn" type="input" maxlength="2" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="clmcstotamt" format="#,###" style="text-align:right; "/>
- <col ref="clclamamt" format="#,###" style="text-align:right; "/>
- <col ref="jrjudgdeciamt" format="#,###" style="left:836px; top:23px; width:96px; height:23px; text-align:right; "/>
- <col ref="jrownbmaxexamt" format="#,###" style="text-align:right; "/>
- <col ref="jrsuppamt" format="#,###" style="text-align:right; "/>
- <col ref="jrhandicaprfund" format="#,###" style="text-align:right; "/>
- <col ref="judgrid" style="text-align:center; "/>
- <col ref="insukind" style="text-align:center; "/>
- <col ref="procinstmark" style="text-align:center; "/>
- <col ref="procinstmarknm" style="text-align:center; "/>
- <col ref="clamrrgstno" format="999999-9999999" style="text-align:center; "/>
- <col ref="rrgstno" type="input" format="999999-9999999" maxlength="13" style="text-align:center; "/>
- <col ref="certno" style="text-align:center; "/>
- <col ref="updtpatnm" type="input" maxlength="30" style="text-align:center; "/>
- <col ref="updtinsd" type="input" maxlength="20" style="text-align:center; "/>
- <col ref="updtprocinstmark" type="input" maxlength="8" style="text-align:center; "/>
- <col ref="updtcertno" type="input" maxlength="20" style="text-align:center; "/>
- <col ref="clamdg" visibility="hidden"/>
- <col ref="pidsn" visibility="hidden"/>
- <col ref="seq" visibility="hidden"/>
- <script type="javascript" ev:event="oncopy">
- <![CDATA[
- grid_oncopy();
- ]]>
- </script>
- </datagrid>
- <col type="checkbox"/>
- <button id="button12" class="btn2_letter4" style="left:1127px; top:5px; width:65px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var today = new Date();
-
- var yy = today.getYear()+"";
- var mm = today.getMonth()+1;
- var dd = today.getDate();
-
- if(mm < 10) { mm = "0"+mm; } else { mm = mm+""; }
- if(dd < 10) { dd = "0" + dd; } else { dd = dd + ""; }
-
- var tmp = yy+mm+dd;
- var fileName = window.fileDialog("save", ",", false, "주민보류관리_"+tmp, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") { grd_pifhiunc.saveExcel(fileName, "SheetName", true, true, "", "", ""); }
- ]]>
- </script>
- </button>
- <button id="btn_listselect" class="btn2_letter6" visibility="hidden" style="left:953px; top:5px; width:86px; height:19px; ">
- <caption>전체삭제선택</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var i, vrowcount = grd_pifhiunc.rows, vretechk ;
- if (btn_listselect.text == "전체삭제선택" ) {
- vretechk = "Y" ;
- btn_listselect.text = "전체삭제해제" ;
- } else {
- vretechk = "N" ;
- btn_listselect.text = "전체삭제선택" ;
- }
- for (i = 1; i < vrowcount; i++) {
- // grd_pirhrgrt.retechk(i) = "Y" ;
- model.setValue("/root/main/list00/gridpifhiunc00[" + i + "]/retechk", vretechk);
- }
- ]]>
- </script>
- </button>
- <button id="btn_printselect" class="btn2_letter6" style="left:1040px; top:5px; width:64px; height:19px; ">
- <caption>전체출력선택</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var i, vrowcount = grd_pifhiunc.rows, vprintchk ;
- if (btn_printselect.text == "전체출력선택" ) {
- vprintchk = "Y" ;
- btn_printselect.text = "전체출력해제";
- } else {
- vprintchk = "N" ;
- btn_printselect.text = "전체출력선택";
- }
- for (i = 1; i < vrowcount; i++) {
- // grd_pirhrgrt.retechk(i) = "Y" ;
- model.setValue("/root/main/list00/gridpifhiunc00[" + i + "]/printchk", vprintchk);
- }
- ]]>
- </script>
- </button>
- <button id="button7" class="btn2_letter6" style="left:850px; top:5px; width:86px; height:19px; ">
- <caption>Open Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- try {
- window.exec("excel");
- } catch(e) {
- alert(e);
- }
- ]]>
- </script>
- </button>
- <button id="button10" class="btn2_letter3" style="left:740px; top:5px; width:53px; height:19px; ">
- <caption>열카피</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_pifhiunc.attribute("selectionmode") = "bycol";
- ]]>
- </script>
- </button>
- <button id="button11" class="btn2_letter3" style="left:795px; top:5px; width:53px; height:19px; ">
- <caption>행카피</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_pifhiunc.attribute("selectionmode") = "byrow";
- ]]>
- </script>
- </button>
- <button id="button13" class="btn2_letter3" style="left:685px; top:5px; width:53px; height:19px; ">
- <caption>셀카피</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_pifhiunc.attribute("selectionmode") = "free";
- ]]>
- </script>
- </button>
- <caption id="caption2" style="left:135px; top:10px; width:90px; height:14px; ">요양기관기호 :</caption>
- <output id="output1" ref="/root/main/list00/hospinfo/proccorpcd" style="left:217px; top:7px; width:80px; height:19px; font-weight:bold; "/>
- <caption id="caption3" style="left:302px; top:10px; width:90px; height:14px; ">요양기관명칭 :</caption>
- <output id="output2" ref="/root/main/list00/hospinfo/hospnm" style="left:384px; top:7px; width:205px; height:19px; font-weight:bold; "/>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:670px; width:1194px; height:29px; ">
- <button id="button42" class="btn4_letter2" style="left:1013px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var rows = grd_pifhiunc.rows;
- var cnt = 0;
-
- for(var i=1;i<rows;i++) {
- if(grd_pifhiunc.valueMatrix(i, grd_pifhiunc.colRef("retechk")) == "Y") {
- if(grd_pifhiunc.valueMatrix(i, grd_pifhiunc.colRef("reteno")) == "") {
- messageBox(i+"번째행의 보류번호를","C001");
- grd_pifhiunc.row(i);
- return false;
- }
- cnt++;
- }
- }
-
- if(cnt > 0) {
- //model.setValue("/root/main/list02/gridpifhiunc", grd_pifhiunc.getUpdateData());
- model.setValue("/root/main/list02/gridpifhiunc", '');
- model.setValue("/root/main/list02/gridpifhiunc", getNodeListCSV(instance1.selectNodes("/root/main/list00/gridpifhiunc00[retechk = 'Y']")));
- submit("TXPIF30111") ;
-
- rowChk(); // 조회결과에서 결손여부 행에 이벤트 주기
-
- select_init() ;
- }
- ]]>
- </script>
- </button>
- <button id="button93" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/init/totcount");
- //model.resetInstanceNode("/root/init/temp");
- model.removenode("/root/init/temp");
- var totcnt = getNodesetCount("/root/main/list00/gridpifhiunc00[printchk = 'Y']");
- var cnt = 0;
- for(var i=1;i<grd_pifhiunc.rows;i++){
- if(model.getValue("/root/main/list00/gridpifhiunc00["+i+"]/printchk") == "Y") {
- cnt++;
-
- model.makeNode("/root/init/temp/printlist["+cnt+"]/reteno01");
- model.makeNode("/root/init/temp/printlist["+cnt+"]/reteresn01");
- model.makeNode("/root/init/temp/printlist["+cnt+"]/patnm01");
- model.makeNode("/root/init/temp/printlist["+cnt+"]/rrgstno01");
- model.makeNode("/root/init/temp/printlist["+cnt+"]/updtpatnm01");
- model.makeNode("/root/init/temp/printlist["+cnt+"]/updtinsd");
- model.makeNode("/root/init/temp/printlist["+cnt+"]/updtprocinstmark01");
- model.makeNode("/root/init/temp/printlist["+cnt+"]/updtcertno01");
-
- model.setValue("/root/init/temp/printlist["+cnt+"]/reteno01", model.getValue("/root/main/list00/gridpifhiunc00["+i+"]/reteno"));
- model.setValue("/root/init/temp/printlist["+cnt+"]/reteresn01", model.getValue("/root/main/list00/gridpifhiunc00["+i+"]/reteresn"));
- model.setValue("/root/init/temp/printlist["+cnt+"]/patnm01", model.getValue("/root/main/list00/gridpifhiunc00["+i+"]/patnm"));
- model.setValue("/root/init/temp/printlist["+cnt+"]/rrgstno01", model.getValue("/root/main/list00/gridpifhiunc00["+i+"]/rrgstno"));
- model.setValue("/root/init/temp/printlist["+cnt+"]/updtpatnm01", model.getValue("/root/main/list00/gridpifhiunc00["+i+"]/updtpatnm"));
- model.setValue("/root/init/temp/printlist["+cnt+"]/updtinsd", model.getValue("/root/main/list00/gridpifhiunc00["+i+"]/updtinsd"));
- model.setValue("/root/init/temp/printlist["+cnt+"]/updtprocinstmark01", model.getValue("/root/main/list00/gridpifhiunc00["+i+"]/updtprocinstmark"));
- model.setValue("/root/init/temp/printlist["+cnt+"]/updtcertno01", model.getValue("/root/main/list00/gridpifhiunc00["+i+"]/updtcertno"));
-
- model.makeValue("/root/init/temp/printlist["+cnt+"]/proccorpcd", model.getValue("/root/main/list00/hospinfo/proccorpcd"));
- model.makeValue("/root/init/temp/printlist["+cnt+"]/hospnm", model.getValue("/root/main/list00/hospinfo/hospnm"));
- model.makeValue("/root/init/temp/printlist["+cnt+"]/clamprsdtel", model.getValue("/root/main/list00/hospinfo/clamprsdtel"));
- model.makeValue("/root/init/temp/printlist["+cnt+"]/prsdnm", model.getValue("/root/main/list00/hospinfo/prsdnm"));
- model.makeValue("/root/init/temp/printlist["+cnt+"]/totcnt", totcnt);
-
- //직인
- model.makeValue("/root/init/temp/printlist["+cnt+"]/photimg",model.getValue("/root/send/imgdata/photimg"),true);
- }
- }
-
- //병원정보카피
- //model.copyNode("/root/init/hospinfo", "/root/main/list00/hospinfo");
-
- exeReportPreview("RPPIF30110", "XMLSTR", "","", "false","","","","","false");
- ]]>
- </script>
- </button>
- <button id="button41" class="btn4_letter2" style="left:1073px; top:5px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var i, j = 0, vpifhiuncrows = grd_pifhiunc.rows ;
- var vretechk = null, vdepoyn = null;
- for ( i = 1; i < vpifhiuncrows; i++ ) {
- vretechk = model.getValue("/root/main/list00/gridpifhiunc00[" + i + "]/retechk");
- if (vretechk == "Y") ++j ;
- }
- if (j < 1) return ;
- model.setValue("/root/main/list03/gridpifhiuncdel", grd_pifhiunc.getUpdateData());
- submit("TXPIF30112") ;
-
- select_init() ;
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter2" style="left:1133px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|