SMADT12006_통합마약저장소별현황.xfdl 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMADT12005" classname="SMADT12000_통합마약조회" inheritanceid="" position="absolute 0 0 1133 855" titletext="New Form" oninit="SMADT12005_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text=" 통합 마약 저장소별 현황" class="tit_1" position="absolute 3 1 216 26" onclick="caption6_onclick"/>
  8. <Static id="caption00" text="저장소별 집계현황" class="tit_2" position="absolute 7 72 179 93" onclick="caption00_onclick"/>
  9. <Grid id="grd_daypatlist" class="grd_daypatlist" taborder="25" binddataset="ds_storgeindaylist" autoenter="key" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" cellclickbound="cell" onrbuttonup="switch1_case1_grd_narclist_onrbuttonup" position="absolute 222 96 1104 374" anchor="all">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="28" band="left"/>
  14. <Column size="74" band="left"/>
  15. <Column size="86" band="left"/>
  16. <Column size="80" band="left"/>
  17. <Column size="108"/>
  18. <Column size="90"/>
  19. <Column size="33"/>
  20. <Column size="70"/>
  21. <Column size="68"/>
  22. <Column size="49"/>
  23. <Column size="42"/>
  24. <Column size="75"/>
  25. <Column size="40"/>
  26. </Columns>
  27. <Rows>
  28. <Row size="30" band="head"/>
  29. <Row size="24"/>
  30. </Rows>
  31. <Band id="head">
  32. <Cell/>
  33. <Cell col="1" text="입고일자"/>
  34. <Cell col="2" text="LabelNo"/>
  35. <Cell col="3" text="유통기간" wordwrap="char"/>
  36. <Cell col="4" text="일련번호"/>
  37. <Cell col="5" text="보고번호"/>
  38. <Cell col="6" text="순번"/>
  39. <Cell col="7" text="등록번호"/>
  40. <Cell col="8" text="처방일자"/>
  41. <Cell col="9" text="투약번호"/>
  42. <Cell col="10" text="총수량"/>
  43. <Cell col="11" text="불출일자"/>
  44. <Cell col="12"/>
  45. </Band>
  46. <Band id="body">
  47. <Cell text="expr:currow + 1"/>
  48. <Cell col="1" text="bind:indd"/>
  49. <Cell col="2" text="bind:labelno"/>
  50. <Cell col="3" style="align:center;padding:4 2 3 2;" text="bind:prd_valid_de" wordwrap="char" autosizerow="limitmin"/>
  51. <Cell col="4" style="align:left;" text="bind:mnf_no"/>
  52. <Cell col="5" text="bind:mnf_seq"/>
  53. <Cell col="6" text="bind:seq"/>
  54. <Cell col="7" text="bind:pid"/>
  55. <Cell col="8" text="bind:drugdd"/>
  56. <Cell col="9" displaytype="text" edittype="text" style="align:center middle;" text="bind:drugno" wordwrap="char"/>
  57. <Cell col="10" style="align:EXPR(center);" text="bind:out_pce_qy"/>
  58. <Cell col="11" text="bind:outdd"/>
  59. <Cell col="12" text="bind:opp_storge_no"/>
  60. </Band>
  61. </Format>
  62. </Formats>
  63. </Grid>
  64. <Div id="grp_srch" taborder="29" class="div_SA" position="absolute 8 32 1104 63">
  65. <Layouts>
  66. <Layout width="776" height="31">
  67. <Calendar id="Calendar00" taborder="0" position="absolute 108 5 224 25"/>
  68. <Static id="Static00" text="입고일자 :" position="absolute 10 10 89 22" style="font:Dotum,9,bold;"/>
  69. <CheckBox id="Ck_All" taborder="1" text="전체" position="absolute 275 5 352 25" truevalue="1" falsevalue="0" onchanged="grp_srch_Ck_All_onchanged"/>
  70. <Combo id="Combo00" taborder="2" text="Combo00" position="absolute 454 7 580 28" innerdataset="@ds_storge_list" codecolumn="storge_no" datacolumn="storge_nm" onitemchanged="grp_srch_Combo00_onitemchanged"/>
  71. <Static id="Static01" text="저장소 :" position="absolute 370 10 449 22" style="font:Dotum,9,bold;"/>
  72. </Layout>
  73. </Layouts>
  74. </Div>
  75. <Button id="btn_sea" taborder="30" text="조회" class="btn1" position="absolute 1041 37 1097 59" onclick="btn_sea_onclick"/>
  76. <Grid id="grd_daypatlist00" class="grd_daypatlist" taborder="31" binddataset="ds_storgedata" autoenter="key" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" cellclickbound="cell" onrbuttonup="switch1_case1_grd_narclist_onrbuttonup" position="absolute 14 96 220 845" anchor="all" oncelldblclick="grd_daypatlist00_oncelldblclick">
  77. <Formats>
  78. <Format id="default">
  79. <Columns>
  80. <Column size="76" band="left"/>
  81. <Column size="47" band="left"/>
  82. <Column size="38" band="left"/>
  83. <Column size="33" band="left"/>
  84. </Columns>
  85. <Rows>
  86. <Row size="30" band="head"/>
  87. <Row size="24"/>
  88. </Rows>
  89. <Band id="head">
  90. <Cell text="처방코드" wordwrap="char"/>
  91. <Cell col="1" text="총수량"/>
  92. <Cell col="2" text="남은수"/>
  93. <Cell col="3" text="불출수"/>
  94. </Band>
  95. <Band id="body">
  96. <Cell style="align:center top;padding:4 2 3 2;background:EXPR(sel == 'Y' ? 'yellow' : '');background2:EXPR(sel == 'Y' ? 'yellow' : '');" text="bind:drugcd" wordwrap="char" autosizerow="limitmin"/>
  97. <Cell col="1" text="bind:allcnt"/>
  98. <Cell col="2" text="bind:incnt"/>
  99. <Cell col="3" style="align:left;" text="bind:outcnt"/>
  100. </Band>
  101. </Format>
  102. </Formats>
  103. </Grid>
  104. <Grid id="grd_daypatlist01" class="grd_daypatlist" taborder="32" binddataset="ds_storgedruglist" autoenter="key" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" cellclickbound="cell" onrbuttonup="switch1_case1_grd_narclist_onrbuttonup" position="absolute 222 376 1104 621" anchor="all" oncelldblclick="grd_daypatlist01_oncelldblclick">
  105. <Formats>
  106. <Format id="default">
  107. <Columns>
  108. <Column size="27" band="left"/>
  109. <Column size="63" band="left"/>
  110. <Column size="92" band="left"/>
  111. <Column size="117" band="left"/>
  112. <Column size="88" band="left"/>
  113. <Column size="154"/>
  114. <Column size="135"/>
  115. <Column size="84"/>
  116. <Column size="60"/>
  117. </Columns>
  118. <Rows>
  119. <Row size="30" band="head"/>
  120. <Row size="24"/>
  121. </Rows>
  122. <Band id="head">
  123. <Cell/>
  124. <Cell col="1" text="저장소"/>
  125. <Cell col="2" text="처방코드"/>
  126. <Cell col="3" text="물품번호"/>
  127. <Cell col="4" text="유통기간" wordwrap="char"/>
  128. <Cell col="5" text="일련번호"/>
  129. <Cell col="6" text="보고번호"/>
  130. <Cell col="7" text="라벨No"/>
  131. <Cell col="8" text="총수량"/>
  132. </Band>
  133. <Band id="body">
  134. <Cell text="expr:currow + 1"/>
  135. <Cell col="1" text="bind:storge_no" combodataset="ds_storge_list" combocodecol="storge_no" combodatacol="storge_no" combodisplay="display"/>
  136. <Cell col="2" text="bind:drugcd"/>
  137. <Cell col="3" text="bind:gtin"/>
  138. <Cell col="4" style="align:left top;padding:4 2 3 2;" text="bind:prd_valid_de" wordwrap="char" autosizerow="limitmin"/>
  139. <Cell col="5" style="align:left;" text="bind:mnf_no"/>
  140. <Cell col="6" text="bind:mnf_seq"/>
  141. <Cell col="7" text="bind:labelno"/>
  142. <Cell col="8" style="align:EXPR(center);" text="bind:drugcnt"/>
  143. </Band>
  144. </Format>
  145. </Formats>
  146. </Grid>
  147. <Grid id="grd_daypatlist02" class="grd_daypatlist" taborder="33" binddataset="ds_adnmstocorder" autoenter="key" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" cellclickbound="cell" onrbuttonup="switch1_case1_grd_narclist_onrbuttonup" position="absolute 222 624 1104 845" anchor="all">
  148. <Formats>
  149. <Format id="default">
  150. <Columns>
  151. <Column size="27" band="left"/>
  152. <Column size="26" band="left"/>
  153. <Column size="63" band="left"/>
  154. <Column size="90" band="left"/>
  155. <Column size="92" band="left"/>
  156. <Column size="118" band="left"/>
  157. <Column size="97" band="left"/>
  158. <Column size="122"/>
  159. <Column size="147"/>
  160. <Column size="49"/>
  161. <Column size="27"/>
  162. </Columns>
  163. <Rows>
  164. <Row size="30" band="head"/>
  165. <Row size="24"/>
  166. </Rows>
  167. <Band id="head">
  168. <Cell/>
  169. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  170. <Cell col="2" text="저장소"/>
  171. <Cell col="3" text="LabelNo"/>
  172. <Cell col="4" text="처방코드"/>
  173. <Cell col="5" text="물품번호"/>
  174. <Cell col="6" text="유통기간" wordwrap="char"/>
  175. <Cell col="7" text="일련번호"/>
  176. <Cell col="8" text="보고번호"/>
  177. <Cell col="9" text="순번"/>
  178. <Cell col="10" text="차수"/>
  179. </Band>
  180. <Band id="body">
  181. <Cell text="expr:currow + 1"/>
  182. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:sel"/>
  183. <Cell col="2" text="bind:storge_no" combodataset="ds_storge_list" combocodecol="storge_no" combodatacol="storge_no" combodisplay="display"/>
  184. <Cell col="3" text="bind:labelno"/>
  185. <Cell col="4" text="bind:drugcd"/>
  186. <Cell col="5" text="bind:gtin"/>
  187. <Cell col="6" style="align:left top;padding:4 2 3 2;" text="bind:prd_valid_de" wordwrap="char" autosizerow="limitmin"/>
  188. <Cell col="7" style="align:left;" text="bind:mnf_no"/>
  189. <Cell col="8" text="bind:mnf_seq"/>
  190. <Cell col="9" text="bind:seq"/>
  191. <Cell col="10" style="align:EXPR(center);" text="bind:histno"/>
  192. </Band>
  193. </Format>
  194. </Formats>
  195. </Grid>
  196. </Layout>
  197. </Layouts>
  198. <Bind>
  199. <BindItem id="item0" compid="grp_srch.Calendar00" propid="value" datasetid="ds_senddata" columnid="indd"/>
  200. <BindItem id="item1" compid="grp_srch.Calendar00" propid="" datasetid="ds_senddata" columnid=""/>
  201. </Bind>
  202. <Objects>
  203. <Dataset id="ds_senddata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  204. <ColumnInfo>
  205. <Column id="indd" type="STRING" size="256"/>
  206. <Column id="workflag" type="STRING" size="256"/>
  207. <Column id="storge_no" type="STRING" size="256"/>
  208. </ColumnInfo>
  209. <Rows>
  210. <Row/>
  211. </Rows>
  212. </Dataset>
  213. <Dataset id="ds_outmeg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  214. <ColumnInfo>
  215. <Column id="ioflag" type="STRING" size="256"/>
  216. </ColumnInfo>
  217. </Dataset>
  218. <Dataset id="ds_storgedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  219. <ColumnInfo>
  220. <Column id="drugcd" type="STRING" size="256"/>
  221. <Column id="outcnt" type="STRING" size="256"/>
  222. <Column id="incnt" type="STRING" size="256"/>
  223. <Column id="storge_no" type="STRING" size="256"/>
  224. <Column id="allcnt" type="STRING" size="256"/>
  225. </ColumnInfo>
  226. <Rows>
  227. <Row/>
  228. </Rows>
  229. </Dataset>
  230. <Dataset id="ds_sendstorge" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  231. <ColumnInfo>
  232. <Column id="indd" type="STRING" size="256"/>
  233. <Column id="workflag" type="STRING" size="256"/>
  234. <Column id="storge_no" type="STRING" size="256"/>
  235. <Column id="drugcd" type="STRING" size="256"/>
  236. </ColumnInfo>
  237. <Rows>
  238. <Row/>
  239. </Rows>
  240. </Dataset>
  241. <Dataset id="ds_storgeindaylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  242. <ColumnInfo>
  243. <column id="instcd" type="STRING" size="256"/>
  244. <column id="drugcd" type="STRING" size="256"/>
  245. <column id="infg" type="STRING" size="256"/>
  246. <column id="histno" type="STRING" size="256"/>
  247. <column id="gtin" type="STRING" size="256"/>
  248. <column id="prd_valid_de" type="STRING" size="256"/>
  249. <column id="mnf_no" type="STRING" size="256"/>
  250. <column id="mnf_seq" type="STRING" size="256"/>
  251. <column id="seq" type="STRING" size="256"/>
  252. <column id="prd_sgtin" type="STRING" size="256"/>
  253. <column id="storge_no" type="STRING" size="256"/>
  254. <column id="prtm_se_nm" type="STRING" size="256"/>
  255. <column id="prd_min_distb_qy" type="STRING" size="256"/>
  256. <column id="prd_min_distb_unit" type="STRING" size="256"/>
  257. <column id="prd_tot_pce_qy" type="STRING" size="256"/>
  258. <column id="prd_pce_unit" type="STRING" size="256"/>
  259. <column id="in_pce_qy" type="STRING" size="256"/>
  260. <column id="indd" type="STRING" size="256"/>
  261. <column id="opp_bssh_cd" type="STRING" size="256"/>
  262. <column id="opp_bssh_nm" type="STRING" size="256"/>
  263. <column id="opp_storge_no" type="STRING" size="256"/>
  264. <column id="in_dtl_cd" type="STRING" size="256"/>
  265. <column id="in_trnsfe_se_cd" type="STRING" size="256"/>
  266. <column id="out_fg" type="STRING" size="256"/>
  267. <column id="out_pce_qy" type="STRING" size="256"/>
  268. <column id="fnshfg" type="STRING" size="256"/>
  269. <column id="prcpno" type="STRING" size="256"/>
  270. <column id="drugdd" type="STRING" size="256"/>
  271. <column id="drugno" type="STRING" size="256"/>
  272. <column id="ioflag" type="STRING" size="256"/>
  273. <column id="drugseqno" type="STRING" size="256"/>
  274. <column id="pat_id_no_ty_cd" type="STRING" size="256"/>
  275. <column id="pat_id_no" type="STRING" size="256"/>
  276. <column id="pat_in" type="STRING" size="256"/>
  277. <column id="lcns_asort_cd" type="STRING" size="256"/>
  278. <column id="lcns_no" type="STRING" size="256"/>
  279. <column id="prsc_doc_nm" type="STRING" size="256"/>
  280. <column id="prsc_ord_no" type="STRING" size="256"/>
  281. <column id="diss_code" type="STRING" size="256"/>
  282. <column id="once_qy" type="STRING" size="256"/>
  283. <column id="ade_cnt" type="STRING" size="256"/>
  284. <column id="tot_dcnt" type="STRING" size="256"/>
  285. <column id="sum_qy" type="STRING" size="256"/>
  286. <column id="aft_dsuse_qy" type="STRING" size="256"/>
  287. <column id="dsuse_se_cd" type="STRING" size="256"/>
  288. <column id="dsuse_prv_cd" type="STRING" size="256"/>
  289. <column id="dsuse_mth_cd" type="STRING" size="256"/>
  290. <column id="dsuse_loc" type="STRING" size="256"/>
  291. <column id="dsuse_de" type="STRING" size="256"/>
  292. <column id="dsuse_instt_cd" type="STRING" size="256"/>
  293. <column id="dsuse_doc_de" type="STRING" size="256"/>
  294. <column id="outdd" type="STRING" size="256"/>
  295. <column id="out_bssh_cd" type="STRING" size="256"/>
  296. <column id="out_bssh_nm" type="STRING" size="256"/>
  297. <column id="out_storge_no" type="STRING" size="256"/>
  298. <column id="out_dtl_cd" type="STRING" size="256"/>
  299. <column id="out_trnsfr_se_cd" type="STRING" size="256"/>
  300. <column id="insendfg" type="STRING" size="256"/>
  301. <column id="outsendfg" type="STRING" size="256"/>
  302. <column id="spreqy" type="STRING" size="256"/>
  303. <column id="spredd" type="STRING" size="256"/>
  304. <column id="spredt" type="STRING" size="256"/>
  305. <column id="rtnfg" type="STRING" size="256"/>
  306. <column id="rtndd" type="STRING" size="256"/>
  307. <column id="rtndt" type="STRING" size="256"/>
  308. <Column id="pid" type="STRING" size="256"/>
  309. <Column id="indt" type="STRING" size="256"/>
  310. <Column id="outdt" type="STRING" size="256"/>
  311. <Column id="labelno" type="STRING" size="256"/>
  312. </ColumnInfo>
  313. <Rows>
  314. <Row/>
  315. </Rows>
  316. </Dataset>
  317. <Dataset id="ds_storgedruglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  318. <ColumnInfo>
  319. <column id="drugcd" type="STRING" size="256"/>
  320. <column id="gtin" type="STRING" size="256"/>
  321. <column id="prd_valid_de" type="STRING" size="256"/>
  322. <column id="mnf_no" type="STRING" size="256"/>
  323. <column id="mnf_seq" type="STRING" size="256"/>
  324. <column id="storge_no" type="STRING" size="256"/>
  325. <column id="labelno" type="STRING" size="256"/>
  326. <column id="drugcnt" type="STRING" size="256"/>
  327. </ColumnInfo>
  328. <Rows>
  329. <Row/>
  330. </Rows>
  331. </Dataset>
  332. <Dataset id="ds_storge_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  333. <ColumnInfo>
  334. <Column id="storge_no" type="STRING" size="256"/>
  335. <Column id="storge_nm" type="STRING" size="256"/>
  336. </ColumnInfo>
  337. <Rows>
  338. <Row>
  339. <Col id="storge_no">S0001</Col>
  340. <Col id="storge_nm">기본저장소(약무과)</Col>
  341. </Row>
  342. <Row>
  343. <Col id="storge_no">S0002</Col>
  344. <Col id="storge_nm">병동약국</Col>
  345. </Row>
  346. <Row>
  347. <Col id="storge_no">S0003</Col>
  348. <Col id="storge_nm">외래약국</Col>
  349. </Row>
  350. <Row>
  351. <Col id="storge_no">S0004</Col>
  352. <Col id="storge_nm">마취회복실</Col>
  353. </Row>
  354. </Rows>
  355. </Dataset>
  356. <Dataset id="ds_adnmstocorder" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  357. <ColumnInfo>
  358. <column id="instcd" type="STRING" size="256"/>
  359. <column id="drugcd" type="STRING" size="256"/>
  360. <column id="infg" type="STRING" size="256"/>
  361. <column id="histno" type="STRING" size="256"/>
  362. <column id="gtin" type="STRING" size="256"/>
  363. <column id="prd_valid_de" type="STRING" size="256"/>
  364. <column id="mnf_no" type="STRING" size="256"/>
  365. <column id="mnf_seq" type="STRING" size="256"/>
  366. <column id="seq" type="STRING" size="256"/>
  367. <column id="prd_sgtin" type="STRING" size="256"/>
  368. <column id="storge_no" type="STRING" size="256"/>
  369. <column id="prtm_se_nm" type="STRING" size="256"/>
  370. <column id="prd_min_distb_qy" type="STRING" size="256"/>
  371. <column id="prd_min_distb_unit" type="STRING" size="256"/>
  372. <column id="prd_tot_pce_qy" type="STRING" size="256"/>
  373. <column id="prd_pce_unit" type="STRING" size="256"/>
  374. <column id="in_pce_qy" type="STRING" size="256"/>
  375. <column id="indd" type="STRING" size="256"/>
  376. <column id="opp_bssh_cd" type="STRING" size="256"/>
  377. <column id="opp_bssh_nm" type="STRING" size="256"/>
  378. <column id="opp_storge_no" type="STRING" size="256"/>
  379. <column id="in_dtl_cd" type="STRING" size="256"/>
  380. <column id="in_trnsfe_se_cd" type="STRING" size="256"/>
  381. <column id="out_fg" type="STRING" size="256"/>
  382. <column id="out_pce_qy" type="STRING" size="256"/>
  383. <column id="fnshfg" type="STRING" size="256"/>
  384. <column id="prcpno" type="STRING" size="256"/>
  385. <column id="drugdd" type="STRING" size="256"/>
  386. <column id="drugno" type="STRING" size="256"/>
  387. <column id="ioflag" type="STRING" size="256"/>
  388. <column id="drugseqno" type="STRING" size="256"/>
  389. <column id="pat_id_no_ty_cd" type="STRING" size="256"/>
  390. <column id="pat_id_no" type="STRING" size="256"/>
  391. <column id="pat_nm" type="STRING" size="256"/>
  392. <column id="lcns_asort_cd" type="STRING" size="256"/>
  393. <column id="lcns_no" type="STRING" size="256"/>
  394. <column id="prsc_doc_nm" type="STRING" size="256"/>
  395. <column id="prsc_ord_no" type="STRING" size="256"/>
  396. <column id="diss_code" type="STRING" size="256"/>
  397. <column id="once_qty" type="STRING" size="256"/>
  398. <column id="ade_cnt" type="STRING" size="256"/>
  399. <column id="tot_dcnt" type="STRING" size="256"/>
  400. <column id="sum_qy" type="STRING" size="256"/>
  401. <column id="aft_dsuse_qy" type="STRING" size="256"/>
  402. <column id="dsuse_se_cd" type="STRING" size="256"/>
  403. <column id="dsuse_prv_cd" type="STRING" size="256"/>
  404. <column id="dsuse_mth_cd" type="STRING" size="256"/>
  405. <column id="dsuse_loc" type="STRING" size="256"/>
  406. <column id="dsuse_de" type="STRING" size="256"/>
  407. <column id="dsuse_instt_cd" type="STRING" size="256"/>
  408. <column id="dsuse_doc_de" type="STRING" size="256"/>
  409. <column id="outdd" type="STRING" size="256"/>
  410. <column id="out_bssh_cd" type="STRING" size="256"/>
  411. <column id="out_bssh_nm" type="STRING" size="256"/>
  412. <column id="out_storge_no" type="STRING" size="256"/>
  413. <column id="out_dtl_cd" type="STRING" size="256"/>
  414. <column id="out_trnsfr_se_cd" type="STRING" size="256"/>
  415. <column id="insendfg" type="STRING" size="256"/>
  416. <column id="outsendfg" type="STRING" size="256"/>
  417. <column id="spreqy" type="STRING" size="256"/>
  418. <column id="spredd" type="STRING" size="256"/>
  419. <column id="spredt" type="STRING" size="256"/>
  420. <column id="rtnfg" type="STRING" size="256"/>
  421. <column id="rtndd" type="STRING" size="256"/>
  422. <column id="rtndt" type="STRING" size="256"/>
  423. <Column id="pid" type="STRING" size="256"/>
  424. <Column id="labelno" type="STRING" size="256"/>
  425. <Column id="indt" type="STRING" size="256"/>
  426. <Column id="outdt" type="STRING" size="256"/>
  427. <column id="in_prcpno" type="STRING" size="256"/>
  428. <column id="in_drugdd" type="STRING" size="256"/>
  429. <column id="in_drugno" type="STRING" size="256"/>
  430. <column id="in_ioflag" type="STRING" size="256"/>
  431. <column id="in_pid" type="STRING" size="256"/>
  432. <Column id="sel" type="STRING" size="256"/>
  433. </ColumnInfo>
  434. <Rows>
  435. <Row/>
  436. </Rows>
  437. </Dataset>
  438. <Dataset id="ds_sendstorgedrug" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  439. <ColumnInfo>
  440. <column id="drugcd" type="STRING" size="256"/>
  441. <column id="gtin" type="STRING" size="256"/>
  442. <column id="prd_valid_de" type="STRING" size="256"/>
  443. <column id="mnf_no" type="STRING" size="256"/>
  444. <column id="mnf_seq" type="STRING" size="256"/>
  445. <column id="storge_no" type="STRING" size="256"/>
  446. <column id="labelno" type="STRING" size="256"/>
  447. <column id="drugcnt" type="STRING" size="256"/>
  448. </ColumnInfo>
  449. <Rows>
  450. <Row/>
  451. </Rows>
  452. </Dataset>
  453. </Objects>
  454. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  455. * System Name :
  456. * Job Name :
  457. * Creator :
  458. * Make Date : 2018-03-08
  459. * Description :
  460. ****************************************************************************************/
  461. //=======================================================================================
  462. // Lib Include
  463. //---------------------------------------------------------------------------------------
  464. include "com_commonxp::comm_main.xjs"
  465. include "ast_commonxp::AST.xjs"
  466. var Arstorge_no = "";
  467. function SMADT12005_oninit(obj:Form, e:InitEventInfo)
  468. {
  469. frmf_initForm(obj); // 폼 초기화
  470. // ds_senddata.clearData()
  471. ds_storgeindaylist.clearData()
  472. ds_storgedata.clearData()
  473. // ds_sendpatdata.clearData()
  474. var sCurDate = utlf_getCurrentDate();
  475. var currentDate = new Date(sCurDate.substr(0,4), sCurDate.substr(4,2) -1, sCurDate.substr(6,2));
  476. //조회날짜 초기화
  477. ds_senddata.setColumn(0,"indd", currentDate.getAddDate(-3,"D").getDateFormat("YYYYMMDD"));
  478. ds_senddata.setColumn(0,"workflag" , 'O' );
  479. ds_senddata.setColumn(0,"storge_no" , 'S0002' );
  480. }
  481. function grd_daypatlist00_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  482. {
  483. var cRow = e.row;
  484. if( cRow > -1 ){
  485. ds_sendstorge.setColumn(0, "drugcd", ds_storgedata.getColumn(cRow, "drugcd"));
  486. ds_sendstorge.setColumn(0, "storge_no", ds_storgedata.getColumn(cRow, "storge_no"));
  487. ds_sendstorge.setColumn(0, "indd", ds_senddata.getColumn(0, "indd"));
  488. ds_sendstorge.setColumn(0, "workflag", "Y");
  489. var oParam = {};
  490. oParam.id = "TRADT12012";
  491. oParam.service = "pharmacydrugsumapp.NarcManagent";
  492. oParam.method = "reqGetStorgeIndayList";
  493. oParam.inds = "req=ds_sendstorge";
  494. oParam.outds = "ds_storgeindaylist=stocstorgedata";
  495. oParam.async = false;
  496. tranf_submit(oParam);
  497. var oParam = {};
  498. oParam.id = "TRADT12015";
  499. oParam.service = "pharmacydrugsumapp.NarcManagent";
  500. oParam.method = "reqGetStorgeDrugCnt";
  501. oParam.inds = "req=ds_sendstorge";
  502. oParam.outds = "ds_storgedruglist=stocdata";
  503. oParam.async = false;
  504. tranf_submit(oParam);
  505. }
  506. }
  507. function btn_sea_onclick(obj:Button, e:ClickEventInfo)
  508. {
  509. var oParam = {};
  510. oParam.id = "TRADT12011";
  511. oParam.service = "pharmacydrugsumapp.NarcManagent";
  512. oParam.method = "reqGetStorgeSumList";
  513. oParam.inds = "req=ds_senddata";
  514. oParam.outds = "ds_storgedata=stoclist";
  515. oParam.async = false;
  516. tranf_submit(oParam);
  517. }
  518. function grp_srch_Ck_All_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  519. {
  520. if ( grp_srch.Ck_All.value == 1) {
  521. ds_senddata.setColumn(0,"workflag" , 'A' );
  522. ds_sendstorge.setColumn(0,"workflag" , 'A' );
  523. } else {
  524. ds_senddata.setColumn(0,"workflag" , 'O' );
  525. ds_sendstorge.setColumn(0,"workflag" , 'O' );
  526. }
  527. }
  528. function grp_srch_Combo00_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  529. {
  530. // alert( grp_srch.Combo00.value) ;
  531. ds_senddata.setColumn(0,"storge_no" , grp_srch.Combo00.value);
  532. }
  533. function grd_daypatlist01_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  534. {
  535. var cRow = e.row;
  536. if( cRow > -1 ){
  537. ds_sendstorgedrug.setColumn(0, "drugcd", ds_storgedruglist.getColumn(cRow, "drugcd"));
  538. ds_sendstorgedrug.setColumn(0, "storge_no", ds_storgedruglist.getColumn(cRow, "storge_no"));
  539. ds_sendstorgedrug.setColumn(0, "gtin", ds_storgedruglist.getColumn(cRow, "gtin"));
  540. ds_sendstorgedrug.setColumn(0, "prd_valid_de", ds_storgedruglist.getColumn(cRow, "prd_valid_de"));
  541. ds_sendstorgedrug.setColumn(0, "mnf_no", ds_storgedruglist.getColumn(cRow, "mnf_no"));
  542. ds_sendstorgedrug.setColumn(0, "mnf_seq", ds_storgedruglist.getColumn(cRow, "mnf_seq"));
  543. ds_sendstorgedrug.setColumn(0, "labelno", ds_storgedruglist.getColumn(cRow, "labelno"));
  544. var oParam = {};
  545. oParam.id = "TRADT12016";
  546. oParam.service = "pharmacydrugsumapp.NarcManagent";
  547. oParam.method = "reqGetSelStorgeList";
  548. oParam.inds = "req=ds_sendstorge";
  549. oParam.outds = "ds_storgeindaylist=stocstorgedata";
  550. oParam.async = false;
  551. tranf_submit(oParam);
  552. }
  553. }
  554. ]]></Script>
  555. </Form>
  556. </FDL>