123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMPM105001_전일당일퇴원예고.xrw
- * 설 명 : 퇴원예고별통계
- * 설 계 자 :
- * 작 성 자 : 김소영
- * 작 성 일 : 2009.09.08
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <?xml-stylesheet href="C:/CMCProject/application/webapps/com/commonweb/css/common.css" type="text/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>
- <gridlist>
- <grid>
- <col1/>
- <col2/>
- <col3/>
- <col4/>
- <col5/>
- <col6/>
- <col7/>
- <col8/>
- <col9/>
- <col10/>
- <col11/>
- <col12/>
- <col13/>
- <col14/>
- </grid>
- </gridlist>
- <cond>
- <dsch>1</dsch>
- <cond1>1</cond1>
- <fromdd/>
- <todd/>
- </cond>
- </main>
- <send>
- </send>
- <init/>
- <hidden>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // fInitialize();
- //날자 입력 항목에 오늘 날자 세팅
- var curDate = getCurrentDate();
- ipt_fromdd.value =curDate;
- ipt_todd.value =curDate;
- model.setValue("/root/main/cond/fromdd", curDate);
- model.setValue("/root/main/cond/todd", curDate);
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function gridcnt(a){
- var b = grd_list.cols;
- var c = null;
- if (b >a) {
- for( i=0;b-i>a;i++ ){
- grd_list.removeColumn();
- }
- }
- else if (b <a) {
- for( i=0;b+i<a;i++){
- c = "ref:col"+(b+i+1)+";type:output";
- grd_list.addColumn(c);
- grd_list.colWidth(b+i) ="80" ;
- }
- }
- }
- function initgrid(){
- model.makeNode("/root/main/gridlist/grid");
- model.refresh();
- if (rdo_cond1.value != 3 && rdo_dsch.value ==1) {
- gridcnt(13);
- grd_list.caption ="구분^전체퇴원^당일퇴원전체^제외^순수당일퇴원^전일퇴원^평가소계^전일퇴원율^사망^탈원^자의퇴원^1일입원^전일퇴원해당" ;
- }
- else if (rdo_cond1.value == 3 && rdo_dsch.value ==1) {
- gridcnt(14);
- grd_list.caption ="구분^진료의^전체퇴원^당일퇴원전체^제외^순수당일퇴원^전일퇴원^평가소계^전일퇴원율^사망^탈원^자의퇴원^1일입원^전일퇴원해당";
- }
- else if (rdo_cond1.value != 3 && rdo_dsch.value ==2){
- gridcnt(11);
- grd_list.caption ="구분^당일퇴원전체^회진후퇴원^협진후^검사후^수술후^추가약처방후^추가서류후^추가처치후^약반납후^추가식사후";
- }
- else if (rdo_cond1.value == 3 && rdo_dsch.value ==2){
- gridcnt(12);
- grd_list.caption ="구분^진료의^당일퇴원전체^회진후퇴원^협진후^검사후^수술후^추가약처방후^추가서류후^추가처치후^약반납후^추가식사후";
- }
- }
- function fInitialize(){
- model.removeNodeset("/root/main/gridlist/grid");
- model.refresh();
- }
- ]]>
- </script>
- <submission id="TRPMI05001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/gridlist"/>
- </model>
- </xhtml:head>
- <xhtml:body>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:25px; width:1194px; height:70px; "/>
- <caption id="caption3" class="tit_1" style="left:0px; top:5px; width:215px; height:13px; ">전일/당일 퇴원 사유별 통계</caption>
- <button id="button1" class="btn1_letter2" style="left:1040px; top:45px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var dsch = model.getValue("/root/main/cond/dsch");
- var cond1 = model.getValue("/root/main/cond/cond1");
- var fromdd = model.getValue("/root/main/cond/fromdd");
- var todd = model.getValue("/root/main/cond/todd");
- model.makeValue("/root/send/dsch",dsch);
- model.makeValue("/root/send/cond1",cond1);
- model.makeValue("/root/send/fromdd",fromdd);
- model.makeValue("/root/send/todd",todd);
- submit("TRPMI05001");
- grd_list.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:460px; top:35px; width:85px; height:17px; ">조회기간</caption>
- <caption id="caption2" class="search_name" style="left:15px; top:35px; width:90px; height:17px; ">퇴원구분</caption>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" inputtype="date" style="left:555px; top:35px; width:100px; height:19px; "/>
- <input id="ipt_todd" ref="/root/main/cond/todd" inputtype="date" style="left:660px; top:35px; width:100px; height:19px; "/>
- <datagrid id="grd_list" nodeset="/root/main/gridlist/grid" autoresize="true" caption="구분^전체퇴원^당일퇴원전체^제외^순수당일퇴원^전일퇴원^평가소계^전일퇴원율^사망^탈원^자의퇴원^1일입원^전일퇴원해당^전일퇴원해당" colsep="^" colwidth="113, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:100px; width:1194px; height:640px; ">
- <col ref="col1"/>
- <col ref="col2"/>
- <col ref="col3"/>
- <col ref="col4"/>
- <col ref="col5"/>
- <col ref="col6"/>
- <col ref="col7"/>
- <col ref="col8"/>
- <col ref="col9"/>
- <col ref="col10"/>
- <col ref="col11"/>
- <col ref="col12"/>
- <col ref="col13"/>
- </datagrid>
- <select1 id="rdo_cond1" ref="/root/main/cond/cond1" overflow="visible" appearance="full" cellspacing="10" cols="3" style="left:135px; top:65px; width:225px; height:20px; 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[
- fInitialize();
- initgrid();
- ]]>
- </script>
- </select1>
- <select1 id="rdo_dsch" ref="/root/main/cond/dsch" overflow="visible" appearance="full" cellspacing="10" cols="2" style="left:135px; top:35px; width:170px; 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[
- fInitialize();
- initgrid();
- ]]>
- </script>
- </select1>
- <button id="btn_excel" class="btn6_letter4" navindex="8" style="left:1100px; top:45px; width:80px; height:22px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "전일당일퇴원예고", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- var sheetName="전일당일퇴원예고";
-
- sheetName= rdo_dsch.label+rdo_cond1.label;
-
- if (fileName != "")
- {
- grd_list.rebuild();
-
- grd_list.saveExcel(fileName, sheetName, true, true, "", "");
- }
-
- window.exec(fileName);
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|