SMABD00400_SBS원산지표시.xfdl 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMABD00400" classname="SMABD00400_SBS원산지표시" inheritanceid="" position="absolute 0 0 1200 790" titletext="New Form" oninit="SMABD00400_oninit" onload="SMABD00400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption1" text="SBS 원산지표시" class="tit_1" position="absolute 0 0 160 23"/>
  8. <Button id="btn_select" taborder="1" text="선택식작성" class="btn3" position="absolute 0 24 96 46" onclick="btn_select_onclick" enable="false"/>
  9. <Button id="btn_menu" taborder="2" text="메뉴관리" class="btn3" position="absolute 178 24 258 46" onclick="btn_menu_onclick" enableevent="true" enable="false"/>
  10. <Button id="btn_copy" taborder="3" text="식단복사" class="btn3" position="absolute 97 24 177 46" onclick="btn_copy_onclick" enableevent="true" enable="false"/>
  11. <Static id="caption00" text="원산지" class="tit_2" position="absolute 0 55 131 71" anchor="default"/>
  12. <Shape id="line01" class="line_10" position="absolute 0 71 630 77" anchor="left top right"/>
  13. <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">
  14. <Formats>
  15. <Format id="default">
  16. <Columns>
  17. <Column size="20" band="left"/>
  18. <Column size="81"/>
  19. <Column size="107"/>
  20. <Column size="286"/>
  21. </Columns>
  22. <Rows>
  23. <Row size="24" band="head"/>
  24. <Row size="33"/>
  25. </Rows>
  26. <Band id="head">
  27. <Cell/>
  28. <Cell col="1" text="종류"/>
  29. <Cell col="2" text="원산지"/>
  30. <Cell col="3" text="요리명"/>
  31. </Band>
  32. <Band id="body">
  33. <Cell celltype="head" expr="expr:currow + 1"/>
  34. <Cell col="1" displaytype="text" edittype="textarea" style="align:center middle;" text="bind:otype" wordwrap="word" editautoselect="true" autosizerow="limitmin"/>
  35. <Cell col="2" displaytype="text" edittype="textarea" style="align:center middle;" text="bind:origin" wordwrap="word" editautoselect="true" autosizerow="limitmin"/>
  36. <Cell col="3" displaytype="text" edittype="textarea" style="align:left middle;" text="bind:foodnm" wordwrap="word" editautoselect="true" autosizerow="limitmin"/>
  37. </Band>
  38. </Format>
  39. </Formats>
  40. </Grid>
  41. <Button id="btn_search" taborder="5" text="조회" class="btn1" position="absolute 517 49 573 71" anchor="top right" onclick="btn_search_onclick"/>
  42. <Button id="btn_add" taborder="6" text="행추가" class="btn2" position="absolute 407 49 460 71" anchor="top right" onclick="btn_add_onclick"/>
  43. <Button id="btn_del" taborder="7" text="행삭제" onclick="btn_del_onclick" class="btn2" position="absolute 462 49 515 71" anchor="top right"/>
  44. <Button id="btn_matersave" taborder="8" text="저장" wordwrap="word" class="btn4" position="absolute 574 49 630 71" anchor="top right" onclick="btn_matersave_onclick"/>
  45. <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 ;"/>
  46. </Layout>
  47. </Layouts>
  48. <Objects>
  49. <Dataset id="ds_main_anbmorig" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  50. <ColumnInfo>
  51. <Column id="instcd" type="STRING" size="256"/>
  52. <Column id="origseq" type="STRING" size="256"/>
  53. <Column id="otype" type="STRING" size="256"/>
  54. <Column id="origin" type="STRING" size="256"/>
  55. <Column id="foodnm" type="STRING" size="256"/>
  56. </ColumnInfo>
  57. </Dataset>
  58. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  59. <ColumnInfo>
  60. <Column id="instcd" type="STRING" size="256"/>
  61. </ColumnInfo>
  62. <Rows>
  63. <Row/>
  64. </Rows>
  65. </Dataset>
  66. </Objects>
  67. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  68. * System Name : 경대 의료정보시스템
  69. * Job Name : ast_dietxp -> SMANB00100
  70. * Creator : yjh
  71. * Make Date : 2017-09-28
  72. * Description :
  73. *---------------------------------------------------------------------------------------
  74. * Modify Date Modifier Modify Description
  75. *---------------------------------------------------------------------------------------
  76. * 2017-09-28 yjh TF->XP
  77. *
  78. *---------------------------------------------------------------------------------------
  79. ****************************************************************************************/
  80. include "com_commonxp::comm_main.xjs";
  81. function SMABD00400_oninit(obj:Form, e:InitEventInfo)
  82. {
  83. frmf_initForm(obj);
  84. }
  85. function SMABD00400_onload(obj:Form, e:LoadEventInfo)
  86. {
  87. grdf_initGrid(grd_anbmorig);
  88. grdf_setRowTypeIcon(grd_anbmorig, 0);
  89. ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  90. }
  91. function btn_select_onclick(obj:Button, e:ClickEventInfo)
  92. {
  93. frmf_modal("SMABD00200", "SMABD00200", "", "", "", "", "", "", "", "", "", "", "M");
  94. }
  95. function btn_copy_onclick(obj:Button, e:ClickEventInfo)
  96. {
  97. frmf_modal("SMABD00300", "SMABD00300", "", "", "", "", "", "", "", "", "", "", "M");
  98. }
  99. function btn_menu_onclick(obj:Button, e:ClickEventInfo)
  100. {
  101. frmf_modal("SMABD00100", "SMABD00100", "", "", "", "", "", "", "", "", "", "", "M");
  102. }
  103. function btn_add_onclick(obj:Button, e:ClickEventInfo)
  104. {
  105. ds_main_anbmorig.addRow();
  106. }
  107. function btn_del_onclick(obj:Button, e:ClickEventInfo)
  108. {
  109. if(ds_main_anbmorig.getRowType(ds_main_anbmorig.rowposition) == 2)
  110. {
  111. ds_main_anbmorig.deleteRow(ds_main_anbmorig.rowposition);
  112. }
  113. else
  114. {
  115. ds_main_anbmorig.updatecontrol = false;
  116. ds_main_anbmorig.setRowType(ds_main_anbmorig.rowposition, "d");
  117. ds_main_anbmorig.updatecontrol = true;
  118. }
  119. }
  120. function btn_search_onclick(obj:Button, e:ClickEventInfo)
  121. {
  122. var oParam = {};
  123. oParam.id = "TRABD00400";
  124. oParam.service = "dietbaseapp.DietMenu";
  125. oParam.method = "reqGetSbsOriList";
  126. oParam.inds = "req=ds_send";
  127. oParam.outds = "ds_main_anbmorig=ret";
  128. oParam.async = false;
  129. tranf_submit(oParam);
  130. }
  131. function btn_matersave_onclick(obj:Button, e:ClickEventInfo)
  132. {
  133. var oParam = {};
  134. oParam.id = "TXABD00400";
  135. oParam.service = "dietbaseapp.DietMenu";
  136. oParam.method = "reqExeSbsOriList";
  137. oParam.inds = "req=ds_main_anbmorig:u";
  138. oParam.outds = "";
  139. oParam.async = false;
  140. oParam.callback = "cf_TXABD00400";
  141. tranf_submit(oParam);
  142. }
  143. function cf_TXABD00400(sSvcId, nErrorCode, sErrorMsg)
  144. {
  145. if(nErrorCode < 0) return;
  146. else btn_search.click();
  147. }
  148. ]]></Script>
  149. </Form>
  150. </FDL>