123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- * 제 목 : SMMCT00109_응급실체류시간.xrw
- * 설 명 : 응급실체류시간 조회
- * 설 계 자 : 박유진
- * 작 성 자 : 박유진
- * 작 성 일 : 2009.09.28
- * 수정이력 :
- * 기 타 :
- -->
- <?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="">
- <main>
- <condition>
- <fromdd/>
- <todd/>
- <orddeptcd/>
- <dschflag/>
- </condition>
- <staytminfo>
- <staytmlist>
- <orddeptcd/>
- <psnnocnt/>
- <stayavgtm/>
- <tmpatcnt1/>
- <tmpatavg1/>
- <tmpatcnt2/>
- <tmpatavg2/>
- <tmpatcnt3/>
- <tmpatavg3/>
- <tmpatcnt4/>
- <tmpatavg4/>
- <tmpatcnt5/>
- <tmpatavg5/>
- <tmpatcnt6/>
- <tmpatavg6/>
- <tmpatcnt7/>
- <tmpatavg7/>
- </staytmlist>
- </staytminfo>
- </main>
- <send>
- <reqdata/>
- </send>
- <init>
- <orddept>
- <dept/>
- </orddept>
- <info/>
- <userlist>
- <usercombo>
- <userid/>
- <usernm/>
- </usercombo>
- </userlist>
- <subdeptinfo>
- <subdeptlist/>
- </subdeptinfo>
- </init>
- </root>
- </instance>
- <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="../../../com/userdeptinfoweb/js/ZSU001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit_SMMCT00109();
- ]]>
- </script>
- <submission id="TRMCT00109" ref="/root/send/reqdata" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/staytminfo"/>
- <submission id="TRMMB04101" method="post" mediatype="application/x-www-form-urlencoded"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /*
- * @desc : 초기화
- */
- function fInit_SMMCT00109(){
- //진료과
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept" , "D"); //진료과 콤보
- addComboInstance("/root/init/orddept" , "deptcd^depthngnm", "-^전체", "dept"); //진료과 콤보 Item '전체'추가
-
- //초기값 셋팅
- model.setValue("/root/main/condition/fromdd" , getCurrentDate());
- model.setValue("/root/main/condition/todd" , getCurrentDate());
- model.setValue("/root/main/condition/orddeptcd" , "-");
- model.removeNodeset(grd_staytmlst.nodeset );
-
- cap_total.value = "총 0 건";
-
- model.refresh();
- }
-
-
-
- /**
- * @desc : 응급실체류시간 조회
- */
- function fGetERStayTm(){
- var curTm = getCurrentTime();
- // if( curTm< "170000" && curTm > "080000" ) {
- // alert("업무시간에는 사용하실 수 없습니다. ( 08:00~ 17:00 ) " );
- // return ;
- // }
- var cnt = 0 ;
- cap_total.value = "총 " + cnt + " 건";
- model.removeNodeset(grd_staytmlst.nodeset);
- model.resetInstanceNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/condition");
- if( model.getValue("/root/send/reqdata/orddeptcd") == "-" ) model.setValue("/root/send/reqdata/orddeptcd", "");
- submit("TRMCT00109");
- var nodelst = instance1.selectNodes(grd_staytmlst.nodeset );
-
- var tmpCnt = 0 ;
- var sCnt = "";
- if( nodelst.length > 0 ) {
- var sCnt = "";
- for( var i = 1 ; i <= nodelst.length ; i++ ) {
- sCnt = model.getValue(grd_staytmlst.nodeset + "[" + i + "]/psnnocnt" );
- if( !isNull(sCnt ) ) {
- tmpCnt = parseInt(sCnt) ;
- if( !isNaN(tmpCnt) ) cnt = cnt + tmpCnt ;
- }
- }
- }
-
- cap_total.value = "총 " + cnt + " 건";
- grd_staytmlst.rebuildStyle();
- if( isNull( grd_staytmlst.valueMatrix(nodelst.length, 2 )) ){
- grd_staytmlst.rowStyle( nodelst.length ,"data", "background-color" ) = "#fafad2" ;
- grd_staytmlst.rowStyle( nodelst.length , "data", "font-weight" ) = "bold" ;
- }
-
- /*
- grd_staytmlst.subtotalPosition = "below"
- grd_staytmlst.subTotal("sum" , 1,3 , "format:#,###; ", "background-color:#fafad2; font-weight:bold;" );
- grd_staytmlst.subTotal("average" , 1, 4 , "format:#,###; ", "background-color:#fafad2; font-weight:bold;" );
- for( var i = 5 ; i < 12 ; i++) {
- grd_staytmlst.subTotal("sum" , 1, i , "format:#,###; ", "background-color:#fafad2; font-weight:bold;" );
- }
-
- for( var i = 12 ; i < 19 ; i++) {
- grd_staytmlst.subTotal("average" , 1, i , "format:#,###; ", "background-color:#fafad2; font-weight:bold;" );
- }
- */
-
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body accesskey="f2" guideline="2,763;2,765;2,763;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:25px; width:1194px; height:40px; "/>
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:300px; height:14px; ">응급실 체류시간</caption>
- <caption id="caption20" class="tit_2" style="left:5px; top:75px; width:270px; height:14px; ">체류시간 조회</caption>
- <datagrid id="grd_staytmlst" nodeset="/root/main/staytminfo/staytmlist" autoresize="true" caption="^진료과^인원수^체류평균시간^~3시^~6시^~12시^~24시^~48시^~72시^72시이상^~3시(%)^~6시(%)^~12시(%)^~24시(%)^~48시(%)^~72시(%)^72시이상(%)" colwidth="0, 120, 80, 80, 50, 50, 50, 50, 50, 50, 60, 60, 60, 60, 60, 60, 60, 98" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" rowheader="seq" subtotalposition="below" rowsep="|" colsep="^" tooltip="true" style="left:0px; top:95px; width:1187px; height:670px; ">
- <col ref="grup" visibility="hidden"/>
- <col ref="orddeptcd" style="text-align:center; "/>
- <col ref="psnnocnt" style="text-align:center; "/>
- <col ref="stayavgtm" style="text-align:center; "/>
- <col ref="tmpatcnt1" style="text-align:center; "/>
- <col ref="tmpatcnt2" style="text-align:center; "/>
- <col ref="tmpatcnt3" style="text-align:center; "/>
- <col ref="tmpatcnt4" style="text-align:center; "/>
- <col ref="tmpatcnt5" style="text-align:center; "/>
- <col ref="tmpatcnt6" style="text-align:center; "/>
- <col ref="tmpatcnt7" style="text-align:center; "/>
- <col ref="tmpatavg1" style="text-align:center; "/>
- <col ref="tmpatavg2" style="text-align:center; "/>
- <col ref="tmpatavg3" style="text-align:center; "/>
- <col ref="tmpatavg4" style="text-align:center; "/>
- <col ref="tmpatavg5" style="text-align:center; "/>
- <col ref="tmpatavg6" style="text-align:center; "/>
- <col ref="tmpatavg7" style="text-align:center; "/>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:93px; x2:1187px; y2:93px; "/>
- <input id="ipt_srchtodd" ref="/root/main/condition/fromdd" class="input_s_essential" disabled="true" inputtype="date" style="left:75px; top:37px; width:90px; height:19px; "/>
- <input id="ipt_srchfromdd" ref="/root/main/condition/todd" class="input_s_essential" disabled="true" inputtype="date" style="left:175px; top:37px; width:90px; height:19px; "/>
- <select1 id="cmb_orddept" ref="/root/main/condition/orddeptcd" class="combo_search" appearance="minimal" editmode="search" style="left:369px; top:37px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_total" class="search_name" visibility="hidden" style="left:965px; top:38px; width:125px; height:17px; ">총 0 건</caption>
- <button id="btn_req" class="btn1_letter2" style="left:1125px; top:35px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetERStayTm();
- ]]>
- </script>
- </button>
- <caption id="caption8" style="left:164px; top:39px; width:15px; height:15px; ">~</caption>
- <caption id="caption9" class="search_name" style="left:10px; top:37px; width:86px; height:17px; ">기간 :</caption>
- <line id="line5" style="x1:1110px; y1:35px; x2:1110px; y2:57px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption7" class="search_name" style="left:290px; top:37px; width:76px; height:17px; ">진 료 과</caption>
- <button id="button1" class="btn2_letter2" style="left:1145px; top:73px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var title = "응급실체류시간 (" + model.getValue("/root/main/condition/fromdd" ) + " ~ " + model.getValue("/root/main/condition/todd" ) + " ) " ;
- //fsaveGridToExcel(grd_inpatinfolst, title);
-
- var fileName = window.fileDialog("save", ",", false, "응급실체류시간", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_staytmlst.saveExcel(fileName, "응급실체류시간", true, true, "", "", false);
- var s = fileName.lastIndexOf("\\");
- var fileName=fileName.substring(s+1);
-
- var rmsg = messageBox("저장된 Excel을", "Q004");
- if( rmsg == 6 ){
- window.exec("excel.exe", fileName);
- }
- }
- ]]>
- </script>
- </button>
- <select id="chk_all" ref="/root/main/condition/dschflag" class="checkbox_search" overflow="visible" appearance="full" cols="1" sep="|" cellspacing="30" style="left:520px; top:37px; width:190px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>퇴실처리 환자 포함</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( chk_all.value == "Y" ) {
- ipt_srchfromdd.disabled = false;
- ipt_srchtodd.disabled = false;
- }else {
- ipt_srchfromdd.disabled = true;
- ipt_srchtodd.disabled = true;
- }
- ]]>
- </script>
- </select>
- </xhtml:body>
- </xhtml:html>
|