SMADT12000_통합마약조회.xfdl 71 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMADT12000" classname="SMADT12000_통합마약조회" inheritanceid="" position="absolute 0 0 1196 715" titletext="New Form" onload="SMADT12000_onload" onkeyup="SMADT12000_onkeyup" oninit="SMADT12000_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text=" 통합 마약 관리" class="tit_1" position="absolute 0 0 160 25"/>
  8. <Div id="group2" anchor="left top right" taborder="1" class="div_SA" position="absolute 0 25 1195 65">
  9. <Layouts>
  10. <Layout>
  11. <Static id="caption2" text="바코드 :" class="search_name" position="absolute 13 12 80 29" anchor="default"/>
  12. <Edit id="ipt_barcode" taborder="57" class="input_search" position="absolute 88 10 308 29" anchor="default" onkeydown="group2_ipt_barcode_onkeydown" oneditclick="group2_ipt_barcode_oneditclick" useime="none"/>
  13. <Button id="btn_sea" taborder="58" text="조회" onclick="group2_btn_sea_onclick" class="btn1" position="absolute 326 10 382 32" anchor="default"/>
  14. <Button id="Button00" taborder="59" text="바코드 출력" position="absolute 913 9 1011 31" onclick="group2_Button00_onclick" anchor="top right" class="btn3"/>
  15. <Button id="Button01" taborder="60" text="마 감" position="absolute 1014 9 1074 31" onclick="group2_Button01_onclick" anchor="top right" class="btn3"/>
  16. <Button id="Button02" taborder="61" text="저장소별 현황" position="absolute 1077 9 1187 31" onclick="group2_Button02_onclick" anchor="top right" class="btn3"/>
  17. </Layout>
  18. </Layouts>
  19. </Div>
  20. <Static id="caption24" text="등록번호" class="cell_1" position="absolute 0 94 80 117"/>
  21. <Edit id="opt_pid" taborder="2" readonly="true" class="output" position="absolute 83 96 205 115"/>
  22. <Static id="caption14" text="진료과" class="cell_1" position="absolute 417 119 496 142"/>
  23. <Edit id="opt_orddeptcd" taborder="3" readonly="true" class="output" position="absolute 499 121 681 140"/>
  24. <Static id="caption13" text="담당의" class="cell_1" position="absolute 689 119 760 142"/>
  25. <Edit id="opt_orddrid" taborder="4" readonly="true" class="output" position="absolute 768 121 859 140"/>
  26. <Static id="caption25" text="환자명" class="cell_1" position="absolute 213 94 292 117"/>
  27. <Edit id="opt_hngnm" taborder="6" readonly="true" class="output" position="absolute 295 96 409 115"/>
  28. <Static id="caption9" text="진료일자" class="cell_1" position="absolute 213 119 292 142"/>
  29. <MaskEdit id="output1" taborder="7" displaynulltext=" " readonly="true" type="string" mask="####-##-##" class="output" position="absolute 295 121 409 140" style="align:left middle;"/>
  30. <Static id="caption10" text="면허번호" class="cell_1" position="absolute 867 119 959 142"/>
  31. <Edit id="opt_licenseno" taborder="8" readonly="true" class="output" position="absolute 967 121 1194 140"/>
  32. <Static id="caption23" text="성별" class="cell_1" position="absolute 417 94 496 117"/>
  33. <Edit id="opt_sex" taborder="10" readonly="true" class="output" position="absolute 499 96 581 115"/>
  34. <Static id="caption15" text="나이" class="cell_1" position="absolute 689 94 760 117"/>
  35. <Static id="caption8" text="상병" class="cell_1" position="absolute 0 144 80 167"/>
  36. <Edit id="opt_diagnm" taborder="12" readonly="true" class="output" position="absolute 83 146 1194 165"/>
  37. <Static id="caption19" text="주민등록번호" class="cell_1" position="absolute 867 94 959 117"/>
  38. <Edit id="output4" taborder="13" readonly="true" class="output" position="absolute 967 96 1194 115"/>
  39. <Static id="caption20" text="주소" class="cell_1" position="absolute 0 169 80 192"/>
  40. <Edit id="output3" taborder="15" readonly="true" class="output" position="absolute 83 171 1194 190"/>
  41. <Shape id="line02" class="line_10" position="absolute 0 89 1195 95" anchor="left top right"/>
  42. <Shape id="line00" class="line_1" position="absolute 0 191 1195 197" anchor="left top right"/>
  43. <Static id="caption26" text="환자정보" class="tit_2" position="absolute 0 73 82 94"/>
  44. <Static id="caption00" text="처방정보" class="tit_2" position="absolute 0 202 82 223"/>
  45. <Static id="caption01" text="조제 재고 정보" class="tit_2" position="absolute 0 408 138 429"/>
  46. <Shape id="line01" class="line_10" position="absolute 0 424 1195 430" anchor="left top right"/>
  47. <Edit id="opt_age" taborder="18" readonly="true" class="output" position="absolute 768 96 859 115"/>
  48. <Static id="caption02" text="투약번호" class="cell_1" position="absolute 0 119 80 142"/>
  49. <Edit id="opt_drugno" taborder="19" position="absolute 83 119 205 141" oneditclick="Edit00_oneditclick" class="output" style="font:arial,12,bold;"/>
  50. <Grid id="grd_narclist" class="grd_orderlist" taborder="20" binddataset="ds_main_narclist_narclist" autoenter="key" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" cellclickbound="cell" onrbuttonup="switch1_case1_grd_narclist_onrbuttonup" onkeyup="switch1_grd_onkeyup" onheadclick="switch1_case1_grd_narclist_onheadclick" oncelldblclick="switch1_case1_grd_narclist_oncelldblclick" position="absolute 0 223 1195 400" anchor="left top right">
  51. <Formats>
  52. <Format id="default">
  53. <Columns>
  54. <Column size="33" band="left"/>
  55. <Column size="67" band="left"/>
  56. <Column size="50" band="left"/>
  57. <Column size="50" band="left"/>
  58. <Column size="70" band="left"/>
  59. <Column size="74"/>
  60. <Column size="205"/>
  61. <Column size="28"/>
  62. <Column size="30"/>
  63. <Column size="36"/>
  64. <Column size="29"/>
  65. <Column size="35"/>
  66. <Column size="31"/>
  67. <Column size="40"/>
  68. <Column size="28"/>
  69. <Column size="40"/>
  70. <Column size="29"/>
  71. <Column size="28"/>
  72. <Column size="32"/>
  73. <Column size="28"/>
  74. <Column size="28"/>
  75. <Column size="29"/>
  76. <Column size="32"/>
  77. <Column size="35"/>
  78. <Column size="8"/>
  79. <Column size="70"/>
  80. <Column size="8"/>
  81. <Column size="70"/>
  82. <Column size="8"/>
  83. <Column size="0"/>
  84. <Column size="0"/>
  85. <Column size="70"/>
  86. <Column size="9"/>
  87. <Column size="70"/>
  88. <Column size="9"/>
  89. <Column size="70"/>
  90. <Column size="9"/>
  91. <Column size="70"/>
  92. <Column size="0"/>
  93. <Column size="0"/>
  94. <Column size="7"/>
  95. <Column size="70"/>
  96. <Column size="100"/>
  97. <Column size="7"/>
  98. <Column size="85"/>
  99. <Column size="7"/>
  100. <Column size="85"/>
  101. <Column size="0"/>
  102. <Column size="0"/>
  103. <Column size="0"/>
  104. <Column size="0"/>
  105. <Column size="0"/>
  106. <Column size="0"/>
  107. <Column size="0"/>
  108. <Column size="0"/>
  109. <Column size="0"/>
  110. <Column size="0"/>
  111. <Column size="0"/>
  112. <Column size="0"/>
  113. <Column size="0"/>
  114. <Column size="0"/>
  115. <Column size="0"/>
  116. <Column size="0"/>
  117. <Column size="0"/>
  118. <Column size="0"/>
  119. <Column size="0"/>
  120. </Columns>
  121. <Rows>
  122. <Row size="30" band="head"/>
  123. <Row size="24"/>
  124. </Rows>
  125. <Band id="head">
  126. <Cell text="처방&#10;상태" wordwrap="char"/>
  127. <Cell col="1" text="처방일자" wordwrap="char"/>
  128. <Cell col="2" text="투약번호" wordwrap="char"/>
  129. <Cell col="3" text="처방구분" wordwrap="char"/>
  130. <Cell col="4" text="수행부서" wordwrap="char"/>
  131. <Cell col="5" text="약품코드" wordwrap="char"/>
  132. <Cell col="6" text="약품명" wordwrap="char"/>
  133. <Cell col="7" colspan="2" text="총량" wordwrap="char" taborder="undefined"/>
  134. <Cell col="9" colspan="2" text="일수량" wordwrap="char" taborder="undefined"/>
  135. <Cell col="11" colspan="2" text="1회수량" wordwrap="char" taborder="undefined"/>
  136. <Cell col="13" colspan="2" text="일용량" wordwrap="char" taborder="undefined"/>
  137. <Cell col="15" colspan="2" text="1회용량" wordwrap="char" taborder="undefined"/>
  138. <Cell col="17" text="횟수" wordwrap="char"/>
  139. <Cell col="18" colspan="2" text="잔량" wordwrap="char" taborder="undefined"/>
  140. <Cell col="20" colspan="2" text="반환횟수" wordwrap="char" taborder="undefined"/>
  141. <Cell col="22" colspan="2" text="반환수량" wordwrap="char" taborder="undefined"/>
  142. <Cell col="24" style="align:left;padding:0 0 0 8;" text="불출신청일자" wordwrap="char"/>
  143. <Cell col="25" text="불출&#10;신청자" wordwrap="char"/>
  144. <Cell col="26" style="align:left;padding:0 0 0 8;" text="조제일시" wordwrap="char"/>
  145. <Cell col="27" text="조제&#10;약사" wordwrap="char"/>
  146. <Cell col="28" style="align:left;padding:0 0 0 8;" text="투약일시" wordwrap="char"/>
  147. <Cell col="29" text="투약&#10;약사" wordwrap="char"/>
  148. <Cell col="30" text="수령일시" wordwrap="char"/>
  149. <Cell col="31" text="수령&#10;담당자" wordwrap="char"/>
  150. <Cell col="32" style="align:left;padding:0 0 0 8;" text="병동수령일시" wordwrap="char"/>
  151. <Cell col="33" text="부서확인&#10;간호사" wordwrap="char"/>
  152. <Cell col="34" style="align:left;padding:0 0 0 8;" text="간호투약일시" wordwrap="char"/>
  153. <Cell col="35" text="간호투약&#10;간호사" wordwrap="char"/>
  154. <Cell col="36" style="align:left;padding:0 0 0 8;" text="반환신청일시" wordwrap="char"/>
  155. <Cell col="37" text="반환신청&#10;간호사" wordwrap="char"/>
  156. <Cell col="38" text="반환일시" wordwrap="char"/>
  157. <Cell col="39" text="반환&#10;담당자" wordwrap="char"/>
  158. <Cell col="40" style="align:left;padding:0 0 0 8;" text="반환확인일시" wordwrap="char"/>
  159. <Cell col="41" text="반환확인&#10;약사" wordwrap="char"/>
  160. <Cell col="42" text="반환사유" wordwrap="char"/>
  161. <Cell col="43" style="align:left;padding:0 0 0 8;" text="잔량반납&#10;신청일시" wordwrap="char"/>
  162. <Cell col="44" text="잔량반납신청&#10;간호사" wordwrap="char"/>
  163. <Cell col="45" style="align:left;padding:0 0 0 8;" text="잔량반납&#10;확인일시" wordwrap="char"/>
  164. <Cell col="46" text="잔량반납확인&#10;약사" wordwrap="char"/>
  165. <Cell col="47" text="prcpno"/>
  166. <Cell col="48" text="prcphistno"/>
  167. <Cell col="49" text="drugdd"/>
  168. <Cell col="50" text="drugno"/>
  169. <Cell col="51" text="ioflag"/>
  170. <Cell col="52" text="instcd"/>
  171. <Cell col="53" text="narcflag"/>
  172. <Cell col="54" text="prntflag"/>
  173. <Cell col="55" text="orddd"/>
  174. <Cell col="56" text="orddeptcd"/>
  175. <Cell col="57" text="prcpgenrflag"/>
  176. <Cell col="58" text="prntdt"/>
  177. <Cell col="59" text="caption1"/>
  178. <Cell col="60" text="반납반환&#10;표시여부"/>
  179. <Cell col="61" text="투약기록&#10;완료여부"/>
  180. <Cell col="62" text="간호&#10;실시횟수"/>
  181. <Cell col="63" text="간호&#10;반환횟수"/>
  182. <Cell col="64" text="투약x반환불가&#10;횟수"/>
  183. <Cell col="65"/>
  184. </Band>
  185. <Band id="body">
  186. <Cell style="align:center top;padding:4 2 3 2;background2:#f0f0f0ff;" text="bind:prcphistcd" wordwrap="char" autosizerow="limitmin"/>
  187. <Cell col="1" style="align:left top;padding:4 2 3 2;background2:#f0f0f0ff;" text="bind:prcpdd" wordwrap="char" mask="expr:utlf_isNull(prcpdd) || prcpdd=='-' ? '' : '####/##/##'" autosizerow="limitmin"/>
  188. <Cell col="2" displaytype="text" style="align:center top;padding:4 2 3 2;background2:#f0f0f0ff;" text="bind:drugno" wordwrap="char" autosizerow="limitmin"/>
  189. <Cell col="3" style="align:left top;padding:4 2 3 2;background2:#f0f0f0ff;" text="bind:prcpkindnm" wordwrap="char" autosizerow="limitmin"/>
  190. <Cell col="4" style="align:left top;padding:4 2 3 2;background2:#f0f0f0ff;" text="bind:issdeptcdnm" wordwrap="char" autosizerow="limitmin"/>
  191. <Cell col="5" displaytype="text" style="align:left top;padding:4 2 3 2;background2:#f0f0f0ff;" text="bind:prcpcd" wordwrap="char" autosizerow="limitmin"/>
  192. <Cell col="6" displaytype="text" style="align:left top;padding:4 2 1 2;background2:#f0f0f0ff;" text="bind:drugnm" wordwrap="char" autosizerow="limitmin"/>
  193. <Cell col="7" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:totdrugqty"/>
  194. <Cell col="8" style="background2:#f0f0f0ff;" text="bind:prcpqtyunit"/>
  195. <Cell col="9" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:dayprcpqty"/>
  196. <Cell col="10" style="background2:#f0f0f0ff;" text="bind:dayprcpqtyunit"/>
  197. <Cell col="11" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:prcpqty2"/>
  198. <Cell col="12" style="background2:#f0f0f0ff;" text="bind:prcpqtyunit2"/>
  199. <Cell col="13" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:prcpvol"/>
  200. <Cell col="14" style="background2:#f0f0f0ff;" text="bind:prcpvolunit"/>
  201. <Cell col="15" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:prcpvol2"/>
  202. <Cell col="16" style="background2:#f0f0f0ff;" text="bind:prcpvolunit2"/>
  203. <Cell col="17" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:prcptims"/>
  204. <Cell col="18" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:spreqty"/>
  205. <Cell col="19" style="background2:#f0f0f0ff;" text="bind:prcpvolunit"/>
  206. <Cell col="20" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:rtnqty" mask="99999999999"/>
  207. <Cell col="21" style="background2:#f0f0f0ff;" text="bind:rtnunit"/>
  208. <Cell col="22" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:returnqty"/>
  209. <Cell col="23" style="background2:#f0f0f0ff;" text="bind:prcpqtyunit"/>
  210. <Cell col="24" style="background2:#f0f0f0ff;" text="bind:reqdt" mask="expr:utlf_isNull(reqdt) || reqdt=='-' ? '' : '####/##/## ##:##'"/>
  211. <Cell col="25" style="background2:#f0f0f0ff;" text="bind:reqidnm"/>
  212. <Cell col="26" style="background2:#f0f0f0ff;" text="bind:prcpdt" mask="expr:utlf_isNull(prcpdt) || prcpdt=='-' ? '' : '####/##/## ##:##'"/>
  213. <Cell col="27" style="background2:#f0f0f0ff;" text="bind:prcpidnm"/>
  214. <Cell col="28" style="background2:#f0f0f0ff;" text="bind:drugdt" mask="expr:utlf_isNull(drugdt) || drugdt=='-' ? '' : '####/##/## ##:##'"/>
  215. <Cell col="29" style="background2:#f0f0f0ff;" text="bind:drugidnm"/>
  216. <Cell col="30" style="background2:#f0f0f0ff;" text="bind:delivedt" mask="expr:utlf_isNull(delivedt) || delivedt=='-' ? '' : '####/##/##'"/>
  217. <Cell col="31" style="background2:#f0f0f0ff;" text="bind:deliveidnm"/>
  218. <Cell col="32" style="background2:#f0f0f0ff;" text="bind:acptdt" mask="expr:utlf_isNull(acptdt) || acptdt=='-' ? '' : '####/##/## ##:##'"/>
  219. <Cell col="33" style="background2:#f0f0f0ff;" text="bind:acptidnm"/>
  220. <Cell col="34" style="background2:#f0f0f0ff;" text="bind:nrexecdt" mask="expr:utlf_isNull(nrexecdt) || nrexecdt=='-' ? '' : '####/##/## ##:##'"/>
  221. <Cell col="35" style="background2:#f0f0f0ff;" text="bind:nrexecridnm"/>
  222. <Cell col="36" style="background2:#f0f0f0ff;" text="bind:rtnappdt" mask="expr:utlf_isNull(rtnappdt) || rtnappdt=='-' ? '' : '####/##/## ##:##'"/>
  223. <Cell col="37" style="background2:#f0f0f0ff;" text="bind:rtnappidnm"/>
  224. <Cell col="38" style="background2:#f0f0f0ff;" text="bind:rtndt" mask="expr:utlf_isNull(rtndt) || rtndt=='-' ? '' : '####/##/##''"/>
  225. <Cell col="39" style="background2:#f0f0f0ff;" text="bind:rtnidnm"/>
  226. <Cell col="40" style="background2:#f0f0f0ff;" text="bind:rtncnfmdt" mask="expr:utlf_isNull(rtncnfmdt) || rtncnfmdt=='-' ? '' : '####/##/## ##:##'"/>
  227. <Cell col="41" style="background2:#f0f0f0ff;" text="bind:rtncnfmidnm"/>
  228. <Cell col="42" displaytype="text" style="background2:#f0f0f0ff;" text="bind:rtnresn"/>
  229. <Cell col="43" style="background2:#f0f0f0ff;" text="bind:spredt" mask="expr:utlf_isNull(spredt) || spredt=='-' ? '' : '####/##/## ##:##'"/>
  230. <Cell col="44" style="background2:#f0f0f0ff;" text="bind:spreidnm"/>
  231. <Cell col="45" style="background2:#f0f0f0ff;" text="bind:sprecnfmdt" mask="expr:utlf_isNull(sprecnfmdt) || sprecnfmdt=='-' ? '' : '####/##/## ##:##'"/>
  232. <Cell col="46" style="background2:#f0f0f0ff;" text="bind:sprecnfmidnm"/>
  233. <Cell col="47" text="bind:prcpno"/>
  234. <Cell col="48" text="bind:prcphistno"/>
  235. <Cell col="49" text="bind:drugdd"/>
  236. <Cell col="50" text="bind:drugno"/>
  237. <Cell col="51" text="bind:ioflag"/>
  238. <Cell col="52" text="bind:instcd"/>
  239. <Cell col="53" text="bind:narcflag"/>
  240. <Cell col="54" text="bind:prntflag"/>
  241. <Cell col="55" text="bind:orddd"/>
  242. <Cell col="56" text="bind:orddeptcd"/>
  243. <Cell col="57" text="bind:prcpgenrflag"/>
  244. <Cell col="58" text="bind:prntdt"/>
  245. <Cell col="59" text="bind:presqty2"/>
  246. <Cell col="60" text="bind:statvisible"/>
  247. <Cell col="61" text="bind:medrendyn"/>
  248. <Cell col="62" text="bind:medrqty"/>
  249. <Cell col="63" text="bind:medrtims"/>
  250. <Cell col="64" text="bind:medrx"/>
  251. <Cell col="65" text="bind:drugseqno"/>
  252. </Band>
  253. </Format>
  254. </Formats>
  255. </Grid>
  256. <Grid id="grd_narclist00" class="grd_orderlist" taborder="21" binddataset="ds_adnmstoclist" autoenter="key" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" cellclickbound="cell" onrbuttonup="switch1_case1_grd_narclist_onrbuttonup" onkeyup="switch1_grd_onkeyup" onheadclick="switch1_case1_grd_narclist_onheadclick" oncelldblclick="switch1_case1_grd_narclist_oncelldblclick" position="absolute 936 320 1032 384" visible="false">
  257. <Formats>
  258. <Format id="default">
  259. <Columns>
  260. <Column size="77" band="left"/>
  261. <Column size="67" band="left"/>
  262. <Column size="96" band="left"/>
  263. <Column size="276" band="left"/>
  264. <Column size="70" band="left"/>
  265. <Column size="143"/>
  266. <Column size="69"/>
  267. <Column size="28"/>
  268. <Column size="13"/>
  269. <Column size="36"/>
  270. <Column size="29"/>
  271. <Column size="35"/>
  272. <Column size="31"/>
  273. <Column size="40"/>
  274. <Column size="28"/>
  275. <Column size="40"/>
  276. <Column size="29"/>
  277. <Column size="54"/>
  278. <Column size="32"/>
  279. <Column size="69"/>
  280. <Column size="28"/>
  281. <Column size="29"/>
  282. <Column size="32"/>
  283. <Column size="35"/>
  284. <Column size="8"/>
  285. <Column size="70"/>
  286. <Column size="8"/>
  287. <Column size="70"/>
  288. <Column size="8"/>
  289. <Column size="0"/>
  290. <Column size="0"/>
  291. <Column size="70"/>
  292. <Column size="9"/>
  293. <Column size="70"/>
  294. <Column size="9"/>
  295. <Column size="70"/>
  296. <Column size="9"/>
  297. <Column size="70"/>
  298. <Column size="0"/>
  299. <Column size="0"/>
  300. <Column size="7"/>
  301. <Column size="70"/>
  302. <Column size="100"/>
  303. <Column size="7"/>
  304. <Column size="85"/>
  305. <Column size="7"/>
  306. <Column size="85"/>
  307. <Column size="0"/>
  308. <Column size="0"/>
  309. <Column size="0"/>
  310. <Column size="0"/>
  311. <Column size="0"/>
  312. <Column size="0"/>
  313. <Column size="0"/>
  314. <Column size="0"/>
  315. <Column size="0"/>
  316. <Column size="0"/>
  317. <Column size="0"/>
  318. <Column size="0"/>
  319. <Column size="0"/>
  320. <Column size="0"/>
  321. <Column size="0"/>
  322. <Column size="0"/>
  323. <Column size="0"/>
  324. <Column size="0"/>
  325. <Column size="0"/>
  326. </Columns>
  327. <Rows>
  328. <Row size="30" band="head"/>
  329. <Row size="22"/>
  330. </Rows>
  331. <Band id="head">
  332. <Cell text="처방&#10;코드" wordwrap="char"/>
  333. <Cell col="1" text="입고구분" wordwrap="char"/>
  334. <Cell col="2" text="이력일시" wordwrap="char"/>
  335. <Cell col="3" text="제품번호" wordwrap="char"/>
  336. <Cell col="4" text="유효기간" wordwrap="char"/>
  337. <Cell col="5" text="제조번호" wordwrap="char"/>
  338. <Cell col="6" text="일련번호" wordwrap="char"/>
  339. <Cell col="7" colspan="2" text="seq" wordwrap="char" taborder="undefined"/>
  340. <Cell col="9" colspan="2" text="바코드_RFID" wordwrap="char" taborder="undefined"/>
  341. <Cell col="11" colspan="2" text="저장소_NO" wordwrap="char" taborder="undefined"/>
  342. <Cell col="13" colspan="2" text="유통수량" wordwrap="char" taborder="undefined"/>
  343. <Cell col="15" colspan="2" text="낱개수량" wordwrap="char" taborder="undefined"/>
  344. <Cell col="17" text="입고수량" wordwrap="char"/>
  345. <Cell col="18" colspan="2" text="입고일자" wordwrap="char" taborder="undefined"/>
  346. <Cell col="20" colspan="2" text="반환횟수" wordwrap="char" taborder="undefined"/>
  347. <Cell col="22" colspan="2" text="반환수량" wordwrap="char" taborder="undefined"/>
  348. <Cell col="24" style="align:left;padding:0 0 0 8;" text="불출신청일자" wordwrap="char"/>
  349. <Cell col="25" text="불출&#10;신청자" wordwrap="char"/>
  350. <Cell col="26" style="align:left;padding:0 0 0 8;" text="조제일시" wordwrap="char"/>
  351. <Cell col="27" text="조제&#10;약사" wordwrap="char"/>
  352. <Cell col="28" style="align:left;padding:0 0 0 8;" text="투약일시" wordwrap="char"/>
  353. <Cell col="29" text="투약&#10;약사" wordwrap="char"/>
  354. <Cell col="30" text="수령일시" wordwrap="char"/>
  355. <Cell col="31" text="수령&#10;담당자" wordwrap="char"/>
  356. <Cell col="32" style="align:left;padding:0 0 0 8;" text="병동수령일시" wordwrap="char"/>
  357. <Cell col="33" text="부서확인&#10;간호사" wordwrap="char"/>
  358. <Cell col="34" style="align:left;padding:0 0 0 8;" text="간호투약일시" wordwrap="char"/>
  359. <Cell col="35" text="간호투약&#10;간호사" wordwrap="char"/>
  360. <Cell col="36" style="align:left;padding:0 0 0 8;" text="반환신청일시" wordwrap="char"/>
  361. <Cell col="37" text="반환신청&#10;간호사" wordwrap="char"/>
  362. <Cell col="38" text="반환일시" wordwrap="char"/>
  363. <Cell col="39" text="반환&#10;담당자" wordwrap="char"/>
  364. <Cell col="40" style="align:left;padding:0 0 0 8;" text="반환확인일시" wordwrap="char"/>
  365. <Cell col="41" text="반환확인&#10;약사" wordwrap="char"/>
  366. <Cell col="42" text="반환사유" wordwrap="char"/>
  367. <Cell col="43" style="align:left;padding:0 0 0 8;" text="잔량반납&#10;신청일시" wordwrap="char"/>
  368. <Cell col="44" text="잔량반납신청&#10;간호사" wordwrap="char"/>
  369. <Cell col="45" style="align:left;padding:0 0 0 8;" text="잔량반납&#10;확인일시" wordwrap="char"/>
  370. <Cell col="46" text="잔량반납확인&#10;약사" wordwrap="char"/>
  371. <Cell col="47" text="prcpno"/>
  372. <Cell col="48" text="prcphistno"/>
  373. <Cell col="49" text="drugdd"/>
  374. <Cell col="50" text="drugno"/>
  375. <Cell col="51" text="ioflag"/>
  376. <Cell col="52" text="instcd"/>
  377. <Cell col="53" text="narcflag"/>
  378. <Cell col="54" text="prntflag"/>
  379. <Cell col="55" text="orddd"/>
  380. <Cell col="56" text="orddeptcd"/>
  381. <Cell col="57" text="prcpgenrflag"/>
  382. <Cell col="58" text="prntdt"/>
  383. <Cell col="59" text="caption1"/>
  384. <Cell col="60" text="반납반환&#10;표시여부"/>
  385. <Cell col="61" text="투약기록&#10;완료여부"/>
  386. <Cell col="62" text="간호&#10;실시횟수"/>
  387. <Cell col="63" text="간호&#10;반환횟수"/>
  388. <Cell col="64" text="투약x반환불가&#10;횟수"/>
  389. <Cell col="65"/>
  390. </Band>
  391. <Band id="body">
  392. <Cell style="align:center top;padding:4 2 3 2;background2:#f0f0f0ff;" text="bind:drugcd" wordwrap="char" autosizerow="limitmin"/>
  393. <Cell col="1" style="align:left top;padding:4 2 3 2;background2:#f0f0f0ff;" text="bind:infg" wordwrap="char" mask="expr:utlf_isNull(prcpdd) || prcpdd=='-' ? '' : '####/##/##'" autosizerow="limitmin"/>
  394. <Cell col="2" displaytype="text" style="align:center top;padding:4 2 3 2;background2:#f0f0f0ff;" text="bind:histdt" wordwrap="char" autosizerow="limitmin"/>
  395. <Cell col="3" style="align:left top;padding:4 2 3 2;background2:#f0f0f0ff;" text="bind:gtin" wordwrap="char" autosizerow="limitmin"/>
  396. <Cell col="4" style="align:left top;padding:4 2 3 2;background2:#f0f0f0ff;" text="bind:prd_valid_de" wordwrap="char" autosizerow="limitmin"/>
  397. <Cell col="5" displaytype="text" style="align:left top;padding:4 2 3 2;background2:#f0f0f0ff;" text="bind:mnf_no" wordwrap="char" autosizerow="limitmin"/>
  398. <Cell col="6" displaytype="text" style="align:left top;padding:4 2 1 2;background2:#f0f0f0ff;" text="bind:mnf_seq" wordwrap="char" autosizerow="limitmin"/>
  399. <Cell col="7" colspan="2" style="background2:#f0f0f0ff;" text="bind:seq" taborder="undefined">
  400. <Cell style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:seq"/>
  401. <Cell col="1" style="background2:#f0f0f0ff;" text="bind:prcpqtyunit"/>
  402. </Cell>
  403. <Cell col="9" colspan="2" style="background2:#f0f0f0ff;" text="bind:prd_sgtin" taborder="undefined">
  404. <Cell style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:dayprcpqty"/>
  405. <Cell col="1" style="background2:#f0f0f0ff;" text="bind:dayprcpqtyunit"/>
  406. </Cell>
  407. <Cell col="11" colspan="2" style="background2:#f0f0f0ff;" text="bind:storge_no" taborder="undefined">
  408. <Cell style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:prcpqty2"/>
  409. <Cell col="1" style="background2:#f0f0f0ff;" text="bind:prcpqtyunit2"/>
  410. </Cell>
  411. <Cell col="13" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:prd_min_distb_qy"/>
  412. <Cell col="14" style="background2:#f0f0f0ff;" text="bind:prd_min_distb_unit"/>
  413. <Cell col="15" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:prd_tot_pce_qy"/>
  414. <Cell col="16" style="background2:#f0f0f0ff;" text="bind:prd_pce_unit"/>
  415. <Cell col="17" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:in_pce_qy"/>
  416. <Cell col="18" colspan="2" style="background2:#f0f0f0ff;" text="bind:indd" taborder="undefined">
  417. <Cell style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:spreqty"/>
  418. <Cell col="1" style="background2:#f0f0f0ff;" text="bind:prcpvolunit"/>
  419. </Cell>
  420. <Cell col="20" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:rtnqty" mask="99999999999"/>
  421. <Cell col="21" style="background2:#f0f0f0ff;" text="bind:rtnunit"/>
  422. <Cell col="22" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:returnqty"/>
  423. <Cell col="23" style="background2:#f0f0f0ff;" text="bind:prcpqtyunit"/>
  424. <Cell col="24" style="background2:#f0f0f0ff;" text="bind:reqdt" mask="expr:utlf_isNull(reqdt) || reqdt=='-' ? '' : '####/##/## ##:##'"/>
  425. <Cell col="25" style="background2:#f0f0f0ff;" text="bind:reqidnm"/>
  426. <Cell col="26" style="background2:#f0f0f0ff;" text="bind:prcpdt" mask="expr:utlf_isNull(prcpdt) || prcpdt=='-' ? '' : '####/##/## ##:##'"/>
  427. <Cell col="27" style="background2:#f0f0f0ff;" text="bind:prcpidnm"/>
  428. <Cell col="28" style="background2:#f0f0f0ff;" text="bind:drugdt" mask="expr:utlf_isNull(drugdt) || drugdt=='-' ? '' : '####/##/## ##:##'"/>
  429. <Cell col="29" style="background2:#f0f0f0ff;" text="bind:drugidnm"/>
  430. <Cell col="30" style="background2:#f0f0f0ff;" text="bind:delivedt" mask="expr:utlf_isNull(delivedt) || delivedt=='-' ? '' : '####/##/##'"/>
  431. <Cell col="31" style="background2:#f0f0f0ff;" text="bind:deliveidnm"/>
  432. <Cell col="32" style="background2:#f0f0f0ff;" text="bind:acptdt" mask="expr:utlf_isNull(acptdt) || acptdt=='-' ? '' : '####/##/## ##:##'"/>
  433. <Cell col="33" style="background2:#f0f0f0ff;" text="bind:acptidnm"/>
  434. <Cell col="34" style="background2:#f0f0f0ff;" text="bind:nrexecdt" mask="expr:utlf_isNull(nrexecdt) || nrexecdt=='-' ? '' : '####/##/## ##:##'"/>
  435. <Cell col="35" style="background2:#f0f0f0ff;" text="bind:nrexecridnm"/>
  436. <Cell col="36" style="background2:#f0f0f0ff;" text="bind:rtnappdt" mask="expr:utlf_isNull(rtnappdt) || rtnappdt=='-' ? '' : '####/##/## ##:##'"/>
  437. <Cell col="37" style="background2:#f0f0f0ff;" text="bind:rtnappidnm"/>
  438. <Cell col="38" style="background2:#f0f0f0ff;" text="bind:rtndt" mask="expr:utlf_isNull(rtndt) || rtndt=='-' ? '' : '####/##/##''"/>
  439. <Cell col="39" style="background2:#f0f0f0ff;" text="bind:rtnidnm"/>
  440. <Cell col="40" style="background2:#f0f0f0ff;" text="bind:rtncnfmdt" mask="expr:utlf_isNull(rtncnfmdt) || rtncnfmdt=='-' ? '' : '####/##/## ##:##'"/>
  441. <Cell col="41" style="background2:#f0f0f0ff;" text="bind:rtncnfmidnm"/>
  442. <Cell col="42" displaytype="text" style="background2:#f0f0f0ff;" text="bind:rtnresn"/>
  443. <Cell col="43" style="background2:#f0f0f0ff;" text="bind:spredt" mask="expr:utlf_isNull(spredt) || spredt=='-' ? '' : '####/##/## ##:##'"/>
  444. <Cell col="44" style="background2:#f0f0f0ff;" text="bind:spreidnm"/>
  445. <Cell col="45" style="background2:#f0f0f0ff;" text="bind:sprecnfmdt" mask="expr:utlf_isNull(sprecnfmdt) || sprecnfmdt=='-' ? '' : '####/##/## ##:##'"/>
  446. <Cell col="46" style="background2:#f0f0f0ff;" text="bind:sprecnfmidnm"/>
  447. <Cell col="47" text="bind:prcpno"/>
  448. <Cell col="48" text="bind:prcphistno"/>
  449. <Cell col="49" text="bind:drugdd"/>
  450. <Cell col="50" text="bind:drugno"/>
  451. <Cell col="51" text="bind:ioflag"/>
  452. <Cell col="52" text="bind:instcd"/>
  453. <Cell col="53" text="bind:narcflag"/>
  454. <Cell col="54" text="bind:prntflag"/>
  455. <Cell col="55" text="bind:orddd"/>
  456. <Cell col="56" text="bind:orddeptcd"/>
  457. <Cell col="57" text="bind:prcpgenrflag"/>
  458. <Cell col="58" text="bind:prntdt"/>
  459. <Cell col="59" text="bind:presqty2"/>
  460. <Cell col="60" text="bind:statvisible"/>
  461. <Cell col="61" text="bind:medrendyn"/>
  462. <Cell col="62" text="bind:medrqty"/>
  463. <Cell col="63" text="bind:medrtims"/>
  464. <Cell col="64" text="bind:medrx"/>
  465. <Cell col="65" text="bind:drugseqno"/>
  466. </Band>
  467. </Format>
  468. </Formats>
  469. </Grid>
  470. <Grid id="grd_narclist01" class="grd_orderlist" taborder="22" binddataset="ds_adnmstocorder" autoenter="key" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" cellclickbound="cell" onrbuttonup="switch1_case1_grd_narclist_onrbuttonup" onkeyup="switch1_grd_onkeyup" onheadclick="switch1_case1_grd_narclist_onheadclick" oncelldblclick="switch1_case1_grd_narclist_oncelldblclick" position="absolute 0 429 1195 714" anchor="all">
  471. <Formats>
  472. <Format id="default">
  473. <Columns>
  474. <Column size="27" band="left"/>
  475. <Column size="77" band="left"/>
  476. <Column size="151" band="left"/>
  477. <Column size="106" band="left"/>
  478. <Column size="167" band="left"/>
  479. <Column size="90" band="left"/>
  480. <Column size="140"/>
  481. <Column size="96"/>
  482. <Column size="56"/>
  483. <Column size="59"/>
  484. <Column size="110"/>
  485. <Column size="65"/>
  486. <Column size="66"/>
  487. <Column size="65"/>
  488. <Column size="40"/>
  489. <Column size="40"/>
  490. </Columns>
  491. <Rows>
  492. <Row size="30" band="head"/>
  493. <Row size="22"/>
  494. </Rows>
  495. <Band id="head">
  496. <Cell/>
  497. <Cell col="1" text="처방&#10;코드" wordwrap="char"/>
  498. <Cell col="2" text="이력일시" wordwrap="char"/>
  499. <Cell col="3" text="LabelNo"/>
  500. <Cell col="4" text="제품번호" wordwrap="char"/>
  501. <Cell col="5" text="유효기간" wordwrap="char"/>
  502. <Cell col="6" text="제조번호" wordwrap="char"/>
  503. <Cell col="7" text="일련번호" wordwrap="char"/>
  504. <Cell col="8" text="seq" wordwrap="char" taborder="undefined"/>
  505. <Cell col="9" text="불출유무"/>
  506. <Cell col="10" text="불출일자"/>
  507. <Cell col="11"/>
  508. <Cell col="12"/>
  509. <Cell col="13" text="불출유무"/>
  510. <Cell col="14"/>
  511. <Cell col="15"/>
  512. </Band>
  513. <Band id="body">
  514. <Cell celltype="head" text="expr:currow + 1"/>
  515. <Cell col="1" style="align:center top;padding:4 2 3 2;background2:#f0f0f0ff;" text="bind:drugcd" wordwrap="char" autosizerow="limitmin"/>
  516. <Cell col="2" displaytype="text" style="align:center top;padding:4 2 3 2;background2:#f0f0f0ff;" text="bind:histdt" wordwrap="char" autosizerow="limitmin"/>
  517. <Cell col="3" text="bind:labelno" mask="@@@@-@@-@@ @@@"/>
  518. <Cell col="4" style="align:left top;padding:4 2 3 2;background2:#f0f0f0ff;" text="bind:gtin" wordwrap="char" autosizerow="limitmin"/>
  519. <Cell col="5" style="align:left top;padding:4 2 3 2;background2:#f0f0f0ff;" text="bind:prd_valid_de" wordwrap="char" autosizerow="limitmin"/>
  520. <Cell col="6" displaytype="text" style="align:left top;padding:4 2 3 2;background2:#f0f0f0ff;" text="bind:mnf_no" wordwrap="char" autosizerow="limitmin"/>
  521. <Cell col="7" displaytype="text" style="align:left top;padding:4 2 1 2;background2:#f0f0f0ff;" text="bind:mnf_seq" wordwrap="char" autosizerow="limitmin"/>
  522. <Cell col="8" style="background2:#f0f0f0ff;" text="bind:seq" taborder="undefined">
  523. <Cell style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:seq"/>
  524. </Cell>
  525. <Cell col="9" text="bind:fnshfg"/>
  526. <Cell col="10" text="bind:outdd"/>
  527. <Cell col="11" text="bind:instcd"/>
  528. <Cell col="12" text="bind:infg"/>
  529. <Cell col="13" text="bind:fnshfg"/>
  530. <Cell col="14"/>
  531. <Cell col="15"/>
  532. </Band>
  533. </Format>
  534. <Format id="format_copy"/>
  535. </Formats>
  536. </Grid>
  537. <Button id="but_ok" taborder="23" text="승인" position="absolute 1135 402 1195 424" class="btn4" onclick="but_ok_onclick" onkeyup="but_ok_onkeyup" anchor="top right"/>
  538. <Shape id="line03" class="line_10" position="absolute 0 218 1195 224" anchor="left top right"/>
  539. </Layout>
  540. </Layouts>
  541. <Bind>
  542. <BindItem id="item0" compid="group2.ipt_barcode" propid="value" datasetid="ds_srchbarcode" columnid="barcode"/>
  543. <BindItem id="item1" compid="opt_pid" propid="value" datasetid="ds_main_prntlist_patinfo" columnid="pid"/>
  544. <BindItem id="item2" compid="opt_orddeptcd" propid="value" datasetid="ds_main_prntlist_patinfo" columnid="orddeptnm"/>
  545. <BindItem id="item3" compid="opt_orddrid" propid="value" datasetid="ds_main_prntlist_patinfo" columnid="medispclidnm"/>
  546. <BindItem id="item4" compid="opt_hngnm" propid="value" datasetid="ds_main_prntlist_patinfo" columnid="patnm"/>
  547. <BindItem id="item5" compid="output1" propid="value" datasetid="ds_main_prntlist_patinfo" columnid="prcpdd"/>
  548. <BindItem id="item6" compid="opt_licenseno" propid="value" datasetid="ds_main_prntlist_patinfo" columnid="medispclid_licnsno"/>
  549. <BindItem id="item7" compid="opt_sex" propid="value" datasetid="ds_main_prntlist_patinfo" columnid="sex"/>
  550. <BindItem id="item8" compid="output4" propid="value" datasetid="ds_main_prntlist_patinfo" columnid="rrgstno"/>
  551. <BindItem id="item9" compid="output3" propid="value" datasetid="ds_main_prntlist_patinfo" columnid="addr"/>
  552. <BindItem id="item10" compid="opt_age" propid="value" datasetid="ds_main_prntlist_patinfo" columnid="age"/>
  553. <BindItem id="item12" compid="SMADT12000" propid="text" datasetid="ds_main_prntlist_patinfo" columnid=""/>
  554. <BindItem id="item11" compid="opt_diagnm" propid="value" datasetid="ds_main_prntlist_diaginfo" columnid="diagcd1"/>
  555. <BindItem id="item13" compid="opt_drugno" propid="value" datasetid="ds_finddrugno" columnid="drugno"/>
  556. </Bind>
  557. <Objects>
  558. <Dataset id="ds_srchbarcode" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  559. <ColumnInfo>
  560. <Column id="barcode" type="STRING" size="256"/>
  561. </ColumnInfo>
  562. <Rows>
  563. <Row/>
  564. </Rows>
  565. </Dataset>
  566. <Dataset id="ds_senddata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  567. <ColumnInfo>
  568. <Column id="type" type="STRING" size="256"/>
  569. <Column id="ioflag" type="STRING" size="256"/>
  570. <Column id="prcpdd" type="STRING" size="256"/>
  571. <Column id="prcpno" type="STRING" size="256"/>
  572. </ColumnInfo>
  573. <Rows>
  574. <Row/>
  575. </Rows>
  576. </Dataset>
  577. <Dataset id="ds_finddrugno" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  578. <ColumnInfo>
  579. <Column id="pid" type="STRING" size="256"/>
  580. <Column id="drugdd" type="STRING" size="256"/>
  581. <Column id="drugno" type="STRING" size="256"/>
  582. <Column id="prcpno" type="STRING" size="256"/>
  583. <Column id="ioflag" type="STRING" size="256"/>
  584. <Column id="prcphistno" type="STRING" size="256"/>
  585. <Column id="drugseqno" type="STRING" size="256"/>
  586. <Column id="drugkind" type="STRING" size="256"/>
  587. <Column id="drugflag" type="STRING" size="256"/>
  588. <Column id="drugstat" type="STRING" size="256"/>
  589. </ColumnInfo>
  590. <Rows>
  591. <Row/>
  592. </Rows>
  593. </Dataset>
  594. <Dataset id="ds_send_prntinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  595. <Dataset id="ds_main_prntlist_patinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  596. <ColumnInfo>
  597. <Column id="pid" type="STRING" size="256"/>
  598. <Column id="orddd" type="STRING" size="256"/>
  599. <Column id="prcpdd" type="STRING" size="256"/>
  600. <Column id="drugfl" type="STRING" size="256"/>
  601. <Column id="rcprcpdd" type="STRING" size="256"/>
  602. <Column id="prcpno" type="STRING" size="256"/>
  603. <Column id="prcphistno" type="STRING" size="256"/>
  604. <Column id="drugdd" type="STRING" size="256"/>
  605. <Column id="drugno" type="STRING" size="256"/>
  606. <Column id="sumdt" type="STRING" size="256"/>
  607. <Column id="orddrnm" type="STRING" size="256"/>
  608. <Column id="orddeptnm" type="STRING" size="256"/>
  609. <Column id="wardnm" type="STRING" size="256"/>
  610. <Column id="roomcd" type="STRING" size="256"/>
  611. <Column id="isdeptcdnm" type="STRING" size="256"/>
  612. <Column id="sex" type="STRING" size="256"/>
  613. <Column id="age" type="STRING" size="256"/>
  614. <Column id="patbdwt" type="STRING" size="256"/>
  615. <Column id="patbdht" type="STRING" size="256"/>
  616. <Column id="patnm" type="STRING" size="256"/>
  617. <Column id="rrgstno" type="STRING" size="256"/>
  618. <Column id="addr" type="STRING" size="256"/>
  619. <Column id="medispclidnm" type="STRING" size="256"/>
  620. <Column id="medispclid_licnsno" type="STRING" size="256"/>
  621. <Column id="atdoctidnm" type="STRING" size="256"/>
  622. <Column id="atdoctid_licnsno" type="STRING" size="256"/>
  623. </ColumnInfo>
  624. <Rows>
  625. <Row/>
  626. </Rows>
  627. </Dataset>
  628. <Dataset id="ds_main_prntlist_diaginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  629. <ColumnInfo>
  630. <Column id="diagcd1" type="STRING" size="512"/>
  631. <Column id="diagcd" type="STRING" size="256"/>
  632. <Column id="icd10cd" type="STRING" size="256"/>
  633. </ColumnInfo>
  634. </Dataset>
  635. <Dataset id="ds_main_narclist_narclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  636. <Dataset id="ds_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  637. <Dataset id="ds_send_stoc" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  638. <ColumnInfo>
  639. <Column id="drugcd" type="STRING" size="256"/>
  640. <Column id="storge_no" type="STRING" size="256"/>
  641. <Column id="prcpno" type="STRING" size="256"/>
  642. </ColumnInfo>
  643. <Rows>
  644. <Row/>
  645. </Rows>
  646. </Dataset>
  647. <Dataset id="ds_adnmstoclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  648. <ColumnInfo>
  649. <column id="instcd" type="STRING" size="256"/>
  650. <column id="drugcd" type="STRING" size="256"/>
  651. <column id="infg" type="STRING" size="256"/>
  652. <column id="histdt" type="STRING" size="256"/>
  653. <column id="gtin" type="STRING" size="256"/>
  654. <column id="prd_valid_de" type="STRING" size="256"/>
  655. <column id="mnf_no" type="STRING" size="256"/>
  656. <column id="mnf_seq" type="STRING" size="256"/>
  657. <column id="seq" type="STRING" size="256"/>
  658. <column id="prd_sgtin" type="STRING" size="256"/>
  659. <column id="storge_no" type="STRING" size="256"/>
  660. <column id="prtm_se_nm" type="STRING" size="256"/>
  661. <column id="prd_min_distb_qy" type="STRING" size="256"/>
  662. <column id="prd_min_distb_unit" type="STRING" size="256"/>
  663. <column id="prd_tot_pce_qy" type="STRING" size="256"/>
  664. <column id="prd_pce_unit" type="STRING" size="256"/>
  665. <column id="in_pce_qy" type="STRING" size="256"/>
  666. <column id="indd" type="STRING" size="256"/>
  667. <column id="opp_bssh_cd" type="STRING" size="256"/>
  668. <column id="opp_bssh_nm" type="STRING" size="256"/>
  669. <column id="opp_storge_no" type="STRING" size="256"/>
  670. <column id="in_dtl_cd" type="STRING" size="256"/>
  671. <column id="in_trnsfe_se_cd" type="STRING" size="256"/>
  672. <column id="out_fg" type="STRING" size="256"/>
  673. <column id="out_pce_qy" type="STRING" size="256"/>
  674. <column id="fnshfg" type="STRING" size="256"/>
  675. <column id="prcpno" type="STRING" size="256"/>
  676. <column id="drugdd" type="STRING" size="256"/>
  677. <column id="drugno" type="STRING" size="256"/>
  678. <column id="ioflag" type="STRING" size="256"/>
  679. <column id="drugseqno" type="STRING" size="256"/>
  680. <column id="pat_id_no_ty_cd" type="STRING" size="256"/>
  681. <column id="pat_id_no" type="STRING" size="256"/>
  682. <column id="pat_in" type="STRING" size="256"/>
  683. <column id="lcns_asort_cd" type="STRING" size="256"/>
  684. <column id="lcns_no" type="STRING" size="256"/>
  685. <column id="prsc_doc_nm" type="STRING" size="256"/>
  686. <column id="prsc_ord_no" type="STRING" size="256"/>
  687. <column id="diss_code" type="STRING" size="256"/>
  688. <column id="once_qy" type="STRING" size="256"/>
  689. <column id="ade_cnt" type="STRING" size="256"/>
  690. <column id="tot_dcnt" type="STRING" size="256"/>
  691. <column id="sum_qy" type="STRING" size="256"/>
  692. <column id="aft_dsuse_qy" type="STRING" size="256"/>
  693. <column id="dsuse_se_cd" type="STRING" size="256"/>
  694. <column id="dsuse_prv_cd" type="STRING" size="256"/>
  695. <column id="dsuse_mth_cd" type="STRING" size="256"/>
  696. <column id="dsuse_loc" type="STRING" size="256"/>
  697. <column id="dsuse_de" type="STRING" size="256"/>
  698. <column id="dsuse_instt_cd" type="STRING" size="256"/>
  699. <column id="dsuse_doc_de" type="STRING" size="256"/>
  700. <column id="outdd" type="STRING" size="256"/>
  701. <column id="out_bssh_cd" type="STRING" size="256"/>
  702. <column id="out_bssh_nm" type="STRING" size="256"/>
  703. <column id="out_storge_no" type="STRING" size="256"/>
  704. <column id="out_dtl_cd" type="STRING" size="256"/>
  705. <column id="out_trnsfr_se_cd" type="STRING" size="256"/>
  706. <column id="insendfg" type="STRING" size="256"/>
  707. <column id="outsendfg" type="STRING" size="256"/>
  708. <Column id="indt" type="STRING" size="256"/>
  709. <Column id="outdt" type="STRING" size="256"/>
  710. </ColumnInfo>
  711. <Rows>
  712. <Row/>
  713. </Rows>
  714. </Dataset>
  715. <Dataset id="ds_adnmstocorder" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  716. <ColumnInfo>
  717. <column id="instcd" type="STRING" size="256"/>
  718. <column id="drugcd" type="STRING" size="256"/>
  719. <column id="infg" type="STRING" size="256"/>
  720. <column id="histdt" type="STRING" size="256"/>
  721. <column id="gtin" type="STRING" size="256"/>
  722. <column id="prd_valid_de" type="STRING" size="256"/>
  723. <column id="mnf_no" type="STRING" size="256"/>
  724. <column id="mnf_seq" type="STRING" size="256"/>
  725. <column id="seq" type="STRING" size="256"/>
  726. <column id="prd_sgtin" type="STRING" size="256"/>
  727. <column id="storge_no" type="STRING" size="256"/>
  728. <column id="prtm_se_nm" type="STRING" size="256"/>
  729. <column id="prd_min_distb_qy" type="STRING" size="256"/>
  730. <column id="prd_min_distb_unit" type="STRING" size="256"/>
  731. <column id="prd_tot_pce_qy" type="STRING" size="256"/>
  732. <column id="prd_pce_unit" type="STRING" size="256"/>
  733. <column id="in_pce_qy" type="STRING" size="256"/>
  734. <column id="indd" type="STRING" size="256"/>
  735. <column id="opp_bssh_cd" type="STRING" size="256"/>
  736. <column id="opp_bssh_nm" type="STRING" size="256"/>
  737. <column id="opp_storge_no" type="STRING" size="256"/>
  738. <column id="in_dtl_cd" type="STRING" size="256"/>
  739. <column id="in_trnsfe_se_cd" type="STRING" size="256"/>
  740. <column id="out_fg" type="STRING" size="256"/>
  741. <column id="out_pce_qy" type="STRING" size="256"/>
  742. <column id="fnshfg" type="STRING" size="256"/>
  743. <column id="prcpno" type="STRING" size="256"/>
  744. <column id="drugdd" type="STRING" size="256"/>
  745. <column id="drugno" type="STRING" size="256"/>
  746. <column id="ioflag" type="STRING" size="256"/>
  747. <column id="drugseqno" type="STRING" size="256"/>
  748. <column id="pat_id_no_ty_cd" type="STRING" size="256"/>
  749. <column id="pat_id_no" type="STRING" size="256"/>
  750. <column id="pat_in" type="STRING" size="256"/>
  751. <column id="lcns_asort_cd" type="STRING" size="256"/>
  752. <column id="lcns_no" type="STRING" size="256"/>
  753. <column id="prsc_doc_nm" type="STRING" size="256"/>
  754. <column id="prsc_ord_no" type="STRING" size="256"/>
  755. <column id="diss_code" type="STRING" size="256"/>
  756. <column id="once_qy" type="STRING" size="256"/>
  757. <column id="ade_cnt" type="STRING" size="256"/>
  758. <column id="tot_dcnt" type="STRING" size="256"/>
  759. <column id="sum_qy" type="STRING" size="256"/>
  760. <column id="aft_dsuse_qy" type="STRING" size="256"/>
  761. <column id="dsuse_se_cd" type="STRING" size="256"/>
  762. <column id="dsuse_prv_cd" type="STRING" size="256"/>
  763. <column id="dsuse_mth_cd" type="STRING" size="256"/>
  764. <column id="dsuse_loc" type="STRING" size="256"/>
  765. <column id="dsuse_de" type="STRING" size="256"/>
  766. <column id="dsuse_instt_cd" type="STRING" size="256"/>
  767. <column id="dsuse_doc_de" type="STRING" size="256"/>
  768. <column id="outdd" type="STRING" size="256"/>
  769. <column id="out_bssh_cd" type="STRING" size="256"/>
  770. <column id="out_bssh_nm" type="STRING" size="256"/>
  771. <column id="out_storge_no" type="STRING" size="256"/>
  772. <column id="out_dtl_cd" type="STRING" size="256"/>
  773. <column id="out_trnsfr_se_cd" type="STRING" size="256"/>
  774. <column id="insendfg" type="STRING" size="256"/>
  775. <column id="outsendfg" type="STRING" size="256"/>
  776. <Column id="labelno" type="STRING" size="256"/>
  777. <Column id="Column0" type="STRING" size="256"/>
  778. <Column id="Column1" type="STRING" size="256"/>
  779. </ColumnInfo>
  780. <Rows>
  781. <Row/>
  782. </Rows>
  783. </Dataset>
  784. <Dataset id="ds_sendstocupdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  785. <ColumnInfo>
  786. <Column id="instcd" type="STRING" size="255" value=""/>
  787. <Column id="infg" type="STRING" size="255" value=""/>
  788. <Column id="histdt" type="STRING" size="255" value=""/>
  789. <Column id="gtin" type="STRING" size="255" value=""/>
  790. <Column id="prd_valid_de" type="STRING" size="255" value=""/>
  791. <Column id="mnf_no" type="STRING" size="255" value=""/>
  792. <Column id="mnf_seq" type="STRING" size="255" value=""/>
  793. <Column id="seq" type="STRING" size="255" value=""/>
  794. <Column id="prcpno" type="STRING" size="255" value=""/>
  795. <Column id="drugdd" type="STRING" size="255" value=""/>
  796. <Column id="drugno" type="STRING" size="255" value=""/>
  797. <Column id="ioflag" type="STRING" size="255" value=""/>
  798. <Column id="drugseqno" type="STRING" size="255" value=""/>
  799. <Column id="pat_id_no_ty_cd" type="STRING" size="255" value=""/>
  800. <Column id="pat_id_no" type="STRING" size="255" value=""/>
  801. <Column id="pat_nm" type="STRING" size="255" value=""/>
  802. <Column id="lcns_asort_cd" type="STRING" size="255" value=""/>
  803. <Column id="lcns_no" type="STRING" size="255" value=""/>
  804. <Column id="prsc_doc_nm" type="STRING" size="255" value=""/>
  805. <Column id="prsc_ord_no" type="STRING" size="255" value=""/>
  806. <Column id="diss_code" type="STRING" size="255" value=""/>
  807. <Column id="once_qy" type="STRING" size="255" value=""/>
  808. <Column id="ade_cnt" type="STRING" size="255" value=""/>
  809. <Column id="tot_dcnt" type="STRING" size="255" value=""/>
  810. <Column id="sum_qy" type="STRING" size="255" value=""/>
  811. </ColumnInfo>
  812. <Rows>
  813. <Row/>
  814. </Rows>
  815. </Dataset>
  816. </Objects>
  817. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  818. * System Name :
  819. * Job Name :
  820. * Creator :
  821. * Make Date : 2018-03-08
  822. * Description :
  823. ****************************************************************************************/
  824. //=======================================================================================
  825. // Lib Include
  826. //---------------------------------------------------------------------------------------
  827. include "com_commonxp::comm_main.xjs"
  828. include "ast_commonxp::AST.xjs"
  829. var Arstorge_no ;
  830. function SMADT12000_oninit(obj:Form, e:InitEventInfo)
  831. {
  832. frmf_initForm(obj); // 폼 초기화
  833. // if ( Vdeptcd == '3240300000') {
  834. // Arstorge_no = "S0002";
  835. // } else if ( Vdeptcd == '3240400000') {
  836. // Arstorge_no = "S0003";
  837. // } else if ( Vdeptcd == '3240807000') {
  838. // Arstorge_no = "S0004";
  839. // } else {
  840. // Arstorge_no = "S0002";
  841. // }
  842. }
  843. function SMADT12000_onload(obj:Form, e:LoadEventInfo)
  844. {
  845. /*ds_srchbarcode.clearData(); */
  846. ds_adnmstocorder
  847. }
  848. function group2_ipt_barcode_onkeydown(obj:Edit, e:KeyEventInfo)
  849. {
  850. if(e.keycode == 13) {
  851. obj.updateToDataset();
  852. var srchbarcode = "";
  853. var barcodetype = "";
  854. var barcodeinout = "";
  855. var barcodeprcpdd = "";
  856. var barcodeprcpno = "";
  857. srchbarcode = ds_srchbarcode.getColumn(0, "barcode");
  858. barcodetype = srchbarcode.substr(1,1);
  859. barcodeinout = srchbarcode.substr(2,1);
  860. barcodeprcpdd = srchbarcode.substr(3,8);
  861. barcodeprcpno = srchbarcode.substr(11,10);
  862. barcodeprcpno = parseFloat(barcodeprcpno);
  863. //alert(barcodetype);
  864. //alert(barcodeinout);
  865. //alert(barcodeprcpdd);
  866. //alert(barcodeprcpno);
  867. ds_senddata.setColumn(0,"type" , barcodetype);
  868. ds_senddata.setColumn(0,"ioflag" , barcodeinout);
  869. ds_senddata.setColumn(0,"prcpdd" , barcodeprcpdd);
  870. ds_senddata.setColumn(0,"prcpno" , barcodeprcpno);
  871. var oParam = {};
  872. oParam.id = "TRADT12000";
  873. oParam.service = "pharmacydrugsumapp.NarcManagent";
  874. oParam.method = "reqGetNarcPatList";
  875. oParam.inds = "req=ds_senddata";
  876. oParam.outds = "ds_finddrugno=patdata";
  877. oParam.async = false;
  878. tranf_submit(oParam);
  879. //////환자 정보찾기
  880. ds_send_prntinfo.clear();
  881. dsf_copyColInfo(ds_send_prntinfo,ds_finddrugno);
  882. ds_send_prntinfo.addRow();
  883. var Fpid = ds_finddrugno.getColumn(0,"pid");
  884. var Fdrugdd = ds_finddrugno.getColumn(0,"drugdd");
  885. var Fprcpdd = ds_finddrugno.getColumn(0,"prcpdd");
  886. var Forddd = ds_finddrugno.getColumn(0,"orddd");
  887. var Fdrugno = ds_finddrugno.getColumn(0,"drugno");
  888. var Fprcpno = ds_finddrugno.getColumn(0,"prcpno");
  889. var Fioflag = ds_finddrugno.getColumn(0,"ioflag");
  890. var Fprcphistno = ds_finddrugno.getColumn(0,"prcphistno");
  891. var Fdrugseqno = ds_finddrugno.getColumn(0,"drugseqno");
  892. var Fdrugkind = ds_finddrugno.getColumn(0,"drugkind");
  893. var Fdrugflag = ds_finddrugno.getColumn(0,"drugflag");
  894. var Fdrugstat = ds_finddrugno.getColumn(0,"drugstat");
  895. ds_send_prntinfo.setColumn(0,"pid" , Fpid );
  896. ds_send_prntinfo.setColumn(0,"drugdd" , Fdrugdd );
  897. ds_send_prntinfo.setColumn(0,"prcpdd" , Fprcpdd );
  898. ds_send_prntinfo.setColumn(0,"orddd" , Forddd );
  899. ds_send_prntinfo.setColumn(0,"drugno" , Fdrugno );
  900. ds_send_prntinfo.setColumn(0,"prcpno" , Fprcpno );
  901. ds_send_prntinfo.setColumn(0,"ioflag" , Fioflag );
  902. ds_send_prntinfo.setColumn(0,"prcphistno" , Fprcphistno );
  903. ds_send_prntinfo.setColumn(0,"drugseqno" , Fdrugseqno );
  904. var oParam = {};
  905. oParam.id = "TRADT30103";
  906. oParam.service = "pharmacyprescriptionapp.Narcotics";
  907. oParam.method = "reqGetNarcPrntData";
  908. oParam.inds = "req=ds_send_prntinfo";
  909. oParam.outds = "ds_main_prntlist_patinfo=patinfo ds_main_prntlist_diaginfo=diaginfo ds_main_prntlist_prntlist=prntlist ds_main_prntlist_resn=resn";
  910. oParam.async = false;
  911. //oParam.callback = "cf_TRADT30103";
  912. tranf_submit(oParam);
  913. ds_req.clear();
  914. dsf_createDsRow("ds_req", [
  915. {col:"narcflag", type:"STRING", size:256, val: Fdrugkind}
  916. , {col:"timeflag", type:"STRING", size:256, val:'2'}
  917. , {col:"fst_dd", type:"STRING", size:256, val:Fdrugdd}
  918. , {col:"last_dd", type:"STRING", size:256, val:Fdrugdd}
  919. , {col:"srchdrugkind", type:"STRING", size:256, val:Fdrugkind}
  920. , {col:"srchioflag", type:"STRING", size:256, val:Fioflag}
  921. , {col:"drugflag", type:"STRING", size:256, val:Fdrugflag}
  922. , {col:"srchroot", type:"STRING", size:256, val:""}
  923. , {col:"narcstat", type:"STRING", size:256, val:""}
  924. , {col:"cnclstat", type:"STRING", size:256, val:""}
  925. , {col:"rtnstat", type:"STRING", size:256, val:""}
  926. , {col:"nodeliveflag", type:"STRING", size:256, val:""}
  927. , {col:"narctype", type:"STRING", size:256, val:""}
  928. , {col:"pid", type:"STRING", size:256, val:Fpid}
  929. , {col:"ward", type:"STRING", size:256, val:""}
  930. , {col:"srchdrugno", type:"STRING", size:256, val:Fdrugno}
  931. , {col:"barcode", type:"STRING", size:256, val:srchbarcode}
  932. , {col:"narccd", type:"STRING", size:256, val:""}
  933. , {col:"barcode_2", type:"STRING", size:256, val:""}
  934. , {col:"srchdeptcd", type:"STRING", size:256, val:""}
  935. , {col:"srchprcpkind", type:"STRING", size:256, val:""}
  936. , {col:"srchprcpkindall", type:"STRING", size:256, val:""}
  937. , {col:"prntdt", type:"STRING", size:256, val:""}
  938. , {col:"issdeptcd", type:"STRING", size:256, val:""}
  939. , {col:"selkey", type:"STRING", size:256, val:""}
  940. , {col:"kuflag", type:"STRING", size:256, val:"Y"}
  941. , {col:"prcpno", type:"STRING", size:256, val:Fprcpno}
  942. , {col:"barcodeflag", type:"STRING", size:256, val:"Y"}
  943. ]);
  944. var oParam = {};
  945. oParam.id = "TRADT30102";
  946. oParam.service = "pharmacyprescriptionapp.Narcotics";
  947. oParam.method = "reqGetNarcData";
  948. oParam.inds = "req=ds_req";
  949. oParam.outds = "ds_main_narclist_narclist=narclist";
  950. oParam.async = false;
  951. // oParam.callback = "cf_TRADT30102";
  952. tranf_submit(oParam);
  953. for(var i = 0; i < ds_main_narclist_narclist.rowcount ; i++){
  954. var sPrcpcd = ds_main_narclist_narclist.getColumn(i, "prcpcd"); // 처방코드명
  955. var sPrcpno = ds_main_narclist_narclist.getColumn(i, "prcpno"); // 처방코드명
  956. var sTotdrugqty = parseInt(ds_main_narclist_narclist.getColumn(i, "totdrugqty")); // 처방코드명
  957. // alert(sPrcpcd);
  958. ds_send_stoc.setColumn(0,"drugcd" , sPrcpcd );
  959. ds_send_stoc.setColumn(0,"storge_no" , Arstorge_no );
  960. ds_send_stoc.setColumn(0,"prcpno" , sPrcpno );
  961. var oParam = {};
  962. oParam.id = "TRADT12001";
  963. oParam.service = "pharmacydrugsumapp.NarcManagent";
  964. oParam.method = "reqGetNarcStocList";
  965. oParam.inds = "req=ds_send_stoc";
  966. oParam.outds = "ds_adnmstoclist=stocdata";
  967. oParam.async = false;
  968. tranf_submit(oParam);
  969. }
  970. ds_adnmstocorder.clearData();
  971. for(var k = 0; k < sTotdrugqty ; k++){
  972. ds_adnmstocorder.copyRow(ds_adnmstocorder.addRow(), ds_adnmstoclist, k);
  973. }
  974. }
  975. }
  976. function but_ok_onclick(obj:Button, e:ClickEventInfo)
  977. {
  978. // alert(ds_adnmstocorder.rowcount);
  979. for(var q = 0; q < ds_adnmstocorder.rowcount ; q++){
  980. var sFnshfg = ds_adnmstocorder.getColumn(q, "fnshfg");
  981. var sInstcd = ds_adnmstocorder.getColumn(q, "instcd");
  982. var sInfg = ds_adnmstocorder.getColumn(q, "infg");
  983. var sHistdt = ds_adnmstocorder.getColumn(q, "histdt");
  984. var sGtin = ds_adnmstocorder.getColumn(q, "gtin");
  985. var sPrd_valid_de = ds_adnmstocorder.getColumn(q, "prd_valid_de");
  986. var sMnf_no = ds_adnmstocorder.getColumn(q, "mnf_no");
  987. var sMnf_seq = ds_adnmstocorder.getColumn(q, "mnf_seq");
  988. var sSeq = ds_adnmstocorder.getColumn(q, "seq");
  989. var sPrcpno = ds_main_narclist_narclist.getColumn(0, "prcpno");
  990. var sDrugdd = ds_main_narclist_narclist.getColumn(0, "drugdd");
  991. var sDrugno = ds_main_narclist_narclist.getColumn(0, "drugno");
  992. var sIoflag = ds_main_narclist_narclist.getColumn(0, "ioflag");
  993. var sDrugseqno = ds_main_narclist_narclist.getColumn(0, "drugseqno");
  994. var sOnce_qty = parseInt(ds_main_narclist_narclist.getColumn(0, "prcpqty"));
  995. var sAde_cnt = parseInt(ds_main_narclist_narclist.getColumn(0, "prcptims"));
  996. var sTot_dcnt = parseInt(ds_main_narclist_narclist.getColumn(0, "prcpdayno"));
  997. var sSum_qy = parseInt(ds_main_narclist_narclist.getColumn(0, "totdrugqty"));
  998. alert(sOnce_qty + ':' + sAde_cnt + ':' + sTot_dcnt + ':' + sTot_dcnt);
  999. var sPat_id_no = ds_main_prntlist_patinfo.getColumn(0, "pid");
  1000. var sPat_nm = ds_main_prntlist_patinfo.getColumn(0, "patnm");
  1001. var sLcns_no = ds_main_prntlist_patinfo.getColumn(0, "medispclid_licnsno");
  1002. var sPrsc_doc_nm = ds_main_prntlist_patinfo.getColumn(0, "medispclidnm");
  1003. var sprsc_ord_no = ds_main_prntlist_patinfo.getColumn(0, "drugno");
  1004. var sDiss_code = ds_main_prntlist_diaginfo.getColumn(0, "diagcd1");
  1005. sDiss_code = sDiss_code.substr(1,6);
  1006. //trace(ds_sendstocupdata.saveXML());
  1007. if ( sFnshfg == '1' ) {
  1008. alert("이미 등록된 데이타 등록하지 않습니다.!")
  1009. } else {
  1010. ds_sendstocupdata.clearData();
  1011. ds_sendstocupdata.addRow();
  1012. ds_sendstocupdata.setColumn(0,"instcd" , sInstcd );
  1013. ds_sendstocupdata.setColumn(0,"infg" , sInfg );
  1014. ds_sendstocupdata.setColumn(0,"histdt" , sHistdt );
  1015. ds_sendstocupdata.setColumn(0,"gtin" , sGtin );
  1016. ds_sendstocupdata.setColumn(0,"prd_valid_de" , sPrd_valid_de );
  1017. ds_sendstocupdata.setColumn(0,"mnf_no" , sMnf_no );
  1018. ds_sendstocupdata.setColumn(0,"mnf_seq" , sMnf_seq );
  1019. ds_sendstocupdata.setColumn(0,"seq" , sSeq);
  1020. ds_sendstocupdata.setColumn(0,"prcpno" , sPrcpno );
  1021. ds_sendstocupdata.setColumn(0,"drugdd" , sDrugdd );
  1022. ds_sendstocupdata.setColumn(0,"drugno" , sDrugno);
  1023. ds_sendstocupdata.setColumn(0,"ioflag" , sIoflag);
  1024. ds_sendstocupdata.setColumn(0,"drugseqno" , sDrugseqno );
  1025. ds_sendstocupdata.setColumn(0,"pat_id_no_ty_cd" , "" );
  1026. ds_sendstocupdata.setColumn(0,"pat_id_no" , sPat_id_no );
  1027. ds_sendstocupdata.setColumn(0,"pat_nm" , sPat_nm );
  1028. ds_sendstocupdata.setColumn(0,"lcns_asort_cd" , "" );
  1029. ds_sendstocupdata.setColumn(0,"lcns_no" , sLcns_no );
  1030. ds_sendstocupdata.setColumn(0,"prsc_doc_nm" , sPrsc_doc_nm );
  1031. ds_sendstocupdata.setColumn(0,"prsc_ord_no" , sprsc_ord_no );
  1032. ds_sendstocupdata.setColumn(0,"diss_code" , sDiss_code );
  1033. ds_sendstocupdata.setColumn(0,"once_qy" , sOnce_qty );
  1034. ds_sendstocupdata.setColumn(0,"ade_cnt" , sAde_cnt);
  1035. ds_sendstocupdata.setColumn(0,"tot_dcnt" , sTot_dcnt );
  1036. ds_sendstocupdata.setColumn(0,"sum_qy" , sSum_qy );
  1037. var oParam = {};
  1038. oParam.id = "TXADT12001";
  1039. oParam.service = "pharmacydrugsumapp.NarcManagent";
  1040. oParam.method = "reqGetStocUpDate";
  1041. oParam.inds = "req=ds_sendstocupdata";
  1042. //oParam.outds = "ds_adnmstoclist=stocdata";
  1043. oParam.async = false;
  1044. tranf_submit(oParam);
  1045. }
  1046. }
  1047. }
  1048. function group2_Button00_onclick(obj:Button, e:ClickEventInfo)
  1049. {
  1050. frmf_modal("SMADT12010", "SMADT12010", null, null, null, null, null, null, null, null, null, null, "M");
  1051. }
  1052. function group2_Button01_onclick(obj:Button, e:ClickEventInfo)
  1053. {
  1054. frmf_modal("SMADT12005", "SMADT12005", null, null, null, null, null, null, null, null, null, null, "M");
  1055. }
  1056. function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  1057. {
  1058. }
  1059. function group2_ipt_barcode00_onkeydown(obj:Edit, e:KeyEventInfo)
  1060. {
  1061. if(e.keycode == 13) {
  1062. obj.updateToDataset();
  1063. var srchbarcode_1 = "";
  1064. var barcode_gtin = "";
  1065. var barcode_date = "";
  1066. var barcode_seq = "";
  1067. var barcode_jaejo = "";
  1068. var barcodeflag = 'N' ;
  1069. var barcodestart = 'N' ;
  1070. var barcode_one ="";
  1071. var barcode_two ="";
  1072. var barcode_str ="";
  1073. var s_qq = 0 ;
  1074. var srchbarcode_1 = ds_srchbarcode.getColumn(0, "barcode");
  1075. var barcode_length = srchbarcode_1.length;
  1076. //alert(barcode_length)
  1077. if (barcode_length > 14) {
  1078. barcode_gtin = srchbarcode_1.substr(2,14);
  1079. barcode_two = srchbarcode_1.substr(16,2)
  1080. if ( barcode_two == "17" ) {
  1081. barcode_date = srchbarcode_1.substr(18,6);
  1082. s_qq = 24
  1083. for(var qq = s_qq; qq < barcode_length ; qq++){
  1084. barcode_one = srchbarcode_1.substr(qq,1);
  1085. barcode_two = srchbarcode_1.substr(qq - 1,2);
  1086. if ( barcode_two == "10" ) {
  1087. // alert(qq);
  1088. for(var ww = qq + 1 ; ww < barcode_length ; ww++){
  1089. barcode_one = srchbarcode_1.substr(ww,1);
  1090. // alert (barcode_one + barcodeflag);
  1091. if (barcode_one == "[" ) {
  1092. barcodeflag = 'Y' ;
  1093. s_qq = ww;
  1094. }else{
  1095. if ( barcodeflag == 'N' ) {
  1096. barcode_str = barcode_str + barcode_one ;
  1097. }
  1098. barcode_jaejo = barcode_str ;
  1099. }
  1100. }
  1101. }
  1102. }
  1103. for(var ww = s_qq + 6 ; ww < barcode_length ; ww++){
  1104. barcode_one = srchbarcode_1.substr(ww,1);
  1105. barcode_seq = barcode_seq + barcode_one
  1106. }
  1107. }
  1108. if ( barcode_two == "21") {
  1109. barcodeflag = 'N';
  1110. //alert("22코드");
  1111. for(var ww = 18 ; ww < barcode_length ; ww++){
  1112. barcode_one = srchbarcode_1.substr(ww,1);
  1113. if (barcode_one == "[" ) {
  1114. barcodeflag = 'Y' ;
  1115. s_qq = ww;
  1116. }else{
  1117. if ( barcodeflag == 'N' ) {
  1118. barcode_str = barcode_str + barcode_one ;
  1119. }
  1120. barcode_seq = barcode_str ;
  1121. }
  1122. }
  1123. // alert(s_qq);
  1124. for(var ww = s_qq + 5 ; ww < barcode_length ; ww++){
  1125. barcode_one = srchbarcode_1.substr(ww,1);
  1126. barcode_two = srchbarcode_1.substr(ww - 1,2);
  1127. // alert(barcode_two);
  1128. if ( barcode_two == "17" ) {
  1129. barcode_date = srchbarcode_1.substr(ww+1,6);
  1130. barcode_str = "";
  1131. for(var qq = ww + 9 ; qq < barcode_length ; qq++){
  1132. barcode_one = srchbarcode_1.substr(qq,1);
  1133. barcode_str = barcode_str + barcode_one ;
  1134. }
  1135. barcode_jaejo = barcode_str ;
  1136. }
  1137. }
  1138. }
  1139. }
  1140. alert (barcode_gtin + ' : ' + barcode_date +' : ' +barcode_jaejo +' : ' + barcode_seq);
  1141. // barcodetype_1 = srchbarcode.substr(1,1);
  1142. // barcodeinout_1 = srchbarcode.substr(2,1);
  1143. // barcodeprcpdd_1 = srchbarcode.substr(3,8);
  1144. // barcodeprcpno_1 = srchbarcode.substr(11,10);
  1145. // barcodeprcpno_1 = parseFloat(barcodeprcpno);
  1146. }
  1147. }
  1148. function group2_Button02_onclick(obj:Button, e:ClickEventInfo)
  1149. {
  1150. frmf_modal("SMADT12006", "SMADT12006", null, null, null, null, null, null, null, null, null, null, "M");
  1151. }
  1152. ]]></Script>
  1153. </Form>
  1154. </FDL>