123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMABD00400" classname="SMABD00400_SBS원산지표시" inheritanceid="" position="absolute 0 0 1200 790" titletext="New Form" oninit="SMABD00400_oninit" onload="SMABD00400_onload">
- <Layouts>
- <Layout>
- <Static id="caption1" text="SBS 원산지표시" class="tit_1" position="absolute 0 0 160 23"/>
- <Button id="btn_select" taborder="1" text="선택식작성" class="btn3" position="absolute 0 24 96 46" onclick="btn_select_onclick" enable="false"/>
- <Button id="btn_menu" taborder="2" text="메뉴관리" class="btn3" position="absolute 178 24 258 46" onclick="btn_menu_onclick" enableevent="true" enable="false"/>
- <Button id="btn_copy" taborder="3" text="식단복사" class="btn3" position="absolute 97 24 177 46" onclick="btn_copy_onclick" enableevent="true" enable="false"/>
- <Static id="caption00" text="원산지" class="tit_2" position="absolute 0 55 131 71" anchor="default"/>
- <Shape id="line01" class="line_10" position="absolute 0 71 630 77" anchor="left top right"/>
- <Grid id="grd_anbmorig" taborder="4" binddataset="ds_main_anbmorig" useinputpanel="false" selecttype="multirow" cellsizingtype="both" autofittype="col" oncelldblclick="grd_anbmmate_oncelldblclick" position="absolute 0 76 630 676" anchor="all" extendsizetype="col" autosizingtype="col" autoenter="select">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="81"/>
- <Column size="107"/>
- <Column size="286"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="33"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="종류"/>
- <Cell col="2" text="원산지"/>
- <Cell col="3" text="요리명"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" displaytype="text" edittype="textarea" style="align:center middle;" text="bind:otype" wordwrap="word" editautoselect="true" autosizerow="limitmin"/>
- <Cell col="2" displaytype="text" edittype="textarea" style="align:center middle;" text="bind:origin" wordwrap="word" editautoselect="true" autosizerow="limitmin"/>
- <Cell col="3" displaytype="text" edittype="textarea" style="align:left middle;" text="bind:foodnm" wordwrap="word" editautoselect="true" autosizerow="limitmin"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_search" taborder="5" text="조회" class="btn1" position="absolute 517 49 573 71" anchor="top right" onclick="btn_search_onclick"/>
- <Button id="btn_add" taborder="6" text="행추가" class="btn2" position="absolute 407 49 460 71" anchor="top right" onclick="btn_add_onclick"/>
- <Button id="btn_del" taborder="7" text="행삭제" onclick="btn_del_onclick" class="btn2" position="absolute 462 49 515 71" anchor="top right"/>
- <Button id="btn_matersave" taborder="8" text="저장" wordwrap="word" class="btn4" position="absolute 574 49 630 71" anchor="top right" onclick="btn_matersave_onclick"/>
- <Button id="btn_cmt" taborder="9" text="원산지 표시" onclick="btn_cmt_onclick" class="btn3" position="absolute 259 24 355 46" style="background:darkgoldenrod URL('theme://images/icon_link_N.png') left middle;border:1 solid black ;"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_anbmorig" 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="origseq" type="STRING" size="256"/>
- <Column id="otype" type="STRING" size="256"/>
- <Column id="origin" type="STRING" size="256"/>
- <Column id="foodnm" type="STRING" size="256"/>
- </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="instcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <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 SMABD00400_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMABD00400_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_anbmorig);
- grdf_setRowTypeIcon(grd_anbmorig, 0);
-
- ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
- }
- function btn_select_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SMABD00200", "SMABD00200", "", "", "", "", "", "", "", "", "", "", "M");
- }
- function btn_copy_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SMABD00300", "SMABD00300", "", "", "", "", "", "", "", "", "", "", "M");
- }
- function btn_menu_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SMABD00100", "SMABD00100", "", "", "", "", "", "", "", "", "", "", "M");
- }
- function btn_add_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_anbmorig.addRow();
- }
- function btn_del_onclick(obj:Button, e:ClickEventInfo)
- {
- if(ds_main_anbmorig.getRowType(ds_main_anbmorig.rowposition) == 2)
- {
- ds_main_anbmorig.deleteRow(ds_main_anbmorig.rowposition);
- }
- else
- {
- ds_main_anbmorig.updatecontrol = false;
- ds_main_anbmorig.setRowType(ds_main_anbmorig.rowposition, "d");
- ds_main_anbmorig.updatecontrol = true;
- }
- }
- function btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRABD00400";
- oParam.service = "dietbaseapp.DietMenu";
- oParam.method = "reqGetSbsOriList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_anbmorig=ret";
- oParam.async = false;
- tranf_submit(oParam);
- }
- function btn_matersave_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TXABD00400";
- oParam.service = "dietbaseapp.DietMenu";
- oParam.method = "reqExeSbsOriList";
- oParam.inds = "req=ds_main_anbmorig:u";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXABD00400";
- tranf_submit(oParam);
- }
- function cf_TXABD00400(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- else btn_search.click();
- }
- ]]></Script>
- </Form>
- </FDL>
|