123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- <?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">
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
- model.removeNodeset("/root/main/inlvstatinfo/inlvstatlist");
- model.resetInstanceNode("/root/send");
- model.setValue("/root/main/cond/fromdd",getCurrentDate());
- model.setValue("/root/main/cond/todd",getCurrentDate());
- model.refresh();
- }
-
- function fSearch()
- {
- var fromdd = model.getValue("/root/main/cond/fromdd");
- var todd = model.getValue("/root/main/cond/todd");
-
- if(getDateInterval(fromdd, todd) > 31){
- messageBox("조회기간은 한달이상을 넘을 수", "I004");
- model.setFocus("ipt_todd");
- return;
- }
-
- model.removeNodeset("/root/main/inlvstatinfo/inlvstatlist");
- model.copyNode("/root/send","/root/main/cond");
- submit("TRMNW18100");
-
- if(model.getValue("/root/main/cond/srchflag") == "1"){
- grd_inlvstatlist.colHidden(grd_inlvstatlist.colRef("telvcnt")) = true;
- grd_inlvstatlist.colHidden(grd_inlvstatlist.colRef("mdlvcnt")) = true;
- }else{
- grd_inlvstatlist.colHidden(grd_inlvstatlist.colRef("telvcnt")) = false;
- grd_inlvstatlist.colHidden(grd_inlvstatlist.colRef("mdlvcnt")) = false;
- }
-
- grd_inlvstatlist.subtotalPosition="below";
- grd_inlvstatlist.subtotal("sum", -1,1, "#,###.##", "background-color:#99ff99", 0, "");
- grd_inlvstatlist.subtotal("sum", -1,2, "#,###.##", "background-color:#99ff99", 0, "");
- grd_inlvstatlist.subtotal("sum", -1,3, "#,###.##", "background-color:#99ff99", 0, "");
- grd_inlvstatlist.subtotal("sum", -1,4, "#,###.##", "background-color:#99ff99", 0, "");
- grd_inlvstatlist.subtotal("sum", -1,5, "#,###.##", "background-color:#99ff99", 0, "");
- grd_inlvstatlist.subtotal("sum", -1,6, "#,###.##", "background-color:#99ff99", 0, "");
- grd_inlvstatlist.subtotal("average", -1, 7, "#,###", "background-color:#99ff99", 8, "%");
- grd_inlvstatlist.subtotal("sum", -1,9, "#,###.##", "background-color:#99ff99", 0, "");
- grd_inlvstatlist.subtotal("sum", -1,10, "#,###.##", "background-color:#99ff99", 0, "");
- }
-
-
- ]]>
- </script>
- <xhtml:head>
- <xhtml:title>입퇴원라운지통계</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cond>
- <srchflag>1</srchflag>
- <fromdd/>
- <todd/>
- </cond>
- <inlvstatinfo/>
- </main>
- <send/>
- </root>
- </instance>
- <submission id="TRMNW18100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/inlvstatinfo/inlvstatlist"/>
- </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/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="630" pageheight="700" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:610px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:15px; ">입퇴원라운지통계</caption>
- </group>
- <group id="group3" style="left:0px; top:13px; width:610px; height:677px; ">
- <group id="group2" style="left:0px; top:10px; width:610px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:610px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line2" class="line_4" style="x1:478px; y1:7px; x2:478px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption17" class="search_name" style="left:14px; top:8px; width:95px; height:17px; ">업무일자 :</caption>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_search" editable="false" inputtype="date" format="yyyy-mm-dd" style="left:107px; top:8px; width:98px; height:19px; "/>
- <input id="ipt_todd" ref="/root/main/cond/todd" class="input_search" editable="false" inputtype="date" style="left:227px; top:8px; width:98px; height:19px; "/>
- <caption id="cpt_line" class="search_no_b" style="left:210px; top:8px; width:12px; height:17px; ">~</caption>
- <button id="btn_search" class="btn1_letter2" style="left:488px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <select1 id="rdo_srchflag" ref="/root/main/cond/srchflag" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:340px; top:8px; width:110px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>병동</label>
- <value>1</value>
- </item>
- <item>
- <label>진료과</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </select1>
- <button id="button1" class="btn1_letter2" style="left:545px; top:7px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fName = "";
-
- if(model.getValue("/root/main/cond/srchflag") == "1"){
- fName = "입퇴원라운지통계(병동)_";
- }else if(model.getValue("/root/main/cond/srchflag") == "2"){
- fName = "입퇴원라운지통계(진료과)_";
- }
-
- var fileName = window.fileDialog("save", ",", false, fName + getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != ""){
- grd_inlvstatlist.saveExcel(fileName, "SheetName;colhiddenextend:false", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption2" class="tit_2" style="left:5px; top:55px; width:300px; height:14px; font-family:돋움; vertical-align:middle; ">입퇴원라운지현황</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:610px; y2:70px; "/>
- <datagrid id="grd_inlvstatlist" nodeset="/root/main/inlvstatinfo/inlvstatlist" class="datagrid2" caption="부서^평균
병상수^입원^입원
방문^입실
저장^퇴원^퇴원
방문^전일
퇴원예고율^전일
퇴원예고율^검사대기
방문^진료대기
방문" colsep="^" colwidth="105, 50, 50, 50, 50, 50, 50, 50, 20, 55, 55" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:75px; width:610px; height:600px; ">
- <col ref="orddeptnm"/>
- <col ref="roomcnt" style="text-align:right; "/>
- <col ref="inptcnt" style="text-align:right; "/>
- <col ref="idlvcnt" style="text-align:right; "/>
- <col ref="careinrmcnt" style="text-align:right; "/>
- <col ref="dschcnt" style="text-align:right; "/>
- <col ref="dhlvcnt" style="text-align:right; "/>
- <col ref="dschrate" style="text-align:right; "/>
- <col ref="dschrateper"/>
- <col ref="telvcnt" visibility="hidden" style="text-align:right; "/>
- <col ref="mdlvcnt" visibility="hidden" style="text-align:right; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_inlvstatlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|