123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMABD00200" classname="SMABD00200_SBS식사정보관리" inheritanceid="" position="absolute 0 0 1200 790" titletext="New Form" oninit="SMABD00200_oninit" onload="SMABD00200_onload">
- <Layouts>
- <Layout>
- <Static id="caption1" text="SBS 식사정보관리" class="tit_1" position="absolute 0 0 160 23"/>
- <Button id="btn_copy" taborder="2" text="식단복사" class="btn3" position="absolute 97 24 177 46" onclick="btn_copy_onclick"/>
- <Button id="btn_menu" taborder="3" text="메뉴관리" class="btn3" position="absolute 179 24 259 46" onclick="btn_menu_onclick"/>
- <Div id="grp_sea" anchor="left top right" taborder="4" class="div_SA2" position="absolute 0 47 800 87">
- <Layouts>
- <Layout>
- <Static id="caption50" text="년 월 일 :" class="search_name" position="absolute 7 12 80 29" anchor="default"/>
- <Shape id="line20" linetype="vertical" class="line_4" position="absolute 712 12 718 29" anchor="top right"/>
- <Button id="btn_search" taborder="5" text="조회" onclick="grp_sea_btn_search_onclick" class="btn1" position="absolute 728 9 784 31" anchor="top right"/>
- <Calendar id="cal_01" taborder="6" position="absolute 87 9 242 29" anchor="default" autoselect="true" style="align:center middle;"/>
- <Button id="btn_before1" taborder="7" class="icon_pre" position="absolute 245 12 263 27" onclick="grp_sea_btn_before1_onclick"/>
- <Button id="btn_next1" taborder="8" class="icon_next" position="absolute 264 12 282 27" onclick="grp_sea_btn_next1_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_cmt" taborder="5" text="원산지 표시" class="btn3" position="absolute 261 24 357 46" onclick="btn_cmt_onclick"/>
- <Shape id="line14" class="line_10" position="absolute 0 111 800 117" anchor="left top right"/>
- <Grid id="grd_antmstdi" taborder="6" binddataset="ds_main_antmstdi" useinputpanel="false" selecttype="multiarea" cellsizingtype="col" autofittype="col" oncellclick="grd_anbmmenu_oncellclick" position="absolute 0 116 800 756" anchor="all" autoenter="select" oncelldblclick="grd_antmstdi_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="70"/>
- <Column size="36"/>
- <Column size="36"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="35"/>
- </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" edittype="expr:getRowType(currow) == 2 ? 'date' : 'none'" text="bind:acptdd" calendardisplaynulltype="nulltext"/>
- <Cell col="2" displaytype="combo" edittype="expr:getRowType(currow) == 2 ? 'combo' : 'none'" style="align:center middle;" text="bind:mealflag" editautoselect="true" editdisplay="display" combodataset="ds_cmb_mealflag" combocodecol="value" combodatacol="label"/>
- <Cell col="3" displaytype="combo" edittype="expr:getRowType(currow) == 2 ? 'combo' : 'none'" 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:2 2 2 2;" text="bind:menu1nm" wordwrap="word"/>
- <Cell col="5" style="align:left middle;padding:2 2 2 2;" text="bind:menu2nm" wordwrap="word"/>
- <Cell col="6" style="align:left middle;padding:2 2 2 2;" text="bind:menu3nm" wordwrap="word"/>
- <Cell col="7" style="align:left middle;padding:2 2 2 2;" text="bind:menu4nm" wordwrap="word"/>
- <Cell col="8" style="align:left middle;padding:2 2 2 2;" text="bind:menu5nm" wordwrap="word"/>
- <Cell col="9" style="align:left middle;padding:2 2 2 2;" text="bind:menu6nm" wordwrap="word"/>
- <Cell col="10" style="align:left middle;padding:2 2 2 2;" text="bind:menu7nm" wordwrap="word"/>
- <Cell col="11" style="align:left middle;padding:2 2 2 2;" text="bind:menu8nm" wordwrap="word"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption28" text="메뉴관리" class="tit_2" position="absolute 0 95 131 111"/>
- <Button id="btn_prnt" taborder="7" text="출력" position="absolute 621 757 675 779" class="btn6" anchor="right bottom" onclick="btn_prnt_onclick"/>
- <Button id="btn_init" taborder="8" text="초기화" wordwrap="word" onclick="btn_init_onclick" class="btn4" position="absolute 676 757 743 779" anchor="right bottom"/>
- <Button id="btn_save" taborder="9" text="저장" wordwrap="word" onclick="btn_save_onclick" class="btn4" position="absolute 744 757 800 779" anchor="right bottom"/>
- <Button id="btn_add" taborder="10" text="행추가" class="btn2" position="absolute 692 89 745 111" anchor="top right" onclick="btn_add_onclick"/>
- <Button id="btn_del" taborder="11" text="행삭제" onclick="btn_del_onclick" class="btn2" position="absolute 747 89 800 111" anchor="top right"/>
- <Grid id="grd_anbmmenu" taborder="12" binddataset="ds_main_anbmmenu" useinputpanel="false" selecttype="multirow" cellsizingtype="col" autofittype="col" position="absolute 812 116 1188 380" anchor="top right bottom" oncelldblclick="grd_anbmmenu_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="81"/>
- <Column size="183"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="식단코드"/>
- <Cell col="1" text="식단명"/>
- </Band>
- <Band id="body">
- <Cell displaytype="text" style="align:center middle;" text="bind:menuseq"/>
- <Cell col="1" displaytype="text" style="align:left middle;" text="bind:menunm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line00" class="line_10" position="absolute 812 111 1188 117" anchor="top right"/>
- <Static id="caption00" text="메뉴관리" class="tit_2" position="absolute 812 95 943 111" anchor="top right"/>
- <Div id="grp_sea2" anchor="top right" taborder="13" class="div_SA2" position="absolute 812 47 1187 87">
- <Layouts>
- <Layout>
- <Edit id="ipt_maternm" taborder="11" autoselect="true" position="absolute 83 10 221 29" anchor="default" onkeydown="grp_sea2_ipt_maternm_onkeydown" imemode="hangul"/>
- <Static id="caption3" text="검색 :" class="search_name" position="absolute 16 12 81 29" anchor="default"/>
- <Shape id="line20" linetype="vertical" class="line_4" position="absolute 263 12 269 29" anchor="default"/>
- <Button id="btn_search2" taborder="12" text="조회" class="btn1" position="absolute 281 9 337 31" anchor="default" onclick="grp_sea2_btn_search2_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption02" text="원산지" class="tit_2" position="absolute 812 392 943 408" anchor="right bottom"/>
- <Shape id="line01" class="line_10" position="absolute 811 408 1187 414" anchor="right bottom"/>
- <Grid id="grd_antmmema" taborder="14" binddataset="ds_main_antmmema" useinputpanel="false" selecttype="multirow" cellsizingtype="col" autofittype="col" position="absolute 811 413 1187 757" anchor="right bottom">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="81"/>
- <Column size="107"/>
- <Column size="135"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="재료코드"/>
- <Cell col="1" text="재료명"/>
- <Cell col="2" text="원산지"/>
- </Band>
- <Band id="body">
- <Cell displaytype="text" style="align:center middle;" text="bind:materseq"/>
- <Cell col="1" displaytype="text" style="align:center middle;" text="bind:maternm"/>
- <Cell col="2" displaytype="text" style="align:center middle;" text="bind:origin"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_select" taborder="15" text="선택식작성" onclick="btn_select_onclick" class="btn3" position="absolute 0 24 96 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="instcd" type="STRING" size="256"/>
- <Column id="acptdd" type="STRING" size="256"/>
- <Column id="menunm" 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">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="acptdd" type="STRING" size="256"/>
- <Column id="mealflag" type="STRING" size="256"/>
- <Column id="gubun" type="STRING" size="256"/>
- <Column id="menu1" type="STRING" size="256"/>
- <Column id="menu2" type="STRING" size="256"/>
- <Column id="menu3" type="STRING" size="256"/>
- <Column id="menu4" type="STRING" size="256"/>
- <Column id="menu5" type="STRING" size="256"/>
- <Column id="menu6" type="STRING" size="256"/>
- <Column id="menu7" type="STRING" size="256"/>
- <Column id="menu8" type="STRING" size="256"/>
- <Column id="menu1nm" type="STRING" size="256"/>
- <Column id="menu2nm" type="STRING" size="256"/>
- <Column id="menu3nm" type="STRING" size="256"/>
- <Column id="menu4nm" type="STRING" size="256"/>
- <Column id="menu5nm" type="STRING" size="256"/>
- <Column id="menu6nm" type="STRING" size="256"/>
- <Column id="menu7nm" type="STRING" size="256"/>
- <Column id="menu8nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_anbmmenu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_antmmema" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="menuseq" type="STRING" size="256"/>
- <Column id="materseq" type="STRING" size="256"/>
- <Column id="maternm" type="STRING" size="256"/>
- <Column id="origin" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <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_01" propid="value" datasetid="ds_send" columnid="acptdd"/>
- <BindItem id="item1" compid="grp_sea2.ipt_maternm" propid="value" datasetid="ds_send" columnid="menunm"/>
- </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 SMABD00200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMABD00200_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_antmstdi);
- grdf_setRowTypeIcon(grd_antmstdi, 0);
- grdf_initGrid(grd_anbmmenu);
- grdf_initGrid(grd_antmmema);
-
- ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
- ds_send.setColumn(0, "acptdd", utlf_getCurrentDate());
- }
- function grp_sea2_ipt_maternm_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- grp_sea2.btn_search2.click();
- }
- }
- function grp_sea2_btn_search2_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_antmmema.clearData();
-
- var oParam = {};
- oParam.id = "TRABD00100";
- oParam.service = "dietbaseapp.DietMenu";
- oParam.method = "reqGetSbsMenuList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_anbmmenu=ret";
- oParam.async = false;
- //oParam.callback = "cf_TRANB00105";
- tranf_submit(oParam);
- }
- function btn_init_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_anbmmenu.clearData();
- ds_main_antmmema.clearData();
- ds_main_antmstdi.clearData();
-
- ds_send.clearData();
- ds_send.addRow();
- ds_send2.clearData();
- ds_send2.addRow();
- }
- function grd_anbmmenu_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- ds_send2.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
- ds_send2.setColumn(0, "menuseq", ds_main_anbmmenu.getColumn(ds_main_anbmmenu.rowposition, "menuseq"));
-
- var oParam = {};
- oParam.id = "TRABD00103";
- oParam.service = "dietbaseapp.DietMenu";
- oParam.method = "reqGetSbsMenuList3";
- oParam.inds = "req=ds_send2";
- oParam.outds = "ds_main_antmmema=ret";
- oParam.async = false;
- //oParam.callback = "cf_TRANB00105";
- tranf_submit(oParam);
-
- var columnid = grd_antmstdi.getCellProperty("Body", grd_antmstdi.currentcol, "text");
- var columnnm = String(columnid).substr(5,9)
- var columncd = String(columnid).substr(5,5)
-
- ds_main_antmstdi.setColumn(ds_main_antmstdi.rowposition, columnnm, ds_main_anbmmenu.getColumn(ds_main_anbmmenu.rowposition, "menunm"));
- ds_main_antmstdi.setColumn(ds_main_antmstdi.rowposition, columncd, ds_main_anbmmenu.getColumn(ds_main_anbmmenu.rowposition, "menuseq"));
- }
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRABD00200";
- oParam.service = "dietbaseapp.DietMenu";
- oParam.method = "reqGetSbsInfoList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_antmstdi=ret";
- oParam.async = false;
- //oParam.callback = "cf_TRANB00105";
- tranf_submit(oParam);
- }
- function btn_add_onclick(obj:Button, e:ClickEventInfo)
- {
- var addRow = ds_main_antmstdi.addRow();
- dsf_makeValue(ds_main_antmstdi, "instcd", "string", sysf_getUserInfo("dutplceinstcd"), addRow);
- }
- function grp_sea_btn_before1_onclick(obj:Button, e:ClickEventInfo)
- {
- var ym = ds_send.getColumn(0, "acptdd");
- ym = ym.toDate().getAddDate(-1, "D");
- ym = ym.getDateFormat();
- ds_send.setColumn(0, "acptdd", ym);
- }
- function grp_sea_btn_next1_onclick(obj:Button, e:ClickEventInfo)
- {
- var ym = ds_send.getColumn(0, "acptdd");
- ym = ym.toDate().getAddDate(1, "D");
- ym = ym.getDateFormat();
- ds_send.setColumn(0, "acptdd", ym);
- }
- function btn_del_onclick(obj:Button, e:ClickEventInfo)
- {
- var rows = grdf_getSelectedRows(grd_antmstdi);
- for(var i = rows.length-1; i >= 0; i--)
- {
- var m_row = rows[i];
- if(ds_main_antmstdi.getRowType(m_row) == 2)
- {
- ds_main_antmstdi.deleteRow(m_row);
- }
- else
- {
- ds_main_antmstdi.updatecontrol = false;
- ds_main_antmstdi.setRowType(m_row, "d");
- ds_main_antmstdi.updatecontrol = true;
- }
- }
- }
- function btn_copy_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_open("SMABD00300", "SMABD00300", "", "", "", "", "", "", "", "", "", "", "M");
- }
- function btn_menu_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_open("SMABD00100", "SMABD00100", "", "", "", "", "", "", "", "", "", "", "M");
- }
- function btn_cmt_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_open("SMABD00400", "SMABD00400", "", "", "", "", "", "", "", "", "", "", "M");
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TXABD00201";
- oParam.service = "dietbaseapp.DietMenu";
- oParam.method = "reqExeSbsInfoList";
- oParam.inds = "req=ds_main_antmstdi:u";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXABD00201";
- tranf_submit(oParam);
- }
- function cf_TXABD00201(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- else grp_sea.btn_search.click();
- }
- function grd_antmstdi_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var colID = obj.getCellProperty("Body", e.cell, "text");
- colNM = colID.replace("bind:", "")
- colCD = colNM.replace("nm", "");
-
- ds_main_antmstdi.setColumn(e.row, colNM, "");
- ds_main_antmstdi.setColumn(e.row, colCD, "");
- }
- function btn_prnt_onclick(obj:Button, e:ClickEventInfo)
- {trace(utlf_getDayKor(ds_send.getColumn(0, "acptdd")));
- var objParam = new Object();
- objParam.searchdd = ds_send.getColumn(0, "acptdd");
- objParam.searchday = utlf_getDayKor(ds_send.getColumn(0, "acptdd"));
- var option = "";
- rptf_exeReportPreview30(["RPABD00200"],[objParam], option);
- }
- ]]></Script>
- </Form>
- </FDL>
|