123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323 |
- <?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>환자별 집계 대차 검증</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <ptlist>
- <ptinfo>
- <enddd/>
- <pid/>
- <vrfyamt/>
- </ptinfo>
- </ptlist>
- <vrfylist>
- <vrfyinfo>
- <enddd/>
- <pid/>
- <brateflag/>
- <brateflagnm/>
- <endflag/>
- <endflagnm/>
- <earncls/>
- <lrgnm/>
- <mdlnm/>
- <smlnm/>
- <crcashamt/>
- <craltamt/>
- <crsumamt/>
- <drcashamt/>
- <draltamt/>
- <drsumamt/>
- <vrfyamt/>
- </vrfyinfo>
- </vrfylist>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <pid/>
- <setflag/>
- <sumflag/>
- </send>
- <temp>
- <gridlist/>
- </temp>
- <hidden>
- <selsum/>
- <ptinfo/>
- </hidden>
- </root>
- </instance>
- <submission id="TRSTP01818" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/ptlist"/>
- <submission id="TRSTP01819" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/vrfylist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript">
- <![CDATA[
- var PT_ROW = 0;
-
- function fGetDtList(gridflag) {
-
- if (gridflag) {
- if (grd_ptlist.rows - grd_ptlist.fixedRows > 1) {
- var row = grd_ptlist.row;
-
- var dRow = row - grd_ptlist.fixedRows + 1;
-
- if (PT_ROW > 0) {
- grd_ptlist.cellStyle("background-color", PT_ROW, 1, PT_ROW, 2) = "#ffffff";
- grd_ptlist.cellStyle("font-weight", PT_ROW, 1, PT_ROW, 2) = "";
- }
- grd_ptlist.cellStyle("background-color", row, 1, row, 2) = "#ffd2d2";
- grd_ptlist.cellStyle("font-weight", row, 1, row, 2) = "bold";
-
- PT_ROW = row;
- }
-
- model.setValue("/root/send/pid", model.getValue("/root/main/ptlist/ptinfo[" + dRow + "]/pid"));
-
- var enddd = model.getValue("/root/main/ptlist/ptinfo[" + dRow + "]/enddd");
-
- model.setValue("/root/send/fromdd", enddd);
- model.setValue("/root/send/todd", enddd);
- ipt_fromdd.refresh();
- ipt_todd.refresh();
-
- }
-
- var fromdd = model.getValue("/root/send/fromdd");
- fromdd = fromdd.substr(0, 4) + "-" + fromdd.substr(4, 2) + "-" + fromdd.substr(6, 2);
-
- var todd = model.getValue("/root/send/todd");
- todd = todd.substr(0, 4) + "-" + todd.substr(4, 2) + "-" + todd.substr(6, 2);
-
- model.setValue("/root/hidden/ptinfo", "마감일자 : " + fromdd + " ~ " + todd + " " + "등록번호 : " + model.getValue("/root/send/pid"));
- cap_ptinfo.refresh();
-
- grd_vrfylist.rebuildStyle();
- submit("TRSTP01819");
-
- var cnt = instance1.selectNodes("/root/main/vrfylist/vrfyinfo").length;
- var prevflag = model.getValue("/root/main/vrfylist/vrfyinfo/endflag");
- var color = "#f4f4f4";
-
- for (var i = 1; i <= cnt; i++) {
-
- if (model.getValue("/root/main/vrfylist/vrfyinfo[" + i + "]/brateflagnm") == "합계") {
-
- grd_vrfylist.cellStyle("font-weight", i + 1, grd_vrfylist.colRef("brateflagnm")) = "bold";
- grd_vrfylist.mergeByFree(i + 1, grd_vrfylist.colRef("brateflagnm"), i + 1, grd_vrfylist.colRef("earndeptnm"));
- grd_vrfylist.rowStyle(i + 1, "all", "background-color") = "#ffffc8";
-
- grd_vrfylist.cellStyle("background-color", i + 1, grd_vrfylist.colRef("vrfyamt")) = "#ffff80";
-
- } else {
- var endflag = model.getValue("/root/main/vrfylist/vrfyinfo[" + i + "]/endflag");
-
- if (prevflag != endflag) {
- color = color == "#f4f4f4" ? "#ffffff" : "#f4f4f4";
- prevflag = endflag;
- }
-
- grd_vrfylist.cellStyle("background-color", i + 1, grd_vrfylist.colRef("endflag"), i + 1, grd_vrfylist.colRef("vrfyamt")) = color;
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var fromdd = opener.javascript.getParameter("SPSTP01901_fromdd");
- var todd = opener.javascript.getParameter("SPSTP01901_todd");
- if (fromdd == null || fromdd == "") {
- fromdd = getCurrentDate().toDate().getAddDate(-1).getDateFormat();
- todd = getCurrentDate().toDate().getAddDate(-1).getDateFormat();
- }
- model.setValue("/root/send/fromdd", fromdd);
- model.setValue("/root/send/todd", todd);
- ipt_fromdd.refresh();
- ipt_todd.refresh();
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1195px; height:41px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption21" class="search_name" style="left:10px; top:32px; width:91px; height:17px; ">마감 일자 :</caption>
- <line id="line13" style="x1:1115px; y1:27px; x2:1115px; y2:54px; border-color:#FFD799; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1130px; top:30px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (event.ctrlKey == 1) {
- model.setValue("/root/send/setflag", "Y");
- } else {
- model.setValue("/root/send/setflag", "");
- }
-
- if (model.getValue("/root/send/pid") == "") { // 대상 목록 조회
-
- model.resetInstanceNode("/root/main/vrfylist/vrfyinfo");
- grd_vrfylist.refresh();
- grd_vrfylist.rebuildStyle();
-
- grd_ptlist.rebuildStyle();
- submit("TRSTP01818");
-
- var cnt = instance1.selectNodes("/root/main/ptlist/ptinfo").length;
- for (var i = 1; i <= cnt; i++) {
- if (model.getValue("/root/main/ptlist/ptinfo[" + i + "]/pid") == "합계") {
- grd_ptlist.rowStyle(i, "all", "background-color") = "#f4f4f4";
- grd_ptlist.cellStyle("font-weight", i, grd_ptlist.colRef("vrfyamt")) = "true";
- }
- }
- } else { // 상세 내역 조회
- fGetDtList(false);
- }
- ]]>
- </script>
- </button>
- <button id="btn_xls_main" class="btn2_letter2" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:173px; top:65px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var period = model.getValue("/root/send/fromdd") + " ~ " + model.getValue("/root/send/todd");
-
- var filename = window.fileDialog("save", ",", false, "환자별집계대차확인목록_" + period, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- grd_ptlist.saveExcel(filename, "sheetname:확인목록;colhiddenextend:false;rowhiddenextend:false");
-
- messageBox("엑셀 저장이 완료되었습니다.", "I999");
- ]]>
- </script>
- </button>
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:147px; height:14px; font-family:돋움; vertical-align:middle; ">환자별 집계 대차 확인</caption>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" navindex="1" inputtype="date" style="left:105px; top:31px; width:95px; height:19px; text-align:center; vertical-align:middle; "/>
- <caption id="cap_between" style="left:200px; top:34px; width:15px; height:14px; text-align:center; ">~</caption>
- <input id="ipt_todd" ref="/root/send/todd" class="input_search" navindex="1" inputtype="date" style="left:215px; top:31px; width:95px; height:19px; text-align:center; vertical-align:middle; "/>
- <caption id="cap_grid" class="tit_2" style="left:0px; top:70px; width:121px; height:13px; ">확인 대상 목록</caption>
- <line id="line_main" class="line_1" style="x1:0px; y1:85px; x2:215px; y2:85px; "/>
- <datagrid id="grd_ptlist" nodeset="/root/main/ptlist/ptinfo" allowselection="false" backcoloralternate="transparent" caption="마감일자^등록번호^차액" colsep="^" colwidth="70, 60, 80" extendlastcol="scroll" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:90px; width:215px; height:690px; ">
- <col ref="enddd" format="yyyy-mm-dd" style="text-align:center; background-color:#f4f4f4; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="vrfyamt" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (!grd_ptlist.isCell(event.target)) {
- return;
- }
-
- if (grd_ptlist.row < grd_ptlist.fixedRows) {
- return;
- }
-
- if (event.ctrlKey == 1) {
- model.setValue("/root/send/setflag", "Y");
- } else {
- model.setValue("/root/send/setflag", "");
- }
-
- var dRow = grd_ptlist.row - grd_ptlist.fixedRows + 1;
- if (model.getValue("/root/main/ptlist/ptinfo[" + dRow + "]/pid") == "합계") {
- model.setValue("/root/hidden/ptinfo", "");
- cap_ptinfo.refresh();
- return;
- }
-
- fGetDtList(true);
- ]]>
- </script>
- </datagrid>
- <caption id="cap_dt" class="tit_2" style="left:220px; top:70px; width:75px; height:13px; ">상세 내역</caption>
- <line id="line_dt" class="line_1" style="x1:220px; y1:85px; x2:1195px; y2:85px; "/>
- <datagrid id="grd_vrfylist" nodeset="/root/main/vrfylist/vrfyinfo" backcoloralternate="transparent" caption="마감일자^등록
번호^brateflag^진료
형태^endflag^구분^수익계정^수익계정^수익계정^수익계정^진료과^진료과^차변^차변^차변^대변^대변^대변^차-대|마감일자^등록
번호^brateflag^진료
형태^endflag^구분^대분류^중분류^소분류^코드^진료과^진료과^현금^현금외^합계^현금^현금외^합계^차-대" colsep="^" colwidth="70, 0, 0, 40, 0, 40, 0, 100, 120, 0, 0, 100, 70, 70, 70, 70, 70, 70, 70" extendlastcol="scroll" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:220px; top:90px; width:975px; height:690px; ">
- <col ref="enddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="brateflag"/>
- <col ref="brateflagnm" style="text-align:center; "/>
- <col ref="endflag"/>
- <col ref="endflagnm" style="font-weight:bold; text-align:center; "/>
- <col ref="lrgnm"/>
- <col ref="mdlnm"/>
- <col ref="smlnm"/>
- <col ref="earncls" style="text-align:center; "/>
- <col ref="earndeptcd"/>
- <col ref="earndeptnm"/>
- <col ref="crcashamt" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="craltamt" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="crsumamt" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="drcashamt" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="draltamt" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="drsumamt" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col ref="vrfyamt" format="(-)#,###" style="font-weight:bold; text-align:right; padding-right:2; "/>
- <script type="javascript" ev:event="onmouseup">
- <![CDATA[
-
- var cnt = grd_vrfylist.selectedCells.length;
-
- var sum = 0;
- for (var i = 0; i < cnt; i++) {
- var row = grd_vrfylist.selectedCells.item(i).row;
- var col = grd_vrfylist.selectedCells.item(i).col;
- var val = grd_vrfylist.valueMatrix(row, col);
-
- if (!isNaN(val)) {
- sum += Number(val);
- }
- }
-
- model.setValue("/root/hidden/selsum", sum);
- cap_selsum.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="btn_xls_dt" class="btn2_letter2" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1153px; top:65px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var period = model.getValue("/root/send/fromdd") + " ~ " + model.getValue("/root/send/todd");
-
- var filename = window.fileDialog("save", ",", false, "환자별집계대차검증내역_" + period, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- grd_vrfylist.saveExcel(filename, "sheetname:대차검증내역;colhiddenextend:false;rowhiddenextend:false");
-
- messageBox("엑셀 저장이 완료되었습니다.", "I999");
- ]]>
- </script>
- </button>
- <caption id="caption1" style="left:990px; top:69px; width:50px; height:15px; ">선택합 :</caption>
- <caption id="cap_selsum" ref="/root/hidden/selsum" format="(-)#,###" style="left:1040px; top:69px; width:100px; height:15px; font-weight:bold; "/>
- <caption id="cap_ptinfo" ref="/root/hidden/ptinfo" style="left:305px; top:69px; width:420px; height:15px; "/>
- <caption id="caption2" class="search_name" style="left:347px; top:32px; width:91px; height:17px; ">등록번호 :</caption>
- <input id="ipt_pid" ref="/root/send/pid" style="left:440px; top:31px; width:70px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
-
- if (event.keyCode != 13) {
- return;
- }
-
- model.setValue("/root/send/pid", ipt_pid.currentText);
- ipt_pid.refresh();
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <select id="checkbox1" ref="/root/send/sumflag" overflow="visible" appearance="full" style="left:525px; top:33px; width:85px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>기간내 합산</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </xhtml:body>
- </xhtml:html>
|