SMANB00300_식사처방지침서관리.xfdl 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMANB00300" position="absolute 0 0 1246 872" titletext="식사처방지침서관리" onload="SMANB00300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="Static01" class="SA_div" position="absolute 0 87 435 113"/>
  8. <Static id="caption1" text="식사처방지침서분류" class="tit_2" position="absolute 1 65 207 85" positiontype="position"/>
  9. <Shape id="line1" class="line_10" position="absolute 0 82 433 91" linetype="horizontal" positiontype="position"/>
  10. <Grid id="trv_dietprcpguide" taborder="3" useinputpanel="false" position="absolute 0 115 434 842" onlbuttonDown="trv_dietprcpguide_onlbuttonDown" autofittype="col" positiontype="position" onbuttondown="trv_dietprcpguide_onbuttondown" binddataset="ds_trv_dietprcpguide" autoenter="none" selecttype="row" treeusecheckbox="false" treeinitstatus="expand,all" oncellclick="trv_dietprcpguide_oncellclick" onrbuttondown="trv_dietprcpguide_onrbuttondown" anchor="left top bottom">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="429"/>
  15. </Columns>
  16. <Rows>
  17. <Row size="24"/>
  18. </Rows>
  19. <Band id="body">
  20. <Cell displaytype="tree" edittype="tree" text="bind:setnm" treelevel="bind:levl"/>
  21. </Band>
  22. </Format>
  23. </Formats>
  24. </Grid>
  25. <Div id="group1" taborder="4" position="absolute 173 447 391 502" class="div_DA_box" positiontype="position" visible="false">
  26. <Layouts>
  27. <Layout>
  28. <Static id="caption4" text="분류명" position="absolute 8 5 65 25" style="align:center middle;" class="search_name" anchor="default" positiontype="position"/>
  29. <Edit id="ipt_setnm" taborder="4" class="input_default" position="absolute 69 5 208 25" imemode="hangul" anchor="default" positiontype="position"/>
  30. <Button id="btn_cnfm" taborder="5" text="확인" class="btn2" position="absolute 117 28 161 48" onclick="btn_cnfm_onclick" anchor="default" positiontype="position"/>
  31. <Button id="btn_cncl" taborder="6" text="취소" onlbuttonup="btn_cncl_onlbuttonup" class="btn2" position="absolute 164 28 208 48" onclick="btn_cncl_onclick" anchor="default" positiontype="position"/>
  32. </Layout>
  33. </Layouts>
  34. </Div>
  35. <Shape id="line7" class="line_2" position="absolute 0 144 454 144" linetype="horizontal" positiontype="position"/>
  36. <Static id="caption7" text="분류코드" class="cell_1" position="absolute 1 88 76 112" positiontype="position"/>
  37. <Edit id="ipt_mealclscd" taborder="10" position="absolute 79 90 153 110" imemode="hangul" positiontype="position" enable="false"/>
  38. <Static id="caption8" text="분류명" class="cell_1" position="absolute 157 88 232 112" positiontype="position"/>
  39. <Edit id="ipt_mealclsnm" taborder="11" position="absolute 235 90 431 110" imemode="hangul" positiontype="position" enable="false"/>
  40. <Static id="caption6" text="식사처방지침서관리" class="tit_1" position="absolute 0 0 212 25" positiontype="position"/>
  41. <Div id="part" taborder="23" position="absolute 447 62 1242 844" anchor="all" scrollbars="none">
  42. <Layouts>
  43. <Layout width="809" height="774">
  44. <Grid id="grd_foodbase" taborder="1" binddataset="ds_grid_grd_foodbase" useinputpanel="false" autofittype="col" position="absolute 3 640 795 781" anchor="left top right" cellclickbound="cell" autoenter="select" onkeydown="part_grd_foodbase_onkeydown">
  45. <Formats>
  46. <Format id="default">
  47. <Columns>
  48. <Column size="0"/>
  49. <Column size="0"/>
  50. <Column size="30"/>
  51. <Column size="147"/>
  52. <Column size="83"/>
  53. <Column size="83"/>
  54. <Column size="83"/>
  55. <Column size="83"/>
  56. <Column size="83"/>
  57. <Column size="83"/>
  58. <Column size="83"/>
  59. </Columns>
  60. <Rows>
  61. <Row size="24" band="head"/>
  62. <Row size="24"/>
  63. </Rows>
  64. <Band id="head">
  65. <Cell text="setno"/>
  66. <Cell col="1" text="seqno"/>
  67. <Cell col="2"/>
  68. <Cell col="3" text="식사분류"/>
  69. <Cell col="4" text="곡류군"/>
  70. <Cell col="5" text="어육류군"/>
  71. <Cell col="6" text="채소군"/>
  72. <Cell col="7" text="지방군"/>
  73. <Cell col="8" text="우유군"/>
  74. <Cell col="9" text="과일군"/>
  75. <Cell col="10" text="열량보충군"/>
  76. </Band>
  77. <Band id="body">
  78. <Cell text="bind:setno"/>
  79. <Cell col="1" text="bind:seqno"/>
  80. <Cell col="2" celltype="head" text="expr:++ currow"/>
  81. <Cell col="3" displaytype="text" edittype="text" text="bind:dietclsnm"/>
  82. <Cell col="4" displaytype="text" edittype="text" style="align:right;" text="bind:cerealgrup"/>
  83. <Cell col="5" edittype="normal" style="align:right;" text="bind:meatgrup"/>
  84. <Cell col="6" edittype="normal" style="align:right;" text="bind:vegtgrup"/>
  85. <Cell col="7" displaytype="text" edittype="text" style="align:right;" text="bind:lipidgrup"/>
  86. <Cell col="8" displaytype="text" edittype="text" style="align:right;" text="bind:milkgrup"/>
  87. <Cell col="9" displaytype="text" edittype="text" style="align:right;" text="bind:fruitgrup"/>
  88. <Cell col="10" displaytype="text" edittype="text" style="align:right;" text="bind:calrsupply"/>
  89. </Band>
  90. </Format>
  91. </Formats>
  92. </Grid>
  93. <Static id="Static02" class="SA_div" position="absolute 3 25 795 316" anchor="left top right"/>
  94. <Static id="caption3" text="식사처방지침서내용" class="tit_2" position="absolute 4 5 151 25" anchor="left top"/>
  95. <Shape id="line2" class="line_10" position="absolute 4 21 791 28" anchor="left top right"/>
  96. <Edit id="opt_mealnm" taborder="2" position="absolute 107 28 791 48" anchor="left top right" maxlength="100" readonly="true" tooltiptext="식사처방명의 수정의 좌측 화면에서 마우스 우클릭을 이용해서 수정해 주세요" tooltiptype="hover,mouseleave"/>
  97. <Static id="caption20" text="지침" class="cell_1" position="absolute 4 51 104 215" anchor="left top"/>
  98. <Shape id="line5" class="line_2" position="absolute 6 48 789 52" anchor="default"/>
  99. <Static id="caption19" text="식사명" class="cell_1" position="absolute 4 26 104 50" anchor="left top"/>
  100. <TextArea id="txt_dietprcpguidecnts" taborder="3" imemode="hangul" wordwrap="both" position="absolute 107 51 791 216" anchor="left top right" maxlength="2000"/>
  101. <Shape id="line6" class="line_3" position="absolute 5 316 789 318" anchor="left top right"/>
  102. <Static id="caption5" text="1일 식품구성" class="tit_2" position="absolute 3 619 137 639" anchor="left top"/>
  103. <Button id="btn_addrow3" taborder="4" text="행추가" onclick="btn_addrow3_onclick" onlbuttonup="btn_addrow3_onlbuttonup" class="btn2" position="absolute 680 615 736 635" anchor="top right"/>
  104. <Button id="btn_delrow3" taborder="5" text="행삭제" onclick="btn_delrow3_onclick" onlbuttonup="btn_delrow3_onlbuttonup" class="btn2" position="absolute 739 615 795 635" anchor="top right"/>
  105. <Shape id="line3" class="line_2" position="absolute 6 216 789 219" anchor="default"/>
  106. <Static id="caption9" text="비고" class="cell_1" position="absolute 4 218 104 315" anchor="left top"/>
  107. <TextArea id="txt_dietplan" taborder="6" imemode="hangul" wordwrap="both" position="absolute 107 218 791 313" anchor="left top right" maxlength="2000"/>
  108. <Shape id="line8" class="line_10" position="absolute 3 345 794 352" anchor="left top right"/>
  109. <Grid id="grd_nutrbase" taborder="7" binddataset="ds_grid_grd_nutrbase" useinputpanel="false" autofittype="col" position="absolute 3 494 795 609" anchor="left top right" autoenter="select" cellclickbound="cell" onkeydown="part_grd_nutrbase_onkeydown">
  110. <Formats>
  111. <Format id="default">
  112. <Columns>
  113. <Column size="0"/>
  114. <Column size="0"/>
  115. <Column size="30"/>
  116. <Column size="140"/>
  117. <Column size="95"/>
  118. <Column size="95"/>
  119. <Column size="0"/>
  120. <Column size="95"/>
  121. <Column size="0"/>
  122. <Column size="95"/>
  123. <Column size="0"/>
  124. <Column size="95"/>
  125. <Column size="95"/>
  126. <Column size="0"/>
  127. </Columns>
  128. <Rows>
  129. <Row size="34" band="head"/>
  130. <Row size="24"/>
  131. </Rows>
  132. <Band id="head">
  133. <Cell text="setno"/>
  134. <Cell col="1" text="seqno"/>
  135. <Cell col="2"/>
  136. <Cell col="3" text="식사분류" wordwrap="word"/>
  137. <Cell col="4" text="열량(㎉)" wordwrap="word"/>
  138. <Cell col="5" text="당질(g)" wordwrap="word"/>
  139. <Cell col="6" text="당질비&#13;&#10;(%)" wordwrap="word"/>
  140. <Cell col="7" text="단백질(g)" wordwrap="word"/>
  141. <Cell col="8" text="단백질비&#13;&#10;(%)" wordwrap="word"/>
  142. <Cell col="9" text="지질(g)" wordwrap="word"/>
  143. <Cell col="10" text="지질비&#13;&#10;(%)" wordwrap="word"/>
  144. <Cell col="11" text="나트륨(㎎)" wordwrap="word"/>
  145. <Cell col="12" text="칼륨(㎎)" wordwrap="word"/>
  146. <Cell col="13" text="인(mg)" wordwrap="word"/>
  147. </Band>
  148. <Band id="body">
  149. <Cell text="bind:setno"/>
  150. <Cell col="1" text="bind:seqno"/>
  151. <Cell col="2" celltype="head" text="expr:++ currow"/>
  152. <Cell col="3" displaytype="text" edittype="text" text="bind:dietclsnm"/>
  153. <Cell col="4" displaytype="text" edittype="normal" style="align:right;" text="bind:calr"/>
  154. <Cell col="5" displaytype="text" edittype="normal" style="align:right;" text="bind:gluco"/>
  155. <Cell col="6" edittype="normal" text="bind:glucorat"/>
  156. <Cell col="7" displaytype="text" edittype="text" style="align:right;" text="bind:prot"/>
  157. <Cell col="8" edittype="normal" text="bind:protrat"/>
  158. <Cell col="9" displaytype="text" edittype="text" style="align:right;" text="bind:lipo"/>
  159. <Cell col="10" edittype="normal" text="bind:liporat"/>
  160. <Cell col="11" displaytype="text" edittype="text" style="align:right;" text="bind:sodium"/>
  161. <Cell col="12" displaytype="text" edittype="text" style="align:right;" text="bind:potas"/>
  162. <Cell col="13" displaytype="text" edittype="text" style="align:right;" text="bind:phos"/>
  163. </Band>
  164. </Format>
  165. </Formats>
  166. </Grid>
  167. <Button id="btn_delrow2" taborder="8" text="행삭제" onclick="btn_delrow2_onclick" onlbuttonup="btn_delrow2_onlbuttonup" class="btn2" position="absolute 739 469 795 489" anchor="top right"/>
  168. <Static id="caption11" text="1일 영양기준량" class="tit_2" position="absolute 3 473 137 493" anchor="left top"/>
  169. <Shape id="line9" class="line_10" position="absolute 2 490 794 494" anchor="left top right"/>
  170. <Button id="btn_addrow2" taborder="9" text="행추가" onclick="btn_addrow2_onclick" class="btn2" position="absolute 680 469 736 489" anchor="top right"/>
  171. <Grid id="grd_food" taborder="0" useinputpanel="false" position="absolute 4 1365 796 1634" anchor="left top right" binddataset="ds_grid_food" autofittype="col" autosizingtype="row" extendsizetype="row">
  172. <Formats>
  173. <Format id="default">
  174. <Columns>
  175. <Column size="64"/>
  176. <Column size="177"/>
  177. <Column size="171"/>
  178. <Column size="177"/>
  179. </Columns>
  180. <Rows>
  181. <Row size="24"/>
  182. </Rows>
  183. <Band id="body">
  184. <Cell celltype="head" edittype="normal" style="padding:6 0 6 0;" text="bind:foodtype1"/>
  185. <Cell col="1" celltype="none" edittype="textarea" style="align:expr:currow==0?&quot;center&quot;:&quot;left&quot;;padding:0 3 0 3;background:expr:currow==0?&quot;#c7ebf5&quot;:&quot;&quot;;selectbackground:expr:currow==0?&quot;#c7ebf5&quot;:&quot;&quot;;" text="bind:foodtype2"/>
  186. <Cell col="2" edittype="textarea" style="align:expr:currow==0?&quot;center&quot;:&quot;left&quot;;padding:0 3 0 3;background:expr:currow==0?&quot;#c7ebf5&quot;:&quot;&quot;;selectbackground:expr:currow==0?&quot;#c7ebf5&quot;:&quot;&quot;;" text="bind:foodtype3" wordwrap="both"/>
  187. <Cell col="3" edittype="textarea" style="align:expr:currow==0?&quot;center&quot;:&quot;left&quot;;padding:0 3 0 3;background:expr:currow==0?&quot;#c7ebf5&quot;:&quot;&quot;;selectbackground:expr:currow==0?&quot;#c7ebf5&quot;:&quot;&quot;;" text="bind:foodtype4"/>
  188. </Band>
  189. </Format>
  190. </Formats>
  191. </Grid>
  192. <Static id="caption04" text="식품선택 고려사항" class="tit_2" position="absolute 5 1345 139 1365" anchor="left top"/>
  193. <Grid id="grd_dish" taborder="13" useinputpanel="false" position="absolute 4 900 795 1216" anchor="left top right" autofittype="col" binddataset="ds_grid_dish" autosizingtype="row" extendsizetype="row">
  194. <Formats>
  195. <Format id="default">
  196. <Columns>
  197. <Column size="34"/>
  198. <Column size="122"/>
  199. <Column size="631"/>
  200. </Columns>
  201. <Rows>
  202. <Row size="24" band="head"/>
  203. <Row size="24"/>
  204. </Rows>
  205. <Band id="head">
  206. <Cell/>
  207. <Cell col="1" text="구분"/>
  208. <Cell col="2" text="내용"/>
  209. </Band>
  210. <Band id="body">
  211. <Cell celltype="head" style="padding:6 0 6 0;" text="expr:currow+1"/>
  212. <Cell col="1" edittype="normal" style="padding:0 0 0 0;" text="bind:dishtype"/>
  213. <Cell col="2" displaytype="text" edittype="textarea" style="padding:0 0 0 0;" text="bind:dishdesc" wordwrap="both"/>
  214. </Band>
  215. </Format>
  216. </Formats>
  217. </Grid>
  218. <Radio id="rdofdcolcnt" taborder="14" columncount="0" rowcount="1" position="absolute 174 1342 286 1362" innerdataset="@ds_rdo_grid" datacolumn="nm" codecolumn="cd" value="4" index="1" onitemchanged="part_rdoColumn_onitemchanged" anchor="left top"/>
  219. <Static id="caption06" text="상차림구성" class="tit_2" position="absolute 4 880 138 900" anchor="left top"/>
  220. <Static id="Static01" class="sta_DA_box" position="absolute 4 1226 796 1335" anchor="left top right"/>
  221. <Static id="caption02" text="식단작성 고려사항" class="cell_1" position="absolute 5 1227 105 1334" anchor="left top"/>
  222. <TextArea id="tar_guide01" taborder="20" imemode="hangul" wordwrap="both" maxlength="2000" position="absolute 108 1229 792 1332" anchor="left top right"/>
  223. <Static id="caption00" text="식사제공 기준량" class="tit_2" position="absolute 3 329 137 349" anchor="left top"/>
  224. <Grid id="grd_dietbase" taborder="21" binddataset="ds_grid_grd_dietbase" autoenter="select" useinputpanel="false" autofittype="col" cellclickbound="cell" onkeydown="part_grd_nutrbase_onkeydown" position="absolute 3 350 795 465" anchor="left top right">
  225. <Formats>
  226. <Format id="default">
  227. <Columns>
  228. <Column size="0"/>
  229. <Column size="0"/>
  230. <Column size="30"/>
  231. <Column size="140"/>
  232. <Column size="95"/>
  233. <Column size="95"/>
  234. <Column size="90"/>
  235. <Column size="95"/>
  236. <Column size="242"/>
  237. </Columns>
  238. <Rows>
  239. <Row size="34" band="head"/>
  240. <Row size="24"/>
  241. </Rows>
  242. <Band id="head">
  243. <Cell text="setno"/>
  244. <Cell col="1" text="seqno"/>
  245. <Cell col="2"/>
  246. <Cell col="3" text="식사분류" wordwrap="word"/>
  247. <Cell col="4" text="밥(g)" wordwrap="word"/>
  248. <Cell col="5" text="죽(g)" wordwrap="word"/>
  249. <Cell col="6" text="미음(g)" wordwrap="word"/>
  250. <Cell col="7" text="찬(g)" wordwrap="word"/>
  251. <Cell col="8" text="기타(g)" wordwrap="word"/>
  252. </Band>
  253. <Band id="body">
  254. <Cell text="bind:setno"/>
  255. <Cell col="1" text="bind:seqno"/>
  256. <Cell col="2" celltype="head" text="expr:++ currow"/>
  257. <Cell col="3" displaytype="text" edittype="text" text="bind:dietclsnm"/>
  258. <Cell col="4" displaytype="text" edittype="text" style="align:right;" text="bind:rice"/>
  259. <Cell col="5" displaytype="text" edittype="text" style="align:right;" text="bind:gruel"/>
  260. <Cell col="6" displaytype="text" edittype="text" text="bind:watergruel"/>
  261. <Cell col="7" displaytype="text" edittype="text" style="align:right;" text="bind:sidedish"/>
  262. <Cell col="8" displaytype="text" edittype="text" text="bind:etc"/>
  263. </Band>
  264. </Format>
  265. </Formats>
  266. </Grid>
  267. <Button id="btn_addrow1" taborder="22" text="행추가" class="btn2" position="absolute 680 325 736 345" anchor="top right" onclick="part_btn_addrow1_onclick"/>
  268. <Button id="btn_delrow1" taborder="23" text="행삭제" class="btn2" position="absolute 739 325 795 345" anchor="top right" onclick="part_btn_delrow1_onclick"/>
  269. <Shape id="line00" class="line_10" position="absolute 3 636 795 640" anchor="left top right"/>
  270. </Layout>
  271. </Layouts>
  272. </Div>
  273. <Button id="btn_reset" taborder="24" text="초기화" onclick="btn_reset_onclick" onlbuttonup="btn_reset_onlbuttonup" class="btn4" position="absolute 1113 847 1181 867" anchor="right bottom"/>
  274. <Button id="btn_save" taborder="25" text="저장" onclick="btn_save_onclick" onlbuttonup="btn_save_onlbuttonup" class="btn4" position="absolute 1185 847 1241 867" anchor="right bottom" hotkey="CTRL+S"/>
  275. <Div id="grp" taborder="26" class="div_SA" position="absolute 0 25 1235 60">
  276. <Layouts>
  277. <Layout width="1182" height="35">
  278. <Button id="btn_search1" taborder="9" text="조회" onclick="swt_nutrsrchrslt_case1_grp_btn_search1_onclick" class="btn1" position="absolute 1154 7 1210 29" anchor="default"/>
  279. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1137 7 1143 29" anchor="default"/>
  280. <Static id="caption1" text="식사분류 :" class="search_name" position="absolute 16 9 89 26" anchor="default"/>
  281. <Combo id="cmb_mealcls" taborder="16" innerdataset="@ds_init_P0021list" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 93 8 375 27" anchor="default"/>
  282. </Layout>
  283. </Layouts>
  284. </Div>
  285. <Button id="btn_DietOderGuide2019" taborder="27" text="2019년 식사처방지침서" class="btn5" position="absolute 449 847 599 867" tooltiptext="2019년 식사처방 지침서" style="align:center middle;shadow:drop 1,1 3 #808080c8;" onclick="btn_DietOderGuide2019_onclick" visible="true"/>
  286. </Layout>
  287. </Layouts>
  288. <Objects>
  289. <Dataset id="ds_grid_grd_foodbase" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  290. <ColumnInfo>
  291. <Column id="setno" type="STRING"/>
  292. <Column id="seqno" type="STRING"/>
  293. <Column id="dietclsnm" type="STRING"/>
  294. <Column id="cerealgrup" type="STRING"/>
  295. <Column id="meatgrup" type="STRING"/>
  296. <Column id="vegtgrup" type="STRING"/>
  297. <Column id="lipidgrup" type="STRING"/>
  298. <Column id="milkgrup" type="STRING"/>
  299. <Column id="fruitgrup" type="STRING"/>
  300. <Column id="calrsupply" type="STRING"/>
  301. </ColumnInfo>
  302. </Dataset>
  303. <Dataset id="ds_grid_grd_nutrbase" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  304. <ColumnInfo>
  305. <Column id="setno" type="STRING"/>
  306. <Column id="seqno" type="STRING"/>
  307. <Column id="dietclsnm" type="STRING"/>
  308. <Column id="calr" type="STRING"/>
  309. <Column id="gluco" type="STRING"/>
  310. <Column id="prot" type="STRING"/>
  311. <Column id="lipo" type="STRING"/>
  312. <Column id="sodium" type="STRING"/>
  313. <Column id="potas" type="STRING"/>
  314. </ColumnInfo>
  315. </Dataset>
  316. <Dataset id="ds_trv_dietprcpguide" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  317. <ColumnInfo>
  318. <Column id="setnm" type="STRING" size="256"/>
  319. <Column id="setno" type="INT" size="256"/>
  320. <Column id="levl" type="INT" size="256"/>
  321. <Column id="supsetno" type="INT" size="256"/>
  322. <Column id="sortno" type="STRING" size="256"/>
  323. <Column id="status" type="STRING" size="256"/>
  324. <Column id="path" type="STRING" size="256"/>
  325. </ColumnInfo>
  326. </Dataset>
  327. <Dataset id="ds_grid_grd_guidecnts" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  328. <ColumnInfo>
  329. <Column id="setno" type="STRING" size="256"/>
  330. <Column id="setnm" type="STRING" size="256"/>
  331. <Column id="dietprcpguidecnts" type="STRING" size="256"/>
  332. <Column id="dietprcpguiderem" type="STRING" size="256"/>
  333. <Column id="setennm" type="STRING" size="256"/>
  334. <Column id="dietplan" type="STRING" size="256"/>
  335. </ColumnInfo>
  336. <Rows>
  337. <Row/>
  338. </Rows>
  339. </Dataset>
  340. <Dataset id="ds_send_searchitem" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  341. <ColumnInfo>
  342. <Column id="setno" type="STRING" size="256"/>
  343. <Column id="setnm" type="STRING" size="256"/>
  344. </ColumnInfo>
  345. <Rows>
  346. <Row/>
  347. </Rows>
  348. </Dataset>
  349. <Dataset id="ds_rdo_grid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  350. <ColumnInfo>
  351. <Column id="cd" type="STRING" size="256"/>
  352. <Column id="nm" type="STRING" size="256"/>
  353. </ColumnInfo>
  354. <Rows>
  355. <Row>
  356. <Col id="cd">3</Col>
  357. <Col id="nm">3열</Col>
  358. </Row>
  359. <Row>
  360. <Col id="cd">4</Col>
  361. <Col id="nm">4열</Col>
  362. </Row>
  363. </Rows>
  364. </Dataset>
  365. <Dataset id="ds_grid_grd_dietbase" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  366. <ColumnInfo>
  367. <Column id="setno" type="STRING" size="256"/>
  368. <Column id="seqno" type="STRING" size="256"/>
  369. <Column id="dietclsnm" type="STRING" size="256"/>
  370. <Column id="rice" type="STRING" size="256"/>
  371. <Column id="gruel" type="STRING" size="256"/>
  372. <Column id="watergruel" type="STRING" size="256"/>
  373. <Column id="sidedish" type="STRING" size="256"/>
  374. <Column id="etc" type="STRING" size="256"/>
  375. </ColumnInfo>
  376. <Rows>
  377. <Row>
  378. <Col id="setno"/>
  379. <Col id="seqno"/>
  380. <Col id="dietclsnm"/>
  381. <Col id="rice"/>
  382. <Col id="gruel"/>
  383. <Col id="watergruel"/>
  384. <Col id="sidedish"/>
  385. <Col id="etc"/>
  386. </Row>
  387. </Rows>
  388. </Dataset>
  389. <Dataset id="ds_init_P0021list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  390. <ColumnInfo>
  391. <Column id="cdid" type="STRING" size="256"/>
  392. <Column id="cdnm" type="STRING" size="256"/>
  393. </ColumnInfo>
  394. </Dataset>
  395. </Objects>
  396. <Bind>
  397. <BindItem id="item0" compid="ipt_mealclscd" propid="value" datasetid="ds_send_searchitem" columnid="setno"/>
  398. <BindItem id="item1" compid="ipt_mealclsnm" propid="value" datasetid="ds_send_searchitem" columnid="setnm"/>
  399. <BindItem id="item3" compid="part.opt_mealnm" propid="value" datasetid="ds_grid_grd_guidecnts" columnid="setnm"/>
  400. <BindItem id="item2" compid="part.txt_dietprcpguidecnts" propid="value" datasetid="ds_grid_grd_guidecnts" columnid="dietprcpguidecnts"/>
  401. <BindItem id="item5" compid="part.txt_dietplan" propid="value" datasetid="ds_grid_grd_guidecnts" columnid="dietprcpguiderem"/>
  402. <BindItem id="item6" compid="part.rdofdcolcnt" propid="value" datasetid="ds_grid_grd_guidecnts" columnid="fdcolcnt"/>
  403. <BindItem id="item7" compid="part.tar_guide01" propid="value" datasetid="ds_grid_grd_guidecnts" columnid="dishcon"/>
  404. </Bind>
  405. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  406. * System Name :
  407. * Job Name :
  408. * File Name : SMANB00300_식사처방지침서관리.xfdl
  409. * Creator :
  410. * Make Date :
  411. *
  412. * Description :
  413. *---------------------------------------------------------------------------------------
  414. * Modify Date Modifier Modify Description
  415. *---------------------------------------------------------------------------------------
  416. *
  417. *---------------------------------------------------------------------------------------
  418. ****************************************************************************************/
  419. //=======================================================================================
  420. // xjs Include
  421. //---------------------------------------------------------------------------------------
  422. include "com_commonxp::comm_main.xjs";
  423. //=======================================================================================
  424. // Function
  425. //---------------------------------------------------------------------------------------
  426. function lf_init_SMANB00300(){
  427. frmf_createPopupMenu("pmn_popupMenu", "pmn_popupMenu_onmenuclick", [{id: "fAddItem", level: "1", title: "추가"}
  428. , {id: "fUpdtItem", level: "1", title: "이름바꾸기"}
  429. , {id: "fDelItem", level: "1", title: "삭제"}]);
  430. }
  431. function pmn_popupMenu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo){
  432. if (e.id == "fAddItem") {
  433. fAddItem();
  434. }
  435. else if (e.id == "fUpdtItem") {
  436. fUpdtItem();
  437. }
  438. else if (e.id == "fDelItem") {
  439. fDelItem();
  440. }
  441. }
  442. //Tree에 아이템 추가
  443. function fAddItem() {
  444. if (ds_trv_dietprcpguide.rowposition == -1) {
  445. sysf_messageBox("작성할 폴더를 선택한 후 작업", "I008");
  446. return;
  447. }
  448. var rowPos = ds_trv_dietprcpguide.rowposition;
  449. var levl = ds_trv_dietprcpguide.getColumn(rowPos, "levl");
  450. var supsetno = ds_trv_dietprcpguide.getColumn(rowPos, "setno");
  451. var sortno = ds_trv_dietprcpguide.getColumn(rowPos, "sortno");
  452. ds_trv_dietprcpguide.insertRow(rowPos + 1);
  453. ds_trv_dietprcpguide.setColumn(rowPos + 1, "levl", levl + 1);
  454. ds_trv_dietprcpguide.setColumn(rowPos + 1, "supsetno", supsetno);
  455. ds_trv_dietprcpguide.setColumn(rowPos + 1, "sortno", sortno);
  456. ds_trv_dietprcpguide.setColumn(rowPos + 1, "setno", ds_trv_dietprcpguide.getMax("setno") + 1);
  457. ds_trv_dietprcpguide.setColumn(rowPos + 1, "status", "i");
  458. fShowWndIptBox();
  459. }
  460. //Tree 아이템 이름바꾸기
  461. function fUpdtItem() {
  462. if (ds_trv_dietprcpguide.rowposition == -1) {
  463. messageBox("수정할 폴더를 선택한 후 작업", "I008");
  464. return;
  465. }
  466. var rowPos = ds_trv_dietprcpguide.rowposition;
  467. ds_trv_dietprcpguide.setColumn(rowPos, "status", "u");
  468. fShowWndIptBox();
  469. }
  470. //Tree 아이템 삭제
  471. function fDelItem() {
  472. if (ds_trv_dietprcpguide.rowposition == -1) {
  473. messageBox("삭제할 폴더를 선택한 후 작업", "I008");
  474. return;
  475. }
  476. var rowPos = ds_trv_dietprcpguide.rowposition;
  477. ds_trv_dietprcpguide.setColumn(rowPos, "status", "d");
  478. fSaveTreeSet();
  479. }
  480. //Tree에 추가 or 수정할 아이템명을 입력할 InputBox를 보여줌.
  481. function fShowWndIptBox() {
  482. group1.visible = true;
  483. group1.ipt_setnm.setFocus;
  484. }
  485. //=======================================================================================
  486. // submission
  487. //---------------------------------------------------------------------------------------
  488. function fn_TRANB00301() {
  489. dsf_createDsRow("ds_init_req",
  490. [{col:"info", val:""}]);
  491. var objParam = new Object();
  492. objParam.id = "TRANB00301";
  493. objParam.service = "dietbaseapp.Dietbase";
  494. objParam.method = "reqGetDietPrcpGuideCls";
  495. objParam.inds = "req=ds_init_req";
  496. objParam.outds ="ds_trv_dietprcpguide=treeset";
  497. objParam.callback = "cbf_TRANB00301";
  498. tranf_submit(objParam);
  499. }
  500. //세부내역을 조회한다.
  501. function fn_TRANB00302() {
  502. var oParam = {};
  503. oParam.id = "TRANB00302";
  504. oParam.service = "dietbaseapp.Dietbase";
  505. oParam.method = "reqGetDietPrcpGuideInfo";
  506. oParam.inds = "req=ds_send_searchitem";
  507. oParam.outds = "ds_grid_grd_guidecnts=guidecnts ds_grid_grd_dietbase=dietbase ds_grid_grd_nutrbase=nutrbase ds_grid_grd_foodbase=foodbase";
  508. oParam.async = false;
  509. oParam.callback = "cf_TRANB00302";
  510. tranf_submit(oParam);
  511. }
  512. function fn_TXANB00301() {
  513. tranf_submit({ //저장 submit
  514. id: "TXANB00301"
  515. , service: "dietbaseapp.Dietbase"
  516. , method: "reqExeDietPrcpGuideCls"
  517. , inds: "req=ds_trv_dietprcpguide:U"
  518. , async: true
  519. , callback: "cbf_TXANB00301"
  520. , progress: false
  521. // , alert: true
  522. , typeStr: "m"
  523. });
  524. }
  525. //............................................................
  526. function fn_TXANB00302() {
  527. var objParam = new Object();
  528. objParam.id = "TXANB00302";
  529. objParam.service = "dietbaseapp.Dietbase";
  530. objParam.method = "reqExeDietPrcpGuide";
  531. objParam.inds = "req=ds_grid_grd_guidecnts";
  532. objParam.callback = "cbf_TXANB00302";
  533. tranf_submit(objParam);
  534. }
  535. function fn_TRZBC00101() {
  536. dsf_createDsRow("ds_init_cmd",
  537. [{col:"minimum", val:""}
  538. ,{col:"join", val:""}]);
  539. dsf_createDsRow("ds_data_req",
  540. [{col:"cdgrupid", val:""}
  541. ,{col:"cdid", val:""}
  542. ,{col:"cdnm", val:""}
  543. ,{col:"sortfield", val:""}
  544. ,{col:"sortmethod", val:""}]);
  545. dsf_createDsRow("ds_data_${repeat_ref}/${repeat_ref}",
  546. [{col:"cdid", val:""}
  547. ,{col:"cdnm", val:""}]);
  548. var objParam = new Object();
  549. objParam.id = "TRZBC00101";
  550. objParam.service = "basiccodeapp.BasicCodeUser";
  551. objParam.method = "reqGetCodeLists";
  552. objParam.inds = "cmd=ds_init_cmd req=ds_data_req";
  553. objParam.outds ="ds_data_${repeat_ref}/${repeat_ref}=${repeat_ref}/${repeat_ref}";
  554. objParam.callback = "cbf_TRZBC00101";
  555. tranf_submit(objParam);
  556. }
  557. //=======================================================================================
  558. // callback
  559. //---------------------------------------------------------------------------------------
  560. function cbf_TRANB00301(strSvcID, nErrorCode, strErrorMsg){
  561. //에러 처리
  562. if(nErrorCode == 0){
  563. }else{
  564. }
  565. }
  566. function cf_TRANB00302(strSvcID, nErrorCode, strErrorMsg){
  567. var setno = ipt_mealclscd.value; //기본키값
  568. //에러 처리
  569. if(nErrorCode == 0){
  570. if(ds_grid_grd_guidecnts.rowcount == 0)
  571. {
  572. ds_grid_grd_guidecnts.addRow(0);
  573. ds_grid_grd_guidecnts.setColumn(0, "setno", ds_send_searchitem.getColumn(0, "setno"));
  574. ds_grid_grd_guidecnts.setColumn(0, "setnm", ds_send_searchitem.getColumn(0, "setnm"));
  575. }
  576. }
  577. }
  578. function cbf_TXANB00301(strSvcID, nErrorCode, strErrorMsg){
  579. //에러 처리
  580. if(nErrorCode == 0){
  581. group1.ipt_setnm.value = "";
  582. fn_TRANB00301();
  583. }else{
  584. }
  585. }
  586. function cbf_TXANB00302(strSvcID, nErrorCode, strErrorMsg){
  587. //에러 처리
  588. if(nErrorCode == 0){
  589. fn_TRANB00302(); //저장후 재조회
  590. }else{
  591. }
  592. }
  593. function cbf_TXANB00303(strSvcID, nErrorCode, strErrorMsg){
  594. //에러 처리
  595. if(nErrorCode == 0){
  596. }else{
  597. }
  598. }
  599. function cbf_TRZBC00101(strSvcID, nErrorCode, strErrorMsg){
  600. //에러 처리
  601. if(nErrorCode == 0){
  602. }else{
  603. }
  604. }
  605. //초기화
  606. function finit() {
  607. //zbcfGetCodeList( new Array( "A0046" ), new Array( "/root/init/basecode/meal" ) );
  608. var arrParam = [
  609. {dsNm: "ds_init_P0021list", cdGrpId: "A0046"}
  610. ];
  611. appf_getCodeList(arrParam);
  612. ds_grid_grd_nutrbase.clearData();
  613. ds_grid_grd_foodbase.clearData();
  614. ds_grid_grd_guidecnts.clearData();
  615. ds_trv_dietprcpguide.clearData();
  616. group1.visible = false;
  617. }
  618. //Tree 저장
  619. function fSaveTreeSet() {
  620. fn_TXANB00301();
  621. }
  622. //=======================================================================================
  623. // Event
  624. //---------------------------------------------------------------------------------------
  625. /****************************************************************************************
  626. * Components :
  627. * Components ID : trv_dietprcpguide
  628. * Event : onbuttondown
  629. * Argument : 01.obj : Object Event has occurred
  630. * : 02.e : Event Object
  631. * Description :
  632. ****************************************************************************************/
  633. function trv_dietprcpguide_onbuttondown(obj:Grid, e:MouseEventInfo)
  634. {
  635. setPopupMenu("trv_dietprcpguide", false , "/root/temp/treemenu/menu", "label", "func");
  636. }
  637. /****************************************************************************************
  638. * Components :
  639. * Components ID : btn_cnfm
  640. * Event : onclick
  641. * Argument : 01.obj : Object Event has occurred
  642. * : 02.e : Event Object
  643. * Description :
  644. ****************************************************************************************/
  645. function btn_cnfm_onclick(obj:Button, e:ClickEventInfo)
  646. {
  647. if (ds_trv_dietprcpguide.getRowType(ds_trv_dietprcpguide.rowposition) == 2)
  648. {
  649. var rowPos = ds_trv_dietprcpguide.rowposition;
  650. ds_trv_dietprcpguide.setColumn(rowPos, "setnm", group1.ipt_setnm.text);
  651. }
  652. else if (ds_trv_dietprcpguide.getRowType(ds_trv_dietprcpguide.rowposition) == 4)
  653. {
  654. var rowPos = ds_trv_dietprcpguide.rowposition;
  655. ds_trv_dietprcpguide.setColumn(rowPos, "setnm", group1.ipt_setnm.text);
  656. }
  657. fSaveTreeSet();
  658. group1.visible = false; //group1.attribute("height") = 0;
  659. }
  660. /****************************************************************************************
  661. * Components :
  662. * Components ID : btn_cncl
  663. * Event : onclick
  664. * Argument : 01.obj : Object Event has occurred
  665. * : 02.e : Event Object
  666. * Description :
  667. ****************************************************************************************/
  668. function btn_cncl_onclick(obj:Button, e:ClickEventInfo)
  669. {
  670. ds_trv_dietprcpguide.reset();
  671. group1.visible = false; //group1.attribute("height") = 0;
  672. }
  673. /****************************************************************************************
  674. * Components :
  675. * Components ID : btn_addrow3
  676. * Event : onclick
  677. * Argument : 01.obj : Object Event has occurred
  678. * : 02.e : Event Object
  679. * Description :
  680. ****************************************************************************************/
  681. function btn_addrow3_onclick(obj:Button, e:ClickEventInfo)
  682. {
  683. //Tree에서 분류 선택여부 체크
  684. if (utlf_isNull(ds_send_searchitem.getColumn(0, "setno"))) {
  685. sysf_messageBox("좌측Tree에서 분류를 먼저", "C002");
  686. return;
  687. }
  688. ds_grid_grd_foodbase.addRow();
  689. if (utlf_isNull(ds_grid_grd_guidecnts.getColumn(0, "setno"))) {
  690. ds_grid_grd_foodbase.setColumn(ds_grid_grd_foodbase.rowposition, "setno", ds_send_searchitem.getColumn(0, "setno")); //model.setValue("/root/main/data/dietbase["+ grd_dietbase.row +"]/setno", model.getValue("/root/send/searchitem/setno"));
  691. ds_grid_grd_foodbase.setColumn(ds_grid_grd_foodbase.rowposition, "dietclsnm", ds_send_searchitem.getColumn(0, "setnm"));
  692. } else {
  693. ds_grid_grd_foodbase.setColumn(ds_grid_grd_foodbase.rowposition, "setno", ds_grid_grd_guidecnts.getColumn(0, "setno")); //model.setValue("/root/main/data/dietbase["+ grd_dietbase.row +"]/setno", model.getValue("/root/main/data/guidecnts/setno"));
  694. ds_grid_grd_foodbase.setColumn(ds_grid_grd_foodbase.rowposition, "dietclsnm", ds_send_searchitem.getColumn(0, "setnm"));
  695. }
  696. }
  697. /****************************************************************************************
  698. * Components :
  699. * Components ID : btn_delrow3
  700. * Event : onclick
  701. * Argument : 01.obj : Object Event has occurred
  702. * : 02.e : Event Object
  703. * Description :
  704. ****************************************************************************************/
  705. function btn_delrow3_onclick(obj:Button, e:ClickEventInfo)
  706. {
  707. dsf_deleteSelectedRows(part.grd_foodbase, false); //현재row 데이터 삭제설정(false:실제데이터 삭제, true:상태만변경)
  708. }
  709. /****************************************************************************************
  710. * Components :
  711. * Components ID : btn_delrow2
  712. * Event : onclick
  713. * Argument : 01.obj : Object Event has occurred
  714. * : 02.e : Event Object
  715. * Description :
  716. ****************************************************************************************/
  717. function btn_delrow2_onclick(obj:Button, e:ClickEventInfo)
  718. {
  719. dsf_deleteSelectedRows(part.grd_nutrbase, false); //현재row 데이터 삭제설정(false:실제데이터 삭제, true:상태만변경)
  720. }
  721. /****************************************************************************************
  722. * Components :
  723. * Components ID : btn_addrow2
  724. * Event : onclick
  725. * Argument : 01.obj : Object Event has occurred
  726. * : 02.e : Event Object
  727. * Description :
  728. ****************************************************************************************/
  729. function btn_addrow2_onclick(obj:Button, e:ClickEventInfo)
  730. {
  731. if (utlf_isNull(ds_send_searchitem.getColumn(0, "setno"))) {
  732. sysf_messageBox("좌측Tree에서 분류를 먼저", "C002");
  733. return;
  734. }
  735. ds_grid_grd_nutrbase.addRow();
  736. if (utlf_isNull(ds_grid_grd_guidecnts.getColumn(0, "setno"))) {
  737. ds_grid_grd_nutrbase.setColumn(ds_grid_grd_nutrbase.rowposition, "setno", ds_send_searchitem.getColumn(0, "setno")); //model.setValue("/root/main/data/dietbase["+ grd_dietbase.row +"]/setno", model.getValue("/root/send/searchitem/setno"));
  738. ds_grid_grd_nutrbase.setColumn(ds_grid_grd_nutrbase.rowposition, "dietclsnm", ds_send_searchitem.getColumn(0, "setnm"));
  739. } else {
  740. ds_grid_grd_nutrbase.setColumn(ds_grid_grd_nutrbase.rowposition, "setno", ds_grid_grd_guidecnts.getColumn(0, "setno")); //model.setValue("/root/main/data/dietbase["+ grd_dietbase.row +"]/setno", model.getValue("/root/main/data/guidecnts/setno"));
  741. ds_grid_grd_nutrbase.setColumn(ds_grid_grd_nutrbase.rowposition, "dietclsnm", ds_send_searchitem.getColumn(0, "setnm"));
  742. }
  743. }
  744. /****************************************************************************************
  745. * Components :
  746. * Components ID : btn_reset
  747. * Event : onclick
  748. * Argument : 01.obj : Object Event has occurred
  749. * : 02.e : Event Object
  750. * Description :
  751. ****************************************************************************************/
  752. function btn_reset_onclick(obj:Button, e:ClickEventInfo)
  753. {
  754. finit();
  755. lf_init_SMANB00300();
  756. fn_TRANB00301();
  757. }
  758. // 저장 버튼을 누를때 처리
  759. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  760. {
  761. if ( sysf_messageBox("", "Q002") == 6 ) {
  762. dsf_createDsRow("ds_res", new Array());
  763. var oParam = {};
  764. oParam.id = "TXANB00303";
  765. oParam.service = "dietbaseapp.Dietbase";
  766. oParam.method = "reqExeDietPrcpGuideInfo";
  767. oParam.inds = "dietbase=ds_grid_grd_dietbase:U nutrbase=ds_grid_grd_nutrbase:U foodbase=ds_grid_grd_foodbase:U";
  768. oParam.outds = "";
  769. oParam.async = false;
  770. oParam.typeStr = "m";
  771. oParam.callback = "cf_TXANB00303";
  772. tranf_submit(oParam);
  773. //식사처방지침서내용 저장/수정
  774. //신규입력일 경우
  775. if (utlf_isNull(ds_grid_grd_guidecnts.getColumn(0, "setno"))) {
  776. ds_grid_grd_guidecnts.setColumn(0, "setno", ds_send_searchitem.getColumn(0, "setno"));
  777. }
  778. fn_TXANB00302();
  779. } else { return; }
  780. }
  781. /****************************************************************************************
  782. * Components : Form
  783. * Components ID : SMANB00300
  784. * Event : onload
  785. * Argument : 01.obj : Object Event has occurred
  786. * : 02.e : Event Object
  787. * Description : 화면초기화
  788. ****************************************************************************************/
  789. function SMANB00300_onload(obj:Form, e:LoadEventInfo)
  790. {
  791. frmf_initForm(obj); // 화면공통
  792. finit();
  793. lf_init_SMANB00300();
  794. fn_TRANB00301();
  795. }
  796. function trv_dietprcpguide_oncellclick(obj:Grid, e:GridClickEventInfo)
  797. {
  798. ds_send_searchitem.setColumn(0,"setno",ds_trv_dietprcpguide.getColumn(e.row, "setno"));
  799. ds_send_searchitem.setColumn(0,"setnm",ds_trv_dietprcpguide.getColumn(e.row, "setnm"));
  800. fn_TRANB00302();
  801. }
  802. function trv_dietprcpguide_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  803. {
  804. this.ds_trv_dietprcpguide.rowposition = e.row;
  805. pmn_popupMenu.trackPopup(e.screenX,e.screenY);
  806. }
  807. function part_grd_nutrbase_onkeydown(obj:Grid, e:KeyEventInfo)
  808. {
  809. if( e.keycode == 13)
  810. {
  811. part.grd_nutrbase.moveToNextCell();
  812. }
  813. }
  814. function part_grd_foodbase_onkeydown(obj:Grid, e:KeyEventInfo)
  815. {
  816. if( e.keycode == 13)
  817. {
  818. part.grd_foodbase.moveToNextCell();
  819. }
  820. }
  821. function part_rdoColumn_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  822. {
  823. var val = part.rdofdcolcnt.value;
  824. FoodSelectGridColumnChnage(val);
  825. }
  826. function FoodSelectGridColumnChnage(val)
  827. {
  828. if( val == '3')
  829. {
  830. part.grd_food.setFormatColProperty(3,"size",0);
  831. }
  832. else
  833. {
  834. part.grd_food.setFormatColProperty(3,"size",150);
  835. }
  836. }
  837. function part_btn_addrow1_onclick(obj:Button, e:ClickEventInfo)
  838. {
  839. if (utlf_isNull(ds_send_searchitem.getColumn(0, "setno"))) {
  840. sysf_messageBox("좌측Tree에서 분류를 먼저", "C002");
  841. return;
  842. }
  843. ds_grid_grd_dietbase.addRow();
  844. if (utlf_isNull(ds_grid_grd_guidecnts.getColumn(0, "setno"))) {
  845. ds_grid_grd_dietbase.setColumn(ds_grid_grd_dietbase.rowposition, "setno", ds_send_searchitem.getColumn(0, "setno")); //model.setValue("/root/main/data/dietbase["+ grd_dietbase.row +"]/setno", model.getValue("/root/send/searchitem/setno"));
  846. ds_grid_grd_dietbase.setColumn(ds_grid_grd_dietbase.rowposition, "dietclsnm", ds_send_searchitem.getColumn(0, "setnm"));
  847. } else {
  848. ds_grid_grd_dietbase.setColumn(ds_grid_grd_dietbase.rowposition, "setno", ds_grid_grd_guidecnts.getColumn(0, "setno")); //model.setValue("/root/main/data/dietbase["+ grd_dietbase.row +"]/setno", model.getValue("/root/main/data/guidecnts/setno"));
  849. ds_grid_grd_dietbase.setColumn(ds_grid_grd_dietbase.rowposition, "dietclsnm", ds_send_searchitem.getColumn(0, "setnm"));
  850. }
  851. }
  852. function part_btn_delrow1_onclick(obj:Button, e:ClickEventInfo)
  853. {
  854. dsf_deleteSelectedRows(part.grd_dietbase, false); //현재row 데이터 삭제설정(false:실제데이터 삭제, true:상태만변경)
  855. }
  856. function btn_DietOderGuide2019_onclick(obj:Button, e:ClickEventInfo)
  857. {
  858. frmf_openHtml(gv_sURLprefix + "/xpapps/ast/dietxp/doc/DietOrderGuide2019" + sysf_getUserInfo("dutplceinstcd") + ".pdf");
  859. }
  860. ]]></Script>
  861. </Form>
  862. </FDL>