123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253 |
- <?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="">
- <init>
- <PK021>
- <worktype>
- <cdid/>
- <cdnm/>
- </worktype>
- </PK021>
- </init>
- <main>
- <gridlist>
- <gridinfo/>
- </gridlist>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <srchflag/>
- <dayflag/>
- <worktype/>
- <brateflag>T</brateflag>
- <drflag/>
- <pamflag/>
- </send>
- <temp>
- <gridlist/>
- </temp>
- </root>
- </instance>
- <submission id="TRSTP02200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/PK021/worktype"/>
- <submission id="TRSTP02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- </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 == "worktype") {
-
- FLAGNM = "업무구분별 수납자별 진료과별 수납 건수 조회";
-
- cap_worktype.visible = true;
- cmb_worktype.visible = true;
-
- submit("TRSTP02200");
- addComboItem("cmb_worktype", "전체", "T", "above");
- cmb_worktype.select(0);
-
- chk_dr.visible = true;
- chk_dr.attribute("left") = "550px";
-
- } else if (FLAG == "acpt") {
-
- FLAGNM = "수납자별 진료과별 수납 및 외래 접수 건수 조회";
-
- chk_pamflag.visible = true;
- chk_pamflag.attribute("top") = "32px";
-
- }
- 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;
- }
-
- model.setValue("/root/send/dayflag", (model.getValue("/root/send/fromdd") == model.getValue("/root/send/todd")) ? "Y" : "N");
-
- fSetDynamicGrid(grd_main, "/root/main/gridlist", "TRSTP02201");
-
- 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 sinfo = model.getValue("/root/main/gridlist/gridinfo[" + i + "]/suminfo").split(",");
- var slv = sinfo[0];
- var scol = sinfo[1];
-
- if (slv > 0) {
-
- if (slv == 3) {
- color = "#ffffe6";
- } else if (slv == 2) {
- color = "#ffffc8";
- } else if (slv == 1) {
- color = "#ffffa0";
- }
- grd_main.rowStyle(row, "data", "background-color") = color;
- grd_main.cellStyle("font-weight", row, scol) = "bold";
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn2_letter2" navindex="30" 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="1" 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; "/>
- <caption id="cap_worktype" class="search_name" visibility="hidden" style="left:335px; top:32px; width:90px; height:17px; ">업무구분 :</caption>
- <select1 id="cmb_worktype" ref="/root/send/worktype" class="input_search" visibility="hidden" appearance="minimal" style="left:428px; top:31px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/PK021/worktype">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_brate" class="search_name" visibility="hidden" style="left:550px; top:32px; width:95px; height:17px; ">입원/외래 :</caption>
- <select1 id="cmb_brate" ref="/root/send/brateflag" class="input_search" visibility="hidden" appearance="minimal" style="left:650px; 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>
- <select id="chk_dr" ref="/root/send/drflag" visibility="hidden" overflow="visible" appearance="full" style="left:720px; top:33px; width:245px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>주치의별 수납 건수 (정형외과, 신경외과)</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/send/drflag") == "Y") {
- FLAG = "dr";
- } else {
- FLAG = "worktype";
- }
-
- model.setValue("/root/send/srchflag", FLAG);
- ]]>
- </script>
- </select>
- <select id="chk_pamflag" ref="/root/send/pamflag" visibility="hidden" overflow="visible" appearance="full" style="left:335px; top:63px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>무인수납 포함</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </xhtml:body>
- </xhtml:html>
|