SMANB00700_예외식품관리.xfdl 51 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMANB00700" position="absolute 0 0 870 680" titletext="영양 예외식품관리" oninit="SMANB00700_oninit" onload="SMANB00700_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 62 855 674" id="grp_biz" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Static text="예외 품목 리스트" position="absolute 0 7 232 23" id="caption1" class="tit_2"/>
  11. <Shape position="absolute 0 23 400 29" linetype="horizontal" id="line1" class="line_10"/>
  12. <Grid position="absolute 0 28 400 605" align="align:center middle;" id="dtg_etcdet" scrollbars="autoboth" binddataset="ds_main_etcclsdetl_data" oncellclick="grp_biz_dtg_etcdet_oncellclick">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="20" band="left"/>
  17. <Column size="92"/>
  18. <Column size="195"/>
  19. <Column size="75"/>
  20. <Column size="0"/>
  21. <Column size="0"/>
  22. <Column size="0"/>
  23. <Column size="0"/>
  24. <Column size="0"/>
  25. <Column size="0"/>
  26. </Columns>
  27. <Rows>
  28. <Row size="24" band="head"/>
  29. <Row size="24"/>
  30. </Rows>
  31. <Band id="head">
  32. <Cell/>
  33. <Cell col="1" colspan="2" text="식 품" taborder="undefined"/>
  34. <Cell col="3" text="입고단위"/>
  35. <Cell col="4"/>
  36. <Cell col="5"/>
  37. <Cell col="6"/>
  38. <Cell col="7"/>
  39. <Cell col="8"/>
  40. <Cell col="9"/>
  41. </Band>
  42. <Band id="body">
  43. <Cell celltype="head" expr="expr:currow + 1"/>
  44. <Cell col="1" edittype="none" text="bind:smlcd"/>
  45. <Cell col="2" edittype="none" style="align:left;" text="bind:smlcdnm"/>
  46. <Cell col="3" edittype="none" text="bind:detlclsnm"/>
  47. <Cell col="4" text="bind:lrgcd"/>
  48. <Cell col="5" text="bind:mdlcd"/>
  49. <Cell col="6" text="bind:detlclscd"/>
  50. <Cell col="7" text="bind:etcclscd"/>
  51. <Cell col="8" text="bind:useyn"/>
  52. <Cell col="9" text="bind:sortseq"/>
  53. </Band>
  54. </Format>
  55. </Formats>
  56. </Grid>
  57. <Div position="absolute 405 25 852 95" id="group2" scrollbars="autoboth">
  58. <Layouts>
  59. <Layout>
  60. <Shape position="absolute 0 3 445 68" id="rectangle2" type="rectangle" class="calendar_header"/>
  61. <Button position="absolute 45 32 72 59" id="button7" class="icon_month" text="1" onclick="grp_biz_group2_button7_onclick"/>
  62. <Button position="absolute 75 32 102 59" id="button8" class="icon_month" text="2" onclick="grp_biz_group2_button8_onclick"/>
  63. <Button position="absolute 105 32 132 59" id="button9" class="icon_month" text="3" onclick="grp_biz_group2_button9_onclick"/>
  64. <Button position="absolute 135 32 162 59" id="button10" class="icon_month" text="4" onclick="grp_biz_group2_button10_onclick"/>
  65. <Button position="absolute 165 32 192 59" id="button11" class="icon_month" text="5" onclick="grp_biz_group2_button11_onclick"/>
  66. <Button position="absolute 195 32 222 59" id="button12" class="icon_month" text="6" onclick="grp_biz_group2_button12_onclick"/>
  67. <Button position="absolute 225 32 252 59" id="button13" class="icon_month" text="7" onclick="grp_biz_group2_button13_onclick"/>
  68. <Button position="absolute 255 32 282 59" id="button14" class="icon_month" text="8" onclick="grp_biz_group2_button14_onclick"/>
  69. <Button position="absolute 285 32 312 59" id="button18" class="icon_month" text="9" onclick="grp_biz_group2_button18_onclick"/>
  70. <Button position="absolute 315 32 342 59" id="button19" class="icon_month" text="10" onclick="grp_biz_group2_button19_onclick"/>
  71. <Button position="absolute 345 32 372 59" id="button20" class="icon_month" text="11" onclick="grp_biz_group2_button20_onclick"/>
  72. <Button position="absolute 375 32 402 59" id="button21" class="icon_month" text="12" onclick="grp_biz_group2_button21_onclick"/>
  73. <Edit readonly="true" position="absolute 234 9 254 28" id="opt_month" class="calendar_output" style="background:transparent;border:0 none #3576aeff ;padding:0 0 0 0;align:center middle;"/>
  74. <Static text="월" position="absolute 254 9 274 28" id="caption25" style="align:center middle;"/>
  75. <Button position="absolute 304 12 320 28" id="button31" class="icon_next_year" text="" onclick="grp_biz_group2_button31_onclick"/>
  76. <Button position="absolute 155 12 171 28" id="button33" class="icon_pre_month" visible="false" text="" onclick="grp_biz_group2_button33_onclick"/>
  77. <Edit readonly="true" position="absolute 182 9 212 28" id="opt_year" style="caretcolor:#6a543aff;background:transparent;border:0 none #808080ff ;color:#262626ff;padding:0 0 0 0;align:center middle;"/>
  78. <Button position="absolute 280 12 296 28" id="button35" class="icon_next_month" visible="false" text="" onclick="grp_biz_group2_button35_onclick"/>
  79. <Button position="absolute 132 12 148 28" id="button36" class="icon_pre_year" text="" onclick="grp_biz_group2_button36_onclick"/>
  80. <Static text="년" position="absolute 212 9 232 28" id="caption24" style="align:center middle;"/>
  81. </Layout>
  82. </Layouts>
  83. </Div>
  84. <Grid position="absolute 405 95 849 378" id="grd_calendar" autofittype="col" binddataset="ds_hidden_calendar_weeklist_list" oncellclick="grp_biz_grd_calendar_oncellclick" selecttype="cell" autoenter="key">
  85. <Formats>
  86. <Format id="default">
  87. <Columns>
  88. <Column size="63"/>
  89. <Column size="63"/>
  90. <Column size="63"/>
  91. <Column size="63"/>
  92. <Column size="63"/>
  93. <Column size="63"/>
  94. <Column size="63"/>
  95. </Columns>
  96. <Rows>
  97. <Row size="24" band="head"/>
  98. <Row size="20"/>
  99. <Row size="20"/>
  100. </Rows>
  101. <Band id="head">
  102. <Cell text="일"/>
  103. <Cell col="1" text="월"/>
  104. <Cell col="2" text="화"/>
  105. <Cell col="3" text="수"/>
  106. <Cell col="4" text="목"/>
  107. <Cell col="5" text="금"/>
  108. <Cell col="6" text="토"/>
  109. </Band>
  110. <Band id="body">
  111. <Cell style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack0);background2:BIND(colBack0);color:BIND(colColor0);color2:BIND(colColor0);selectbackground:#daa7d9ff;" class="color_sun" text="bind:sun"/>
  112. <Cell col="1" style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack1);background2:BIND(colBack1);color:BIND(colColor1);color2:BIND(colColor1);selectbackground:#daa7d9ff;" text="bind:mon"/>
  113. <Cell col="2" style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack2);background2:BIND(colBack2);color:BIND(colColor2);color2:BIND(colColor2);selectbackground:#daa7d9ff;" text="bind:tue"/>
  114. <Cell col="3" style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack3);background2:BIND(colBack3);color:BIND(colColor3);color2:BIND(colColor3);selectbackground:#daa7d9ff;" text="bind:wed"/>
  115. <Cell col="4" style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack4);background2:BIND(colBack4);color:BIND(colColor4);color2:BIND(colColor4);selectbackground:#daa7d9ff;" text="bind:thu"/>
  116. <Cell col="5" style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack5);background2:BIND(colBack5);color:BIND(colColor5);color2:BIND(colColor5);selectbackground:#daa7d9ff;" text="bind:fri"/>
  117. <Cell col="6" style="line:1 solid #808080ff,1 solid #808080ff,0 none #808080ff,1 solid #808080ff;background:BIND(colBack6);background2:BIND(colBack6);color:BIND(colColor6);color2:BIND(colColor6);selectbackground:#daa7d9ff;" class="color_sat" text="bind:sat"/>
  118. <Cell row="1" displaytype="text" edittype="text" style="align:center;line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack0);background2:BIND(colBack0);selectbackground:#daa7d9ff;" text="bind:sun_memo" editautoselect="true"/>
  119. <Cell row="1" col="1" displaytype="text" edittype="text" style="align:center;line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack1);background2:BIND(colBack1);selectbackground:#daa7d9ff;" text="bind:mon_memo" editautoselect="true"/>
  120. <Cell row="1" col="2" displaytype="text" edittype="text" style="align:center;line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack2);background2:BIND(colBack2);selectbackground:#daa7d9ff;" text="bind:tue_memo" editautoselect="true"/>
  121. <Cell row="1" col="3" displaytype="text" edittype="text" style="align:center;line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack3);background2:BIND(colBack3);selectbackground:#daa7d9ff;" text="bind:wed_memo" editautoselect="true"/>
  122. <Cell row="1" col="4" displaytype="text" edittype="text" style="align:center;line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack4);background2:BIND(colBack4);selectbackground:#daa7d9ff;" text="bind:thu_memo" editautoselect="true"/>
  123. <Cell row="1" col="5" displaytype="text" edittype="text" style="align:center;line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack5);background2:BIND(colBack5);selectbackground:#daa7d9ff;" text="bind:fri_memo" editautoselect="true"/>
  124. <Cell row="1" col="6" displaytype="text" edittype="text" style="align:center;line:0 none #808080ff,1 solid #808080ff,1 solid #808080ff,1 solid #808080ff;background:BIND(colBack6);background2:BIND(colBack6);selectbackground:#daa7d9ff;" text="bind:sat_memo" editautoselect="true"/>
  125. </Band>
  126. </Format>
  127. </Formats>
  128. </Grid>
  129. <Shape position="absolute 405 23 850 29" linetype="horizontal" id="line2" class="line_10"/>
  130. <Static text="식품량" position="absolute 405 7 637 23" id="caption2" class="tit_2"/>
  131. <Div position="absolute 410 425 800 452" id="grp_btn">
  132. <Layouts>
  133. <Layout>
  134. <Button position="absolute 0 3 56 25" id="btn_prt" class="btn6" visible="false" text="출력"/>
  135. </Layout>
  136. </Layouts>
  137. </Div>
  138. <Edit position="absolute 695 387 787 406" id="ipt_pid" class="input_search" taborder="1" visible="false" autoselect="true"/>
  139. <Static text="예외식품수량 :" position="absolute 582 389 691 405" id="caption7" class="tit_2" visible="false"/>
  140. <Button position="absolute 790 386 846 408" id="btn_save" class="btn4" text="저장" onclick="grp_biz_btn_save_onclick"/>
  141. <Grid position="absolute 580 440 800 590" id="datagrid3" visible="false" binddataset="ds_init_calenlist_calendinfo">
  142. <Formats>
  143. <Format id="default">
  144. <Columns>
  145. <Column size="100"/>
  146. <Column size="100"/>
  147. </Columns>
  148. <Rows>
  149. <Row size="24" band="head"/>
  150. <Row size="24"/>
  151. </Rows>
  152. <Band id="head">
  153. <Cell text="caption1"/>
  154. <Cell col="1" text="caption2"/>
  155. </Band>
  156. <Band id="body">
  157. <Cell text="bind:basedd"/>
  158. <Cell col="1" text="bind:dutflag"/>
  159. </Band>
  160. </Format>
  161. </Formats>
  162. </Grid>
  163. </Layout>
  164. </Layouts>
  165. </Div>
  166. <Div position="absolute 0 24 861 59" align="align:center top;" id="group4" class="div_SA">
  167. <Layouts>
  168. <Layout>
  169. <Static text="식단 구분 :" position="absolute 10 9 95 26" id="caption19" class="search_name"/>
  170. <Shape position="absolute 751 6 757 28" linetype="vertical" id="line6" class="line_4"/>
  171. <Button position="absolute 777 7 833 29" id="button3" class="btn1" text="조회" onclick="group4_button3_onclick"/>
  172. <Radio position="absolute 95 8 215 28" id="rdo_menuflag" class="radio_search" columncount="2" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="group4_rdo_menuflag_onitemchanged">
  173. <Dataset id="innerdataset">
  174. <ColumnInfo>
  175. <Column id="codecolumn"/>
  176. <Column id="datacolumn"/>
  177. </ColumnInfo>
  178. <Rows>
  179. <Row>
  180. <Col id="codecolumn">QE</Col>
  181. <Col id="datacolumn">일반식</Col>
  182. </Row>
  183. <Row>
  184. <Col id="codecolumn">QT</Col>
  185. <Col id="datacolumn">직원식</Col>
  186. </Row>
  187. </Rows>
  188. </Dataset>
  189. </Radio>
  190. </Layout>
  191. </Layouts>
  192. </Div>
  193. <Static id="caption6" text="예외 품목 등록" class="tit_1" position="absolute 0 0 125 24"/>
  194. </Layout>
  195. </Layouts>
  196. <Objects>
  197. <Dataset id="ds_send_searchitem2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  198. <ColumnInfo>
  199. <Column id="lrgcd" type="STRING" size="256" sumtext="대분류코드"/>
  200. <Column id="mdlcd" type="STRING" size="256" sumtext="중분류코드"/>
  201. </ColumnInfo>
  202. <Rows>
  203. <Row/>
  204. </Rows>
  205. </Dataset>
  206. <Dataset id="ds_main_etcclsdetl_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  207. <ColumnInfo>
  208. <Column id="lrgcd" type="STRING" size="256" sumtext="대분류코드"/>
  209. <Column id="mdlcd" type="STRING" size="256" sumtext="중분류코드"/>
  210. <Column id="smlcd" type="STRING" size="256" sumtext="소분류코드"/>
  211. <Column id="smlcdnm" type="STRING" size="256" sumtext="소분류코드명"/>
  212. <Column id="detlclscd" type="STRING" size="256" sumtext="상세분류코드"/>
  213. <Column id="detlclsnm" type="STRING" size="256" sumtext="상세분류코드명"/>
  214. <Column id="etcclscd" type="STRING" size="256" sumtext="기타분류코드"/>
  215. <Column id="useyn" type="STRING" size="256" sumtext="사용여부"/>
  216. <Column id="sortseq" type="STRING" size="256" sumtext="정열순서"/>
  217. </ColumnInfo>
  218. </Dataset>
  219. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  220. <ColumnInfo>
  221. <Column id="srchfoodcd" type="STRING" size="256" sumtext="식품코드"/>
  222. <Column id="srchfromdd" type="STRING" size="256" sumtext="적용일자"/>
  223. <Column id="srchmenuflag" type="STRING" size="256" sumtext="식단구분"/>
  224. <Column id="rsrvdd" type="STRING" size="256"/>
  225. <Column id="instcd" type="STRING" size="256"/>
  226. <Column id="srchtotalqty" type="STRING" size="256"/>
  227. </ColumnInfo>
  228. <Rows>
  229. <Row/>
  230. </Rows>
  231. </Dataset>
  232. <Dataset id="ds_main_calenltotist_calendinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  233. <ColumnInfo>
  234. <Column id="appdd" type="STRING" size="256" sumtext="적용일자"/>
  235. <Column id="totfoodqty" type="STRING" size="256" sumtext="총량"/>
  236. </ColumnInfo>
  237. </Dataset>
  238. <Dataset id="ds_init_calenlist_calendinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  239. <ColumnInfo>
  240. <Column id="basedd" type="STRING" size="256" sumtext="예약일자"/>
  241. <Column id="dutflag" type="STRING" size="256" sumtext="예약수"/>
  242. </ColumnInfo>
  243. </Dataset>
  244. <Dataset id="ds_main_savedata_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  245. <ColumnInfo>
  246. <Column id="detlclsnm" type="STRING" size="256" sumtext="단위"/>
  247. <Column id="foodcd" type="STRING" size="256" sumtext="식품코드"/>
  248. <Column id="srchtotalqty" type="STRING" size="256" sumtext="수량"/>
  249. <Column id="appdd" type="STRING" size="256" sumtext="적용일자"/>
  250. <Column id="srchmenuflag" type="STRING" size="256" sumtext="식단구분"/>
  251. </ColumnInfo>
  252. </Dataset>
  253. <Dataset id="ds_temp_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  254. <ColumnInfo>
  255. <Column id="count" type="STRING" size="256"/>
  256. </ColumnInfo>
  257. </Dataset>
  258. <Dataset id="ds_hidden_calendar_weeklist_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  259. <ColumnInfo>
  260. <Column id="sun" type="STRING" size="256"/>
  261. <Column id="mon" type="STRING" size="256"/>
  262. <Column id="tue" type="STRING" size="256"/>
  263. <Column id="wed" type="STRING" size="256"/>
  264. <Column id="thu" type="STRING" size="256"/>
  265. <Column id="fri" type="STRING" size="256"/>
  266. <Column id="sat" type="STRING" size="256"/>
  267. <Column id="sun_memo" type="STRING" size="256"/>
  268. <Column id="mon_memo" type="STRING" size="256"/>
  269. <Column id="tue_memo" type="STRING" size="256"/>
  270. <Column id="wed_memo" type="STRING" size="256"/>
  271. <Column id="thu_memo" type="STRING" size="256"/>
  272. <Column id="fri_memo" type="STRING" size="256"/>
  273. <Column id="sat_memo" type="STRING" size="256"/>
  274. <Column id="colBack0" type="STRING" size="256"/>
  275. <Column id="colBack1" type="STRING" size="256"/>
  276. <Column id="colBack2" type="STRING" size="256"/>
  277. <Column id="colBack3" type="STRING" size="256"/>
  278. <Column id="colBack4" type="STRING" size="256"/>
  279. <Column id="colBack5" type="STRING" size="256"/>
  280. <Column id="colBack6" type="STRING" size="256"/>
  281. <Column id="colColor0" type="STRING" size="256"/>
  282. <Column id="colColor1" type="STRING" size="256"/>
  283. <Column id="colColor2" type="STRING" size="256"/>
  284. <Column id="colColor3" type="STRING" size="256"/>
  285. <Column id="colColor4" type="STRING" size="256"/>
  286. <Column id="colColor5" type="STRING" size="256"/>
  287. <Column id="colColor6" type="STRING" size="256"/>
  288. </ColumnInfo>
  289. </Dataset>
  290. <Dataset id="ds_hidden_calendar" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  291. <ColumnInfo>
  292. <Column id="year" type="STRING" size="256"/>
  293. <Column id="month" type="STRING" size="256"/>
  294. </ColumnInfo>
  295. <Rows>
  296. <Row/>
  297. </Rows>
  298. </Dataset>
  299. <Dataset id="ds_hidden_grdcellcolor" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  300. <ColumnInfo>
  301. <Column id="calcol" type="STRING" size="256"/>
  302. <Column id="calrow" type="STRING" size="256"/>
  303. <Column id="bfcalrow" type="STRING" size="256"/>
  304. <Column id="bfcalcol" type="STRING" size="256"/>
  305. <Column id="color" type="STRING" size="256"/>
  306. </ColumnInfo>
  307. <Rows>
  308. <Row/>
  309. </Rows>
  310. </Dataset>
  311. </Objects>
  312. <Bind>
  313. <BindItem id="item0" compid="group4.rdo_menuflag" propid="value" datasetid="ds_send" columnid="srchmenuflag"/>
  314. <BindItem id="item1" compid="grp_biz.ipt_pid" propid="value" datasetid="ds_send" columnid="srchtotalqty"/>
  315. <BindItem id="item2" compid="grp_biz.group2.opt_year" propid="value" datasetid="ds_hidden_calendar" columnid="year"/>
  316. <BindItem id="item3" compid="grp_biz.group2.opt_month" propid="value" datasetid="ds_hidden_calendar" columnid="month"/>
  317. </Bind>
  318. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  319. * System Name : 경대 의료정보시스템
  320. * Job Name : ast_dietxp -> SMANB00700
  321. * Creator : yjh
  322. * Make Date : 2017-10-25
  323. * Description :
  324. *---------------------------------------------------------------------------------------
  325. * Modify Date Modifier Modify Description
  326. *---------------------------------------------------------------------------------------
  327. * 2017-10-25 yjh TF->XP
  328. *
  329. *---------------------------------------------------------------------------------------
  330. ****************************************************************************************/
  331. //=======================================================================================
  332. // Lib Include
  333. //---------------------------------------------------------------------------------------
  334. include "com_commonxp::comm_main.xjs";
  335. //=======================================================================================
  336. // Global Form Variable
  337. //---------------------------------------------------------------------------------------
  338. var arErrorCode = new HashArray();
  339. //=======================================================================================
  340. // Function
  341. //---------------------------------------------------------------------------------------
  342. function initCalendar(curDate) {
  343. // var curDate = getCurrentDate().toDate();
  344. // alert("init 들어와서 ==>" + curDate );
  345. ds_hidden_calendar.setColumn(0, "year", curDate.substr(0,4) );
  346. ds_hidden_calendar.setColumn(0, "month", curDate.substr(4,2) );
  347. // 그리드 초기화
  348. ds_hidden_calendar_weeklist_list.clearData();
  349. var dateObj = (curDate+"01").toDate();
  350. dateObj.setDate(1);
  351. var startDay = dateObj.getDay();
  352. var days = dateObj.getMonthDay();
  353. var rows = Math.ceil( ( startDay + days ) / 7 );
  354. for( var i = 0; i < rows; i++ )
  355. ds_hidden_calendar_weeklist_list.addRow();
  356. ds_hidden_calendar_weeklist_list.rowposition = -1;
  357. var rowIndex = 0;
  358. var colIndex = startDay;
  359. for( var i = 1; i <= days; i++ ) {
  360. ds_hidden_calendar_weeklist_list.setColumn(rowIndex, utlf_transNullToEmpty(grp_biz.grd_calendar.getCellProperty("Body", colIndex, "text")).replace("bind:", ""), i);
  361. ds_hidden_calendar_weeklist_list.setColumn(rowIndex, utlf_transNullToEmpty(grp_biz.grd_calendar.getCellProperty("Body", colIndex+7, "text")).replace("bind:", ""), "0.0");
  362. colIndex++;
  363. if( colIndex == 7 ) {
  364. colIndex = 0;
  365. rowIndex++;
  366. }
  367. }
  368. fCalendar();
  369. }
  370. function fCalendar(){
  371. var oParam = {};
  372. oParam.id = "TRANB00700";
  373. oParam.service = "dietbaseapp.FoodCode";
  374. oParam.method = "reqGetExceptFoodLst";
  375. oParam.inds = "req=ds_send";
  376. oParam.outds = "ds_main_calenltotist_calendinfo=calendinfo";
  377. oParam.async = false;
  378. oParam.callback = "cf_TRANB00700";
  379. tranf_submit(oParam);
  380. if ( arErrorCode.pop("TRANB00700") > -1 ){
  381. var cnt = ds_main_calenltotist_calendinfo.rowcount;
  382. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  383. var isYear = ds_hidden_calendar.getColumn(0, "year");
  384. var isDate = (isYear+isMonth+1).toDate();
  385. var startDay = isDate.getDay();
  386. for (var i = 0; i < cnt; i++) {
  387. var dd = ds_main_calenltotist_calendinfo.getColumn(i, "appdd");
  388. var colidx = dd.toDate().getDay();
  389. var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 )-1;
  390. // alert("DD >" + dd + " ==colidx >" + colidx + " ==rowidx > " + rowidx + " == qty > " + model.getValue("/root/main/calenlist/calendinfo[" + i + "]/totfoodqty") );
  391. if( grp_biz.grd_calendar.currentcol < 7 ){
  392. ds_hidden_calendar_weeklist_list.setColumn(rowidx, utlf_transNullToEmpty(grp_biz.grd_calendar.getCellProperty("Body", colidx+7, "text")).replace("bind:", ""), ds_main_calenltotist_calendinfo.getColumn(i, "totfoodqty"));
  393. }else{
  394. ds_hidden_calendar_weeklist_list.setColumn(rowidx, utlf_transNullToEmpty(grp_biz.grd_calendar.getCellProperty("Body", colidx, "text")).replace("bind:", ""), ds_main_calenltotist_calendinfo.getColumn(i, "totfoodqty"));
  395. }
  396. }
  397. fCalendar2();
  398. }
  399. }
  400. function cf_TRANB00700(sSvcId, nErrorCode, sErrorMsg) {
  401. arErrorCode.push(sSvcId, nErrorCode);
  402. }
  403. function fCalendar2(){
  404. if( utlf_isNull(ds_hidden_calendar.getColumn(0, "year")) || utlf_isNull(ds_hidden_calendar.getColumn(0, "month")) ){
  405. ds_hidden_calendar.setColumn(0, "year", utlf_getCurrentDate().toDate().getDateFormat('YYYY'));
  406. ds_hidden_calendar.setColumn(0, "month", utlf_getCurrentDate().toDate().getDateFormat('MM'));
  407. }
  408. ds_send.setColumn(0, "rsrvdd", ds_hidden_calendar.getColumn(0, "year") + ds_hidden_calendar.getColumn(0, "month") );
  409. var oParam = {};
  410. oParam.id = "TRAEA02012";
  411. oParam.service = "examcurersrvapp.SytsRsrv";
  412. oParam.method = "reqGetCalenList";
  413. oParam.inds = "req=ds_send";
  414. oParam.outds = "ds_init_calenlist_calendinfo=calendinfo";
  415. oParam.async = false;
  416. oParam.callback = "cf_TRAEA02012";
  417. tranf_submit(oParam);
  418. if (arErrorCode.pop("TRAEA02012") > -1){
  419. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  420. var isYear = ds_hidden_calendar.getColumn(0, "year");
  421. var isDate = (isYear+isMonth+1).toDate();
  422. var startDay = isDate.getDay();
  423. for (var i = 0; i < ds_init_calenlist_calendinfo.rowcount; i++) {
  424. var dd = ds_init_calenlist_calendinfo.getColumn(i, "basedd");
  425. var colidx = dd.toDate().getDay();
  426. var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 )-1;
  427. // alert("DD >" + dd + " ==colidx >" + colidx + " ==rowidx > " + rowidx + " ==basedd> " + model.getValue("/root/init/calenlist/calendinfo[" + i + "]/basedd"));
  428. if (ds_init_calenlist_calendinfo.getColumn(i, "dutflag") == "8"){
  429. ds_hidden_calendar_weeklist_list.setColumn(rowidx, "colColor"+colidx, "red");
  430. }else if (ds_init_calenlist_calendinfo.getColumn(i, "dutflag") == "4"){
  431. ds_hidden_calendar_weeklist_list.setColumn(rowidx, "colColor"+colidx, "blue");
  432. }else{
  433. ds_hidden_calendar_weeklist_list.setColumn(rowidx, "colColor"+colidx, "black");
  434. }
  435. }
  436. }
  437. }
  438. function cf_TRAEA02012(sSvcId, nErrorCode, sErrorMsg) {
  439. arErrorCode.push(sSvcId, nErrorCode);
  440. }
  441. /* @group : 통합예약관리
  442. * @ver : 2007.08.10
  443. * @by : 임헤정
  444. * @-----------------------------------
  445. * @type : function
  446. * @access : public
  447. * @desc : 오늘날짜 달력에 표시
  448. */
  449. function setCurrentDate() {
  450. var curDate = utlf_getCurrentDate().substr(6,2); //오늘날짜
  451. var curWeek = utlf_getCurrentDate().toDate().getDayOfWeek("E").toLowerCase(); //오늘요일
  452. if(curDate <10) {
  453. curDate= curDate.substr(1,1);
  454. }
  455. if(curWeek == "sun")
  456. ds_hidden_grdcellcolor.setColumn(0, "calcol",0);
  457. if(curWeek == "mon")
  458. ds_hidden_grdcellcolor.setColumn(0, "calcol",1);
  459. if(curWeek == "tue")
  460. ds_hidden_grdcellcolor.setColumn(0, "calcol",2);
  461. if(curWeek == "wed")
  462. ds_hidden_grdcellcolor.setColumn(0, "calcol",3);
  463. if(curWeek == "thu")
  464. ds_hidden_grdcellcolor.setColumn(0, "calcol",4);
  465. if(curWeek == "fri")
  466. ds_hidden_grdcellcolor.setColumn(0, "calcol",5);
  467. if(curWeek == "sat")
  468. ds_hidden_grdcellcolor.setColumn(0, "calcol",6);
  469. for(var i = 0 ; i <ds_hidden_calendar_weeklist_list.rowcount; i++ ) {
  470. if(ds_hidden_calendar_weeklist_list.getColumn(i, curWeek) ==curDate) {
  471. ds_hidden_grdcellcolor.setColumn(0, "calrow",i);
  472. }
  473. }
  474. setCellColor(grp_biz.grd_calendar);
  475. }
  476. /* @group : 통합예약관리
  477. * @ver : 2007.08.09
  478. * @by : 임헤정
  479. * @-----------------------------------
  480. * @type : function
  481. * @access : public
  482. * @desc : 선택날짜 색 주기
  483. */
  484. function setCalendar(dateObj) {
  485. // 그리드 초기화
  486. ds_hidden_calendar_weeklist_list.clearData()
  487. /// model.removeNodeset("/root/init/curerprescondlist/rsrvcalendar");
  488. dateObj.setDate(1);
  489. var startDay = dateObj.getDay();
  490. var days = dateObj.getMonthDay();
  491. var rows = Math.ceil( ( startDay + days ) / 7 );
  492. /*
  493. for( var i = 0; i < rows; i++ )
  494. grd_calendar.addRow(false);
  495. grd_calendar.rebuild();
  496. */
  497. if (rows != ds_hidden_calendar_weeklist_list.rowcount - 1){
  498. ds_hidden_calendar_weeklist_list.clearData();
  499. for( var i = 0; i < rows; i++ ){
  500. ds_hidden_calendar_weeklist_list.addRow();
  501. }
  502. ds_hidden_calendar_weeklist_list.rowposition = -1;
  503. }else{
  504. //model.setValue("/root/hidden/calendar/weeklist/list", "");
  505. }
  506. var rowIndex = 0;
  507. var colIndex = startDay;
  508. for( var i = 1; i <= days; i++ ) {
  509. ds_hidden_calendar_weeklist_list.setColumn(rowIndex, utlf_transNullToEmpty(grp_biz.grd_calendar.getCellProperty("Body", colIndex, "text")).replace("bind:", ""), i);
  510. ds_hidden_calendar_weeklist_list.setColumn(rowIndex, utlf_transNullToEmpty(grp_biz.grd_calendar.getCellProperty("Body", colIndex+7, "text")).replace("bind:", ""), "0.0");
  511. colIndex++;
  512. if( colIndex == 7 ) {
  513. colIndex = 0;
  514. rowIndex++;
  515. }
  516. }
  517. fCalendar();
  518. }
  519. /* @group : 통합예약관리
  520. * @ver : 2007.08.09
  521. * @by : 임헤정
  522. * @-----------------------------------
  523. * @type : function
  524. * @access : public
  525. * @desc : 선택날짜 색 주기
  526. */
  527. function setCellColor(gridObj) {
  528. var calRow = 0; //현재선택
  529. var calCol = 0; //현재선택
  530. var bfcalRow = 0; //전에 선택
  531. var bfcalCol = 0; //전에 선택
  532. var white = 1; //#ffffff
  533. var green = 2; //#c4e693
  534. calRow = Number(ds_hidden_grdcellcolor.getColumn(0, "calrow"));
  535. calCol = Number(ds_hidden_grdcellcolor.getColumn(0, "calcol"));
  536. bfcalRow = Number(ds_hidden_grdcellcolor.getColumn(0, "bfcalrow"));
  537. bfcalCol = Number(ds_hidden_grdcellcolor.getColumn(0, "bfcalcol"));
  538. // 1. 원래 색으로 돌려놓기
  539. if(ds_hidden_grdcellcolor.getColumn(0, "color") == "1" ) {
  540. ds_hidden_calendar_weeklist_list.setColumn(bfcalRow, "colBack"+bfcalCol, "#ffffff");
  541. // if( bfcalCol < 7 )
  542. // bfcalCol += 7;
  543. // else
  544. // bfcalCol -= 7;
  545. //
  546. // ds_hidden_calendar_weeklist_list.setColumn(bfcalRow, "colBack"+bfcalCol, "#ffffff");
  547. }
  548. else if (ds_hidden_grdcellcolor.getColumn(0, "color") == "2" ) {
  549. ds_hidden_calendar_weeklist_list.setColumn(bfcalRow, "colBack"+bfcalCol, "#c4e693");
  550. // if( bfcalCol < 7 )
  551. // bfcalCol += 7;
  552. // else
  553. // bfcalCol -= 7;
  554. //
  555. // ds_hidden_calendar_weeklist_list.setColumn(bfcalRow, "colBack"+bfcalCol, "#c4e693");
  556. }
  557. // 2. bf 인스턴스에 선택한 원래 셀 담아두기
  558. //if(ds_hidden_calendar_weeklist_list.getColumn(calRow, "colBack"+calCol) == "#ffffff" ) {
  559. if( grp_biz.grd_calendar.currentcell > 6 && (utlf_isNull(ds_hidden_calendar_weeklist_list.getColumn(calRow, "colBack"+calCol)) || ds_hidden_calendar_weeklist_list.getColumn(calRow, "colBack"+calCol) == "#ffffff") ){
  560. ds_hidden_grdcellcolor.setColumn(0, "color", "1");
  561. }
  562. if(ds_hidden_calendar_weeklist_list.getColumn(calRow, "colBack"+calCol) == "#c4e693" ) {
  563. ds_hidden_grdcellcolor.setColumn(0, "color", "2");
  564. }
  565. ds_hidden_grdcellcolor.setColumn(0, "bfcalrow",calRow);
  566. ds_hidden_grdcellcolor.setColumn(0, "bfcalcol",calCol);
  567. //alert("인스턴스 : "+model.getValue("/root/hidden/grdcellcolor/color"));
  568. // 3. 선택한 셀에 보라색 주기
  569. // gridObj.rebuildStyle();
  570. ds_hidden_calendar_weeklist_list.setColumn(calRow, "colBack"+calCol, "#daa7d9");
  571. // if( calCol < 7 )
  572. // calCol += 7;
  573. // else
  574. // calCol -= 7;
  575. //
  576. // ds_hidden_calendar_weeklist_list.setColumn(calRow, "colBack"+calCol, "#daa7d9");
  577. // fCalendar2();
  578. }
  579. /* @group : 통합예약
  580. * @ver : 2007.08.07
  581. * @by : 임혜정
  582. * @-----------------------------------
  583. * @type : function
  584. * @access : public
  585. * @desc : 달력 월버튼 이벤트
  586. */
  587. function fGetCalendar(arg)
  588. {
  589. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  590. var isYear = ds_hidden_calendar.getColumn(0, "year");
  591. if(ds_hidden_calendar.getColumn(0, "month") < arg) {
  592. var num = arg- isMonth ;
  593. var isDate = (isYear+isMonth+1).toDate().getAddDate(+num,'M');
  594. }
  595. if(ds_hidden_calendar.getColumn(0, "month") > arg) {
  596. var num = isMonth - arg ;
  597. var isDate = (isYear+isMonth+1).toDate().getAddDate(-num,'M');
  598. }
  599. ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
  600. ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
  601. setCalendar(isDate);
  602. ds_send.setColumn(0, "srchtotalqty" , "");
  603. grp_biz_dtg_etcdet_oncellclick();
  604. }
  605. //=======================================================================================
  606. // Event
  607. //---------------------------------------------------------------------------------------
  608. /****************************************************************************************
  609. * Components : Form
  610. * Components ID : SMANB00700
  611. * Event : oninit
  612. * Argument : 01.obj : Object Event has occurred
  613. * : 02.e : Event Object
  614. * Description : 화면 처음 초기화시
  615. ****************************************************************************************/
  616. function SMANB00700_oninit(obj:Form, e:InitEventInfo)
  617. {
  618. frmf_initForm(obj); //폼 초기화
  619. }
  620. /****************************************************************************************
  621. * Components : Form
  622. * Components ID : SMANB00700
  623. * Event : onload
  624. * Argument : 01.obj : Object Event has occurred
  625. * : 02.e : Event Object
  626. * Description : 화면 로딩 완료시
  627. ****************************************************************************************/
  628. function SMANB00700_onload(obj:Form, e:LoadEventInfo)
  629. {
  630. grdf_setGridSort(grp_biz.dtg_etcdet);
  631. var curDate = utlf_getCurrentDate().toDate().getDateFormat('YYYYMM');
  632. // initCalendar(curDate);
  633. // 현재일자 색상 표시
  634. // setCurrentDate(grd_calendar);
  635. group4.rdo_menuflag.index = 0;
  636. group4_rdo_menuflag_onitemchanged();
  637. ds_send_searchitem2.setColumn(0, "lrgcd", "ET");
  638. ds_send_searchitem2.setColumn(0, "mdlcd", "ET00");
  639. var oParam = {};
  640. oParam.id = "TRANB00211";
  641. oParam.service = "dietbaseapp.Dietbase";
  642. oParam.method = "reqGetEtcClsDetl";
  643. oParam.inds = "req=ds_send_searchitem2";
  644. oParam.outds = "ds_main_etcclsdetl_data=ret";
  645. oParam.async = false;
  646. //oParam.callback = "cf_TRANB00211";
  647. tranf_submit(oParam);
  648. ds_main_etcclsdetl_data.rowposition = -1;
  649. }
  650. /****************************************************************************************
  651. * Components : Grid
  652. * Components ID : dtg_etcdet
  653. * Event : oncellclick
  654. * Argument : 01.obj : Object Event has occurred
  655. * : 02.e : Event Object
  656. * Description : 그리드 셀 클릭시
  657. ****************************************************************************************/
  658. function grp_biz_dtg_etcdet_oncellclick(obj, e)
  659. {
  660. if(ds_main_etcclsdetl_data.rowcount > 1){
  661. ds_main_calenltotist_calendinfo.clearData();
  662. ds_hidden_calendar_weeklist_list.clearData();
  663. var cnt = ds_main_etcclsdetl_data.rowcount;
  664. var curDate = ds_hidden_calendar.getColumn(0, "year") + ds_hidden_calendar.getColumn(0, "month");
  665. ds_send.setColumn(0, "srchfoodcd", ds_main_etcclsdetl_data.getColumn(ds_main_etcclsdetl_data.rowposition, "smlcd"));
  666. ds_send.setColumn(0, "srchfromdd", curDate );
  667. initCalendar(curDate);
  668. setCurrentDate(grp_biz.grd_calendar);
  669. }
  670. ds_send.setColumn(0, "srchtotalqty" , "");
  671. }
  672. /****************************************************************************************
  673. * Components : Button
  674. * Components ID : button7
  675. * Event : onclick
  676. * Argument : 01.obj : Object Event has occurred
  677. * : 02.e : Event Object
  678. * Description : 1버튼 클릭시
  679. ****************************************************************************************/
  680. function grp_biz_group2_button7_onclick(obj:Button, e:ClickEventInfo)
  681. {
  682. if(grp_biz.group2.opt_month.value!= "01") {
  683. fGetCalendar("01");
  684. }
  685. }
  686. /****************************************************************************************
  687. * Components : Button
  688. * Components ID : button8
  689. * Event : onclick
  690. * Argument : 01.obj : Object Event has occurred
  691. * : 02.e : Event Object
  692. * Description : 2버튼 클릭시
  693. ****************************************************************************************/
  694. function grp_biz_group2_button8_onclick(obj:Button, e:ClickEventInfo)
  695. {
  696. if(grp_biz.group2.opt_month.value!== "02") {
  697. fGetCalendar("02");
  698. }
  699. }
  700. /****************************************************************************************
  701. * Components : Button
  702. * Components ID : button9
  703. * Event : onclick
  704. * Argument : 01.obj : Object Event has occurred
  705. * : 02.e : Event Object
  706. * Description : 3버튼 클릭시
  707. ****************************************************************************************/
  708. function grp_biz_group2_button9_onclick(obj:Button, e:ClickEventInfo)
  709. {
  710. if(grp_biz.group2.opt_month.value!== "03") {
  711. fGetCalendar("03");
  712. }
  713. }
  714. /****************************************************************************************
  715. * Components : Button
  716. * Components ID : button10
  717. * Event : onclick
  718. * Argument : 01.obj : Object Event has occurred
  719. * : 02.e : Event Object
  720. * Description : 4버튼 클릭시
  721. ****************************************************************************************/
  722. function grp_biz_group2_button10_onclick(obj:Button, e:ClickEventInfo)
  723. {
  724. if(grp_biz.group2.opt_month.value!== "04") {
  725. fGetCalendar("04");
  726. }
  727. }
  728. /****************************************************************************************
  729. * Components : Button
  730. * Components ID : button11
  731. * Event : onclick
  732. * Argument : 01.obj : Object Event has occurred
  733. * : 02.e : Event Object
  734. * Description : 5버튼 클릭시
  735. ****************************************************************************************/
  736. function grp_biz_group2_button11_onclick(obj:Button, e:ClickEventInfo)
  737. {
  738. if(grp_biz.group2.opt_month.value!== "05") {
  739. fGetCalendar("05");
  740. }
  741. }
  742. /****************************************************************************************
  743. * Components : Button
  744. * Components ID : button12
  745. * Event : onclick
  746. * Argument : 01.obj : Object Event has occurred
  747. * : 02.e : Event Object
  748. * Description : 6버튼 클릭시
  749. ****************************************************************************************/
  750. function grp_biz_group2_button12_onclick(obj:Button, e:ClickEventInfo)
  751. {
  752. if(grp_biz.group2.opt_month.value!== "06") {
  753. fGetCalendar("06");
  754. }
  755. }
  756. /****************************************************************************************
  757. * Components : Button
  758. * Components ID : button13
  759. * Event : onclick
  760. * Argument : 01.obj : Object Event has occurred
  761. * : 02.e : Event Object
  762. * Description : 7버튼 클릭시
  763. ****************************************************************************************/
  764. function grp_biz_group2_button13_onclick(obj:Button, e:ClickEventInfo)
  765. {
  766. if(grp_biz.group2.opt_month.value!== "07") {
  767. fGetCalendar("07");
  768. }
  769. }
  770. /****************************************************************************************
  771. * Components : Button
  772. * Components ID : button14
  773. * Event : onclick
  774. * Argument : 01.obj : Object Event has occurred
  775. * : 02.e : Event Object
  776. * Description : 8버튼 클릭시
  777. ****************************************************************************************/
  778. function grp_biz_group2_button14_onclick(obj:Button, e:ClickEventInfo)
  779. {
  780. if(grp_biz.group2.opt_month.value!== "08") {
  781. fGetCalendar("08");
  782. }
  783. }
  784. /****************************************************************************************
  785. * Components : Button
  786. * Components ID : button18
  787. * Event : onclick
  788. * Argument : 01.obj : Object Event has occurred
  789. * : 02.e : Event Object
  790. * Description : 9버튼 클릭시
  791. ****************************************************************************************/
  792. function grp_biz_group2_button18_onclick(obj:Button, e:ClickEventInfo)
  793. {
  794. if(grp_biz.group2.opt_month.value!== "09") {
  795. fGetCalendar("09");
  796. }
  797. }
  798. /****************************************************************************************
  799. * Components : Button
  800. * Components ID : button19
  801. * Event : onclick
  802. * Argument : 01.obj : Object Event has occurred
  803. * : 02.e : Event Object
  804. * Description : 10버튼 클릭시
  805. ****************************************************************************************/
  806. function grp_biz_group2_button19_onclick(obj:Button, e:ClickEventInfo)
  807. {
  808. if(grp_biz.group2.opt_month.value!== "10") {
  809. fGetCalendar("10");
  810. }
  811. }
  812. /****************************************************************************************
  813. * Components : Button
  814. * Components ID : button20
  815. * Event : onclick
  816. * Argument : 01.obj : Object Event has occurred
  817. * : 02.e : Event Object
  818. * Description : 11버튼 클릭시
  819. ****************************************************************************************/
  820. function grp_biz_group2_button20_onclick(obj:Button, e:ClickEventInfo)
  821. {
  822. if(grp_biz.group2.opt_month.value!== "11") {
  823. fGetCalendar("11");
  824. }
  825. }
  826. /****************************************************************************************
  827. * Components : Button
  828. * Components ID : button21
  829. * Event : onclick
  830. * Argument : 01.obj : Object Event has occurred
  831. * : 02.e : Event Object
  832. * Description : 12버튼 클릭시
  833. ****************************************************************************************/
  834. function grp_biz_group2_button21_onclick(obj:Button, e:ClickEventInfo)
  835. {
  836. if(grp_biz.group2.opt_month.value!== "12") {
  837. fGetCalendar("12");
  838. }
  839. }
  840. /****************************************************************************************
  841. * Components : Button
  842. * Components ID : button31
  843. * Event : onclick
  844. * Argument : 01.obj : Object Event has occurred
  845. * : 02.e : Event Object
  846. * Description : >>버튼 클릭시
  847. ****************************************************************************************/
  848. function grp_biz_group2_button31_onclick(obj:Button, e:ClickEventInfo)
  849. {
  850. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  851. var isYear = ds_hidden_calendar.getColumn(0, "year");
  852. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
  853. ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
  854. ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
  855. setCalendar(isDate);
  856. }
  857. /****************************************************************************************
  858. * Components : Button
  859. * Components ID : button33
  860. * Event : onclick
  861. * Argument : 01.obj : Object Event has occurred
  862. * : 02.e : Event Object
  863. * Description : <버튼 클릭시
  864. ****************************************************************************************/
  865. function grp_biz_group2_button33_onclick(obj:Button, e:ClickEventInfo)
  866. {
  867. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  868. var isYear = ds_hidden_calendar.getColumn(0, "year");
  869. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
  870. ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
  871. ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
  872. setCalendar(isDate);
  873. }
  874. /****************************************************************************************
  875. * Components : Button
  876. * Components ID : button35
  877. * Event : onclick
  878. * Argument : 01.obj : Object Event has occurred
  879. * : 02.e : Event Object
  880. * Description : >버튼 클릭시
  881. ****************************************************************************************/
  882. function grp_biz_group2_button35_onclick(obj:Button, e:ClickEventInfo)
  883. {
  884. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  885. var isYear = ds_hidden_calendar.getColumn(0, "year");
  886. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
  887. ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
  888. ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
  889. setCalendar(isDate);
  890. }
  891. /****************************************************************************************
  892. * Components : Button
  893. * Components ID : button36
  894. * Event : onclick
  895. * Argument : 01.obj : Object Event has occurred
  896. * : 02.e : Event Object
  897. * Description : <<버튼 클릭시
  898. ****************************************************************************************/
  899. function grp_biz_group2_button36_onclick(obj:Button, e:ClickEventInfo)
  900. {
  901. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  902. var isYear = ds_hidden_calendar.getColumn(0, "year");
  903. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
  904. ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
  905. ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
  906. setCalendar(isDate);
  907. }
  908. /****************************************************************************************
  909. * Components : Grid
  910. * Components ID : grd_calendar
  911. * Event : oncellclick
  912. * Argument : 01.obj : Object Event has occurred
  913. * : 02.e : Event Object
  914. * Description : 그리드 셀 클릭시
  915. ****************************************************************************************/
  916. function grp_biz_grd_calendar_oncellclick(obj:Grid, e:GridClickEventInfo)
  917. {
  918. ds_hidden_grdcellcolor.setColumn(0, "calrow",e.row);
  919. ds_hidden_grdcellcolor.setColumn(0, "calcol",e.col);
  920. setCellColor(grp_biz.grd_calendar);
  921. var selqty = "";
  922. if( grp_biz.grd_calendar.currentcol < 7 ){
  923. selqty = ds_hidden_calendar_weeklist_list.getColumn(e.row, utlf_transNullToEmpty(grp_biz.grd_calendar.getCellProperty("Body", e.col+7, "text")).replace("bind:", ""));
  924. }else{
  925. selqty = ds_hidden_calendar_weeklist_list.getColumn(e.row, utlf_transNullToEmpty(grp_biz.grd_calendar.getCellProperty("Body", e.col, "text")).replace("bind:", ""));
  926. }
  927. ds_send.setColumn(0, "srchtotalqty", selqty );
  928. }
  929. /****************************************************************************************
  930. * Components : Button
  931. * Components ID : btn_save
  932. * Event : onclick
  933. * Argument : 01.obj : Object Event has occurred
  934. * : 02.e : Event Object
  935. * Description : 저장버튼 클릭시
  936. ****************************************************************************************/
  937. function grp_biz_btn_save_onclick(obj:Button, e:ClickEventInfo)
  938. {
  939. ds_main_savedata_item.clearData();
  940. var appdd = ds_hidden_calendar.getColumn(0, "year") + ds_hidden_calendar.getColumn(0, "month");
  941. var curdate = "";
  942. var curqty = "";
  943. var cnt = "";
  944. var idx = 0;
  945. for( var i = 0; i < ds_hidden_calendar_weeklist_list.rowcount ; i++ ){
  946. for( var a = 0; a <= 6 ; a++ ){
  947. if( !utlf_isNull(ds_hidden_calendar_weeklist_list.getColumn(i, utlf_transNullToEmpty(grp_biz.grd_calendar.getCellProperty("Body", a, "text")).replace("bind:", ""))) ){
  948. curdate = ds_hidden_calendar_weeklist_list.getColumn(i, utlf_transNullToEmpty(grp_biz.grd_calendar.getCellProperty("Body", a, "text")).replace("bind:", ""));
  949. curqty = ds_hidden_calendar_weeklist_list.getColumn(i, utlf_transNullToEmpty(grp_biz.grd_calendar.getCellProperty("Body", a+7, "text")).replace("bind:", ""));
  950. if( curdate < 10 ){
  951. curdate = "0" + curdate;
  952. }
  953. ds_main_savedata_item.addRow();
  954. ds_main_savedata_item.setColumn(idx, "srchmenuflag", ds_send.getColumn(0, "srchmenuflag"));
  955. ds_main_savedata_item.setColumn(idx, "srchtotalqty", curqty );
  956. ds_main_savedata_item.setColumn(idx, "appdd", appdd + curdate );
  957. ds_main_savedata_item.setColumn(idx, "detlclsnm", ds_main_etcclsdetl_data.getColumn(ds_main_etcclsdetl_data.rowposition, "detlclsnm") );
  958. ds_main_savedata_item.setColumn(idx, "foodcd", ds_main_etcclsdetl_data.getColumn(ds_main_etcclsdetl_data.rowposition, "smlcd") );
  959. idx++;
  960. }
  961. }
  962. }
  963. var oParam = {};
  964. oParam.id = "TXANB00701";
  965. oParam.service = "dietbaseapp.FoodCode";
  966. oParam.method = "reqSetExceptFoodUpdt";
  967. oParam.inds = "req=ds_main_savedata_item";
  968. oParam.outds = "ds_temp_item=item";
  969. oParam.async = false;
  970. //oParam.callback = "cf_TXANB00701";
  971. tranf_submit(oParam);
  972. initCalendar( (ds_hidden_calendar.getColumn(0, "year") + ds_hidden_calendar.getColumn(0, "month") + "01") );
  973. setCellColor(grp_biz.grd_calendar);
  974. }
  975. /****************************************************************************************
  976. * Components : Button
  977. * Components ID : button3
  978. * Event : onclick
  979. * Argument : 01.obj : Object Event has occurred
  980. * : 02.e : Event Object
  981. * Description : 조회버튼 클릭시
  982. ****************************************************************************************/
  983. function group4_button3_onclick(obj:Button, e:ClickEventInfo)
  984. {
  985. if( ds_send.getColumn(0, "srchmenuflag") == "QE"){
  986. ds_send_searchitem2.setColumn(0, "lrgcd", "ET");
  987. ds_send_searchitem2.setColumn(0, "mdlcd", "ET00");
  988. }
  989. if( ds_send.getColumn(0, "srchmenuflag") == "QT"){
  990. ds_send_searchitem2.setColumn(0, "lrgcd", "ET");
  991. ds_send_searchitem2.setColumn(0, "mdlcd", "ET01");
  992. }
  993. var oParam = {};
  994. oParam.id = "TRANB00211";
  995. oParam.service = "dietbaseapp.Dietbase";
  996. oParam.method = "reqGetEtcClsDetl";
  997. oParam.inds = "req=ds_send_searchitem2";
  998. oParam.outds = "ds_main_etcclsdetl_data=ret";
  999. oParam.async = false;
  1000. //oParam.callback = "cf_TRANB00211";
  1001. tranf_submit(oParam);
  1002. ds_main_etcclsdetl_data.rowposition = -1;
  1003. var curDate = utlf_getCurrentDate().toDate().getDateFormat('YYYYMM');
  1004. initCalendar(curDate);
  1005. setCurrentDate(grp_biz.grd_calendar);
  1006. ds_send.setColumn(0, "srchtotalqty" , "");
  1007. }
  1008. /****************************************************************************************
  1009. * Components : Radio
  1010. * Components ID : rdo_menuflag
  1011. * Event : onitemchanged
  1012. * Argument : 01.obj : Object Event has occurred
  1013. * : 02.e : Event Object
  1014. * Description : 라디오 값 변경시
  1015. ****************************************************************************************/
  1016. function group4_rdo_menuflag_onitemchanged(obj, e)
  1017. {
  1018. group4.button3.click();
  1019. }
  1020. ]]></Script>
  1021. </Form>
  1022. </FDL>