123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../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="">
- <send>
- <fromdd/>
- <todd/>
- <srchflag/>
- <deptcd/>
- <todaydschflag>Y</todaydschflag>
- </send>
- <main>
- <dschspeclist>
- <dschspec/>
- </dschspeclist>
- <dschrate>
- <dschratedeptlist>
- <dschratedept/>
- </dschratedeptlist>
- <dschratewardlist>
- <dschrateward/>
- </dschratewardlist>
- </dschrate>
- </main>
- <init/>
- <newElement/>
- <newElement/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- fInitialize();
-
- ]]>
- </script>
- <submission id="TRPMI06501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dschrate"/>
- <submission id="TRPMI06502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dschspeclist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- </xhtml:head>
- <script type="javascript">
- <![CDATA[
-
- function fInitialize() {
- model.resetInstanceNode("/root/main/dschspeclist/dschspec");
- model.resetInstanceNode("/root/main/dschrate/dschratedeptlist/dschratedept");
- model.resetInstanceNode("/root/main/dschrate/dschratewardlist/dschrateward");
- model.setValue("/root/send/fromdd", getCurrentDate());
- model.setValue("/root/send/todd", getCurrentDate());
-
- caption7.value = "-";
-
- model.setValue("/root/send/todaydschflag", "Y");
-
- model.refresh();
- grd_ratedept.refresh();
- grd_rateward.refresh();
- grd_dschspec.refresh();
- grd_dschspec.rebuildStyle();
-
- }
-
- function fGetDschSpecList(srchflag, deptcd, deptnm) {
-
- caption7.value = deptnm;
-
- model.setValue("/root/send/srchflag", srchflag);
- model.setValue("/root/send/deptcd", deptcd);
- submit("TRPMI06502");
-
- grd_dschspec.rebuildStyle();
- setRowStyle( "grd_dschspec" , "11", "Y" , "rate15yn" , "equal" ); //e5f3c2
- setRowStyle( "grd_dschspec" , "1", "Y" , "rate20yn" , "equal" ); //ffe79d
-
-
-
- }
-
- function fGetDschRateList() {
-
- var fromdd = model.getValue("/root/send/fromdd");
- var todd = model.getValue("/root/send/todd");
-
- if (isNull(fromdd) || isNull(todd)) {
- messageBox("시작일자 및 종료일자는 반드시 입력하십시오.", "E");
- return;
- }
-
- var minusrslt = getDateInterval(fromdd,todd);
- if (minusrslt > 31) {
- messageBox("최대 31일까지 조회가능합니다.", "E");
- return;
- }
-
- submit("TRPMI06501");
-
- grd_ratedept.rebuildStyle();
- grd_rateward.rebuildStyle();
- setRowStyle( "grd_ratedept" , "13", "합계" , "deptnm" , "equal" );
- setRowStyle( "grd_rateward" , "13", "합계" , "deptnm" , "equal" );
- }
-
- ]]>
- </script>
- <xhtml:body guideline="1,1193;1,1195;1,-3;2,783;" 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:200px; height:15px; ">퇴원예고율조회</caption>
- </group>
- <group id="group3" style="left:0px; top:13px; width:1195px; height:770px; ">
- <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="button1" class="btn1_letter2" navindex="3" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fGetDschRateList();
-
- ]]>
- </script>
- </button>
- <line id="line2" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption17" class="search_name" style="left:10px; top:10px; width:86px; height:17px; ">퇴원일자 :</caption>
- <caption id="caption20" class="search_no_b" style="left:202px; top:10px; width:12px; height:17px; ">~</caption>
- <input id="ipt_infromdd" ref="/root/send/fromdd" class="input_search" navindex="1" inputtype="date" style="left:99px; top:9px; width:100px; height:19px; "/>
- <input id="ipt_intodd" ref="/root/send/todd" class="input_search" navindex="2" inputtype="date" style="left:217px; top:9px; width:100px; height:19px; "/>
- <caption id="caption8" class="search_name" style="left:360px; top:10px; width:145px; height:17px; ">입원당일퇴원 제외 :</caption>
- <select id="checkbox1" ref="/root/send/todaydschflag" overflow="visible" appearance="full" style="left:504px; top:11px; width:15px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </group>
- <caption id="caption2" class="tit_2" style="left:5px; top:58px; width:183px; height:13px; font-family:돋움; vertical-align:middle; ">진료과별 퇴원예고율</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:73px; x2:430px; y2:73px; "/>
- <button id="button3" class="btn2_letter4" style="left:1120px; top:53px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "퇴원환자 세부내역_" + getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_dschspec.saveExcel(fileName, "SheetName", false, false, "", "", false);
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_ratedept" nodeset="/root/main/dschrate/dschratedeptlist/dschratedept" class="datagrid2" caption="부서명^15시
예고수^20시
예고수^퇴원
환자수^15시
예고율^20시
예고율^caption4" colsep="^" colwidth="110, 60, 60, 60, 60, 60, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:78px; width:430px; height:660px; ">
- <col ref="deptnm"/>
- <col ref="rate15cnt" format="#,###" style="text-align:right; padding-right:5; "/>
- <col ref="rate20cnt" format="#,###" style="text-align:right; padding-right:5; "/>
- <col ref="totcnt" format="#,###" style="text-align:right; padding-right:5; "/>
- <col ref="rate15" style="text-align:right; padding-right:5; "/>
- <col ref="rate20" style="text-align:right; padding-right:5; "/>
- <col ref="deptcd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- var sRow = grd_ratedept.row;
- // 첫행과 마지막행 제외
- if (sRow > 0 && sRow != grd_ratedept.rows) {
-
- var deptcd = model.getValue("/root/main/dschrate/dschratedeptlist/dschratedept[" + sRow + "]/deptcd");
- var deptnm = model.getValue("/root/main/dschrate/dschratedeptlist/dschratedept[" + sRow + "]/deptnm");
-
- fGetDschSpecList("D", deptcd, deptnm);
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_rateward" nodeset="/root/main/dschrate/dschratewardlist/dschrateward" class="datagrid2" caption="부서명^15시
예고수^20시
예고수^퇴원
환자수^15시
예고율^20시
예고율^caption7" colsep="^" colwidth="110, 60, 60, 60, 60, 60, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:435px; top:78px; width:430px; height:660px; ">
- <col ref="deptnm"/>
- <col ref="rate15cnt" format="#,###" style="text-align:right; padding-right:5; "/>
- <col ref="rate20cnt" format="#,###" style="text-align:right; padding-right:5; "/>
- <col ref="totcnt" format="#,###" style="text-align:right; padding-right:5; "/>
- <col ref="rate15" style="text-align:right; padding-right:5; "/>
- <col ref="rate20" style="text-align:right; padding-right:5; "/>
- <col ref="deptcd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- var sRow = grd_rateward.row;
- // 첫행과 마지막행 제외
- if (sRow > 0 && sRow != grd_rateward.rows) {
-
- var deptcd = model.getValue("/root/main/dschrate/dschratewardlist/dschrateward[" + sRow + "]/deptcd");
- var deptnm = model.getValue("/root/main/dschrate/dschratewardlist/dschrateward[" + sRow + "]/deptnm");
-
- fGetDschSpecList("W", deptcd, deptnm);
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_dschspec" nodeset="/root/main/dschspeclist/dschspec" class="datagrid2" caption="입원일자^퇴원일자^퇴원예고
등록일시^퇴원예고
등록자^진료과^병동^병실^등록번호^성명^caption1^caption2" colsep="^" colwidth="80, 80, 120, 80, 100, 110, 60, 60, 70, 10, 10" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:880px; top:78px; width:314px; height:660px; ">
- <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="dschdclrtrgstdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="dschdclrtrgstnm" style="text-align:center; "/>
- <col ref="orddeptnm"/>
- <col ref="wardnm"/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="rate15yn" visibility="hidden"/>
- <col ref="rate20yn" visibility="hidden"/>
- </datagrid>
- <line id="line3" class="line_1" style="x1:880px; y1:73px; x2:1194px; y2:73px; "/>
- <caption id="caption1" class="tit_2" style="left:880px; top:58px; width:81px; height:14px; font-family:돋움; vertical-align:middle; ">세부내역 :</caption>
- <button id="button4" class="btn2_letter4" style="left:790px; top:53px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "병동별 퇴원예고율_" + getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_rateward.saveExcel(fileName, "SheetName", false, false, "", "", false);
- }
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter4" style="left:355px; top:53px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "진료과별 퇴원예고율_" + getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_ratedept.saveExcel(fileName, "SheetName", false, false, "", "", false);
- }
- ]]>
- </script>
- </button>
- <caption id="caption3" class="tit_2" style="left:435px; top:58px; width:183px; height:13px; font-family:돋움; vertical-align:middle; ">병동별 퇴원예고율</caption>
- <line id="line4" class="line_1" style="x1:435px; y1:73px; x2:865px; y2:73px; "/>
- <shape id="rectangle1" appearance="rectangle" style="left:890px; top:743px; width:15px; height:15px; background-color:#e5f3c2; "/>
- <caption id="caption4" style="left:909px; top:741px; width:56px; height:20px; ">15시이전</caption>
- <shape id="rectangle2" appearance="rectangle" style="left:975px; top:743px; width:15px; height:15px; background-color:#ffe79d; "/>
- <caption id="caption5" style="left:994px; top:741px; width:56px; height:20px; ">20시이전</caption>
- <caption id="caption7" style="left:960px; top:55px; width:160px; height:20px; font-weight:bold; color:#0000ff; text-align:left; ">-</caption>
- </group>
- <button id="button2" class="btn4_letter3" style="left:1120px; top:756px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|