123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247 |
- <?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>
- <bmealstatslist>
- <dietnm2/>
- <clinccmtcnts/>
- <prcpdelivefact/>
- <tfdtlcd/>
- <remark/>
- <room1/>
- <dietnm1/>
- <bfremfactcd/>
- <bfremfactnm/>
- <room2/>
- <choidietyn/>
- <iptpsn/>
- <iptdt/>
- <prcpdd/>
- <dietmeal/>
- <calr/>
- <mealcnt/>
- <procermealyn/>
- <dietcd/>
- <dietmdlnm/>
- <dietsmlnm/>
- <calrunit/>
- <remark1/>
- <remark2/>
- <remark3/>
- <dietnm/>
- <bmealdrnknm/>
- <prntprcpdelivefact/>
- <dietcd/>
- <bmealdrnknm/>
- <bmealdrnkcnt/>
- <dietnm/>
- </bmealstatslist>
- </main>
- <main2>
- <magamlist>
- <magaminfo>
- <magamyn/>
- </magaminfo>
- </magamlist>
- </main2>
- <send>
- <searchitem>
- <dietdd/>
- <mealflag/>
- <endflag/>
- <nmcardflag/>
- <ward/>
- <nutrward/>
- <updtyn/>
- <updtflag/>
- <instcd/>
- <userid/>
- <endyn/>
- <endmsg/>
- <pid/>
- <hngnm/>
- </searchitem>
- </send>
- <temp>
- <ret>
- <retmsg/>
- </ret>
- </temp>
- <init>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- finit();
- btn_search.disabled = !checkAuth("R");
- model.setValue("/root/send/searchitem/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/searchitem/userid", getUserInfo("userid"));
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //초기화
- function finit() {
- //화면open시 공통코드 setting
- model.removeNodeset("/root/main/data");
- model.setValue("/root/send/searchitem/dietdd", getCurrentDate());
-
- //화면open시 현재시간을 계산하여 끼니와 마감구분 자동setting
- //각 끼니별 2차 마감시간으로부터 2시간후까지는 이전끼니로 setting
- var tm = getCurrentTime();
- if ( tm.substr(0,4) <= 0830 ) { //조식 2차 마감시간은 06:30
- model.setValue("/root/send/searchitem/mealflag", "1");
- if ( tm.substr(0,4) <= 0530 ) {
- model.setValue("/root/send/searchitem/endflag", "1");
- } else {
- model.setValue("/root/send/searchitem/endflag", "2");
- }
- } else if ( (tm.substr(0,4) > 0830) && (tm.substr(0,4) <= 1330) ) { //중식 2차 마감시간은 11:30
- model.setValue("/root/send/searchitem/mealflag", "2");
- if ( tm.substr(0,4) <= 1030 ) {
- model.setValue("/root/send/searchitem/endflag", "1");
- } else {
- model.setValue("/root/send/searchitem/endflag", "2");
- }
- } else if ( (tm.substr(0,4) > 1330) ) {
- model.setValue("/root/send/searchitem/mealflag", "3");
- if ( tm.substr(0,4) <= 1600 ) {
- model.setValue("/root/send/searchitem/endflag", "1");
- } else {
- model.setValue("/root/send/searchitem/endflag", "2");
- }
- }
-
- model.refresh();
- }
-
- ]]>
- </script>
- <submission id="TRANT00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/main2/magamlist"/>
- <bind id="bind_ward" ref="/root/main/data/ward" readonly="../ward!=''"/>
- <submission id="TRANT00251" 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/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="../../../ast/commonweb/js/AST.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1193;1,0;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:15px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:190px; height:13px; ">멸균식 간식 및 음료수 통계</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:15px; width:1195px; height:745px; ">
- <group id="group2" style="left:0px; top:10px; width:1195px; height:55px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1194px; height:32px; background-color:#fffbf2; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:17px; width:86px; height:17px; ">일자 :</caption>
- <input id="ipt_dietdd" ref="/root/send/searchitem/dietdd" class="input_s_essential" inputtype="date" style="left:79px; top:16px; width:100px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1118px; top:15px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //조회시점이 마감시간 전인지 마감시간 후인지 체크
- submit("TRANT00103");
- var tm = getCurrentTime();
- var dd = model.getValue("/root/send/searchitem/dietdd");
- var mealflag = model.getValue("/root/send/searchitem/mealflag"); //끼니
- var endflag = model.getValue("/root/send/searchitem/endflag"); //마감구분
- if (model.getValue("/root/main2/magamlist/magaminfo/magamyn") == "N"){
- //마감전 데이터임.
- model.setValue("/root/send/searchitem/endyn", "N");
- model.setValue("/root/send/searchitem/endmsg", "식사마감이 완료되지 않았습니다.");
- } else {
- //마감후 데이터임.
- model.setValue("/root/send/searchitem/endyn", "Y");
- model.setValue("/root/send/searchitem/endmsg", "마감완료된 식사입니다.");
- }
-
- if ( model.getValue("/root/send/searchitem/ward") == "" ) {
- model.setValue("/root/send/searchitem/ward", "-");
- }
-
- submit("TRANT00251");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line1" style="x1:1099px; y1:15px; x2:1099px; y2:37px; "/>
- <select1 id="rdo_meal" ref="/root/send/searchitem/mealflag" class="radio_search" appearance="full" cellspacing="5" cols="3" rows="1" overflow="visible" style="left:355px; top:16px; 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>
- <caption id="caption5" class="search_name" style="left:265px; top:17px; width:91px; height:17px; ">끼니구분 :</caption>
- <button id="btn_before" class="icon_pre" style="left:183px; top:18px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var dd = model.getValue("/root/send/searchitem/dietdd");
- dd = dd.toDate().getAddDate(-1, "D");
- dd = dd.getDateFormat();
- model.setValue("/root/send/searchitem/dietdd", dd);
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button1" class="icon_next" style="left:196px; top:18px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var dd = model.getValue("/root/send/searchitem/dietdd");
- dd = dd.toDate().getAddDate(1, "D");
- dd = dd.getDateFormat();
- model.setValue("/root/send/searchitem/dietdd", dd);
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_excel" class="btn2_letter2" style="left:1146px; top:67px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( grd_data.rows-1 > 0 ) {
- var filename = window.fileDialog("save", ",", false, "멸균식간식음료수통계", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (filename != "") {
- grd_data.saveExcel(filename, "grd_data", true, false, "", "", "");
- }
- } else {
- messageBox("엑셀로 저장할 데이터가", "I004")
- return;
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_data" nodeset="/root/main/bmealstatslist" caption="입력일시^식사코드^식사명^간식 및 음료수명^건수" colsep="^" colwidth="110, 100, 210, 220, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:93px; width:1195px; height:601px; text-align:center; ">
- <col ref="iptdt" visibility="hidden" format="yyyy-mm-dd hh:nn"/>
- <col ref="dietcd"/>
- <col ref="dietnm" style="text-align:left; "/>
- <col ref="bmealdrnknm" style="text-align:left; "/>
- <col ref="bmealdrnkcnt" style="text-align:center; "/>
- </datagrid>
- <line id="line5" class="line_1" style="x1:0px; y1:93px; x2:1195px; y2:93px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|