123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224 |
- <?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>
- <list>
- <item>
- <dietlrgcd/>
- <dietmdlcd/>
- <dietsmlcd/>
- <dietcd/>
- <dietnm/>
- <breakmeal/>
- <lunchmeal/>
- <dinnermeal/>
- <dietsum/>
- </item>
- </list>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <dietmdlcd/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- </send>
- <init>
- <basecode>
- <dietlrg>
- <A0046>
- <cdid/>
- <cdnm/>
- </A0046>
- </dietlrg>
- <dietsml>
- <A0048>
- <cdid/>
- <cdnm/>
- </A0048>
- </dietsml>
- <inputcond>
- <A0053>
- <cdid/>
- <cdnm/>
- </A0053>
- </inputcond>
- <endflag>
- <A0054>
- <cdid/>
- <cdnm/>
- </A0054>
- </endflag>
- <mealflag>
- <A0055>
- <cdid/>
- <cdnm/>
- </A0055>
- </mealflag>
- </basecode>
- <code>
- <dietcls>
- <lrgcd/>
- <lrgnm/>
- <mdlcd/>
- <mdlnm/>
- </dietcls>
- <etcdietcls>
- <cdid/>
- <cdnm/>
- </etcdietcls>
- </code>
- <ward>
- <dept>
- <deptcd/>
- <depthngnm/>
- </dept>
- </ward>
- </init>
- <hidden/>
- </root>
- </instance>
- <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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- aezfSetSuppDeptcd(); // globalinstance 셋팅하기
- zbcfGetCodeList( new Array( "A0046", "A0048", "A0053", "A0054", "A0055" ), new Array( "/root/init/basecode/dietlrg", "/root/init/basecode/dietsml", "/root/init/basecode/inputcond", "/root/init/basecode/endflag", "/root/init/basecode/mealflag" ) );
- submit("TRANB00203"); // 식사/기타 분류코드 조회
- astfAddCombo("/root/init/code","dietcls","mdlcd,mdlnm",",");
- //var fromdd = getCurrentDate().toDate().getAddDate(-1, "D").getDateFormat("YYYYMMDD");
- //var todd = getCurrentDate().substr(0,6) + fromdd.toDate().getMonthDay();
- var fromdd = getCurrentDate(); // 적용일자 현재일자 셋팅
- var todd = getCurrentDate(); // 적용일자 현재일자 셋팅
-
- model.removenode("/root/main/list/item");
- model.setValue("/root/send/fromdd", fromdd);
- model.setValue("/root/send/todd", todd);
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRANB00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/init/code"/>
- <submission id="TRANS00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" 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:200px; 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:50px; width:200px; height:14px; ">중분류별 통계</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:1183px; y2:65px; "/>
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:30px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:7px; width:86px; height:17px; ">조회기간 :</caption>
- <line id="line13" class="line_4" style="x1:1110px; y1:4px; x2:1110px; y2:26px; "/>
- <button id="btn_sea" class="btn1_letter2" navindex="4" style="left:1120px; top:4px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/send/fromdd") == ""){
- messageBox("조회시작일자는", "I003");
- model.setFocus("ipt_fromdd");
- return;
- }
- if (model.getValue("/root/send/todd") == ""){
- messageBox("조회종료일자는", "I003");
- model.setFocus("ipt_todd");
- return;
- }
- if (isValidDateTime(model.getValue("/root/send/fromdd"), "YYYYMMDD") == false){
- messageBox("조회 시작일자의 형식이", "E016");
- model.setFocus("ipt_fromdd");
- return;
- }
- if (isValidDateTime(model.getValue("/root/send/todd"), "YYYYMMDD") == false){
- messageBox("조회 종료일자의 형식이", "E016");
- model.setFocus("ipt_todd");
- return;
- }
- if (model.getValue("/root/send/fromdd") > model.getValue("/root/send/todd")){
- messageBox("조회 시작일자는 종료일자 보다 클 수", "I004");
- model.setFocus("ipt_fromdd");
- return;
- }
-
- submit("TRANS00701");
- ]]>
- </script>
- </button>
- <input id="ipt_todd" ref="/root/send/todd" class="input_default" navindex="2" inputtype="date" style="left:207px; top:6px; width:85px; height:19px; "/>
- <caption id="caption5" class="search_no_b" style="left:192px; top:7px; width:12px; height:17px; ">~</caption>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_default" navindex="1" inputtype="date" style="left:106px; top:6px; width:85px; height:19px; "/>
- <caption id="caption3" class="search_name" visibility="visible" style="left:325px; top:7px; width:86px; height:17px; ">중분류 :</caption>
- <select1 id="combo1" ref="/root/send/dietmdlcd" visibility="visible" appearance="minimal" style="left:410px; top:6px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/code/dietcls">
- <label ref="mdlnm"/>
- <value ref="mdlcd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <button id="btn_excsave" class="btn2_letter4" style="left:1120px; top:45px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- grd_mealprcpcd.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_mealprcpcd" nodeset="/root/main/list/item" class="datagrid2" caption="대분류^중분류^소분류^식사코드^식사명^조식^중식^석식^합계" colsep="^" colwidth="70, 100, 70, 100, 200, 100, 100, 100, 100" frozencols="7" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:71px; width:1183px; height:624px; ">
- <col disabled="true" ref="dietlrgcd" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/basecode/dietlrg/A0046">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="dietmdlcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/code/dietcls">
- <label ref="mdlnm"/>
- <value ref="mdlcd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="dietsmlcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/basecode/dietsml/A0048">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col autonext="false" disabled="true" ref="dietcd" style="text-align:center; "/>
- <col disabled="true" ref="dietnm" style="text-align:center; "/>
- <col disabled="true" ref="breakmeal" style="text-align:center; "/>
- <col disabled="true" ref="lunchmeal" style="text-align:center; "/>
- <col disabled="true" ref="dinnermeal" style="text-align:center; "/>
- <col disabled="true" ref="dietsum" style="text-align:center; "/>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|