123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407 |
- <?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>
- <cond>
- <srchdd/>
- <srchyear/>
- <srchfromdd/>
- <srchtodd/>
- <srchflag1>1</srchflag1>
- <srchflag2>1</srchflag2>
- <basedd/>
- </cond>
- <stayddinfo>
- <stayddlist>
- <deptnm/>
- <col1/>
- <col2/>
- <col3/>
- <col4/>
- <col5/>
- <col6/>
- <col7/>
- <col8/>
- <col9/>
- <col10/>
- <col11/>
- <col12/>
- <col13/>
- <col14/>
- <col15/>
- <col16/>
- <col17/>
- <col18/>
- <col19/>
- <col20/>
- <col21/>
- <col22/>
- <col23/>
- <col24/>
- <col25/>
- <col26/>
- <col27/>
- <col28/>
- <col29/>
- <col30/>
- <col31/>
- <stayddsum/>
- <deptcd/>
- </stayddlist>
- </stayddinfo>
- <staytminfo>
- <staytmlist>
- <deptnm/>
- <col1/>
- <col2/>
- <col3/>
- <col4/>
- <col5/>
- <col6/>
- <col7/>
- <col8/>
- <staytmsum/>
- <deptcd/>
- </staytmlist>
- </staytminfo>
- <staymminfo>
- <staymmlist>
- <deptnm/>
- <col1/>
- <col2/>
- <col3/>
- <col4/>
- <col5/>
- <col6/>
- <col7/>
- <col8/>
- <col9/>
- <col10/>
- <col11/>
- <col12/>
- <staymmsum/>
- <deptcd/>
- </staymmlist>
- </staymminfo>
- </main>
- <init>
- </init>
- <send/>
- </root>
- </instance>
- <bind id="staddsum" ref="/root/main/stayddinfo/stayddlist/stayddsum" calculate="../col1 + ../col2 + ../col3 + ../col4 + ../col5 + ../col6 + ../col7 + ../col8 + ../col9 + ../col10 + ../col11 + ../col12 + ../col13 +../col14 +../col15 +../col16 + ../col17 + ../col18 + ../col19 + ../col20 + ../col21 +../col22 + ../col23 + ../col24 + ../col25 + ../col26 + ../col27 + ../col28 + ../col29 + ../col30 + ../col31"/>
- <bind id="staymmsum" ref="/root/main/staymminfo/staymmlist/staymmsum" calculate="../col1 + ../col2 + ../col3 + ../col4 + ../col5 + ../col6 + ../col7 + ../col8 + ../col9 + ../col10 + ../col11 + ../col12"/>
- <bind id="staytmsum" ref="/root/main/staytminfo/staytmlist/staytmsum" calculate="../col1 + ../col2 + ../col3 + ../col4 + ../col5 + ../col6 + ../col7 + ../col8"/>
- <submission id="TRSNE00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/stayddinfo"/>
- <submission id="TRSNE00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/staymminfo"/>
- <submission id="TRSNE00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/staytminfo"/>
- <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/tfHelper.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.setValue("/root/main/cond/basedd", getDateCalc(getCurrentDate(), 1, "-"));
- model.setValue("/root/main/cond/srchdd", model.getValue("/root/main/cond/basedd").substr(0,6));
- model.setValue("/root/main/cond/srchyear", model.getValue("/root/main/cond/basedd").substr(0,4));
- model.setValue("/root/main/cond/srchfromdd", model.getValue("/root/main/cond/basedd"));
- model.setValue("/root/main/cond/srchtodd", model.getValue("/root/main/cond/basedd"));
- fGetStsData();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fGetStsData(){
- model.removenode("root/send");
- model.removenode("/root/main/stayddinfo/stayddlist");
- model.removenode("/root/main/staytminfo/staytmlist");
- model.removenode("/root/main/staymminfo/staytmlist");
- model.makeNode("root/send");
-
- if(rdo_srchflag2.value == "1"){
- ipt_srchyear.visible = false;
- ipt_srchfromdd.visible = false;
- ipt_srchtodd.visible = false;
- caption3.visible = false;
-
- ipt_srchdd.visible = true;
-
- model.makeValue("root/send/srchdd", model.getValue("/root/main/cond/srchdd"));
- model.makeValue("root/send/srchflag1", model.getValue("/root/main/cond/srchflag1"));
- model.makeValue("root/send/srchflag2", model.getValue("/root/main/cond/srchflag2"));
- submit("TRSNE00101");
-
- // Total 항목 색상표시 및 글씨체 두껍게_20100105_서미영ITC
- for(var i=1; i<=getNodesetCount("/root/main/stayddinfo/stayddlist"); i++){
- if((model.getValue("/root/main/stayddinfo/stayddlist[" + i + "]/deptnm").toUpperCase()) == "TOTAL"){
- grd_stayddlist.rowStyle(i, "data", "background-color") = "#7cff7c";
- grd_stayddlist.rowStyle(i, "data", "font-weight") = "bold";
- }
- }
- grd_stayddlist.colStyle(grd_stayddlist.cols-1, "data", "background-color") = "#7cff7c";
- grd_stayddlist.colStyle(grd_stayddlist.cols-1, "data", "font-weight") = "bold";
-
- }else if(rdo_srchflag2.value == "2"){
- ipt_srchdd.visible = false;
- ipt_srchfromdd.visible = false;
- ipt_srchtodd.visible = false;
- caption3.visible = false;
-
- ipt_srchyear.visible = true;
-
- model.makeValue("root/send/srchyear", model.getValue("/root/main/cond/srchyear"));
- model.makeValue("root/send/srchflag1", model.getValue("/root/main/cond/srchflag1"));
- model.makeValue("root/send/srchflag2", model.getValue("/root/main/cond/srchflag2"));
- submit("TRSNE00102");
-
- // Total 항목 색상표시 및 글씨체 두껍게_20100105_서미영ITC
- for(var i=1; i<=getNodesetCount("/root/main/staymminfo/staymmlist"); i++){
- if((model.getValue("/root/main/staymminfo/staymmlist[" + i + "]/deptnm").toUpperCase()) == "TOTAL"){
- grd_staymmlist.rowStyle(i, "data", "background-color") = "#7cff7c";
- grd_staymmlist.rowStyle(i, "data", "font-weight") = "bold";
- }
- }
- grd_staymmlist.colStyle(grd_staymmlist.cols-1, "data", "background-color") = "#7cff7c";
- grd_staymmlist.colStyle(grd_staymmlist.cols-1, "data", "font-weight") = "bold";
-
- }else if(rdo_srchflag2.value == "3"){
- ipt_srchdd.visible = false;
- ipt_srchyear.visible = false;
-
- ipt_srchfromdd.visible = true;
- ipt_srchtodd.visible = true;
- caption3.visible = true;
-
- model.makeValue("root/send/srchfromdd", model.getValue("/root/main/cond/srchfromdd"));
- model.makeValue("root/send/srchtodd", model.getValue("/root/main/cond/srchtodd"));
- model.makeValue("root/send/srchflag1", model.getValue("/root/main/cond/srchflag1"));
- model.makeValue("root/send/srchflag2", model.getValue("/root/main/cond/srchflag2"));
- submit("TRSNE00103");
-
- // Total 항목 색상표시 및 글씨체 두껍게_20100105_서미영ITC
- for(var i=1; i<=getNodesetCount("/root/main/staytminfo/staytmlist"); i++){
- if((model.getValue("/root/main/staytminfo/staytmlist[" + i + "]/deptnm").toUpperCase()) == "TOTAL"){
- grd_staytminfo.rowStyle(i, "data", "background-color") = "#7cff7c";
- grd_staytminfo.rowStyle(i, "data", "font-weight") = "bold";
- }
- }
- grd_staytminfo.colStyle(grd_staytminfo.cols-1, "data", "background-color") = "#7cff7c";
- grd_staytminfo.colStyle(grd_staytminfo.cols-1, "data", "font-weight") = "bold";
- }
-
- // 임상과 열에 tooltiptext 를 설정한다(진료과한글명)_20091216(ByJA)
- for(var i=grd_stayddlist.fixedRows; i<grd_stayddlist.rows; i++)
- {
- grd_stayddlist.tooltipText(i, grd_stayddlist.colRef("deptnm")) = model.getValue("/root/main/stayddinfo/stayddlist["+i+"]/depthngnm");
- }
- for(var i=grd_staymmlist.fixedRows; i<grd_staymmlist.rows; i++)
- {
- grd_staymmlist.tooltipText(i, grd_staymmlist.colRef("deptnm")) = model.getValue("/root/main/staymminfo/staymmlist["+i+"]/depthngnm");
- }
- for(var i=grd_staytminfo.fixedRows; i<grd_staytminfo.rows; i++)
- {
- grd_staytminfo.tooltipText(i, grd_staytminfo.colRef("deptnm")) = model.getValue("/root/main/staytminfo/staytmlist["+i+"]/depthngnm");
- }
- }
- ]]>
- </script>
- </model>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:20px; width:1179px; height:41px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:2px; top:0px; width:1176px; height:40px; "/>
- <line id="line1" class="line_4" style="x1:1000px; y1:10px; x2:1000px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption4" class="search_name" style="left:20px; top:12px; width:86px; height:17px; ">검색조건 :</caption>
- <caption id="caption2" class="search_name" style="left:565px; top:12px; width:86px; height:17px; ">조회기간 :</caption>
- <input id="ipt_srchdd" ref="/root/main/cond/srchdd" class="input_search" visibility="hidden" inputtype="date" format="yyyy-mm" style="left:660px; top:10px; width:70px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetStsData();
- ]]>
- </script>
- </input>
- <input id="ipt_srchyear" ref="/root/main/cond/srchyear" class="input_search" visibility="hidden" inputtype="date" format="yyyy" style="left:660px; top:10px; width:50px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetStsData();
- ]]>
- </script>
- </input>
- <input id="ipt_srchfromdd" ref="/root/main/cond/srchfromdd" class="input_search" visibility="hidden" inputtype="date" format="yyyy-mm-dd" style="left:660px; top:10px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetStsData();
- ]]>
- </script>
- </input>
- <input id="ipt_srchtodd" ref="/root/main/cond/srchtodd" class="input_search" visibility="hidden" inputtype="date" format="yyyy-mm-dd" style="left:780px; top:10px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetStsData();
- ]]>
- </script>
- </input>
- <select1 id="rdo_srchflag1" ref="/root/main/cond/srchflag1" appearance="full" cellspacing="5" cols="5" overflow="visible" style="left:112px; top:14px; width:159px; height:15px; 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[
- fGetStsData();
- ]]>
- </script>
- </select1>
- <select1 id="rdo_srchflag2" ref="/root/main/cond/srchflag2" appearance="full" cellspacing="5" cols="5" overflow="visible" style="left:290px; top:14px; width:255px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>일별</label>
- <value>1</value>
- </item>
- <item>
- <label>월별</label>
- <value>2</value>
- </item>
- <item>
- <label>체류시간대별</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(rdo_srchflag2.value == "1"){
- model.toggle("case1");
- }else if(rdo_srchflag2.value == "2"){
- model.toggle("case2");
- }else if(rdo_srchflag2.value == "3"){
- model.toggle("case3");
- }
- fGetStsData();
- ]]>
- </script>
- </select1>
- <button id="btn_search" class="btn1_letter2" style="left:1025px; top:9px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetStsData();
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn1_letter4" style="left:1087px; top:9px; width:80px; height:22px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fromdd = model.getValue("/root/main/cond/srchfromdd");
- var todd = model.getValue("/root/main/cond/srchtodd");
- var syear = model.getValue("/root/main/cond/srchyear");
- var smon = model.getValue("/root/main/cond/srchdd");
- if(rdo_srchflag2.value == "1"){
- var fileName = window.fileDialog("save", ",", false, "체류시간대장_일별(" + smon + ")", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "") {
- grd_stayddlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- }else if(rdo_srchflag2.value == "2"){
- var fileName = window.fileDialog("save", ",", false, "체류시간대장_월별(" + syear + ")", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "") {
- grd_staymmlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- }else if(rdo_srchflag2.value == "3"){
- var fileName = window.fileDialog("save", ",", false, "체류시간대장_체류시간대별(" + fromdd + "-" + todd + ")", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "") {
- grd_staytminfo.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- }
-
- ]]>
- </script>
- </button>
- <caption id="caption3" visibility="hidden" style="left:760px; top:11px; width:15px; height:19px; text-align:center; ">~</caption>
- </group>
- <switch id="switch1" style="left:0px; top:65px; width:1179px; height:700px; ">
- <case id="case1" selected="true">
- <datagrid id="grd_stayddlist" nodeset="/root/main/stayddinfo/stayddlist" caption="임상과^1^2^3^4^5^6^7^8^9^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^TOTAL" colsep="^" colwidth="120, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 60" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:4px; top:4px; width:1169px; height:690px; ">
- <col ref="deptnm" style="text-align:center; "/>
- <col ref="col1" style="text-align:right; "/>
- <col ref="col2" style="text-align:right; "/>
- <col ref="col3" style="text-align:right; "/>
- <col ref="col4" style="text-align:right; "/>
- <col ref="col5" style="text-align:right; "/>
- <col ref="col6" style="text-align:right; "/>
- <col ref="col7" style="text-align:right; "/>
- <col ref="col8" style="text-align:right; "/>
- <col ref="col9" style="text-align:right; "/>
- <col ref="col10" style="text-align:right; "/>
- <col ref="col11" style="text-align:right; "/>
- <col ref="col12" style="text-align:right; "/>
- <col ref="col13" style="text-align:right; "/>
- <col ref="col14" style="text-align:right; "/>
- <col ref="col15" style="text-align:right; "/>
- <col ref="col16" style="text-align:right; "/>
- <col ref="col17" style="text-align:right; "/>
- <col ref="col18" style="text-align:right; "/>
- <col ref="col19" style="text-align:right; "/>
- <col ref="col20" style="text-align:right; "/>
- <col ref="col21" style="text-align:right; "/>
- <col ref="col22" style="text-align:right; "/>
- <col ref="col23" style="text-align:right; "/>
- <col ref="col24" style="text-align:right; "/>
- <col ref="col25" style="text-align:right; "/>
- <col ref="col26" style="text-align:right; "/>
- <col ref="col27" style="text-align:right; "/>
- <col ref="col28" style="text-align:right; "/>
- <col ref="col29" style="text-align:right; "/>
- <col ref="col30" style="text-align:right; "/>
- <col ref="col31" style="text-align:right; "/>
- <col ref="stayddsum" style="text-align:right; "/>
- </datagrid>
- </case>
- <case id="case2">
- <datagrid id="grd_staymmlist" nodeset="/root/main/staymminfo/staymmlist" caption="임상과^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^TOTAL" colsep="^" colwidth="130, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 100" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:4px; top:4px; width:1169px; height:690px; ">
- <col ref="deptnm" style="text-align:center; "/>
- <col ref="col1" style="text-align:right; "/>
- <col ref="col2" style="text-align:right; "/>
- <col ref="col3" style="text-align:right; "/>
- <col ref="col4" style="text-align:right; "/>
- <col ref="col5" style="text-align:right; "/>
- <col ref="col6" style="text-align:right; "/>
- <col ref="col7" style="text-align:right; "/>
- <col ref="col8" style="text-align:right; "/>
- <col ref="col9" style="text-align:right; "/>
- <col ref="col10" style="text-align:right; "/>
- <col ref="col11" style="text-align:right; "/>
- <col ref="col12" style="text-align:right; "/>
- <col ref="staymmsum" style="text-align:right; "/>
- </datagrid>
- </case>
- <case id="case3">
- <datagrid id="grd_staytminfo" nodeset="/root/main/staytminfo/staytmlist" caption="임상과^1H 미만^3H미만^4H 미만^6H 미만^12H 미만^24H 미만^72H 미만^72H 이상^TOTAL" colsep="^" colwidth="130, 103, 103, 103, 103, 102, 103, 103, 103, 103" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:4px; top:4px; width:1169px; height:690px; ">
- <col ref="deptnm" style="text-align:center; "/>
- <col ref="col1" style="text-align:right; "/>
- <col ref="col2" style="text-align:right; "/>
- <col ref="col3" style="text-align:right; "/>
- <col ref="col4" style="text-align:right; "/>
- <col ref="col5" style="text-align:right; "/>
- <col ref="col6" style="text-align:right; "/>
- <col ref="col7" style="text-align:right; "/>
- <col ref="col8" style="text-align:right; "/>
- <col ref="staytmsum" style="text-align:right; "/>
- </datagrid>
- </case>
- </switch>
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:170px; height:14px; ">체류시간대장</caption>
- </xhtml:body>
- </xhtml:html>
|