123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMABD00300" classname="SMABD00300_SBS식단복사" inheritanceid="" position="absolute 0 0 1200 790" titletext="New Form" oninit="SMABD00300_oninit" onload="SMABD00300_onload">
- <Layouts>
- <Layout>
- <Static id="caption1" text="SBS 식단복사" class="tit_1" position="absolute 0 0 160 23"/>
- <Button id="btn_select" taborder="1" text="선택식작성" onclick="btn_select_onclick" class="btn3" position="absolute 0 24 96 46" enable="false"/>
- <Button id="btn_menu" taborder="2" text="메뉴관리" class="btn3" position="absolute 178 24 258 46" onclick="btn_menu_onclick" enable="false"/>
- <Button id="btn_cmt" taborder="3" text="원산지표시" onclick="btn_cmt_onclick" class="btn3" position="absolute 260 24 356 46" enable="false"/>
- <Grid id="grd_antmstdi" taborder="5" binddataset="ds_main_antmstdi" autoenter="select" useinputpanel="false" selecttype="cell" cellsizingtype="col" autofittype="col" oncellclick="grd_anbmmenu_oncellclick" position="absolute 0 116 1195 756" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="92"/>
- <Column size="55"/>
- <Column size="54"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="90"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="년 월 일"/>
- <Cell col="2" text="끼니"/>
- <Cell col="3" text="분류"/>
- <Cell col="4" text="1"/>
- <Cell col="5" text="2"/>
- <Cell col="6" text="3"/>
- <Cell col="7" text="4"/>
- <Cell col="8" text="5"/>
- <Cell col="9" text="6"/>
- <Cell col="10" text="7"/>
- <Cell col="11" text="8"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" displaytype="date" text="bind:acptdd" calendardisplaynulltype="nulltext"/>
- <Cell col="2" displaytype="combo" style="align:center middle;" text="bind:mealflag" editautoselect="true" editdisplay="display" combodataset="ds_cmb_mealflag" combocodecol="value" combodatacol="label"/>
- <Cell col="3" displaytype="combo" style="align:center middle;" text="bind:gubun" editautoselect="true" editdisplay="display" combodataset="ds_cmb_gubun" combocodecol="value" combodatacol="label"/>
- <Cell col="4" style="align:left middle;padding:0 0 0 3;" text="bind:menu1nm" wordwrap="word"/>
- <Cell col="5" style="align:left middle;padding:0 0 0 3;" text="bind:menu2nm" wordwrap="word"/>
- <Cell col="6" style="align:left middle;padding:0 0 0 3;" text="bind:menu3nm" wordwrap="word"/>
- <Cell col="7" style="align:left middle;padding:0 0 0 3;" text="bind:menu4nm" wordwrap="word"/>
- <Cell col="8" style="align:left middle;padding:0 0 0 3;" text="bind:menu5nm" wordwrap="word"/>
- <Cell col="9" style="align:left middle;padding:0 0 0 3;" text="bind:menu6nm" wordwrap="word"/>
- <Cell col="10" style="align:left middle;padding:0 0 0 3;" text="bind:menu7nm" wordwrap="word"/>
- <Cell col="11" style="align:left middle;padding:0 0 0 3;" text="bind:menu8nm" wordwrap="word"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line14" class="line_10" position="absolute 0 111 1195 117" anchor="left top right"/>
- <Static id="caption28" text="메뉴관리" class="tit_2" position="absolute 0 95 131 111"/>
- <Div id="grp_sea" anchor="left top right" taborder="6" class="div_SA2" position="absolute 0 47 1195 87">
- <Layouts>
- <Layout>
- <Calendar id="cal_copyfrm" taborder="11" autoselect="true" autoskip="true" position="absolute 574 9 681 29"/>
- <Shape id="line20" linetype="vertical" class="line_4" position="absolute 958 12 964 29" anchor="top right"/>
- <Button id="btn_search" taborder="12" text="조회" onclick="grp_sea_btn_search_onclick" class="btn1" position="absolute 974 9 1030 31" anchor="top right"/>
- <Calendar id="cal_fromdd" taborder="13" autoselect="true" autoskip="true" position="absolute 181 9 288 29"/>
- <Static id="stat" text="~" position="absolute 295 8 309 31"/>
- <Calendar id="cal_todd" taborder="14" autoselect="true" position="absolute 312 9 419 29"/>
- <Static id="caption00" text="식단복사 To :" class="search_name" position="absolute 462 11 559 28"/>
- <Button id="btn_matersave" taborder="15" text="저장" wordwrap="word" class="btn4" position="absolute 1126 9 1182 31" anchor="top right" onclick="grp_sea_btn_matersave_onclick"/>
- <Static id="caption50" text="식단복사 From :" class="search_name" position="absolute 62 11 191 28"/>
- <Button id="btn_copy" taborder="16" text="식단복사" class="btn4" position="absolute 1038 9 1118 31" anchor="top right" onclick="grp_sea_btn_copy_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_copy" taborder="7" text="식단복사" onclick="btn_copy_onclick" class="btn3" position="absolute 97 24 177 46" style="background:darkgoldenrod URL('theme://images/icon_link_N.png') left middle;border:1 solid black ;"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="cp_frm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_antmstdi" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_cmb_mealflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">중식</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">석식</Col>
- <Col id="value">3</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmb_gubun" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">A</Col>
- <Col id="value">A</Col>
- </Row>
- <Row>
- <Col id="label">B</Col>
- <Col id="value">B</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.cal_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
- <BindItem id="item1" compid="grp_sea.cal_todd" propid="value" datasetid="ds_send" columnid="todd"/>
- <BindItem id="item2" compid="grp_sea.cal_copyfrm" propid="value" datasetid="ds_send" columnid="cp_frm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : ast_dietxp -> SMANB00100
- * Creator : yjh
- * Make Date : 2017-09-28
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-09-28 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- function SMABD00300_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMABD00300_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_antmstdi);
- grdf_setRowTypeIcon(grd_antmstdi, 0);
-
- ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
- ds_send.setColumn(0, "todd", utlf_getCurrentDate());
- }
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRABD00100";
- oParam.service = "dietbaseapp.DietMenu";
- oParam.method = "reqGetSbsCopyList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_antmstdi=ret";
- oParam.async = false;
- //oParam.callback = "cf_TRANB00105";
- tranf_submit(oParam);
- }
- function grp_sea_btn_copy_onclick(obj:Button, e:ClickEventInfo)
- {
- var sTarget = ds_send.getColumn(0, "cp_frm");
- var sSource = ds_main_antmstdi.getColumn(0, "acptdd");
-
- var day = utlf_diffDate(sSource, sTarget);
-
- for (var i = 0; i < ds_main_antmstdi.rowcount; i++ ) {
- ds_main_antmstdi.setColumn(i, "acptdd", ds_main_antmstdi.getColumn(i, "acptdd").toDate().getAddDate(day,"D").getDateFormat());
- dsf_makeValue(ds_main_antmstdi, "status", "string", "i", i);
- }
- }
- function grp_sea_btn_matersave_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TXABD00201";
- oParam.service = "dietbaseapp.DietMenu";
- oParam.method = "reqExeSbsInfoList";
- oParam.inds = "req=ds_main_antmstdi";
- oParam.outds = "";
- oParam.async = false;
- //oParam.error = false;
- oParam.callback = "cf_TXABD00201";
- tranf_submit(oParam);
- }
- function cf_TXABD00201(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0)
- {
- sysf_messageBox("저장에 실패했습니다. 일자를 확인해 주십시오.", "E");
- return;
- }
- else grp_sea.btn_search.click();
- }
- function btn_menu_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SMABD00100", "SMABD00100", "", "", "", "", "", "", "", "", "", "", "M");
- }
- function btn_cmt_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SMABD00400", "SMABD00400", "", "", "", "", "", "", "", "", "", "", "M");
- }
- function btn_select_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SMABD00200", "SMABD00200", "", "", "", "", "", "", "", "", "", "", "M");
- }
- ]]></Script>
- </Form>
- </FDL>
|