123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?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>
- <search>
- <fromdd/>
- <todd/>
- <orddeptcd/>
- <orddrid/>
- <ampmflag>AM</ampmflag>
- <offset/>
- <pagesize>10000</pagesize>
- </search>
- <ordwaitlist>
- <ordwaitlistinfo>
- <pid/>
- <orddd/>
- <depthngnm/>
- <usernm/>
- <specordyn/>
- <ordtm/>
- <nursacptdt/>
- <ordstartdt/>
- <dracptdt/>
- </ordwaitlistinfo>
- </ordwaitlist>
- </main>
- <init>
- <dept>
- <dept/>
- </dept>
- <userlist/>
- <resultref/>
- </init>
- <send>
- <reqdata/>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMQR03002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/search" add="bottom" resultref="/root/main/ordwaitlist"/>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../emr/qiweb/js/SPMQR03100.js"/>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <caption id="caption3" class="tit_1" style="left:0px; top:0px; width:230px; height:13px; ">진료대기시간관리 - 환자별리스트</caption>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:21px; width:1168px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:10px; top:30px; width:86px; height:17px; ">조회기간</caption>
- <input id="ipt_fromdd" ref="/root/main/search/fromdd" class="input_s_essential" inputtype="date" style="left:90px; top:30px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 날짜 Validation Check
- if(ipt_fromdd.value !="")
- {
- if(ipt_fromdd.value > ipt_todd.value)
- {
- messageBox("종료일 이전 날자만 입력","I006");
- ipt_fromdd.value = getCurrentDate();
- }
- }
- ]]>
- </script>
- </input>
- <caption id="caption2" style="left:195px; top:30px; width:15px; height:20px; ">~</caption>
- <input id="ipt_todd" ref="/root/main/search/todd" class="input_s_essential" inputtype="date" style="left:215px; top:30px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 날짜 Validation Check
- if(ipt_todd.value !="")
- {
- if(ipt_fromdd.value > ipt_todd.value)
- {
- messageBox("시작일 이후 날자만 입력","I006");
- ipt_todd.value = getCurrentDate();
- }
- }
- ]]>
- </script>
- </input>
- <caption id="caption26" class="search_name" style="left:330px; top:30px; width:86px; height:17px; ">진료과</caption>
- <select1 id="cmb_orddeptcd" ref="/root/main/search/orddeptcd" class="combo_s_essential" appearance="minimal" style="left:395px; top:30px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/dept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/search/orddeptcd") == "") {
- model.removeNodeset("/root/main/search/orddrid");
- model.makeNode("/root/main/search/orddrid");
- }
-
- model.removeNodeset("/root/init/userlist");
- model.makeNode("/root/init/userlist/usercombo");
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", cmb_orddeptcd.value, "0330");
- addComboInstance("/root/init/userlist", "userid^usernm", "^전체", "usercombo"); //의사콤보 전체항목 추가
- cmb_orddrid.select(1);
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption29" class="search_name" style="left:506px; top:30px; width:86px; height:17px; ">진료의</caption>
- <select1 id="cmb_orddrid" ref="/root/main/search/orddrid" class="combo_s_essential" appearance="minimal" style="left:575px; top:30px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userlist/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="rdo_ampm" ref="/root/main/search/ampmflag" appearance="full" cols="3" overflow="visible" style="left:695px; top:30px; width:210px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>오전</label>
- <value>AM</value>
- </item>
- <item>
- <label>오후</label>
- <value>PM</value>
- </item>
- <item>
- <label>오전-당일접수제외</label>
- <value>EX</value>
- </item>
- </choices>
- </select1>
- <line id="line2" style="x1:1090px; y1:25px; x2:1090px; y2:51px; border-color:#ffcc99; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1106px; top:28px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var fromdd = ipt_fromdd.value;
- var todd = ipt_todd.value;
-
- var dateInterval = getDateInterval(fromdd, todd, "dd");
-
- if(dateInterval > 30) {
- messageBox("한달 이상은 조회를", "E001");
- }
-
- if(ipt_todd.value == "" || ipt_fromdd.value == "") {
- messageBox("날짜는", "I003");
- ipt_todd.value = getCurrentDate();
- ipt_fromdd.value = getCurrentDate();
- return;
- }
- fGetOrdWaitlistPat();
- ]]>
- </script>
- </button>
- <datagrid id="grd_ordwaitlist" nodeset="/root/main/ordwaitlist/ordwaitlistinfo" caption="등록번호^진료일자^진료과^의사^선택진료여부^예약시간^환자도착시간^진료시작시간^진료종료시간" colsep="^" colwidth="100, 120, 110, 100, 100, 110, 120, 120, 120" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:88px; width:1168px; height:678px; ">
- <col ref="pid" style="text-align:center; "/>
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="depthngnm" style="text-align:center; "/>
- <col ref="usernm" style="text-align:center; "/>
- <col ref="specordyn" style="text-align:center; "/>
- <col ref="ordtm" format="hh:nn" style="text-align:center; "/>
- <col ref="nursacptdt" format="hh:nn:ss" style="text-align:center; "/>
- <col ref="ordstartdt" format="hh:nn:ss" style="text-align:center; "/>
- <col ref="dracptdt" format="hh:nn:ss" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_ordwaitlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onscrolldown">
- <![CDATA[
- if(grd_ordwaitlist.vscroll.attribute("max") == grd_ordwaitlist.vscroll.attribute("pos")) {
- model.setValue("/root/main/search/offset", grd_ordwaitlist.rows-grd_ordwaitlist.fixedRows); // grid의 header row는 제외
- submit("TRMQR03002");
- grd_ordwaitlist.dispatch("onmouseup"); // 스크롤바 처리를 위한 이벤트 발생
- }
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:85px; x2:1167px; y2:85px; "/>
- <button id="button1" class="btn2_letter4" style="left:1100px; top:61px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var selectValue1 = true;
- var selectValue2 = 1;
- var today = getCurrentDate();
- var fileName = window.fileDialog("save", ",", false, "진료대기시간(환자별)_"+today, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != ""){
- grd_ordwaitlist.saveExcel(fileName, "sheetname:sheet1");
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|