123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- <?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>DCC 예약 bed생성</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <init>
- <comcd/>
- </init>
- <send>
- <auto/>
- <am/>
- <pm/>
- <grddata/>
- <opcnfmdd/>
- <option/>
- <useflag/>
- </send>
- <target>
- <list/>
- </target>
- <main>
- <list>
- <dccbedlist>
- <opdate/>
- <dw/>
- <ambed/>
- <pmbed/>
- <sumbed/>
- <instcd/>
- </dccbedlist>
- </list>
- </main>
- <temp>
- </temp>
- <prcpnm/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- model.setValue("/root/send/option", "popup");
- submit("TRMNP06401");
- var nodeCnt = getNodesetCount("/root/main/list/dccbedlist");
-
- model.refresh();
- ]]>
- </script>
- <submission id="TXMNP06401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRMNP06401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../emr/medirecweb/js/SMMMR02100.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="325" pageheight="280" guideline="2,548;1,317;2,280;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption3" class="tit_2" style="left:5px; top:25px; width:120px; height:13px; ">예약 생성</caption>
- <caption id="caption8" class="tit_1" style="left:5px; top:5px; width:135px; height:14px; ">DCC 예약 bed생성</caption>
- <button id="btn_confirm" class="btn5_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:263px; top:20px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i = 1; i < grd_dcclist.rows; i++){
- var ambed = model.getValue("/root/main/list/dccbedlist[" + i + "]/ambed");
- var pmbed = model.getValue("/root/main/list/dccbedlist[" + i + "]/pmbed");
- var sumbed = model.getValue("/root/main/list/dccbedlist[" + i + "]/sumbed");
- var opdate = model.getValue("/root/main/list/dccbedlist[" + i + "]/opdate");
-
- if(ambed == ""){
- model.setValue("/root/main/list/dccbedlist[" + i + "]/ambed", "0");
- }
- if(pmbed == ""){
- model.setValue("/root/main/list/dccbedlist[" + i + "]/pmbed", "0");
- }
- if(sumbed == ""){
- model.setValue("/root/main/list/dccbedlist[" + i + "]/sumbed", "0");
- }
- grd_dcclist.rowStatus(i) = 1;
- }
-
- var grdData = grd_dcclist.getUpdateData();
-
- model.makeValue("/root/send/grddata", grdData);
- submit("TXMNP06401");
- submit("TRMNP06401");
- ]]>
- </script>
- </button>
- <caption id="caption2" class="cell_1" style="left:0px; top:46px; width:50px; height:20px; text-align:center; ">오전</caption>
- <caption id="caption4" class="cell_1" style="left:130px; top:46px; width:50px; height:20px; text-align:center; ">오후</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:40px; x2:305px; y2:40px; "/>
- <input id="ipt_ambed" ref="/root/send/am" style="left:52px; top:46px; width:55px; height:19px; "/>
- <input id="ipt_pmbed" ref="/root/send/pm" style="left:183px; top:46px; width:55px; height:19px; "/>
- <datagrid id="grd_dcclist" nodeset="/root/main/list/dccbedlist" caption="요일^요일^오전^오후^합계^instcd^useflag" colsep="^" colwidth="0, 80, 65, 65, 65, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:67px; width:305px; height:203px; ">
- <col ref="dccweekday" type="output" visibility="hidden" align="center"/>
- <col ref="weeknm" align="center"/>
- <col ref="ambed" type="input"/>
- <col ref="pmbed" type="input"/>
- <col ref="sumbed"/>
- <col ref="instcd"/>
- <col ref="useflag"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var currow = grd_dcclist.row;
- var ambed = model.getValue("/root/main/list/dccbedlist[" + currow + "]/ambed");
- var pmbed = model.getValue("/root/main/list/dccbedlist[" + currow + "]/pmbed");
- if (isNull(ambed) ) {
- ambed = 0;
- }
- if (isNull(pmbed) ) {
- pmbed = 0;
- }
- var sumbed = parseInt(ambed) + parseInt(pmbed);
- model.setValue("/root/main/list/dccbedlist[" + currow + "]/sumbed", sumbed);
- grd_dcclist.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="button1" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:241px; top:46px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>일괄적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var am = model.getValue("/root/send/am");
- var pm = model.getValue("/root/send/pm");
-
- for(var i = 1; i < grd_dcclist.rows; i++ ){
- if (!isNull(am)) {
- model.makeValue("/root/main/list/dccbedlist[" + i + "]/ambed", am);
- }
- if (!isNull(pm)) {
- model.makeValue("/root/main/list/dccbedlist[" + i + "]/pmbed", pm);
- }
- model.makeValue("/root/main/list/dccbedlist[" + i + "]/sumbed" , parseInt(model.getValue("/root/main/list/dccbedlist[" + i + "]/ambed"))+parseInt(model.getValue("/root/main/list/dccbedlist[" + i + "]/pmbed")));
- }
- model.makeValue("/root/send/am", "");
- model.makeValue("/root/send/pm", "");
- ipt_ambed.refresh();
- ipt_pmbed.refresh();
- grd_dcclist.gridToInstance();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|