123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>준공용 병상 가용 현황</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <exavlist>
- <exavinfo>
- <orddeptcd/>
- <deptnm/>
- <exbed/>
- <deptpat/>
- <bedpat/>
- <deptrate/>
- <bedrate/>
- <exavcnt_dept/>
- <exavcnt_bed/>
- <exavcnt_rslt/>
- </exavinfo>
- </exavlist>
- <inpatlist>
- <inpatinfo>
- <orddeptnm/>
- <wardnm/>
- <roomcd/>
- <bednm/>
- <bedorddeptnm/>
- <hngnm/>
- <pid/>
- <indschacptstat/>
- <remfact/>
- </inpatinfo>
- </inpatlist>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <orddeptcd/>
- <bedorddeptcd/>
- <exptyn/>
- </send>
- <init>
- <PAM>
- <PK074list>
- <PK074>
- <cdnm/>
- <cdid/>
- <detl/>
- </PK074>
- </PK074list>
- </PAM>
- </init>
- </root>
- </instance>
- <submission id="TRPMI03901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/exavlist/exavinfo"/>
- <submission id="TRPMI03902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/inpatlist/inpatinfo"/>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <script type="javascript">
- <![CDATA[
- //미수데이터 서브토탈
- function fSubTotalData() {
-
- grd_exav.gridToInstance();
- grd_exav.refresh();
- grd_exav.deleteRow(grd_exav.findRow("* Total *", 0, 1), true);
-
- grd_exav.subtotalPosition = "below";
-
- grd_exav.subtotal("clear", -1, 2);
- grd_exav.subtotal("clear", -1, 3);
- grd_exav.subtotal("clear", -1, 4);
- grd_exav.subtotal("clear", -1, 5);
- grd_exav.subtotal("clear", -1, 6);
- grd_exav.subtotal("clear", -1, 7);
- grd_exav.subtotal("clear", -1, 11);
- grd_exav.subtotal("clear", -1, 12);
- grd_exav.subtotal("clear", -1, 13);
-
- grd_exav.subtotal("sum", -1, 2, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "* Total *", false);
- grd_exav.subtotal("sum", -1, 3, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "* Total *", false);
- grd_exav.subtotal("sum", -1, 4, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "* Total *", false);
- grd_exav.subtotal("sum", -1, 5, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "* Total *", false);
- grd_exav.subtotal("sum", -1, 6, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "* Total *", false);
- grd_exav.subtotal("sum", -1, 7, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "* Total *", false);
- grd_exav.subtotal("sum", -1, 11, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "* Total *", false);
- grd_exav.subtotal("sum", -1, 12, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "* Total *", false);
- grd_exav.subtotal("sum", -1, 13, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "* Total *", false);
- }
- ]]>
- </script>
- <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" ev:event="xforms-ready">
- <![CDATA[
-
- pamfGetCodeList(new Array("PK074"), new Array("/root/init/PAM/PK074list"));
-
- var sWard = "";
-
- for (i = 1; i <= getNodesetCount("/root/init/PAM/PK074list/PK074"); i++) {
-
- var ward = model.getValue("/root/init/PAM/PK074list/PK074[" + i + "]/remark");
- if (!isNull(ward)) {
-
- sWard = sWard + ward + "\r\n";
- }
- }
- caption18.value = sWard;
-
- model.setValue("/root/send/fromdd", getCurrentDate());
- model.setValue("/root/send/todd", getCurrentDate());
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:152px; height:14px; font-family:돋움; vertical-align:middle; ">준공용 병상 가용 현황</caption>
- <caption id="caption7" class="tit_2" style="left:0px; top:70px; width:85px; height:13px; font-weight:bold; ">조회 내역</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:85px; x2:1195px; y2:85px; "/>
- <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; "/>
- <button id="btn_search" class="btn1_letter2" navindex="6" style="left:1130px; top:30px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRPMI03901");
-
- fSubTotalData();
- ]]>
- </script>
- </button>
- <line id="line13" style="x1:1120px; y1:30px; x2:1120px; y2:57px; border-color:#FFD799; border-left-style:solid; "/>
- <button id="btn_excel" class="btn2_letter4" style="left:958px; top:65px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var filename = window.fileDialog("save", ",", false, "준공용 병상 가용 현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_exav.saveExcel(filename, "sheetname:준공용 병상 가용 현황;colhiddenextend:true;rowhiddenextend:false;");
- messageBox("엑셀 저장이 완료되었습니다.", "I999");
- ]]>
- </script>
- </button>
- <datagrid id="grd_exav" nodeset="/root/main/exavlist/exavinfo" class="datagrid2" caption="진료과^전용병상수^진료과
환자수^전용병상
환자수^입원결정수
(외래/응급/특수)^입원결정수
(외래/응급/특수)^입원결정수
(외래/응급/특수)^진료과
가동률^전용병상
가동률^입원결정률^가용병상수
(진료과)^가용병상수
(전용병상)^가용병상수
(적용)^caption1" colsep="^" colwidth="140, 80, 80, 80, 40, 40, 40, 80, 80, 80, 80, 80, 80, 50" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:90px; width:1022px; height:650px; text-align:center; ">
- <col ref="deptnm" style="text-align:left; padding-left:10; "/>
- <col ref="exbed" style="text-align:right; padding-right:10; "/>
- <col ref="deptpat" style="text-align:right; padding-right:10; "/>
- <col ref="bedpat" style="text-align:right; padding-right:10; "/>
- <col ref="adrvipat" style="text-align:right; padding-right:5; "/>
- <col ref="adrvepat" style="text-align:right; padding-right:5; "/>
- <col ref="adrvdpat" style="text-align:right; padding-right:5; "/>
- <col ref="deptrate" style="text-align:right; padding-right:10; "/>
- <col ref="bedrate" style="text-align:right; padding-right:10; "/>
- <col ref="adrvrate" style="text-align:right; padding-right:10; "/>
- <col ref="exavcnt_dept" style="text-align:right; padding-right:10; "/>
- <col ref="exavcnt_bed" style="text-align:right; padding-right:10; "/>
- <col ref="exavcnt_rslt" style="font-weight:bold; text-align:right; padding-right:10; "/>
- <col ref="orddeptcd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var sRow = grd_exav.row;
- if (sRow > 0) {
-
- btn_left.dispatch("DOMActivate");
-
- // 자격조회 호출
- if (grd_exav.col == grd_exav.colRef("bedpat")) {
-
- model.setValue("/root/send/orddeptcd", "");
- model.setValue("/root/send/bedorddeptcd", model.getValue("/root/main/exavlist/exavinfo[" + sRow + "]/orddeptcd"));
-
- } else {
-
- model.setValue("/root/send/orddeptcd", model.getValue("/root/main/exavlist/exavinfo[" + sRow + "]/orddeptcd"));
- model.setValue("/root/send/bedorddeptcd", "");
- }
-
- submit("TRPMI03902");
-
- grd_inpatinfo.rebuildStyle();
- setRowStyle( "grd_inpatinfo" , "11" , "퇴원예고" , "indschacptstat" , "equal" ); // 삭제대상 처리
- setRowStyle( "grd_inpatinfo" , "0" , "입원결정" , "indschacptstat" , "equal" ); // 삭제대상 처리
- grd_inpatinfo.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- fSubTotalData();
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" style="left:10px; top:34px; width:290px; height:15px; font-weight:bold; ">※ 가용병상수 : 전용병상수 * ( 90% - 가동률 ) / 100</caption>
- <caption id="caption2" style="left:300px; top:34px; width:156px; height:15px; ">(☞ 소수점은 내림으로 계산)</caption>
- <!-- group id="grp_info" visibility="hidden" style="left:520px; top:55px; width:520px; height:270px; border-color:#999999; border-style:solid; " -->
- <button id="btn_info" class="btn2_letter4" style="left:475px; top:31px; width:64px; height:19px; ">
- <caption>항목설명</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_info.visible = btn_infoclose.visible = !grp_info.visible;
- ]]>
- </script>
- </button>
- <caption id="caption14" style="left:75px; top:67px; width:622px; height:20px; ">※ 진료과 더블클릭 시 재원과 기준, 전용병상환자수 더블클릭 시 병상배정과 기준으로 환자세부정보가 표시됩니다.</caption>
- <datagrid id="grd_inpatinfo" nodeset="/root/main/inpatlist/inpatinfo" class="datagrid2" caption="진료과^병동^병실^병상^병상배정과^환자^환자^상태^비고" colsep="^" colwidth="100, 100, 45, 60, 100, 66, 70, 60, 287" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:1025px; top:90px; width:170px; height:650px; ">
- <col ref="orddeptnm" style="padding-left:5; "/>
- <col ref="wardnm" style="padding-left:5; "/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="bednm" style="text-align:center; "/>
- <col ref="bedorddeptnm" style="padding-left:5; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="indschacptstat" style="text-align:center; "/>
- <col ref="remfact"/>
- </datagrid>
- <button id="btn_left" class="icon_left" style="left:1142px; top:65px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- grd_exav.attribute("width") = "622"; // 1022
-
- grd_inpatinfo.attribute("left") = "625"; // 1025
- grd_inpatinfo.attribute("width") = "570"; // 170
- ]]>
- </script>
- </button>
- <button id="btn_right" class="icon_right" style="left:1169px; top:65px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- grd_exav.attribute("width") = "1022"; // 1022
-
- grd_inpatinfo.attribute("left") = "1025"; // 1025
- grd_inpatinfo.attribute("width") = "170"; // 170
- ]]>
- </script>
- </button>
- <group id="grp_info" visibility="hidden" style="left:475px; top:55px; width:520px; height:325px; border-color:#999999; border-style:solid; ">
- <table id="table1" cellspacing="-1" style="left:10px; top:10px; width:500px; height:260px; vertical-align:middle; border-style:none; ">
- <tr>
- <td style="width:150px; height:30px; text-align:left; ">
- <caption id="caption3" class="cell_1" style="left:0px; top:1px; width:140px; height:24px; text-align:right; padding-right:5; ">전용병상수</caption>
- </td>
- <td style="width:350px; height:30px; ">해당과가 보유하고 있는 전용 병상의 개수</td>
- </tr>
- <tr>
- <td style="width:150px; height:30px; ">
- <caption id="caption4" class="cell_1" style="left:0px; top:1px; width:140px; height:24px; text-align:right; padding-right:5; ">진료과환자수</caption>
- </td>
- <td style="width:350px; height:30px; ">해당과 진료 환자 중 전용 병상에 있는 환자수 (타과 병상 포함)</td>
- </tr>
- <tr>
- <td style="width:150px; height:30px; ">
- <caption id="caption5" class="cell_1" style="left:0px; top:1px; width:140px; height:24px; text-align:right; padding-right:5; ">전용병상환자수</caption>
- </td>
- <td style="width:350px; height:30px; ">해당과 소속 병상에 있는 모든 환자수 (타과 환자 포함)</td>
- </tr>
- <tr>
- <td style="width:150px; height:30px; ">
- <caption id="caption6" class="cell_1" style="left:0px; top:1px; width:140px; height:24px; text-align:right; padding-right:5; ">입원결정수</caption>
- </td>
- <td style="width:350px; height:30px; ">해당진료과로 결정한 환자 수</td>
- </tr>
- <tr>
- <td style="width:150px; height:10px; "/>
- <td style="width:350px; height:10px; "/>
- </tr>
- <tr>
- <td style="width:150px; height:30px; ">
- <caption id="caption8" class="cell_1" style="left:0px; top:1px; width:140px; height:24px; text-align:right; padding-right:5; ">진료과가동률</caption>
- </td>
- <td style="width:350px; height:30px; ">진료과 환자수 / 전용병상수 * 100</td>
- </tr>
- <tr>
- <td style="width:150px; height:30px; ">
- <caption id="caption9" class="cell_1" style="left:0px; top:1px; width:140px; height:24px; text-align:right; padding-right:5; ">전용병상가동률</caption>
- </td>
- <td style="width:350px; height:30px; ">전용 병상 환자수 / 전용 병상수 * 100</td>
- </tr>
- <tr>
- <td style="width:150px; height:30px; ">
- <caption id="caption10" class="cell_1" style="left:0px; top:1px; width:140px; height:24px; text-align:right; padding-right:5; ">입원결정률</caption>
- </td>
- <td style="width:350px; height:30px; ">전용병상수 / 입원결정수 * 100</td>
- </tr>
- <tr>
- <td style="width:150px; height:10px; "/>
- <td style="width:350px; height:10px; "/>
- </tr>
- <tr>
- <td style="width:150px; height:30px; ">
- <caption id="caption11" class="cell_1" style="left:0px; top:1px; width:140px; height:24px; text-align:right; padding-right:5; ">가용병상수(진료과)</caption>
- </td>
- <td style="width:350px; height:30px; ">진료과 가동률 기준 가용 병상수</td>
- </tr>
- <tr>
- <td style="width:150px; height:30px; ">
- <caption id="caption12" class="cell_1" style="left:0px; top:1px; width:140px; height:24px; text-align:right; padding-right:5; ">가용병상수(전용병상)</caption>
- </td>
- <td style="width:350px; height:30px; ">전용 병상 가동률 기준 가용 병상수</td>
- </tr>
- <tr>
- <td style="width:150px; height:30px; ">
- <caption id="caption13" class="cell_1" style="left:0px; top:1px; width:140px; height:24px; text-align:right; padding-right:5; ">가용병상수(적용)</caption>
- </td>
- <td style="width:350px; height:30px; ">두 가용 병상 중 적은 수의 가용 병상 수</td>
- </tr>
- </table>
- </group>
- <button id="btn_infoclose" class="btn2_letter2" visibility="hidden" style="left:941px; top:65px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_info.visible = btn_infoclose.visible = false;
- ]]>
- </script>
- </button>
- <caption id="caption15" style="left:1140px; top:740px; width:54px; height:20px; ">입원결정</caption>
- <caption id="caption16" style="left:1060px; top:740px; width:55px; height:20px; ">퇴원예고</caption>
- <shape id="rectangle1" appearance="rectangle" style="left:1042px; top:742px; width:15px; height:15px; background-color:#e5f3c2; border-color:#99cc00; "/>
- <shape id="rectangle2" appearance="rectangle" style="left:1122px; top:742px; width:15px; height:15px; background-color:#fcd2c1; border-color:#ff99cc; "/>
- <select id="checkbox1" ref="/root/send/exptyn" visibility="hidden" overflow="visible" appearance="full" style="left:715px; top:34px; width:16px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="caption17" class="search_name" visibility="hidden" style="left:605px; top:32px; width:110px; height:17px; ">특수병상 포함</caption>
- <button id="button1" class="btn2_letter8" style="left:745px; top:31px; width:103px; height:19px; ">
- <caption>특수병상제외내역</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_bedinfo.visible = btn_bedinfoclose.visible = !grp_bedinfo.visible;
- ]]>
- </script>
- <hint>
- <![CDATA[PK074]]>
- </hint>
- </button>
- <group id="grp_bedinfo" visibility="hidden" style="left:745px; top:55px; width:225px; height:470px; ">
- <shape id="rectangle3" appearance="rectangle" style="left:0px; top:0px; width:225px; height:470px; border-color:#999999; "/>
- <caption id="caption18" style="left:5px; top:5px; width:215px; height:460px; vertical-align:top; line-spacing:4; "/>
- <button id="btn_bedinfoclose" class="btn2_letter2" style="left:178px; top:5px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_bedinfo.visible = false;
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|