12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMANB00700" position="absolute 0 0 870 680" titletext="영양 예외식품관리" oninit="SMANB00700_oninit" onload="SMANB00700_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 62 855 674" id="grp_biz" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Static text="예외 품목 리스트" position="absolute 0 7 232 23" id="caption1" class="tit_2"/>
- <Shape position="absolute 0 23 400 29" linetype="horizontal" id="line1" class="line_10"/>
- <Grid position="absolute 0 28 400 605" align="align:center middle;" id="dtg_etcdet" scrollbars="autoboth" binddataset="ds_main_etcclsdetl_data" oncellclick="grp_biz_dtg_etcdet_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="92"/>
- <Column size="195"/>
- <Column size="75"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" colspan="2" text="식 품" taborder="undefined"/>
- <Cell col="3" text="입고단위"/>
- <Cell col="4"/>
- <Cell col="5"/>
- <Cell col="6"/>
- <Cell col="7"/>
- <Cell col="8"/>
- <Cell col="9"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" edittype="none" text="bind:smlcd"/>
- <Cell col="2" edittype="none" style="align:left;" text="bind:smlcdnm"/>
- <Cell col="3" edittype="none" text="bind:detlclsnm"/>
- <Cell col="4" text="bind:lrgcd"/>
- <Cell col="5" text="bind:mdlcd"/>
- <Cell col="6" text="bind:detlclscd"/>
- <Cell col="7" text="bind:etcclscd"/>
- <Cell col="8" text="bind:useyn"/>
- <Cell col="9" text="bind:sortseq"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div position="absolute 405 25 852 95" id="group2" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 3 445 68" id="rectangle2" type="rectangle" class="calendar_header"/>
- <Button position="absolute 45 32 72 59" id="button7" class="icon_month" text="1" onclick="grp_biz_group2_button7_onclick"/>
- <Button position="absolute 75 32 102 59" id="button8" class="icon_month" text="2" onclick="grp_biz_group2_button8_onclick"/>
- <Button position="absolute 105 32 132 59" id="button9" class="icon_month" text="3" onclick="grp_biz_group2_button9_onclick"/>
- <Button position="absolute 135 32 162 59" id="button10" class="icon_month" text="4" onclick="grp_biz_group2_button10_onclick"/>
- <Button position="absolute 165 32 192 59" id="button11" class="icon_month" text="5" onclick="grp_biz_group2_button11_onclick"/>
- <Button position="absolute 195 32 222 59" id="button12" class="icon_month" text="6" onclick="grp_biz_group2_button12_onclick"/>
- <Button position="absolute 225 32 252 59" id="button13" class="icon_month" text="7" onclick="grp_biz_group2_button13_onclick"/>
- <Button position="absolute 255 32 282 59" id="button14" class="icon_month" text="8" onclick="grp_biz_group2_button14_onclick"/>
- <Button position="absolute 285 32 312 59" id="button18" class="icon_month" text="9" onclick="grp_biz_group2_button18_onclick"/>
- <Button position="absolute 315 32 342 59" id="button19" class="icon_month" text="10" onclick="grp_biz_group2_button19_onclick"/>
- <Button position="absolute 345 32 372 59" id="button20" class="icon_month" text="11" onclick="grp_biz_group2_button20_onclick"/>
- <Button position="absolute 375 32 402 59" id="button21" class="icon_month" text="12" onclick="grp_biz_group2_button21_onclick"/>
- <Edit readonly="true" position="absolute 234 9 254 28" id="opt_month" class="calendar_output" style="background:transparent;border:0 none #3576aeff ;padding:0 0 0 0;align:center middle;"/>
- <Static text="월" position="absolute 254 9 274 28" id="caption25" style="align:center middle;"/>
- <Button position="absolute 304 12 320 28" id="button31" class="icon_next_year" text="" onclick="grp_biz_group2_button31_onclick"/>
- <Button position="absolute 155 12 171 28" id="button33" class="icon_pre_month" visible="false" text="" onclick="grp_biz_group2_button33_onclick"/>
- <Edit readonly="true" position="absolute 182 9 212 28" id="opt_year" style="caretcolor:#6a543aff;background:transparent;border:0 none #808080ff ;color:#262626ff;padding:0 0 0 0;align:center middle;"/>
- <Button position="absolute 280 12 296 28" id="button35" class="icon_next_month" visible="false" text="" onclick="grp_biz_group2_button35_onclick"/>
- <Button position="absolute 132 12 148 28" id="button36" class="icon_pre_year" text="" onclick="grp_biz_group2_button36_onclick"/>
- <Static text="년" position="absolute 212 9 232 28" id="caption24" style="align:center middle;"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid position="absolute 405 95 849 378" id="grd_calendar" autofittype="col" binddataset="ds_hidden_calendar_weeklist_list" oncellclick="grp_biz_grd_calendar_oncellclick" selecttype="cell" autoenter="key">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="63"/>
- <Column size="63"/>
- <Column size="63"/>
- <Column size="63"/>
- <Column size="63"/>
- <Column size="63"/>
- <Column size="63"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="20"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="일"/>
- <Cell col="1" text="월"/>
- <Cell col="2" text="화"/>
- <Cell col="3" text="수"/>
- <Cell col="4" text="목"/>
- <Cell col="5" text="금"/>
- <Cell col="6" text="토"/>
- </Band>
- <Band id="body">
- <Cell style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack0);background2:BIND(colBack0);color:BIND(colColor0);color2:BIND(colColor0);selectbackground:#daa7d9ff;" class="color_sun" text="bind:sun"/>
- <Cell col="1" style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack1);background2:BIND(colBack1);color:BIND(colColor1);color2:BIND(colColor1);selectbackground:#daa7d9ff;" text="bind:mon"/>
- <Cell col="2" style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack2);background2:BIND(colBack2);color:BIND(colColor2);color2:BIND(colColor2);selectbackground:#daa7d9ff;" text="bind:tue"/>
- <Cell col="3" style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack3);background2:BIND(colBack3);color:BIND(colColor3);color2:BIND(colColor3);selectbackground:#daa7d9ff;" text="bind:wed"/>
- <Cell col="4" style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack4);background2:BIND(colBack4);color:BIND(colColor4);color2:BIND(colColor4);selectbackground:#daa7d9ff;" text="bind:thu"/>
- <Cell col="5" style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack5);background2:BIND(colBack5);color:BIND(colColor5);color2:BIND(colColor5);selectbackground:#daa7d9ff;" text="bind:fri"/>
- <Cell col="6" style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack6);background2:BIND(colBack6);color:BIND(colColor6);color2:BIND(colColor6);selectbackground:#daa7d9ff;" class="color_sat" text="bind:sat"/>
- <Cell row="1" displaytype="text" edittype="text" style="align:center;line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack0);background2:BIND(colBack0);selectbackground:#daa7d9ff;" text="bind:sun_memo" editautoselect="true"/>
- <Cell row="1" col="1" displaytype="text" edittype="text" style="align:center;line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack1);background2:BIND(colBack1);selectbackground:#daa7d9ff;" text="bind:mon_memo" editautoselect="true"/>
- <Cell row="1" col="2" displaytype="text" edittype="text" style="align:center;line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack2);background2:BIND(colBack2);selectbackground:#daa7d9ff;" text="bind:tue_memo" editautoselect="true"/>
- <Cell row="1" col="3" displaytype="text" edittype="text" style="align:center;line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack3);background2:BIND(colBack3);selectbackground:#daa7d9ff;" text="bind:wed_memo" editautoselect="true"/>
- <Cell row="1" col="4" displaytype="text" edittype="text" style="align:center;line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack4);background2:BIND(colBack4);selectbackground:#daa7d9ff;" text="bind:thu_memo" editautoselect="true"/>
- <Cell row="1" col="5" displaytype="text" edittype="text" style="align:center;line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack5);background2:BIND(colBack5);selectbackground:#daa7d9ff;" text="bind:fri_memo" editautoselect="true"/>
- <Cell row="1" col="6" displaytype="text" edittype="text" style="align:center;line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack6);background2:BIND(colBack6);selectbackground:#daa7d9ff;" text="bind:sat_memo" editautoselect="true"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 405 23 850 29" linetype="horizontal" id="line2" class="line_10"/>
- <Static text="식품량" position="absolute 405 7 637 23" id="caption2" class="tit_2"/>
- <Div position="absolute 410 425 800 452" id="grp_btn">
- <Layouts>
- <Layout>
- <Button position="absolute 0 3 56 25" id="btn_prt" class="btn6" visible="false" text="출력"/>
- </Layout>
- </Layouts>
- </Div>
- <Edit position="absolute 695 387 787 406" id="ipt_pid" class="input_search" taborder="1" visible="false" autoselect="true"/>
- <Static text="예외식품수량 :" position="absolute 582 389 691 405" id="caption7" class="tit_2" visible="false"/>
- <Button position="absolute 790 386 846 408" id="btn_save" class="btn4" text="저장" onclick="grp_biz_btn_save_onclick"/>
- <Grid position="absolute 580 440 800 590" id="datagrid3" visible="false" binddataset="ds_init_calenlist_calendinfo">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="caption1"/>
- <Cell col="1" text="caption2"/>
- </Band>
- <Band id="body">
- <Cell text="bind:basedd"/>
- <Cell col="1" text="bind:dutflag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 24 861 59" align="align:center top;" id="group4" class="div_SA">
- <Layouts>
- <Layout>
- <Static text="식단 구분 :" position="absolute 10 9 95 26" id="caption19" class="search_name"/>
- <Shape position="absolute 751 6 757 28" linetype="vertical" id="line6" class="line_4"/>
- <Button position="absolute 777 7 833 29" id="button3" class="btn1" text="조회" onclick="group4_button3_onclick"/>
- <Radio position="absolute 95 8 215 28" id="rdo_menuflag" class="radio_search" columncount="2" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="group4_rdo_menuflag_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">QE</Col>
- <Col id="datacolumn">일반식</Col>
- </Row>
- <Row>
- <Col id="codecolumn">QT</Col>
- <Col id="datacolumn">직원식</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="예외 품목 등록" class="tit_1" position="absolute 0 0 125 24"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_searchitem2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="lrgcd" type="STRING" size="256" sumtext="대분류코드"/>
- <Column id="mdlcd" type="STRING" size="256" sumtext="중분류코드"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_etcclsdetl_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="lrgcd" type="STRING" size="256" sumtext="대분류코드"/>
- <Column id="mdlcd" type="STRING" size="256" sumtext="중분류코드"/>
- <Column id="smlcd" type="STRING" size="256" sumtext="소분류코드"/>
- <Column id="smlcdnm" type="STRING" size="256" sumtext="소분류코드명"/>
- <Column id="detlclscd" type="STRING" size="256" sumtext="상세분류코드"/>
- <Column id="detlclsnm" type="STRING" size="256" sumtext="상세분류코드명"/>
- <Column id="etcclscd" type="STRING" size="256" sumtext="기타분류코드"/>
- <Column id="useyn" type="STRING" size="256" sumtext="사용여부"/>
- <Column id="sortseq" type="STRING" size="256" sumtext="정열순서"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchfoodcd" type="STRING" size="256" sumtext="식품코드"/>
- <Column id="srchfromdd" type="STRING" size="256" sumtext="적용일자"/>
- <Column id="srchmenuflag" type="STRING" size="256" sumtext="식단구분"/>
- <Column id="rsrvdd" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="srchtotalqty" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_calenltotist_calendinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="appdd" type="STRING" size="256" sumtext="적용일자"/>
- <Column id="totfoodqty" type="STRING" size="256" sumtext="총량"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_calenlist_calendinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basedd" type="STRING" size="256" sumtext="예약일자"/>
- <Column id="dutflag" type="STRING" size="256" sumtext="예약수"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_savedata_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="detlclsnm" type="STRING" size="256" sumtext="단위"/>
- <Column id="foodcd" type="STRING" size="256" sumtext="식품코드"/>
- <Column id="srchtotalqty" type="STRING" size="256" sumtext="수량"/>
- <Column id="appdd" type="STRING" size="256" sumtext="적용일자"/>
- <Column id="srchmenuflag" type="STRING" size="256" sumtext="식단구분"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="count" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_calendar_weeklist_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sun" type="STRING" size="256"/>
- <Column id="mon" type="STRING" size="256"/>
- <Column id="tue" type="STRING" size="256"/>
- <Column id="wed" type="STRING" size="256"/>
- <Column id="thu" type="STRING" size="256"/>
- <Column id="fri" type="STRING" size="256"/>
- <Column id="sat" type="STRING" size="256"/>
- <Column id="sun_memo" type="STRING" size="256"/>
- <Column id="mon_memo" type="STRING" size="256"/>
- <Column id="tue_memo" type="STRING" size="256"/>
- <Column id="wed_memo" type="STRING" size="256"/>
- <Column id="thu_memo" type="STRING" size="256"/>
- <Column id="fri_memo" type="STRING" size="256"/>
- <Column id="sat_memo" type="STRING" size="256"/>
- <Column id="colBack0" type="STRING" size="256"/>
- <Column id="colBack1" type="STRING" size="256"/>
- <Column id="colBack2" type="STRING" size="256"/>
- <Column id="colBack3" type="STRING" size="256"/>
- <Column id="colBack4" type="STRING" size="256"/>
- <Column id="colBack5" type="STRING" size="256"/>
- <Column id="colBack6" type="STRING" size="256"/>
- <Column id="colColor0" type="STRING" size="256"/>
- <Column id="colColor1" type="STRING" size="256"/>
- <Column id="colColor2" type="STRING" size="256"/>
- <Column id="colColor3" type="STRING" size="256"/>
- <Column id="colColor4" type="STRING" size="256"/>
- <Column id="colColor5" type="STRING" size="256"/>
- <Column id="colColor6" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_calendar" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="year" type="STRING" size="256"/>
- <Column id="month" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_grdcellcolor" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="calcol" type="STRING" size="256"/>
- <Column id="calrow" type="STRING" size="256"/>
- <Column id="bfcalrow" type="STRING" size="256"/>
- <Column id="bfcalcol" type="STRING" size="256"/>
- <Column id="color" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group4.rdo_menuflag" propid="value" datasetid="ds_send" columnid="srchmenuflag"/>
- <BindItem id="item1" compid="grp_biz.ipt_pid" propid="value" datasetid="ds_send" columnid="srchtotalqty"/>
- <BindItem id="item2" compid="grp_biz.group2.opt_year" propid="value" datasetid="ds_hidden_calendar" columnid="year"/>
- <BindItem id="item3" compid="grp_biz.group2.opt_month" propid="value" datasetid="ds_hidden_calendar" columnid="month"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : ast_dietxp -> SMANB00700
- * Creator : yjh
- * Make Date : 2017-10-25
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-10-25 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function initCalendar(curDate) {
- // var curDate = getCurrentDate().toDate();
- // alert("init 들어와서 ==>" + curDate );
- ds_hidden_calendar.setColumn(0, "year", curDate.substr(0,4) );
- ds_hidden_calendar.setColumn(0, "month", curDate.substr(4,2) );
-
- // 그리드 초기화
- ds_hidden_calendar_weeklist_list.clearData();
-
- 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++ )
- ds_hidden_calendar_weeklist_list.addRow();
-
- ds_hidden_calendar_weeklist_list.rowposition = -1;
-
- var rowIndex = 0;
- var colIndex = startDay;
- for( var i = 1; i <= days; i++ ) {
- ds_hidden_calendar_weeklist_list.setColumn(rowIndex, utlf_transNullToEmpty(grp_biz.grd_calendar.getCellProperty("Body", colIndex, "text")).replace("bind:", ""), i);
- ds_hidden_calendar_weeklist_list.setColumn(rowIndex, utlf_transNullToEmpty(grp_biz.grd_calendar.getCellProperty("Body", colIndex+7, "text")).replace("bind:", ""), "0.0");
-
- colIndex++;
- if( colIndex == 7 ) {
- colIndex = 0;
- rowIndex++;
- }
- }
-
- fCalendar();
- }
- function fCalendar(){
- var oParam = {};
- oParam.id = "TRANB00700";
- oParam.service = "dietbaseapp.FoodCode";
- oParam.method = "reqGetExceptFoodLst";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_calenltotist_calendinfo=calendinfo";
- oParam.async = false;
- oParam.callback = "cf_TRANB00700";
- tranf_submit(oParam);
-
- if ( arErrorCode.pop("TRANB00700") > -1 ){
- var cnt = ds_main_calenltotist_calendinfo.rowcount;
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate();
- var startDay = isDate.getDay();
- for (var i = 0; i < cnt; i++) {
- var dd = ds_main_calenltotist_calendinfo.getColumn(i, "appdd");
-
- var colidx = dd.toDate().getDay();
- var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 )-1;
- // alert("DD >" + dd + " ==colidx >" + colidx + " ==rowidx > " + rowidx + " == qty > " + model.getValue("/root/main/calenlist/calendinfo[" + i + "]/totfoodqty") );
- if( grp_biz.grd_calendar.currentcol < 7 ){
- ds_hidden_calendar_weeklist_list.setColumn(rowidx, utlf_transNullToEmpty(grp_biz.grd_calendar.getCellProperty("Body", colidx+7, "text")).replace("bind:", ""), ds_main_calenltotist_calendinfo.getColumn(i, "totfoodqty"));
- }else{
- ds_hidden_calendar_weeklist_list.setColumn(rowidx, utlf_transNullToEmpty(grp_biz.grd_calendar.getCellProperty("Body", colidx, "text")).replace("bind:", ""), ds_main_calenltotist_calendinfo.getColumn(i, "totfoodqty"));
- }
- }
- fCalendar2();
- }
- }
- function cf_TRANB00700(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function fCalendar2(){
-
- if( utlf_isNull(ds_hidden_calendar.getColumn(0, "year")) || utlf_isNull(ds_hidden_calendar.getColumn(0, "month")) ){
- ds_hidden_calendar.setColumn(0, "year", utlf_getCurrentDate().toDate().getDateFormat('YYYY'));
- ds_hidden_calendar.setColumn(0, "month", utlf_getCurrentDate().toDate().getDateFormat('MM'));
- }
-
- ds_send.setColumn(0, "rsrvdd", ds_hidden_calendar.getColumn(0, "year") + ds_hidden_calendar.getColumn(0, "month") );
-
- var oParam = {};
- oParam.id = "TRAEA02012";
- oParam.service = "examcurersrvapp.SytsRsrv";
- oParam.method = "reqGetCalenList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_calenlist_calendinfo=calendinfo";
- oParam.async = false;
- oParam.callback = "cf_TRAEA02012";
- tranf_submit(oParam);
-
- if (arErrorCode.pop("TRAEA02012") > -1){
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate();
- var startDay = isDate.getDay();
- for (var i = 0; i < ds_init_calenlist_calendinfo.rowcount; i++) {
- var dd = ds_init_calenlist_calendinfo.getColumn(i, "basedd");
-
- var colidx = dd.toDate().getDay();
- var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 )-1;
- // alert("DD >" + dd + " ==colidx >" + colidx + " ==rowidx > " + rowidx + " ==basedd> " + model.getValue("/root/init/calenlist/calendinfo[" + i + "]/basedd"));
- if (ds_init_calenlist_calendinfo.getColumn(i, "dutflag") == "8"){
- ds_hidden_calendar_weeklist_list.setColumn(rowidx, "colColor"+colidx, "red");
- }else if (ds_init_calenlist_calendinfo.getColumn(i, "dutflag") == "4"){
- ds_hidden_calendar_weeklist_list.setColumn(rowidx, "colColor"+colidx, "blue");
- }else{
- ds_hidden_calendar_weeklist_list.setColumn(rowidx, "colColor"+colidx, "black");
- }
- }
- }
- }
- function cf_TRAEA02012(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /* @group : 통합예약관리
- * @ver : 2007.08.10
- * @by : 임헤정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 오늘날짜 달력에 표시
- */
- function setCurrentDate() {
-
- var curDate = utlf_getCurrentDate().substr(6,2); //오늘날짜
- var curWeek = utlf_getCurrentDate().toDate().getDayOfWeek("E").toLowerCase(); //오늘요일
- if(curDate <10) {
- curDate= curDate.substr(1,1);
- }
-
- if(curWeek == "sun")
- ds_hidden_grdcellcolor.setColumn(0, "calcol",0);
- if(curWeek == "mon")
- ds_hidden_grdcellcolor.setColumn(0, "calcol",1);
- if(curWeek == "tue")
- ds_hidden_grdcellcolor.setColumn(0, "calcol",2);
- if(curWeek == "wed")
- ds_hidden_grdcellcolor.setColumn(0, "calcol",3);
- if(curWeek == "thu")
- ds_hidden_grdcellcolor.setColumn(0, "calcol",4);
- if(curWeek == "fri")
- ds_hidden_grdcellcolor.setColumn(0, "calcol",5);
- if(curWeek == "sat")
- ds_hidden_grdcellcolor.setColumn(0, "calcol",6);
-
- for(var i = 0 ; i <ds_hidden_calendar_weeklist_list.rowcount; i++ ) {
- if(ds_hidden_calendar_weeklist_list.getColumn(i, curWeek) ==curDate) {
- ds_hidden_grdcellcolor.setColumn(0, "calrow",i);
-
- }
- }
- setCellColor(grp_biz.grd_calendar);
- }
- /* @group : 통합예약관리
- * @ver : 2007.08.09
- * @by : 임헤정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 선택날짜 색 주기
- */
- function setCalendar(dateObj) {
- // 그리드 초기화
- ds_hidden_calendar_weeklist_list.clearData()
- /// model.removeNodeset("/root/init/curerprescondlist/rsrvcalendar");
-
- 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 != ds_hidden_calendar_weeklist_list.rowcount - 1){
- ds_hidden_calendar_weeklist_list.clearData();
- for( var i = 0; i < rows; i++ ){
- ds_hidden_calendar_weeklist_list.addRow();
- }
-
- ds_hidden_calendar_weeklist_list.rowposition = -1;
- }else{
- //model.setValue("/root/hidden/calendar/weeklist/list", "");
- }
- var rowIndex = 0;
- var colIndex = startDay;
- for( var i = 1; i <= days; i++ ) {
- ds_hidden_calendar_weeklist_list.setColumn(rowIndex, utlf_transNullToEmpty(grp_biz.grd_calendar.getCellProperty("Body", colIndex, "text")).replace("bind:", ""), i);
- ds_hidden_calendar_weeklist_list.setColumn(rowIndex, utlf_transNullToEmpty(grp_biz.grd_calendar.getCellProperty("Body", colIndex+7, "text")).replace("bind:", ""), "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(ds_hidden_grdcellcolor.getColumn(0, "calrow"));
- calCol = Number(ds_hidden_grdcellcolor.getColumn(0, "calcol"));
-
- bfcalRow = Number(ds_hidden_grdcellcolor.getColumn(0, "bfcalrow"));
- bfcalCol = Number(ds_hidden_grdcellcolor.getColumn(0, "bfcalcol"));
-
-
- // 1. 원래 색으로 돌려놓기
- if(ds_hidden_grdcellcolor.getColumn(0, "color") == "1" ) {
-
- ds_hidden_calendar_weeklist_list.setColumn(bfcalRow, "colBack"+bfcalCol, "#ffffff");
-
- // if( bfcalCol < 7 )
- // bfcalCol += 7;
- // else
- // bfcalCol -= 7;
- //
- // ds_hidden_calendar_weeklist_list.setColumn(bfcalRow, "colBack"+bfcalCol, "#ffffff");
- }
- else if (ds_hidden_grdcellcolor.getColumn(0, "color") == "2" ) {
-
- ds_hidden_calendar_weeklist_list.setColumn(bfcalRow, "colBack"+bfcalCol, "#c4e693");
-
- // if( bfcalCol < 7 )
- // bfcalCol += 7;
- // else
- // bfcalCol -= 7;
- //
- // ds_hidden_calendar_weeklist_list.setColumn(bfcalRow, "colBack"+bfcalCol, "#c4e693");
- }
-
- // 2. bf 인스턴스에 선택한 원래 셀 담아두기
-
- //if(ds_hidden_calendar_weeklist_list.getColumn(calRow, "colBack"+calCol) == "#ffffff" ) {
- if( grp_biz.grd_calendar.currentcell > 6 && (utlf_isNull(ds_hidden_calendar_weeklist_list.getColumn(calRow, "colBack"+calCol)) || ds_hidden_calendar_weeklist_list.getColumn(calRow, "colBack"+calCol) == "#ffffff") ){
-
- ds_hidden_grdcellcolor.setColumn(0, "color", "1");
- }
- if(ds_hidden_calendar_weeklist_list.getColumn(calRow, "colBack"+calCol) == "#c4e693" ) {
- ds_hidden_grdcellcolor.setColumn(0, "color", "2");
- }
- ds_hidden_grdcellcolor.setColumn(0, "bfcalrow",calRow);
- ds_hidden_grdcellcolor.setColumn(0, "bfcalcol",calCol);
- //alert("인스턴스 : "+model.getValue("/root/hidden/grdcellcolor/color"));
-
- // 3. 선택한 셀에 보라색 주기
-
-
- // gridObj.rebuildStyle();
-
- ds_hidden_calendar_weeklist_list.setColumn(calRow, "colBack"+calCol, "#daa7d9");
-
- // if( calCol < 7 )
- // calCol += 7;
- // else
- // calCol -= 7;
- //
- // ds_hidden_calendar_weeklist_list.setColumn(calRow, "colBack"+calCol, "#daa7d9");
-
- // fCalendar2();
- }
- /* @group : 통합예약
- * @ver : 2007.08.07
- * @by : 임혜정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 달력 월버튼 이벤트
- */
- function fGetCalendar(arg)
- {
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- if(ds_hidden_calendar.getColumn(0, "month") < arg) {
- var num = arg- isMonth ;
- var isDate = (isYear+isMonth+1).toDate().getAddDate(+num,'M');
- }
-
- if(ds_hidden_calendar.getColumn(0, "month") > arg) {
- var num = isMonth - arg ;
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-num,'M');
- }
- ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
- ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
-
- setCalendar(isDate);
- ds_send.setColumn(0, "srchtotalqty" , "");
- grp_biz_dtg_etcdet_oncellclick();
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMANB00700
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMANB00700_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMANB00700
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMANB00700_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setGridSort(grp_biz.dtg_etcdet);
- var curDate = utlf_getCurrentDate().toDate().getDateFormat('YYYYMM');
-
- // initCalendar(curDate);
- // 현재일자 색상 표시
- // setCurrentDate(grd_calendar);
-
- group4.rdo_menuflag.index = 0;
- group4_rdo_menuflag_onitemchanged();
-
- ds_send_searchitem2.setColumn(0, "lrgcd", "ET");
- ds_send_searchitem2.setColumn(0, "mdlcd", "ET00");
-
- var oParam = {};
- oParam.id = "TRANB00211";
- oParam.service = "dietbaseapp.Dietbase";
- oParam.method = "reqGetEtcClsDetl";
- oParam.inds = "req=ds_send_searchitem2";
- oParam.outds = "ds_main_etcclsdetl_data=ret";
- oParam.async = false;
- //oParam.callback = "cf_TRANB00211";
- tranf_submit(oParam);
-
- ds_main_etcclsdetl_data.rowposition = -1;
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : dtg_etcdet
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 클릭시
- ****************************************************************************************/
- function grp_biz_dtg_etcdet_oncellclick(obj, e)
- {
- if(ds_main_etcclsdetl_data.rowcount > 1){
- ds_main_calenltotist_calendinfo.clearData();
- ds_hidden_calendar_weeklist_list.clearData();
-
- var cnt = ds_main_etcclsdetl_data.rowcount;
-
- var curDate = ds_hidden_calendar.getColumn(0, "year") + ds_hidden_calendar.getColumn(0, "month");
- ds_send.setColumn(0, "srchfoodcd", ds_main_etcclsdetl_data.getColumn(ds_main_etcclsdetl_data.rowposition, "smlcd"));
- ds_send.setColumn(0, "srchfromdd", curDate );
-
- initCalendar(curDate);
- setCurrentDate(grp_biz.grd_calendar);
- }
- ds_send.setColumn(0, "srchtotalqty" , "");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button7
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 1버튼 클릭시
- ****************************************************************************************/
- function grp_biz_group2_button7_onclick(obj:Button, e:ClickEventInfo)
- {
- if(grp_biz.group2.opt_month.value!= "01") {
- fGetCalendar("01");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button8
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 2버튼 클릭시
- ****************************************************************************************/
- function grp_biz_group2_button8_onclick(obj:Button, e:ClickEventInfo)
- {
- if(grp_biz.group2.opt_month.value!== "02") {
- fGetCalendar("02");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button9
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 3버튼 클릭시
- ****************************************************************************************/
- function grp_biz_group2_button9_onclick(obj:Button, e:ClickEventInfo)
- {
- if(grp_biz.group2.opt_month.value!== "03") {
- fGetCalendar("03");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button10
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 4버튼 클릭시
- ****************************************************************************************/
- function grp_biz_group2_button10_onclick(obj:Button, e:ClickEventInfo)
- {
- if(grp_biz.group2.opt_month.value!== "04") {
- fGetCalendar("04");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button11
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 5버튼 클릭시
- ****************************************************************************************/
- function grp_biz_group2_button11_onclick(obj:Button, e:ClickEventInfo)
- {
- if(grp_biz.group2.opt_month.value!== "05") {
- fGetCalendar("05");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button12
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 6버튼 클릭시
- ****************************************************************************************/
- function grp_biz_group2_button12_onclick(obj:Button, e:ClickEventInfo)
- {
- if(grp_biz.group2.opt_month.value!== "06") {
- fGetCalendar("06");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button13
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 7버튼 클릭시
- ****************************************************************************************/
- function grp_biz_group2_button13_onclick(obj:Button, e:ClickEventInfo)
- {
- if(grp_biz.group2.opt_month.value!== "07") {
- fGetCalendar("07");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button14
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 8버튼 클릭시
- ****************************************************************************************/
- function grp_biz_group2_button14_onclick(obj:Button, e:ClickEventInfo)
- {
- if(grp_biz.group2.opt_month.value!== "08") {
- fGetCalendar("08");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button18
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 9버튼 클릭시
- ****************************************************************************************/
- function grp_biz_group2_button18_onclick(obj:Button, e:ClickEventInfo)
- {
- if(grp_biz.group2.opt_month.value!== "09") {
- fGetCalendar("09");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button19
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 10버튼 클릭시
- ****************************************************************************************/
- function grp_biz_group2_button19_onclick(obj:Button, e:ClickEventInfo)
- {
- if(grp_biz.group2.opt_month.value!== "10") {
- fGetCalendar("10");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button20
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 11버튼 클릭시
- ****************************************************************************************/
- function grp_biz_group2_button20_onclick(obj:Button, e:ClickEventInfo)
- {
- if(grp_biz.group2.opt_month.value!== "11") {
- fGetCalendar("11");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button21
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 12버튼 클릭시
- ****************************************************************************************/
- function grp_biz_group2_button21_onclick(obj:Button, e:ClickEventInfo)
- {
- if(grp_biz.group2.opt_month.value!== "12") {
- fGetCalendar("12");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button31
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : >>버튼 클릭시
- ****************************************************************************************/
- function grp_biz_group2_button31_onclick(obj:Button, e:ClickEventInfo)
- {
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
- ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
- ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
-
- setCalendar(isDate);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button33
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : <버튼 클릭시
- ****************************************************************************************/
- function grp_biz_group2_button33_onclick(obj:Button, e:ClickEventInfo)
- {
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
- ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
- ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
- setCalendar(isDate);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button35
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : >버튼 클릭시
- ****************************************************************************************/
- function grp_biz_group2_button35_onclick(obj:Button, e:ClickEventInfo)
- {
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
- ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
- ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
-
- setCalendar(isDate);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button36
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : <<버튼 클릭시
- ****************************************************************************************/
- function grp_biz_group2_button36_onclick(obj:Button, e:ClickEventInfo)
- {
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
- ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
- ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
-
- setCalendar(isDate);
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_calendar
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 클릭시
- ****************************************************************************************/
- function grp_biz_grd_calendar_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- ds_hidden_grdcellcolor.setColumn(0, "calrow",e.row);
- ds_hidden_grdcellcolor.setColumn(0, "calcol",e.col);
- setCellColor(grp_biz.grd_calendar);
-
- var selqty = "";
- if( grp_biz.grd_calendar.currentcol < 7 ){
- selqty = ds_hidden_calendar_weeklist_list.getColumn(e.row, utlf_transNullToEmpty(grp_biz.grd_calendar.getCellProperty("Body", e.col+7, "text")).replace("bind:", ""));
- }else{
- selqty = ds_hidden_calendar_weeklist_list.getColumn(e.row, utlf_transNullToEmpty(grp_biz.grd_calendar.getCellProperty("Body", e.col, "text")).replace("bind:", ""));
- }
- ds_send.setColumn(0, "srchtotalqty", selqty );
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_save
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 저장버튼 클릭시
- ****************************************************************************************/
- function grp_biz_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_savedata_item.clearData();
- var appdd = ds_hidden_calendar.getColumn(0, "year") + ds_hidden_calendar.getColumn(0, "month");
- var curdate = "";
- var curqty = "";
- var cnt = "";
- var idx = 0;
-
- for( var i = 0; i < ds_hidden_calendar_weeklist_list.rowcount ; i++ ){
- for( var a = 0; a <= 6 ; a++ ){
- if( !utlf_isNull(ds_hidden_calendar_weeklist_list.getColumn(i, utlf_transNullToEmpty(grp_biz.grd_calendar.getCellProperty("Body", a, "text")).replace("bind:", ""))) ){
- curdate = ds_hidden_calendar_weeklist_list.getColumn(i, utlf_transNullToEmpty(grp_biz.grd_calendar.getCellProperty("Body", a, "text")).replace("bind:", ""));
- curqty = ds_hidden_calendar_weeklist_list.getColumn(i, utlf_transNullToEmpty(grp_biz.grd_calendar.getCellProperty("Body", a+7, "text")).replace("bind:", ""));
-
- if( curdate < 10 ){
- curdate = "0" + curdate;
- }
-
- ds_main_savedata_item.addRow();
-
- ds_main_savedata_item.setColumn(idx, "srchmenuflag", ds_send.getColumn(0, "srchmenuflag"));
- ds_main_savedata_item.setColumn(idx, "srchtotalqty", curqty );
- ds_main_savedata_item.setColumn(idx, "appdd", appdd + curdate );
- ds_main_savedata_item.setColumn(idx, "detlclsnm", ds_main_etcclsdetl_data.getColumn(ds_main_etcclsdetl_data.rowposition, "detlclsnm") );
- ds_main_savedata_item.setColumn(idx, "foodcd", ds_main_etcclsdetl_data.getColumn(ds_main_etcclsdetl_data.rowposition, "smlcd") );
- idx++;
-
-
- }
- }
- }
-
- var oParam = {};
- oParam.id = "TXANB00701";
- oParam.service = "dietbaseapp.FoodCode";
- oParam.method = "reqSetExceptFoodUpdt";
- oParam.inds = "req=ds_main_savedata_item";
- oParam.outds = "ds_temp_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TXANB00701";
- tranf_submit(oParam);
-
- initCalendar( (ds_hidden_calendar.getColumn(0, "year") + ds_hidden_calendar.getColumn(0, "month") + "01") );
- setCellColor(grp_biz.grd_calendar);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button3
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function group4_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- if( ds_send.getColumn(0, "srchmenuflag") == "QE"){
- ds_send_searchitem2.setColumn(0, "lrgcd", "ET");
- ds_send_searchitem2.setColumn(0, "mdlcd", "ET00");
-
- }
-
- if( ds_send.getColumn(0, "srchmenuflag") == "QT"){
- ds_send_searchitem2.setColumn(0, "lrgcd", "ET");
- ds_send_searchitem2.setColumn(0, "mdlcd", "ET01");
- }
-
- var oParam = {};
- oParam.id = "TRANB00211";
- oParam.service = "dietbaseapp.Dietbase";
- oParam.method = "reqGetEtcClsDetl";
- oParam.inds = "req=ds_send_searchitem2";
- oParam.outds = "ds_main_etcclsdetl_data=ret";
- oParam.async = false;
- //oParam.callback = "cf_TRANB00211";
- tranf_submit(oParam);
-
- ds_main_etcclsdetl_data.rowposition = -1;
-
- var curDate = utlf_getCurrentDate().toDate().getDateFormat('YYYYMM');
- initCalendar(curDate);
- setCurrentDate(grp_biz.grd_calendar);
-
- ds_send.setColumn(0, "srchtotalqty" , "");
- }
- /****************************************************************************************
- * Components : Radio
- * Components ID : rdo_menuflag
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 라디오 값 변경시
- ****************************************************************************************/
- function group4_rdo_menuflag_onitemchanged(obj, e)
- {
- group4.button3.click();
- }
- ]]></Script>
- </Form>
- </FDL>
|