123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>
- <gridlist>
- <gridinfo/>
- </gridlist>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <srchflag/>
- <dayflag/>
- <brateflag>T</brateflag>
- <accflag>N</accflag>
- <genrflag>G</genrflag>
- <batchflag>P</batchflag>
- <ordflag>I O S</ordflag>
- </send>
- <temp>
- <gridlist/>
- </temp>
- </root>
- </instance>
- <submission id="TRSTP02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TXSTP01804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- </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="../../../pam/pamcomnweb/js/PAM001.js"/>
- <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
- <script type="javascript">
- <![CDATA[
- var FLAG = "";
- var FLAGNM = "";
-
- function fSetDynamicGrid(grd, ref, sid) {
-
- model.removeNode("/root/temp");
- model.makeNode("/root/temp");
-
- model.resetInstanceNode(ref + "/gridinfo");
- grd.refresh();
-
- var cols = grd.cols;
- for (var i = 0; i < cols; i++) {
- grd.removeColumn(false);
- }
- grd.refresh();
-
- model.removeNode("/root/temp");
- model.makeNode("/root/temp");
-
- if (!submit(sid, false)) {
- return;
- }
-
- var attr = model.getValue("/root/temp/header/attr");
- if (attr == null || attr.length < 1) {
- return;
- }
-
- var attrArr = attr.split("^");
-
- var width = model.getValue("/root/temp/header/width");
- var widthArr = width.split("^");
-
- var hIdx = grd.rowheader != "" ? 1 : 0;
-
- for (var i = 0; i < attrArr.length; i++) {
- grd.addColumn(attrArr[i], false);
- grd.colWidth(i + hIdx) = widthArr[i];
- }
-
- grd.caption = model.getValue("/root/temp/header/caption");
-
- model.copyNode(ref, "/root/temp/gridlist");
- grd.refresh();
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- model.setValue("/root/send/fromdd", getCurrentDate().toDate().getAddDate(-1).getDateFormat());
- model.setValue("/root/send/todd", getCurrentDate().toDate().getAddDate(-1).getDateFormat());
-
- ipt_fromdd.refresh();
- ipt_todd.refresh();
-
- FLAG = getScreenMenuParameter();
- model.setValue("/root/send/srchflag", FLAG);
-
- if (FLAG == "00") {
- FLAGNM = "과별 환자수 및 수익 집계";
- } else if (FLAG == "030101_O") {
- FLAGNM = "외래 처방 선수금 환자 집계";
- } else if (FLAG == "030101_I") {
- FLAGNM = "입원 선수금 환자 집계";
- } else if (FLAG == "030102_O") {
- FLAGNM = "외래 선수금 환자 집계";
- } else if (FLAG == "030102_I") {
- FLAGNM = "보관 퇴원금 환자 집계";
- } else if (FLAG == "040101") {
- FLAGNM = "감면 내역 환자 집계";
-
- cap_ordflag.attribute("top") = "32px";
- chk_ordflag.attribute("top") = "32px";
-
- cap_ordflag.visible = true;
- chk_ordflag.visible = true;
-
- } else if (FLAG == "0201_0203") {
- FLAGNM = "본인 부담 미수 환자 집계";
-
- cap_brate.visible = true;
- cmb_brate.visible = true;
- } else if (FLAG == "recalc") {
- FLAGNM = "환불 재정산 대상 환자 조회";
-
- cap_genrflag.attribute("top") = "32px";
- rdo_genrflag.attribute("top") = "32px";
-
- cap_genrflag.visible = true;
- rdo_genrflag.visible = true;
-
- } else if (FLAG == "fore") {
- FLAGNM = "외국인 환자 수납 내역 조회";
-
- cap_ordflag.attribute("top") = "32px";
- chk_ordflag.attribute("top") = "32px";
-
- cap_ordflag.visible = true;
- chk_ordflag.visible = true;
- } else if (FLAG == "tax") {
- FLAGNM = "부가세 내역 조회";
- }
-
- cap_title.value = FLAGNM;
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="background-color:transparent; border-color:transparent; margin-left:8; margin-top:0; margin-right:0; 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; "/>
- <line id="line13" style="x1:1116px; y1:27px; x2:1116px; y2:54px; border-color:#FFD799; border-left-style:solid; "/>
- <caption id="caption21" class="search_name" style="left:15px; top:32px; width:86px; height:17px; ">조회기간 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="3" style="left:1130px; top:30px; width:56px; height:20px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (FLAG.length < 1) {
- return;
- }
-
- if (chk_ordflag.visible && model.getValue("/root/send/ordflag") == "") {
- messageBox("진료구분은 적어도 하나 이상 선택해야 합니다.", "E999");
- return;
- }
-
- model.setValue("/root/send/dayflag", (model.getValue("/root/send/fromdd") == model.getValue("/root/send/todd")) ? "Y" : "N");
-
- fSetDynamicGrid(grd_main, "/root/main/gridlist", "TRSTP02101");
-
- var cnt = instance1.selectNodes("/root/main/gridlist/gridinfo").length;
-
- var color = "transparent";
- for (var i = 1; i <= cnt; i++) {
-
- var row = i + grd_main.fixedRows - 1;
-
- var sflag = model.getValue("/root/main/gridlist/gridinfo[" + i + "]/sumflag");
-
- if (sflag == "S") {
- color = "#ffffc8";
- grd_main.rowStyle(row, "data", "background-color") = color;
- grd_main.rowStyle(row, "data", "font-weight") = "bold";
- } else if (sflag == "T") {
- color = "#ffffa0";
- grd_main.rowStyle(row, "data", "background-color") = color;
- grd_main.rowStyle(row, "data", "font-weight") = "bold";
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_excel" 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 day = model.getValue("/root/send/fromdd") + "-" + model.getValue("/root/send/todd")
- var filename = window.fileDialog("save", ",", false, cap_title.value + "_" + day, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- grd_main.saveExcel(filename, "sheetname:" + FLAGNM + ";colhiddenextend:false;rowhiddenextend:false");
-
- messageBox("엑셀 저장이 완료되었습니다.", "I999");
- ]]>
- </script>
- </button>
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:480px; height:14px; font-family:돋움; vertical-align:middle; ">환자집계</caption>
- <caption id="caption6" style="left:209px; top:34px; width:15px; height:15px; ">~</caption>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" navindex="1" inputtype="date" style="left:110px; top:31px; width:95px; height:19px; text-align:center; vertical-align:middle; "/>
- <input id="ipt_todd" ref="/root/send/todd" class="input_search" navindex="2" inputtype="date" style="left:222px; top:31px; width:95px; height:19px; text-align:center; vertical-align:middle; "/>
- <caption id="caption1" class="tit_2" style="left:0px; top:70px; width:90px; height:14px; ">조회 결과</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:85px; x2:1195x; y2:85px; "/>
- <datagrid id="grd_main" nodeset="/root/main/gridlist/gridinfo" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:90px; width:1195px; height:675px; "/>
- <select id="chk_sumflag" ref="/root/send/accflag" visibility="hidden" overflow="visible" appearance="full" style="left:535px; top:32px; width:85px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>누적값 조회</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="cap_genrflag" class="search_name" visibility="hidden" style="left:345px; top:60px; width:95px; height:17px; ">일자기준 :</caption>
- <select1 id="rdo_genrflag" ref="/root/send/genrflag" visibility="hidden" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:435px; top:60px; width:150px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>정산요청일</label>
- <value>G</value>
- </item>
- <item>
- <label>진료일</label>
- <value>O</value>
- </item>
- </choices>
- </select1>
- <caption id="cap_brate" class="search_name" visibility="hidden" style="left:345px; top:32px; width:95px; height:17px; ">입원/외래 :</caption>
- <select1 id="cmb_brate" ref="/root/send/brateflag" class="input_search" visibility="hidden" appearance="minimal" style="left:445px; top:31px; width:60px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>T</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </select1>
- <button id="btn_file" class="btn4_letter4" style="left:940px; top:30px; width:80px; height:22px; ">
- <caption>파일생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.setValue("/root/send/dayflag", (model.getValue("/root/send/fromdd") == model.getValue("/root/send/todd")) ? "Y" : "N");
-
- submit("TXSTP01804");
- btn_log.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_log" class="btn4_letter4" style="left:1025px; top:30px; width:80px; height:22px; ">
- <caption>생성로그</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var todd = getCurrentDate();
- todd = todd.toDate().getAddDate(1, 'D');
- zsbfOpenBatchLogPopup("stspammngtmgr.StsPamFileBatch", getCurrentDate(), todd.getDateFormat());
- ]]>
- </script>
- </button>
- <caption id="cap_ordflag" class="search_name" visibility="hidden" style="left:345px; top:95px; width:86px; height:17px; ">진료구분 :</caption>
- <select id="chk_ordflag" ref="/root/send/ordflag" visibility="hidden" overflow="visible" appearance="full" cellspacing="5" cols="4" style="left:435px; top:95px; width:145px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>건진</label>
- <value>S</value>
- </item>
- </choices>
- </select>
- </xhtml:body>
- </xhtml:html>
|