123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276 |
- <?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>HD Scheduling</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cond>
- <rsrvdd/>
- </cond>
- <dialareapatinfo>
- <dialpatlist1>
- <dialseatflag/>
- <hngnm1/>
- <hngnm2/>
- <hngnm3/>
- <dialareaflag/>
- <instcd/>
- </dialpatlist1>
- <dialpatlist2>
- <dialseatflag/>
- <hngnm1/>
- <hngnm2/>
- <hngnm3/>
- <dialareaflag/>
- <instcd/>
- </dialpatlist2>
- <dialpatlist3>
- <dialseatflag/>
- <hngnm1/>
- <hngnm2/>
- <hngnm3/>
- <dialareaflag/>
- <instcd/>
- </dialpatlist3>
- <dialpatlist4>
- <dialseatflag/>
- <hngnm1/>
- <hngnm2/>
- <hngnm3/>
- <dialareaflag/>
- <instcd/>
- </dialpatlist4>
- <dialpatlist5>
- <dialseatflag/>
- <hngnm1/>
- <hngnm2/>
- <hngnm3/>
- <dialareaflag/>
- <instcd/>
- </dialpatlist5>
- </dialareapatinfo>
- <dutyinfo>
- <dutylist>
- <dutycd/>
- <emplnm/>
- <emplno/>
- </dutylist>
- </dutyinfo>
- <areadutyinfo>
- <areadutylist>
- <dutycd/>
- <emplno/>
- <emplnm/>
- <instcd/>
- <dialseatflag/>
- <dialareaflag/>
- <hngnm1/>
- <hngnm2/>
- <hngnm3/>
- <hngnm1_1/>
- <hngnm1_2/>
- <hngnm1_3/>
- <dialseatflag_1/>
- <dialareaflag_1/>
- </areadutylist>
- </areadutyinfo>
- </main>
- <send>
- <reqdata>
- <rsrvdd/>
- </reqdata>
- </send>
- <init>
- </init>
- <hidden>
- </hidden>
- <temp>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.setValue(ipt_rsrvdd.attribute("ref"), getCurrentDate() );
- ipt_rsrvdd.refresh();
-
- fSearch();
- fSearchDutyInfo();
-
- ]]>
- </script>
- <submission id="TRMND04501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/dialareapatinfo"/>
- <submission id="TRMND04502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/dutyinfo"/>
- <submission id="TRMND04503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/areadutyinfo"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fSearch() {
- model.setValue("/root/send/reqdata/rsrvdd", model.getValue(ipt_rsrvdd.attribute("ref")) );
- submit("TRMND04501");
- }
-
- function fSearchDutyInfo() {
- model.makeValue("/root/send/reqdata/workym", model.getValue(ipt_rsrvdd.attribute("ref")).substr(0, 6) );
- model.makeValue("/root/send/reqdata/workdd", model.getValue(ipt_rsrvdd.attribute("ref")));
- model.makeValue("/root/send/reqdata/appscheexecflag", "3");
-
- submit("TRMND04502");
- }
-
- function fPrint(flag) {
-
- var PATH = "/root/tmp/tempinfo/arealist";
- var dd = model.getValue(ipt_rsrvdd.attribute("ref"));
-
- var dt = new Date(dd.substr(0,4), Number(dd.substr(4,2)) -1, dd.substr(6,2));
-
- var week = dt.getDayOfWeek("K");
-
- model.makeNode(PATH);
- model.makeNode("/root/send/printdata");
- model.makeNode("/root/send/printdata/dutylist");
-
- copyNodesetType(PATH , "/root/main/dialareapatinfo/dialpatlist1");
- copyNodesetType(PATH, "/root/main/dialareapatinfo/dialpatlist2", "after");
- copyNodesetType(PATH, "/root/main/dialareapatinfo/dialpatlist3", "after");
- copyNodesetType(PATH, "/root/main/dialareapatinfo/dialpatlist4", "after");
- copyNodesetType(PATH, "/root/main/dialareapatinfo/dialpatlist5", "after");
-
- if(flag == "1") {
-
- } else if(flag =="2") {
- model.makeValue("/root/send/reqdata/workdd", model.getValue(ipt_rsrvdd.attribute("ref")) );
- model.makeValue("/root/send/reqdata/workym", model.getValue(ipt_rsrvdd.attribute("ref")).substr(0, 6) );
- submit("TRMND04503");
- }
-
- if(flag == "1") {
- model.copynode("/root/send/printdata", "/root/tmp/tempinfo");
- model.makeValue("/root/send/printdata/rsrvdd", model.getValue(ipt_rsrvdd.attribute("ref")));
- model.makeValue("/root/send/printdata/week", week);
-
- exeReportPreview("RPMND04501", "XMLSTR", "", "", "", "", "", "", "");
- } else if(flag == "2") {
- model.copyNode("/root/send/printdata", "/root/main/areadutyinfo");
- model.makeValue("/root/send/printdata/rsrvdd", model.getValue(ipt_rsrvdd.attribute("ref")));
- model.makeValue("/root/send/printdata/week", week);
-
- exeReportPreview("RPMND04502", "XMLSTR", "", "", "", "", "", "", "");
- }
- }
-
-
- ]]>
- </script>
- <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"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1211;1,1195;2,756;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <datagrid id="grd_dialpatlist1" nodeset="/root/main/dialareapatinfo/dialpatlist1" class="datagrid2" caption="자리^Shift1^Shift2^shift3^구역^기관코드" colsep="^" colwidth="28, 55, 55, 55, 33, 36" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:80px; width:211px; height:676px; ">
- <col ref="dialseatflag"/>
- <col ref="hngnm1"/>
- <col ref="hngnm2"/>
- <col ref="hngnm3"/>
- <col ref="dialareaflag" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- </datagrid>
- <datagrid id="datagrid6" nodeset="/root/main/dutyinfo/dutylist" caption="구역^간호사" colsep="^" colwidth="35, 60" mergecellsfixedrows="bycolrec" rowsep="|" style="left:1082px; top:80px; width:113px; height:676px; ">
- <col ref="dutycd"/>
- <col ref="emplnm"/>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:211px; y2:75px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:61px; width:60px; height:13px; ">A구역</caption>
- <caption id="caption2" class="tit_2" style="left:220px; top:60px; width:60px; height:13px; ">B구역</caption>
- <caption id="caption3" class="tit_2" style="left:435px; top:60px; width:60px; height:13px; ">C구역</caption>
- <caption id="caption4" class="tit_2" style="left:650px; top:60px; width:60px; height:13px; ">D구역</caption>
- <caption id="caption5" class="tit_2" style="left:865px; top:60px; width:60px; height:13px; ">E구역</caption>
- <line id="line2" class="line_1" style="x1:1082px; y1:75px; x2:1195px; y2:75px; "/>
- <caption id="caption6" class="tit_2" style="left:1087px; top:61px; width:82px; height:13px; ">간호사배정</caption>
- <line id="line3" class="line_1" style="x1:215px; y1:75px; x2:426px; y2:75px; "/>
- <line id="line4" class="line_1" style="x1:430px; y1:75px; x2:641px; y2:75px; "/>
- <line id="line5" class="line_1" style="x1:645px; y1:75px; x2:856px; y2:75px; "/>
- <line id="line6" class="line_1" style="x1:860px; y1:75px; x2:1071px; y2:75px; "/>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="cpt_HDTitle" class="tit_1" style="left:0px; top:0px; width:195px; height:14px; ">구역별환자배정</caption>
- </group>
- <group id="group2" style="left:0px; top:18px; width:1193px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1193px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption7" class="search_name" style="left:16px; top:9px; width:89px; height:17px; ">예약일자 :</caption>
- <button id="btn_srchhdpatinfo" class="btn1_letter2" style="left:1116px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- fSearchDutyInfo();
- ]]>
- </script>
- </button>
- <input id="ipt_rsrvdd" ref="/root/main/cond/rsrvdd" class="input_s_essential" inputtype="date" style="left:105px; top:8px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- fSearch();
- fSearchDutyInfo();
- ]]>
- </script>
- </input>
- <line id="line7" class="line_4" style="x1:955px; y1:9px; x2:955px; y2:26px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="button1" class="btn1_letter3" style="left:974px; top:7px; width:68px; height:22px; ">
- <caption>출력1</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPrint("1");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn1_letter3" style="left:1045px; top:7px; width:68px; height:22px; ">
- <caption>출력2</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPrint("2");
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="grd_dialpatlist2" nodeset="/root/main/dialareapatinfo/dialpatlist2" class="datagrid2" caption="자리^Shift1^Shift2^shift3^구역^기관코드" colsep="^" colwidth="28, 55, 55, 55, 33, 36" mergecellsfixedrows="bycolrec" rowsep="|" style="left:215px; top:80px; width:211px; height:676px; ">
- <col ref="dialseatflag"/>
- <col ref="hngnm1"/>
- <col ref="hngnm2"/>
- <col ref="hngnm3"/>
- <col ref="dialareaflag" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- </datagrid>
- <datagrid id="grd_dialpatlist3" nodeset="/root/main/dialareapatinfo/dialpatlist3" class="datagrid2" caption="자리^Shift1^Shift2^shift3^구역^기관코드" colsep="^" colwidth="28, 55, 55, 55, 33, 36" mergecellsfixedrows="bycolrec" rowsep="|" style="left:430px; top:80px; width:211px; height:676px; ">
- <col ref="dialseatflag"/>
- <col ref="hngnm1"/>
- <col ref="hngnm2"/>
- <col ref="hngnm3"/>
- <col ref="dialareaflag" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- </datagrid>
- <datagrid id="grd_dialpatlist4" nodeset="/root/main/dialareapatinfo/dialpatlist4" class="datagrid2" caption="자리^Shift1^Shift2^shift3^구역^기관코드" colsep="^" colwidth="28, 55, 55, 55, 33, 36" mergecellsfixedrows="bycolrec" rowsep="|" style="left:645px; top:80px; width:211px; height:676px; ">
- <col ref="dialseatflag"/>
- <col ref="hngnm1"/>
- <col ref="hngnm2"/>
- <col ref="hngnm3"/>
- <col ref="dialareaflag" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- </datagrid>
- <datagrid id="grd_dialpatlist5" nodeset="/root/main/dialareapatinfo/dialpatlist5" class="datagrid2" caption="자리^Shift1^Shift2^shift3^구역^기관코드" colsep="^" colwidth="28, 55, 55, 55, 33, 36" mergecellsfixedrows="bycolrec" rowsep="|" style="left:860px; top:80px; width:211px; height:676px; ">
- <col ref="dialseatflag"/>
- <col ref="hngnm1"/>
- <col ref="hngnm2"/>
- <col ref="hngnm3"/>
- <col ref="dialareaflag" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|