123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>뇌사추정자 리스트 조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cond>
- <searchdd/>
- <gcsflag/>
- <prflag/>
- </cond>
- <send>
- <reqdata/>
- </send>
- <rsrvlist>
- <rsrvinfo/>
- </rsrvlist>
- </main>
- <init>
- <ward>
- <wardcd/>
- <wardnm/>
- </ward>
- <dept>
- <deptcd/>
- <depthngnm/>
- </dept>
- <settingrn>
- <settingrnid/>
- <settingrnnm/>
- </settingrn>
- </init>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
-
- function fInit(){
- //오늘 날짜로 초기화 하는 부분.(진료일자를 default로 오늘 날짜로 선택함)
- // model.setValue("/root/main/cond/settingrnid", "");
- // model.setValue("/root/main/cond/userid", getUserId());
- // model.setValue("/root/main/cond/usernm", getUserName());
- // model.setValue("/root/main/cond/orddd", getCurrentDate());
- // model.setValue("/root/main/cond/wardcd", getUserInfo("dutplcecd"));
-
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- // model.makeValue("/root/send/reqdata/wardcd", model.getValue("/root/main/cond/wardcd"));
-
- // submit("TRMNW00101");
- // model.setValue("/root/main/cond/settingrnid", "");
- // for(i=1; i <= getNodesetCount("/root/init/settingrn"); i++ ) {
- // if (model.getValue("/root/main/cond/userid") == model.getValue("/root/init/settingrn["+ i +"]/settingrnid")) {
- // model.setValue("/root/main/cond/settingrnid", model.getValue("/root/main/cond/userid"));
- // }
- // }
- // cmb_wardcd.refresh();
- // cmb_settingrnid.refresh();
-
- fGetRsrvPatientList();
- }
- function fGetRsrvPatientList(){
- var searchdd = model.getValue("/root/main/cond/searchdd");
-
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
-
- model.makeValue("/root/send/reqdata/searchdd", searchdd);
- model.makeValue("/root/send/reqdata/gcsflag", model.getValue("/root/main/cond/gcsflag"));
- model.makeValue("/root/send/reqdata/prflag", model.getValue("/root/main/cond/prflag"));
-
- // 뇌사추정자 리스트 초기화
- model.removenode("/root/main/rsrvlist");
- model.makeNode("/root/main/rsrvlist");
- grd_rsrv.refresh();
- if(submit("TRMNW19200")){
- //if (getNodesetCount("/root/main_om/testrsltinfo/rsltlist") == 0) {
- if (getNodesetCount("/root/main/rsrvlist/rsrvinfo") == 0) {
- messageBox("출력할 데이터가 존재하지 않습니다.", "I");
- return;
- }
- }
- }
-
- function fSaveExcel(){
- var fileName = window.fileDialog("save", ",", false, "검사예약환자리스트_"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "") {
- grd_rsrv.saveExcel(fileName, "SheetName", false, false, "", "", false);
- }
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //model.removeNodeset("/root/main/cond/execdetlgrup/execdetlgruplist");
-
- ipt_searchdd.value = getCurrentDate() ;// 기준일에 현재날짜(디폴트)
-
- // 조회기간 설정 시 해당 코드 사용
- // var addDy = model.getValue("/root/main/cond/prcpddfrom");
- // addDy = addDy.toDate().getAddDate(-3,"D");
- // addDy = addDy.getDateFormat();
- //
- // ipt_fromdd.value = getCurrentDate();
- // ipt_todd.value = getCurrentDate();// 기준일에 현재날짜(디폴트)
-
- fInit();
- ]]>
- </script>
- <submission id="TRMNR07602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cond/wardcdgrup"/>
- <submission id="TRMNR07603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cond/roomcdgrup"/>
- <submission id="TRMNR07604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cond/patientgrup"/>
- <submission id="TRMNR07605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cond/patientgrupInfo"/>
- <submission id="TRMNR07606" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cond/execdetlgrup"/>
- <submission id="TRMNW00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init"/>
- <submission id="TRMNW19100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/rsrvlist"/>
- <submission id="TRMNW19200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/rsrvlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="825" pageheight="620" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:805px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:171px; height:15px; ">뇌사추정자 리스트 조회</caption>
- </group>
- <group id="grp_biz" scroll="l" style="left:0px; top:13px; width:805px; height:592px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:800px; height:55px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:-201px; top:0px; width:1001px; height:55px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="button3" class="btn1_letter2" style="left:630px; top:15px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetRsrvPatientList();// 뇌사추정자 리스트 조회시
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:600px; y1:15px; x2:600px; y2:37px; "/>
- <input id="ipt_searchdd" ref="/root/main/cond/searchdd" class="input_default" inputtype="date" style="left:99px; top:19px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </input>
- <caption id="caption9" class="search_name" style="left:8px; top:19px; width:92px; height:17px; ">조회일자 :</caption>
- <button id="button1" class="btn1_letter4" style="left:694px; top:15px; width:80px; height:22px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveExcel();
- ]]>
- </script>
- </button>
- <select id="chk_deptflag" ref="/root/main/cond/gcsflag" class="checkbox_search" overflow="visible" appearance="full" style="left:215px; top:20px; width:130px; height:18px; border-style:none; ">
- <choices>
- <item>
- <label>GCS 점수 조건해제</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </select>
- <select id="checkbox1" ref="/root/main/cond/prflag" class="checkbox_search" overflow="visible" appearance="full" style="left:355px; top:20px; width:190px; height:18px; border-style:none; ">
- <choices>
- <item>
- <label>Pupil Reflex(Fixed) 조건포함</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </select>
- </group>
- <line id="line16" class="line_1" style="x1:0px; y1:88px; x2:796px; y2:88px; "/>
- <caption id="caption26" class="tit_2" style="left:5px; top:73px; width:150px; height:13px; vertical-align:middle; ">뇌사추정자자 리스트</caption>
- <datagrid id="grd_rsrv" nodeset="/root/main/rsrvlist/rsrvinfo" caption="병실^병상^등록번호^이름^S/A^진료과^주치의^담당의^입원일자" colsep="^" colwidth="80, 80, 80, 70, 60, 138, 80, 80, 90" mergecells="never" rowheader="select" rowsep="|" tooltip="true" style="left:0px; top:93px; width:800px; height:492px; ">
- <col ref="wardnm" style="text-align:center; "/>
- <col ref="bedcd" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="sexage" style="text-align:center; "/>
- <col ref="orddeptnm" style="text-align:center; "/>
- <col ref="medispclnm" style="text-align:center; "/>
- <col ref="atdoctnm" style="text-align:center; "/>
- <col ref="indd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|