123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>On Call 관리 (응급실, 수술실)</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <init>
- <orddept/>
- <userlist/>
- </init>
- <main>
- <cond>
- <fromdd/>
- <todd/>
- <codnstat> E</codnstat>
- <pid/>
- <condflag/>
- <stat/>
- </cond>
- <oncalllist/>
- <oncallinfo>
- <calldeptcd/>
- <calldrid/>
- </oncallinfo>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <hidden/>
- <temp/>
- </root>
- </instance>
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMO33501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/oncalllist"/>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- fInitOnCall("V");
- ]]>
- </script>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/SPMMO33200.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="1000" pageheight="800">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:695px; height:14px; ">On Call 내역</caption>
- <group id="group1" style="left:0px; top:15px; width:980px; height:760px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:980px; height:55px; background-color:#fffbf2; border-color:#ffd799; "/>
- <input id="input3" ref="/root/main/cond/fromdd" inputtype="date" style="left:95px; top:8px; width:85px; height:19px; "/>
- <input id="input6" ref="/root/main/cond/todd" inputtype="date" style="left:195px; top:8px; width:85px; height:19px; "/>
- <caption id="caption1" style="left:182px; top:9px; width:11px; height:20px; ">~</caption>
- <button id="button1" class="btn1_letter2" style="left:853px; top:17px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/main/cond/condkind", "A");
- model.makeValue("/root/main/cond/condacpt", "-");
- model.makeValue("/root/main/cond/calldeptcd", model.getValue("/root/main/oncallinfo/calldeptcd"));
- model.makeValue("/root/main/cond/calldrid", model.getValue("/root/main/oncallinfo/calldrid"));
-
- var gbn = model.getValue("/root/main/cond/codnstat");
- var gbnlist = gbn.split(" ");
-
- if (gbn.length>0) {
- for (var i=0; i<gbnlist.length;i++) {
- gbn = gbn.replace(" ","','");
- }
- gbn = "('" + gbn + "')";
- } else {
- messageBox("구분을 반드시 1개 이상 선택하십시오", "E999");
- return;
- }
- model.setValue("/root/main/cond/stat", gbn);
-
- fGetAfterOnCallList();
- ]]>
- </script>
- </button>
- <line id="line2" style="x1:837px; y1:12px; x2:837px; y2:44px; border-color:#ffe4bb; border-left-style:solid; "/>
- <line id="line9" class="line_1" style="x1:0px; y1:58px; x2:980px; y2:58px; "/>
- <caption id="caption2" class="search_name" style="left:295px; top:9px; width:75px; height:17px; ">상 태:</caption>
- <select id="checkbox1" ref="/root/main/cond/codnstat" overflow="visible" appearance="full" cellspacing="5" cols="4" style="left:370px; top:8px; width:145px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>신청</label>
- <value>A</value>
- </item>
- <item>
- <label>도착</label>
- <value>R</value>
- </item>
- <item>
- <label>완료</label>
- <value>E</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </select>
- <line id="line3" class="line_3" style="x1:0px; y1:759px; x2:980px; y2:759px; "/>
- <datagrid id="grd_oncalllist" nodeset="/root/main/oncalllist/info" autoresize="true" caption="saveflag^calldeptcd^진료과^진료의^등록번호^환자명^신청일시^시작시간^시작시간^종료시간^소요(분)^상태^신청내용^작업내용" colsep="^" colwidth="0, 0, 110, 60, 60, 60, 105, 30, 105, 105, 60, 40, 200, 300" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:65px; width:980px; height:694px; text-align:center; ">
- <col ref="saveflag"/>
- <col ref="calldeptcd"/>
- <col ref="calldeptnm"/>
- <col ref="calldrnm"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="appdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="arvdy"/>
- <col ref="arvdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="enddt" format="yyyy-mm-dd hh:nn"/>
- <col ref="worktime"/>
- <col disabled="true" ref="statcd" type="combo">
- <choices>
- <item>
- <label>신청</label>
- <value>A</value>
- </item>
- <item>
- <label>도착</label>
- <value>R</value>
- </item>
- <item>
- <label>완료</label>
- <value>E</value>
- </item>
- </choices>
- </col>
- <col ref="appcnts" style="text-align:left; "/>
- <col ref="workcnts" style="text-align:left; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var iRow = grd_oncalllist.row;
- if( iRow > 0 ){
- if( model.getValue("/root/main/oncalllist/info["+iRow+"]/statcd") != "E" ){
- alert("완료 상태가 아닙니다.");
- model.setValue("/root/main/oncalllist/info["+iRow+"]/acptyn", "N");
- return;
- }
- model.setValue("/root/main/oncalllist/info["+iRow+"]/saveflag", "U");
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="search_name" style="left:10px; top:9px; width:110px; height:17px; ">신청일자:</caption>
- <caption id="caption4" class="search_name" style="left:10px; top:31px; width:81px; height:17px; ">진 료 과:</caption>
- <caption id="caption5" class="search_name" style="left:295px; top:31px; width:79px; height:17px; ">의 사:</caption>
- <select1 id="cmb_orddr" ref="/root/main/oncallinfo/calldrid" class="combo_s_essential" navindex="3" appearance="minimal" style="left:370px; top:31px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userlist/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_orddept" ref="/root/main/oncallinfo/calldeptcd" class="combo_s_essential" navindex="2" appearance="minimal" style="left:95px; top:31px; width:185px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetOrdDrList();
- ]]>
- </script>
- </select1>
- <caption id="caption7" class="search_name" style="left:525px; top:31px; width:89px; height:17px; ">환자번호:</caption>
- <input id="input1" ref="/root/main/cond/pid" style="left:610px; top:30px; width:65px; height:19px; "/>
- <input id="input2" disabled="true" editable="false" style="left:676px; top:30px; width:75px; height:19px; "/>
- <button id="button2" class="btn1_letter2" style="left:910px; top:17px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var SheetName = "OnCall현황_" + model.getValue("/root/main/cond/todd");
- if(isNull(SheetName)) SheetName = "Sheet1";
-
- var fileName = window.fileDialog("save", ",", false, SheetName, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- grd_oncalllist.saveExcel(fileName, SheetName, false, false, "", "");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|