SMABD00300_SBS식단복사.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMABD00300" classname="SMABD00300_SBS식단복사" inheritanceid="" position="absolute 0 0 1200 790" titletext="New Form" oninit="SMABD00300_oninit" onload="SMABD00300_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="선택식작성" onclick="btn_select_onclick" class="btn3" position="absolute 0 24 96 46" enable="false"/>
  9. <Button id="btn_menu" taborder="2" text="메뉴관리" class="btn3" position="absolute 178 24 258 46" onclick="btn_menu_onclick" enable="false"/>
  10. <Button id="btn_cmt" taborder="3" text="원산지표시" onclick="btn_cmt_onclick" class="btn3" position="absolute 260 24 356 46" enable="false"/>
  11. <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">
  12. <Formats>
  13. <Format id="default">
  14. <Columns>
  15. <Column size="20" band="left"/>
  16. <Column size="92"/>
  17. <Column size="55"/>
  18. <Column size="54"/>
  19. <Column size="90"/>
  20. <Column size="90"/>
  21. <Column size="90"/>
  22. <Column size="90"/>
  23. <Column size="90"/>
  24. <Column size="90"/>
  25. <Column size="90"/>
  26. <Column size="90"/>
  27. </Columns>
  28. <Rows>
  29. <Row size="24" band="head"/>
  30. <Row size="24"/>
  31. </Rows>
  32. <Band id="head">
  33. <Cell/>
  34. <Cell col="1" text="년 월 일"/>
  35. <Cell col="2" text="끼니"/>
  36. <Cell col="3" text="분류"/>
  37. <Cell col="4" text="1"/>
  38. <Cell col="5" text="2"/>
  39. <Cell col="6" text="3"/>
  40. <Cell col="7" text="4"/>
  41. <Cell col="8" text="5"/>
  42. <Cell col="9" text="6"/>
  43. <Cell col="10" text="7"/>
  44. <Cell col="11" text="8"/>
  45. </Band>
  46. <Band id="body">
  47. <Cell celltype="head" expr="expr:currow + 1"/>
  48. <Cell col="1" displaytype="date" text="bind:acptdd" calendardisplaynulltype="nulltext"/>
  49. <Cell col="2" displaytype="combo" style="align:center middle;" text="bind:mealflag" editautoselect="true" editdisplay="display" combodataset="ds_cmb_mealflag" combocodecol="value" combodatacol="label"/>
  50. <Cell col="3" displaytype="combo" style="align:center middle;" text="bind:gubun" editautoselect="true" editdisplay="display" combodataset="ds_cmb_gubun" combocodecol="value" combodatacol="label"/>
  51. <Cell col="4" style="align:left middle;padding:0 0 0 3;" text="bind:menu1nm" wordwrap="word"/>
  52. <Cell col="5" style="align:left middle;padding:0 0 0 3;" text="bind:menu2nm" wordwrap="word"/>
  53. <Cell col="6" style="align:left middle;padding:0 0 0 3;" text="bind:menu3nm" wordwrap="word"/>
  54. <Cell col="7" style="align:left middle;padding:0 0 0 3;" text="bind:menu4nm" wordwrap="word"/>
  55. <Cell col="8" style="align:left middle;padding:0 0 0 3;" text="bind:menu5nm" wordwrap="word"/>
  56. <Cell col="9" style="align:left middle;padding:0 0 0 3;" text="bind:menu6nm" wordwrap="word"/>
  57. <Cell col="10" style="align:left middle;padding:0 0 0 3;" text="bind:menu7nm" wordwrap="word"/>
  58. <Cell col="11" style="align:left middle;padding:0 0 0 3;" text="bind:menu8nm" wordwrap="word"/>
  59. </Band>
  60. </Format>
  61. </Formats>
  62. </Grid>
  63. <Shape id="line14" class="line_10" position="absolute 0 111 1195 117" anchor="left top right"/>
  64. <Static id="caption28" text="메뉴관리" class="tit_2" position="absolute 0 95 131 111"/>
  65. <Div id="grp_sea" anchor="left top right" taborder="6" class="div_SA2" position="absolute 0 47 1195 87">
  66. <Layouts>
  67. <Layout>
  68. <Calendar id="cal_copyfrm" taborder="11" autoselect="true" autoskip="true" position="absolute 574 9 681 29"/>
  69. <Shape id="line20" linetype="vertical" class="line_4" position="absolute 958 12 964 29" anchor="top right"/>
  70. <Button id="btn_search" taborder="12" text="조회" onclick="grp_sea_btn_search_onclick" class="btn1" position="absolute 974 9 1030 31" anchor="top right"/>
  71. <Calendar id="cal_fromdd" taborder="13" autoselect="true" autoskip="true" position="absolute 181 9 288 29"/>
  72. <Static id="stat" text="~" position="absolute 295 8 309 31"/>
  73. <Calendar id="cal_todd" taborder="14" autoselect="true" position="absolute 312 9 419 29"/>
  74. <Static id="caption00" text="식단복사 To :" class="search_name" position="absolute 462 11 559 28"/>
  75. <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"/>
  76. <Static id="caption50" text="식단복사 From :" class="search_name" position="absolute 62 11 191 28"/>
  77. <Button id="btn_copy" taborder="16" text="식단복사" class="btn4" position="absolute 1038 9 1118 31" anchor="top right" onclick="grp_sea_btn_copy_onclick"/>
  78. </Layout>
  79. </Layouts>
  80. </Div>
  81. <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 ;"/>
  82. </Layout>
  83. </Layouts>
  84. <Objects>
  85. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  86. <ColumnInfo>
  87. <Column id="fromdd" type="STRING" size="256"/>
  88. <Column id="todd" type="STRING" size="256"/>
  89. <Column id="cp_frm" type="STRING" size="256"/>
  90. </ColumnInfo>
  91. <Rows>
  92. <Row/>
  93. </Rows>
  94. </Dataset>
  95. <Dataset id="ds_main_antmstdi" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  96. <Dataset id="ds_cmb_mealflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  97. <ColumnInfo>
  98. <Column id="label" type="STRING" size="256"/>
  99. <Column id="value" type="STRING" size="256"/>
  100. </ColumnInfo>
  101. <Rows>
  102. <Row>
  103. <Col id="label">중식</Col>
  104. <Col id="value">2</Col>
  105. </Row>
  106. <Row>
  107. <Col id="label">석식</Col>
  108. <Col id="value">3</Col>
  109. </Row>
  110. </Rows>
  111. </Dataset>
  112. <Dataset id="ds_cmb_gubun" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  113. <ColumnInfo>
  114. <Column id="label" type="STRING" size="256"/>
  115. <Column id="value" type="STRING" size="256"/>
  116. </ColumnInfo>
  117. <Rows>
  118. <Row>
  119. <Col id="label">A</Col>
  120. <Col id="value">A</Col>
  121. </Row>
  122. <Row>
  123. <Col id="label">B</Col>
  124. <Col id="value">B</Col>
  125. </Row>
  126. </Rows>
  127. </Dataset>
  128. </Objects>
  129. <Bind>
  130. <BindItem id="item0" compid="grp_sea.cal_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  131. <BindItem id="item1" compid="grp_sea.cal_todd" propid="value" datasetid="ds_send" columnid="todd"/>
  132. <BindItem id="item2" compid="grp_sea.cal_copyfrm" propid="value" datasetid="ds_send" columnid="cp_frm"/>
  133. </Bind>
  134. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  135. * System Name : 경대 의료정보시스템
  136. * Job Name : ast_dietxp -> SMANB00100
  137. * Creator : yjh
  138. * Make Date : 2017-09-28
  139. * Description :
  140. *---------------------------------------------------------------------------------------
  141. * Modify Date Modifier Modify Description
  142. *---------------------------------------------------------------------------------------
  143. * 2017-09-28 yjh TF->XP
  144. *
  145. *---------------------------------------------------------------------------------------
  146. ****************************************************************************************/
  147. include "com_commonxp::comm_main.xjs";
  148. function SMABD00300_oninit(obj:Form, e:InitEventInfo)
  149. {
  150. frmf_initForm(obj);
  151. }
  152. function SMABD00300_onload(obj:Form, e:LoadEventInfo)
  153. {
  154. grdf_initGrid(grd_antmstdi);
  155. grdf_setRowTypeIcon(grd_antmstdi, 0);
  156. ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
  157. ds_send.setColumn(0, "todd", utlf_getCurrentDate());
  158. }
  159. function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  160. {
  161. var oParam = {};
  162. oParam.id = "TRABD00100";
  163. oParam.service = "dietbaseapp.DietMenu";
  164. oParam.method = "reqGetSbsCopyList";
  165. oParam.inds = "req=ds_send";
  166. oParam.outds = "ds_main_antmstdi=ret";
  167. oParam.async = false;
  168. //oParam.callback = "cf_TRANB00105";
  169. tranf_submit(oParam);
  170. }
  171. function grp_sea_btn_copy_onclick(obj:Button, e:ClickEventInfo)
  172. {
  173. var sTarget = ds_send.getColumn(0, "cp_frm");
  174. var sSource = ds_main_antmstdi.getColumn(0, "acptdd");
  175. var day = utlf_diffDate(sSource, sTarget);
  176. for (var i = 0; i < ds_main_antmstdi.rowcount; i++ ) {
  177. ds_main_antmstdi.setColumn(i, "acptdd", ds_main_antmstdi.getColumn(i, "acptdd").toDate().getAddDate(day,"D").getDateFormat());
  178. dsf_makeValue(ds_main_antmstdi, "status", "string", "i", i);
  179. }
  180. }
  181. function grp_sea_btn_matersave_onclick(obj:Button, e:ClickEventInfo)
  182. {
  183. var oParam = {};
  184. oParam.id = "TXABD00201";
  185. oParam.service = "dietbaseapp.DietMenu";
  186. oParam.method = "reqExeSbsInfoList";
  187. oParam.inds = "req=ds_main_antmstdi";
  188. oParam.outds = "";
  189. oParam.async = false;
  190. //oParam.error = false;
  191. oParam.callback = "cf_TXABD00201";
  192. tranf_submit(oParam);
  193. }
  194. function cf_TXABD00201(sSvcId, nErrorCode, sErrorMsg)
  195. {
  196. if(nErrorCode < 0)
  197. {
  198. sysf_messageBox("저장에 실패했습니다. 일자를 확인해 주십시오.", "E");
  199. return;
  200. }
  201. else grp_sea.btn_search.click();
  202. }
  203. function btn_menu_onclick(obj:Button, e:ClickEventInfo)
  204. {
  205. frmf_modal("SMABD00100", "SMABD00100", "", "", "", "", "", "", "", "", "", "", "M");
  206. }
  207. function btn_cmt_onclick(obj:Button, e:ClickEventInfo)
  208. {
  209. frmf_modal("SMABD00400", "SMABD00400", "", "", "", "", "", "", "", "", "", "", "M");
  210. }
  211. function btn_select_onclick(obj:Button, e:ClickEventInfo)
  212. {
  213. frmf_modal("SMABD00200", "SMABD00200", "", "", "", "", "", "", "", "", "", "", "M");
  214. }
  215. ]]></Script>
  216. </Form>
  217. </FDL>