SMANC00100_영양검색결과조회.xfdl 97 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMANC00100" position="absolute 0 0 1201 809" titletext="영양검색결과" onload="SMANC00100_onload" onclose="SMANC00100_onclose">
  5. <Layouts>
  6. <Layout>
  7. <Tab id="swt_nutrsrchrslt" taborder="4" tabindex="0" position="absolute 0 27 1200 796" canchange="swt_nutrsrchrslt_canchange" onchanged="swt_nutrsrchrslt_onchanged" anchor="all">
  8. <Tabpages>
  9. <Tabpage id="case1" text="영양검색">
  10. <Layouts>
  11. <Layout>
  12. <Div id="grp" taborder="1" position="absolute 0 0 1200 35" class="div_SA2" anchor="left top right">
  13. <Layouts>
  14. <Layout width="1182" height="35">
  15. <Button id="btn_search1" taborder="6" text="조회" class="btn1" position="absolute 1132 8 1188 28" anchor="default" onclick="swt_nutrsrchrslt_case1_grp_btn_search1_onclick"/>
  16. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1114 7 1120 29" anchor="default"/>
  17. <Static id="caption2" text="기준일자 :" class="search_name" position="absolute 5 8 91 28" anchor="default"/>
  18. <Calendar id="ipt_basedd" taborder="0" class="input_essential" position="absolute 81 8 174 28" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true" autoskip="true"/>
  19. <Button id="btn_beforedd" taborder="1" position="absolute 176 8 196 28" anchor="default" style="background:@gradation URL('theme://images/icon_arrowLeft_N.png') stretch center middle;" onclick="swt_nutrsrchrslt_case1_grp_btn_beforedd_onclick"/>
  20. <Button id="btn_nextdd" taborder="2" position="absolute 198 8 218 28" anchor="default" style="background:@gradation URL('theme://images/icon_arrowRight_N.png') stretch center middle;" onclick="swt_nutrsrchrslt_case1_grp_btn_nextdd_onclick"/>
  21. <Static id="caption9" text="진료과 :" class="search_name" position="absolute 658 8 731 28" anchor="default"/>
  22. <Combo id="cmb_orddept1" taborder="4" innerdataset="ds_init_orddept" codecolumn="deptcd" datacolumn="depthngnm" class="combo_search" position="absolute 724 8 835 28" anchor="default"/>
  23. <Static id="caption14" text="병동 :" class="search_name" position="absolute 875 8 935 28" anchor="default"/>
  24. <Edit id="opt_ward" taborder="5" readonly="true" position="absolute 925 8 1095 28" anchor="default" oneditclick="swt_nutrsrchrslt_case1_grp_opt_ward_oneditclick"/>
  25. <Radio id="rdo_patflag1" taborder="7" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 314 8 429 28" anchor="default" index="-1" style="textpadding:0 3 0 3;" onitemchanged="swt_nutrsrchrslt_case1_grp_rdo_patflag1_onitemchanged" tabstop="false">
  26. <Dataset id="innerdataset">
  27. <ColumnInfo>
  28. <Column id="codecolumn"/>
  29. <Column id="datacolumn"/>
  30. </ColumnInfo>
  31. <Rows>
  32. <Row>
  33. <Col id="codecolumn">I</Col>
  34. <Col id="datacolumn">재검색</Col>
  35. </Row>
  36. <Row>
  37. <Col id="codecolumn">F</Col>
  38. <Col id="datacolumn">신환</Col>
  39. </Row>
  40. </Rows>
  41. </Dataset>
  42. </Radio>
  43. <Static id="caption4" text="구분 :" class="search_name" position="absolute 262 8 310 28" anchor="default"/>
  44. <Static id="caption1" text="위험군 :" class="search_name" position="absolute 458 8 531 28" anchor="default"/>
  45. <Combo id="cmb_dngrflag1" taborder="3" innerdataset="@ds_init_dngrflag" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 522 8 615 28" anchor="default"/>
  46. </Layout>
  47. </Layouts>
  48. </Div>
  49. <Button id="btn_excel1" taborder="2" text="엑셀" class="btn7" position="absolute 1149 38 1200 58" onclick="swt_nutrsrchrslt_case1_btn_excel1_onclick" anchor="top right"/>
  50. <Button id="btn_nutrjudgbase" taborder="3" text="영양판정기준" class="btn2" position="absolute 1059 38 1145 58" onclick="swt_nutrsrchrslt_case1_btn_nutrjudgbase_onclick" anchor="top right"/>
  51. <Button id="btn_insbase" taborder="4" text="INS기준" class="btn2" position="absolute 987 38 1051 58" onclick="swt_nutrsrchrslt_case1_btn_insbase_onclick" anchor="top right" visible="false"/>
  52. <Shape id="line38" linetype="horizontal" class="line_10" position="absolute 0 59 1200 65" anchor="left top right"/>
  53. <Grid id="grd_nutrsrch" taborder="5" binddataset="ds_main_srchrslt" useinputpanel="false" position="absolute 0 64 1200 706" cellsizebandtype="allband" cellsizingtype="both" extendsizetype="both" autosizingtype="row" anchor="all" onheadclick="swt_nutrsrchrslt_case1_grd_nutrsrch_onheadclick">
  54. <Formats>
  55. <Format id="default">
  56. <Columns>
  57. <Column size="25" band="left"/>
  58. <Column size="25"/>
  59. <Column size="0"/>
  60. <Column size="0"/>
  61. <Column size="0"/>
  62. <Column size="0"/>
  63. <Column size="0"/>
  64. <Column size="55"/>
  65. <Column size="100"/>
  66. <Column size="50"/>
  67. <Column size="0"/>
  68. <Column size="58"/>
  69. <Column size="70"/>
  70. <Column size="33"/>
  71. <Column size="50"/>
  72. <Column size="0"/>
  73. <Column size="190"/>
  74. <Column size="80"/>
  75. <Column size="0"/>
  76. <Column size="60"/>
  77. <Column size="140"/>
  78. <Column size="0"/>
  79. <Column size="0"/>
  80. <Column size="50"/>
  81. <Column size="40"/>
  82. <Column size="60"/>
  83. <Column size="60"/>
  84. <Column size="60"/>
  85. <Column size="60"/>
  86. <Column size="60"/>
  87. <Column size="60"/>
  88. <Column size="60"/>
  89. <Column size="62"/>
  90. <Column size="62"/>
  91. <Column size="89"/>
  92. <Column size="0"/>
  93. <Column size="0"/>
  94. </Columns>
  95. <Rows>
  96. <Row size="24" band="head"/>
  97. <Row size="24" band="head"/>
  98. <Row size="24"/>
  99. </Rows>
  100. <Band id="head">
  101. <Cell rowspan="2" taborder="undefined"/>
  102. <Cell col="1" rowspan="2" displaytype="checkbox" edittype="checkbox" expr="0" taborder="undefined"/>
  103. <Cell col="2" text="h_신환구분"/>
  104. <Cell col="3" text="h_처방일자"/>
  105. <Cell col="4" text="h_생성번호"/>
  106. <Cell col="5" text="h_처방상태"/>
  107. <Cell col="6" text="h_입원일자"/>
  108. <Cell col="7" rowspan="2" text="회신여부" taborder="undefined"/>
  109. <Cell col="8" rowspan="2" text="병동" taborder="undefined"/>
  110. <Cell col="9" rowspan="2" text="병실" taborder="undefined"/>
  111. <Cell col="10" text="h_병동/병실"/>
  112. <Cell col="11" rowspan="2" text="등록번호" taborder="undefined"/>
  113. <Cell col="12" rowspan="2" text="환자명" taborder="undefined"/>
  114. <Cell col="13" rowspan="2" text="성별" taborder="undefined"/>
  115. <Cell col="14" rowspan="2" text="나이" taborder="undefined"/>
  116. <Cell col="15" text="h_진단코드"/>
  117. <Cell col="16" rowspan="2" text="진단명" taborder="undefined"/>
  118. <Cell col="17" rowspan="2" text="진료과" taborder="undefined"/>
  119. <Cell col="18" text="담당교수ID"/>
  120. <Cell col="19" rowspan="2" text="담당교수" taborder="undefined"/>
  121. <Cell col="20" rowspan="2" text="식사명" taborder="undefined"/>
  122. <Cell col="21" text="h_키"/>
  123. <Cell col="22" text="h_몸무게"/>
  124. <Cell col="23" text="PIBW"/>
  125. <Cell col="24" text="Alb"/>
  126. <Cell col="25" text="TLC"/>
  127. <Cell col="26" text="소아 키"/>
  128. <Cell col="27" text="소아 체중"/>
  129. <Cell col="28" rowspan="2" text="식욕" taborder="undefined"/>
  130. <Cell col="29" rowspan="2" text="체중감소" taborder="undefined"/>
  131. <Cell col="30" rowspan="2" text="연하곤란" taborder="undefined"/>
  132. <Cell col="31" rowspan="2" text="식이처방" taborder="undefined"/>
  133. <Cell col="32" rowspan="2" text="검색결과" taborder="undefined"/>
  134. <Cell col="33" rowspan="2" text="이전결과" taborder="undefined"/>
  135. <Cell col="34" rowspan="2" text="이전결과판정일" wordwrap="char" taborder="undefined"/>
  136. <Cell col="35" text="TRF"/>
  137. <Cell col="36" rowspan="2" text="INS결과" taborder="undefined"/>
  138. <Cell row="1" col="2" text="h_신환구분"/>
  139. <Cell row="1" col="3" text="h_처방일자"/>
  140. <Cell row="1" col="4" text="h_생성번호"/>
  141. <Cell row="1" col="5" text="h_처방상태"/>
  142. <Cell row="1" col="6" text="h_입원일자"/>
  143. <Cell row="1" col="10" text="h_병동/병실"/>
  144. <Cell row="1" col="15" text="h_진단코드"/>
  145. <Cell row="1" col="18" text="담당교수ID"/>
  146. <Cell row="1" col="21" text="h_키"/>
  147. <Cell row="1" col="22" text="h_몸무게"/>
  148. <Cell row="1" col="23" text="(%)"/>
  149. <Cell row="1" col="24" text="(g/dl)"/>
  150. <Cell row="1" col="25" text="(cell/㎣)"/>
  151. <Cell row="1" col="26" text="(%)"/>
  152. <Cell row="1" col="27" text="(%)"/>
  153. <Cell row="1" col="35" text="(mg/dl)"/>
  154. </Band>
  155. <Band id="body">
  156. <Cell celltype="head" text="expr:currow + 1"/>
  157. <Cell col="1" displaytype="checkbox" edittype="checkbox" style="align:center middle;" text="bind:check" expr="expr:check == 'Y' || check == '1' ? '1' : '0'"/>
  158. <Cell col="2" text="bind:h_patflag"/>
  159. <Cell col="3" text="bind:h_prcpdd"/>
  160. <Cell col="4" text="bind:h_cretno"/>
  161. <Cell col="5" text="bind:h_prcpgenrflag"/>
  162. <Cell col="6" text="bind:h_orddd"/>
  163. <Cell col="7" text="bind:replyn"/>
  164. <Cell col="8" displaytype="combo" style="padding:1 2 1 2;" text="bind:ward" combodataset="ds_init_ward" combocodecol="deptcd" combodatacol="depthngnm" enable="false"/>
  165. <Cell col="9" text="bind:room"/>
  166. <Cell col="10" text="bind:h_wardroom"/>
  167. <Cell col="11" text="bind:pid"/>
  168. <Cell col="12" text="bind:hngnm"/>
  169. <Cell col="13" text="bind:sex"/>
  170. <Cell col="14" text="bind:age"/>
  171. <Cell col="15" text="bind:h_diagcd"/>
  172. <Cell col="16" style="align:left top;padding:5 2 1 2;" text="bind:diagnm" wordwrap="word" autosizerow="limitmin"/>
  173. <Cell col="17" displaytype="combo" style="padding:1 2 1 2;" text="bind:orddept" combodataset="ds_init_orddept" combocodecol="deptcd" combodatacol="depthngnm" enable="false"/>
  174. <Cell col="18" text="bind:orddrid"/>
  175. <Cell col="19" text="bind:atdoct"/>
  176. <Cell col="20" style="align:left top;padding:5 2 1 2;" text="bind:dietnm" wordwrap="word"/>
  177. <Cell col="21" text="bind:h_ht"/>
  178. <Cell col="22" text="bind:h_wt"/>
  179. <Cell col="23" displaytype="number" text="bind:pibw"/>
  180. <Cell col="24" displaytype="number" text="bind:alb"/>
  181. <Cell col="25" displaytype="number" text="bind:tlc" maskchar=" "/>
  182. <Cell col="26" style="align:right middle;" text="bind:childhtrate"/>
  183. <Cell col="27" style="align:right middle;" text="bind:childwtrate"/>
  184. <Cell col="28" displaytype="combo" edittype="combo" style="align:center middle;padding:1 2 1 2;" text="bind:apptchngyn" combodataset="ds_init_apptchngyn" combocodecol="value" combodatacol="label"/>
  185. <Cell col="29" displaytype="combo" edittype="combo" style="align:center middle;padding:1 2 1 2;" text="bind:bdwtchngyn" combodataset="ds_init_bdwtchngyn" combocodecol="value" combodatacol="label"/>
  186. <Cell col="30" displaytype="combo" edittype="combo" style="align:center middle;padding:1 2 1 2;" text="bind:symp" combodataset="ds_init_symp" combocodecol="value" combodatacol="label"/>
  187. <Cell col="31" style="align:center middle;" text="bind:dietcnt"/>
  188. <Cell col="32" displaytype="combo" edittype="combo" style="align:center;padding:1 2 1 2;" text="bind:srchrslt" combodataset="ds_init_dngrflag" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="10"/>
  189. <Cell col="33" displaytype="combo" style="align:center;padding:1 2 1 2;" text="bind:bfrslt" combodataset="ds_init_dngrflag" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  190. <Cell col="34" displaytype="date" text="bind:bfrsltdd" calendardisplaynulltype="none"/>
  191. <Cell col="35" text="bind:trf"/>
  192. <Cell col="36" text="bind:insrslt"/>
  193. </Band>
  194. </Format>
  195. </Formats>
  196. </Grid>
  197. <Shape id="line4" linetype="horizontal" class="line_2" position="absolute 0 705 1196 711" anchor="left right bottom"/>
  198. <Edit id="opt_srchrslt1" taborder="6" readonly="true" position="absolute 423 709 453 732" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;" anchor="left bottom"/>
  199. <Edit id="opt_srchrslt2" taborder="7" readonly="true" position="absolute 593 709 623 732" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;" anchor="left bottom"/>
  200. <Edit id="opt_srchrslt3" taborder="8" readonly="true" position="absolute 764 709 794 732" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;" anchor="left bottom"/>
  201. <Static id="caption7" text="검색결과 (전체/성인/소아)" class="cell_1" position="absolute 168 709 342 732" anchor="left bottom"/>
  202. <Static id="caption8" text="저위험도" class="cell_1" position="absolute 526 709 591 732" anchor="left bottom"/>
  203. <Static id="caption10" text="양호" class="cell_1" position="absolute 356 709 421 732" anchor="left bottom"/>
  204. <Static id="caption11" text="중위험도" class="cell_1" position="absolute 697 709 762 732" anchor="left bottom"/>
  205. <Static id="caption12" text="고위험도" class="cell_1" position="absolute 867 709 932 732" anchor="left bottom"/>
  206. <Edit id="opt_srchrslt4" taborder="9" readonly="true" position="absolute 934 709 964 732" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;" anchor="left bottom"/>
  207. <Edit id="opt_srchrsltsum1" taborder="10" readonly="true" position="absolute 1106 709 1136 732" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;" anchor="left bottom"/>
  208. <Static id="caption3" text="계" class="cell_1" position="absolute 1039 709 1104 732" anchor="left bottom"/>
  209. <Shape id="line5" linetype="horizontal" class="line_3" position="absolute 0 731 1200 737" anchor="left right bottom"/>
  210. <Edit id="opt_srchrslt00" taborder="12" readonly="true" position="absolute 455 709 485 732" anchor="left bottom" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;"/>
  211. <Edit id="opt_srchrslt06" taborder="13" readonly="true" position="absolute 487 709 517 732" anchor="left bottom" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;"/>
  212. <Edit id="opt_srchrslt07" taborder="14" readonly="true" position="absolute 625 709 655 732" anchor="left bottom" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;"/>
  213. <Edit id="opt_srchrslt08" taborder="15" readonly="true" position="absolute 657 709 687 732" anchor="left bottom" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;"/>
  214. <Edit id="opt_srchrslt09" taborder="16" readonly="true" position="absolute 796 709 826 732" anchor="left bottom" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;"/>
  215. <Edit id="opt_srchrslt10" taborder="17" readonly="true" position="absolute 828 709 858 732" anchor="left bottom" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;"/>
  216. <Edit id="opt_srchrslt11" taborder="18" readonly="true" position="absolute 966 709 996 732" anchor="left bottom" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;"/>
  217. <Edit id="opt_srchrslt12" taborder="19" readonly="true" position="absolute 998 709 1028 732" anchor="left bottom" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;"/>
  218. <Edit id="opt_srchrsltsum00" taborder="24" readonly="true" position="absolute 1138 709 1168 732" anchor="left bottom" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;"/>
  219. <Edit id="opt_srchrsltsum02" taborder="25" readonly="true" position="absolute 1170 709 1200 732" anchor="left bottom" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;"/>
  220. </Layout>
  221. </Layouts>
  222. </Tabpage>
  223. <Tabpage id="case2" text="영양검색결과조회">
  224. <Layouts>
  225. <Layout width="1196" height="700">
  226. <Div id="grp" taborder="1" position="absolute 0 0 1200 35" class="div_SA" anchor="left top right">
  227. <Layouts>
  228. <Layout width="1182" height="35">
  229. <Button id="btn_search2" taborder="3" text="조회" class="btn1" position="absolute 1130 8 1186 28" anchor="default" onclick="swt_nutrsrchrslt_case2_grp_btn_search2_onclick"/>
  230. <Shape id="line1" linetype="vertical" class="line_4" position="absolute 1115 6 1121 28" anchor="default"/>
  231. <Static id="caption13" text="검색일자 :" class="search_name" position="absolute 5 8 91 28" anchor="default"/>
  232. <Calendar id="ipt_fromdd" taborder="0" class="input_essential" position="absolute 82 8 175 28" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
  233. <Static id="caption16" text="병동 :" class="search_name" position="absolute 881 8 932 28" anchor="default"/>
  234. <Combo id="cmb_ward2" taborder="2" innerdataset="@ds_init_ward" codecolumn="deptcd" datacolumn="depthngnm" class="combo_essential" position="absolute 935 8 1103 28" anchor="default"/>
  235. <Radio id="rdo_patflag2" taborder="4" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 356 8 516 28" anchor="default" index="-1" style="textpadding:0 3 0 3;" tabstop="false">
  236. <Dataset id="innerdataset">
  237. <ColumnInfo>
  238. <Column id="codecolumn"/>
  239. <Column id="datacolumn"/>
  240. </ColumnInfo>
  241. <Rows>
  242. <Row>
  243. <Col id="codecolumn">H</Col>
  244. <Col id="datacolumn">전체</Col>
  245. </Row>
  246. <Row>
  247. <Col id="codecolumn">I</Col>
  248. <Col id="datacolumn">재검색</Col>
  249. </Row>
  250. <Row>
  251. <Col id="codecolumn">F</Col>
  252. <Col id="datacolumn">신환</Col>
  253. </Row>
  254. </Rows>
  255. </Dataset>
  256. </Radio>
  257. <Static id="caption17" text="구분 :" class="search_name" position="absolute 303 8 355 28" anchor="default"/>
  258. <Static id="caption18" text="~" class="search_no_b" position="absolute 179 8 191 28" anchor="default"/>
  259. <Calendar id="ipt_todd" taborder="1" class="input_essential" position="absolute 193 8 286 28" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd"/>
  260. <Static id="caption19" text="위험군 :" class="search_name" position="absolute 518 8 579 28" anchor="default"/>
  261. <cp_checkboxList id="checkbox1" taborder="5" scrollbars="none" position="absolute 587 8 848 28" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible" anchor="default" tabstop="false"/>
  262. </Layout>
  263. </Layouts>
  264. </Div>
  265. <Button id="btn_excel2" taborder="2" text="엑셀" class="btn7" position="absolute 1149 38 1200 58" onclick="swt_nutrsrchrslt_case2_btn_excel2_onclick" anchor="top right"/>
  266. <Shape id="line2" linetype="horizontal" class="line_10" position="absolute 0 59 1200 65" anchor="left top right"/>
  267. <Grid id="grd_pastnutrsrch" taborder="3" binddataset="ds_main_pastsrchrslt" useinputpanel="false" position="absolute 0 65 1200 706" oncelldblclick="swt_nutrsrchrslt_case2_grd_pastnutrsrch_oncelldblclick" autoenter="select" cellsizebandtype="allband" cellsizingtype="both" autosizingtype="row" extendsizetype="row" anchor="all">
  268. <Formats>
  269. <Format id="default">
  270. <Columns>
  271. <Column size="25" band="left"/>
  272. <Column size="55"/>
  273. <Column size="86"/>
  274. <Column size="60"/>
  275. <Column size="60"/>
  276. <Column size="55"/>
  277. <Column size="83"/>
  278. <Column size="100"/>
  279. <Column size="50"/>
  280. <Column size="75"/>
  281. <Column size="70"/>
  282. <Column size="32"/>
  283. <Column size="50"/>
  284. <Column size="190"/>
  285. <Column size="90"/>
  286. <Column size="70"/>
  287. <Column size="70"/>
  288. <Column size="170"/>
  289. <Column size="45"/>
  290. <Column size="45"/>
  291. <Column size="54"/>
  292. <Column size="60"/>
  293. <Column size="60"/>
  294. <Column size="60"/>
  295. <Column size="60"/>
  296. <Column size="60"/>
  297. <Column size="60"/>
  298. <Column size="86"/>
  299. <Column size="0"/>
  300. <Column size="0"/>
  301. <Column size="50"/>
  302. <Column size="40"/>
  303. <Column size="120"/>
  304. </Columns>
  305. <Rows>
  306. <Row size="24" band="head"/>
  307. <Row size="24" band="head"/>
  308. <Row size="24"/>
  309. </Rows>
  310. <Band id="head">
  311. <Cell rowspan="2" taborder="undefined"/>
  312. <Cell col="1" rowspan="2" text="회신여부" taborder="undefined"/>
  313. <Cell col="2" rowspan="2" text="검색일자" taborder="undefined"/>
  314. <Cell col="3" rowspan="2" text="검색결과" taborder="undefined"/>
  315. <Cell col="4" rowspan="2" text="이전결과" taborder="undefined"/>
  316. <Cell col="5" rowspan="2" text="신환구분" taborder="undefined"/>
  317. <Cell col="6" rowspan="2" text="입원일자" taborder="undefined"/>
  318. <Cell col="7" rowspan="2" text="병동" taborder="undefined"/>
  319. <Cell col="8" rowspan="2" text="병실" taborder="undefined"/>
  320. <Cell col="9" rowspan="2" text="등록번호" taborder="undefined"/>
  321. <Cell col="10" rowspan="2" text="환자명" taborder="undefined"/>
  322. <Cell col="11" rowspan="2" text="성별" taborder="undefined"/>
  323. <Cell col="12" rowspan="2" text="나이" taborder="undefined"/>
  324. <Cell col="13" rowspan="2" text="진단명" taborder="undefined"/>
  325. <Cell col="14" rowspan="2" text="진료과" taborder="undefined"/>
  326. <Cell col="15" rowspan="2" text="담당교수" taborder="undefined"/>
  327. <Cell col="16" rowspan="2" text="담당의" taborder="undefined"/>
  328. <Cell col="17" rowspan="2" text="식사명" taborder="undefined"/>
  329. <Cell col="18" text="PIBW"/>
  330. <Cell col="19" text="Alb"/>
  331. <Cell col="20" text="TLC"/>
  332. <Cell col="21" text="소아키"/>
  333. <Cell col="22" text="소아체중"/>
  334. <Cell col="23" rowspan="2" text="식욕" taborder="undefined"/>
  335. <Cell col="24" rowspan="2" text="체중감소" taborder="undefined"/>
  336. <Cell col="25" rowspan="2" text="연하곤란" taborder="undefined"/>
  337. <Cell col="26" rowspan="2" text="식이처방" taborder="undefined"/>
  338. <Cell col="27" rowspan="2" text="이전결과판정일" wordwrap="char" taborder="undefined"/>
  339. <Cell col="28" text="TRF"/>
  340. <Cell col="29" rowspan="2" text="INS결과" taborder="undefined"/>
  341. <Cell col="30" rowspan="2" text="영양사" taborder="undefined"/>
  342. <Cell col="31" rowspan="2" text="NST" taborder="undefined"/>
  343. <Cell col="32" rowspan="2" text="비고" taborder="undefined"/>
  344. <Cell row="1" col="18" text="(%)"/>
  345. <Cell row="1" col="19" text="(g/dl)"/>
  346. <Cell row="1" col="20" text="(cell/㎣)"/>
  347. <Cell row="1" col="21" text="(%)"/>
  348. <Cell row="1" col="22" text="(%)"/>
  349. <Cell row="1" col="28" text="(mg/dl)"/>
  350. </Band>
  351. <Band id="body">
  352. <Cell celltype="head" text="expr:currow + 1"/>
  353. <Cell col="1" style="align:center middle;" text="bind:replyn" wordwrap="char"/>
  354. <Cell col="2" displaytype="date" style="align:center middle;" text="bind:srchdd" wordwrap="char" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  355. <Cell col="3" displaytype="combo" style="align:center;" text="bind:srchrslt" combodataset="ds_init_dngrflag" combocodecol="cdid" combodatacol="cdnm"/>
  356. <Cell col="4" displaytype="combo" style="align:center;" text="bind:bfrslt" combodataset="ds_init_dngrflag" combocodecol="cdid" combodatacol="cdnm"/>
  357. <Cell col="5" displaytype="combo" edittype="none" style="align:center middle;" text="bind:patflag" wordwrap="char" combodataset="ds_init_patflag" combocodecol="value" combodatacol="label" enable="false"/>
  358. <Cell col="6" displaytype="date" style="align:center middle;" text="bind:orddd" wordwrap="char" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  359. <Cell col="7" displaytype="combo" edittype="none" style="align:center middle;" text="bind:ward" wordwrap="char" combodataset="ds_init_ward" combocodecol="deptcd" combodatacol="depthngnm" enable="false"/>
  360. <Cell col="8" style="align:center middle;" text="bind:room" wordwrap="char"/>
  361. <Cell col="9" style="align:center middle;" text="bind:pid" wordwrap="char"/>
  362. <Cell col="10" style="align:center middle;" text="bind:hngnm" wordwrap="char"/>
  363. <Cell col="11" style="align:center middle;" text="bind:sex" wordwrap="char"/>
  364. <Cell col="12" style="align:center middle;" text="bind:age" wordwrap="char"/>
  365. <Cell col="13" style="align:left middle;" text="bind:diagnm" wordwrap="char" autosizerow="limitmin"/>
  366. <Cell col="14" displaytype="combo" edittype="none" style="align:center middle;" text="bind:orddept" wordwrap="char" combodataset="ds_init_orddept" combocodecol="deptcd" combodatacol="depthngnm" enable="false"/>
  367. <Cell col="15" style="align:center middle;" text="bind:orddrnm" wordwrap="char"/>
  368. <Cell col="16" style="align:center middle;" text="bind:atdoct" wordwrap="char"/>
  369. <Cell col="17" style="align:left middle;" text="bind:dietnm" wordwrap="char"/>
  370. <Cell col="18" displaytype="number" style="align:center middle;" text="bind:pibw" wordwrap="none"/>
  371. <Cell col="19" displaytype="number" style="align:center middle;" text="bind:alb" wordwrap="none"/>
  372. <Cell col="20" displaytype="number" style="align:center middle;" text="bind:tlc" wordwrap="none"/>
  373. <Cell col="21" displaytype="number" style="align:center middle;" text="bind:childhtrate"/>
  374. <Cell col="22" displaytype="number" style="align:center middle;" text="bind:childwtrate"/>
  375. <Cell col="23" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:apptchngyn" wordwrap="char" combodataset="ds_init_apptchngyn" combocodecol="value" combodatacol="label"/>
  376. <Cell col="24" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:bdwtchngyn" wordwrap="char" combodataset="ds_init_bdwtchngyn" combocodecol="value" combodatacol="label"/>
  377. <Cell col="25" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:symp" wordwrap="char" combodataset="ds_init_symp" combocodecol="value" combodatacol="label"/>
  378. <Cell col="26" style="align:center middle;" text="bind:dietcnt" wordwrap="char"/>
  379. <Cell col="27" displaytype="date" style="align:center middle;" text="bind:bfrsltdd" wordwrap="char" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  380. <Cell col="28" style="align:center middle;" text="bind:trf" wordwrap="char"/>
  381. <Cell col="29" style="align:center middle;" text="bind:insrslt" wordwrap="char"/>
  382. <Cell col="30" style="align:center middle;" text="bind:srchrgstnm"/>
  383. <Cell col="31" text="bind:nstyn"/>
  384. <Cell col="32" displaytype="text" edittype="text" text="bind:rem"/>
  385. </Band>
  386. </Format>
  387. </Formats>
  388. </Grid>
  389. <Shape id="line3" linetype="horizontal" class="line_2" position="absolute 0 705 1200 711" anchor="left right bottom"/>
  390. <Shape id="line6" linetype="horizontal" class="line_3" position="absolute 0 731 1200 737" anchor="left right bottom"/>
  391. <Static id="caption7" text="검색결과 (전체/성인/소아)" class="cell_1" position="absolute 168 709 342 732" anchor="left bottom"/>
  392. <Static id="caption10" text="양호" class="cell_1" position="absolute 356 709 421 732" anchor="left bottom"/>
  393. <Edit id="opt_srchrslt1" taborder="4" readonly="true" position="absolute 423 709 453 732" anchor="left bottom" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;"/>
  394. <Edit id="opt_srchrslt00" taborder="5" readonly="true" position="absolute 455 709 485 732" anchor="left bottom" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;"/>
  395. <Edit id="opt_srchrslt06" taborder="6" readonly="true" position="absolute 487 709 517 732" anchor="left bottom" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;"/>
  396. <Static id="caption8" text="저위험도" class="cell_1" position="absolute 526 709 591 732" anchor="left bottom"/>
  397. <Edit id="opt_srchrslt2" taborder="7" readonly="true" position="absolute 593 709 623 732" anchor="left bottom" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;"/>
  398. <Edit id="opt_srchrslt07" taborder="8" readonly="true" position="absolute 625 709 655 732" anchor="left bottom" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;"/>
  399. <Edit id="opt_srchrslt08" taborder="9" readonly="true" position="absolute 657 709 687 732" anchor="left bottom" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;"/>
  400. <Static id="caption11" text="중위험도" class="cell_1" position="absolute 697 709 762 732" anchor="left bottom"/>
  401. <Edit id="opt_srchrslt3" taborder="10" readonly="true" position="absolute 764 709 794 732" anchor="left bottom" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;"/>
  402. <Edit id="opt_srchrslt09" taborder="11" readonly="true" position="absolute 796 709 826 732" anchor="left bottom" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;"/>
  403. <Edit id="opt_srchrslt10" taborder="12" readonly="true" position="absolute 828 709 858 732" anchor="left bottom" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;"/>
  404. <Static id="caption12" text="고위험도" class="cell_1" position="absolute 867 709 932 732" anchor="left bottom"/>
  405. <Edit id="opt_srchrslt4" taborder="13" readonly="true" position="absolute 934 709 964 732" anchor="left bottom" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;"/>
  406. <Edit id="opt_srchrslt11" taborder="14" readonly="true" position="absolute 966 709 996 732" anchor="left bottom" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;"/>
  407. <Edit id="opt_srchrslt12" taborder="15" readonly="true" position="absolute 998 709 1028 732" anchor="left bottom" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;"/>
  408. <Static id="caption3" text="계" class="cell_1" position="absolute 1039 709 1104 732" anchor="left bottom"/>
  409. <Edit id="opt_srchrsltsum1" taborder="19" readonly="true" position="absolute 1106 709 1136 732" anchor="left bottom" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;"/>
  410. <Edit id="opt_srchrsltsum00" taborder="20" readonly="true" position="absolute 1138 709 1168 732" anchor="left bottom" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;"/>
  411. <Edit id="opt_srchrsltsum02" taborder="21" readonly="true" position="absolute 1170 709 1200 732" anchor="left bottom" style="caretcolor:black;background:URL('theme://images\bg_edit_D.png') stretch 5,5;color:black;align:center middle;"/>
  412. </Layout>
  413. </Layouts>
  414. </Tabpage>
  415. <Tabpage id="case3" text="영양검색통계">
  416. <Layouts>
  417. <Layout>
  418. <Div id="grp" taborder="1" position="absolute 0 0 1200 36" class="div_SA" anchor="left top right">
  419. <Layouts>
  420. <Layout width="1182" height="35">
  421. <Button id="btn_search3" taborder="5" text="조회" class="btn1" position="absolute 1131 8 1187 28" anchor="default" onclick="swt_nutrsrchrslt_case3_grp_btn_search3_onclick"/>
  422. <Shape id="line7" linetype="vertical" class="line_4" position="absolute 1115 7 1121 29" anchor="default"/>
  423. <Static id="caption26" text="검색일자 :" class="search_name" position="absolute 5 8 91 31" anchor="default"/>
  424. <Calendar id="ipt_fromdd3" taborder="0" class="input_essential" position="absolute 81 8 174 28" anchor="default" dateformat="yyyy-MM-dd" value="null"/>
  425. <Static id="caption27" text="진료과 :" class="search_name" position="absolute 716 8 789 28" anchor="default"/>
  426. <Combo id="cmb_orddept3" taborder="3" innerdataset="@ds_init_orddept" codecolumn="deptcd" datacolumn="depthngnm" class="combo_search" position="absolute 791 8 886 28" anchor="default"/>
  427. <Static id="caption28" text="병동 :" class="search_name" position="absolute 910 8 970 28" anchor="default"/>
  428. <Combo id="cmb_ward3" taborder="4" innerdataset="@ds_init_ward" codecolumn="deptcd" datacolumn="depthngnm" class="combo_essential" position="absolute 970 8 1103 28" anchor="default"/>
  429. <Radio id="rdo_patflag3" taborder="6" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 364 8 524 28" index="-1" style="textpadding:0 3 0 3;" anchor="default" tabstop="false">
  430. <Dataset id="innerdataset">
  431. <ColumnInfo>
  432. <Column id="codecolumn"/>
  433. <Column id="datacolumn"/>
  434. </ColumnInfo>
  435. <Rows>
  436. <Row>
  437. <Col id="codecolumn">H</Col>
  438. <Col id="datacolumn">전체</Col>
  439. </Row>
  440. <Row>
  441. <Col id="codecolumn">I</Col>
  442. <Col id="datacolumn">재검색</Col>
  443. </Row>
  444. <Row>
  445. <Col id="codecolumn">F</Col>
  446. <Col id="datacolumn">신환</Col>
  447. </Row>
  448. </Rows>
  449. </Dataset>
  450. </Radio>
  451. <Static id="caption29" text="구분 :" class="search_name" position="absolute 311 8 363 28" anchor="default"/>
  452. <Static id="caption30" text="~" class="search_no_b" position="absolute 177 8 189 28" anchor="default"/>
  453. <Calendar id="ipt_todd3" taborder="1" class="input_essential" position="absolute 189 8 282 28" anchor="default" dateformat="yyyy-MM-dd"/>
  454. <Static id="caption31" text="위험군 :" class="search_name" position="absolute 542 8 615 28" anchor="default"/>
  455. <Combo id="cmb_dngrflag3" taborder="2" innerdataset="@ds_init_dngrflag" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 615 8 690 28" anchor="default"/>
  456. </Layout>
  457. </Layouts>
  458. </Div>
  459. <Button id="btn_excel3" taborder="2" text="엑셀" class="btn7" position="absolute 1149 39 1200 59" onclick="swt_nutrsrchrslt_case3_btn_excel3_onclick" anchor="top right"/>
  460. <Shape id="line8" linetype="horizontal" class="line_10" position="absolute 0 60 1200 66" anchor="left top right"/>
  461. <Grid id="grd_nutrsrchstats" taborder="3" binddataset="ds_main_srchstats" useinputpanel="false" position="absolute 0 66 1200 732" cellsizebandtype="allband" cellsizingtype="both" anchor="all" autofittype="col" summarytype="top">
  462. <Formats>
  463. <Format id="default">
  464. <Columns>
  465. <Column size="20" band="left"/>
  466. <Column size="100"/>
  467. <Column size="65"/>
  468. <Column size="65"/>
  469. <Column size="67"/>
  470. <Column size="72"/>
  471. <Column size="88"/>
  472. <Column size="65"/>
  473. <Column size="65"/>
  474. <Column size="76"/>
  475. <Column size="71"/>
  476. <Column size="77"/>
  477. </Columns>
  478. <Rows>
  479. <Row size="24" band="head"/>
  480. <Row size="24" band="head"/>
  481. <Row size="24"/>
  482. <Row size="24" band="summ"/>
  483. </Rows>
  484. <Band id="head">
  485. <Cell rowspan="2" taborder="undefined"/>
  486. <Cell col="1" rowspan="2" text="검색일자" taborder="undefined"/>
  487. <Cell col="2" colspan="5" text="신환" taborder="undefined"/>
  488. <Cell col="7" colspan="5" text="재검색" taborder="undefined"/>
  489. <Cell row="1" col="2" text="양호"/>
  490. <Cell row="1" col="3" text="저위험도"/>
  491. <Cell row="1" col="4" text="중위헙도"/>
  492. <Cell row="1" col="5" text="고위험도"/>
  493. <Cell row="1" col="6" text="합계"/>
  494. <Cell row="1" col="7" text="양호"/>
  495. <Cell row="1" col="8" text="저위험도"/>
  496. <Cell row="1" col="9" text="중위험도"/>
  497. <Cell row="1" col="10" text="고위험도"/>
  498. <Cell row="1" col="11" text="합계"/>
  499. </Band>
  500. <Band id="body">
  501. <Cell celltype="head" expr="expr:currow + 1"/>
  502. <Cell col="1" displaytype="date" edittype="none" text="bind:srchdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  503. <Cell col="2" text="bind:good1"/>
  504. <Cell col="3" text="bind:low1"/>
  505. <Cell col="4" text="bind:mid1"/>
  506. <Cell col="5" text="bind:high1"/>
  507. <Cell col="6" text="bind:total1"/>
  508. <Cell col="7" text="bind:good2"/>
  509. <Cell col="8" text="bind:low2"/>
  510. <Cell col="9" text="bind:mid2"/>
  511. <Cell col="10" text="bind:high2"/>
  512. <Cell col="11" text="bind:total2"/>
  513. </Band>
  514. <Band id="summary">
  515. <Cell expr="expr:ds_main_srchstats.rowcount+1"/>
  516. <Cell col="1" style="font:arial,9,bold;" text="합 계"/>
  517. <Cell col="2" style="font:arial,9,bold;" expr="expr:getSum('good1')"/>
  518. <Cell col="3" style="font:arial,9,bold;" expr="expr:getSum('low1')"/>
  519. <Cell col="4" style="font:arial,9,bold;" expr="expr:getSum('mid1')"/>
  520. <Cell col="5" style="font:arial,9,bold;" expr="expr:getSum('high1')"/>
  521. <Cell col="6" style="font:arial,9,bold;" expr="expr:getSum('total1')"/>
  522. <Cell col="7" style="font:arial,9,bold;" expr="expr:getSum('good2')"/>
  523. <Cell col="8" style="font:arial,9,bold;" expr="expr:getSum('low2')"/>
  524. <Cell col="9" style="font:arial,9,bold;" expr="expr:getSum('mid2')"/>
  525. <Cell col="10" style="font:arial,9,bold;" expr="expr:getSum('high2')"/>
  526. <Cell col="11" style="font:arial,9,bold;" expr="expr:getSum('total2')"/>
  527. </Band>
  528. </Format>
  529. </Formats>
  530. </Grid>
  531. <Shape id="line6" class="line_3" position="absolute 0 731 1200 737" anchor="left right bottom"/>
  532. </Layout>
  533. </Layouts>
  534. </Tabpage>
  535. </Tabpages>
  536. </Tab>
  537. <Static id="caption6" text="영양검색결과" class="tit_1" position="absolute 0 0 120 25"/>
  538. <Button id="btn_prnt" taborder="1" text="출력" class="btn6" visible="false" position="absolute 0 789 56 809" anchor="left bottom"/>
  539. <Button id="btn_reset" taborder="2" text="초기화" class="btn4" position="absolute 1074 789 1142 809" onclick="btn_reset_onclick" anchor="right bottom"/>
  540. <Button id="btn_save" taborder="3" text="저장" class="btn4" position="absolute 1144 789 1200 809" onclick="btn_save_onclick" anchor="right bottom"/>
  541. <cp_checkboxList id="chk_ward" titletext="CheckBox List" taborder="5" text="cp_checkboxList00" scrollbars="none" position="absolute 926 83 1121 618" style="background:white;font:Dotum,8;shadow:outer 3,3 3 gray;" col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
  542. </Layout>
  543. </Layouts>
  544. <Objects>
  545. <Dataset id="ds_init_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  546. <ColumnInfo>
  547. <Column id="instcd" type="STRING"/>
  548. <Column id="depthngnm" type="STRING"/>
  549. <Column id="deptcd" type="STRING"/>
  550. </ColumnInfo>
  551. </Dataset>
  552. <Dataset id="ds_init_dngrflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  553. <ColumnInfo>
  554. <Column id="cdnm" type="STRING"/>
  555. <Column id="cdid" type="STRING"/>
  556. </ColumnInfo>
  557. </Dataset>
  558. <Dataset id="ds_main_srchrslt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_srchrslt_oncolumnchanged">
  559. <ColumnInfo>
  560. <Column id="check" type="STRING"/>
  561. <Column id="h_patflag" type="STRING"/>
  562. <Column id="h_prcpdd" type="STRING"/>
  563. <Column id="h_cretno" type="STRING"/>
  564. <Column id="h_prcpgenrflag" type="STRING"/>
  565. <Column id="h_orddd" type="STRING"/>
  566. <Column id="replyn" type="STRING"/>
  567. <Column id="indd" type="STRING" size="256" sumtext="실제입원일자"/>
  568. <Column id="ward" type="STRING"/>
  569. <Column id="room" type="STRING"/>
  570. <Column id="h_wardroom" type="STRING"/>
  571. <Column id="pid" type="STRING"/>
  572. <Column id="hngnm" type="STRING"/>
  573. <Column id="sex" type="STRING"/>
  574. <Column id="age" type="STRING"/>
  575. <Column id="h_diagcd" type="STRING"/>
  576. <Column id="diagnm" type="STRING"/>
  577. <Column id="orddept" type="STRING"/>
  578. <Column id="orddrid" type="STRING"/>
  579. <Column id="atdoct" type="STRING"/>
  580. <Column id="dietnm" type="STRING"/>
  581. <Column id="h_ht" type="STRING"/>
  582. <Column id="h_wt" type="STRING"/>
  583. <Column id="pibw" type="STRING"/>
  584. <Column id="alb" type="STRING"/>
  585. <Column id="tlc" type="STRING"/>
  586. <Column id="childhtrate" type="STRING"/>
  587. <Column id="childwtrate" type="STRING"/>
  588. <Column id="apptchngyn" type="STRING"/>
  589. <Column id="bdwtchngyn" type="STRING"/>
  590. <Column id="symp" type="STRING"/>
  591. <Column id="dietcnt" type="STRING"/>
  592. <Column id="srchrslt" type="STRING"/>
  593. <Column id="bfrslt" type="STRING"/>
  594. <Column id="bfrsltdd" type="STRING"/>
  595. <Column id="trf" type="STRING"/>
  596. <Column id="insrslt" type="STRING"/>
  597. <Column id="nutrmngtkind" type="STRING" size="256" sumtext="영양관리유형"/>
  598. <Column id="execdd" type="STRING" size="256" sumtext="수행일자"/>
  599. <Column id="replyn" type="STRING" size="256" sumtext="회신여부"/>
  600. </ColumnInfo>
  601. </Dataset>
  602. <Dataset id="ds_init_ward" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  603. <ColumnInfo>
  604. <Column id="depthngnm" type="STRING"/>
  605. <Column id="deptcd" type="STRING"/>
  606. </ColumnInfo>
  607. </Dataset>
  608. <Dataset id="ds_main_pastsrchrslt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  609. <ColumnInfo>
  610. <Column id="replyn" type="STRING" size="256" sumtext="회신여부"/>
  611. <Column id="prcpdd" type="STRING" size="256" sumtext="처방일자"/>
  612. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  613. <Column id="prcpgenrflag" type="STRING" size="256" sumtext="I/O구분"/>
  614. <Column id="orddept" type="STRING" size="256" sumtext="진료과"/>
  615. <Column id="orddrid" type="STRING" size="256" sumtext="주치의ID"/>
  616. <Column id="orddrnm" type="STRING" size="256" sumtext="주치의명"/>
  617. <Column id="atdoct" type="STRING" size="256" sumtext="담당의"/>
  618. <Column id="dietnm" type="STRING" size="256" sumtext="식사명"/>
  619. <Column id="bfrslt" type="STRING" size="256" sumtext="이전결과"/>
  620. <Column id="bfrsltdd" type="STRING" size="256" sumtext="이전결과판정일"/>
  621. <Column id="srchdd" type="STRING" size="256" sumtext="검색일자"/>
  622. <Column id="patflag" type="STRING" size="256" sumtext="환자구분"/>
  623. <Column id="orddd" type="STRING" size="256" sumtext="실제 입원일자"/>
  624. <Column id="indd" type="STRING" size="256" sumtext="저장된 입원일자"/>
  625. <Column id="ward" type="STRING" size="256" sumtext="병동"/>
  626. <Column id="room" type="STRING" size="256" sumtext="병실"/>
  627. <Column id="wardroom" type="STRING" size="256" sumtext="병동/병실"/>
  628. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  629. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  630. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  631. <Column id="age" type="STRING" size="256" sumtext="나이"/>
  632. <Column id="diagnm" type="STRING" size="256" sumtext="진단명"/>
  633. <Column id="pibw" type="INT" size="256" sumtext="PIBW"/>
  634. <Column id="alb" type="BIGDECIMAL" size="256" sumtext="ALB"/>
  635. <Column id="tlc" type="INT" size="256" sumtext="TLC"/>
  636. <Column id="childyn" type="INT" size="256" sumtext="소아여부"/>
  637. <Column id="childhtrate" type="INT" size="256" sumtext="소아키비율"/>
  638. <Column id="childwtrate" type="INT" size="256" sumtext="소아체중비율"/>
  639. <Column id="apptchngyn" type="STRING" size="256" sumtext="식욕상태"/>
  640. <Column id="bdwtchngyn" type="STRING" size="256" sumtext="체중변화"/>
  641. <Column id="symp" type="STRING" size="256" sumtext="소화기계연하곤란유무"/>
  642. <Column id="dietcnt" type="STRING" size="256" sumtext="식이처방건수"/>
  643. <Column id="srchrslt" type="STRING" size="256" sumtext="검색결과"/>
  644. <Column id="trf" type="BIGDECIMAL" size="256" sumtext="TRF"/>
  645. <Column id="insrslt" type="STRING" size="256" sumtext="INS결과"/>
  646. <Column id="rem" type="STRING" size="256" sumtext="비고"/>
  647. <Column id="srchrgstnm" type="STRING" size="256" sumtext="비고"/>
  648. <Column id="nstyn" type="STRING" size="256" sumtext="NST여부"/>
  649. </ColumnInfo>
  650. </Dataset>
  651. <Dataset id="ds_main_srchstats" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  652. <ColumnInfo>
  653. <Column id="srchdd" type="STRING" size="256" sumtext="검색일자"/>
  654. <Column id="good1" type="STRING" size="256" sumtext="신환-양호"/>
  655. <Column id="low1" type="STRING" size="256" sumtext="신환-저위험도"/>
  656. <Column id="mid1" type="STRING" size="256" sumtext="신환-중위험도"/>
  657. <Column id="high1" type="STRING" size="256" sumtext="신환-고위험도"/>
  658. <Column id="total1" type="STRING" size="256" sumtext="신환-합계"/>
  659. <Column id="good2" type="STRING" size="256" sumtext="재검색-양호"/>
  660. <Column id="low2" type="STRING" size="256" sumtext="재검색-저위험도"/>
  661. <Column id="mid2" type="STRING" size="256" sumtext="재검색-중위험도"/>
  662. <Column id="high2" type="STRING" size="256" sumtext="재검색-고위험도"/>
  663. <Column id="total2" type="STRING" size="256" sumtext="재검색-합계"/>
  664. </ColumnInfo>
  665. </Dataset>
  666. <Dataset id="ds_send_searchitem" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  667. <ColumnInfo>
  668. <Column id="basedd" type="STRING" size="256"/>
  669. <Column id="patflag" type="STRING" size="256"/>
  670. <Column id="orddept" type="STRING" size="256"/>
  671. <Column id="ward" type="STRING" size="256"/>
  672. <Column id="dngrflag" type="STRING" size="256"/>
  673. <Column id="optward" type="STRING" size="256"/>
  674. </ColumnInfo>
  675. <Rows>
  676. <Row>
  677. <Col id="basedd"/>
  678. <Col id="patflag"/>
  679. <Col id="orddept"/>
  680. <Col id="ward"/>
  681. <Col id="dngrflag"/>
  682. <Col id="optward"/>
  683. </Row>
  684. </Rows>
  685. </Dataset>
  686. <Dataset id="ds_send_pastsearchitem" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  687. <ColumnInfo>
  688. <Column id="fromdd" type="STRING" size="256"/>
  689. <Column id="todd" type="STRING" size="256"/>
  690. <Column id="patflag" type="STRING" size="256"/>
  691. <Column id="ward" type="STRING" size="256"/>
  692. <Column id="dngrflag" type="STRING" size="256"/>
  693. </ColumnInfo>
  694. <Rows>
  695. <Row>
  696. <Col id="fromdd"/>
  697. <Col id="todd"/>
  698. <Col id="patflag"/>
  699. <Col id="ward"/>
  700. <Col id="dngrflag">4 3</Col>
  701. </Row>
  702. </Rows>
  703. </Dataset>
  704. <Dataset id="ds_send_statssearchitem" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  705. <ColumnInfo>
  706. <Column id="fromdd" type="STRING" size="256" sumtext="조회시작일자"/>
  707. <Column id="todd" type="STRING" size="256" sumtext="조회종료일자"/>
  708. <Column id="patflag" type="STRING" size="256" sumtext="환자구분"/>
  709. <Column id="ward" type="STRING" size="256" sumtext="병동"/>
  710. <Column id="orddept" type="STRING" size="256" sumtext="진료과"/>
  711. <Column id="dngrflag" type="STRING" size="256" sumtext="위험군"/>
  712. </ColumnInfo>
  713. <Rows>
  714. <Row/>
  715. </Rows>
  716. </Dataset>
  717. <Dataset id="ds_init_nutrjudgbase" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  718. <ColumnInfo>
  719. <Column id="valuitemcd" type="STRING" size="256" sumtext="항목코드"/>
  720. <Column id="dngrstatcd" type="STRING" size="256" sumtext="위험코드"/>
  721. <Column id="minval" type="BIGDECIMAL" size="256" sumtext="최저값"/>
  722. <Column id="maxval" type="BIGDECIMAL" size="256" sumtext="최고값"/>
  723. </ColumnInfo>
  724. </Dataset>
  725. <Dataset id="ds_init_ckbox_dngrflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  726. <ColumnInfo>
  727. <Column id="label" type="STRING" size="256"/>
  728. <Column id="value" type="STRING" size="256"/>
  729. </ColumnInfo>
  730. <Rows>
  731. <Row>
  732. <Col id="label">고위험군</Col>
  733. <Col id="value">4</Col>
  734. </Row>
  735. <Row>
  736. <Col id="label">중위험군</Col>
  737. <Col id="value">3</Col>
  738. </Row>
  739. <Row>
  740. <Col id="label">저위험군</Col>
  741. <Col id="value">2</Col>
  742. </Row>
  743. <Row>
  744. <Col id="label">양호군</Col>
  745. <Col id="value">1</Col>
  746. </Row>
  747. </Rows>
  748. </Dataset>
  749. <Dataset id="ds_init_patflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  750. <ColumnInfo>
  751. <Column id="label" type="STRING" size="256"/>
  752. <Column id="value" type="STRING" size="256"/>
  753. </ColumnInfo>
  754. <Rows>
  755. <Row>
  756. <Col id="label">재검색</Col>
  757. <Col id="value">I</Col>
  758. </Row>
  759. <Row>
  760. <Col id="label">신환</Col>
  761. <Col id="value">F</Col>
  762. </Row>
  763. </Rows>
  764. </Dataset>
  765. <Dataset id="ds_init_apptchngyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  766. <ColumnInfo>
  767. <Column id="label" type="STRING" size="256"/>
  768. <Column id="value" type="STRING" size="256"/>
  769. </ColumnInfo>
  770. <Rows>
  771. <Row>
  772. <Col id="label">좋음</Col>
  773. <Col id="value">1</Col>
  774. </Row>
  775. <Row>
  776. <Col id="label">보통</Col>
  777. <Col id="value">2</Col>
  778. </Row>
  779. <Row>
  780. <Col id="label">나쁨</Col>
  781. <Col id="value">3</Col>
  782. </Row>
  783. <Row>
  784. <Col id="label">매우나쁨</Col>
  785. <Col id="value">4</Col>
  786. </Row>
  787. </Rows>
  788. </Dataset>
  789. <Dataset id="ds_init_bdwtchngyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  790. <ColumnInfo>
  791. <Column id="label" type="STRING" size="256"/>
  792. <Column id="value" type="STRING" size="256"/>
  793. </ColumnInfo>
  794. <Rows>
  795. <Row>
  796. <Col id="label">무</Col>
  797. <Col id="value">1</Col>
  798. </Row>
  799. <Row>
  800. <Col id="label">유</Col>
  801. <Col id="value">2</Col>
  802. </Row>
  803. </Rows>
  804. </Dataset>
  805. <Dataset id="ds_init_symp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  806. <ColumnInfo>
  807. <Column id="label" type="STRING" size="256"/>
  808. <Column id="value" type="STRING" size="256"/>
  809. </ColumnInfo>
  810. <Rows>
  811. <Row>
  812. <Col id="label">없음</Col>
  813. <Col id="value">N</Col>
  814. </Row>
  815. <Row>
  816. <Col id="label">있음</Col>
  817. <Col id="value">Y</Col>
  818. </Row>
  819. </Rows>
  820. </Dataset>
  821. <Dataset id="ds_main_pastsrchrslt_count" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  822. <ColumnInfo>
  823. <Column id="goodcnt" type="STRING" size="256" sumtext="양호"/>
  824. <Column id="lowcnt" type="STRING" size="256" sumtext="저위험도"/>
  825. <Column id="midcnt" type="STRING" size="256" sumtext="중위험도"/>
  826. <Column id="highcnt" type="STRING" size="256" sumtext="고위험도"/>
  827. <Column id="noncnt" type="STRING" size="256" sumtext="판정불가"/>
  828. <Column id="totalcnt" type="STRING" size="256" sumtext="계"/>
  829. <Column id="adultgoodcnt" type="STRING" size="256" sumtext="양호"/>
  830. <Column id="adultlowcnt" type="STRING" size="256" sumtext="저위험도"/>
  831. <Column id="adultmidcnt" type="STRING" size="256" sumtext="중위험도"/>
  832. <Column id="adulthighcnt" type="STRING" size="256" sumtext="고위험도"/>
  833. <Column id="adultnoncnt" type="STRING" size="256" sumtext="판정불가"/>
  834. <Column id="adulttotalcnt" type="STRING" size="256" sumtext="계"/>
  835. <Column id="childgoodcnt" type="STRING" size="256" sumtext="양호"/>
  836. <Column id="childlowcnt" type="STRING" size="256" sumtext="저위험도"/>
  837. <Column id="childmidcnt" type="STRING" size="256" sumtext="중위험도"/>
  838. <Column id="childhighcnt" type="STRING" size="256" sumtext="고위험도"/>
  839. <Column id="childnoncnt" type="STRING" size="256" sumtext="판정불가"/>
  840. <Column id="childtotalcnt" type="STRING" size="256" sumtext="계"/>
  841. </ColumnInfo>
  842. </Dataset>
  843. <Dataset id="ds_main_srchrslt_count" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  844. <ColumnInfo>
  845. <Column id="good" type="STRING" size="256" sumtext="양호"/>
  846. <Column id="low" type="STRING" size="256" sumtext="저위험도"/>
  847. <Column id="mid" type="STRING" size="256" sumtext="중위험도"/>
  848. <Column id="high" type="STRING" size="256" sumtext="고위험도"/>
  849. <Column id="non" type="STRING" size="256" sumtext="판정불가"/>
  850. <Column id="total" type="STRING" size="256" sumtext="계"/>
  851. <Column id="adultgood" type="STRING" size="256" sumtext="양호"/>
  852. <Column id="adultlow" type="STRING" size="256" sumtext="저위험도"/>
  853. <Column id="adultmid" type="STRING" size="256" sumtext="중위험도"/>
  854. <Column id="adulthigh" type="STRING" size="256" sumtext="고위험도"/>
  855. <Column id="adultnon" type="STRING" size="256" sumtext="판정불가"/>
  856. <Column id="adulttotal" type="STRING" size="256" sumtext="계"/>
  857. <Column id="childgood" type="STRING" size="256" sumtext="양호"/>
  858. <Column id="childlow" type="STRING" size="256" sumtext="저위험도"/>
  859. <Column id="childmid" type="STRING" size="256" sumtext="중위험도"/>
  860. <Column id="childhigh" type="STRING" size="256" sumtext="고위험도"/>
  861. <Column id="childnon" type="STRING" size="256" sumtext="판정불가"/>
  862. <Column id="childtotal" type="STRING" size="256" sumtext="계"/>
  863. </ColumnInfo>
  864. </Dataset>
  865. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  866. </Objects>
  867. <Bind>
  868. <BindItem id="item1" compid="swt_nutrsrchrslt.case2.grp.ipt_fromdd" propid="value" datasetid="ds_send_pastsearchitem" columnid="fromdd"/>
  869. <BindItem id="item2" compid="swt_nutrsrchrslt.case2.grp.ipt_todd" propid="value" datasetid="ds_send_pastsearchitem" columnid="todd"/>
  870. <BindItem id="item3" compid="swt_nutrsrchrslt.case2.grp.rdo_patflag2" propid="value" datasetid="ds_send_pastsearchitem" columnid="patflag"/>
  871. <BindItem id="item5" compid="swt_nutrsrchrslt.case2.grp.cmb_ward2" propid="value" datasetid="ds_send_pastsearchitem" columnid="ward"/>
  872. <BindItem id="item11" compid="swt_nutrsrchrslt.case1.grp.ipt_basedd" propid="value" datasetid="ds_send_searchitem" columnid="basedd"/>
  873. <BindItem id="item12" compid="swt_nutrsrchrslt.case1.grp.rdo_patflag1" propid="value" datasetid="ds_send_searchitem" columnid="patflag"/>
  874. <BindItem id="item13" compid="swt_nutrsrchrslt.case1.grp.cmb_dngrflag1" propid="value" datasetid="ds_send_searchitem" columnid="dngrflag"/>
  875. <BindItem id="item14" compid="swt_nutrsrchrslt.case1.grp.cmb_orddept1" propid="value" datasetid="ds_send_searchitem" columnid="orddept"/>
  876. <BindItem id="item15" compid="swt_nutrsrchrslt.case1.grp.opt_ward" propid="value" datasetid="ds_send_searchitem" columnid="optward"/>
  877. <BindItem id="item16" compid="swt_nutrsrchrslt.case1.opt_srchrslt1" propid="value" datasetid="ds_main_srchrslt_count" columnid="good"/>
  878. <BindItem id="item17" compid="swt_nutrsrchrslt.case1.opt_srchrslt2" propid="value" datasetid="ds_main_srchrslt_count" columnid="low"/>
  879. <BindItem id="item18" compid="swt_nutrsrchrslt.case1.opt_srchrslt3" propid="value" datasetid="ds_main_srchrslt_count" columnid="mid"/>
  880. <BindItem id="item19" compid="swt_nutrsrchrslt.case1.opt_srchrslt4" propid="value" datasetid="ds_main_srchrslt_count" columnid="high"/>
  881. <BindItem id="item21" compid="swt_nutrsrchrslt.case1.opt_srchrsltsum1" propid="value" datasetid="ds_main_srchrslt_count" columnid="total"/>
  882. <BindItem id="item22" compid="swt_nutrsrchrslt.case3.grp.ipt_fromdd3" propid="value" datasetid="ds_send_statssearchitem" columnid="fromdd"/>
  883. <BindItem id="item23" compid="swt_nutrsrchrslt.case3.grp.ipt_todd3" propid="value" datasetid="ds_send_statssearchitem" columnid="todd"/>
  884. <BindItem id="item24" compid="swt_nutrsrchrslt.case3.grp.rdo_patflag3" propid="value" datasetid="ds_send_statssearchitem" columnid="patflag"/>
  885. <BindItem id="item25" compid="swt_nutrsrchrslt.case3.grp.cmb_dngrflag3" propid="value" datasetid="ds_send_statssearchitem" columnid="dngrflag"/>
  886. <BindItem id="item26" compid="swt_nutrsrchrslt.case3.grp.cmb_orddept3" propid="value" datasetid="ds_send_statssearchitem" columnid="orddept"/>
  887. <BindItem id="item27" compid="swt_nutrsrchrslt.case3.grp.cmb_ward3" propid="value" datasetid="ds_send_statssearchitem" columnid="ward"/>
  888. <BindItem id="item0" compid="swt_nutrsrchrslt.case1.opt_srchrslt00" propid="value" datasetid="ds_main_srchrslt_count" columnid="adultgood"/>
  889. <BindItem id="item28" compid="swt_nutrsrchrslt.case1.opt_srchrslt06" propid="value" datasetid="ds_main_srchrslt_count" columnid="childgood"/>
  890. <BindItem id="item29" compid="swt_nutrsrchrslt.case1.opt_srchrslt07" propid="value" datasetid="ds_main_srchrslt_count" columnid="adultlow"/>
  891. <BindItem id="item30" compid="swt_nutrsrchrslt.case1.opt_srchrslt08" propid="value" datasetid="ds_main_srchrslt_count" columnid="childlow"/>
  892. <BindItem id="item31" compid="swt_nutrsrchrslt.case1.opt_srchrslt09" propid="value" datasetid="ds_main_srchrslt_count" columnid="adultmid"/>
  893. <BindItem id="item32" compid="swt_nutrsrchrslt.case1.opt_srchrslt10" propid="value" datasetid="ds_main_srchrslt_count" columnid="childmid"/>
  894. <BindItem id="item33" compid="swt_nutrsrchrslt.case1.opt_srchrslt11" propid="value" datasetid="ds_main_srchrslt_count" columnid="adulthigh"/>
  895. <BindItem id="item34" compid="swt_nutrsrchrslt.case1.opt_srchrslt12" propid="value" datasetid="ds_main_srchrslt_count" columnid="childhigh"/>
  896. <BindItem id="item35" compid="swt_nutrsrchrslt.case1.opt_srchrsltsum00" propid="value" datasetid="ds_main_srchrslt_count" columnid="adulttotal"/>
  897. <BindItem id="item36" compid="swt_nutrsrchrslt.case1.opt_srchrsltsum02" propid="value" datasetid="ds_main_srchrslt_count" columnid="childtotal"/>
  898. <BindItem id="item4" compid="swt_nutrsrchrslt.case2.opt_srchrslt1" propid="value" datasetid="ds_main_pastsrchrslt_count" columnid="goodcnt"/>
  899. <BindItem id="item6" compid="swt_nutrsrchrslt.case2.opt_srchrslt00" propid="value" datasetid="ds_main_pastsrchrslt_count" columnid="adultgoodcnt"/>
  900. <BindItem id="item7" compid="swt_nutrsrchrslt.case2.opt_srchrslt06" propid="value" datasetid="ds_main_pastsrchrslt_count" columnid="childgoodcnt"/>
  901. <BindItem id="item8" compid="swt_nutrsrchrslt.case2.opt_srchrslt2" propid="value" datasetid="ds_main_pastsrchrslt_count" columnid="lowcnt"/>
  902. <BindItem id="item9" compid="swt_nutrsrchrslt.case2.opt_srchrslt07" propid="value" datasetid="ds_main_pastsrchrslt_count" columnid="adultlowcnt"/>
  903. <BindItem id="item10" compid="swt_nutrsrchrslt.case2.opt_srchrslt08" propid="value" datasetid="ds_main_pastsrchrslt_count" columnid="childlowcnt"/>
  904. <BindItem id="item39" compid="swt_nutrsrchrslt.case2.opt_srchrslt3" propid="value" datasetid="ds_main_pastsrchrslt_count" columnid="midcnt"/>
  905. <BindItem id="item40" compid="swt_nutrsrchrslt.case2.opt_srchrslt09" propid="value" datasetid="ds_main_pastsrchrslt_count" columnid="adultmidcnt"/>
  906. <BindItem id="item41" compid="swt_nutrsrchrslt.case2.opt_srchrslt10" propid="value" datasetid="ds_main_pastsrchrslt_count" columnid="childmidcnt"/>
  907. <BindItem id="item42" compid="swt_nutrsrchrslt.case2.opt_srchrslt4" propid="value" datasetid="ds_main_pastsrchrslt_count" columnid="highcnt"/>
  908. <BindItem id="item43" compid="swt_nutrsrchrslt.case2.opt_srchrslt11" propid="value" datasetid="ds_main_pastsrchrslt_count" columnid="adulthighcnt"/>
  909. <BindItem id="item44" compid="swt_nutrsrchrslt.case2.opt_srchrslt12" propid="value" datasetid="ds_main_pastsrchrslt_count" columnid="childhighcnt"/>
  910. <BindItem id="item48" compid="swt_nutrsrchrslt.case2.opt_srchrsltsum1" propid="value" datasetid="ds_main_pastsrchrslt_count" columnid="totalcnt"/>
  911. <BindItem id="item49" compid="swt_nutrsrchrslt.case2.opt_srchrsltsum00" propid="value" datasetid="ds_main_pastsrchrslt_count" columnid="adulttotalcnt"/>
  912. <BindItem id="item50" compid="swt_nutrsrchrslt.case2.opt_srchrsltsum02" propid="value" datasetid="ds_main_pastsrchrslt_count" columnid="childtotalcnt"/>
  913. </Bind>
  914. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  915. * System Name :
  916. * Job Name :
  917. * Creator :
  918. * Make Date : 2015-11-13
  919. * Description :
  920. *---------------------------------------------------------------------------------------
  921. * Modify Date Modifier Modify Description
  922. *---------------------------------------------------------------------------------------
  923. * 2015-11-13 Live Converter TF->XP
  924. *
  925. *---------------------------------------------------------------------------------------
  926. ****************************************************************************************/
  927. //=======================================================================================
  928. // Lib Include
  929. //---------------------------------------------------------------------------------------
  930. include 'com_commonxp::comm_main.xjs';
  931. include 'com_departmentcodexp::ZSD001.xjs';
  932. var arErrorCode = new HashArray();
  933. //=======================================================================================
  934. // Local methods
  935. //---------------------------------------------------------------------------------------
  936. /****************************************************************************************
  937. * Argument :
  938. * Description : finit
  939. ****************************************************************************************/
  940. function finit(){
  941. // 화면open시 공통코드 setting
  942. appf_getCodeList([
  943. { dsNm: 'ds_init_dngrflag', cdGrpId: 'A0058' }
  944. ]);
  945. ds_init_dngrflag.insertRow(0);
  946. ds_init_dngrflag.setColumn(0, "cdid", "");
  947. ds_init_dngrflag.setColumn(0, "cdnm", "");
  948. appf_getDeptCodeList(sysf_getUserInfo('dutplceinstcd'),
  949. 'orduseyn', 'D', 'depthngnm', '', '', '', '', 'ds_init_orddept', false, '');
  950. ds_init_orddept.insertRow(0);
  951. ds_init_orddept.setColumn(0, "deptcd", "");
  952. ds_init_orddept.setColumn(0, "depthngnm", "");
  953. //dsf_addDsItem(ds_init_orddept, 'deptcd', 'depthngnm', ' ', ' ', 'above');
  954. var today = utlf_getCurrentDate();
  955. // zsdfGetWardDeptList(sysf_getUserInfo('dutplceinstcd'), 'ds_init_ward', 'depthngnm', 'asc',
  956. // today.toDate().getDateFormat('YYYYMMDD'), 'after');
  957. appf_getDeptCodeList(sysf_getUserInfo('dutplceinstcd'), 'orduseyn', 'W', 'depthngnm', 'asc',
  958. today.toDate().getDateFormat('YYYYMMDD'), '', 'asc', 'ds_init_ward', false, null);
  959. frmf_addComboItem('swt_nutrsrchrslt.case2.grp.cmb_ward2', ' ', ' ', 'above');
  960. ds_send_searchitem.setColumn(0, 'basedd', today);
  961. ds_send_searchitem.setColumn(0, 'patflag', 'F');
  962. ds_send_pastsearchitem.setColumn(0, 'fromdd', today);
  963. ds_send_pastsearchitem.setColumn(0, 'todd', today);
  964. ds_send_pastsearchitem.setColumn(0, 'patflag', 'F');
  965. ds_send_pastsearchitem.setColumn(0, 'dngrflag', '4 3');
  966. swt_nutrsrchrslt.case2.grp.checkbox1.setInitComp(
  967. "col=4,row=1,cellspacing=4,vcellspacing=0,itemWidth=-1,itemHeight=20,overflow='visible'",
  968. ds_init_ckbox_dngrflag,
  969. 'value',
  970. 'label',
  971. 'fn_checkbox1');
  972. var data = String(ds_send_pastsearchitem.getColumn(0, 'dngrflag')).split(' ');
  973. swt_nutrsrchrslt.case2.grp.checkbox1.setData(data, null, false);
  974. ds_send_statssearchitem.setColumn(0, 'fromdd', today);
  975. ds_send_statssearchitem.setColumn(0, 'todd', today);
  976. ds_send_statssearchitem.setColumn(0, 'patflag', 'H');
  977. // 2011.05.02 타파트조회함으로 인해 주석처리
  978. if(sysf_getUserInfo('dutplcecd') != '3250100000'){
  979. chk_ward.visible = false;
  980. btn_save.enable = false;
  981. dsf_createDsRow('ds_req', [
  982. { col: 'temp', type: 'string', size: 256, val: '' }
  983. ], false);
  984. ds_init_nutrjudgbase.clearData();
  985. ds_init_nutrjudgbase.addRow();
  986. var oParam = {};
  987. oParam.id = "TRANC00102";
  988. oParam.service = "dietbaseapp.ClinicNutr";
  989. oParam.method = "reqGetNutrJudgBase";
  990. oParam.inds = "req=ds_req";
  991. oParam.outds = "ds_init_nutrjudgbase=ret";
  992. oParam.async = false;
  993. //oParam.callback = "cf_TRANC00102";
  994. tranf_submit(oParam);
  995. }
  996. else{
  997. chk_ward.visible = false;
  998. swt_nutrsrchrslt.enableevent = false;
  999. swt_nutrsrchrslt.tabindex = 1;
  1000. swt_nutrsrchrslt.enableevent = true;
  1001. dsf_createDsRow('ds_req', [
  1002. { col: 'temp', type: 'string', size: 256, val: '' }
  1003. ], false);
  1004. ds_init_nutrjudgbase.clearData();
  1005. ds_init_nutrjudgbase.addRow();
  1006. var oParam = {};
  1007. oParam.id = "TRANC00102";
  1008. oParam.service = "dietbaseapp.ClinicNutr";
  1009. oParam.method = "reqGetNutrJudgBase";
  1010. oParam.inds = "req=ds_req";
  1011. oParam.outds = "ds_init_nutrjudgbase=ret";
  1012. oParam.async = false;
  1013. //oParam.callback = "cf_TRANC00102";
  1014. tranf_submit(oParam);
  1015. swt_nutrsrchrslt.case1.grp.btn_search1.enable = frmf_checkAuth('R');
  1016. swt_nutrsrchrslt.case2.grp.btn_search2.enable = frmf_checkAuth('R');
  1017. swt_nutrsrchrslt.case3.grp.btn_search3.enable = frmf_checkAuth('R');
  1018. btn_save.enable = frmf_checkAuth('X');
  1019. swt_nutrsrchrslt.case1.btn_excel1.enable = frmf_checkAuth('P');
  1020. swt_nutrsrchrslt.case2.btn_excel2.enable = frmf_checkAuth('P');
  1021. swt_nutrsrchrslt.case3.btn_excel3.enable = frmf_checkAuth('P');
  1022. }
  1023. }
  1024. function fn_checkbox1(){
  1025. ds_send_pastsearchitem.setColumn(0, 'dngrflag',
  1026. String(swt_nutrsrchrslt.case2.grp.checkbox1.getData())
  1027. .replace(',', ' '));
  1028. }
  1029. function getMask(colnm, value){
  1030. // if(colnm == 'pibw'){
  1031. // var len = value.length;
  1032. //
  1033. // if(len > 0){
  1034. // if(value.substr(len - 2, len - 1) == '.0'){
  1035. // return '###';
  1036. // }
  1037. // else{
  1038. // return '###.9';
  1039. // }
  1040. // }
  1041. // }
  1042. // else if(colnm == 'tlc'){
  1043. // var len = value.length;
  1044. //
  1045. // if(len > 0){
  1046. // if(value.substr(len - 2, len - 1) == '.0'){
  1047. // return '###';
  1048. // }
  1049. // else{
  1050. //
  1051. // }
  1052. // }
  1053. // }
  1054. var len = value.toString().getRound(-2, 'HALF_UP');
  1055. if(len < 0){
  1056. return '';
  1057. }
  1058. var result = (value.substr(len - 2, len - 1) == '.0') ? '###' : '###.9';
  1059. return result;
  1060. }
  1061. //=======================================================================================
  1062. // callback
  1063. //---------------------------------------------------------------------------------------
  1064. function callback(sSvcId, nErrorCode, sErrorMsg){
  1065. arErrorCode.push(sSvcId, nErrorCode);
  1066. }
  1067. //=======================================================================================
  1068. // Events
  1069. //---------------------------------------------------------------------------------------
  1070. /****************************************************************************************
  1071. * Argument :
  1072. * Description : onload
  1073. ****************************************************************************************/
  1074. function SMANC00100_onload(obj:Form, e:LoadEventInfo){
  1075. // 폼 초기화
  1076. frmf_initForm(obj);
  1077. grdf_setGridSort(swt_nutrsrchrslt.case1.grd_nutrsrch);
  1078. grdf_setGridSort(swt_nutrsrchrslt.case2.grd_pastnutrsrch);
  1079. ds_send_statssearchitem.setColumn(0, "dngrflag", "");
  1080. ds_send_statssearchitem.setColumn(0, "orddept", "");
  1081. finit();
  1082. //ds_init_ward
  1083. var sProp = "col=1,row="+ ds_init_ward.rowcount +",cellspacing=0,vcellspacing=0,itemWidth=160,itemHeight=0,overflow='visible'";
  1084. chk_ward.setInitComp(sProp, ds_init_ward,"depthngnm","depthngnm", "fn_ward");
  1085. //chk_ward.font = 'arial,9';
  1086. chk_ward.components["chk_0"].visible = false;
  1087. swt_nutrsrchrslt.enableevent = false;
  1088. swt_nutrsrchrslt.tabindex = 1;
  1089. swt_nutrsrchrslt.enableevent = true;
  1090. }
  1091. function fn_ward()
  1092. {
  1093. var getData = String(chk_ward.getData()).replace(","," ");
  1094. ds_send_searchitem.setColumn(0, "optward", getData);
  1095. }
  1096. /****************************************************************************************
  1097. * Argument :
  1098. * Description : 탭 선택 시 변경 전 이벤트
  1099. ****************************************************************************************/
  1100. function swt_nutrsrchrslt_canchange(obj:Tab, e:TabIndexChangeEventInfo)
  1101. {
  1102. if(sysf_getUserInfo('dutplcecd') != '3250100000'){
  1103. if(e.postindex == 1 || e.postindex == 2){
  1104. return false;
  1105. }
  1106. }
  1107. }
  1108. /****************************************************************************************
  1109. * Argument :
  1110. * Description : case1 의 < 버튼 클릭 이벤트
  1111. ****************************************************************************************/
  1112. function swt_nutrsrchrslt_case1_grp_btn_beforedd_onclick(obj:Button, e:ClickEventInfo){
  1113. var dd = ds_send_searchitem.getColumn(0, 'basedd');
  1114. dd = dd.toDate().getAddDate(-1, 'D');
  1115. dd = dd.getDateFormat();
  1116. ds_send_searchitem.setColumn(0, 'basedd', dd);
  1117. }
  1118. /****************************************************************************************
  1119. * Argument :
  1120. * Description : case1 의 > 버튼 클릭 이벤트
  1121. ****************************************************************************************/
  1122. function swt_nutrsrchrslt_case1_grp_btn_nextdd_onclick(obj:Button, e:ClickEventInfo){
  1123. var dd = ds_send_searchitem.getColumn(0, 'basedd');
  1124. dd = dd.toDate().getAddDate(1, 'D');
  1125. dd = dd.getDateFormat();
  1126. ds_send_searchitem.setColumn(0, 'basedd', dd);
  1127. }
  1128. /****************************************************************************************
  1129. * Argument :
  1130. * Description : case1 의 구분 콤보 아이템 변경 이벤트
  1131. ****************************************************************************************/
  1132. function swt_nutrsrchrslt_case1_grp_rdo_patflag1_onitemchanged(obj:Radio, e:ItemChangeEventInfo){
  1133. ds_send_searchitem.setColumn(0, 'dngrflag', '');
  1134. }
  1135. /****************************************************************************************
  1136. * Argument :
  1137. * Description : case1 의 병동 에디트 클릭 이벤트
  1138. ****************************************************************************************/
  1139. function swt_nutrsrchrslt_case1_grp_opt_ward_oneditclick(obj:Edit, e:EditClickEventInfo){
  1140. if(!chk_ward.visible){
  1141. chk_ward.visible = true;
  1142. }
  1143. else if(chk_ward.visible){
  1144. chk_ward.visible = false;
  1145. }
  1146. }
  1147. /****************************************************************************************
  1148. * Argument :
  1149. * Description : case2 의 조회 버튼 클릭 이벤트
  1150. ****************************************************************************************/
  1151. function swt_nutrsrchrslt_case2_grp_btn_search2_onclick(obj:Button, e:ClickEventInfo){
  1152. var fromdd = ds_send_pastsearchitem.getColumn(0, 'fromdd');
  1153. var todd = ds_send_pastsearchitem.getColumn(0, 'todd');
  1154. if(utlf_getDateInterval(fromdd, todd) < 0){
  1155. sysf_messageBox('검색 시작일은 종료일보다 클 수', 'I004');
  1156. return;
  1157. }
  1158. else{
  1159. ds_main_pastsrchrslt.clearData();
  1160. ds_main_pastsrchrslt.addRow();
  1161. ds_main_pastsrchrslt_count.clearData();
  1162. ds_main_pastsrchrslt_count.addRow();
  1163. var oParam = {};
  1164. oParam.id = "TRANC00106";
  1165. oParam.service = "nutritionconsultapp.PatientNutr";
  1166. oParam.method = "reqGetPastNutrSrchRslt";
  1167. oParam.inds = "req=ds_send_pastsearchitem";
  1168. oParam.outds = "ds_main_pastsrchrslt=ret ds_main_pastsrchrslt_count=count";
  1169. oParam.async = false;
  1170. //oParam.callback = "cf_TRANC00106";
  1171. tranf_submit(oParam);
  1172. }
  1173. }
  1174. /****************************************************************************************
  1175. * Argument :
  1176. * Description : case2 의 엑셀 버튼 클릭 이벤트
  1177. ****************************************************************************************/
  1178. function swt_nutrsrchrslt_case2_btn_excel2_onclick(obj:Button, e:ClickEventInfo){
  1179. grdf_exportExcel(swt_nutrsrchrslt.case2.grd_pastnutrsrch, 'PastNutrSrchRslt_list',
  1180. 'grd_pastnutrsrch1', true, '', 'open', false);
  1181. }
  1182. /****************************************************************************************
  1183. * Argument :
  1184. * Description : case2 의 그리드 셀 더블 클릭 이벤트
  1185. ****************************************************************************************/
  1186. function swt_nutrsrchrslt_case2_grd_pastnutrsrch_oncelldblclick(obj:Grid, e:GridClickEventInfo){
  1187. // 'R'은 영양검색결과조회 화면임을 뜻하는 구분자임.
  1188. dsf_createDsRow('ds_send_popup', [
  1189. { col: 'flag', type: 'string', size: 256, val: 'R' },
  1190. { col: 'flag2', type: 'string', size: 256, val: ds_main_pastsrchrslt.getColumn(e.row, 'patflag') },
  1191. { col: 'pid', type: 'string', size: 256, val: ds_main_pastsrchrslt.getColumn(e.row, 'pid') },
  1192. { col: 'hngnm', type: 'string', size: 256, val: ds_main_pastsrchrslt.getColumn(e.row, 'hngnm') },
  1193. { col: 'orddrid', type: 'string', size: 256, val: ds_main_pastsrchrslt.getColumn(e.row, 'orddrid') },
  1194. { col: 'reqpsn', type: 'string', size: 256, val: ds_main_pastsrchrslt.getColumn(e.row, 'atdoct') },
  1195. { col: 'h_cretno', type: 'string', size: 256, val: ds_main_pastsrchrslt.getColumn(e.row, 'cretno') },
  1196. { col: 'h_orddeptcd', type: 'string', size: 256, val: ds_main_pastsrchrslt.getColumn(e.row, 'orddept') },
  1197. { col: 'h_prcpgenrflag', type: 'string', size: 256, val: ds_main_pastsrchrslt.getColumn(e.row, 'prcpgenrflag') },
  1198. { col: 'h_orddd', type: 'string', size: 256, val: ds_main_pastsrchrslt.getColumn(e.row, 'orddd') },
  1199. { col: 'srchdd', type: 'string', size: 256, val: ds_main_pastsrchrslt.getColumn(e.row, 'srchdd') },
  1200. { col: 'apptchngyn', type: 'string', size: 256, val: ds_main_pastsrchrslt.getColumn(e.row, 'apptchngyn') },
  1201. { col: 'bdwtchngyn', type: 'string', size: 256, val: ds_main_pastsrchrslt.getColumn(e.row, 'bdwtchngyn') },
  1202. { col: 'symp', type: 'string', size: 256, val: ds_main_pastsrchrslt.getColumn(e.row, 'symp') }
  1203. ], false);
  1204. // 환자 상단정보 START
  1205. var prcpgenrflag = ds_main_pastsrchrslt.getColumn(e.row, 'prcpgenrflag');
  1206. var pid = ds_main_pastsrchrslt.getColumn(e.row, 'pid');
  1207. var orddd = ds_main_pastsrchrslt.getColumn(e.row, 'orddd');
  1208. var cretno = ds_main_pastsrchrslt.getColumn(e.row, 'cretno');
  1209. var instcd = sysf_getUserInfo("dutplceinstcd");
  1210. var srchdd = ds_main_pastsrchrslt.getColumn(e.row, 'prcpdd');
  1211. //if(prcpgenrflag != 'E'){
  1212. // prcpgenrflag = 'I';
  1213. //}
  1214. var param = prcpgenrflag + '▦' + pid + '▦' + orddd + '▦' + cretno + '▦' + instcd + "▦" + srchdd;
  1215. appf_initPatientInfo(param);
  1216. //frmf_setParameter('condparam', param);
  1217. //frmf_modal("SPMMO08900", "SPMMO08900", "", "", "", "", "", "", "", "", "", "", "M");
  1218. // 환자 상단정보 END
  1219. var objArg = new Object();
  1220. objArg.arg_ds_main_receivedata = ds_send_popup;
  1221. //frmf_modal("SMANC00300", "SMANC00300", objArg, null, 1, 150, 150, null, null, null, null, null, "M");
  1222. frmf_modal("SMANC00300", "SMANC00300", objArg, "", 1, 150, 150, "", "", "", "", "", "M");
  1223. }
  1224. /****************************************************************************************
  1225. * Argument :
  1226. * Description : case1 의 btn_search1 버튼 클릭 이벤트
  1227. ****************************************************************************************/
  1228. function swt_nutrsrchrslt_case1_grp_btn_search1_onclick(obj:Button, e:ClickEventInfo){
  1229. if(chk_ward.visible){
  1230. chk_ward.visible = false;
  1231. }
  1232. // 영양검색 탭화면 전체선택 체크박스 초기화
  1233. ds_main_srchrslt.clearData();
  1234. ds_main_srchrslt.addRow();
  1235. ds_main_srchrslt_count.clearData();
  1236. ds_main_srchrslt_count.addRow();
  1237. var oParam = {};
  1238. oParam.id = "TRANC00101";
  1239. oParam.service = "nutritionconsultapp.PatientNutr";
  1240. oParam.method = "reqGetNutrSrchRslt";
  1241. oParam.inds = "req=ds_send_searchitem";
  1242. oParam.outds = "ds_main_srchrslt=ret ds_main_srchrslt_count=count";
  1243. oParam.async = false;
  1244. //oParam.callback = "cf_TRANC00101";
  1245. tranf_submit(oParam);
  1246. if( utlf_isNull(ds_main_srchrslt.getColumnInfo("check")) ){
  1247. ds_main_srchrslt.addColumn("check", "string");
  1248. }
  1249. dsf_setDefaultVal(ds_main_srchrslt, "check:N");
  1250. ds_main_srchrslt_count.enableevent = false;
  1251. ds_main_srchrslt_count.updatecontrol = false;
  1252. for( var i=0 ; i<ds_main_srchrslt_count.getColCount() ; i++ ){
  1253. ds_main_srchrslt_count.updateColID(ds_main_srchrslt_count.getColID(i), ds_main_srchrslt_count.getColID(i).replace("cnt", ""));
  1254. }
  1255. ds_main_srchrslt_count.updatecontrol = true;
  1256. ds_main_srchrslt_count.enableevent = true;
  1257. // 신환(F) or 재검색(I) 구분값 setting 및 PIBW, TLC 반올림
  1258. var patflag = ds_send_searchitem.getColumn(0, 'patflag');
  1259. var pibw = '';
  1260. var tlc = '';
  1261. ds_main_srchrslt.addColumn("h_patflag", "string");
  1262. for(var i = 0; i < swt_nutrsrchrslt.case1.grd_nutrsrch.rowcount; i++){
  1263. ds_main_srchrslt.setColumn(i, 'h_patflag', patflag);
  1264. pibw = ds_main_srchrslt.getColumn(i, 'pibw');
  1265. tlc = ds_main_srchrslt.getColumn(i, 'tlc');
  1266. if(utlf_transNullToEmpty(pibw) != ''){
  1267. pibw = String(pibw).getRound(-2, 'HALF_UP');
  1268. ds_main_srchrslt.setColumn(i, 'pibw', pibw);
  1269. var ilen = pibw.length;
  1270. if(ilen > 0){
  1271. if(pibw.substr(ilen - 2, ilen - 1) == '.0'){
  1272. //swt_nutrsrchrslt.case1.grd_nutrsrch.setCellProperty();
  1273. }
  1274. else{
  1275. //swt_nutrsrchrslt.case1.grd_nutrsrch.setCellProperty();
  1276. }
  1277. }
  1278. }
  1279. if (!utlf_isNull(tlc)) {
  1280. tlc = tlc.toString().getRound(-2, "HALF_UP");
  1281. ds_main_srchrslt.setColumn(i, "tlc", tlc);
  1282. var klen = tlc.length;
  1283. if (klen > 0){
  1284. if (tlc.substr(klen - 2, klen - 1) == ".0"){
  1285. //grd_nutrsrch.cellFormat(irow, grd_nutrsrch.colRef("tlc")) = "####";
  1286. }else{
  1287. //grd_nutrsrch.cellFormat(irow, grd_nutrsrch.colRef("tlc")) = "####.9";
  1288. }
  1289. }
  1290. }
  1291. }
  1292. grdf_setGridSort(swt_nutrsrchrslt.case1.grd_nutrsrch);
  1293. }
  1294. /****************************************************************************************
  1295. * Argument :
  1296. * Description : case1 의 영양판정기준 버튼 클릭 이벤트
  1297. ****************************************************************************************/
  1298. function swt_nutrsrchrslt_case1_btn_nutrjudgbase_onclick(obj:Button, e:ClickEventInfo){
  1299. frmf_modal("SMANB00600", "SMANB00600", "", "", "", "", "", "", "", "", "", "", "M");
  1300. }
  1301. /****************************************************************************************
  1302. * Argument :
  1303. * Description : case1 의 엑셀 버튼 클릭 이벤트
  1304. ****************************************************************************************/
  1305. function swt_nutrsrchrslt_case1_btn_excel1_onclick(obj:Button, e:ClickEventInfo){
  1306. grdf_exportExcel(swt_nutrsrchrslt.case2.grd_pastnutrsrch, 'NutrSrchRslt_list', 'grd_nutrsrch', true, '', 'open', false);
  1307. }
  1308. /****************************************************************************************
  1309. * Argument :
  1310. * Description : 초기화 버튼 클릭 이벤트
  1311. ****************************************************************************************/
  1312. function btn_reset_onclick(obj:Button, e:ClickEventInfo){
  1313. finit();
  1314. }
  1315. /****************************************************************************************
  1316. * Argument :
  1317. * Description : 저장 버튼 클릭 이벤트
  1318. ****************************************************************************************/
  1319. function btn_save_onclick(obj:Button, e:ClickEventInfo){
  1320. // 영양검색 탭화면 일때
  1321. if(swt_nutrsrchrslt.tabindex == 0){
  1322. // 저장할 데이터를 한건이라도 check했는지 체크
  1323. ds_main_srchrslt.enableevent = false;
  1324. ds_main_srchrslt.filter('check == "Y"');
  1325. ds_temp.copyData(ds_main_srchrslt, true);
  1326. ds_main_srchrslt.filter(""); // 필터 초기화
  1327. //ds_main_srchrslt.filter('check == "N"');
  1328. ds_main_srchrslt.enableevent = true;
  1329. if(ds_temp.rowcount < 1){
  1330. sysf_messageBox('저장할 데이터를', 'C002');
  1331. return;
  1332. }
  1333. if(sysf_messageBox('체크한 데이터를', 'Q002') != 6){
  1334. return;
  1335. }
  1336. ds_temp.updateColID('check', 'm');
  1337. ds_temp.updateColID('h_orddd', 'indd');
  1338. ds_temp.updateColID('h_patflag', 'fnexamflag');
  1339. ds_temp.updateColID('h_diagcd', 'diagcd');
  1340. ds_temp.updateColID('ward', 'wardcd');
  1341. ds_temp.updateColID('room', 'roomcd');
  1342. var oParam = {};
  1343. oParam.id = "TXANC00101";
  1344. oParam.service = "nutritionconsultapp.PatientNutr";
  1345. oParam.method = "reqExeNutrSrchRslt";
  1346. oParam.inds = "req=ds_temp";
  1347. oParam.outds = "";
  1348. oParam.async = false;
  1349. oParam.callback = "callback";
  1350. tranf_submit(oParam);
  1351. if(arErrorCode.pop("TXANC00101") > -1){
  1352. swt_nutrsrchrslt.case1.grp.btn_search1.click();
  1353. }
  1354. }
  1355. else if(swt_nutrsrchrslt.tabindex == 1){
  1356. var updated = grdf_getGridUpdateData(swt_nutrsrchrslt.case2.grd_pastnutrsrch, 'all');
  1357. if(utlf_isNull(update)){
  1358. sysf_messageBox('입력 또는 수정한 데이터가', 'I004');
  1359. return;
  1360. }
  1361. if(sysf_messageBox('', 'Q002') == 6){
  1362. ds_temp.copyData(updated, true);
  1363. ds_temp.updateColID('patflag', 'fnexamflag');
  1364. var oParam = {};
  1365. oParam.id = "TXANC00102";
  1366. oParam.service = "nutritionconsultapp.PatientNutr";
  1367. oParam.method = "reqExePastNutrSrchRslt";
  1368. oParam.inds = "req=ds_temp";
  1369. oParam.outds = "";
  1370. oParam.async = false;
  1371. oParam.callback = "callback";
  1372. tranf_submit(oParam);
  1373. if(arErrorCode.pop("TXANC00102") > -1){
  1374. swt_nutrsrchrslt.case2.grp.btn_search2.click();
  1375. }
  1376. }
  1377. }
  1378. }
  1379. /****************************************************************************************
  1380. * Argument :
  1381. * Description : case3 조회 버튼 클릭 이벤트
  1382. ****************************************************************************************/
  1383. function swt_nutrsrchrslt_case3_grp_btn_search3_onclick(obj:Button, e:ClickEventInfo){
  1384. var fromdd = ds_send_statssearchitem.getColumn(0, 'fromdd');
  1385. var todd = ds_send_statssearchitem.getColumn(0, 'todd');
  1386. if(utlf_getDateInterval(fromdd, todd) < 0){
  1387. sysf_messageBox('검색 시작일은 종료일보다 클 수', 'I004');
  1388. return
  1389. }
  1390. ds_main_srchstats.clearData();
  1391. ds_main_srchstats.addRow();
  1392. var oParam = {};
  1393. oParam.id = "TRANC00107";
  1394. oParam.service = "nutritionconsultapp.PatientNutr";
  1395. oParam.method = "reqGetNutrSrchRsltStats";
  1396. oParam.inds = "req=ds_send_statssearchitem";
  1397. oParam.outds = "ds_main_srchstats=ret";
  1398. oParam.async = false;
  1399. oParam.callback = "callback";
  1400. tranf_submit(oParam);
  1401. if(arErrorCode.pop("TRANC00107") > -1){
  1402. // 조회후 그리드 하단에 합계 구하기
  1403. // TODO
  1404. }
  1405. }
  1406. /****************************************************************************************
  1407. * Argument :
  1408. * Description : case3 엑셀 버튼 클릭 이벤트
  1409. ****************************************************************************************/
  1410. function swt_nutrsrchrslt_case3_btn_excel3_onclick(obj:Button, e:ClickEventInfo){
  1411. grdf_exportExcel(swt_nutrsrchrslt.case3.grd_nutrsrchstats, 'NutrSrchRsltStats_list',
  1412. 'grd_nutrsrchstats', true, '', 'open', false);
  1413. }
  1414. /****************************************************************************************
  1415. * Argument :
  1416. * Description : case1 INS기준 버튼 클릭 이벤트
  1417. ****************************************************************************************/
  1418. function swt_nutrsrchrslt_case1_btn_insbase_onclick(obj:Button, e:ClickEventInfo){
  1419. frmf_modal("SPANC00300", "SPANC00300", "", "", "", "", "", "", "", "", "", "", "M");
  1420. }
  1421. /****************************************************************************************
  1422. * Argument :
  1423. * Description : 탭 페이지 변경 후 이벤트
  1424. ****************************************************************************************/
  1425. function swt_nutrsrchrslt_onchanged(obj:Tab, e:TabIndexChangeEventInfo){
  1426. appf_delPatientInfos(); // 상단정보 clear
  1427. if(e.postindex == 0){
  1428. btn_save.enable = true;
  1429. }
  1430. }
  1431. function swt_nutrsrchrslt_case2_caption21_onclick(obj:Static, e:ClickEventInfo)
  1432. {
  1433. }
  1434. function ds_main_srchrslt_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  1435. {
  1436. switch( e.columnid ){
  1437. case "check" :
  1438. if( e.newvalue == "Y" || e.newvalue == "1" ){
  1439. obj.setColumn(e.row, e.columnid, "Y");
  1440. }else{
  1441. obj.setColumn(e.row, e.columnid, "N");
  1442. }
  1443. break;
  1444. default :
  1445. break;
  1446. }
  1447. }
  1448. function swt_nutrsrchrslt_case1_grd_nutrsrch_onheadclick(obj:Grid, e:GridClickEventInfo)
  1449. {
  1450. if( e.col == 1 ){
  1451. if( obj.getCellProperty("Head", e.cell, "expr") == "0" ){
  1452. obj.setCellProperty("Head", e.cell, "expr", "1");
  1453. for( var i=0 ; i<ds_main_srchrslt.rowcount ; i++ ){
  1454. ds_main_srchrslt.setColumn(i, "check", "Y");
  1455. }
  1456. }else{
  1457. obj.setCellProperty("Head", e.cell, "expr", "0");
  1458. for( var i=0 ; i<ds_main_srchrslt.rowcount ; i++ ){
  1459. ds_main_srchrslt.setColumn(i, "check", "N");
  1460. }
  1461. }
  1462. }
  1463. }
  1464. function SMANC00100_onclose(obj:Form, e:CloseEventInfo)
  1465. {
  1466. appf_delPatientInfos(); // 상단정보 clear
  1467. }
  1468. ]]></Script>
  1469. </Form>
  1470. </FDL>