123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- * 제 목 : SMMCT00110_응급실현황판.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>
- <pid/>
- <patnm/>
- <orddeptcd/>
- <bedcd/>
- <basedd/>
- </condition>
- <erprescondinfo>
- <erprescondlist>
- <bedflag/>
- <pid/>
- <patnm/>
- <orddeptcd/>
- <acpttm/>
- <calltm/>
- <drarvtm/>
- <drarvusetm/>
- <patstaytm/>
- <inspecyn/>
- <roomnm/>
- </erprescondlist>
- </erprescondinfo>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <bedflaglist>
- <bedflag>
- <bedflagnm/>
- <bedflagcd/>
- </bedflag>
- </bedflaglist>
- </main>
- <send>
- <reqdata/>
- </send>
- <init>
- <bedflaginfo>
- </bedflaginfo>
- <info/>
- <orddept>
- <dept/>
- </orddept>
- </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" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit_SMMCT00110();
- ]]>
- </script>
- <submission id="TRMMB04101" method="post" mediatype="application/x-www-form-urlencoded"/>
- <submission id="TRMCT00110" ref="/root/send/reqdata" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/erprescondinfo"/>
- <submission id="TRMCT00111" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/bedflaglist"/>
- <submission id="TRMMO04105" ref="/root/send/reqdata" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/init/patnm"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /*
- * @desc : 초기화
- */
- function fInit_SMMCT00110(){
-
- submit("TRMCT00111");
-
- //병상구분
- addComboInstance("/root/main/bedflaglist" , "bedflagcd^bedflagnm", "-^전체", "bedflag"); //병상콤보 Item '전체'추가
- // cmb_bedflag.value='전체';
-
- //진료과
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept" , "D"); //진료과 콤보
- addComboInstance("/root/init/orddept" , "deptcd^depthngnm", "-^전체", "dept"); //진료과콤보 Item '전체'추가
-
- //초기값 셋팅
- model.setValue("/root/main/condition/bedcd" , "-");
- model.setValue("/root/main/condition/orddeptcd" , "-");
- model.setValue("/root/main/condition/basedd" , getCurrentDate() );
- model.removeNodeset(grd_erprescondlst.nodeset );
-
- cap_total.value = "총 0 건";
-
- model.refresh();
- }
-
-
-
- /**
- * @desc : 입원장발급건수 조회
- */
- function fGetERPresCond(){
- var curTm = getCurrentTime();
- // if( curTm< "170000" && curTm > "080000" ) {
- // alert("업무시간에는 사용하실 수 없습니다. ( 08:00~ 17:00 ) " );
- // return ;
- // }
- var cnt = 0 ;
- cap_total.value = "총 " + cnt + " 건";
- model.removeNodeset(grd_erprescondlst.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", "");
- if( model.getValue("/root/send/reqdata/bedcd") == "-" ) model.setValue("/root/send/reqdata/bedcd", "");
- submit("TRMCT00110");
- var nodelst = instance1.selectNodes(grd_erprescondlst.nodeset );
- cnt = nodelst.length;
-
- cap_total.value = "총 " + cnt + " 건";
- 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:28px; width:1189px; 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:0px; top:75px; width:270px; height:13px; ">응급실 현황</caption>
- <datagrid id="grd_erprescondlst" nodeset="/root/main/erprescondinfo/erprescondlist" autoresize="true" caption="병상구분^등록번호^이름^주진료과^도착시간(접수시간)^도착시간(접수시간)^콜시간^의사도착시간^의사도착소요시간^의사도착소요시간^환자체류시간^환자체류시간^입원장^병실|병상구분^등록번호^이름^주진료과^도착시간(접수시간)^도착시간(접수시간)^콜시간^의사도착시간^의사도착소요시간^의사도착소요시간^환자체류시간^환자체류시간^입원장^병실" colwidth="71, 100, 100, 110, 30, 141, 80, 110, 30, 81, 30, 110, 49, 102" ellipsis="true" explorerbar="sortshow" extendlastcol="noscroll" mergecellsfixedrows="bycolrec" rowheader="seq" subtotalposition="below" rowsep="|" colsep="^" tooltip="true" style="left:0px; top:95px; width:1187px; height:638px; ">
- <col ref="bedflag" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="orddeptcd" style="text-align:center; "/>
- <col ref="acptcalluseflag" style="text-align:center; "/>
- <col ref="acpttm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="calltm" format="hh:nn:ss" style="text-align:center; "/>
- <col ref="drarvtm" format="hh:nn:ss" style="text-align:center; "/>
- <col ref="drarvuseflag" style="text-align:center; "/>
- <col ref="drarvusetm" style="text-align:center; "/>
- <col ref="patstayflag" style="text-align:center; "/>
- <col ref="patstaytm" style="text-align:center; "/>
- <col ref="inspecyn" style="text-align:center; "/>
- <col ref="roomnm" style="text-align:center; "/>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:93px; x2:1187px; y2:93px; "/>
- <caption id="cap_total" class="search_name" style="left:975px; top:40px; width:125px; height:17px; ">총 0 건</caption>
- <button id="btn_req" class="btn1_letter2" style="left:1115px; top:38px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetERPresCond();
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" style="left:746px; top:40px; width:76px; height:17px; ">진 료 과</caption>
- <line id="line5" style="x1:1100px; y1:38px; x2:1100px; y2:60px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption2" class="search_name" style="left:20px; top:40px; width:91px; height:17px; ">병 상 구 분</caption>
- <caption id="caption1" class="search_name" style="left:265px; top:40px; width:91px; height:17px; ">등 록 번 호</caption>
- <caption id="caption3" class="search_name" style="left:505px; top:40px; width:76px; height:17px; ">이 름</caption>
- <select1 id="cmb_bedflag" ref="/root/main/condition/bedcd" class="combo_search" appearance="minimal" editmode="search" style="left:115px; top:40px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/bedflaglist/bedflag">
- <label ref="bedflagnm"/>
- <value ref="bedflagcd"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_pid" ref="/root/main/condition/pid" style="left:360px; top:40px; width:115px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13 ) {
- //fPidTrim("/root/main/condition/pid")
- var pid = trim(ipt_pid.currentText );
- if(pid == ""){
- return;
- }
- if(reqPatInfo("pid", "ptbs", pid)==true){
- var hngnm = model.getValue("/root/init/patnm/patnm/hngnm");
- model.setValue("/root/main/condition/patnm", hngnm);
- model.setValue("/root/main/condition/pid", pid);
- fGetERPresCond();
- }
- }
- ]]>
- </script>
- </input>
- <input id="ipt_patnm" ref="/root/main/condition/patnm" style="left:570px; top:40px; width:115px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13){
- model.makeValue("/root/hidden/srchcond", "2");
- model.makeValue("/root/hidden/hngnm", ipt_patnm.currentText);
-
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/hidden", "/root/send");
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
-
- model.setValue("/root/main/condition/pid", pid);
- model.setValue("/root/main/condition/patnm", hngnm);
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_orddept" ref="/root/main/condition/orddeptcd" class="combo_search" appearance="minimal" editmode="search" style="left:830px; top:40px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_patsrch" class="icon_search" style="left:690px; top:42px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPMC02500");
-
- var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- model.setValue("/root/main/condition/pid", sPid);
- model.setValue("/root/main/condition/patnm", sHngnm);
- fGetERPresCond();
- ]]>
- </script>
- </button>
- <shape id="roundrect4" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:737px; width:1185px; height:26px; background-color:#ffffff; border-color:#3366ff; "/>
- <caption id="caption16" style="left:10px; top:743px; width:1165px; height:15px; ">◇ : 응급실 입원장 발행 ◆ : 응급실 입원장 발행, 원무에서 접수 ★ : 환자도착 후 콜시간까지 30분이상 소요 ☆ : 의사 콜 후 의사도착시간까지 30분이상 소요 ● : 환자 체류시간 24시간 초과</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_erprescondlst.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>
- </xhtml:body>
- </xhtml:html>
|