123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?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>
- <bedinfo>
- <bedlist/>
- </bedinfo>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <termflag/>
- </send>
- </root>
- </instance>
- <submission id="TRPMI05211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/bedinfo"/>
- </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/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- rdo_termflag.value = "D";
- rdo_termflag.dispatch("xforms-value-changed");
- ipt_fromdd.value = getCurrentDate();
- ipt_todd.value = getCurrentDate();
- // zbcfGetCodeList(new Array("P0008","P0025","P0037"),new Array("/root/init1/P0008list","/root/init1/P0025list","/root/init/P0037list"));
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:204px; height:15px; ">전용병상 가동률 현황</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:15px; width:1193px; height:720px; ">
- <line id="line5" class="line_1" style="x1:0px; y1:25px; x2:1175px; y2:25px; "/>
- <caption id="caption7" class="tit_2" style="left:5px; top:6px; width:239px; height:14px; ">진료과별 병동별 병상가동현황 - 과별</caption>
- <button id="btn_print5" class="btn2_letter2" visibility="hidden" style="left:1050px; top:3px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPPMI05250", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
- ]]>
- </script>
- </button>
- <datagrid id="grd_bedlist" nodeset="/root/main/bedinfo/bedlist" class="datagrid" caption="진료과^기본병상수^총병상수^환자수^가동율^진료과별(주진료과)^진료과별(주진료과)^진료과별(주진료과)^진료과별(주.부진료과)^진료과별(주.부진료과)^진료과별(주.부진료과)|진료과^기본병상수^총병상수^환자수^가동율^환자수^가동률^전체가동률대비병상^환자수^가동률^전체가동률대비병상" colsep="^" colwidth="120, 80, 90, 80, 80, 100, 125, 120, 100, 126, 120" mergecellsfixedrows="bycolrec" rowsep="|" ref="/root/main/bedinfo/bedlist" style="left:0px; top:60px; width:1170px; height:640px; text-align:center; ">
- <col disabled="true" ref="orddeptnm" type="output"/>
- <col ref="wardcnt"/>
- <col ref="bedcnt"/>
- <col ref="allinpatcnt"/>
- <col ref="allorddrate"/>
- <col ref="maininpatcnt"/>
- <col ref="mainorddrate"/>
- <col ref="mainpoint"/>
- <col ref="bothinpatcnt"/>
- <col ref="bothorddrate"/>
- <col ref="bothpoint"/>
- </datagrid>
- <group id="group5" style="left:0px; top:5px; width:1172px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1172px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:1100px; y1:7px; x2:1100px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search2" class="btn1_letter2" style="left:1111px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRPMI05211");
- var totalmainrate = grd_bedlist.valueMatrix(grd_bedlist.rows-1, grd_bedlist.colRef("mainorddrate") );
- var totalbothrate = grd_bedlist.valueMatrix(grd_bedlist.rows-1, grd_bedlist.colRef("bothorddrate") );
-
- for ( i = grd_bedlist.fixedrows; i < grd_bedlist.rows -1 ; i++) {
- var wardcnt = grd_bedlist.valueMatrix( i, grd_bedlist.colRef("wardcnt") );
- var bedcnt = grd_bedlist.valueMatrix(i, grd_bedlist.colRef("bedcnt") );
- var mainorddrate = grd_bedlist.valueMatrix( i, grd_bedlist.colRef("mainorddrate") );
- var bothorddrate = grd_bedlist.valueMatrix( i, grd_bedlist.colRef("bothorddrate") );
-
- if ( rdo_termflag.value == "D") {
- var mainpoint = (mainorddrate - totalmainrate)/100*wardcnt;
- var bothpoint = (bothorddrate - totalbothrate)/100*wardcnt;
- grd_bedlist.valueMatrix(i, grd_bedlist.colRef("mainpoint") ) = Math.floor(mainpoint);
- grd_bedlist.valueMatrix(i, grd_bedlist.colRef("bothpoint") ) = Math.floor(bothpoint);
- } else if ( rdo_termflag.value == "T") {
- var mainpoint = (mainorddrate - totalmainrate)/100*wardcnt;
- var bothpoint = (bothorddrate - totalbothrate)/100*wardcnt;
- grd_bedlist.valueMatrix(i, grd_bedlist.colRef("mainpoint") ) = Math.floor(mainpoint);
- grd_bedlist.valueMatrix(i, grd_bedlist.colRef("bothpoint") ) = Math.floor(bothpoint);
- }
- }
-
-
-
- ]]>
- </script>
- </button>
- <button id="btn_saveexcel5" class="btn3_letter4" visibility="visible" style="left:1014px; top:7px; width:80px; height:22px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- if ( rdo_termflag.value == "T") {
- grd_bedlist.saveExcel(fileName, "SheetName", true, true, "", "", true);
- } else {
- grd_bedlist.saveExcel(fileName, "SheetName", false, false, "", "", true);
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption39" class="search_name" style="left:21px; top:9px; width:87px; height:17px; ">조회기간 :</caption>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_essential" inputtype="date" style="left:110px; top:10px; width:90px; height:20px; "/>
- <input id="ipt_todd" ref="/root/send/todd" class="input_essential" inputtype="date" style="left:225px; top:10px; width:90px; height:19px; "/>
- <caption id="caption1" style="left:205px; top:10px; width:15px; height:20px; ">~</caption>
- <caption id="caption2" class="search_name" style="left:338px; top:9px; width:87px; height:17px; ">검색조건 :</caption>
- <select1 id="rdo_termflag" ref="/root/send/termflag" appearance="full" cols="2" overflow="visible" style="left:430px; top:11px; width:185px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>당일</label>
- <value>D</value>
- </item>
- <item>
- <label>기간별</label>
- <value>T</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removeNodeset("/root/main/bedinfo/bedlist");
- if ( rdo_termflag.value == "D" ) {
- ipt_fromdd.disabled = true;
- ipt_todd.disabled = true;
- grd_bedlist.colHidden(grd_bedlist.colRef("bedcnt")) = true;
- } else if ( rdo_termflag.value == "T") {
- ipt_fromdd.disabled = false;
- ipt_todd.disabled = false;
- grd_bedlist.colHidden(grd_bedlist.colRef("bedcnt")) = false;
- }
- ]]>
- </script>
- </select1>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|