123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167 |
- <?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>환자 급식 관리 현황</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <patmeal>
- <patmeallist>
- <fromdd/>
- <todd/>
- <dietcd/>
- <mm01/>
- <mm02/>
- <mm03/>
- <mm04/>
- <mm05/>
- <mm06/>
- <mm07/>
- <mm08/>
- <mm09/>
- <mm10/>
- <mm11/>
- <mm12/>
- <mdlsum/>
- <lastsum/>
- <difrate/>
- </patmeallist>
- </patmeal>
- <gridcaption>
- <mm1/>
- <mm2/>
- <mm3/>
- <mm4/>
- <mm5/>
- <mm6/>
- <mm7/>
- <mm8/>
- <mm9/>
- <mm10/>
- <mm11/>
- <mm12/>
- <lastyy/>
- </gridcaption>
- </main>
- <send>
- <data>
- <fromdd/>
- <todd/>
- <lastfromdd/>
- </data>
- </send>
- <init>
- </init>
- <hidden>
- </hidden>
- </root>
- </instance>
- <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="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- ipt_fromdd.value = getCurrentDate().substr(0, 6);
- ipt_todd.value = getCurrentDate().substr(0, 6);
- makeReportPreview(5,55,1170,700);
- ]]>
- </script>
- <submission id="TRANS00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/patmeal"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,750;" 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:800px; ">
- <group id="group1" style="left:5px; top:10px; width:1180px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1178px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">조회년월 :</caption>
- <line id="line13" class="line_4" style="x1:1095px; y1:7px; x2:1095px; y2:29px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1110px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/send/data/fromdd") == ""){
- messageBox("조회시작년월은", "I003");
- model.setFocus("ipt_fromdd");
- return;
- }
- if (model.getValue("/root/send/data/todd") == ""){
- messageBox("조회종료년월은", "I003");
- model.setFocus("ipt_todd");
- return;
- }
- if (isValidDateTime(model.getValue("/root/send/data/fromdd"), "YYYYMM") == false){
- messageBox("조회 시작년월의 형식이", "E016");
- model.setFocus("ipt_fromdd");
- return;
- }
- if (isValidDateTime(model.getValue("/root/send/data/todd"), "YYYYMM") == false){
- messageBox("조회 종료년월의 형식이", "E016");
- model.setFocus("ipt_todd");
- return;
- }
- if (model.getValue("/root/send/data/fromdd") > model.getValue("/root/send/data/todd")){
- messageBox("조회 시작년월은 종료년월 보다 클 수", "I004");
- model.setFocus("ipt_fromdd");
- return;
- }
-
- var fromdd = model.getValue("/root/send/data/fromdd");
- var fromdd2 = fromdd + "01";
- fromdd2 = fromdd2.toDate().getAddDate(-1,"Y").getDateFormat("YYYYMM");
- model.setValue("/root/send/data/lastfromdd", fromdd2);
-
- submit("TRANS00201");
-
- //그리드의 caption을 조회년월에 따라 가변적으로 바꿔주기
- model.resetInstanceNode("/root/main/gridcaption");
- var sdate = model.getValue("/root/send/data/fromdd");
- var sdate1 = parseInt(sdate.substr(0, 4))-1;
- var sdate2 = sdate + "01";
-
- //출력물의 caption setting
- var todd = model.getValue("/root/send/data/todd");
- for (var i = 1; i <= 12; i++) {
- if (sdate2.toDate().getAddDate(+(i-1),"M").getDateFormat("YYYYMM") <= todd) {
- model.setValue("/root/main/gridcaption[1]/mm" + i, sdate2.toDate().getAddDate(+(i-1),"M").getDateFormat("YYYY/MM"));
- }
- }
- model.setValue("/root/main/gridcaption[1]/lastyy", sdate1);
- exeReportPreview("RPANS00201", "XMLSTR", "", "", "false","","","","","false", "", "");
- ]]>
- </script>
- </button>
- <input id="ipt_fromdd" ref="/root/send/data/fromdd" format="yyyy-mm" style="left:110px; top:10px; width:75px; height:19px; text-align:center; "/>
- <input id="ipt_todd" ref="/root/send/data/todd" format="yyyy-mm" style="left:205px; top:9px; width:75px; height:19px; text-align:center; "/>
- <caption id="caption11" class="search_n_b" style="left:190px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- </group>
- <line id="line1" class="line_1" style="x1:5px; y1:50px; x2:1185px; y2:50px; "/>
- <datagrid id="grd_patmeal" nodeset="/root/main/patmeal/patmeallist" visibility="hidden" caption="구분^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^합계^비고^비고|구분^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^합계^caption^증감비(%)" colsep="^" colwidth="130, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 100, 104, 104" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" navindex="5" style="left:5px; top:55px; width:1180px; height:705px; text-align:center; ">
- <col ref="dietcd"/>
- <col ref="mm01"/>
- <col ref="mm02"/>
- <col ref="mm03"/>
- <col ref="mm04"/>
- <col ref="mm05"/>
- <col ref="mm06"/>
- <col ref="mm07"/>
- <col ref="mm08"/>
- <col ref="mm09"/>
- <col ref="mm10"/>
- <col ref="mm11"/>
- <col ref="mm12"/>
- <col ref="mdlsum"/>
- <col ref="lastsum"/>
- <col ref="difrate"/>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|