123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMANB00700_예외식품관리
- * 설 명 : 영양 예외식품관리
- * 설 계 자 : 최예원
- * 작 성 자 : 최예원
- * 작 성 일 : 2011.02.01
- * 수정이력 : 2011.02.01
- * 기 타 :
- -->
- <?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>
- <etcclsdetl>
- <data>
- <lrgcd/>
- <mdlcd/>
- <smlcd/>
- <smlcdnm/>
- <detlclscd/>
- <detlclsnm/>
- <etcclscd/>
- <useyn/>
- <sortseq/>
- </data>
- </etcclsdetl>
- <calenltotist>
- <calendinfo>
- <appdd/>
- <totfoodqty/>
- </calendinfo>
- </calenltotist>
- <savedata>
- <item/>
- </savedata>
- </main>
- <init>
- <calenlist>
- <calendinfo/>
- </calenlist>
- </init>
- <hidden>
- <calendar>
- <month/>
- <year/>
- <weeklist>
- <list>
- <mode/>
- <foodcd/>
- </list>
- </weeklist>
- </calendar>
- <grdcellcolor>
- <calrow/>
- <calcol/>
- <bfcalrow/>
- <bfcalcol/>
- <color/>
- </grdcellcolor>
- </hidden>
- <temp/>
- <rexprnt>
- <benflist>
- </benflist>
- </rexprnt>
- <send>
- <srchtodd/>
- <srchfromdd/>
- <searchitem2>
- <lrgcd/>
- <mdlcd/>
- </searchitem2>
- <srchfoodcd/>
- <srchtotalqty/>
- <srchmenuflag/>
- <rsrvdd/>
- </send>
- </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/dateHelper.js"/>
- <script type="javascript" src="../../../ast/tissuebankbaseweb/js/tissuebankcombolist.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var curDate = getCurrentDate().toDate().getDateFormat('YYYYMM');
-
- // initCalendar(curDate);
- // 현재일자 색상 표시
- // setCurrentDate(grd_calendar);
-
- rdo_menuflag.select(0);
-
- model.setValue("/root/send/searchitem2/lrgcd", "ET");
- model.setValue("/root/send/searchitem2/mdlcd", "ET00");
- submit("TRANB00211");
- model.refresh();
- ]]>
- </script>
- <submission id="TRAVB00001"/>
- <submission id="TRANB00211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem2" resultref="/root/main/etcclsdetl"/>
- <submission id="TRANB00700" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/calenltotist"/>
- <submission id="TXANB00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/savedata/item" replace="instance" resultref="/root/temp"/>
- <submission id="TRAEA02012" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/calenlist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function initCalendar(curDate) {
-
- // var curDate = getCurrentDate().toDate();
- // alert("init 들어와서 ==>" + curDate );
- model.setValue("/root/hidden/calendar/year", curDate.substr(0,4) );
- model.setValue("/root/hidden/calendar/month", curDate.substr(4,2) );
-
- // 그리드 초기화
- model.removeNodeset("/root/hidden/calendar/weeklist/list");
-
- grd_calendar.rebuild();
-
- var dateObj = (curDate+"01").toDate();
- dateObj.setDate(1);
- var startDay = dateObj.getDay();
- var days = dateObj.getMonthDay();
-
- var rows = Math.ceil( ( startDay + days ) / 7 );
- for( var i = 0; i < rows; i++ )
- grd_calendar.addRow(false);
-
- grd_calendar.rebuild();
-
- var rowIndex = grd_calendar.fixedRows;
- var colIndex = startDay;
- for( var i = 1; i <= days; i++ ) {
- grd_calendar.valueMatrix(rowIndex, colIndex) = i;
- grd_calendar.valueMatrix(rowIndex, colIndex + 7) = "0.0";
- colIndex++;
- if( colIndex == 7 ) {
- colIndex = 0;
- rowIndex++;
- }
- }
-
- fCalendar();
- }
-
- function fCalendar(){
- if ( submit("TRANB00700") ){
- var cnt = getNodesetCount("/root/main/calenltotist/calendinfo");
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate();
-
- var startDay = isDate.getDay();
- for (var i = 1; i <= cnt; i++) {
- var dd = model.getValue("/root/main/calenltotist/calendinfo[" + i + "]/appdd");
-
- var colidx = dd.toDate().getDay();
- var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
- // alert("DD >" + dd + " ==colidx >" + colidx + " ==rowidx > " + rowidx + " == qty > " + model.getValue("/root/main/calenlist/calendinfo[" + i + "]/totfoodqty") );
- if( grd_calendar.col < 7 ){
- grd_calendar.valueMatrix(rowidx, colidx + 7 ) = model.getValue("/root/main/calenltotist/calendinfo[" + i + "]/totfoodqty");
- }else{
- grd_calendar.valueMatrix(rowidx, colidx ) = model.getValue("/root/main/calenltotist/calendinfo[" + i + "]/totfoodqty");
- }
- }
- fCalendar2();
- }
- }
-
- function fCalendar2(){
-
- if( model.getValue("/root/hidden/calendar/year") == "" || model.getValue("/root/hidden/calendar/month") =="" ){
- model.setValue("/root/hidden/calendar/year", getCurrentDate().toDate().getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", getCurrentDate().toDate().getDateFormat('MM'));
- }
-
- model.setValue("/root/send/rsrvdd", model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month") );
-
- if (submit("TRAEA02012")){
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate();
- var startDay = isDate.getDay();
- for (var i = 1; i < datagrid3.rows; i++) {
- var dd = model.getValue("/root/init/calenlist/calendinfo[" + i + "]/basedd");
-
- var colidx = dd.toDate().getDay();
- var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
- // alert("DD >" + dd + " ==colidx >" + colidx + " ==rowidx > " + rowidx + " ==basedd> " + model.getValue("/root/init/calenlist/calendinfo[" + i + "]/basedd"));
- if (model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag") == "8"){
- grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "red";
- }else if (model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag") == "4"){
- grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "blue";
- }else{
- grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "black";
- }
- }
- }
- grd_calendar.refresh();
- }
-
- /* @group : 통합예약관리
- * @ver : 2007.08.10
- * @by : 임헤정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 오늘날짜 달력에 표시
- */
-
- function setCurrentDate() {
-
- var curDate = getCurrentDate().substr(6,2); //오늘날짜
- var curWeek = getCurrentDate().toDate().getDayOfWeek("E").toLowerCase(); //오늘요일
- if(curDate <10) {
- curDate= curDate.substr(1,1);
- }
-
- if(curWeek == "sun")
- model.setValue("/root/hidden/grdcellcolor/calcol",0);
- if(curWeek == "mon")
- model.setValue("/root/hidden/grdcellcolor/calcol",1);
- if(curWeek == "tue")
- model.setValue("/root/hidden/grdcellcolor/calcol",2);
- if(curWeek == "wed")
- model.setValue("/root/hidden/grdcellcolor/calcol",3);
- if(curWeek == "thu")
- model.setValue("/root/hidden/grdcellcolor/calcol",4);
- if(curWeek == "fri")
- model.setValue("/root/hidden/grdcellcolor/calcol",5);
- if(curWeek == "sat")
- model.setValue("/root/hidden/grdcellcolor/calcol",6);
-
- for(var i = 0 ; i <grd_calendar.rows; i++ ) {
- if(model.getValue("/root/hidden/calendar/weeklist/list["+i+"]/"+curWeek) ==curDate) {
- model.setValue("/root/hidden/grdcellcolor/calrow",i);
-
- }
- }
-
- setCellColor(grd_calendar);
- }
-
- /* @group : 통합예약관리
- * @ver : 2007.08.09
- * @by : 임헤정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 선택날짜 색 주기
- */
-
- function setCalendar(dateObj) {
- // 그리드 초기화
- model.removeNodeset("/root/hidden/calendar/weeklist/list");
- /// model.removeNodeset("/root/init/curerprescondlist/rsrvcalendar");
-
- grd_calendar.refresh();
-
- dateObj.setDate(1);
- var startDay = dateObj.getDay();
- var days = dateObj.getMonthDay();
-
- var rows = Math.ceil( ( startDay + days ) / 7 );
- /*
- for( var i = 0; i < rows; i++ )
- grd_calendar.addRow(false);
-
- grd_calendar.rebuild();
- */
- if (rows != grd_calendar.rows - 1){
- model.removeNodeset("/root/hidden/calendar/weeklist/list");
- for( var i = 0; i < rows; i++ ){
- grd_calendar.addRow(false);
- }
- }else{
- model.setValue("/root/hidden/calendar/weeklist/list", "");
- }
- var rowIndex = grd_calendar.fixedRows;
- var colIndex = startDay;
- for( var i = 1; i <= days; i++ ) {
- grd_calendar.valueMatrix(rowIndex, colIndex) = i;
- grd_calendar.valueMatrix(rowIndex, colIndex + 7) = "0.0";
- colIndex++;
- if( colIndex == 7 ) {
- colIndex = 0;
- rowIndex++;
- }
- }
- fCalendar();
- }
-
- /* @group : 통합예약관리
- * @ver : 2007.08.09
- * @by : 임헤정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 선택날짜 색 주기
- */
-
- function setCellColor(gridObj) {
-
- var calRow = 0; //현재선택
- var calCol = 0; //현재선택
- var bfcalRow = 0; //전에 선택
- var bfcalCol = 0; //전에 선택
-
- var white = 1; //#ffffff
- var green = 2; //#c4e693
-
-
- calRow = Number(model.getValue("/root/hidden/grdcellcolor/calrow"));
- calCol = Number(model.getValue("/root/hidden/grdcellcolor/calcol"));
-
- bfcalRow = Number(model.getValue("/root/hidden/grdcellcolor/bfcalrow"));
- bfcalCol = Number(model.getValue("/root/hidden/grdcellcolor/bfcalcol"));
-
-
- // 1. 원래 색으로 돌려놓기
- if(model.getValue("/root/hidden/grdcellcolor/color") == "1" ) {
-
- gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
-
- if( bfcalCol < 7 )
- bfcalCol += 7;
- else
- bfcalCol -= 7;
-
- gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
- }
- else if (model.getValue("/root/hidden/grdcellcolor/color") == "2" ) {
-
- gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
-
- if( bfcalCol < 7 )
- bfcalCol += 7;
- else
- bfcalCol -= 7;
-
- gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
- }
-
-
- // 2. bf 인스턴스에 선택한 원래 셀 담아두기
-
- if(gridObj.cellStyle("background-color", calRow, calCol) == "white" ) {
-
- model.setValue("/root/hidden/grdcellcolor/color", "1");
- }
- if(gridObj.cellStyle("background-color", calRow, calCol) == "#c4e693" ) {
-
- model.setValue("/root/hidden/grdcellcolor/color", "2");
- }
- model.setValue("/root/hidden/grdcellcolor/bfcalrow",calRow);
- model.setValue("/root/hidden/grdcellcolor/bfcalcol",calCol);
- //alert("인스턴스 : "+model.getValue("/root/hidden/grdcellcolor/color"));
-
- // 3. 선택한 셀에 보라색 주기
-
-
- // gridObj.rebuildStyle();
-
- gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
-
- if( calCol < 7 )
- calCol += 7;
- else
- calCol -= 7;
-
- gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
-
- // fCalendar2();
- }
-
- /* @group : 통합예약
- * @ver : 2007.08.07
- * @by : 임혜정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 달력 월버튼 이벤트
- */
-
- function fGetCalendar(arg)
- {
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- if(model.getValue("/root/hidden/calendar/month") < arg) {
- var num = arg- isMonth ;
- var isDate = (isYear+isMonth+1).toDate().getAddDate(+num,'M');
- }
-
- if(model.getValue("/root/hidden/calendar/month") > arg) {
- var num = isMonth - arg ;
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-num,'M');
- }
-
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
- setCalendar(isDate);
- model.setValue("/root/send/srchtotalqty" , "");
- dtg_etcdet.dispatch("onclick");
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="877" pageheight="700" guideline="1,1194;2,510;1,861;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:795px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:210px; height:14px; ">예외 품목 등록</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:58px; width:855px; height:612px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:5px; width:232px; height:13px; ">예외 품목 리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:21px; x2:400px; y2:21px; "/>
- <datagrid id="dtg_etcdet" nodeset="/root/main/etcclsdetl/data" scroll="auto" caption="식 품^식 품^입고단위" colsep="^" colwidth="92, 195, 75" dataheight="23" defaultrows="2" ellipsis="true" explorerbar="sortmove" focuscolor="#b9e5fb" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:28px; width:400px; height:577px; text-align:center; ">
- <col ref="smlcd" type="output"/>
- <col ref="smlcdnm" type="output" style="text-align:left; "/>
- <col ref="detlclsnm" type="output"/>
- <col ref="lrgcd" visibility="hidden"/>
- <col ref="mdlcd" visibility="hidden"/>
- <col ref="detlclscd" visibility="hidden"/>
- <col ref="etcclscd" visibility="hidden"/>
- <col ref="useyn" visibility="hidden"/>
- <col ref="sortseq" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- dtg_etcdet.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(dtg_etcdet.rows > 1){
- model.removeNodeset("/root/main/calenlist/calendinfo");
- model.resetInstanceNode("/root/hidden/calendar/weeklist/list");
-
- var cnt = getNodesetCount("/root/main/etcclsdetl/data");
-
- var curDate = model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month");
- model.setValue("/root/send/srchfoodcd", model.getValue("/root/main/etcclsdetl/data[" + dtg_etcdet.row + "]/smlcd"));
- model.setValue("/root/send/srchfromdd", curDate );
-
- initCalendar(curDate);
- setCurrentDate(grd_calendar);
- }
- model.setValue("/root/send/srchtotalqty" , "");
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <group id="group2" scroll="auto" style="left:405px; top:25px; width:447px; height:70px; ">
- <shape id="rectangle2" class="calendar_header" appearance="rectangle" style="left:0px; top:3px; width:445px; height:65px; "/>
- <button id="button7" class="icon_month" style="left:45px; top:32px; width:27px; height:27px; ">
- <caption>1</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "01") {
- fGetCalendar("01");
- }
- ]]>
- </script>
- </button>
- <button id="button8" class="icon_month" style="left:75px; top:32px; width:27px; height:27px; ">
- <caption>2</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "02") {
- fGetCalendar("02");
- }
- ]]>
- </script>
- </button>
- <button id="button9" class="icon_month" style="left:105px; top:32px; width:27px; height:27px; ">
- <caption>3</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "03") {
- fGetCalendar("03");
- }
- ]]>
- </script>
- </button>
- <button id="button10" class="icon_month" style="left:135px; top:32px; width:27px; height:27px; ">
- <caption>4</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "04") {
- fGetCalendar("04");
- }
- ]]>
- </script>
- </button>
- <button id="button11" class="icon_month" style="left:165px; top:32px; width:27px; height:27px; ">
- <caption>5</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "05") {
- fGetCalendar("05");
- }
- ]]>
- </script>
- </button>
- <button id="button12" class="icon_month" style="left:195px; top:32px; width:27px; height:27px; ">
- <caption>6</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "06") {
- fGetCalendar("06");
- }
- ]]>
- </script>
- </button>
- <button id="button13" class="icon_month" style="left:225px; top:32px; width:27px; height:27px; ">
- <caption>7</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "07") {
- fGetCalendar("07");
- }
- ]]>
- </script>
- </button>
- <button id="button14" class="icon_month" style="left:255px; top:32px; width:27px; height:27px; ">
- <caption>8</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "08") {
- fGetCalendar("08");
- }
- ]]>
- </script>
- </button>
- <button id="button18" class="icon_month" style="left:285px; top:32px; width:27px; height:27px; ">
- <caption>9</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "09") {
- fGetCalendar("09");
- }
- ]]>
- </script>
- </button>
- <button id="button19" class="icon_month" style="left:315px; top:32px; width:27px; height:27px; ">
- <caption>10</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "10") {
- fGetCalendar("10");
- }
- ]]>
- </script>
- </button>
- <button id="button20" class="icon_month" style="left:345px; top:32px; width:27px; height:27px; ">
- <caption>11</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "11") {
- fGetCalendar("11");
- }
- ]]>
- </script>
- </button>
- <button id="button21" class="icon_month" style="left:375px; top:32px; width:27px; height:27px; ">
- <caption>12</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "12") {
- fGetCalendar("12");
- }
- ]]>
- </script>
- </button>
- <output id="opt_month" ref="/root/hidden/calendar/month" class="calendar_output" style="left:234px; top:9px; width:20px; height:19px; "/>
- <caption id="caption24" class="calendar_output" style="left:212px; top:9px; width:20px; height:19px; ">년</caption>
- <caption id="caption25" class="calendar_output" style="left:254px; top:9px; width:20px; height:19px; ">월</caption>
- <button id="button31" class="icon_next_year" style="left:304px; top:12px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_next_y.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
-
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
-
-
- setCalendar(isDate);
- // getCurerPresCond();
- ]]>
- </script>
- </button>
- <button id="button33" class="icon_pre_month" visibility="hidden" style="left:155px; top:12px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_pre_m.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
-
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
-
- setCalendar(isDate);
- // getCurerPresCond();
- ]]>
- </script>
- </button>
- <output id="opt_year" ref="/root/hidden/calendar/year" class="calendar_output" style="left:182px; top:9px; width:30px; height:19px; "/>
- <button id="button35" class="icon_next_month" visibility="hidden" style="left:280px; top:12px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_next_m.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
-
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
-
- setCalendar(isDate);
- // getCurerPresCond();
- ]]>
- </script>
- </button>
- <button id="button36" class="icon_pre_year" style="left:132px; top:12px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_pre_y.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
-
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
-
- setCalendar(isDate);
- // getCurerPresCond();
- ]]>
- </script>
- </button>
- </group>
- <multilinegrid id="grd_calendar" nodeset="/root/hidden/calendar/weeklist/list" class="gridcalendar" autoresize="true" caption="일^월^화^수^목^금^토" colsep="^" colwidth="63, 63, 63, 63, 63, 63, 63" dataheight="20" extendlastcol="noscroll" focuscolor="transparent" rowsep="|" mergecellsfixedrows="bycolrec" style="left:405px; top:95px; width:444px; height:283px; ">
- <row>
- <col class="color_sun" ref="sun" style="border-bottom-width:0px; "/>
- <col ref="mon" style="border-bottom-width:0px; "/>
- <col ref="tue" style="border-bottom-width:0px; "/>
- <col ref="wed" style="border-bottom-width:0px; "/>
- <col ref="thu" style="border-bottom-width:0px; "/>
- <col ref="fri" style="border-bottom-width:0px; "/>
- <col class="color_sat" ref="sat" style="border-bottom-width:0px; "/>
- </row>
- <row>
- <col ref="sun_memo" type="input" style="border-top-width:0px; "/>
- <col ref="mon_memo" type="input" style="border-top-width:0px; "/>
- <col ref="tue_memo" type="input" style="border-top-width:0px; "/>
- <col ref="wed_memo" type="input" style="border-top-width:0px; "/>
- <col ref="thu_memo" type="input" style="border-top-width:0px; "/>
- <col ref="fri_memo" type="input" style="border-top-width:0px; "/>
- <col ref="sat_memo" type="input" style="border-top-width:0px; "/>
- </row>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if(grd_calendar.row != 0 ) {
- model.setValue("/root/hidden/grdcellcolor/calrow",grd_calendar.row);
- model.setValue("/root/hidden/grdcellcolor/calcol",grd_calendar.col);
- setCellColor(grd_calendar);
-
- var selqty = "";
- if( grd_calendar.col < 7 ){
- selqty = grd_calendar.valueMatrix( grd_calendar.row, grd_calendar.col+7 );
- }else{
- selqty = grd_calendar.valueMatrix( grd_calendar.row, grd_calendar.col );
- }
- model.setValue("/root/send/srchtotalqty", selqty );
- model.refresh();
- }
-
- ]]>
- </script>
- </multilinegrid>
- <line id="line2" class="line_1" style="x1:405px; y1:21px; x2:850px; y2:21px; "/>
- <caption id="caption2" class="tit_2" style="left:405px; top:5px; width:232px; height:13px; ">식품량</caption>
- <group id="grp_btn" style="left:410px; top:425px; width:390px; height:27px; ">
- <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ]]>
- </script>
- </button>
- </group>
- <input id="ipt_pid" ref="/root/send/srchtotalqty" class="input_search" navindex="1" visibility="hidden" style="left:695px; top:387px; width:92px; height:19px; "/>
- <caption id="caption7" class="tit_2" visibility="hidden" style="left:587px; top:389px; width:124px; height:13px; ">예외식품수량 :</caption>
- <button id="btn_save" class="btn4_letter2" style="left:790px; top:386px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/savedata/item");
- var appdd = model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month");
- var curdate = "";
- var curqty = "";
- var cnt = "";
- var idx = 1;
-
- for( var i = 1; i < grd_calendar.rows ; i++ ){
- for( var a = 0; a <= 6 ; a++ ){
- if( grd_calendar.valueMatrix( i, a ) != "" ){
- curdate = grd_calendar.valueMatrix( i, a );
- curqty = grd_calendar.valueMatrix( i, a + 7 );
-
- if( curdate < 10 ){
- curdate = "0" + curdate;
- }
-
- model.makeValue("/root/main/savedata/item[" + idx + "]/srchmenuflag", model.getValue("/root/send/srchmenuflag"));
- model.makeValue("/root/main/savedata/item[" + idx + "]/srchtotalqty", curqty );
- model.makeValue("/root/main/savedata/item[" + idx + "]/appdd", appdd + curdate );
- model.makeValue("/root/main/savedata/item[" + idx + "]/detlclsnm", model.getValue("/root/main/etcclsdetl/data[" + dtg_etcdet.row + "]/detlclsnm") );
- model.makeValue("/root/main/savedata/item[" + idx + "]/foodcd", model.getValue("/root/main/etcclsdetl/data[" + dtg_etcdet.row + "]/smlcd") );
- idx++;
-
-
- }
- }
- }
-
- submit("TXANB00701");
- initCalendar( (model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month") + "01") );
- setCellColor(grd_calendar);
- model.refresh();
-
- /* model.resetInstanceNode("/root/main/savedata/item");
- var appdd = model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month");
- var curdate = "";
- var cnt = getNodesetCount("/root/main/calenlist/calendinfo");
- // 적용일자 셋팅.
- if( grd_calendar.col > 6 ){
- curdate = grd_calendar.valueMatrix( grd_calendar.row, grd_calendar.col-7 );
- }else{
- curdate = grd_calendar.valueMatrix( grd_calendar.row, grd_calendar.col );
- }
- if( curdate != "" && curdate != null ){
- appdd = model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month");
-
- if( curdate < 10 ){
- appdd = appdd + "0" + curdate;
- }else{
- appdd = appdd + curdate;
- }
- model.setValue("/root/main/savedata/item/srchmenuflag", model.getValue("/root/send/srchmenuflag"));
- model.setValue("/root/main/savedata/item/srchtotalqty", model.getValue("/root/send/srchtotalqty"));
- model.setValue("/root/main/savedata/item/appdd", appdd );
- model.setValue("/root/main/savedata/item/detlclsnm", model.getValue("/root/main/etcclsdetl/data[" + dtg_etcdet.row + "]/detlclsnm") );
- model.setValue("/root/main/savedata/item/foodcd", model.getValue("/root/main/etcclsdetl/data[" + dtg_etcdet.row + "]/smlcd") );
-
- if( model.getValue("/root/main/savedata/item/foodcd") != "" ){
- submit("TXANB00701");
- initCalendar( (model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month") + "01") );
- setCellColor(grd_calendar);
- model.refresh();
- }else{
- messageBox("식품을","C002");
- }
- }else{
- messageBox("적용일자를","C001");
- }
- */
- ]]>
- </script>
- </button>
- <datagrid id="datagrid3" nodeset="/root/init/calenlist/calendinfo" visibility="hidden" caption="caption1^caption2" colsep="^" colwidth="100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:580px; top:440px; width:220px; height:150px; ">
- <col ref="basedd"/>
- <col ref="dutflag"/>
- </datagrid>
- </group>
- <group id="group4" style="left:0px; top:20px; width:861px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:855px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption19" class="search_name" style="left:10px; top:9px; width:105px; height:17px; ">식단 구분 :</caption>
- <line id="line6" class="line_4" style="x1:754px; y1:6px; x2:754px; y2:28px; "/>
- <button id="button3" class="btn1_letter2" style="left:777px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if( model.getValue("/root/send/srchmenuflag") == "QE"){
- model.setValue("/root/send/searchitem2/lrgcd", "ET");
- model.setValue("/root/send/searchitem2/mdlcd", "ET00");
-
- }
-
- if( model.getValue("/root/send/srchmenuflag") == "QT"){
- model.setValue("/root/send/searchitem2/lrgcd", "ET");
- model.setValue("/root/send/searchitem2/mdlcd", "ET01");
- }
-
- submit("TRANB00211");
-
- var curDate = getCurrentDate().toDate().getDateFormat('YYYYMM');
- initCalendar(curDate);
- setCurrentDate(grd_calendar);
-
- model.setValue("/root/send/srchtotalqty" , "");
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="rdo_menuflag" ref="/root/send/srchmenuflag" class="radio_search" appearance="full" cellspacing="3" cols="2" rows="1" overflow="visible" style="left:105px; top:9px; width:120px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>일반식</label>
- <value>QE</value>
- </item>
- <item>
- <label>직원식</label>
- <value>QT</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- button3.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- </group>
- </xhtml:body>
- </xhtml:html>
|