123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- <?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="">
- <main>
- <cond>
- <calldd/>
- <pid/>
- <hngnm/>
- </cond>
- <ercallinfo>
- <ercalllist>
- <pid/>
- <hngnm/>
- <agesex/>
- <orddeptnm/>
- <orddrnm/>
- <mainsubflag/>
- <callno/>
- <calldt/>
- <callrgstrnm/>
- <visitdt/>
- <visitrgstrnm/>
- <usetm/>
- </ercalllist>
- </ercallinfo>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <init>
- <cond>
- <M0030/>
- </cond>
- </init>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //그리드를 초기화
- model.removeNodeset("/root/main/ercallinfo/ercalllist");
- //현재일자를 받아옴
- model.setValue("/root/main/cond/calldd",getCurrentDate());
- model.refresh();
- ]]>
- </script>
- <submission id="TRMMO06202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/ercallinfo"/>
- <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/hngnm"/>
- </model>
- <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/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- </xhtml:head>
- <xhtml:body guideline="2,783;1,1193;" style="margin-left:8; margin-right:8; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:185px; height:14px; ">응급실 호출 현황</caption>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:21px; width:1191px; height:44px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:20px; top:34px; width:105px; height:17px; ">호출일자 :</caption>
- <caption id="caption3" class="search_name" style="left:240px; top:34px; width:105px; height:17px; ">등록번호:</caption>
- <input id="ipt_calldd" ref="/root/main/cond/calldd" class="input_search" inputtype="date" appearance="input" style="left:108px; top:34px; width:110px; height:19px; "/>
- <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" maxlength="10" appearance="input" style="left:321px; top:34px; width:115px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- //입력한 등록번호를 가지고 등록번호에 해당하는 환자명을 조회하러 간다
- inputEnterKey("btn_reqpatnm", "DOMActivate");
- //등록번호에 해당하는 환자를 조회
- inputEnterKey("btn_req", "DOMActivate");
- ]]>
- </script>
- <hint>
- <![CDATA[등록번호를 입력하세요]]>
- </hint>
- </input>
- <button id="btn_reqpatnm" disabled="true" navindex="4" style="left:445px; top:34px; width:10px; height:20px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //등록번호를 입력하면 등록번호에 해당하는 환자명을 조회하고 환자명입력창에 환자명 넣어줌
- model.removenode("/root/init/patnm/patnm");
- //reqPatInfo: 환자정보 조회 - 함수 (MMO0001에 있음)
- reqPatInfo("pid", "ptbs",model.getValue("/root/main/cond/pid"));
- //받아온 환자명을 환자명 input박스에 넣어준다
- model.setValue("/root/main/cond/hngnm", model.getValue("/root/init/patnm/patnm/hngnm"));
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_req" class="btn1_letter2" navindex="6" style="left:1122px; top:34px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //조건에 해당하는 데이타를 조회
- model.copyNode("/root/send/reqdata","/root/main/cond");
- submit("TRMMO06202");
-
- //등록번호, 이름, 나이/성별 , 진료과, 담당의 까지 같은 것이 있으면 병합
- grd_ordliblist.mergecol(6) = false;
- grd_ordliblist.mergecol(7) = false;
- grd_ordliblist.mergecol(8) = false;
- grd_ordliblist.mergecol(9) = false;
- grd_ordliblist.mergecol(10) = false;
- grd_ordliblist.mergecol(11) = false;
- grd_ordliblist.mergecol(12) = false;
- grd_ordliblist.mergecells = "bycol";
-
- // var format = toDate(model.getValue("/root/main/ercallinfo/ercalllist/visitdt"));
- // alert(format);
- ]]>
- </script>
- </button>
- <caption id="caption25" class="tit_2" style="left:0px; top:75px; width:190px; height:13px; ">응급실 호출 현황 리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:90px; x2:1193px; y2:90px; "/>
- <datagrid id="grd_ordliblist" nodeset="/root/main/ercallinfo/ercalllist" autoresize="true" caption="등록번호^성 명^나이/성별^진료과^담당의^구분^호출번호^호출일시^호출자명^도착일시^도착등록자명^소요시간" colsep="^" colwidth="70, 90, 70, 120, 100, 50, 120, 130, 100, 130, 100, 80" dataheight="25" extendlastcol="noscroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="7" style="left:0px; top:95px; width:1193px; height:688px; ">
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="agesex"/>
- <col ref="orddeptnm"/>
- <col ref="orddrnm"/>
- <col ref="mainsubflag" style="text-align:center; "/>
- <col ref="callno"/>
- <col ref="calldt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="callrgstrnm"/>
- <col ref="visitdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="visitrgstrnm"/>
- <col ref="usetm" format="hh:nn:ss"/>
- </datagrid>
- <button id="button1" class="icon_search" navindex="3" style="left:650px; top:34px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ipt_hngnm.value = '';
- ipt_pid.value = '';
- //원무팀의 환자명을 받아오는 팝업창을 띠운다.
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
- //input박스에 데이타를 받아온다.
- var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- model.setValue("/root/main/cond/pid", sPid);
- model.setValue("/root/main/cond/hngnm", sHngnm);
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line3" style="x1:1110px; y1:27px; x2:1110px; y2:57px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_excel" class="btn2_letter3" style="left:1137px; top:68px; width:53px; height:19px; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //파일 선택 다이얼로그 띄운다. - "응급실호출현황"이라는 이름으로 저장 위치를 지정하는 팝업을 띄움
- var fileName = window.fileDialog("save", ",", false, "응급실호출현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- //파일저장주소를 받아온 것을 가지고 그리드내용을 엑셀로 저장
- if (fileName != "")
- {
- //그리드의 내용을 Excel 파일로 저장하는 함수로.. 파일이름을 받아온것을 가지고 저장하러 간다.
- grd_ordliblist.saveExcel(fileName, "SheetName", true, true, "", "");
- }
- ]]>
- </script>
- </button>
- <caption id="caption4" class="search_name" style="left:464px; top:33px; width:107px; height:17px; ">성 명 :</caption>
- <input id="ipt_hngnm" ref="/root/main/cond/hngnm" class="input_search" disabled="true" appearance="input" style="left:541px; top:33px; width:106px; height:19px; ">
- <hint>
- <![CDATA[환자명은 입력할 수 없습니다.]]>
- </hint>
- </input>
- </xhtml:body>
- </xhtml:html>
|