123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>병동별상차림현황</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <data>
- <wardcd/>
- <wardnm/>
- <data1/>
- <data2/>
- <data3/>
- <data4/>
- <data5/>
- <data6/>
- <data7/>
- <data8/>
- <data9/>
- <data10/>
- <data11/>
- <data12/>
- <data13/>
- <data14/>
- <data15/>
- <data16/>
- <data17/>
- <data18/>
- <data19/>
- <data20/>
- </data>
- <printlist>
- <prcpdd/>
- <dietmeal/>
- <dietnm/>
- <w4A/>
- <w4B/>
- <w5A/>
- <w5B/>
- <w6A/>
- <w6B/>
- <w7A/>
- <w7B/>
- <w7C/>
- <w8A/>
- <w8B/>
- <w8C/>
- <w9A/>
- <w9B/>
- <w9C/>
- <we/>
- <wh/>
- <w3/>
- <w10A/>
- <w10B/>
- <w10C/>
- </printlist>
- </main>
- <main1>
- <titleinfo/>
- </main1>
- <send>
- <searchitem>
- <appdd/>
- <dietmeal/>
- </searchitem>
- </send>
- <temp/>
- <init>
- <basecode>
- <dietmeal>
- <A0055>
- <cdid/>
- <cdnm/>
- </A0055>
- </dietmeal>
- </basecode>
- </init>
- <rexprnt>
- <title>
- <item/>
- </title>
- <ward>
- <wardnm/>
- </ward>
- </rexprnt>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.removenode("/root/main1/titleinfo");
- submit("TRANT00803");
- var icnt = parseInt(getNodesetCount("/root/main1/titleinfo/title1")) + 1;
- var scaption = "병동코드^구분";
- var k = 0;
- for (var i = 1; i < icnt; i++){
- scaption = scaption + "^" + model.getValue("/root/main1/titleinfo[" + i + "]/title1");
- k = parseInt(k) + 1;
- }
- if (k < 20){
- for (var i = parseInt(k + 1); i < 21; i++){
- scaption = scaption + "^" + "";
- grd_data.colHidden(i + 2) = true;
- }
- }
- grd_data.caption = scaption;
- finit();
- //btn_search.disabled = !checkAuth("R");
- button1.disabled = !checkAuth("R");
- //btn_save.disabled = !checkAuth("X");
- //btn_excel.disabled = !checkAuth("P");
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function finit() {
- // 화면open시 공통코드 setting
- zbcfGetCodeList( new Array( "A0055" ), new Array( "/root/init/basecode/dietmeal" ) );
- model.resetInstanceNode("/root/main");
- model.resetInstanceNode("/root/send");
- model.removeNodeset("/root/main");
- //model.setFocus("ipt_pid");
- model.setValue("/root/send/searchitem/appdd", getCurrentDate());
- //화면open시 현재시간을 계산하여 끼니 자동setting
- //각 끼니별 2차 마감시간으로부터 2시간후까지는 이전끼니로 setting
- var tm = getCurrentTime();
- if ( tm.substr(0,4) <= 0830 ) { //조식 2차 마감시간은 06:30
- //if ( tm.substr(0,4) <= 0630 ) {
- model.setValue("/root/send/searchitem/dietmeal", "1");
- } else if ( (tm.substr(0,4) > 0830) && (tm.substr(0,4) <= 1330) ) { //중식 2차 마감시간은 11:30
- //} else if ( (tm.substr(0,4) > 0630) && (tm.substr(0,4) <= 1130) ) {
- model.setValue("/root/send/searchitem/dietmeal", "2");
- } else {
- model.setValue("/root/send/searchitem/dietmeal", "3");
- }
- model.refresh();
- //btn_search.dispatch("DOMActivate");
- button1.dispatch("DOMActivate");
- }
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRANT00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/main"/>
- <submission id="TRANT00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/main"/>
- <submission id="TRANT00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/main"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:149px; height:14px; ">병동별상차림현황</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:56px; width:140px; height:13px; ">병동별상차림현황</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:71px; x2:1194px; y2:71px; "/>
- <datagrid id="grd_data" nodeset="/root/main/data" caption="병동코드^구분^일반밥^선택밥^보호자밥^일반죽^선택죽^미음^소아밥^소아죽^산모밥^산모죽^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10" colsep="^" colwidth="10, 100, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:76px; width:1194px; height:667px; text-align:center; ">
- <col ref="wardcd" visibility="hidden"/>
- <col ref="wardnm"/>
- <col ref="data1"/>
- <col ref="data2"/>
- <col ref="data3"/>
- <col ref="data4"/>
- <col ref="data5"/>
- <col ref="data6"/>
- <col ref="data7"/>
- <col ref="data8"/>
- <col ref="data9"/>
- <col ref="data10"/>
- <col ref="data11"/>
- <col ref="data12"/>
- <col ref="data13"/>
- <col ref="data14"/>
- <col ref="data15"/>
- <col ref="data16"/>
- <col ref="data17"/>
- <col ref="data18"/>
- <col ref="data19"/>
- <col ref="data20"/>
- </datagrid>
- <button id="btn_excel" class="btn2_letter4" style="left:1130px; top:50px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
- grd_data.saveExcel(file);
- ]]>
- </script>
- </button>
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:41px; top:9px; width:64px; height:17px; ">일자 :</caption>
- <caption id="caption3" class="search_name" style="left:316px; top:9px; width:62px; height:17px; ">끼니 :</caption>
- <button id="btn_search" class="btn1_letter2" visibility="hidden" style="left:950px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRANT00801");
- //그리드 하단에 합계 구하기
- grd_data.addrow();
- model.setValue("/root/main/data["+grd_data.row+"]/"+ grd_data.colAttribute(2, "ref"), "계");
- var val = 0;
- for ( j = 3; j < grd_data.cols; j++) {
- var sum = 0;
- for ( i=1; i<grd_data.rows-1; i++) {
- val = model.getValue("/root/main/data["+ i +"]/"+ grd_data.colAttribute(j, "ref"));
- sum = parseInt(sum) + parseInt(val);
- }
- model.setValue("/root/main/data["+grd_data.row+"]/"+ grd_data.colAttribute(j, "ref"), sum);
- }
-
- //값이 0 인 컬럼 공백으로 표시
- // for ( j = 3; j < grd_data.cols; j++) {
- // for ( i=1; i<grd_data.rows-1; i++) {
- // if ( model.getValue("/root/main/data["+ i +"]/"+ grd_data.colAttribute(j, "ref"))=="0" ) {
- // model.setValue("/root/main/data["+grd_data.row+"]/"+ grd_data.colAttribute(j, "ref"), "");
- // }
- // }
- // }
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
- <input id="ipt_appdd" ref="/root/send/searchitem/appdd" class="input_s_essential" inputtype="date" style="left:105px; top:8px; width:100px; height:19px; "/>
- <button id="btn_beforedd" class="icon_pre" style="left:208px; top:10px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var dd = model.getValue("/root/send/searchitem/appdd");
- dd = dd.toDate().getAddDate(-1, "D");
- dd = dd.getDateFormat();
- model.setValue("/root/send/searchitem/appdd", dd);
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_nextdd" class="icon_next" style="left:221px; top:10px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var dd = model.getValue("/root/send/searchitem/appdd");
- dd = dd.toDate().getAddDate(1, "D");
- dd = dd.getDateFormat();
- model.setValue("/root/send/searchitem/appdd", dd);
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="rdo_dietmeal" ref="/root/send/searchitem/dietmeal" class="radio_search" appearance="full" cellspacing="5" cols="3" rows="1" overflow="visible" style="left:380px; top:9px; width:150px; height:20px; ">
- <choices>
- <item>
- <label>조식</label>
- <value>1</value>
- </item>
- <item>
- <label>중식</label>
- <value>2</value>
- </item>
- <item>
- <label>석식</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <button id="button1" class="btn1_letter2" style="left:1120px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRANT00802");
- //그리드 하단에 합계 구하기
- grd_data.addrow();
- model.setValue("/root/main/data["+grd_data.row+"]/"+ grd_data.colAttribute(2, "ref"), "계");
- var val = 0;
- for ( j = 3; j < grd_data.cols; j++) {
- var sum = 0;
- for ( i=1; i<grd_data.rows-1; i++) {
- val = model.getValue("/root/main/data["+ i +"]/"+ grd_data.colAttribute(j, "ref"));
- sum = parseInt(sum) + parseInt(val);
- }
- model.setValue("/root/main/data["+grd_data.row+"]/"+ grd_data.colAttribute(j, "ref"), sum);
- }
-
- //값이 0 인 컬럼 공백으로 표시
- // for ( j = 3; j < grd_data.cols; j++) {
- // for ( i=1; i<grd_data.rows-1; i++) {
- // if ( model.getValue("/root/main/data["+ i +"]/"+ grd_data.colAttribute(j, "ref"))=="0" ) {
- // model.setValue("/root/main/data["+grd_data.row+"]/"+ grd_data.colAttribute(j, "ref"), "");
- // }
- // }
- // }
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button8" class="btn3_letter4" disabled="true" style="left:0px; top:5px; width:80px; height:22px; ">
- <caption>식수통계</caption>
- </button>
- <button id="btn_print" class="btn3_letter2" visibility="hidden" style="left:285px; top:5px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPANT00801", "XMLSTR", "/root/main/printlist");
- //exeReportPreview("RPANT00802", "XMLSTR", "/root/main/printlist"); //B컨테이너 상차림현황 출력
- ]]>
- </script>
- </button>
- <button id="button2" class="btn3_letter2" style="left:95px; top:5px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // exeReportPreview("RPANT00802", "XMLSTR", "/root/main/printlist");
- exeReportPreview("RPANT00803", "XMLSTR", "/root/main/printlist");
-
- //exeReportPreview("RPANT00802", "XMLSTR", "/root/main/printlist"); //B컨테이너 상차림현황 출력
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|