SMRSD07400_진료재료 취소 현황.xfdl 64 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRSD07400" position="absolute 0 0 1205 787" titletext="처방집계 반납물품 관리" oninit="SMRSD07400_oninit" onload="SMRSD07400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 25 1195 784" id="group5" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Tab position="absolute 0 86 1195 636" id="switch1" class="tab_Normal">
  11. <Tabpages>
  12. <Tabpage text="물품별 미반납 현황" id="cse_returngoodcase">
  13. <Layouts>
  14. <Layout>
  15. <Static text="물품별 처방집계 미반납 내역" position="absolute 1 14 576 32" id="caption5" class="tit_2"/>
  16. <Grid position="absolute 0 35 1190 523" align="align:center middle;" id="grd_returngoodlist" taborder="14" binddataset="ds_grd_returngoodlist" autofittype="col" oncelldblclick="group5_switch1_cse_returngoodcase_grd_returngoodlist_oncelldblclick" cellsizingtype="col" oncellclick="group5_switch1_cse_returngoodcase_grd_returngoodlist_oncellclick">
  17. <Formats>
  18. <Format id="default">
  19. <Columns>
  20. <Column size="0"/>
  21. <Column size="24"/>
  22. <Column size="56"/>
  23. <Column size="176"/>
  24. <Column size="0"/>
  25. <Column size="60"/>
  26. <Column size="79"/>
  27. <Column size="0"/>
  28. <Column size="85"/>
  29. <Column size="245"/>
  30. <Column size="241"/>
  31. <Column size="70"/>
  32. <Column size="70"/>
  33. <Column size="70"/>
  34. <Column size="0"/>
  35. <Column size="0"/>
  36. <Column size="0"/>
  37. <Column size="0"/>
  38. </Columns>
  39. <Rows>
  40. <Row size="24" band="head"/>
  41. <Row size="24"/>
  42. </Rows>
  43. <Band id="head">
  44. <Cell text="기관코드"/>
  45. <Cell col="1"/>
  46. <Cell col="2" text="부서구분"/>
  47. <Cell col="3" text="부서"/>
  48. <Cell col="4" text="부서코드"/>
  49. <Cell col="5" text="정규/응급"/>
  50. <Cell col="6" text="물품코드"/>
  51. <Cell col="7" text="물품코드"/>
  52. <Cell col="8" text="최종집계"/>
  53. <Cell col="9" text="물품명"/>
  54. <Cell col="10" text="규격"/>
  55. <Cell col="11" text="미반납수량"/>
  56. <Cell col="12" text="반납수량"/>
  57. <Cell col="13" text="남은수량"/>
  58. <Cell col="14" text="분할사용여부"/>
  59. <Cell col="15" text="응급여부"/>
  60. <Cell col="16"/>
  61. <Cell col="17"/>
  62. </Band>
  63. <Band id="body">
  64. <Cell text="bind:instcd"/>
  65. <Cell col="1" celltype="head"/>
  66. <Cell col="2" displaytype="combo" edittype="combo" style="align:center;" text="bind:deptflag" suppress="1" suppressalign="middle,over" enable="false"/>
  67. <Cell col="3" style="align:left middle;" text="bind:prcpdeptnm" suppress="1" suppressalign="middle,over"/>
  68. <Cell col="4" text="bind:prcpdeptcd"/>
  69. <Cell col="5" displaytype="combo" edittype="combo" style="align:center;" text="bind:erprcpflag" enable="false"/>
  70. <Cell col="6" style="align:center top;padding:5 2 0 2;cursor:hand;" text="bind:goodcd" wordwrap="char"/>
  71. <Cell col="7" text="bind:allsizespecid"/>
  72. <Cell col="8" displaytype="date" text="bind:lastacptdd" calendardisplaynulltype="none"/>
  73. <Cell col="9" style="align:left top;padding:5 2 0 2;" text="bind:goodnm" wordwrap="char"/>
  74. <Cell col="10" style="align:left top;padding:5 2 0 2;" text="bind:goodspec" wordwrap="char"/>
  75. <Cell col="11" displaytype="number" text="bind:rtnqty"/>
  76. <Cell col="12" displaytype="number" edittype="none" text="bind:new_rtnqty"/>
  77. <Cell col="13" displaytype="number" text="bind:aftqty"/>
  78. <Cell col="14" text="bind:divuseyn"/>
  79. <Cell col="15" text="bind:genracptdd"/>
  80. <Cell col="16" text="bind:genrsumcnt"/>
  81. <Cell col="17" text="bind:lastsumcnt"/>
  82. </Band>
  83. </Format>
  84. </Formats>
  85. </Grid>
  86. <Shape position="absolute 0 30 1190 36" linetype="horizontal" id="line2" class="line_10"/>
  87. <Button position="absolute 939 11 1041 30" id="btn_print1" class="btn2" taborder="17" text="미반납집계 출력" onclick="group5_switch1_cse_returngoodcase_btn_print1_onclick"/>
  88. <Button position="absolute 1136 11 1189 30" id="btn_excel" class="btn5" text="Excel" onclick="group5_switch1_cse_returngoodcase_btn_excel_onclick"/>
  89. <Grid position="absolute 410 400 1115 520" align="align:center middle;" id="grd_gooddetaillist" visible="false" binddataset="ds_grd_gooddetaillist">
  90. <Formats>
  91. <Format id="default">
  92. <Columns>
  93. <Column size="0"/>
  94. <Column size="0"/>
  95. <Column size="79"/>
  96. <Column size="29"/>
  97. <Column size="200"/>
  98. <Column size="150"/>
  99. <Column size="75"/>
  100. <Column size="60"/>
  101. <Column size="60"/>
  102. <Column size="60"/>
  103. </Columns>
  104. <Rows>
  105. <Row size="24" band="head"/>
  106. <Row size="24"/>
  107. </Rows>
  108. <Band id="head">
  109. <Cell text="기관코드"/>
  110. <Cell col="1" text="부서코드"/>
  111. <Cell col="2" text="물품코드"/>
  112. <Cell col="3" text="물품코드"/>
  113. <Cell col="4" text="물품명"/>
  114. <Cell col="5" text="규격"/>
  115. <Cell col="6" text="집계일자"/>
  116. <Cell col="7" text="집계횟수"/>
  117. <Cell col="8" text="수량"/>
  118. <Cell col="9" text="누적수량"/>
  119. </Band>
  120. <Band id="body">
  121. <Cell text="bind:instcd"/>
  122. <Cell col="1" text="bind:prcpdeptcd"/>
  123. <Cell col="2" text="bind:goodcd"/>
  124. <Cell col="3" text="bind:allsizespecid"/>
  125. <Cell col="4" text="bind:goodnm"/>
  126. <Cell col="5" text="bind:goodspec"/>
  127. <Cell col="6" text="bind:acptdd" mask="yyyy-mm-dd"/>
  128. <Cell col="7" text="bind:sumcnt"/>
  129. <Cell col="8" text="bind:rtnqty" mask="(-)#,###.#"/>
  130. <Cell col="9" text="bind:accrue_qty" mask="(-)#,###.#"/>
  131. </Band>
  132. </Format>
  133. </Formats>
  134. </Grid>
  135. <Button position="absolute 805 8 861 30" id="btn_save" class="btn4" enable="false" taborder="18" visible="false" text="저장"/>
  136. <Button position="absolute 1043 11 1134 30" id="button6" class="btn2" taborder="16" text="반납집계 출력" onclick="group5_switch1_cse_returngoodcase_button6_onclick"/>
  137. </Layout>
  138. </Layouts>
  139. </Tabpage>
  140. <Tabpage text="일자별 취소 현황" id="cse_returndetailcase">
  141. <Layouts>
  142. <Layout>
  143. <Static text="반납물품 집계 세부내역" position="absolute 5 10 575 25" id="cpt_dis" class="tit_2"/>
  144. <Grid position="absolute 0 35 1190 523" align="align:center middle;" id="grd_returndetaillist" binddataset="ds_main_list_returndaylist">
  145. <Formats>
  146. <Format id="default">
  147. <Columns>
  148. <Column size="0"/>
  149. <Column size="80"/>
  150. <Column size="160"/>
  151. <Column size="0"/>
  152. <Column size="60"/>
  153. <Column size="79"/>
  154. <Column size="29"/>
  155. <Column size="200"/>
  156. <Column size="150"/>
  157. <Column size="60"/>
  158. <Column size="60"/>
  159. <Column size="60"/>
  160. <Column size="60"/>
  161. <Column size="60"/>
  162. <Column size="0"/>
  163. <Column size="80"/>
  164. <Column size="0"/>
  165. <Column size="0"/>
  166. </Columns>
  167. <Rows>
  168. <Row size="24" band="head"/>
  169. <Row size="24"/>
  170. </Rows>
  171. <Band id="head">
  172. <Cell text="기관코드"/>
  173. <Cell col="1" text="집계일자"/>
  174. <Cell col="2" text="부서"/>
  175. <Cell col="3" text="부서코드"/>
  176. <Cell col="4" text="집계횟수"/>
  177. <Cell col="5" text="물품코드"/>
  178. <Cell col="6" text="물품코드"/>
  179. <Cell col="7" text="물품명"/>
  180. <Cell col="8" text="규격"/>
  181. <Cell col="9" text="처방수량"/>
  182. <Cell col="10" text="불출수량"/>
  183. <Cell col="11" text="취소수량"/>
  184. <Cell col="12" text="반납수량"/>
  185. <Cell col="13" text="남은수량"/>
  186. <Cell col="14" text="단위"/>
  187. <Cell col="15" text="반납등록자"/>
  188. <Cell col="16" text="분할사용여부"/>
  189. <Cell col="17" text="응급여부"/>
  190. </Band>
  191. <Band id="body">
  192. <Cell text="bind:instcd"/>
  193. <Cell col="1" text="bind:acptdd" mask="yyyy-mm-dd"/>
  194. <Cell col="2" text="bind:prcpdeptnm"/>
  195. <Cell col="3" text="bind:prcpdeptcd"/>
  196. <Cell col="4" text="bind:sumcnt"/>
  197. <Cell col="5" text="bind:goodcd"/>
  198. <Cell col="6" text="bind:allsizespecid"/>
  199. <Cell col="7" text="bind:goodnm"/>
  200. <Cell col="8" text="bind:goodspec"/>
  201. <Cell col="9" text="bind:prcpqty" mask="(-)#,###.#"/>
  202. <Cell col="10" text="bind:deliveqty" mask="(-)#,###.#"/>
  203. <Cell col="11" text="bind:dcqty" mask="(-)#,###.#"/>
  204. <Cell col="12" text="bind:rtnqty" mask="(-)#,###.#"/>
  205. <Cell col="13" text="bind:accrue_qty" mask="(-)#,###.#"/>
  206. <Cell col="14" text="bind:prcpunit"/>
  207. <Cell col="15" text="bind:rtnpsnnm"/>
  208. <Cell col="16" text="bind:divuseyn"/>
  209. <Cell col="17" text="bind:erprcpflag"/>
  210. </Band>
  211. </Format>
  212. </Formats>
  213. </Grid>
  214. <Shape position="absolute 0 26 1190 32" linetype="vertical" id="line1" class="line_1"/>
  215. <Button position="absolute 1125 5 1178 24" id="btn_excel2" class="btn5" text="Excel"/>
  216. <Button position="absolute 1020 5 1117 24" id="button5" class="btn2" taborder="15" text="취소집계 출력"/>
  217. </Layout>
  218. </Layouts>
  219. </Tabpage>
  220. <Tabpage text="분할처방 사용물품 현황" id="cse_divgoodcase">
  221. <Layouts>
  222. <Layout>
  223. <Static text="분할처방 사용물품 미불출 내역" position="absolute 1 15 206 30" id="caption3" class="tit_2"/>
  224. <Button position="absolute 1135 10 1188 29" id="button1" class="btn5" text="Excel" onclick="group5_switch1_cse_divgoodcase_button1_onclick"/>
  225. <Grid position="absolute 0 35 1190 523" align="align:center middle;" id="grd_divgoodlist" taborder="13" binddataset="ds_main_list_returngoodlist" autofittype="col" oncelldblclick="group5_switch1_cse_divgoodcase_grd_divgoodlist_oncelldblclick" cellsizebandtype="allband" cellsizingtype="col" oncellclick="group5_switch1_cse_divgoodcase_grd_divgoodlist_oncellclick">
  226. <Formats>
  227. <Format id="default">
  228. <Columns>
  229. <Column size="0"/>
  230. <Column size="24"/>
  231. <Column size="56"/>
  232. <Column size="160"/>
  233. <Column size="0"/>
  234. <Column size="79"/>
  235. <Column size="29"/>
  236. <Column size="0"/>
  237. <Column size="70"/>
  238. <Column size="364"/>
  239. <Column size="180"/>
  240. <Column size="70"/>
  241. <Column size="0"/>
  242. <Column size="0"/>
  243. <Column size="0"/>
  244. <Column size="0"/>
  245. </Columns>
  246. <Rows>
  247. <Row size="24" band="head"/>
  248. <Row size="24"/>
  249. </Rows>
  250. <Band id="head">
  251. <Cell text="기관코드"/>
  252. <Cell col="1"/>
  253. <Cell col="2" text="부서구분"/>
  254. <Cell col="3" text="부서"/>
  255. <Cell col="4" text="부서코드"/>
  256. <Cell col="5" colspan="2" text="물품코드" taborder="undefined"/>
  257. <Cell col="7" text="정규/응급"/>
  258. <Cell col="8" text="최종집계"/>
  259. <Cell col="9" text="물품명"/>
  260. <Cell col="10" text="규격"/>
  261. <Cell col="11" text="미불출수량"/>
  262. <Cell col="12" text="분할사용여부"/>
  263. <Cell col="13"/>
  264. <Cell col="14"/>
  265. <Cell col="15"/>
  266. </Band>
  267. <Band id="body">
  268. <Cell text="bind:instcd"/>
  269. <Cell col="1" celltype="head"/>
  270. <Cell col="2" displaytype="combo" edittype="combo" style="align:center;" text="bind:deptflag" suppress="1" suppressalign="middle,over" enable="false"/>
  271. <Cell col="3" style="align:left middle;" text="bind:prcpdeptnm" suppress="1" suppressalign="middle,over"/>
  272. <Cell col="4" text="bind:prcpdeptcd"/>
  273. <Cell col="5" style="align:center top;padding:5 2 0 2;cursor:hand;" text="bind:goodcd" wordwrap="char"/>
  274. <Cell col="6" text="bind:allsizespecid"/>
  275. <Cell col="7" text="bind:erprcpflag"/>
  276. <Cell col="8" displaytype="date" text="bind:lastacptdd" calendardisplaynulltype="none"/>
  277. <Cell col="9" style="align:left top;padding:5 2 0 2;" text="bind:goodnm" wordwrap="char"/>
  278. <Cell col="10" style="align:left top;padding:5 2 0 2;" text="bind:goodspec" wordwrap="char"/>
  279. <Cell col="11" displaytype="number" text="bind:rtnqty"/>
  280. <Cell col="12" text="bind:divuseyn"/>
  281. <Cell col="13" text="bind:genracptdd"/>
  282. <Cell col="14" text="bind:genrsumcnt"/>
  283. <Cell col="15" text="bind:lastsumcnt"/>
  284. </Band>
  285. </Format>
  286. </Formats>
  287. </Grid>
  288. <Shape position="absolute 0 30 1190 36" linetype="horizontal" id="line3" class="line_10"/>
  289. </Layout>
  290. </Layouts>
  291. </Tabpage>
  292. <Tabpage text="일자별 분할처방 사용물품 현황" id="cse_divgooddetailcase">
  293. <Layouts>
  294. <Layout>
  295. <Button position="absolute 1125 5 1178 24" id="button2" class="btn5" text="Excel"/>
  296. <Static text="분할 처방 사용물품 집계 세부내역" position="absolute 2 14 228 30" id="caption1" class="tit_2"/>
  297. <Grid position="absolute 0 35 1190 522" align="align:center middle;" id="grd_divgooddetaillist" binddataset="ds_main_list_returndaylist" cellsizebandtype="allband" cellsizingtype="col">
  298. <Formats>
  299. <Format id="default">
  300. <Columns>
  301. <Column size="0"/>
  302. <Column size="80"/>
  303. <Column size="160"/>
  304. <Column size="0"/>
  305. <Column size="60"/>
  306. <Column size="79"/>
  307. <Column size="29"/>
  308. <Column size="200"/>
  309. <Column size="150"/>
  310. <Column size="60"/>
  311. <Column size="60"/>
  312. <Column size="60"/>
  313. <Column size="75"/>
  314. <Column size="60"/>
  315. <Column size="0"/>
  316. <Column size="0"/>
  317. <Column size="0"/>
  318. </Columns>
  319. <Rows>
  320. <Row size="24" band="head"/>
  321. <Row size="24"/>
  322. </Rows>
  323. <Band id="head">
  324. <Cell text="기관코드"/>
  325. <Cell col="1" text="집계일자"/>
  326. <Cell col="2" text="부서"/>
  327. <Cell col="3" text="부서코드"/>
  328. <Cell col="4" text="집계횟수"/>
  329. <Cell col="5" text="물품코드"/>
  330. <Cell col="6" text="물품코드"/>
  331. <Cell col="7" text="물품명"/>
  332. <Cell col="8" text="규격"/>
  333. <Cell col="9" text="처방수량"/>
  334. <Cell col="10" text="불출수량"/>
  335. <Cell col="11" text="취소수량"/>
  336. <Cell col="12" text="미불출수량"/>
  337. <Cell col="13" text="남은수량"/>
  338. <Cell col="14" text="단위"/>
  339. <Cell col="15" text="반납등록자"/>
  340. <Cell col="16" text="분할사용여부"/>
  341. </Band>
  342. <Band id="body">
  343. <Cell text="bind:instcd"/>
  344. <Cell col="1" text="bind:acptdd" mask="yyyy-mm-dd"/>
  345. <Cell col="2" text="bind:prcpdeptnm"/>
  346. <Cell col="3" text="bind:prcpdeptcd"/>
  347. <Cell col="4" text="bind:sumcnt"/>
  348. <Cell col="5" text="bind:goodcd"/>
  349. <Cell col="6" text="bind:allsizespecid"/>
  350. <Cell col="7" text="bind:goodnm"/>
  351. <Cell col="8" text="bind:goodspec"/>
  352. <Cell col="9" text="bind:prcpqty" mask="(-)#,###.#"/>
  353. <Cell col="10" text="bind:deliveqty" mask="(-)#,###.#"/>
  354. <Cell col="11" text="bind:dcqty" mask="(-)#,###.#"/>
  355. <Cell col="12" text="bind:rtnqty" mask="(-)#,###.#"/>
  356. <Cell col="13" text="bind:accrue_qty" mask="(-)#,###.#"/>
  357. <Cell col="14" text="bind:prcpunit"/>
  358. <Cell col="15" text="bind:rtnpsnnm"/>
  359. <Cell col="16" text="bind:divuseyn"/>
  360. </Band>
  361. </Format>
  362. </Formats>
  363. </Grid>
  364. <Shape position="absolute 0 30 1190 36" linetype="horizontal" id="line4" class="line_10"/>
  365. </Layout>
  366. </Layouts>
  367. </Tabpage>
  368. </Tabpages>
  369. </Tab>
  370. <Div position="absolute 0 0 1195 80" align="align:center top;" id="grp_key">
  371. <Layouts>
  372. <Layout>
  373. <Shape position="absolute 0 0 1195 80" id="roundrect2" type="roundrectangle"/>
  374. <Static text="기관코드 :" position="absolute 5 11 94 28" id="cap_instcd_search" class="search_name"/>
  375. <Button position="absolute 1120 30 1176 52" align="align:left middle;" id="btn_search" class="btn1" taborder="11" text="조회" onclick="group5_grp_key_btn_search_onclick"/>
  376. <Static text="시행부서 :" position="absolute 325 10 414 27" id="cap_prcpdeptcd" class="search_name"/>
  377. <Edit position="absolute 590 10 730 29" id="ipt_prcpdeptcd" class="input_fix" taborder="12" visible="true"/>
  378. <Static text="사용구분 :" position="absolute 775 11 864 28" id="cap_wareflag" class="search_name"/>
  379. <Edit position="absolute 415 50 545 69" id="ipt_goodcd_search" class="input_default" taborder="6" onkeydown="group5_grp_key_ipt_goodcd_search_onkeydown" autoselect="true" inputmode="upper"/>
  380. <Edit position="absolute 640 49 770 68" id="ipt_goodnm_search" class="input_default" taborder="7" autoselect="true"/>
  381. <Static text="물품코드 :" position="absolute 325 50 414 67" id="cap_goodcd_search" class="search_name"/>
  382. <Static text="물 품 명 :" position="absolute 555 49 649 66" id="cap_goodnm_search" class="search_name"/>
  383. <Combo position="absolute 95 11 265 30" id="cmb_instcd_search" class="combo_default" enable="false" taborder="0"/>
  384. <Shape position="absolute 1107 8 1113 73" linetype="vertical" id="line15" class="line_4"/>
  385. <Calendar position="absolute 95 50 183 69" id="ipt_acptddfr" class="input_essential" taborder="4" autoselect="true"/>
  386. <Static text="취소일자 :" position="absolute 5 51 95 68" id="cap_acptddsearch" class="search_name"/>
  387. <Combo position="absolute 590 10 760 29" id="cmb_prcpdeptcd" class="combo_default" enable="true" taborder="3" innerdataset="@ds_init_erprcpdeptlist_returndeptlist" datacolumn="deptnm" codecolumn="deptcd"/>
  388. <CheckBox position="absolute 865 50 939 70" id="chk_ignoreset" taborder="9" text="Set 제외" truevalue="ignore"/>
  389. <Edit position="absolute 415 10 585 29" id="ipt_prcpdeptnm" taborder="-1" visible="false" class="output" readonly="true"/>
  390. <Combo position="absolute 415 10 585 29" id="cmb_prcpdeptcd_sub" class="combo_default" taborder="-1" visible="false" innerdataset="@ds_init_erprcpdeptlist_returndeptlist" datacolumn="deptnm" codecolumn="deptcd"/>
  391. <Radio position="absolute 415 12 590 28" id="rbo_deptflag" class="input_default" enable="false" taborder="2" columncount="-1" rowcount="-1"/>
  392. <Combo position="absolute 186 50 262 69" id="cmb_sumcnt" taborder="5" innerdataset="ds_combo_redata" datacolumn="label" codecolumn="value"/>
  393. <CheckBox position="absolute 945 50 1080 70" id="chk_viewZeroqty" taborder="10" truevalue="true" text="반납완료 물품표시"/>
  394. <Static text="추가조건 :" position="absolute 776 49 865 66" id="caption2" class="search_name"/>
  395. <cp_checkboxList id="chk_wareflag" titletext="chk_wareflag" taborder="13" text="cp_checkboxList00" scrollbars="none" position="absolute 865 8 1104 53" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
  396. </Layout>
  397. </Layouts>
  398. </Div>
  399. <Edit readonly="true" position="absolute 1045 83 1185 102" align="align:center middle;" id="out_searchtime"/>
  400. <Tab id="Tab00" taborder="1" tabindex="0" scrollbars="autoboth" position="absolute 1 82 1185 109" onchanged="group5_Tab00_onchanged">
  401. <Tabpages>
  402. <Tabpage id="tabpage1" text="물품별 미반납 현황"/>
  403. <Tabpage id="tabpage2" text="분할처방 사용물품 현황"/>
  404. </Tabpages>
  405. </Tab>
  406. <Div id="Div00" taborder="2" position="absolute 0 628 1195 759" style="background:white;">
  407. <Layouts>
  408. <Layout>
  409. <Static id="caption1" text="메모 내역" class="tit_2" position="absolute 0 5 226 21" anchor="default"/>
  410. <Shape id="line4" class="line_10" position="absolute 0 21 1193 27" anchor="default"/>
  411. <Grid id="grd_purrscmlist" taborder="1" binddataset="ds_purrscmlist" useinputpanel="false" position="absolute 0 26 1193 129" autosizingtype="row" extendsizetype="row" anchor="default">
  412. <Formats>
  413. <Format id="default">
  414. <Columns>
  415. <Column size="30"/>
  416. <Column size="100"/>
  417. <Column size="176"/>
  418. <Column size="80"/>
  419. <Column size="245"/>
  420. <Column size="540"/>
  421. </Columns>
  422. <Rows>
  423. <Row size="24" band="head"/>
  424. <Row size="24"/>
  425. </Rows>
  426. <Band id="head">
  427. <Cell/>
  428. <Cell col="1" text="적용일자"/>
  429. <Cell col="2" text="부서"/>
  430. <Cell col="3" text="물품코드"/>
  431. <Cell col="4" text="물품명"/>
  432. <Cell col="5" text="내용"/>
  433. </Band>
  434. <Band id="body">
  435. <Cell celltype="head"/>
  436. <Cell col="1" displaytype="date" edittype="date" text="bind:valifromdd" calendardisplaynulltype="none"/>
  437. <Cell col="2" text="bind:cdnm"/>
  438. <Cell col="3" text="bind:cmt1"/>
  439. <Cell col="4" text="bind:cmt2"/>
  440. <Cell col="5" displaytype="text" edittype="textarea" text="bind:detldesc" wordwrap="word" autosizerow="limitmin"/>
  441. </Band>
  442. </Format>
  443. </Formats>
  444. </Grid>
  445. <Button id="btn_addRow" taborder="2" text="행추가" class="btn2" position="absolute 1027 1 1080 21" anchor="default" onclick="group5_Div00_btn_addRow_onclick"/>
  446. <Button id="btn_grddel" taborder="3" text="행삭제" class="btn2" position="absolute 1082 1 1135 21" anchor="default" onclick="group5_Div00_btn_grddel_onclick"/>
  447. <Button id="btn_save" taborder="4" text="저장" class="btn4" position="absolute 1137 1 1193 21" anchor="default" onclick="group5_Div00_btn_save_onclick"/>
  448. <Button id="btn_expand" taborder="5" text="확대" class="btn8" position="absolute 972 1 1025 21" onclick="group5_Div00_btn_expand_onclick" anchor="default"/>
  449. </Layout>
  450. </Layouts>
  451. </Div>
  452. </Layout>
  453. </Layouts>
  454. </Div>
  455. <Static id="caption6" text="진료재료 취소 현황" class="tit_1" position="absolute 0 0 148 25"/>
  456. <Combo id="Combo00" taborder="1" text="Combo00" position="absolute 456 5 556 25" visible="false" datacolumn="cdnm" codecolumn="cdid"/>
  457. </Layout>
  458. </Layouts>
  459. <Objects>
  460. <Dataset id="ds_send_searchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_searchinfo_oncolumnchanged">
  461. <ColumnInfo>
  462. <Column id="instcd" type="STRING" size="256"/>
  463. <Column id="acptddfr" type="STRING" size="256"/>
  464. <Column id="acptddto" type="STRING" size="256"/>
  465. <Column id="sumcnt" type="STRING" size="256"/>
  466. <Column id="reqflag" type="STRING" size="256"/>
  467. <Column id="prcpdeptcd" type="STRING" size="256"/>
  468. <Column id="prcpdeptnm" type="STRING" size="256"/>
  469. <Column id="goodcd" type="STRING" size="256"/>
  470. <Column id="goodnm" type="STRING" size="256"/>
  471. <Column id="wareflag" type="STRING" size="256"/>
  472. <Column id="wareflagarr" type="STRING" size="256"/>
  473. <Column id="deptflag" type="STRING" size="256"/>
  474. <Column id="ignoreset" type="STRING" size="256"/>
  475. <Column id="dayflag" type="STRING" size="256"/>
  476. </ColumnInfo>
  477. <Rows>
  478. <Row>
  479. <Col id="instcd"/>
  480. <Col id="acptddfr"/>
  481. <Col id="acptddto"/>
  482. <Col id="sumcnt">0</Col>
  483. <Col id="reqflag"/>
  484. <Col id="prcpdeptcd"/>
  485. <Col id="prcpdeptnm"/>
  486. <Col id="goodcd"/>
  487. <Col id="goodnm"/>
  488. <Col id="wareflag"/>
  489. <Col id="wareflagarr"/>
  490. <Col id="deptflag"/>
  491. <Col id="ignoreset">ignore</Col>
  492. <Col id="dayflag"/>
  493. </Row>
  494. </Rows>
  495. </Dataset>
  496. <Dataset id="returngoodlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  497. <Dataset id="ds_init_erprcpdeptlist_returndeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  498. <ColumnInfo>
  499. <Column id="deptcd" type="STRING" size="256"/>
  500. <Column id="deptnm" type="STRING" size="256"/>
  501. </ColumnInfo>
  502. <Rows>
  503. <Row>
  504. <Col id="deptcd">2280200000,2280230000,2500000000,3050135010</Col>
  505. <Col id="deptnm">[전체] 응급의료센터</Col>
  506. </Row>
  507. <Row>
  508. <Col id="deptcd">2280200000</Col>
  509. <Col id="deptnm">응급의료센터</Col>
  510. </Row>
  511. <Row>
  512. <Col id="deptcd">2280230000</Col>
  513. <Col id="deptnm">응급의료센터(EICU)</Col>
  514. </Row>
  515. <Row>
  516. <Col id="deptcd">2500000000</Col>
  517. <Col id="deptnm">응급의료센터(응급실)</Col>
  518. </Row>
  519. <Row>
  520. <Col id="deptcd">3050135010</Col>
  521. <Col id="deptnm">응급의료센터(응급입원실)</Col>
  522. </Row>
  523. </Rows>
  524. </Dataset>
  525. <Dataset id="ds_combo_number" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  526. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  527. <ColumnInfo>
  528. <Column id="viewzeroqty" type="STRING" size="256"/>
  529. </ColumnInfo>
  530. <Rows>
  531. <Row/>
  532. </Rows>
  533. </Dataset>
  534. <Dataset id="ds_init_deptlist_returndeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  535. <Dataset id="ds_combo_redata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  536. <ColumnInfo>
  537. <Column id="value" type="STRING" size="256"/>
  538. <Column id="label" type="STRING" size="256"/>
  539. </ColumnInfo>
  540. </Dataset>
  541. <Dataset id="ds_grd_returngoodlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_grd_returngoodlist_oncolumnchanged"/>
  542. <Dataset id="ds_main_list_returngoodlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  543. <Dataset id="ds_main_list_searchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  544. <Dataset id="ds_chk_wareflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  545. <Dataset id="ds_main_list_returndaylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  546. <Dataset id="ds_main_list_returndetaillist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  547. <Dataset id="ds_temp_sendpopup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  548. <Dataset id="ds_returnempllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  549. <Dataset id="ds_temp_printnode_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  550. <Dataset id="ds_temp_printnode" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  551. <Dataset id="ds_printsend" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  552. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_reqdata_oncolumnchanged">
  553. <ColumnInfo>
  554. <Column id="instcd" type="STRING" size="256"/>
  555. <Column id="cdgrupid" type="STRING" size="256"/>
  556. </ColumnInfo>
  557. <Rows>
  558. <Row/>
  559. </Rows>
  560. </Dataset>
  561. <Dataset id="ds_purrscmlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  562. <ColumnInfo>
  563. <Column id="instcd" type="STRING" size="256"/>
  564. <Column id="cdgrupid" type="STRING" size="256"/>
  565. <Column id="valifromdd" type="STRING" size="256"/>
  566. <Column id="valitodd" type="STRING" size="256"/>
  567. <Column id="detldesc" type="STRING" size="256"/>
  568. <Column id="useyn" type="STRING" size="256"/>
  569. <Column id="dispseq" type="STRING" size="256"/>
  570. <Column id="cdid" type="STRING" size="256"/>
  571. <Column id="cmt1" type="STRING" size="256"/>
  572. <Column id="cdnm" type="STRING" size="256"/>
  573. <Column id="cmt2" type="STRING" size="256"/>
  574. </ColumnInfo>
  575. </Dataset>
  576. </Objects>
  577. <Bind>
  578. <BindItem id="item0" compid="group5.grp_key.rbo_deptflag" propid="value" datasetid="ds_send_searchinfo" columnid="deptflag"/>
  579. <BindItem id="item1" compid="group5.grp_key.cmb_instcd_search" propid="value" datasetid="ds_send_searchinfo" columnid="instcd"/>
  580. <BindItem id="item2" compid="group5.grp_key.cmb_prcpdeptcd_sub" propid="value" datasetid="ds_send_searchinfo" columnid="prcpdeptcd"/>
  581. <BindItem id="item3" compid="group5.grp_key.cmb_prcpdeptcd" propid="value" datasetid="ds_send_searchinfo" columnid="prcpdeptcd"/>
  582. <BindItem id="item4" compid="group5.grp_key.ipt_acptddfr" propid="value" datasetid="ds_send_searchinfo" columnid="acptddfr"/>
  583. <BindItem id="item5" compid="group5.grp_key.cmb_sumcnt" propid="value" datasetid="ds_send_searchinfo" columnid="sumcnt"/>
  584. <BindItem id="item6" compid="group5.grp_key.ipt_goodcd_search" propid="value" datasetid="ds_send_searchinfo" columnid="goodcd"/>
  585. <BindItem id="item7" compid="group5.grp_key.ipt_goodnm_search" propid="value" datasetid="ds_send_searchinfo" columnid="goodnm"/>
  586. <BindItem id="item8" compid="group5.grp_key.ipt_prcpdeptcd" propid="value" datasetid="ds_send_searchinfo" columnid="prcpdeptcd"/>
  587. <BindItem id="item9" compid="group5.grp_key.chk_ignoreset" propid="value" datasetid="ds_send_searchinfo" columnid="ignoreset"/>
  588. <BindItem id="item10" compid="group5.grp_key.chk_viewZeroqty" propid="value" datasetid="ds_temp" columnid="viewzeroqty"/>
  589. <BindItem id="item11" compid="group5.out_searchtime" propid="value" datasetid="ds_main_list_searchinfo" columnid="searchtime"/>
  590. <BindItem id="item12" compid="group5.grp_key.ipt_prcpdeptnm" propid="value" datasetid="ds_send_searchinfo" columnid="prcpdeptnm"/>
  591. </Bind>
  592. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  593. * System Name :
  594. * Job Name :
  595. * Creator :
  596. * Make Date : 2017-06-19
  597. * Description :
  598. *---------------------------------------------------------------------------------------
  599. * Modify Date Modifier Modify Description
  600. *---------------------------------------------------------------------------------------
  601. * 2017-06-19 Live Converter TF->XP
  602. *
  603. *---------------------------------------------------------------------------------------
  604. ****************************************************************************************/
  605. include "com_commonxp::comm_main.xjs";
  606. include "mis_miscommonxp::MIS.xjs";
  607. include "mis_miscommonxp::misMemo.xjs";
  608. include "mis_miscommonxp::RSZ001.xjs";
  609. include "mis_humtrafactmngtxp::RPB001.xjs";
  610. include "mis_educationmngtxp::RPS001.xjs";
  611. var arErrorCode = new HashArray();
  612. function SMRSD07400_oninit(obj:Form, e:InitEventInfo)
  613. {
  614. frmf_initForm(obj); //폼 초기화
  615. grdf_setRowTypeIcon(group5.switch1.cse_returngoodcase.grd_returngoodlist, 1);
  616. grdf_setRowTypeIcon(group5.switch1.cse_divgoodcase.grd_divgoodlist, 1);
  617. grdf_setRowTypeIcon(group5.Div00.grd_purrscmlist, 0);
  618. }
  619. function SMRSD07400_onload(obj:Form, e:LoadEventInfo)
  620. {
  621. fInitialize(); // 화면 Control을 초기화한다
  622. }
  623. function fn_wareflag(){
  624. var getData = String(group5.grp_key.chk_wareflag.getData()).replace(","," ");
  625. ds_send_searchinfo.setColumn(0, "wareflagarr", getData);
  626. var bfwareflag = ds_temp.getColumn(0, "bfwareflag");
  627. var dsplflag = getData;
  628. if (utlf_isSearchString(bfwareflag, 'A')){
  629. ds_send_searchinfo.setColumn(0, "wareflagarr", dsplflag.replace("A", ""));
  630. }else{
  631. dsplflagArr = utlf_transNullToEmpty(dsplflag).split(",");
  632. for (var i = 0; i < dsplflagArr.length; i++){
  633. if (dsplflagArr[i] == "A"){
  634. ds_send_searchinfo.setColumn(0, "wareflagarr", "A");
  635. break;
  636. }
  637. }
  638. }
  639. dsf_makeValue(ds_temp, "bfwareflag", "string", ds_send_searchinfo.getColumn(0, "wareflagarr"));
  640. }
  641. function fInitialize()
  642. {
  643. if(sysf_getUserInfo("dutplceinstcd") == "032") {
  644. group5.grp_key.cap_acptddsearch.text = "집계일자 :";
  645. }
  646. //Combo00
  647. //부서구분 공통코드 ID
  648. var deptflagGRID = sysf_getUserInfo("dutplceinstcd") + "R0029";
  649. var pcdgrupid_list = "C0048,R0450,030R0034," + deptflagGRID;
  650. var pcontrol_name_list = "group5.grp_key.cmb_instcd_search,Combo00,group5.switch1.cse_returngoodcase.grd_returngoodlist.erprcpflag,group5.grp_key.rbo_deptflag";
  651. misfComboComCdListMulti(pcdgrupid_list,pcontrol_name_list);
  652. var copyData = Combo00.innerdataset;
  653. ds_chk_wareflag.copyData(eval(copyData));
  654. var sProp = "col=3,row=2,cellspacing=2,vcellspacing=0,itemWidth=-1,itemHeight=19,overflow='visible'";
  655. group5.grp_key.chk_wareflag.setInitComp(sProp, ds_chk_wareflag,"cdid","cdnm", "fn_wareflag");
  656. frmf_addComboItem("group5.grp_key.rbo_deptflag", "전체", "", "above");
  657. group5.grp_key.rbo_deptflag.value = "";
  658. misfComboCopyItemSet("group5.grp_key.rbo_deptflag", "" , "group5.switch1.cse_returngoodcase.grd_returngoodlist", "deptflag");
  659. misfComboCopyItemSet("group5.grp_key.rbo_deptflag", "" , "group5.switch1.cse_divgoodcase.grd_divgoodlist", "deptflag");
  660. ds_send_searchinfo.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd")); // 기관 설정
  661. ds_send_reqdata.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  662. ds_send_reqdata.setColumn(0, "cdgrupid", "R0006");
  663. if(sysf_getUserInfo("dutplceinstcd") == "031" || sysf_getUserInfo("dutplceinstcd") == "033" ) {
  664. ds_send_searchinfo.setColumn(0, "wareflagarr", "2");
  665. var getData = ds_send_searchinfo.getColumn(0, "wareflagarr").split(" ");
  666. group5.grp_key.chk_wareflag.setData(getData,null,false);
  667. }
  668. if(sysf_getUserInfo("dutplcecd") == "3080000000" || sysf_getUserInfo("dutplcecd") == "4020334000"
  669. || sysf_getUserInfo("dutplcecd") == "3360000000") { // 진료재료 파트인 경우 수작업 반납등록, 전부서 조회 가능
  670. var oParam = {};
  671. oParam.id = "TRRSD07402";
  672. oParam.service = "reqapp.ReqMngt";
  673. oParam.method = "reqGetReturnDeptList";
  674. oParam.inds = "req=ds_send_searchinfo";
  675. oParam.outds = "ds_init_erprcpdeptlist_returndeptlist=returndeptlist";
  676. oParam.async = false;
  677. oParam.callback = "cf_TRRSD07402";
  678. tranf_submit(oParam);
  679. if(arErrorCode.pop("TRRSD07402") > -1){
  680. if(ds_init_erprcpdeptlist_returndeptlist.rowcount > 0)
  681. frmf_addComboItem("group5.grp_key.cmb_prcpdeptcd", "[전체]", "", "above");
  682. group5.grp_key.cmb_prcpdeptcd.value = "";
  683. }
  684. group5.grp_key.rbo_deptflag.visible = true;
  685. group5.grp_key.rbo_deptflag.enable = true;
  686. group5.grp_key.cmb_prcpdeptcd.visible = true;
  687. group5.grp_key.cmb_prcpdeptcd.enable = true;
  688. group5.switch1.cse_returngoodcase.btn_save.enable = true;
  689. } else {
  690. group5.grp_key.rbo_deptflag.visible = false;
  691. //group5.grp_key.cmb_prcpdeptcd.visible = false;
  692. ds_init_erprcpdeptlist_returndeptlist.filter("deptcd == '" + sysf_getUserInfo("dutplcecd") + "'");
  693. var chkNode = ds_init_erprcpdeptlist_returndeptlist.rowcount;
  694. ds_init_erprcpdeptlist_returndeptlist.filter("");
  695. //var chkNode = ds_init_erprcpdeptlist_returndeptlist.selectNodes("/root/init/erprcpdeptlist/returndeptlist[deptcd='" + getUserInfo("dutplcecd") + "']");
  696. if(sysf_getUserInfo("dutplceinstcd") == "031" && chkNode > 0) {
  697. group5.grp_key.cmb_prcpdeptcd_sub.visible = true;
  698. group5.grp_key.cmb_prcpdeptcd_sub.index = 0;
  699. } else if(sysf_getUserInfo("dutplceinstcd") == "033" && chkNode > 0) {
  700. group5.grp_key.cmb_prcpdeptcd_sub.visible = true;
  701. group5.grp_key.cmb_prcpdeptcd_sub.index = 0;
  702. } else {
  703. group5.grp_key.ipt_prcpdeptnm.visible = true;
  704. group5.grp_key.cmb_prcpdeptcd.value = sysf_getUserInfo("dutplcecd");
  705. group5.grp_key.ipt_prcpdeptcd.value = sysf_getUserInfo("dutplcecd");
  706. group5.grp_key.ipt_prcpdeptnm.value = sysf_getUserInfo("dutplcenm");
  707. }
  708. group5.switch1.cse_returngoodcase.grd_returngoodlist.setFormatColProperty(group5.switch1.cse_returngoodcase.grd_returngoodlist.getBindCellIndex("body", "new_rtnqty"), "size", 0);
  709. group5.switch1.cse_returngoodcase.grd_returngoodlist.setFormatColProperty(group5.switch1.cse_returngoodcase.grd_returngoodlist.getBindCellIndex("body", "aftqty"), "size", 0);
  710. }
  711. //일자조회
  712. ds_send_searchinfo.setColumn(0, "dayflag", "day");
  713. var oParam = {};
  714. oParam.id = "TRRSD07403";
  715. oParam.service = "reqapp.ReqMngt";
  716. oParam.method = "reqGetReturnGoodNumber";
  717. oParam.inds = "req=ds_send_searchinfo";
  718. oParam.outds = "ds_combo_number=number";
  719. oParam.async = false;
  720. tranf_submit(oParam);
  721. var value = ds_combo_number.getColumn(0, "value");
  722. ds_send_searchinfo.setColumn(0, "acptddfr", value);
  723. //차수조회
  724. ds_send_searchinfo.setColumn(0, "dayflag", "number");
  725. var oParam = {};
  726. oParam.id = "TRRSD07403";
  727. oParam.service = "reqapp.ReqMngt";
  728. oParam.method = "reqGetReturnGoodNumber";
  729. oParam.inds = "req=ds_send_searchinfo";
  730. oParam.outds = "ds_combo_number=number";
  731. oParam.async = false;
  732. tranf_submit(oParam);
  733. value = ds_combo_number.getColumn(0, "value");
  734. ds_combo_redata.clearData();
  735. for(var i = 1; i <= value ; i++){
  736. var label = i + "차";
  737. frmf_addComboItem( "group5.grp_key.cmb_sumcnt", label, i, "above");
  738. }
  739. group5.grp_key.cmb_sumcnt.index = 0;
  740. group5_grp_key_btn_search_onclick();
  741. }
  742. function cf_TRRSD07402(sSvcId, nErrorCode, sErrorMsg) {
  743. arErrorCode.push(sSvcId, nErrorCode);
  744. }
  745. function group5_grp_key_btn_search_onclick(obj:Button, e:ClickEventInfo)
  746. {
  747. var oParam = {};
  748. oParam.id = "TRRSD07401";
  749. oParam.service = "reqapp.ReqMngt";
  750. oParam.method = "reqGetReturnGoodList";
  751. oParam.inds = "req=ds_send_searchinfo";
  752. oParam.outds = "ds_main_list_searchinfo=searchinfo ds_main_list_returngoodlist=returngoodlist ds_main_list_returndetaillist=returndetaillist ds_main_list_returndaylist=returndaylist"; //3 // 2 // 4
  753. oParam.async = false;
  754. oParam.callback = "cf_TRRSD07401";
  755. tranf_submit(oParam);
  756. if( utlf_isNull(ds_main_list_returngoodlist.getColumnInfo("sumcnt")) ){
  757. ds_main_list_returngoodlist.addColumn("sumcnt", "string");
  758. }
  759. if(arErrorCode.pop("TRRSD07401") > -1){
  760. if(group5.grp_key.chk_viewZeroqty.value == "true") {
  761. ds_grd_returngoodlist.clearData();
  762. ds_main_list_returngoodlist.filter("divuseyn == 'N'");
  763. ds_grd_returngoodlist.copyData(ds_main_list_returngoodlist, true);
  764. ds_main_list_returngoodlist.filter("");
  765. } else {
  766. ds_grd_returngoodlist.clearData();
  767. ds_main_list_returngoodlist.filter("divuseyn=='N' && aftqty!=0");
  768. ds_grd_returngoodlist.copyData(ds_main_list_returngoodlist, true);
  769. ds_main_list_returngoodlist.filter("");
  770. }
  771. ds_main_list_returngoodlist.filter("divuseyn=='Y'");
  772. ds_main_list_returndetaillist.filter("divuseyn=='Y'");
  773. ds_main_list_returndaylist.filter("divuseyn=='Y'");
  774. }
  775. var oParam = {};
  776. oParam.id = "TRRWC01401";
  777. oParam.service = "purcbaseapp.PurcBaseMngt";
  778. oParam.method = "reqGetPurRscmList";
  779. oParam.inds = "req=ds_send_reqdata";
  780. oParam.outds = "ds_purrscmlist=purrscmlist";
  781. oParam.async = false;
  782. tranf_submit(oParam);
  783. }
  784. function cf_TRRSD07401(sSvcId, nErrorCode, sErrorMsg) {
  785. arErrorCode.push(sSvcId, nErrorCode);
  786. }
  787. function group5_Tab00_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  788. {
  789. if(group5.Tab00.tabindex == 0){
  790. group5.switch1.tabindex = 0;
  791. }else if(group5.Tab00.tabindex == 1){
  792. group5.switch1.tabindex = 2;
  793. }
  794. }
  795. function group5_switch1_cse_returngoodcase_btn_print1_onclick(obj:Button, e:ClickEventInfo)
  796. {
  797. ds_temp_printnode_list.clearData();
  798. ds_main_list_returngoodlist.filter("divuseyn=='N' && aftqty !=0");
  799. ds_temp_printnode_list.copyData(ds_main_list_returngoodlist, true);
  800. ds_main_list_returngoodlist.filter("");
  801. dsf_makeValue(ds_temp_printnode, "searchtime", "string", ds_main_list_searchinfo.getColumn(0, "searchtime"));
  802. if(ds_temp_printnode_list.rowcount > 0){
  803. //미리보기출력
  804. var objDOM = rptf_createDOM();
  805. rptf_setNodeListToDOM(objDOM, "root/temp/printnode", ds_temp_printnode); // 데이터셋 1
  806. rptf_setNodeListToDOM(objDOM, "root/temp/printnode/list", ds_temp_printnode_list); // 데이터셋 2
  807. var objParam = new Object();
  808. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  809. var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
  810. rptf_exeReportPreview30(["RPRSD07201"],[objParam], option);
  811. //exeReportPreview("RPRSD07201", "XMLSTR");
  812. }
  813. }
  814. function ds_grd_returngoodlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  815. {
  816. var currentRow = ds_grd_returngoodlist.rowposition;
  817. var rtnqty = ds_grd_returngoodlist.getColumn(currentRow, "rtnqty");
  818. var new_rtnqty = ds_grd_returngoodlist.getColumn(currentRow, "new_rtnqty");
  819. if(parseFloat(rtnqty) - parseFloat(new_rtnqty) < 0) {
  820. alert("반납수량은 미반납수량을 초과 할 수 업습니다.");
  821. ds_grd_returngoodlist.setColumn(currentRow, "new_rtnqty", "");
  822. ds_grd_returngoodlist.setColumn(currentRow, "aftqty", "");
  823. ds_grd_returngoodlist.enableevent = false;
  824. ds_grd_returngoodlist.updatecontrol = false;
  825. ds_grd_returngoodlist.setRowType(currentRow, 1);
  826. ds_grd_returngoodlist.updatecontrol = true;
  827. ds_grd_returngoodlist.enableevent = true;
  828. return;
  829. }
  830. if(utlf_isNull(new_rtnqty) || parseFloat(new_rtnqty) <= 0) {
  831. ds_grd_returngoodlist.setColumn(currentRow, "new_rtnqty", "");
  832. ds_grd_returngoodlist.setColumn(currentRow, "aftqty", "");
  833. ds_grd_returngoodlist.enableevent = false;
  834. ds_grd_returngoodlist.updatecontrol = false;
  835. ds_grd_returngoodlist.setRowType(currentRow, 1);
  836. ds_grd_returngoodlist.updatecontrol = true;
  837. ds_grd_returngoodlist.enableevent = true;
  838. } else {
  839. ds_grd_returngoodlist.setColumn(currentRow, "aftqty", parseFloat(rtnqty) - parseFloat(new_rtnqty));
  840. ds_grd_returngoodlist.enableevent = false;
  841. ds_grd_returngoodlist.updatecontrol = false;
  842. ds_grd_returngoodlist.setRowType(currentRow, 2);
  843. ds_grd_returngoodlist.updatecontrol = true;
  844. ds_grd_returngoodlist.enableevent = true;
  845. }
  846. }
  847. function group5_switch1_cse_returngoodcase_grd_returngoodlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  848. {
  849. if((obj.getBindCellIndex("body", "rtnqty") >= obj.currentcol) &&
  850. (obj.getBindCellIndex("body", "goodcd") <= obj.currentcol)) {
  851. fDetailSearchPopup(group5.switch1.cse_returngoodcase.grd_returngoodlist,"notrtn");
  852. group5_grp_key_btn_search_onclick();
  853. }else if(obj.getBindCellIndex("body", "new_rtnqty") == obj.currentcol){
  854. fDetailSearchPopup(group5.switch1.cse_returngoodcase.grd_returngoodlist,"notrtn");
  855. group5_grp_key_btn_search_onclick();
  856. }
  857. }
  858. function fDetailSearchPopup(target, flag) {
  859. if(target.name == "grd_returngoodlist"){
  860. var dataset:Dataset;
  861. dataset = ds_grd_returngoodlist;
  862. }else if(target.name == "grd_divgoodlist"){
  863. var dataset:Dataset;
  864. dataset = ds_main_list_returngoodlist;
  865. }
  866. if(flag == "notrtn"){
  867. var sendNode:Dataset;
  868. sendNode = ds_temp_sendpopup;
  869. if(target.currentcol >= target.getBindCellIndex("body", "goodcd") && target.currentcol <= target.getBindCellIndex("body", "new_rtnqty")){
  870. sendNode.clearData();
  871. dsf_makeValue(sendNode, "instcd", "string", dataset.getColumn(dataset.rowposition, "instcd"));
  872. dsf_makeValue(sendNode, "prcpdeptcd", "string", dataset.getColumn(dataset.rowposition, "prcpdeptcd"));
  873. dsf_makeValue(sendNode, "prcpdeptnm", "string", dataset.getColumn(dataset.rowposition, "prcpdeptnm"));
  874. dsf_makeValue(sendNode, "goodcd", "string", dataset.getColumn(dataset.rowposition, "goodcd"));
  875. dsf_makeValue(sendNode, "erprcpflag", "string", dataset.getColumn(dataset.rowposition, "erprcpflag"));
  876. dsf_makeValue(sendNode, "fpopup", "string", "1");
  877. if(target == "grd_divgoodlist") {
  878. dsf_makeValue(sendNode, "erprcpflag", "string", "A");
  879. }
  880. dsf_makeValue(sendNode, "acptddfr", "string", dataset.getColumn(dataset.rowposition, "genracptdd"));
  881. dsf_makeValue(sendNode, "acptddto", "string", dataset.getColumn(dataset.rowposition, "lastacptdd"));
  882. dsf_makeValue(sendNode, "genrsumcnt", "string", dataset.getColumn(dataset.rowposition, "genrsumcnt"));
  883. dsf_makeValue(sendNode, "lastsumcnt", "string", dataset.getColumn(dataset.rowposition, "lastsumcnt"));
  884. dsf_makeValue(sendNode, "sumcnt", "string", dataset.getColumn(dataset.rowposition, "sumcnt"));
  885. dsf_makeValue(sendNode, "facptddfr", "string", group5.grp_key.ipt_acptddfr.value);
  886. dsf_makeValue(sendNode, "fsumcnt", "string", group5.grp_key.cmb_sumcnt.value);
  887. var objArg = new Object();
  888. objArg.arg_ds_temp = sendNode;
  889. frmf_modal("SMRSD07500","SMRSD07500", objArg, "", "", "", "", "", "", "", "", "", "M");
  890. }
  891. }else if(flag == "rtn"){
  892. var sendNode:Dataset;
  893. sendNode = ds_temp_sendpopup;
  894. sendNode.clearData();
  895. dsf_makeValue(sendNode, "instcd", "string", dataset.getColumn(dataset.rowposition, "instcd"));
  896. dsf_makeValue(sendNode, "prcpdeptcd", "string", dataset.getColumn(dataset.rowposition, "prcpdeptcd"));
  897. dsf_makeValue(sendNode, "prcpdeptnm", "string", dataset.getColumn(dataset.rowposition, "prcpdeptnm"));
  898. dsf_makeValue(sendNode, "goodcd", "string", dataset.getColumn(dataset.rowposition, "goodcd"));
  899. dsf_makeValue(sendNode, "erprcpflag", "string", dataset.getColumn(dataset.rowposition, "erprcpflag"));
  900. dsf_makeValue(sendNode, "fpopup", "string", "2");
  901. dsf_makeValue(sendNode, "acptddfr", "string", group5.grp_key.ipt_acptddfr.value);
  902. dsf_makeValue(sendNode, "sumcnt", "string", group5.grp_key.cmb_sumcnt.value);
  903. var objArg = new Object();
  904. objArg.arg_ds_temp = sendNode;
  905. frmf_modal("SMRSD07500","SMRSD07500", objArg, "", "", "", "", "", "", "", "", "", "M");
  906. }
  907. }
  908. function group5_switch1_cse_divgoodcase_grd_divgoodlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  909. {
  910. fDetailSearchPopup(group5.switch1.cse_divgoodcase.grd_divgoodlist, "notrtn");
  911. }
  912. function group5_switch1_cse_divgoodcase_button1_onclick(obj:Button, e:ClickEventInfo)
  913. {
  914. grdf_exportExcel(group5.switch1.cse_divgoodcase.grd_divgoodlist, "분할처방 사용물품 미불출 내역_" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
  915. }
  916. function group5_switch1_cse_returngoodcase_button6_onclick(obj:Button, e:ClickEventInfo)
  917. {
  918. var oParam = {};
  919. oParam.id = "TRRSD07404";
  920. oParam.service = "reqapp.ReqMngt";
  921. oParam.method = "reqGetReturnEmplList";
  922. oParam.inds = "req=ds_send_searchinfo";
  923. oParam.outds = "ds_returnempllist=returnempllist";
  924. oParam.async = false;
  925. tranf_submit(oParam);
  926. dsf_makeValue(ds_printsend, "nowtime", "string", utlf_getCurrentDateTime().substr(0,8) + utlf_getCurrentDateTime().substr(9,6));
  927. //미리보기출력
  928. var objDOM = rptf_createDOM();
  929. rptf_setNodeListToDOM(objDOM, "root/printdata/returnempllist", ds_returnempllist); // 데이터셋 1
  930. var objParam = new Object();
  931. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  932. objParam.nowtime = utlf_getCurrentDateTime().substr(0,8) + utlf_getCurrentDateTime().substr(9,6);
  933. var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
  934. rptf_exeReportPreview30(["RPRSD07203"],[objParam], option);
  935. //exeReportPreview("RPRSD07203", "XMLSTR","/root/printsend");
  936. }
  937. function group5_switch1_cse_returngoodcase_btn_excel_onclick(obj:Button, e:ClickEventInfo)
  938. {
  939. grdf_exportExcel(group5.switch1.cse_returngoodcase.grd_returngoodlist, "물품 처방집계 미반납 내역_" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
  940. }
  941. function group5_grp_key_ipt_goodcd_search_onkeydown(obj:Edit, e:KeyEventInfo)
  942. {
  943. if(e.keycode == 13){
  944. obj.updateToDataset();
  945. group5_grp_key_btn_search_onclick();
  946. }
  947. }
  948. function ds_send_searchinfo_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  949. {
  950. if( e.columnid == "acptddfr" ){
  951. ds_send_searchinfo.setColumn(0, "dayflag", "number");
  952. var oParam = {};
  953. oParam.id = "TRRSD07403";
  954. oParam.service = "reqapp.ReqMngt";
  955. oParam.method = "reqGetReturnGoodNumber";
  956. oParam.inds = "req=ds_send_searchinfo";
  957. oParam.outds = "ds_combo_number=number";
  958. oParam.async = false;
  959. tranf_submit(oParam);
  960. var value = ds_combo_number.getColumn(0, "value");
  961. ds_combo_redata.clearData();
  962. for(var i = 1 ; i <= value ; i++){
  963. var label = i + "차";
  964. frmf_addComboItem("group5.grp_key.cmb_sumcnt", label, i, "above");
  965. }
  966. group5.grp_key.cmb_sumcnt.index = 0;
  967. }
  968. }
  969. function group5_Div00_btn_expand_onclick(obj:Button, e:ClickEventInfo)
  970. {
  971. if( obj.text == "확대" ){
  972. obj.text = "축소";
  973. group5.Div00.position = "absolute 0 528 1195 759";
  974. group5.Div00.grd_purrscmlist.position = "absolute 0 26 1193 229";
  975. }else{
  976. obj.text = "확대";
  977. group5.Div00.grd_purrscmlist.position = "absolute 0 26 1193 129";
  978. group5.Div00.position = "absolute 0 628 1195 759";
  979. }
  980. }
  981. function group5_switch1_cse_returngoodcase_grd_returngoodlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  982. {
  983. if( e.col == 6 ){
  984. if( ds_purrscmlist.rowcount == 1 && utlf_isNull(ds_purrscmlist.getColumn(0, "valifromdd")) ){
  985. ds_purrscmlist.setColumn(0, "valifromdd", utlf_getCurrentDate());
  986. }
  987. ds_purrscmlist.setColumn(ds_purrscmlist.rowposition, "cdnm", ds_grd_returngoodlist.getColumn(ds_grd_returngoodlist.rowposition, "prcpdeptnm"));
  988. ds_purrscmlist.setColumn(ds_purrscmlist.rowposition, "cmt1", ds_grd_returngoodlist.getColumn(ds_grd_returngoodlist.rowposition, "goodcd"));
  989. ds_purrscmlist.setColumn(ds_purrscmlist.rowposition, "cmt2", ds_grd_returngoodlist.getColumn(ds_grd_returngoodlist.rowposition, "goodnm"));
  990. }
  991. }
  992. function group5_switch1_cse_divgoodcase_grd_divgoodlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  993. {
  994. if( e.col == 5 ){
  995. if( ds_purrscmlist.rowcount == 1 && utlf_isNull(ds_purrscmlist.getColumn(0, "valifromdd")) ){
  996. ds_purrscmlist.setColumn(0, "valifromdd", utlf_getCurrentDate());
  997. }
  998. ds_purrscmlist.setColumn(ds_purrscmlist.rowposition, "cdnm", ds_main_list_returngoodlist.getColumn(ds_main_list_returngoodlist.rowposition, "prcpdeptnm"));
  999. ds_purrscmlist.setColumn(ds_purrscmlist.rowposition, "cmt1", ds_main_list_returngoodlist.getColumn(ds_main_list_returngoodlist.rowposition, "goodcd"));
  1000. ds_purrscmlist.setColumn(ds_purrscmlist.rowposition, "cmt2", ds_main_list_returngoodlist.getColumn(ds_main_list_returngoodlist.rowposition, "goodnm"));
  1001. }
  1002. }
  1003. function group5_Div00_btn_addRow_onclick(obj:Button, e:ClickEventInfo)
  1004. {
  1005. var irow = ds_purrscmlist.addRow();
  1006. ds_purrscmlist.setColumn(irow, "cdgrupid", ds_purrscmlist.getColumn(irow-1, "cdgrupid"));
  1007. ds_purrscmlist.setColumn(irow, "valifromdd", utlf_getCurrentDate());
  1008. ds_purrscmlist.setColumn(irow, "valitodd", "99991231");
  1009. ds_purrscmlist.setColumn(irow, "useyn", "Y");
  1010. ds_purrscmlist.setColumn(irow, "instcd", sysf_getUserInfo("dutplceinstcd"));
  1011. var tmpcdid = Number(ds_purrscmlist.getColumn(irow-1, "cdid")) + 1;
  1012. ds_purrscmlist.setColumn(irow, "cdid", tmpcdid.toString().getLeftPad(4,"0"));
  1013. }
  1014. function group5_Div00_btn_grddel_onclick(obj:Button, e:ClickEventInfo)
  1015. {
  1016. var nCnt = 0;
  1017. for( var i=0 ; i<ds_purrscmlist.rowcount ; i++ ){
  1018. if( ds_purrscmlist.getRowType(i) == 1 || ds_purrscmlist.getRowType(i) == 2 || ds_purrscmlist.getRowType(i) == 4 ){
  1019. nCnt++;
  1020. }
  1021. }
  1022. if( ds_purrscmlist.rowcount == 1 || nCnt == 1 ){
  1023. if( sysf_messageBox("최소 한행은 필수로 존재해야 합니다.\n\n데이터를", "Q001") == 6 ){
  1024. ds_purrscmlist.setColumn(ds_purrscmlist.rowposition, "valifromdd", "");
  1025. ds_purrscmlist.setColumn(ds_purrscmlist.rowposition, "cdnm", "");
  1026. ds_purrscmlist.setColumn(ds_purrscmlist.rowposition, "cmt1", "");
  1027. ds_purrscmlist.setColumn(ds_purrscmlist.rowposition, "cmt2", "");
  1028. ds_purrscmlist.setColumn(ds_purrscmlist.rowposition, "detldesc", "");
  1029. return;
  1030. }else{
  1031. return;
  1032. }
  1033. }
  1034. if( ds_purrscmlist.getRowType(ds_purrscmlist.rowposition) == 2 )
  1035. {
  1036. ds_purrscmlist.deleteRow(ds_purrscmlist.rowposition);
  1037. }
  1038. else
  1039. {
  1040. ds_purrscmlist.enableevent = false;
  1041. ds_purrscmlist.updatecontrol = false;
  1042. ds_purrscmlist.setRowType(ds_purrscmlist.rowposition, 8);
  1043. ds_purrscmlist.updatecontrol = true;
  1044. ds_purrscmlist.enableevent = true;
  1045. }
  1046. }
  1047. function group5_Div00_btn_save_onclick(obj:Button, e:ClickEventInfo)
  1048. {
  1049. ds_purrscmlist.updatecontrol = false;
  1050. grdf_setStatusColumn(ds_purrscmlist, "status");
  1051. ds_purrscmlist.updatecontrol = true;
  1052. var oParam = {};
  1053. oParam.id = "TXRWC02201";
  1054. oParam.service = "purcbaseapp.PurcBaseMngt";
  1055. oParam.method = "reqExePurRscm";
  1056. oParam.inds = "req=ds_purrscmlist:A";
  1057. oParam.outds = "";
  1058. oParam.async = false;
  1059. oParam.callback = "cf_TXRWC02201";
  1060. tranf_submit(oParam);
  1061. if( arErrorCode.pop("TXRWC02201") > -1 ){
  1062. var oParam = {};
  1063. oParam.id = "TRRWC01401";
  1064. oParam.service = "purcbaseapp.PurcBaseMngt";
  1065. oParam.method = "reqGetPurRscmList";
  1066. oParam.inds = "req=ds_send_reqdata";
  1067. oParam.outds = "ds_purrscmlist=purrscmlist";
  1068. oParam.async = false;
  1069. tranf_submit(oParam);
  1070. }
  1071. }
  1072. function cf_TXRWC02201(sSvcId, nErrorCode, sErrorMsg) {
  1073. arErrorCode.push(sSvcId, nErrorCode);
  1074. }
  1075. ]]></Script>
  1076. </Form>
  1077. </FDL>