SMANT00900_선택식환자관리.xfdl 72 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMANT00900" position="absolute 0 0 1201 786" titletext="선택식/개별관리" oninit="SMANT00900_oninit" onload="SMANT00900_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 24 1194 59" align="align:center top;" id="group4" class="div_SA">
  8. <Layouts>
  9. <Layout>
  10. <Static text="일자 :" position="absolute 35 9 95 26" id="caption5" class="search_name" anchor="default"/>
  11. <Calendar position="absolute 99 8 199 27" id="ipt_fromdd" class="input_s_essential" anchor="default" autoselect="true"/>
  12. <Calendar position="absolute 219 8 319 27" id="ipt_todd" class="input_s_essential" anchor="default" autoselect="true"/>
  13. <Static text="~" position="absolute 202 8 214 25" id="caption11" class="search_n_b" anchor="default"/>
  14. <Button position="absolute 1129 7 1185 29" id="btn_search2" class="btn1" text="조회" anchor="default" onclick="group4_btn_search2_onclick"/>
  15. <Shape position="absolute 1116 8 1122 28" linetype="vertical" id="line2" anchor="default"/>
  16. </Layout>
  17. </Layouts>
  18. </Div>
  19. <Div position="absolute 0 24 1194 59" align="align:center top;" id="group5" class="div_SA">
  20. <Layouts>
  21. <Layout>
  22. <Static text="일자 :" position="absolute 15 9 75 26" id="caption7" class="search_name" anchor="default"/>
  23. <Calendar position="absolute 79 8 179 27" id="ipt_appdd" class="input_s_essential" anchor="default" autoselect="true"/>
  24. <Button position="absolute 183 10 196 25" id="btn_before2" class="icon_pre" text="" anchor="default" onclick="group5_btn_before2_onclick"/>
  25. <Button position="absolute 196 10 209 25" id="btn_next2" class="icon_next" text="" anchor="default" onclick="group5_btn_next2_onclick"/>
  26. <Button position="absolute 1129 7 1185 29" id="btn_search3" class="btn1" text="조회" anchor="default" onclick="group5_btn_search3_onclick"/>
  27. <Shape position="absolute 1116 8 1122 28" linetype="vertical" id="line3" anchor="default"/>
  28. </Layout>
  29. </Layouts>
  30. </Div>
  31. <Div position="absolute 0 25 1194 60" align="align:center top;" id="group2" visible="true" class="div_SA">
  32. <Layouts>
  33. <Layout>
  34. <Static text="일자 :" position="absolute 10 9 70 26" id="caption1" class="search_name" anchor="default"/>
  35. <Calendar position="absolute 74 8 169 27" id="ipt_prcpdd" class="input_s_essential" anchor="default" autoselect="true"/>
  36. <Button position="absolute 173 10 186 25" id="btn_before" class="icon_pre" text="" anchor="default" onclick="group2_btn_before_onclick"/>
  37. <Button position="absolute 186 10 199 25" id="btn_next" class="icon_next" text="" anchor="default" onclick="group2_btn_next_onclick"/>
  38. <Button position="absolute 1129 7 1185 29" id="btn_search" class="btn1" text="조회" anchor="default" onclick="group2_btn_search_onclick"/>
  39. <Shape position="absolute 1116 8 1122 28" linetype="vertical" id="line1" anchor="default"/>
  40. <Static text="병동 :" position="absolute 445 10 536 27" id="caption2" class="search_name" anchor="default"/>
  41. <Combo position="absolute 499 8 602 27" id="cmb_wardcd" class="combo_s_essential" innerdataset="@ds_init_basecode_ward_dept" datacolumn="depthngnm" codecolumn="deptcd" anchor="default" onitemchanged="group2_cmb_wardcd_onitemchanged"/>
  42. <Radio position="absolute 290 8 449 28" id="rdo_dietmeal" columncount="3" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
  43. <Dataset id="innerdataset">
  44. <ColumnInfo>
  45. <Column id="codecolumn"/>
  46. <Column id="datacolumn"/>
  47. </ColumnInfo>
  48. <Rows>
  49. <Row>
  50. <Col id="codecolumn">1</Col>
  51. <Col id="datacolumn">조식</Col>
  52. </Row>
  53. <Row>
  54. <Col id="codecolumn">2</Col>
  55. <Col id="datacolumn">중식</Col>
  56. </Row>
  57. <Row>
  58. <Col id="codecolumn">3</Col>
  59. <Col id="datacolumn">석식</Col>
  60. </Row>
  61. </Rows>
  62. </Dataset>
  63. </Radio>
  64. <Static text="끼니 :" position="absolute 230 10 295 27" id="caption3" class="search_name" anchor="default"/>
  65. <Static text="병실 :" position="absolute 621 9 685 26" id="caption4" class="search_name" anchor="default"/>
  66. <Combo position="absolute 677 8 757 27" id="cmb_roomcd" class="combo_search" innerdataset="@ds_init_basecode_room_room" datacolumn="cdnm" codecolumn="cdid" anchor="default"/>
  67. <Static text="등록번호/환자명 :" position="absolute 779 9 913 26" id="caption8" class="search_name" anchor="default"/>
  68. <Static text="/" position="absolute 976 9 1000 26" id="caption9" anchor="default"/>
  69. <MaskEdit position="absolute 905 8 975 27" id="ipt_pid" class="input_search" mask="9999999999" anchor="default" onkeydown="group2_ipt_pid_onkeydown" autoselect="true"/>
  70. <Edit position="absolute 985 8 1050 27" id="ipt_hngnm" class="input_search" anchor="default" onkeydown="group2_ipt_hngnm_onkeydown" autoselect="true"/>
  71. <Button position="absolute 1055 10 1071 26" id="btn_hngnm" class="icon_search" text="" anchor="default" onclick="group2_btn_hngnm_onclick"/>
  72. <Button id="btn_eraser" taborder="1" class="icon_eraser" position="absolute 1075 5 1101 31" tooltiptext="처방 입력자 초기화" onclick="group2_btn_eraser_onclick"/>
  73. </Layout>
  74. </Layouts>
  75. </Div>
  76. <Tab position="absolute 0 62 1194 762" id="switch1" onchanged="switch1_onchanged" class="tab_Normal" tabindex="1">
  77. <Tabpages>
  78. <Tabpage text="선택식관리" id="case1">
  79. <Layouts>
  80. <Layout>
  81. <Shape position="absolute 5 11 1188 17" linetype="horizontal" id="line5" class="line_10"/>
  82. <Grid position="absolute 5 16 1188 628" id="grd_choidiet" binddataset="ds_main_choimeal_choimeallist" oncelldblclick="switch1_case1_grd_choidiet_oncelldblclick">
  83. <Formats>
  84. <Format id="default">
  85. <Columns>
  86. <Column size="24"/>
  87. <Column size="70"/>
  88. <Column size="0"/>
  89. <Column size="70"/>
  90. <Column size="90"/>
  91. <Column size="90"/>
  92. <Column size="74"/>
  93. <Column size="40"/>
  94. <Column size="180"/>
  95. <Column size="280"/>
  96. <Column size="280"/>
  97. <Column size="0"/>
  98. <Column size="0"/>
  99. <Column size="0"/>
  100. <Column size="0"/>
  101. </Columns>
  102. <Rows>
  103. <Row size="24" band="head"/>
  104. <Row size="24"/>
  105. </Rows>
  106. <Band id="head">
  107. <Cell/>
  108. <Cell col="1" text="변경전병실"/>
  109. <Cell col="2" text="병동"/>
  110. <Cell col="3" text="병실"/>
  111. <Cell col="4" text="등록번호"/>
  112. <Cell col="5" text="환자명"/>
  113. <Cell col="6" text="선택식"/>
  114. <Cell col="7" text="SBS"/>
  115. <Cell col="8" text="식사명"/>
  116. <Cell col="9" text="특이사항"/>
  117. <Cell col="10" text="Remark"/>
  118. <Cell col="11" text="처방일자"/>
  119. <Cell col="12" text="끼니"/>
  120. <Cell col="13" text="등록수정여부"/>
  121. <Cell col="14" text="코드"/>
  122. </Band>
  123. <Band id="body">
  124. <Cell celltype="head" expr="currow + 1"/>
  125. <Cell col="1" text="bind:bfroom"/>
  126. <Cell col="2" text="bind:ward"/>
  127. <Cell col="3" text="bind:room"/>
  128. <Cell col="4" text="bind:pid"/>
  129. <Cell col="5" text="bind:hngnm"/>
  130. <Cell col="6" displaytype="checkbox" edittype="checkbox" text="bind:chk" expr="expr:chk == 'Y' || chk == '1' ? '1' : '0'"/>
  131. <Cell col="7" text="bind:gubun"/>
  132. <Cell col="8" text="bind:dietnm"/>
  133. <Cell col="9" text="bind:remfactnm"/>
  134. <Cell col="10" text="bind:remark"/>
  135. <Cell col="11" text="bind:prcpdd"/>
  136. <Cell col="12" text="bind:dietmeal"/>
  137. <Cell col="13" text="bind:iuflag"/>
  138. <Cell col="14" text="bind:dietcd"/>
  139. </Band>
  140. </Format>
  141. </Formats>
  142. </Grid>
  143. <Static text="선택식 건수" position="absolute 1005 639 1084 662" align="align:center middle;" id="caption13" class="cell_1"/>
  144. <Shape position="absolute 1005 634 1188 640" linetype="horizontal" id="line4" class="line_10"/>
  145. <Shape position="absolute 1005 660 1188 666" linetype="horizontal" id="line6" class="line_3"/>
  146. <Edit readonly="true" position="absolute 1088 640 1188 659" align="align:center middle;" id="opt_count" class="output"/>
  147. </Layout>
  148. </Layouts>
  149. </Tabpage>
  150. <Tabpage text="선택식통계" id="case2">
  151. <Layouts>
  152. <Layout>
  153. <Grid position="absolute 5 16 1188 665" align="align:center middle;" id="grd_choidietstats" binddataset="ds_main_choimealstats_choimealstatslist">
  154. <Formats>
  155. <Format id="default">
  156. <Columns>
  157. <Column size="24"/>
  158. <Column size="110"/>
  159. <Column size="150"/>
  160. <Column size="100"/>
  161. <Column size="150"/>
  162. <Column size="100"/>
  163. <Column size="150"/>
  164. <Column size="100"/>
  165. </Columns>
  166. <Rows>
  167. <Row size="24" band="head"/>
  168. <Row size="24"/>
  169. </Rows>
  170. <Band id="head">
  171. <Cell/>
  172. <Cell col="1" text="일자"/>
  173. <Cell col="2" text="조식"/>
  174. <Cell col="3" text="선택식수"/>
  175. <Cell col="4" text="중식"/>
  176. <Cell col="5" text="선택식수"/>
  177. <Cell col="6" text="석식"/>
  178. <Cell col="7" text="선택식수"/>
  179. </Band>
  180. <Band id="body">
  181. <Cell celltype="head" expr="currow + 1"/>
  182. <Cell col="1" displaytype="date" text="bind:prcpdd" calendardisplaynulltype="none"/>
  183. <Cell col="2" displaytype="text" edittype="text" text="bind:breakmealnm"/>
  184. <Cell col="3" text="bind:breakmealcnt"/>
  185. <Cell col="4" displaytype="text" edittype="text" text="bind:lunchmealnm"/>
  186. <Cell col="5" text="bind:lunchmealcnt"/>
  187. <Cell col="6" displaytype="text" edittype="text" text="bind:dinnermealnm"/>
  188. <Cell col="7" text="bind:dinnermealcnt"/>
  189. </Band>
  190. </Format>
  191. </Formats>
  192. </Grid>
  193. <Shape position="absolute 5 11 1188 17" linetype="horizontal" id="line7" class="line_10"/>
  194. </Layout>
  195. </Layouts>
  196. </Tabpage>
  197. <Tabpage text="선택식안내문" id="case4">
  198. <Layouts>
  199. <Layout>
  200. <Grid position="absolute 5 16 1188 666" align="align:center middle;" id="grd_choimealguideflag" binddataset="ds_main_choimealguidedocu_fixcol">
  201. <Formats>
  202. <Format id="default">
  203. <Columns>
  204. <Column size="170"/>
  205. <Column size="170"/>
  206. <Column size="170"/>
  207. <Column size="170"/>
  208. </Columns>
  209. <Rows>
  210. <Row size="24" band="head"/>
  211. <Row size="24" band="head"/>
  212. <Row size="24"/>
  213. </Rows>
  214. <Band id="head">
  215. <Cell text="아 침"/>
  216. <Cell col="1" text="아 침"/>
  217. <Cell col="2" text="점 심"/>
  218. <Cell col="3" text="점 심"/>
  219. <Cell row="1" text="식단 ①"/>
  220. <Cell row="1" col="1" text="식단 ②"/>
  221. <Cell row="1" col="2" text="식단 ①"/>
  222. <Cell row="1" col="3" text="식단 ②"/>
  223. </Band>
  224. <Band id="body">
  225. <Cell text="bind:fixcol1"/>
  226. <Cell col="1" text="bind:fixcol2"/>
  227. <Cell col="2" text="bind:fixcol3"/>
  228. <Cell col="3" text="bind:fixcol4"/>
  229. </Band>
  230. </Format>
  231. </Formats>
  232. </Grid>
  233. <Grid position="absolute 5 63 178 666" align="align:center middle;" id="grd_choimealguide1" binddataset="ds_main_choimealguidedocu_choimealguide1">
  234. <Formats>
  235. <Format id="default">
  236. <Columns>
  237. <Column size="170"/>
  238. </Columns>
  239. <Band id="head">
  240. <Cell text=""/>
  241. </Band>
  242. <Band id="body">
  243. <Cell text="bind:breakgnrldish" edittype="text" displaytype="text"/>
  244. </Band>
  245. </Format>
  246. </Formats>
  247. </Grid>
  248. <Grid position="absolute 175 63 346 666" align="align:center middle;" id="grd_choimealguide2" binddataset="ds_main_choimealguidedocu_choimealguide2">
  249. <Formats>
  250. <Format id="default">
  251. <Columns>
  252. <Column size="170"/>
  253. </Columns>
  254. <Band id="head">
  255. <Cell text=""/>
  256. </Band>
  257. <Band id="body">
  258. <Cell text="bind:breakchoidish" edittype="text" displaytype="text"/>
  259. </Band>
  260. </Format>
  261. </Formats>
  262. </Grid>
  263. <Grid position="absolute 345 63 516 666" align="align:center middle;" id="grd_choimealguide3" binddataset="ds_main_choimealguidedocu_choimealguide3">
  264. <Formats>
  265. <Format id="default">
  266. <Columns>
  267. <Column size="170"/>
  268. </Columns>
  269. <Band id="head">
  270. <Cell text=""/>
  271. </Band>
  272. <Band id="body">
  273. <Cell text="bind:lunchgnrldish" edittype="text" displaytype="text"/>
  274. </Band>
  275. </Format>
  276. </Formats>
  277. </Grid>
  278. <Grid position="absolute 515 63 685 666" align="align:center middle;" id="grd_choimealguide4" binddataset="ds_main_choimealguidedocu_choimealguide4">
  279. <Formats>
  280. <Format id="default">
  281. <Columns>
  282. <Column size="170"/>
  283. </Columns>
  284. <Band id="head">
  285. <Cell text=""/>
  286. </Band>
  287. <Band id="body">
  288. <Cell text="bind:lunchchoidish" edittype="text" displaytype="text"/>
  289. </Band>
  290. </Format>
  291. </Formats>
  292. </Grid>
  293. <Shape position="absolute 5 11 1188 17" linetype="horizontal" id="line8" class="line_10"/>
  294. <Button position="absolute 695 20 759 39" id="btn_gridadd" class="btn5" text="행추가" onclick="switch1_case4_btn_gridadd_onclick"/>
  295. </Layout>
  296. </Layouts>
  297. </Tabpage>
  298. <Tabpage text="개별식단환자관리" id="case3">
  299. <Layouts>
  300. <Layout>
  301. <Grid position="absolute 5 16 1188 649" id="grd_inddiet" binddataset="ds_main_indcase_indcaselist" tooltiptype="hover" tooltiptext="Remark1 또는 Remark2에 내용이 있고 적용 &quot;V&quot;면 간호 식이처방 변경시 동일차수 식사라도 변경불가 대상입니다">
  302. <Formats>
  303. <Format id="default">
  304. <Columns>
  305. <Column size="24"/>
  306. <Column size="110"/>
  307. <Column size="55"/>
  308. <Column size="70"/>
  309. <Column size="80"/>
  310. <Column size="80"/>
  311. <Column size="200"/>
  312. <Column size="0"/>
  313. <Column size="0"/>
  314. <Column size="0"/>
  315. <Column size="160"/>
  316. <Column size="80"/>
  317. <Column size="240"/>
  318. <Column size="59"/>
  319. </Columns>
  320. <Rows>
  321. <Row size="24" band="head"/>
  322. <Row size="24"/>
  323. </Rows>
  324. <Band id="head">
  325. <Cell/>
  326. <Cell col="1" text="병동"/>
  327. <Cell col="2" text="병실"/>
  328. <Cell col="3" text="등록번호"/>
  329. <Cell col="4" text="환자명"/>
  330. <Cell col="5" text="성별/나이"/>
  331. <Cell col="6" text="식사명"/>
  332. <Cell col="7" text="처방일자"/>
  333. <Cell col="8" text="끼니"/>
  334. <Cell col="9" text="신규/수정구분"/>
  335. <Cell col="10" text="특이사항"/>
  336. <Cell col="11" text="Remark1"/>
  337. <Cell col="12" text="Remark2"/>
  338. <Cell col="13" text="적용"/>
  339. </Band>
  340. <Band id="body">
  341. <Cell celltype="head" expr="currow + 1"/>
  342. <Cell col="1" style="align:left;" text="bind:ward"/>
  343. <Cell col="2" style="align:left;" text="bind:room"/>
  344. <Cell col="3" text="bind:pid"/>
  345. <Cell col="4" text="bind:hngnm"/>
  346. <Cell col="5" text="bind:sex"/>
  347. <Cell col="6" style="align:left;" text="bind:dietnm"/>
  348. <Cell col="7" style="align:left;" text="bind:prcpdd"/>
  349. <Cell col="8" style="align:left;" text="bind:dietmeal"/>
  350. <Cell col="9" style="align:left;" text="bind:iuflag"/>
  351. <Cell col="10" style="align:left;" text="bind:remfactnm"/>
  352. <Cell col="11" displaytype="combo" edittype="combo" text="bind:remark2" combodataset="ds_cbo_remark2" combocodecol="value" combodatacol="label"/>
  353. <Cell col="12" displaytype="text" edittype="text" text="bind:remark3"/>
  354. <Cell col="13" displaytype="checkbox" edittype="checkbox" text="bind:chk" expr="expr:chk == 'Y' || chk == '1' ? '1' : '0' "/>
  355. </Band>
  356. </Format>
  357. </Formats>
  358. </Grid>
  359. <Shape position="absolute 5 11 1188 17" linetype="horizontal" id="line9" class="line_10"/>
  360. </Layout>
  361. </Layouts>
  362. </Tabpage>
  363. <Tabpage text="소아선택식" id="case5">
  364. <Layouts>
  365. <Layout>
  366. <Shape position="absolute 5 11 1188 17" linetype="horizontal" id="line10" class="line_10"/>
  367. <Grid position="absolute 5 16 1188 628" id="grd_childdiet" binddataset="ds_main_childmeal_childmeallist" oncelldblclick="switch1_case5_grd_childdiet_oncelldblclick">
  368. <Formats>
  369. <Format id="default">
  370. <Columns>
  371. <Column size="24"/>
  372. <Column size="70"/>
  373. <Column size="0"/>
  374. <Column size="70"/>
  375. <Column size="90"/>
  376. <Column size="90"/>
  377. <Column size="74"/>
  378. <Column size="40"/>
  379. <Column size="180"/>
  380. <Column size="280"/>
  381. <Column size="280"/>
  382. <Column size="0"/>
  383. <Column size="0"/>
  384. <Column size="0"/>
  385. <Column size="0"/>
  386. </Columns>
  387. <Rows>
  388. <Row size="24" band="head"/>
  389. <Row size="24"/>
  390. </Rows>
  391. <Band id="head">
  392. <Cell/>
  393. <Cell col="1" text="변경전병실"/>
  394. <Cell col="2" text="병동"/>
  395. <Cell col="3" text="병실"/>
  396. <Cell col="4" text="등록번호"/>
  397. <Cell col="5" text="소아환자명"/>
  398. <Cell col="6" text="선택식"/>
  399. <Cell col="7" text="SBS"/>
  400. <Cell col="8" text="식사명"/>
  401. <Cell col="9" text="특이사항"/>
  402. <Cell col="10" text="Remark"/>
  403. <Cell col="11" text="처방일자"/>
  404. <Cell col="12" text="끼니"/>
  405. <Cell col="13" text="등록수정여부"/>
  406. <Cell col="14" text="코드"/>
  407. </Band>
  408. <Band id="body">
  409. <Cell celltype="head" expr="currow + 1"/>
  410. <Cell col="1" text="bind:bfroom"/>
  411. <Cell col="2" text="bind:ward"/>
  412. <Cell col="3" text="bind:room"/>
  413. <Cell col="4" text="bind:pid"/>
  414. <Cell col="5" text="bind:hngnm"/>
  415. <Cell col="6" displaytype="checkbox" edittype="checkbox" text="bind:chk" expr="expr:chk == 'Y' || chk == '1' ? '1' : '0'"/>
  416. <Cell col="7" text="bind:gubun"/>
  417. <Cell col="8" text="bind:dietnm"/>
  418. <Cell col="9" text="bind:remfactnm"/>
  419. <Cell col="10" text="bind:remark"/>
  420. <Cell col="11" text="bind:prcpdd"/>
  421. <Cell col="12" text="bind:dietmeal"/>
  422. <Cell col="13" text="bind:iuflag"/>
  423. <Cell col="14" text="bind:dietcd"/>
  424. </Band>
  425. </Format>
  426. </Formats>
  427. </Grid>
  428. <Static text="선택식 건수" position="absolute 1005 639 1084 662" align="align:center middle;" id="caption10" class="cell_1"/>
  429. <Shape position="absolute 1005 634 1188 640" linetype="horizontal" id="line11" class="line_10"/>
  430. <Shape position="absolute 1005 661 1188 667" linetype="horizontal" id="line12" class="line_3"/>
  431. <Edit readonly="true" position="absolute 1088 640 1188 659" align="align:center middle;" id="output1" class="output"/>
  432. </Layout>
  433. </Layouts>
  434. </Tabpage>
  435. </Tabpages>
  436. </Tab>
  437. <Static id="caption6" text="선택식/개별관리" class="tit_1" position="absolute 0 0 146 25"/>
  438. <Button position="absolute 1143 65 1194 84" id="btn_excel" class="btn7" text="엑셀" onclick="btn_excel_onclick"/>
  439. <Button id="btn_print" taborder="1" text="선택식안내문출력" class="btn3" position="absolute 1 761 129 783" onclick="btn_print_onclick"/>
  440. <Button id="btn_save" taborder="2" text="저장" class="btn4" enable="false" position="absolute 1138 761 1194 783" onclick="btn_save_onclick"/>
  441. <Button id="btCase1" taborder="3" text="선택식관리" position="absolute 6 66 80 86" onclick="btCase1_onclick"/>
  442. <Button id="btCase5" taborder="4" text="소아선택식" position="absolute 82 66 156 86" onclick="btCase5_onclick"/>
  443. <Button id="btCase2" taborder="5" text="선택식통계" position="absolute 158 66 232 86" onclick="btCase2_onclick"/>
  444. <Button id="btCase4" taborder="6" text="선택식안내문" position="absolute 234 66 313 86" onclick="btCase4_onclick"/>
  445. <Button id="btCase3" taborder="7" text="개별식환자관리" position="absolute 315 66 413 86" onclick="btCase3_onclick"/>
  446. <Button id="btn_sbs" taborder="8" text="SBS일괄적용" position="absolute 1038 64 1138 84" onclick="btn_sbs_onclick"/>
  447. <Button id="btn_sbsCnt" taborder="9" text="SBS 건수" position="absolute 963 64 1033 84" onclick="btn_sbsCnt_onclick" visible="false"/>
  448. <Div id="Div00" taborder="10" text="Div00" position="absolute 834 99 1182 305" style="background:white;border:1 solid #808080ff ;" visible="false">
  449. <Layouts>
  450. <Layout>
  451. <Static id="caption1" text="SBS 건수" class="tit_2" position="absolute 5 4 160 22" anchor="default"/>
  452. <Shape id="line02" class="line_10" position="absolute 4 20 340 26" anchor="default"/>
  453. <Grid id="grd_rst_sbsinfo" taborder="1" binddataset="ds_rst_sbsinfo" position="absolute 5 25 341 147" anchor="default" autofittype="col">
  454. <Formats>
  455. <Format id="default">
  456. <Columns>
  457. <Column size="80"/>
  458. <Column size="80"/>
  459. <Column size="80"/>
  460. <Column size="80"/>
  461. </Columns>
  462. <Rows>
  463. <Row size="24" band="head"/>
  464. <Row size="24"/>
  465. </Rows>
  466. <Band id="head">
  467. <Cell text="병동"/>
  468. <Cell col="1" text="식사"/>
  469. <Cell col="2" text="구분"/>
  470. <Cell col="3" text="건수"/>
  471. </Band>
  472. <Band id="body">
  473. <Cell text="bind:wardcd"/>
  474. <Cell col="1" text="bind:dietmeal"/>
  475. <Cell col="2" text="bind:gubun"/>
  476. <Cell col="3" text="bind:cnt"/>
  477. </Band>
  478. </Format>
  479. </Formats>
  480. </Grid>
  481. <Button id="btn_close" taborder="2" text="닫기" onclick="btn_close_onclick" class="btn4" position="absolute 145 162 201 184" anchor="default"/>
  482. </Layout>
  483. </Layouts>
  484. </Div>
  485. </Layout>
  486. </Layouts>
  487. <Objects>
  488. <Dataset id="ds_main_choimeal_choimeallist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_choimeal_choimeallist_oncolumnchanged">
  489. <ColumnInfo>
  490. <Column id="bfroom" type="STRING" size="256"/>
  491. <Column id="ward" type="STRING" size="256"/>
  492. <Column id="room" type="STRING" size="256"/>
  493. <Column id="pid" type="STRING" size="256"/>
  494. <Column id="hngnm" type="STRING" size="256"/>
  495. <Column id="dietnm" type="STRING" size="256"/>
  496. <Column id="remfactnm" type="STRING" size="256"/>
  497. <Column id="remark" type="STRING" size="256"/>
  498. <Column id="chk" type="STRING" size="256"/>
  499. <Column id="prcpdd" type="STRING" size="256"/>
  500. <Column id="dietmeal" type="STRING" size="256"/>
  501. <Column id="iuflag" type="STRING" size="256"/>
  502. <Column id="dietcd" type="STRING" size="256"/>
  503. <Column id="gubun" type="STRING" size="256"/>
  504. </ColumnInfo>
  505. <Rows>
  506. <Row/>
  507. </Rows>
  508. </Dataset>
  509. <Dataset id="ds_main_childmeal_childmeallist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_childmeal_childmeallist_oncolumnchanged">
  510. <ColumnInfo>
  511. <Column id="bfroom" type="STRING" size="256"/>
  512. <Column id="ward" type="STRING" size="256"/>
  513. <Column id="room" type="STRING" size="256"/>
  514. <Column id="pid" type="STRING" size="256"/>
  515. <Column id="hngnm" type="STRING" size="256"/>
  516. <Column id="dietnm" type="STRING" size="256"/>
  517. <Column id="remfactnm" type="STRING" size="256"/>
  518. <Column id="remark" type="STRING" size="256"/>
  519. <Column id="chk" type="STRING" size="256"/>
  520. <Column id="prcpdd" type="STRING" size="256"/>
  521. <Column id="dietmeal" type="STRING" size="256"/>
  522. <Column id="iuflag" type="STRING" size="256"/>
  523. <Column id="dietcd" type="STRING" size="256"/>
  524. <Column id="gubun" type="STRING" size="256"/>
  525. </ColumnInfo>
  526. <Rows>
  527. <Row/>
  528. </Rows>
  529. </Dataset>
  530. <Dataset id="ds_main_choimealstats_choimealstatslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  531. <ColumnInfo>
  532. <Column id="prcpdd" type="STRING" size="256"/>
  533. <Column id="breakmealnm" type="STRING" size="256"/>
  534. <Column id="breakmealcnt" type="STRING" size="256"/>
  535. <Column id="lunchmealnm" type="STRING" size="256"/>
  536. <Column id="lunchmealcnt" type="STRING" size="256"/>
  537. <Column id="dinnermealnm" type="STRING" size="256"/>
  538. <Column id="dinnermealcnt" type="STRING" size="256"/>
  539. </ColumnInfo>
  540. <Rows>
  541. <Row>
  542. <Col id="prcpdd"/>
  543. <Col id="breakmealnm"/>
  544. <Col id="breakmealcnt"/>
  545. <Col id="lunchmealnm"/>
  546. <Col id="lunchmealcnt"/>
  547. <Col id="dinnermealnm"/>
  548. <Col id="dinnermealcnt"/>
  549. </Row>
  550. </Rows>
  551. </Dataset>
  552. <Dataset id="ds_main_choimealguidedocu_fixcol" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  553. <ColumnInfo>
  554. <Column id="fixcol1" type="STRING" size="256"/>
  555. <Column id="fixcol2" type="STRING" size="256"/>
  556. <Column id="fixcol3" type="STRING" size="256"/>
  557. <Column id="fixcol4" type="STRING" size="256"/>
  558. </ColumnInfo>
  559. <Rows>
  560. <Row>
  561. <Col id="fixcol1"/>
  562. <Col id="fixcol2"/>
  563. <Col id="fixcol3"/>
  564. <Col id="fixcol4"/>
  565. </Row>
  566. </Rows>
  567. </Dataset>
  568. <Dataset id="ds_main_choimealguidedocu_choimealguide1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  569. <ColumnInfo>
  570. <Column id="breakgnrldish" type="STRING" size="256"/>
  571. </ColumnInfo>
  572. <Rows>
  573. <Row>
  574. <Col id="breakgnrldish"/>
  575. </Row>
  576. </Rows>
  577. </Dataset>
  578. <Dataset id="ds_main_choimealguidedocu_choimealguide2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  579. <ColumnInfo>
  580. <Column id="breakchoidish" type="STRING" size="256"/>
  581. </ColumnInfo>
  582. <Rows>
  583. <Row>
  584. <Col id="breakchoidish"/>
  585. </Row>
  586. </Rows>
  587. </Dataset>
  588. <Dataset id="ds_main_choimealguidedocu_choimealguide3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  589. <ColumnInfo>
  590. <Column id="lunchgnrldish" type="STRING" size="256"/>
  591. </ColumnInfo>
  592. <Rows>
  593. <Row>
  594. <Col id="lunchgnrldish"/>
  595. </Row>
  596. </Rows>
  597. </Dataset>
  598. <Dataset id="ds_main_choimealguidedocu_choimealguide4" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  599. <ColumnInfo>
  600. <Column id="lunchchoidish" type="STRING" size="256"/>
  601. </ColumnInfo>
  602. <Rows>
  603. <Row/>
  604. </Rows>
  605. </Dataset>
  606. <Dataset id="ds_main_indcase_indcaselist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_indcase_indcaselist_oncolumnchanged">
  607. <ColumnInfo>
  608. <Column id="chk" type="STRING" size="256"/>
  609. <Column id="ward" type="STRING" size="256"/>
  610. <Column id="room" type="STRING" size="256"/>
  611. <Column id="pid" type="STRING" size="256"/>
  612. <Column id="hngnm" type="STRING" size="256"/>
  613. <Column id="sex" type="STRING" size="256"/>
  614. <Column id="dietnm" type="STRING" size="256"/>
  615. <Column id="prcpdd" type="STRING" size="256"/>
  616. <Column id="dietmeal" type="STRING" size="256"/>
  617. <Column id="iuflag" type="STRING" size="256"/>
  618. <Column id="remfactnm" type="STRING" size="256"/>
  619. <Column id="remark2" type="STRING" size="256"/>
  620. <Column id="remark3" type="STRING" size="256"/>
  621. </ColumnInfo>
  622. <Rows>
  623. <Row>
  624. <Col id="chk"/>
  625. <Col id="ward"/>
  626. <Col id="room"/>
  627. <Col id="pid"/>
  628. <Col id="hngnm"/>
  629. <Col id="sex"/>
  630. <Col id="dietnm"/>
  631. <Col id="prcpdd"/>
  632. <Col id="dietmeal"/>
  633. <Col id="iuflag"/>
  634. <Col id="remfactnm"/>
  635. <Col id="remark2"/>
  636. <Col id="remark3"/>
  637. </Row>
  638. </Rows>
  639. </Dataset>
  640. <Dataset id="ds_main_patinfo_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  641. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  642. <ColumnInfo>
  643. <Column id="prcpdd" type="STRING" size="256"/>
  644. <Column id="dietmeal" type="STRING" size="256"/>
  645. <Column id="ward" type="STRING" size="256"/>
  646. <Column id="roomcd" type="STRING" size="256"/>
  647. <Column id="count" type="STRING" size="256"/>
  648. <Column id="fromdd" type="STRING" size="256"/>
  649. <Column id="todd" type="STRING" size="256"/>
  650. <Column id="appdd" type="STRING" size="256"/>
  651. <Column id="pid" type="STRING" size="256"/>
  652. <Column id="hngnm" type="STRING" size="256"/>
  653. <Column id="initflag" type="STRING" size="256"/>
  654. </ColumnInfo>
  655. <Rows>
  656. <Row/>
  657. </Rows>
  658. </Dataset>
  659. <Dataset id="ds_send_execdata_choimeallist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  660. <Dataset id="ds_send_execdata1_indcaselist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  661. <Dataset id="ds_send_execdata5_childmeallist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  662. <Dataset id="ds_send_choimealguide" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  663. <ColumnInfo>
  664. <Column id="breakgnrldish1" type="STRING" size="256"/>
  665. <Column id="breakgnrldish2" type="STRING" size="256"/>
  666. <Column id="breakgnrldish3" type="STRING" size="256"/>
  667. <Column id="breakgnrldish4" type="STRING" size="256"/>
  668. <Column id="breakgnrldish5" type="STRING" size="256"/>
  669. <Column id="breakchoidish1" type="STRING" size="256"/>
  670. <Column id="breakchoidish2" type="STRING" size="256"/>
  671. <Column id="breakchoidish3" type="STRING" size="256"/>
  672. <Column id="breakchoidish4" type="STRING" size="256"/>
  673. <Column id="breakchoidish5" type="STRING" size="256"/>
  674. <Column id="lunchgnrldish1" type="STRING" size="256"/>
  675. <Column id="lunchgnrldish2" type="STRING" size="256"/>
  676. <Column id="lunchgnrldish3" type="STRING" size="256"/>
  677. <Column id="lunchgnrldish4" type="STRING" size="256"/>
  678. <Column id="lunchgnrldish5" type="STRING" size="256"/>
  679. <Column id="lunchchoidish1" type="STRING" size="256"/>
  680. <Column id="lunchchoidish2" type="STRING" size="256"/>
  681. <Column id="lunchchoidish3" type="STRING" size="256"/>
  682. <Column id="lunchchoidish4" type="STRING" size="256"/>
  683. <Column id="lunchchoidish5" type="STRING" size="256"/>
  684. <Column id="lunchchoidish6" type="STRING" size="256"/>
  685. </ColumnInfo>
  686. <Rows>
  687. <Row>
  688. <Col id="breakgnrldish1"/>
  689. <Col id="breakgnrldish2"/>
  690. <Col id="breakgnrldish3"/>
  691. <Col id="breakgnrldish4"/>
  692. <Col id="breakgnrldish5"/>
  693. <Col id="breakchoidish1"/>
  694. <Col id="breakchoidish2"/>
  695. <Col id="breakchoidish3"/>
  696. <Col id="breakchoidish4"/>
  697. <Col id="breakchoidish5"/>
  698. <Col id="lunchgnrldish1"/>
  699. <Col id="lunchgnrldish2"/>
  700. <Col id="lunchgnrldish3"/>
  701. <Col id="lunchgnrldish4"/>
  702. <Col id="lunchgnrldish5"/>
  703. <Col id="lunchchoidish1"/>
  704. <Col id="lunchchoidish2"/>
  705. <Col id="lunchchoidish3"/>
  706. <Col id="lunchchoidish4"/>
  707. <Col id="lunchchoidish5"/>
  708. <Col id="lunchchoidish6"/>
  709. </Row>
  710. </Rows>
  711. </Dataset>
  712. <Dataset id="ds_send_popup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  713. <ColumnInfo>
  714. <Column id="flag" type="STRING" size="256"/>
  715. <Column id="pid" type="STRING" size="256"/>
  716. <Column id="prcpdd" type="STRING" size="256"/>
  717. </ColumnInfo>
  718. <Rows>
  719. <Row>
  720. <Col id="flag"/>
  721. <Col id="pid"/>
  722. <Col id="prcpdd"/>
  723. </Row>
  724. </Rows>
  725. </Dataset>
  726. <Dataset id="ds_init_basecode_ward_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  727. <ColumnInfo>
  728. <Column id="deptcd" type="STRING" size="256"/>
  729. <Column id="depthngnm" type="STRING" size="256"/>
  730. </ColumnInfo>
  731. <Rows>
  732. <Row>
  733. <Col id="deptcd"/>
  734. <Col id="depthngnm"/>
  735. </Row>
  736. </Rows>
  737. </Dataset>
  738. <Dataset id="ds_init_basecode_room_room" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  739. <ColumnInfo>
  740. <Column id="cdid" type="STRING" size="256"/>
  741. <Column id="cdnm" type="STRING" size="256"/>
  742. </ColumnInfo>
  743. <Rows>
  744. <Row>
  745. <Col id="cdid"/>
  746. <Col id="cdnm"/>
  747. </Row>
  748. </Rows>
  749. </Dataset>
  750. <Dataset id="ds_init_baseinfo_ward" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  751. <Dataset id="ds_FormData_PopData" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  752. <ColumnInfo>
  753. <Column id="pid" type="STRING" size="256"/>
  754. <Column id="dnorid" type="STRING" size="256"/>
  755. <Column id="trnptid" type="STRING" size="256"/>
  756. <Column id="trnptkind" type="STRING" size="256"/>
  757. <Column id="patdnorflag" type="STRING" size="256"/>
  758. <Column id="trnptbfaftflag" type="STRING" size="256"/>
  759. </ColumnInfo>
  760. <Rows>
  761. <Row>
  762. <Col id="pid"/>
  763. <Col id="dnorid"/>
  764. <Col id="trnptid"/>
  765. <Col id="trnptkind"/>
  766. <Col id="patdnorflag"/>
  767. <Col id="trnptbfaftflag"/>
  768. </Row>
  769. </Rows>
  770. </Dataset>
  771. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  772. <ColumnInfo>
  773. <Column id="count" type="STRING" size="256"/>
  774. </ColumnInfo>
  775. <Rows>
  776. <Row>
  777. <Col id="count"/>
  778. </Row>
  779. </Rows>
  780. </Dataset>
  781. <Dataset id="ds_casegb" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  782. <ColumnInfo>
  783. <Column id="gb" type="STRING" size="256"/>
  784. </ColumnInfo>
  785. <Rows>
  786. <Row>
  787. <Col id="gb"/>
  788. </Row>
  789. </Rows>
  790. </Dataset>
  791. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  792. <Dataset id="ds_cbo_remark2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  793. <ColumnInfo>
  794. <Column id="label" type="STRING" size="256"/>
  795. <Column id="value" type="STRING" size="256"/>
  796. </ColumnInfo>
  797. <Rows>
  798. <Row>
  799. <Col id="label"/>
  800. <Col id="value"/>
  801. </Row>
  802. <Row>
  803. <Col id="label">개별관리</Col>
  804. <Col id="value">01</Col>
  805. </Row>
  806. <Row>
  807. <Col id="label">소금1g</Col>
  808. <Col id="value">02</Col>
  809. </Row>
  810. <Row>
  811. <Col id="label">소금2g</Col>
  812. <Col id="value">03</Col>
  813. </Row>
  814. <Row>
  815. <Col id="label">소금3g</Col>
  816. <Col id="value">04</Col>
  817. </Row>
  818. <Row>
  819. <Col id="label">소금4g</Col>
  820. <Col id="value">05</Col>
  821. </Row>
  822. </Rows>
  823. </Dataset>
  824. <Dataset id="ds_rst_sbsinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  825. <ColumnInfo>
  826. <Column id="wardcd" type="STRING" size="256"/>
  827. <Column id="dietmeal" type="STRING" size="255"/>
  828. <Column id="gubun" type="STRING" size="255"/>
  829. <Column id="cnt" type="BIGDECIMAL" size="255"/>
  830. </ColumnInfo>
  831. </Dataset>
  832. <Dataset id="ds_sbsinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  833. <ColumnInfo>
  834. <Column id="prcpdd" type="STRING" size="256"/>
  835. </ColumnInfo>
  836. <Rows>
  837. <Row/>
  838. </Rows>
  839. </Dataset>
  840. </Objects>
  841. <Bind>
  842. <BindItem id="item0" compid="group5.ipt_appdd" propid="value" datasetid="ds_send_reqdata" columnid="appdd"/>
  843. <BindItem id="item1" compid="group4.ipt_fromdd" propid="value" datasetid="ds_send_reqdata" columnid="fromdd"/>
  844. <BindItem id="item2" compid="group4.ipt_todd" propid="value" datasetid="ds_send_reqdata" columnid="todd"/>
  845. <BindItem id="item3" compid="group2.ipt_prcpdd" propid="value" datasetid="ds_send_reqdata" columnid="prcpdd"/>
  846. <BindItem id="item4" compid="group2.rdo_dietmeal" propid="value" datasetid="ds_send_reqdata" columnid="dietmeal"/>
  847. <BindItem id="item5" compid="group2.cmb_wardcd" propid="value" datasetid="ds_send_reqdata" columnid="ward"/>
  848. <BindItem id="item6" compid="group2.cmb_roomcd" propid="value" datasetid="ds_send_reqdata" columnid="roomcd"/>
  849. <BindItem id="item7" compid="group2.ipt_pid" propid="value" datasetid="ds_send_reqdata" columnid="pid"/>
  850. <BindItem id="item8" compid="group2.ipt_hngnm" propid="value" datasetid="ds_send_reqdata" columnid="hngnm"/>
  851. <BindItem id="item9" compid="switch1.case1.opt_count" propid="value" datasetid="ds_send_reqdata" columnid="count"/>
  852. <BindItem id="item10" compid="switch1.case5.output1" propid="value" datasetid="ds_send_reqdata" columnid="count"/>
  853. </Bind>
  854. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  855. * System Name :
  856. * Job Name :
  857. * Creator :
  858. * Make Date : 2015-11-13
  859. * Description :
  860. *---------------------------------------------------------------------------------------
  861. * Modify Date Modifier Modify Description
  862. *---------------------------------------------------------------------------------------
  863. * 2015-11-13 Live Converter TF->XP
  864. *
  865. *---------------------------------------------------------------------------------------
  866. ****************************************************************************************/
  867. include "com_commonxp::comm_main.xjs";
  868. include 'com_departmentcodexp::ZSD001.xjs';
  869. var arErrorCode = new HashArray();
  870. function SMANT00900_oninit(obj:Form, e:InitEventInfo)
  871. {
  872. frmf_initForm(obj); //폼 초기화
  873. grdf_initGrid(switch1.case1.grd_choidiet);
  874. grdf_initGrid(switch1.case3.grd_inddiet);
  875. grdf_initGrid(switch1.case5.grd_childdiet);
  876. }
  877. function SMANT00900_onload(obj:Form, e:LoadEventInfo)
  878. {
  879. ds_send_reqdata.setColumn(0, "initflag", "2");
  880. group5.btn_search3.enable = frmf_checkAuth("R");
  881. group4.btn_search2.enable = frmf_checkAuth("R");
  882. group5.btn_search3.enable = frmf_checkAuth("R");
  883. btn_save.enable = frmf_checkAuth("X");
  884. var today = utlf_getCurrentDate();
  885. appf_getDeptCodeList(sysf_getUserInfo('dutplceinstcd'), 'orduseyn', 'W', 'depthngnm', 'asc', today.toDate().getDateFormat('YYYYMMDD'), '', 'asc', 'ds_init_basecode_ward_dept', false, null);
  886. frmf_addComboItem("group2.cmb_wardcd", "전체", "");
  887. ds_send_reqdata.setColumn(0, "prcpdd", utlf_getCurrentDate());
  888. ds_send_reqdata.setColumn(0, "fromdd", utlf_getCurrentDate());
  889. ds_send_reqdata.setColumn(0, "todd", utlf_getCurrentDate());
  890. ds_send_reqdata.setColumn(0, "appdd", utlf_getCurrentDate());
  891. ds_send_reqdata.setColumn(0, "dietmeal", "1");
  892. ds_send_reqdata.setColumn(0, "ward", "");
  893. ds_casegb.setColumn(0, "gb", "1");
  894. fvisible(); //컨트롤을 숨기거나 보이기
  895. //화면open시 현재시간을 계산하여 선택식관리 탭화면의 끼니구분 자동setting
  896. var tm = utlf_getCurrentTime();
  897. if ( tm.substr(0,4) < 1030 ) {
  898. ds_send_reqdata.setColumn(0, "dietmeal", "1");
  899. } else if ( (tm.substr(0,4) >= 1030) && (tm.substr(0,4) < 1600) ) {
  900. ds_send_reqdata.setColumn(0, "dietmeal", "2");
  901. } else {
  902. ds_send_reqdata.setColumn(0, "dietmeal", "3");
  903. }
  904. switch1.tabindex = 0;
  905. }
  906. function fvisible() {
  907. btn_excel.visible = true;
  908. btn_print.visible = false;
  909. btn_save.visible = true;
  910. group2.visible = true;
  911. group4.visible = false;
  912. group5.visible = false;
  913. }
  914. function switch1_case1_grd_choidiet_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  915. {
  916. //환자별식사력조회 화면으로 연결
  917. if ( e.col >= 0 && e.row >= 0 && ds_main_choimeal_choimeallist.rowcount > 0) {
  918. // 'P'는 선택식환자관리 화면임을 뜻하는 구분자임.
  919. ds_send_popup.setColumn(0, "flag", "P");
  920. ds_send_popup.setColumn(0, "pid", ds_main_choimeal_choimeallist.getColumn(ds_main_choimeal_choimeallist.rowposition, "pid"));
  921. ds_send_popup.setColumn(0, "prcpdd", ds_main_choimeal_choimeallist.getColumn(ds_main_choimeal_choimeallist.rowposition, "prcpdd"));
  922. var objArg = new Object();
  923. objArg.arg_ds_main_receivedata = ds_send_popup;
  924. frmf_open("SMANT01000", "SMANT01000", objArg, null, "", "", "", null, null, null, null, null, "M");
  925. }
  926. }
  927. function group5_btn_before2_onclick(obj:Button, e:ClickEventInfo)
  928. {
  929. var dd = ds_send_reqdata.getColumn(0, "appdd");
  930. dd = dd.toDate().getAddDate(-1, "D");
  931. dd = dd.getDateFormat();
  932. ds_send_reqdata.setColumn(0, "appdd", dd);
  933. }
  934. function group5_btn_next2_onclick(obj:Button, e:ClickEventInfo)
  935. {
  936. var dd = ds_send_reqdata.getColumn(0, "appdd");
  937. dd = dd.toDate().getAddDate(1, "D");
  938. dd = dd.getDateFormat();
  939. ds_send_reqdata.setColumn(0, "appdd", dd);
  940. }
  941. function group5_btn_search3_onclick(obj:Button, e:ClickEventInfo)
  942. {
  943. var oParam = {};
  944. oParam.id = "TRANT00904";
  945. oParam.service = "dietsumapp.ChoiMealPatMngt";
  946. oParam.method = "reqGetChoiMealGuideDocu";
  947. oParam.inds = "reqdata=ds_send_reqdata";
  948. oParam.outds = "ds_main_choimealguidedocu_fixcol=fixcol ds_main_choimealguidedocu_choimealguide1=choimealguide1 " +
  949. "ds_main_choimealguidedocu_choimealguide2=choimealguide2 ds_main_choimealguidedocu_choimealguide3=choimealguide3 ds_main_choimealguidedocu_choimealguide4=choimealguide4";
  950. oParam.async = false;
  951. oParam.callback = "cf_TRANT00904";
  952. tranf_submit(oParam);
  953. if ( arErrorCode.pop("TRANT00904") > -1 ){
  954. var cnt1 = ds_main_choimealguidedocu_choimealguide1.rowcount;
  955. if( cnt1 < 11 ){
  956. for (var i = 0 ; i < 11-cnt1 ; i++ ){
  957. ds_main_choimealguidedocu_choimealguide1.addRow();
  958. }
  959. }
  960. var cnt2 = ds_main_choimealguidedocu_choimealguide2.rowcount;
  961. if( cnt2 < 11 ){
  962. for (var i = 0 ; i < 11-cnt2 ; i++ ){
  963. ds_main_choimealguidedocu_choimealguide2.addRow();
  964. }
  965. }
  966. var cnt3 = ds_main_choimealguidedocu_choimealguide3.rowcount;
  967. if( cnt3 < 11 ){
  968. for (var i = 0 ; i < 11-cnt3 ; i++ ){
  969. ds_main_choimealguidedocu_choimealguide3.addRow();
  970. }
  971. }
  972. var cnt4 = ds_main_choimealguidedocu_choimealguide4.rowcount;
  973. if( cnt4 < 11 ){
  974. for (var i = 0 ; i < 11-cnt4 ; i++ ){
  975. ds_main_choimealguidedocu_choimealguide4.addRow();
  976. }
  977. }
  978. }
  979. ds_send_choimealguide.clearData();
  980. ds_send_choimealguide.addRow();
  981. }
  982. function cf_TRANT00904(sSvcId, nErrorCode, sErrorMsg) {
  983. arErrorCode.push(sSvcId, nErrorCode);
  984. }
  985. function btCase1_onclick(obj:Button, e:ClickEventInfo)
  986. {
  987. ds_casegb.setColumn(0, "gb", "1");
  988. fvisible(); //컨트롤을 숨기거나 보이기
  989. switch1.tabindex = 0;
  990. }
  991. function btCase5_onclick(obj:Button, e:ClickEventInfo)
  992. {
  993. ds_casegb.setColumn(0, "gb", "5");
  994. fvisible(); //컨트롤을 숨기거나 보이기
  995. switch1.tabindex = 4;
  996. }
  997. function btCase2_onclick(obj:Button, e:ClickEventInfo)
  998. {
  999. ds_casegb.setColumn(0, "gb", "2");
  1000. switch1.tabindex = 1;
  1001. btn_excel.visible = true;
  1002. btn_print.visible = false;
  1003. btn_save.visible = false;
  1004. group2.visible = false;
  1005. group4.visible = true;
  1006. group5.visible = false;
  1007. }
  1008. function btCase4_onclick(obj:Button, e:ClickEventInfo)
  1009. {
  1010. ds_casegb.setColumn(0, "gb", "4");
  1011. switch1.tabindex = 2;
  1012. btn_excel.visible = false;
  1013. btn_print.visible = true;
  1014. btn_save.visible = false;
  1015. group2.visible = false;
  1016. group4.visible = false;
  1017. group5.visible = true;
  1018. }
  1019. function btCase3_onclick(obj:Button, e:ClickEventInfo)
  1020. {
  1021. ds_casegb.setColumn(0, "gb", "3");
  1022. switch1.tabindex = 3;
  1023. fvisible(); //컨트롤을 숨기거나 보이기
  1024. }
  1025. function switch1_case4_btn_gridadd_onclick(obj:Button, e:ClickEventInfo)
  1026. {
  1027. ds_main_choimealguidedocu_choimealguide1.addRow();
  1028. ds_main_choimealguidedocu_choimealguide2.addRow();
  1029. ds_main_choimealguidedocu_choimealguide3.addRow();
  1030. ds_main_choimealguidedocu_choimealguide4.addRow();
  1031. }
  1032. function group4_btn_search2_onclick(obj:Button, e:ClickEventInfo)
  1033. {
  1034. var fromdd = ds_send_reqdata.getColumn(0, "fromdd");
  1035. var todd = ds_send_reqdata.getColumn(0, "todd");
  1036. if (utlf_getDateInterval(fromdd, todd) < 0) {
  1037. sysf_messageBox("조회 시작일은 종료일보다 클 수", "I004");
  1038. return;
  1039. } else {
  1040. var oParam = {};
  1041. oParam.id = "TRANT00903";
  1042. oParam.service = "dietsumapp.ChoiMealPatMngt";
  1043. oParam.method = "reqGetChoiMealStats";
  1044. oParam.inds = "reqdata=ds_send_reqdata";
  1045. oParam.outds = "ds_main_choimealstats_choimealstatslist=choimealstatslist";
  1046. oParam.async = false;
  1047. tranf_submit(oParam);
  1048. }
  1049. }
  1050. function group2_btn_before_onclick(obj:Button, e:ClickEventInfo)
  1051. {
  1052. var dd = ds_send_reqdata.getColumn(0, "prcpdd");
  1053. dd = dd.toDate().getAddDate(-1, "D");
  1054. dd = dd.getDateFormat();
  1055. ds_send_reqdata.setColumn(0, "prcpdd", dd);
  1056. }
  1057. function group2_btn_next_onclick(obj:Button, e:ClickEventInfo)
  1058. {
  1059. var dd = ds_send_reqdata.getColumn(0, "prcpdd");
  1060. dd = dd.toDate().getAddDate(1, "D");
  1061. dd = dd.getDateFormat();
  1062. ds_send_reqdata.setColumn(0, "prcpdd", dd);
  1063. }
  1064. function group2_cmb_wardcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  1065. {
  1066. ds_send_reqdata.setColumn(0, "roomcd", "");
  1067. if( utlf_isNull(ds_send_reqdata.getColumnInfo("wardcd")) ){
  1068. ds_send_reqdata.addColumn("wardcd", "string");
  1069. }
  1070. ds_send_reqdata.setColumn(0, "wardcd", ds_send_reqdata.getColumn(0, "ward"));
  1071. //선택병동의 병실 조회
  1072. var oParam = {};
  1073. oParam.id = "TRANT01004";
  1074. oParam.service = "dietsumapp.DietSum";
  1075. oParam.method = "reqGetRoom";
  1076. oParam.inds = "req=ds_send_reqdata";
  1077. oParam.outds = "ds_init_basecode_room_room=ret";
  1078. oParam.async = false;
  1079. tranf_submit(oParam);
  1080. ds_init_basecode_room_room.updateColID("wardroomcdid", "cdid");
  1081. ds_init_basecode_room_room.updateColID("wardroomcdnm", "cdnm");
  1082. }
  1083. function group2_ipt_pid_onkeydown(obj:MaskEdit, e:KeyEventInfo)
  1084. {
  1085. if(e.keycode == 13){
  1086. obj.updateToDataset();
  1087. group2_btn_search_onclick();
  1088. }
  1089. }
  1090. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  1091. {
  1092. if (ds_casegb.getColumn(0, "gb") == "1"){
  1093. readfunc();
  1094. }else if (ds_casegb.getColumn(0, "gb") == "3"){
  1095. readfunc2();
  1096. }else if (ds_casegb.getColumn(0, "gb") == "5"){
  1097. readfunc5();
  1098. }
  1099. }
  1100. function readfunc() {
  1101. ds_main_choimeal_choimeallist.clearData();
  1102. ds_main_choimeal_choimeallist.addRow();
  1103. if( utlf_isNull(ds_send_reqdata.getColumnInfo("wardcd")) ){
  1104. ds_send_reqdata.addColumn("wardcd", "string");
  1105. }
  1106. ds_send_reqdata.setColumn(0, "wardcd", ds_send_reqdata.getColumn(0, "ward"));
  1107. var oParam = {};
  1108. oParam.id = "TRANT00901";
  1109. oParam.service = "dietsumapp.ChoiMealPatMngt";
  1110. oParam.method = "reqGetChoiMeal";
  1111. oParam.inds = "reqdata=ds_send_reqdata";
  1112. oParam.outds = "ds_main_choimeal_choimeallist=choimeallist";
  1113. oParam.async = false;
  1114. tranf_submit(oParam);
  1115. ds_main_choimeal_choimeallist.addColumn("chk", "string");
  1116. // var msg = model.getValue("/root/properties/error/msg");
  1117. // var refCnt = msg.substring(0, 1);
  1118. // if( refCnt == "0" || refCnt == "") {
  1119. // //messageBox("조회된 결과가", "I004");
  1120. // }
  1121. if (utlf_isNull(ds_main_choimeal_choimeallist.getColumn(0, "ward"))){
  1122. ds_main_choimeal_choimeallist.clearData();
  1123. btn_save.enable = false;
  1124. }else{
  1125. btn_save.enable = true;
  1126. }
  1127. selectfunc();
  1128. }
  1129. function selectfunc() {
  1130. var k = 0;
  1131. for (var i = 0; i < ds_main_choimeal_choimeallist.rowcount; i++){
  1132. var schk = ds_main_choimeal_choimeallist.getColumn(i, "chk");
  1133. if (schk == "Y"){
  1134. k = parseInt(k) + 1;
  1135. }
  1136. }
  1137. switch1.case1.opt_count.value = k;
  1138. //ds_send_reqdata.setColumn(k, "count", k);
  1139. }
  1140. function readfunc2() {
  1141. ds_main_indcase_indcaselist.clearData();
  1142. ds_main_indcase_indcaselist.addRow();
  1143. if( utlf_isNull(ds_send_reqdata.getColumnInfo("wardcd")) ){
  1144. ds_send_reqdata.addColumn("wardcd", "string");
  1145. }
  1146. ds_send_reqdata.setColumn(0, "wardcd", ds_send_reqdata.getColumn(0, "ward"));
  1147. var oParam = {};
  1148. oParam.id = "TRANT00902";
  1149. oParam.service = "dietsumapp.ChoiMealPatMngt";
  1150. oParam.method = "reqGetIndMeal";
  1151. oParam.inds = "reqdata=ds_send_reqdata";
  1152. oParam.outds = "ds_main_indcase_indcaselist=indcaselist";
  1153. oParam.async = false;
  1154. tranf_submit(oParam);
  1155. // var msg = model.getValue("/root/properties/error/msg");
  1156. // var refCnt = msg.substring(0, 1);
  1157. // if( refCnt == "0" || refCnt == "") {
  1158. // //messageBox("조회된 결과가", "I004");
  1159. // }
  1160. if (utlf_isNull(ds_main_indcase_indcaselist.getColumn(0, "ward"))){
  1161. ds_main_indcase_indcaselist.clearData();
  1162. btn_save.enable = false;
  1163. }else{
  1164. btn_save.enable = true;
  1165. }
  1166. }
  1167. function readfunc5() {
  1168. ds_main_childmeal_childmeallist.clearData();
  1169. ds_main_childmeal_childmeallist.addRow();
  1170. if( utlf_isNull(ds_send_reqdata.getColumnInfo("wardcd")) ){
  1171. ds_send_reqdata.addColumn("wardcd", "string");
  1172. }
  1173. ds_send_reqdata.setColumn(0, "wardcd", ds_send_reqdata.getColumn(0, "ward"));
  1174. var oParam = {};
  1175. oParam.id = "TRANT00905";
  1176. oParam.service = "dietsumapp.ChoiMealPatMngt";
  1177. oParam.method = "reqGetChildMeal";
  1178. oParam.inds = "reqdata=ds_send_reqdata";
  1179. oParam.outds = "ds_main_childmeal_childmeallist=childmeallist";
  1180. oParam.async = false;
  1181. tranf_submit(oParam);
  1182. // var msg = model.getValue("/root/properties/error/msg");
  1183. // var refCnt = msg.substring(0, 1);
  1184. // if( refCnt == "0" || refCnt == "") {
  1185. // //messageBox("조회된 결과가", "I004");
  1186. // }
  1187. if (utlf_isNull(ds_main_childmeal_childmeallist.getColumn(0, "ward"))){
  1188. ds_main_childmeal_childmeallist.clearData();
  1189. btn_save.enable = false;
  1190. }else{
  1191. btn_save.enable = true;
  1192. }
  1193. selectfunc5();
  1194. }
  1195. function selectfunc5() {
  1196. var p = 0;
  1197. for (var i = 0; i < ds_main_childmeal_childmeallist.rowcount; i++){
  1198. var schk = ds_main_childmeal_childmeallist.getColumn(i, "chk");
  1199. if (schk == "Y"){
  1200. p = parseInt(p) + 1;
  1201. }
  1202. }
  1203. switch1.case1.opt_count.value = p;
  1204. //ds_send_reqdata.setColumn(0, "count", p);
  1205. }
  1206. function group2_ipt_hngnm_onkeydown(obj:Edit, e:KeyEventInfo)
  1207. {
  1208. if(e.keycode == 13){
  1209. obj.updateToDataset();
  1210. group2_btn_search_onclick();
  1211. }
  1212. }
  1213. function group2_btn_hngnm_onclick(obj:Button, e:ClickEventInfo)
  1214. {
  1215. dsf_createDsRow("ds_temp", [{col:"srchcond", val:"2"} //환자번호로조회
  1216. ]);
  1217. var objArg = new Object();
  1218. objArg.arg_ds_send = ds_temp;
  1219. frmf_modal("SPPMC02500", "SPPMC02500", objArg, null, "", 200, 200, null, null, null, null, null, "M");
  1220. if(!utlf_isNull(this.objects["ds_patinfolist"])) {
  1221. var srch_pid = ds_patinfolist.getColumn(0, "pid");
  1222. var srch_hngnm = ds_patinfolist.getColumn(0, "hngnm");
  1223. ds_send_reqdata.setColumn(0, "pid", srch_pid);
  1224. ds_send_reqdata.setColumn(0, "hngnm", srch_hngnm);
  1225. }
  1226. group2_btn_search_onclick();
  1227. }
  1228. function ds_main_choimeal_choimeallist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  1229. {
  1230. if(switch1.case1.grd_choidiet.currentcol == switch1.case1.grd_choidiet.getBindCellIndex("body", "chk")){
  1231. ds_main_choimeal_choimeallist.updatecontrol = false;
  1232. if( ds_main_choimeal_choimeallist.getColumn(ds_main_choimeal_choimeallist.rowposition, "chk") == "Y" ||
  1233. ds_main_choimeal_choimeallist.getColumn(ds_main_choimeal_choimeallist.rowposition, "chk") == "1"){
  1234. ds_main_choimeal_choimeallist.setColumn(ds_main_choimeal_choimeallist.rowposition, "chk", "Y");
  1235. }else{
  1236. ds_main_choimeal_choimeallist.setColumn(ds_main_choimeal_choimeallist.rowposition, "chk", "N");
  1237. }
  1238. ds_main_choimeal_choimeallist.updatecontrol = true;
  1239. }
  1240. selectfunc();
  1241. }
  1242. function ds_main_indcase_indcaselist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  1243. {
  1244. if(switch1.case3.grd_inddiet.currentcol == switch1.case3.grd_inddiet.getBindCellIndex("body", "chk")){
  1245. ds_main_choimeal_choimeallist.updatecontrol = false;
  1246. if( ds_main_indcase_indcaselist.getColumn(ds_main_indcase_indcaselist.rowposition, "chk") == "Y" ||
  1247. ds_main_indcase_indcaselist.getColumn(ds_main_indcase_indcaselist.rowposition, "chk") == "1"){
  1248. ds_main_indcase_indcaselist.setColumn(ds_main_indcase_indcaselist.rowposition, "chk", "Y");
  1249. }else{
  1250. ds_main_indcase_indcaselist.setColumn(ds_main_indcase_indcaselist.rowposition, "chk", "N");
  1251. }
  1252. ds_main_indcase_indcaselist.updatecontrol = true;
  1253. }
  1254. }
  1255. function ds_main_childmeal_childmeallist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  1256. {
  1257. if(switch1.case5.grd_childdiet.currentcol == switch1.case5.grd_childdiet.getBindCellIndex("body", "chk")){
  1258. ds_main_childmeal_childmeallist.updatecontrol = false;
  1259. if( ds_main_childmeal_childmeallist.getColumn(ds_main_childmeal_childmeallist.rowposition, "chk") == "Y" ||
  1260. ds_main_childmeal_childmeallist.getColumn(ds_main_childmeal_childmeallist.rowposition, "chk") == "1"){
  1261. ds_main_childmeal_childmeallist.setColumn(ds_main_childmeal_childmeallist.rowposition, "chk", "Y");
  1262. }else{
  1263. ds_main_childmeal_childmeallist.setColumn(ds_main_childmeal_childmeallist.rowposition, "chk", "N");
  1264. }
  1265. ds_main_childmeal_childmeallist.updatecontrol = true;
  1266. }
  1267. selectfunc5();
  1268. }
  1269. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  1270. {
  1271. if (ds_casegb.getColumn(0, "gb") == "1"){
  1272. grdf_exportExcel(switch1.case1.grd_choidiet, "선택식환자리스트" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
  1273. } else if (ds_casegb.getColumn(0, "gb") == "2"){
  1274. grdf_exportExcel(switch1.case2.grd_choidietstats, "선택식통계" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
  1275. } else if (ds_casegb.getColumn(0, "gb") == "3"){
  1276. grdf_exportExcel(switch1.case3.grd_inddiet, "개별식단환자리스트" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
  1277. }
  1278. }
  1279. function switch1_case5_grd_childdiet_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  1280. {
  1281. //환자별식사력조회 화면으로 연결
  1282. if ( e.col >= 0 && e.row >= 0 && ds_main_childmeal_childmeallist.rowcount > 0) {
  1283. // 'P'는 선택식환자관리 화면임을 뜻하는 구분자임.
  1284. ds_send_popup.setColumn(0, "flag", "P");
  1285. ds_send_popup.setColumn(0, "pid", ds_main_childmeal_childmeallist.getColumn(ds_main_childmeal_childmeallist.rowposition, "pid"));
  1286. ds_send_popup.setColumn(0, "prcpdd", ds_main_childmeal_childmeallist.getColumn(ds_main_childmeal_childmeallist.rowposition, "prcpdd"));
  1287. var objArg = new Object();
  1288. objArg.arg_ds_main_receivedata = ds_send_popup;
  1289. frmf_open("SMANT01000", "SMANT01000", objArg, null, "", "", "", null, null, null, null, null, "M");
  1290. }
  1291. }
  1292. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  1293. {
  1294. if (ds_casegb.getColumn(0, "gb") == "1"){
  1295. case1exec();
  1296. readfunc();
  1297. }else if (ds_casegb.getColumn(0, "gb") == "3"){
  1298. case2exec();
  1299. readfunc2();
  1300. }else if (ds_casegb.getColumn(0, "gb") == "5"){
  1301. case5exec();
  1302. readfunc5();
  1303. }
  1304. }
  1305. //개별식단환자관리 저장
  1306. function case2exec() {
  1307. ds_send_execdata1_indcaselist.clearData();
  1308. ds_send_execdata1_indcaselist.addRow();
  1309. var update = grdf_getGridUpdateData(switch1.case3.grd_inddiet);
  1310. ds_send_execdata1_indcaselist.copyData(update, true);
  1311. var oParam = {};
  1312. oParam.id = "TXANT00902";
  1313. oParam.service = "dietsumapp.ChoiMealPatMngt";
  1314. oParam.method = "reqExeIndMeal";
  1315. oParam.inds = "indcaselist=ds_send_execdata1_indcaselist";
  1316. oParam.outds = "ds_hidden=item";
  1317. oParam.async = false;
  1318. tranf_submit(oParam);
  1319. sysf_messageBox("정상적으로", "I001");
  1320. // readfunc();
  1321. }
  1322. function case5exec() {
  1323. ds_send_execdata5_childmeallist.clearData();
  1324. ds_send_execdata5_childmeallist.addRow();
  1325. var update = grdf_getGridUpdateData(switch1.case5.grd_childdiet);
  1326. ds_send_execdata5_childmeallist.copyData(update, true);
  1327. var oParam = {};
  1328. oParam.id = "TXANT00905";
  1329. oParam.service = "dietsumapp.ChoiMealPatMngt";
  1330. oParam.method = "reqExeChildMeal";
  1331. oParam.inds = "childmeallist=ds_send_execdata5_childmeallist";
  1332. oParam.outds = "ds_hidden=item";
  1333. oParam.async = false;
  1334. tranf_submit(oParam);
  1335. sysf_messageBox("정상적으로", "I001");
  1336. }
  1337. function case1exec() {
  1338. ds_send_execdata_choimeallist.clearData();
  1339. ds_send_execdata_choimeallist.addRow();
  1340. var update = grdf_getGridUpdateData(switch1.case1.grd_choidiet);
  1341. ds_send_execdata_choimeallist.copyData(update, true);
  1342. var oParam = {};
  1343. oParam.id = "TXANT00901";
  1344. oParam.service = "dietsumapp.ChoiMealPatMngt";
  1345. oParam.method = "reqExeChoiMeal";
  1346. oParam.inds = "choimeallist=ds_send_execdata_choimeallist";
  1347. oParam.outds = "ds_hidden=item";
  1348. oParam.async = false;
  1349. tranf_submit(oParam);
  1350. sysf_messageBox("정상적으로", "I001");
  1351. // readfunc();
  1352. }
  1353. function btn_print_onclick(obj:Button, e:ClickEventInfo)
  1354. {
  1355. var cnt = 1;
  1356. var appdd = ds_send_reqdata.getColumn(0, "appdd");
  1357. var mm = appdd.substr(4, 2);
  1358. var dd = appdd.substr(6, 2);
  1359. if ( sysf_messageBox(mm + "월 " + dd + "일 선택식안내문 출력을", "Q004") == 6 ) {
  1360. // 2011.1.1 c y w 순서대로 출력
  1361. ds_send_choimealguide.setColumn(0, "breakgnrldish1", ds_main_choimealguidedocu_choimealguide1.getColumn(0, "breakgnrldish"));
  1362. ds_send_choimealguide.setColumn(0, "lunchgnrldish1", ds_main_choimealguidedocu_choimealguide3.getColumn(0, "lunchgnrldish"));
  1363. ds_send_choimealguide.setColumn(0, "breakgnrldish2", ds_main_choimealguidedocu_choimealguide1.getColumn(1, "breakgnrldish"));
  1364. ds_send_choimealguide.setColumn(0, "lunchgnrldish2", ds_main_choimealguidedocu_choimealguide3.getColumn(1, "lunchgnrldish"));
  1365. ds_send_choimealguide.setColumn(0, "breakgnrldish3", ds_main_choimealguidedocu_choimealguide1.getColumn(2, "breakgnrldish"));
  1366. ds_send_choimealguide.setColumn(0, "lunchgnrldish3", ds_main_choimealguidedocu_choimealguide3.getColumn(2, "lunchgnrldish"));
  1367. ds_send_choimealguide.setColumn(0, "breakgnrldish4", ds_main_choimealguidedocu_choimealguide1.getColumn(3, "breakgnrldish"));
  1368. ds_send_choimealguide.setColumn(0, "lunchgnrldish4", ds_main_choimealguidedocu_choimealguide3.getColumn(3, "lunchgnrldish"));
  1369. ds_send_choimealguide.setColumn(0, "breakgnrldish5", ds_main_choimealguidedocu_choimealguide1.getColumn(4, "breakgnrldish"));
  1370. ds_send_choimealguide.setColumn(0, "lunchgnrldish5", ds_main_choimealguidedocu_choimealguide3.getColumn(4, "lunchgnrldish"));
  1371. //선택식 조식 - 주식부터 김치까지 순서대로 5개 메뉴 출력
  1372. for (var i = 0; i < 6; i++) {
  1373. if (!utlf_isNull(ds_main_choimealguidedocu_choimealguide2.getColumn(i, "breakchoidish"))) {
  1374. ds_send_choimealguide.setColumn(0, "breakchoidish"+cnt, ds_main_choimealguidedocu_choimealguide2.getColumn(i, "breakchoidish"));
  1375. cnt = cnt +1;
  1376. }
  1377. if (cnt == 5) {
  1378. break;
  1379. }
  1380. }
  1381. cnt = 1;
  1382. //선택식 중식 - 주식부터 기타5까지 순서대로 6개 메뉴 출력
  1383. for (var i = 0; i < 11; i++) {
  1384. if (!utlf_isNull(ds_main_choimealguidedocu_choimealguide4.getColumn(i, "lunchchoidish"))) {
  1385. ds_send_choimealguide.setColumn(0, "lunchchoidish"+cnt, ds_main_choimealguidedocu_choimealguide4.getColumn(i, "lunchchoidish"));
  1386. cnt = cnt +1;
  1387. }
  1388. if (cnt == 6) {
  1389. break;
  1390. }
  1391. }
  1392. var objDOM = rptf_createDOM();
  1393. rptf_setNodeListToDOM(objDOM, "root/send/choimealguide", ds_send_choimealguide); // 데이터셋 1
  1394. var objParam = new Object();
  1395. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  1396. var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
  1397. rptf_exeReportPreview30(["RPANT00901"],[objParam], option);
  1398. } else { return; }
  1399. }
  1400. function switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  1401. {
  1402. switch( e.postindex ){
  1403. case 0 :
  1404. btCase1.setSelectStatus(true);
  1405. btCase5.setSelectStatus(false);
  1406. btCase2.setSelectStatus(false);
  1407. btCase4.setSelectStatus(false);
  1408. btCase3.setSelectStatus(false);
  1409. btn_sbsCnt.visible = true;
  1410. break;
  1411. case 4 :
  1412. btCase1.setSelectStatus(false);
  1413. btCase5.setSelectStatus(true);
  1414. btCase2.setSelectStatus(false);
  1415. btCase4.setSelectStatus(false);
  1416. btCase3.setSelectStatus(false);
  1417. btn_sbsCnt.visible = false;
  1418. break;
  1419. case 1 :
  1420. btCase1.setSelectStatus(false);
  1421. btCase5.setSelectStatus(false);
  1422. btCase2.setSelectStatus(true);
  1423. btCase4.setSelectStatus(false);
  1424. btCase3.setSelectStatus(false);
  1425. btn_sbsCnt.visible = false;
  1426. break;
  1427. case 3 :
  1428. btCase1.setSelectStatus(false);
  1429. btCase5.setSelectStatus(false);
  1430. btCase2.setSelectStatus(false);
  1431. btCase4.setSelectStatus(false);
  1432. btCase3.setSelectStatus(true);
  1433. btn_sbsCnt.visible = false;
  1434. break;
  1435. case 2 :
  1436. btCase1.setSelectStatus(false);
  1437. btCase5.setSelectStatus(false);
  1438. btCase2.setSelectStatus(false);
  1439. btCase4.setSelectStatus(true);
  1440. btCase3.setSelectStatus(false);
  1441. btn_sbsCnt.visible = false;
  1442. break;
  1443. default :
  1444. break;
  1445. }
  1446. }
  1447. function btn_sbs_onclick(obj:Button, e:ClickEventInfo)
  1448. {
  1449. if (ds_casegb.getColumn(0, "gb") == "1"){ // 선택식 ** SBS 관련 일괄선택 기능 추가 by 김금련 2018.04.25
  1450. ds_main_choimeal_choimeallist.enableevent = false;
  1451. ds_main_choimeal_choimeallist.updatecontrol = false;
  1452. for (var i = 0; i < switch1.case1.grd_choidiet.rowcount; i++){
  1453. var sbs = ds_main_choimeal_choimeallist.getColumn(i, "gubun")
  1454. if (sbs == "B"){
  1455. ds_main_choimeal_choimeallist.setColumn (i, "chk", "Y");
  1456. ds_main_choimeal_choimeallist.setRowType(i, 4);
  1457. }
  1458. }
  1459. ds_main_choimeal_choimeallist.updatecontrol = true;
  1460. ds_main_choimeal_choimeallist.enableevent = true;
  1461. selectfunc(); // 건수 체크
  1462. } else if (ds_casegb.getColumn(0, "gb") == "5"){ //소아선택식
  1463. ds_main_childmeal_childmeallist.enableevent = false;
  1464. ds_main_childmeal_childmeallist.updatecontrol = false;
  1465. for (var i = 0; i < switch1.case5.grd_childdiet.rowcount; i++){
  1466. var sbs = ds_main_childmeal_childmeallist.getColumn(i, "gubun")
  1467. if (sbs == "B"){
  1468. ds_main_childmeal_childmeallist.setColumn(i,"chk", "Y");
  1469. ds_main_childmeal_childmeallist.setRowType(i, 4);
  1470. }
  1471. }
  1472. ds_main_childmeal_childmeallist.updatecontrol = true;
  1473. ds_main_childmeal_childmeallist.enableevent = true;
  1474. selectfunc5(); // 건수 체크
  1475. } else {
  1476. alert("선택식관리,소아선택식 탭에서만 사용가능합니다.");
  1477. return;
  1478. }
  1479. }
  1480. function btn_sbsCnt_onclick(obj:Button, e:ClickEventInfo)
  1481. {
  1482. ds_sbsinfo.setColumn(0, "prcpdd", ds_send_reqdata.getColumn(0, "prcpdd"));
  1483. var oParam = {};
  1484. oParam.id = "TRANT00906";
  1485. oParam.service = "dietsumapp.ChoiMealPatMngt";
  1486. oParam.method = "reqGetSbsCnt";
  1487. oParam.inds = "req=ds_sbsinfo";
  1488. oParam.outds = "ds_rst_sbsinfo=sbscntinfo";
  1489. oParam.async = false;
  1490. oParam.callback = "cf_TRANT00906";
  1491. tranf_submit(oParam);
  1492. if( arErrorCode.pop("TRANT00906") > -1 ){
  1493. Div00.visible = true;
  1494. }else{
  1495. Div00.visible = false;
  1496. }
  1497. }
  1498. function cf_TRANT00906(sSvcId, nErrorCode, sErrorMsg) {
  1499. arErrorCode.push(sSvcId, nErrorCode);
  1500. }
  1501. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  1502. {
  1503. Div00.visible = false;
  1504. }
  1505. function group2_btn_eraser_onclick(obj:Button, e:ClickEventInfo)
  1506. {
  1507. ds_send_reqdata.setColumn(0, "pid", "");
  1508. ds_send_reqdata.setColumn(0, "hngnm", "");
  1509. }
  1510. ]]></Script>
  1511. </Form>
  1512. </FDL>