123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>보험 유형별 세부 내역서</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <medilist>
- <mediinfo>
- <ioflag/>
- <pid/>
- <hngnm/>
- <indd/>
- <cretno/>
- <execfromdd/>
- <exectodd/>
- <insukind/>
- <insukindnm/>
- <suppkind/>
- <suppkindnm/>
- </mediinfo>
- </medilist>
- <detllist>
- <suminfo>
- <hngnm/>
- <hometel/>
- <mpphontel/>
- <rrgstno/>
- <agsx/>
- <licnsno/>
- <proccorpcd/>
- <orddeptnm/>
- <orddrnm/>
- <pid/>
- <indd/>
- <dschdd/>
- <orddeptcd/>
- <orddrid/>
- <totamt/>
- <payamt/>
- <nopyamt/>
- <allownbamt/>
- <specamt/>
- <ownbamt/>
- <insubamt/>
- <discamt/>
- <paydiscamt/>
- <nopydiscamt/>
- <specdiscamt/>
- <hospaddamt/>
- <ioflag/>
- <execfromdd/>
- <exectodd/>
- <insukindnm/>
- <suppkindnm/>
- <logoimgurl/>
- </suminfo>
- <calcinfo>
- <earncls/>
- <calcscorcd/>
- <calcscornm/>
- <edicd/>
- <calcpayflag/>
- <calcqty/>
- <calctims/>
- <calcdays/>
- <appunitcost/>
- <calcamt/>
- <hospaddamt/>
- <payownbrate/>
- <payamt/>
- <payownbamt/>
- <payinsubamt/>
- <paydiscamt/>
- <allownbamt/>
- <allownownbamt/>
- <allowninsubamt/>
- <nopyamt/>
- <nopyownbamt/>
- <nopyinsubamt/>
- <nopydiscamt/>
- <specamt/>
- <specownbamt/>
- <specinsubamt/>
- <specdiscamt/>
- <limitdiffamt/>
- <ageflag/>
- <nightflag/>
- <holprcpflag/>
- <matractflag/>
- <erprcpflag/>
- <specordyn/>
- <hosoutexptresncd/>
- </calcinfo>
- </detllist>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <pid/>
- <ioflag/>
- <indd/>
- <cretno/>
- <insukind/>
- <suppkind/>
- <execfromdd/>
- <exectodd/>
- </send>
- <hidden>
- <dispinfo>
- <cap1/>
- <val1/>
- <cap2/>
- <val2/>
- <cap3/>
- <val3/>
- <cap4/>
- <val4/>
- </dispinfo>
- </hidden>
- <report>
- <prtinfo>
- <instcd/>
- <fromdd/>
- <todd/>
- <prtdt/>
- </prtinfo>
- </report>
- </root>
- </instance>
- <submission id="TRPAC05001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/medilist/mediinfo"/>
- <submission id="TRPAC05002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/detllist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fSetDispGrid() {
-
- var path = "/root/hidden/dispinfo";
-
- model.makeValue(path + "[" + 1 + "]/cap1", "등록번호");
- model.makeValue(path + "[" + 2 + "]/cap1", "이름");
- model.makeValue(path + "[" + 3 + "]/cap1", "집전화");
- model.makeValue(path + "[" + 4 + "]/cap1", "휴대전화");
- model.makeValue(path + "[" + 5 + "]/cap1", "주민번호");
- model.makeValue(path + "[" + 6 + "]/cap1", "나이/성별");
- model.makeValue(path + "[" + 1 + "]/val1", model.getValue("/root/main/detllist/suminfo/pid"));
- model.makeValue(path + "[" + 2 + "]/val1", model.getValue("/root/main/detllist/suminfo/hngnm"));
- model.makeValue(path + "[" + 3 + "]/val1", model.getValue("/root/main/detllist/suminfo/hometel"));
- model.makeValue(path + "[" + 4 + "]/val1", model.getValue("/root/main/detllist/suminfo/mpphontel"));
- model.makeValue(path + "[" + 5 + "]/val1", model.getValue("/root/main/detllist/suminfo/rrgstno"));
- model.makeValue(path + "[" + 6 + "]/val1", model.getValue("/root/main/detllist/suminfo/agsx"));
-
- model.makeValue(path + "[" + 1 + "]/cap2", "기관기호");
- model.makeValue(path + "[" + 2 + "]/cap2", "진료과");
- model.makeValue(path + "[" + 3 + "]/cap2", "진료의사");
- model.makeValue(path + "[" + 4 + "]/cap2", "면허번호");
- model.makeValue(path + "[" + 5 + "]/cap2", "입원/진료일");
- model.makeValue(path + "[" + 6 + "]/cap2", "퇴원일");
- model.makeValue(path + "[" + 1 + "]/val2", model.getValue("/root/main/detllist/suminfo/proccorpcd"));
- model.makeValue(path + "[" + 2 + "]/val2", model.getValue("/root/main/detllist/suminfo/orddeptnm"));
- model.makeValue(path + "[" + 3 + "]/val2", model.getValue("/root/main/detllist/suminfo/orddrnm"));
- model.makeValue(path + "[" + 4 + "]/val2", model.getValue("/root/main/detllist/suminfo/licnsno"));
- model.makeValue(path + "[" + 5 + "]/val2", model.getValue("/root/main/detllist/suminfo/indd"));
- model.makeValue(path + "[" + 6 + "]/val2", model.getValue("/root/main/detllist/suminfo/dschdd"));
-
- model.makeValue(path + "[" + 1 + "]/cap3", "총진료비");
- model.makeValue(path + "[" + 2 + "]/cap3", "급여");
- model.makeValue(path + "[" + 3 + "]/cap3", "비급여");
- model.makeValue(path + "[" + 4 + "]/cap3", "전액본인부담");
- model.makeValue(path + "[" + 5 + "]/cap3", "선택진료");
- model.makeValue(path + "[" + 6 + "]/cap3", "병원가산");
- model.makeValue(path + "[" + 1 + "]/val3", model.getValue("/root/main/detllist/suminfo/totamt"));
- model.makeValue(path + "[" + 2 + "]/val3", model.getValue("/root/main/detllist/suminfo/payamt"));
- model.makeValue(path + "[" + 3 + "]/val3", model.getValue("/root/main/detllist/suminfo/nopyamt"));
- model.makeValue(path + "[" + 4 + "]/val3", model.getValue("/root/main/detllist/suminfo/allownbamt"));
- model.makeValue(path + "[" + 5 + "]/val3", model.getValue("/root/main/detllist/suminfo/specamt"));
- model.makeValue(path + "[" + 6 + "]/val3", model.getValue("/root/main/detllist/suminfo/hospaddamt"));
-
- model.makeValue(path + "[" + 1 + "]/cap4", "급여감면");
- model.makeValue(path + "[" + 2 + "]/cap4", "비급여감면");
- model.makeValue(path + "[" + 3 + "]/cap4", "선택진료감면");
- model.makeValue(path + "[" + 4 + "]/cap4", "감면합계");
- model.makeValue(path + "[" + 5 + "]/cap4", "공단부담합계");
- model.makeValue(path + "[" + 6 + "]/cap4", "본인부담합계");
- model.makeValue(path + "[" + 1 + "]/val4", model.getValue("/root/main/detllist/suminfo/paydiscamt"));
- model.makeValue(path + "[" + 2 + "]/val4", model.getValue("/root/main/detllist/suminfo/nopydiscamt"));
- model.makeValue(path + "[" + 3 + "]/val4", model.getValue("/root/main/detllist/suminfo/specdiscamt"));
- model.makeValue(path + "[" + 4 + "]/val4", model.getValue("/root/main/detllist/suminfo/discamt"));
- model.makeValue(path + "[" + 5 + "]/val4", model.getValue("/root/main/detllist/suminfo/insubamt"));
- model.makeValue(path + "[" + 6 + "]/val4", model.getValue("/root/main/detllist/suminfo/ownbamt"));
-
- grd_disp.refresh();
-
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- var fromdd = getCurrentDate().toDate().getAddDate(-1, "Y").getDateFormat();
-
- //model.setValue("/root/send/fromdd", fromdd);
- model.setValue("/root/send/fromdd", getCurrentDate());
- model.setValue("/root/send/todd", getCurrentDate());
-
- ipt_fromdd.refresh();
- ipt_todd.refresh();
-
- grd_medi.rowHeightMin = 23;
- grd_calc.rowHeightMin = 23;
-
- fSetDispGrid();
-
- grd_disp.cellFormat(4, 3) = "yyyy-mm-dd";
- grd_disp.cellFormat(5, 3) = "yyyy-mm-dd";
-
- for (var i = 0; i < 6; i++) {
- grd_disp.cellFormat(i, 5) = "(-)#,###";
- grd_disp.cellFormat(i, 7) = "(-)#,###";
- grd_disp.cellStyle("text-align", i, 5) = "right";
- grd_disp.cellStyle("text-align", i, 7) = "right";
- grd_disp.cellStyle("padding-right", i, 5) = "1";
- grd_disp.cellStyle("padding-right", i, 7) = "1";
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body 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:160px; height:14px; ">보험 유형별 세부 내역서</caption>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:20px; width:1195px; height:40px; "/>
- <caption id="caption35" class="search_name" style="left:5px; top:31px; width:91px; height:17px; ">실시 일자 :</caption>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" navindex="1" inputtype="date" style="left:102px; top:30px; width:90px; height:19px; "/>
- <caption id="caption4" style="left:194px; top:34px; width:15px; height:15px; text-align:center; ">~</caption>
- <input id="ipt_todd" ref="/root/send/todd" class="input_search" navindex="2" inputtype="date" style="left:210px; top:30px; width:90px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:340px; top:32px; width:91px; height:17px; ">등록번호 :</caption>
- <input id="ipt_pid" ref="/root/send/pid" class="input_search" navindex="3" style="left:433px; top:30px; width:70px; height:19px; font-weight:bold; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <line id="line14" class="line_4" style="x1:1110px; y1:28px; x2:1110px; y2:53px; font-family:돋움체; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1125px; top:29px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var dd = getDateInterval(model.getValue("/root/send/fromdd"), model.getValue("/root/send/todd"), "mm");
-
- if (dd > 12) {
- messageBox("1년 이상은 조회할 수 없습니다.", "E999");
- return;
- }
-
- if (getUserId() != "PAM" && model.getValue("/root/send/pid") == "") {
- messageBox("등록번호를 입력해 주십시오.", "E999");
- return;
- }
-
- if (model.getValue("/root/send/pid") == "" && model.getValue("/root/send/fromdd") != model.getValue("/root/send/todd")) {
- messageBox("일자별 내역 조회는 하루만 가능합니다.", "E999");
- return;
- }
-
- model.resetInstanceNode("/root/main/detllist/suminfo");
- model.resetInstanceNode("/root/main/detllist/calcinfo");
-
- grd_calc.refresh();
-
- fSetDispGrid();
-
- submit("TRPAC05001");
-
- ]]>
- </script>
- </button>
- <caption id="caption77" class="tit_2" style="left:0px; top:70px; width:85px; height:14px; ">진료 내역</caption>
- <line id="line_comp" class="line_1" style="x1:0px; y1:85px; x2:550px; y2:85px; "/>
- <datagrid id="grd_medi" nodeset="/root/main/medilist/mediinfo" caption="구분^등록번호^환자명^입원/진료일^실시시작일^실시종료일^보험유형^보조유형" colsep="^" colwidth="35, 55, 55, 75, 70, 70, 70, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:90px; width:550px; height:140px; ">
- <col disabled="true" ref="ioflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </col>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="execfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="exectodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="insukindnm"/>
- <col ref="suppkindnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- var path = "/root/main/medilist/mediinfo[" + grd_medi.row + "]/";
-
- model.setValue("/root/send/pid", model.getValue(path + "pid"));
- model.setValue("/root/send/ioflag", model.getValue(path + "ioflag"));
- model.setValue("/root/send/indd", model.getValue(path + "indd"));
- model.setValue("/root/send/cretno", model.getValue(path + "cretno"));
- model.setValue("/root/send/insukind", model.getValue(path + "insukind"));
- model.setValue("/root/send/suppkind", model.getValue(path + "suppkind"));
- model.setValue("/root/send/execfromdd", model.getValue(path + "execfromdd"));
- model.setValue("/root/send/exectodd", model.getValue(path + "exectodd"));
-
- grd_calc.rebuildStyle();
-
- submit("TRPAC05002");
-
- fSetDispGrid();
-
- var cnt = instance1.selectNodes("/root/main/detllist/calcinfo").length;
-
- //grd_calc.colStyle(0, "all", "background-color") = "#ffffd7";
-
- for (var i = 1; i <= cnt; i++) {
-
- var cd = model.getValue("/root/main/detllist/calcinfo[" + i + "]/calcscornm");
-
- if (cd == "소계") {
- grd_calc.rowStyle(i, "all", "background-color") = "#ffffd7";
-
- } else if (cd == "합계") {
- //grd_calc.rowStyle(i, "all", "font-weight") = "bold";
- grd_calc.rowStyle(i, "all", "background-color") = "#ffffa0";
- }
- }
-
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="tit_2" style="left:555px; top:70px; width:123px; height:13px; ">진료 및 수납 정보</caption>
- <line id="line2" class="line_1" style="x1:555px; y1:85px; x2:1195px; y2:85px; "/>
- <datagrid id="grd_disp" nodeset="/root/hidden/dispinfo" disabled="true" backcoloralternate="transparent" colsep="^" colwidth="70,95,75,95,80,71,80,72" mergecellsfixedrows="bycolrec" rowheight="0" rowsep="|" selectionmode="free" style="left:555px; top:90px; width:640px; height:139px; border-right-width:0; border-bottom-width:0; ">
- <col ref="cap1" style="background-color:#cce8ff; "/>
- <col ref="val1"/>
- <col ref="cap2" style="background-color:#cce8ff; "/>
- <col ref="val2"/>
- <col ref="cap3" style="background-color:#cce8ff; "/>
- <col ref="val3"/>
- <col ref="cap4" style="background-color:#cce8ff; "/>
- <col ref="val4"/>
- </datagrid>
- <caption id="caption2" class="tit_2" style="left:0px; top:240px; width:85px; height:14px; ">실시 내역</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:255px; x2:1195px; y2:255px; "/>
- <datagrid id="grd_calc" nodeset="/root/main/detllist/calcinfo" autoresize="true" backcoloralternate="transparent" caption="수익구분^수가코드^수가명^EDI코드^급여^수량^횟수^일수^단가^계산금액^병원가산액^급여^전액본인부담^비급여^선택진료^상한차액^나이가산^야간가산^공휴가산^기술가산^응급가산^지정가산" colsep="^" colwidth="90, 80, 320, 80, 40, 50, 50, 50, 80, 80, 80, 80, 80, 80, 80, 80, 55, 55, 55, 55, 55, 55" frozencols="3" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:0px; top:260px; width:1195px; height:520px; ">
- <col ref="earncls" style="text-align:center; background-color:#ffffd7; "/>
- <col ref="calcscorcd" style="text-align:center; "/>
- <col ref="calcscornm"/>
- <col ref="edicd" style="text-align:center; "/>
- <col ref="calcpayflag" style="text-align:center; "/>
- <col ref="calcqty" style="text-align:center; "/>
- <col ref="calctims" style="text-align:center; "/>
- <col ref="calcdays" style="text-align:center; "/>
- <col ref="appunitcost" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col ref="calcamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col ref="hospaddamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col ref="payamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col ref="allownbamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col ref="nopyamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col ref="specamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col ref="limitdiffamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col ref="ageflag" style="text-align:center; "/>
- <col ref="nightflag" style="text-align:center; "/>
- <col ref="holprcpflag" style="text-align:center; "/>
- <col ref="matractflag" style="text-align:center; "/>
- <col ref="erprcpflag" style="text-align:center; "/>
- <col ref="specordyn" style="text-align:center; "/>
- </datagrid>
- <button id="btn_prt" class="btn2_letter2" style="left:1110px; top:235px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (instance1.selectNodes("/root/main/detllist/calcinfo[calcscorcd!='']").length < 1) {
- messageBox("계산 내역이 없습니다.", "E999");
- return;
- }
-
- model.makeValue("/root/main/detllist/suminfo/ioflag", model.getValue("/root/main/medilist/mediinfo[" + grd_medi.row + "]/ioflag"));
- model.makeValue("/root/main/detllist/suminfo/execfromdd", model.getValue("/root/main/medilist/mediinfo[" + grd_medi.row + "]/execfromdd"));
- model.makeValue("/root/main/detllist/suminfo/exectodd", model.getValue("/root/main/medilist/mediinfo[" + grd_medi.row + "]/exectodd"));
- model.makeValue("/root/main/detllist/suminfo/insukindnm", model.getValue("/root/main/medilist/mediinfo[" + grd_medi.row + "]/insukindnm"));
- model.makeValue("/root/main/detllist/suminfo/suppkindnm", model.getValue("/root/main/medilist/mediinfo[" + grd_medi.row + "]/suppkindnm"));
- model.makevalue("/root/main/detllist/suminfo/logoimgurl", getLogoImageURL());
-
- exeReportPreview("RPPAC00100", "XMLSTR");
- ]]>
- </script>
- </button>
- <button id="btn_xls" class="btn2_letter2" style="left:1153px; top:235px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (instance1.selectNodes("/root/main/detllist/calcinfo[calcscorcd!='']").length < 1) {
- messageBox("계산 내역이 없습니다.", "E999");
- return;
- }
-
- var fromdd = model.getValue("/root/main/medilist/mediinfo[" + grd_medi.row + "]/execfromdd");
- var todd = model.getValue("/root/main/medilist/mediinfo[" + grd_medi.row + "]/exectodd");
-
- var days = fromdd + "-" + todd;
- var file = window.fileDialog("save", "", "false", "계산내역_" + model.getValue("/root/send/pid") + "_" + days, "xls", "Excel Files(*.xls)|*.xls");
-
- grd_calc.saveExcel(file, "sheetname:계산내역");
-
- messageBox("엑셀 저장이 완료되었습니다.", "I999");
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|