SMADT12005_통합마약마감.xfdl 85 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585
  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 1196 934" titletext="New Form" oninit="SMADT12005_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Shape id="line05" class="line_10" position="absolute 0 802 1195 808" anchor="left right bottom"/>
  8. <Shape id="line03" class="line_10" position="absolute 0 582 605 588" anchor="left bottom"/>
  9. <Shape id="line04" class="line_10" position="absolute 608 582 1195 588" anchor="left right bottom"/>
  10. <Shape id="line01" class="line_10" position="absolute 676 411 1195 417" anchor="right bottom"/>
  11. <Shape id="line00" class="line_10" position="absolute 676 89 1195 95" anchor="top right"/>
  12. <Static id="caption6" text=" 통합 마약 마감 관리" class="tit_1" position="absolute 0 0 160 25" onclick="caption6_onclick"/>
  13. <Static id="caption00" text="마감데이타 현황" class="tit_2" position="absolute 0 73 172 94"/>
  14. <Div id="grp_srch" taborder="29" class="div_SA" position="absolute 0 25 1195 65" anchor="left top right">
  15. <Layouts>
  16. <Layout width="776" height="31">
  17. <Calendar id="Calendar00" taborder="0" position="absolute 84 11 176 31" anchor="default" autoselect="true" dateformat="yyyy-MM-dd" value="null"/>
  18. <Static id="Static00" text="마감일자 :" position="absolute 7 15 86 27" style="font:Dotum,9,bold;" anchor="default" class="search_name"/>
  19. <Radio id="radio2" taborder="1" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 412 11 680 31" style="textpadding:0 10 0 3;font:Dotum,9,bold;" onitemclick="grp_srch_radio2_onitemclick" anchor="default" index="-1">
  20. <Dataset id="innerdataset">
  21. <ColumnInfo>
  22. <Column id="codecolumn" size="256"/>
  23. <Column id="datacolumn" size="256"/>
  24. </ColumnInfo>
  25. <Rows>
  26. <Row>
  27. <Col id="codecolumn">T</Col>
  28. <Col id="datacolumn">전체</Col>
  29. </Row>
  30. <Row>
  31. <Col id="codecolumn">O</Col>
  32. <Col id="datacolumn">조제신규보고</Col>
  33. </Row>
  34. <Row>
  35. <Col id="codecolumn">R</Col>
  36. <Col id="datacolumn">취소수정보고</Col>
  37. </Row>
  38. </Rows>
  39. </Dataset>
  40. </Radio>
  41. <Static id="Static02" text="구분 :" position="absolute 358 15 405 27" style="font:Dotum,9,bold;" anchor="default" class="search_name"/>
  42. <Static id="Static01" text="type :" position="absolute 190 15 237 27" style="font:Dotum,9,bold;" anchor="default" class="search_name"/>
  43. <Radio id="Rad_type" taborder="2" columncount="0" rowcount="1" position="absolute 244 13 355 29" onitemclick="grp_srch_Radio00_onitemclick" codecolumn="codecolumn" datacolumn="datacolumn" style="font:Dotum,9,bold;" anchor="default">
  44. <Dataset id="innerdataset">
  45. <ColumnInfo>
  46. <Column id="codecolumn" size="256"/>
  47. <Column id="datacolumn" size="256"/>
  48. </ColumnInfo>
  49. <Rows>
  50. <Row>
  51. <Col id="codecolumn">중점</Col>
  52. <Col id="datacolumn">중점</Col>
  53. </Row>
  54. <Row>
  55. <Col id="codecolumn">일반</Col>
  56. <Col id="datacolumn">일반</Col>
  57. </Row>
  58. </Rows>
  59. </Dataset>
  60. </Radio>
  61. </Layout>
  62. </Layouts>
  63. </Div>
  64. <Button id="btn_sea" taborder="30" text="조회" class="btn1" position="absolute 1118 34 1186 56" onclick="btn_sea_onclick" anchor="top right"/>
  65. <Button id="btn_sea00" taborder="34" text="마감" class="btn4" position="absolute 718 34 772 56" onclick="btn_sea00_onclick" anchor="top right"/>
  66. <Button id="btn_sea01" taborder="35" text="마감 삭제" class="btn4" position="absolute 858 34 943 56" onclick="btn_sea01_onclick" visible="true" anchor="top right"/>
  67. <Grid id="grd_daypatlist00" class="grd_daypatlist" taborder="36" binddataset="ds_ref_adnmpmmrlist" autoenter="key" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" cellclickbound="cell" onrbuttonup="switch1_case1_grd_narclist_onrbuttonup" oncelldblclick="grd_daypatlist_oncelldblclick" position="absolute 0 807 1195 933" anchor="left right bottom">
  68. <Formats>
  69. <Format id="default">
  70. <Columns>
  71. <Column size="29" band="left"/>
  72. <Column size="62"/>
  73. <Column size="31"/>
  74. <Column size="145"/>
  75. <Column size="145"/>
  76. <Column size="80"/>
  77. <Column size="268"/>
  78. <Column size="122"/>
  79. <Column size="119"/>
  80. <Column size="81"/>
  81. <Column size="59"/>
  82. <Column size="57"/>
  83. </Columns>
  84. <Rows>
  85. <Row size="30" band="head"/>
  86. <Row size="24"/>
  87. </Rows>
  88. <Band id="head">
  89. <Cell text="순번"/>
  90. <Cell col="1" text="마감일자"/>
  91. <Cell col="2" text="구분"/>
  92. <Cell col="3" text="헤드정보"/>
  93. <Cell col="4" text="상세정보"/>
  94. <Cell col="5" text="처방코드"/>
  95. <Cell col="6" text="제품명" wordwrap="char"/>
  96. <Cell col="7" text="제조번호" wordwrap="char"/>
  97. <Cell col="8" text="일련번호"/>
  98. <Cell col="9" text="등록번호"/>
  99. <Cell col="10" text="투약번호"/>
  100. <Cell col="11" text="총수량"/>
  101. </Band>
  102. <Band id="body">
  103. <Cell celltype="head" text="expr:currow + 1"/>
  104. <Cell col="1" text="bind:hdr_de"/>
  105. <Cell col="2" displaytype="combo" style="align:center;" text="bind:rpt_ty_cd" combodataset="ds_rptcdtynm" combocodecol="CD" combodatacol="CDNM"/>
  106. <Cell col="3" text="bind:usr_rpt_id_no"/>
  107. <Cell col="4" text="bind:usr_rpt_ln_id_no"/>
  108. <Cell col="5" style="align:left;" text="bind:drugcd"/>
  109. <Cell col="6" displaytype="text" edittype="normal" style="align:left top;padding:4 2 3 2;" text="bind:prduct_nm" wordwrap="char" autosizerow="limitmin"/>
  110. <Cell col="7" style="align:left top;padding:4 2 3 2;" text="bind:mnf_no" wordwrap="char" autosizerow="limitmin"/>
  111. <Cell col="8" style="align:left;" text="bind:mnf_seq"/>
  112. <Cell col="9" displaytype="text" text="bind:pid"/>
  113. <Cell col="10" displaytype="text" edittype="text" style="align:middle;" text="bind:drugno" wordwrap="char"/>
  114. <Cell col="11" text="bind:pce_qy"/>
  115. </Band>
  116. </Format>
  117. </Formats>
  118. </Grid>
  119. <Grid id="grd_hismagamlist" class="grd_hismagamlist" taborder="37" binddataset="ds_hismagamlist" autoenter="key" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" cellclickbound="cell" onrbuttonup="switch1_case1_grd_narclist_onrbuttonup" position="absolute 676 94 1195 411" anchor="top right bottom" oncelldblclick="grd_hismagamlist_oncelldblclick" autofittype="col">
  120. <Formats>
  121. <Format id="default">
  122. <Columns>
  123. <Column size="27" band="left"/>
  124. <Column size="86"/>
  125. <Column size="54"/>
  126. <Column size="65"/>
  127. <Column size="59"/>
  128. <Column size="62"/>
  129. <Column size="76"/>
  130. <Column size="49"/>
  131. <Column size="49"/>
  132. </Columns>
  133. <Rows>
  134. <Row size="30" band="head"/>
  135. <Row size="24"/>
  136. </Rows>
  137. <Band id="head">
  138. <Cell text="순번"/>
  139. <Cell col="1" text="처방코드"/>
  140. <Cell col="2" text="투약번호"/>
  141. <Cell col="3" text="등록번호"/>
  142. <Cell col="4" text="성명"/>
  143. <Cell col="5" text="상병코드"/>
  144. <Cell col="6" text="반환일"/>
  145. <Cell col="7" text="불출량"/>
  146. <Cell col="8" text="보고량"/>
  147. </Band>
  148. <Band id="body">
  149. <Cell celltype="head" text="expr:currow + 1"/>
  150. <Cell col="1" displaytype="normal" style="align:left;background:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');background2:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');color:EXPR(bogocnt != deliveqty ? 'red' : '');color2:EXPR(bogocnt != deliveqty ? 'red' : '');font:EXPR(bogocnt != deliveqty ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:drugcd"/>
  151. <Cell col="2" displaytype="text" edittype="text" style="background:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');background2:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');color:EXPR(bogocnt != deliveqty ? 'red' : '');color2:EXPR(bogocnt != deliveqty ? 'red' : '');font:EXPR(bogocnt != deliveqty ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:drugno"/>
  152. <Cell col="3" style="background:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');background2:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');color:EXPR(bogocnt != deliveqty ? 'red' : '');color2:EXPR(bogocnt != deliveqty ? 'red' : '');font:EXPR(bogocnt != deliveqty ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:pid"/>
  153. <Cell col="4" style="background:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');background2:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');color:EXPR(bogocnt != deliveqty ? 'red' : '');color2:EXPR(bogocnt != deliveqty ? 'red' : '');font:EXPR(bogocnt != deliveqty ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:hngnm"/>
  154. <Cell col="5" style="background:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');background2:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');color:EXPR(bogocnt != deliveqty ? 'red' : '');color2:EXPR(bogocnt != deliveqty ? 'red' : '');font:EXPR(bogocnt != deliveqty ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:diagcd"/>
  155. <Cell col="6" style="background:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');background2:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');color:EXPR(bogocnt != deliveqty ? 'red' : '');color2:EXPR(bogocnt != deliveqty ? 'red' : '');font:EXPR(bogocnt != deliveqty ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:rtnenddd"/>
  156. <Cell col="7" style="align:center;background:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');background2:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');color:EXPR(bogocnt != deliveqty ? 'red' : '');color2:EXPR(bogocnt != deliveqty ? 'red' : '');font:EXPR(bogocnt != deliveqty ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:deliveqty"/>
  157. <Cell col="8" style="align:center;background:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');background2:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');color:EXPR(bogocnt != deliveqty ? 'red' : '');color2:EXPR(bogocnt != deliveqty ? 'red' : '');font:EXPR(bogocnt != deliveqty ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:bogocnt"/>
  158. </Band>
  159. </Format>
  160. </Formats>
  161. </Grid>
  162. <Button id="btn_histri" taborder="38" text="HIS마감조회" class="btn1" position="absolute 1008 34 1115 56" onclick="btn_histri_onclick" anchor="top right"/>
  163. <Grid id="grd_daypatlist02" class="grd_daypatlist" taborder="39" binddataset="ds_hismagamsum" autoenter="key" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" cellclickbound="cell" onrbuttonup="switch1_case1_grd_narclist_onrbuttonup" position="absolute 608 587 1195 802" anchor="left right bottom" oncelldblclick="grd_daypatlist02_oncelldblclick">
  164. <Formats>
  165. <Format id="default">
  166. <Columns>
  167. <Column size="23" band="left"/>
  168. <Column size="81"/>
  169. <Column size="235"/>
  170. <Column size="60"/>
  171. <Column size="60"/>
  172. <Column size="60"/>
  173. <Column size="60"/>
  174. </Columns>
  175. <Rows>
  176. <Row size="30" band="head"/>
  177. <Row size="24"/>
  178. </Rows>
  179. <Band id="head">
  180. <Cell text="순번"/>
  181. <Cell col="1" text="처방코드"/>
  182. <Cell col="2" text="처방명"/>
  183. <Cell col="3" text="불출량+"/>
  184. <Cell col="4" text="불출량-"/>
  185. <Cell col="5" text="보고량+"/>
  186. <Cell col="6" text="보고량-"/>
  187. </Band>
  188. <Band id="body">
  189. <Cell celltype="head" text="expr:currow + 1"/>
  190. <Cell col="1" displaytype="normal" style="align:left;background:EXPR(ordqty != outqtyp || ordqtym != outqtym ? 'gainsboro' : '');background2:EXPR(ordqty != outqtyp || ordqtym != outqtym ? 'gainsboro' : '');color:EXPR(ordqty != outqtyp || ordqtym != outqtym ? 'red' : '');color2:EXPR(ordqty != outqtyp || ordqtym != outqtym ? 'red' : '');font:EXPR(ordqty != outqtyp || ordqtym != outqtym ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:drugcd"/>
  191. <Cell col="2" displaytype="text" edittype="text" style="background:EXPR(ordqty != outqtyp || ordqtym != outqtym ? 'gainsboro' : '');background2:EXPR(ordqty != outqtyp || ordqtym != outqtym ? 'gainsboro' : '');color:EXPR(ordqty != outqtyp || ordqtym != outqtym ? 'red' : '');color2:EXPR(ordqty != outqtyp || ordqtym != outqtym ? 'red' : '');font:EXPR(ordqty != outqtyp || ordqtym != outqtym ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:drugnm"/>
  192. <Cell col="3" style="align:center;background:EXPR(ordqty != outqtyp || ordqtym != outqtym ? 'gainsboro' : '');background2:EXPR(ordqty != outqtyp || ordqtym != outqtym ? 'gainsboro' : '');color:EXPR(ordqty != outqtyp || ordqtym != outqtym ? 'red' : '');color2:EXPR(ordqty != outqtyp || ordqtym != outqtym ? 'red' : '');font:EXPR(ordqty != outqtyp ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:ordqty"/>
  193. <Cell col="4" style="background:EXPR(ordqty != outqtyp || ordqtym != outqtym ? 'gainsboro' : '');background2:EXPR(ordqty != outqtyp || ordqtym != outqtym ? 'gainsboro' : '');color:EXPR(ordqty != outqtyp || ordqtym != outqtym ? 'red' : '');color2:EXPR(ordqty != outqtyp || ordqtym != outqtym ? 'red' : '');font:EXPR(ordqtym != outqtym ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:ordqtym"/>
  194. <Cell col="5" style="background:EXPR(ordqty != outqtyp || ordqtym != outqtym ? 'gainsboro' : '');background2:EXPR(ordqty != outqtyp || ordqtym != outqtym ? 'gainsboro' : '');color:EXPR(ordqty != outqtyp || ordqtym != outqtym ? 'red' : '');color2:EXPR(ordqty != outqtyp || ordqtym != outqtym ? 'red' : '');font:EXPR(ordqty != outqtyp ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:outqtyp"/>
  195. <Cell col="6" style="background:EXPR(ordqty != outqtyp || ordqtym != outqtym ? 'gainsboro' : '');background2:EXPR(ordqty != outqtyp || ordqtym != outqtym ? 'gainsboro' : '');color:EXPR(ordqty != outqtyp || ordqtym != outqtym ? 'red' : '');color2:EXPR(ordqty != outqtyp || ordqtym != outqtym ? 'red' : '');font:EXPR(ordqtym != outqtym ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:outqtym"/>
  196. </Band>
  197. </Format>
  198. </Formats>
  199. </Grid>
  200. <Grid id="grd_daypatlist03" class="grd_daypatlist" taborder="40" binddataset="ds_hispmmrsum" autoenter="key" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" cellclickbound="cell" onrbuttonup="switch1_case1_grd_narclist_onrbuttonup" oncelldblclick="grd_daypatlist_oncelldblclick" position="absolute 0 587 605 802" anchor="left bottom">
  201. <Formats>
  202. <Format id="default">
  203. <Columns>
  204. <Column size="23" band="left"/>
  205. <Column size="39"/>
  206. <Column size="95"/>
  207. <Column size="384"/>
  208. <Column size="56"/>
  209. </Columns>
  210. <Rows>
  211. <Row size="30" band="head"/>
  212. <Row size="24"/>
  213. </Rows>
  214. <Band id="head">
  215. <Cell text="순번"/>
  216. <Cell col="1" text="구분"/>
  217. <Cell col="2" text="처방코드"/>
  218. <Cell col="3" text="처방명"/>
  219. <Cell col="4" text="불출량"/>
  220. </Band>
  221. <Band id="body">
  222. <Cell celltype="head" text="expr:currow + 1"/>
  223. <Cell col="1" text="bind:narcflag"/>
  224. <Cell col="2" displaytype="normal" style="align:left;" text="bind:drugcd"/>
  225. <Cell col="3" displaytype="text" edittype="text" text="bind:prduct_nm"/>
  226. <Cell col="4" style="align:center;" text="bind:ordqty"/>
  227. </Band>
  228. </Format>
  229. </Formats>
  230. </Grid>
  231. <Grid id="grd_selstoclist" class="grd_orderlist" taborder="41" binddataset="ds_adnmstoclist" autoenter="key" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" cellclickbound="cell" onrbuttonup="switch1_case1_grd_narclist_onrbuttonup" position="absolute 1 807 1195 933" onheadclick="grd_selstoclist_onheadclick" anchor="left right bottom" onkeydown="grd_selstoclist_onkeydown">
  232. <Formats>
  233. <Format id="default">
  234. <Columns>
  235. <Column size="27" band="left"/>
  236. <Column size="68" band="left"/>
  237. <Column size="75" band="left"/>
  238. <Column size="54" band="left"/>
  239. <Column size="88" band="left"/>
  240. <Column size="103" band="left"/>
  241. <Column size="141" band="left"/>
  242. <Column size="70" band="left"/>
  243. <Column size="149"/>
  244. <Column size="109"/>
  245. <Column size="29"/>
  246. <Column size="25"/>
  247. <Column size="52"/>
  248. <Column size="73"/>
  249. <Column size="69"/>
  250. <Column size="68"/>
  251. </Columns>
  252. <Rows>
  253. <Row size="30" band="head"/>
  254. <Row size="22"/>
  255. </Rows>
  256. <Band id="head">
  257. <Cell/>
  258. <Cell col="1" text=" 등록번호"/>
  259. <Cell col="2" text="환자명"/>
  260. <Cell col="3" text="투약번호"/>
  261. <Cell col="4" text="처방&#10;코드" wordwrap="char"/>
  262. <Cell col="5" text="LabelNo"/>
  263. <Cell col="6" text="제품번호" wordwrap="char"/>
  264. <Cell col="7" text="유효기간" wordwrap="char"/>
  265. <Cell col="8" text="제조번호" wordwrap="char"/>
  266. <Cell col="9" text="일련번호" wordwrap="char"/>
  267. <Cell col="10" colspan="2" text="seq" taborder="undefined">
  268. <Cell text="seq" wordwrap="char" taborder="undefined"/>
  269. <Cell col="1"/>
  270. </Cell>
  271. <Cell col="12" text="잔량"/>
  272. <Cell col="13" text="불출일자"/>
  273. <Cell col="14" text="반환일자"/>
  274. <Cell col="15" text="잔량일자"/>
  275. </Band>
  276. <Band id="body">
  277. <Cell celltype="head" text="expr:currow + 1"/>
  278. <Cell col="1" style="background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:pid"/>
  279. <Cell col="2" style="background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:pat_nm"/>
  280. <Cell col="3" displaytype="text" style="background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:drugno"/>
  281. <Cell col="4" style="align:left;padding:4 2 3 2;" text="bind:drugcd" wordwrap="char" autosizerow="limitmin"/>
  282. <Cell col="5" text="bind:labelno" mask="@@@@-@@-@@ @@@"/>
  283. <Cell col="6" style="align:left top;padding:4 2 3 2;background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:gtin" wordwrap="char" autosizerow="limitmin"/>
  284. <Cell col="7" style="align:left top;padding:4 2 3 2;background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:prd_valid_de" wordwrap="char" autosizerow="limitmin"/>
  285. <Cell col="8" displaytype="text" style="align:left top;padding:4 2 3 2;background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:mnf_no" wordwrap="char" autosizerow="limitmin"/>
  286. <Cell col="9" displaytype="text" style="align:left top;padding:4 2 1 2;background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:mnf_seq" wordwrap="char" autosizerow="limitmin"/>
  287. <Cell col="10" style="background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:seq" taborder="undefined">
  288. <Cell style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:seq"/>
  289. </Cell>
  290. <Cell col="11" style="background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:histno"/>
  291. <Cell col="12" text="bind:spreqy"/>
  292. <Cell col="13" style="background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:outdd"/>
  293. <Cell col="14" style="background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:rtndd"/>
  294. <Cell col="15" style="background:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));background2:EXPR(EXPR( fnshfg == '1' ? 'yellow' : ''));" text="bind:spredd"/>
  295. </Band>
  296. </Format>
  297. <Format id="format_copy"/>
  298. <Format id="format_copy_2"/>
  299. </Formats>
  300. </Grid>
  301. <Grid id="grd_hismagamminlist" class="grd_hismagamminlist" taborder="42" binddataset="ds_hismagamminlist" autoenter="key" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" cellclickbound="cell" onrbuttonup="switch1_case1_grd_narclist_onrbuttonup" position="absolute 676 416 1195 582" anchor="right bottom" oncelldblclick="grd_hismagamminlist_oncelldblclick" autofittype="col">
  302. <Formats>
  303. <Format id="default">
  304. <Columns>
  305. <Column size="27" band="left"/>
  306. <Column size="86"/>
  307. <Column size="54"/>
  308. <Column size="65"/>
  309. <Column size="59"/>
  310. <Column size="62"/>
  311. <Column size="76"/>
  312. <Column size="49"/>
  313. <Column size="49"/>
  314. </Columns>
  315. <Rows>
  316. <Row size="30" band="head"/>
  317. <Row size="24"/>
  318. </Rows>
  319. <Band id="head">
  320. <Cell text="순번"/>
  321. <Cell col="1" text="처방코드"/>
  322. <Cell col="2" text="투약번호"/>
  323. <Cell col="3" text="등록번호"/>
  324. <Cell col="4" text="성명"/>
  325. <Cell col="5" text="상병코드"/>
  326. <Cell col="6" text="반환일"/>
  327. <Cell col="7" text="불출량"/>
  328. <Cell col="8" text="보고량"/>
  329. </Band>
  330. <Band id="body">
  331. <Cell celltype="head" text="expr:currow + 1"/>
  332. <Cell col="1" displaytype="normal" style="align:left;background:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');background2:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');color:EXPR(bogocnt != deliveqty ? 'red' : '');color2:EXPR(bogocnt != deliveqty ? 'red' : '');font:EXPR(bogocnt != deliveqty ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:drugcd"/>
  333. <Cell col="2" displaytype="text" edittype="text" style="background:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');background2:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');color:EXPR(bogocnt != deliveqty ? 'red' : '');color2:EXPR(bogocnt != deliveqty ? 'red' : '');font:EXPR(bogocnt != deliveqty ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:drugno"/>
  334. <Cell col="3" style="background:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');background2:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');color:EXPR(bogocnt != deliveqty ? 'red' : '');color2:EXPR(bogocnt != deliveqty ? 'red' : '');font:EXPR(bogocnt != deliveqty ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:pid"/>
  335. <Cell col="4" style="background:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');background2:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');color:EXPR(bogocnt != deliveqty ? 'red' : '');color2:EXPR(bogocnt != deliveqty ? 'red' : '');font:EXPR(bogocnt != deliveqty ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:hngnm"/>
  336. <Cell col="5" style="background:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');background2:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');color:EXPR(bogocnt != deliveqty ? 'red' : '');color2:EXPR(bogocnt != deliveqty ? 'red' : '');font:EXPR(bogocnt != deliveqty ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:diagcd"/>
  337. <Cell col="6" style="background:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');background2:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');color:EXPR(bogocnt != deliveqty ? 'red' : '');color2:EXPR(bogocnt != deliveqty ? 'red' : '');font:EXPR(bogocnt != deliveqty ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:rtnenddd"/>
  338. <Cell col="7" style="align:center;background:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');background2:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');color:EXPR(bogocnt != deliveqty ? 'red' : '');color2:EXPR(bogocnt != deliveqty ? 'red' : '');font:EXPR(bogocnt != deliveqty ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:deliveqty"/>
  339. <Cell col="8" style="align:center;background:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');background2:EXPR(bogocnt != deliveqty ? 'gainsboro' : '');color:EXPR(bogocnt != deliveqty ? 'red' : '');color2:EXPR(bogocnt != deliveqty ? 'red' : '');font:EXPR(bogocnt != deliveqty ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:bogocnt"/>
  340. </Band>
  341. </Format>
  342. </Formats>
  343. </Grid>
  344. <Button id="btn_trans" taborder="43" text="전송" class="btn4" position="absolute 946 34 1002 56" onclick="btn_trans_onclick" anchor="top right"/>
  345. <Button id="but_hisP" taborder="44" text="HIS마감+" position="absolute 936 67 1012 89" class="btn7" onclick="but_hisP_onclick" anchor="top right"/>
  346. <Button id="but_hisM" taborder="45" text="HIS마감-" class="btn7" position="absolute 1015 67 1091 89" onclick="but_hisM_onclick" anchor="top right"/>
  347. <Button id="but_hissum" taborder="46" text="HIS마감합계" class="btn7" position="absolute 1094 67 1195 89" onclick="but_hissum_onclick" anchor="top right"/>
  348. <Button id="but_nimsum" taborder="47" text=" 림스 보고 현황합계" class="btn7" position="absolute 340 67 480 89" onclick="but_nimsum_onclick"/>
  349. <Button id="but_nimlist" taborder="48" text=" 림스 보고 현황" class="btn7" position="absolute 220 67 336 89" onclick="but_nimlist_onclick"/>
  350. <Button id="Button00" taborder="49" position="absolute 624 69 647 89" onclick="Button00_onclick" anchor="top right" style="background:@gradation;" text="+"/>
  351. <Button id="Button01" taborder="50" text="-" position="absolute 650 69 673 89" onclick="Button01_onclick" anchor="top right"/>
  352. <Grid id="grd_daypatlist" class="grd_daypatlist" taborder="25" binddataset="ds_adnmpmmrlist" autoenter="key" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" cellclickbound="cell" onrbuttonup="switch1_case1_grd_narclist_onrbuttonup" position="absolute 0 94 673 582" anchor="all" oncelldblclick="grd_daypatlist_oncelldblclick" onkeydown="grd_daypatlist_onkeydown">
  353. <Formats>
  354. <Format id="default">
  355. <Columns>
  356. <Column size="29" band="left"/>
  357. <Column size="38"/>
  358. <Column size="132"/>
  359. <Column size="135"/>
  360. <Column size="113"/>
  361. <Column size="80"/>
  362. <Column size="198"/>
  363. <Column size="89"/>
  364. <Column size="133"/>
  365. <Column size="61"/>
  366. <Column size="51"/>
  367. <Column size="49"/>
  368. <Column size="47"/>
  369. <Column size="43"/>
  370. <Column size="42"/>
  371. <Column size="42"/>
  372. <Column size="47"/>
  373. <Column size="51"/>
  374. </Columns>
  375. <Rows>
  376. <Row size="30" band="head"/>
  377. <Row size="24"/>
  378. </Rows>
  379. <Band id="head">
  380. <Cell text="순번"/>
  381. <Cell col="1" text="구분"/>
  382. <Cell col="2" text="참조 헤드정보"/>
  383. <Cell col="3" text="신규 헤드정보"/>
  384. <Cell col="4" text="신규 상세정보"/>
  385. <Cell col="5" text="처방코드"/>
  386. <Cell col="6" text="제품명" wordwrap="char"/>
  387. <Cell col="7" text="제조번호" wordwrap="char"/>
  388. <Cell col="8" text="일련번호"/>
  389. <Cell col="9" text="등록번호"/>
  390. <Cell col="10" text="환자명"/>
  391. <Cell col="11" text="총처방량"/>
  392. <Cell col="12" text="일회량"/>
  393. <Cell col="13" text="일횟수"/>
  394. <Cell col="14" text="총일수"/>
  395. <Cell col="15" text="폐기량"/>
  396. <Cell col="16" text="투약번호"/>
  397. <Cell col="17" text="총수량"/>
  398. </Band>
  399. <Band id="body">
  400. <Cell celltype="head" text="expr:currow + 1"/>
  401. <Cell col="1" displaytype="combo" style="align:center;" text="bind:rpt_ty_cd" combodataset="ds_rptcdtynm" combocodecol="CD" combodatacol="CDNM"/>
  402. <Cell col="2" text="bind:ref_usr_rpt_id_no"/>
  403. <Cell col="3" text="bind:usr_rpt_id_no"/>
  404. <Cell col="4" text="bind:usr_rpt_ln_id_no"/>
  405. <Cell col="5" style="align:left;" text="bind:drugcd"/>
  406. <Cell col="6" displaytype="text" edittype="normal" style="align:left top;padding:4 2 3 2;" text="bind:prduct_nm" wordwrap="char" autosizerow="limitmin"/>
  407. <Cell col="7" style="align:left top;padding:4 2 3 2;" text="bind:mnf_no" wordwrap="char" autosizerow="limitmin"/>
  408. <Cell col="8" style="align:left;" text="bind:mnf_seq"/>
  409. <Cell col="9" displaytype="text" style="align:left;" text="bind:pid"/>
  410. <Cell col="10" text="bind:mdc_pat_nm"/>
  411. <Cell col="11" text="bind:mdc_sum_qy"/>
  412. <Cell col="12" text="bind:mdc_once_qy"/>
  413. <Cell col="13" text="bind:mdc_ade_cnt"/>
  414. <Cell col="14" text="bind:mdc_tot_dcnt"/>
  415. <Cell col="15" text="bind:mdc_aft_dsuse_qy"/>
  416. <Cell col="16" displaytype="text" edittype="text" style="align:middle;" text="bind:drugno" wordwrap="char"/>
  417. <Cell col="17" text="bind:pce_qy"/>
  418. </Band>
  419. </Format>
  420. </Formats>
  421. </Grid>
  422. <Button id="btn_seaall" taborder="51" text="마감전체" class="btn4" position="absolute 692 2 772 24" onclick="btn_seaall_onclick" anchor="top right" visible="false"/>
  423. <Grid id="grd_seldrugchk" class="grd_seldrugchk" taborder="52" binddataset="ds_drugchk" autoenter="key" useinputpanel="false" selecttype="multirow" cellsizingtype="col" cellsizebandtype="allband" cellclickbound="cell" onrbuttonup="switch1_case1_grd_narclist_onrbuttonup" position="absolute 676 94 1195 582" onheadclick="grd_seldrugchk_onheadclick" oncelldblclick="grd_seldrugchk_oncelldblclick" anchor="top right bottom">
  424. <Formats>
  425. <Format id="default">
  426. <Columns>
  427. <Column size="27" band="left"/>
  428. <Column size="81"/>
  429. <Column size="70"/>
  430. <Column size="77"/>
  431. <Column size="54"/>
  432. <Column size="60"/>
  433. <Column size="67"/>
  434. <Column size="41"/>
  435. <Column size="0"/>
  436. <Column size="41"/>
  437. </Columns>
  438. <Rows>
  439. <Row size="30" band="head"/>
  440. <Row size="22"/>
  441. <Row size="24" band="summ"/>
  442. </Rows>
  443. <Band id="head">
  444. <Cell/>
  445. <Cell col="1" text="처방코드"/>
  446. <Cell col="2" text=" 등록번호"/>
  447. <Cell col="3" text="환자명"/>
  448. <Cell col="4" text="투약번호"/>
  449. <Cell col="5" text="Prcpno"/>
  450. <Cell col="6" text="마감일자" wordwrap="char"/>
  451. <Cell col="7" text="처방량" wordwrap="char"/>
  452. <Cell col="8" wordwrap="char"/>
  453. <Cell col="9" text="보고량" wordwrap="char"/>
  454. </Band>
  455. <Band id="body">
  456. <Cell celltype="head" text="expr:currow + 1"/>
  457. <Cell col="1" style="background:EXPR(fnshfg == '1' ? 'yellow' : bogocnt != deliveqty ? 'gainsboro' : '');background2:EXPR(fnshfg == '1' ? 'yellow' : bogocnt != deliveqty ? 'gainsboro' : '');color2:EXPR(bogocnt != deliveqty ? 'red' : '');font:EXPR(bogocnt != deliveqty ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:drugcd"/>
  458. <Cell col="2" style="background:EXPR(fnshfg == '1' ? 'yellow' : bogocnt != deliveqty ? 'gainsboro' : '');background2:EXPR(fnshfg == '1' ? 'yellow' : bogocnt != deliveqty ? 'gainsboro' : '');color2:EXPR(bogocnt != deliveqty ? 'red' : '');font:EXPR(bogocnt != deliveqty ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:pid"/>
  459. <Cell col="3" style="background:EXPR(fnshfg == '1' ? 'yellow' : bogocnt != deliveqty ? 'gainsboro' : '');background2:EXPR(fnshfg == '1' ? 'yellow' : bogocnt != deliveqty ? 'gainsboro' : '');color2:EXPR(bogocnt != deliveqty ? 'red' : '');font:EXPR(bogocnt != deliveqty ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:hngnm"/>
  460. <Cell col="4" displaytype="text" edittype="text" style="background:EXPR(fnshfg == '1' ? 'yellow' : bogocnt != deliveqty ? 'gainsboro' : '');background2:EXPR(fnshfg == '1' ? 'yellow' : bogocnt != deliveqty ? 'gainsboro' : '');color2:EXPR(bogocnt != deliveqty ? 'red' : '');font:EXPR(bogocnt != deliveqty ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:drugno"/>
  461. <Cell col="5" displaytype="text" edittype="text" style="background:EXPR(fnshfg == '1' ? 'yellow' : bogocnt != deliveqty ? 'gainsboro' : '');background2:EXPR(fnshfg == '1' ? 'yellow' : bogocnt != deliveqty ? 'gainsboro' : '');color2:EXPR(bogocnt != deliveqty ? 'red' : '');font:EXPR(bogocnt != deliveqty ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:prcpno"/>
  462. <Cell col="6" style="align:center;padding:4 2 3 2;background:EXPR(fnshfg == '1' ? 'yellow' : bogocnt != deliveqty ? 'gainsboro' : '');background2:EXPR(fnshfg == '1' ? 'yellow' : bogocnt != deliveqty ? 'gainsboro' : '');color2:EXPR(bogocnt != deliveqty ? 'red' : '');font:EXPR(bogocnt != deliveqty ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:enddt" wordwrap="char" autosizerow="limitmin"/>
  463. <Cell col="7" style="align:center;padding:4 2 3 2;background:EXPR(fnshfg == '1' ? 'yellow' : bogocnt != deliveqty ? 'gainsboro' : '');background2:EXPR(fnshfg == '1' ? 'yellow' : bogocnt != deliveqty ? 'gainsboro' : '');color2:EXPR(bogocnt != deliveqty ? 'red' : '');font:EXPR(bogocnt != deliveqty ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:deliveqty" wordwrap="char" autosizerow="limitmin"/>
  464. <Cell col="8" displaytype="text" style="align:center;padding:4 2 3 2;background:EXPR(fnshfg == '1' ? 'yellow' : bogocnt != deliveqty ? 'gainsboro' : '');background2:EXPR(fnshfg == '1' ? 'yellow' : bogocnt != deliveqty ? 'gainsboro' : '');color2:EXPR(bogocnt != deliveqty ? 'red' : '');font:EXPR(bogocnt != deliveqty ? 'Dotum, 9, bold' : 'Dotum, 9');" text="/" subsumtext="/" wordwrap="char" autosizerow="limitmin"/>
  465. <Cell col="9" displaytype="text" style="align:center;padding:4 2 1 2;background:EXPR(fnshfg == '1' ? 'yellow' : bogocnt != deliveqty ? 'gainsboro' : '');background2:EXPR(fnshfg == '1' ? 'yellow' : bogocnt != deliveqty ? 'gainsboro' : '');color:EXPR(bogocnt != deliveqty ? 'red' : '');color2:EXPR(bogocnt != deliveqty ? 'red' : '');font:EXPR(bogocnt != deliveqty ? 'Dotum, 9, bold' : 'Dotum, 9');" text="bind:bogocnt" wordwrap="char" autosizerow="limitmin"/>
  466. </Band>
  467. <Band id="summary">
  468. <Cell/>
  469. <Cell col="1" text="합 계"/>
  470. <Cell col="2"/>
  471. <Cell col="3"/>
  472. <Cell col="4"/>
  473. <Cell col="5"/>
  474. <Cell col="6"/>
  475. <Cell col="7" expr="expr:getSum(&quot;deliveqty&quot;)"/>
  476. <Cell col="8"/>
  477. <Cell col="9" expr="expr:getSum(&quot;bogocnt&quot;)"/>
  478. </Band>
  479. </Format>
  480. <Format id="format_copy"/>
  481. <Format id="format_copy_2"/>
  482. </Formats>
  483. </Grid>
  484. <Shape id="line02" class="line_10" position="absolute 0 89 673 95" anchor="left top right"/>
  485. <Button id="btn_check" taborder="53" text="마감확인" class="btn4" position="absolute 775 34 855 56" anchor="top right" onclick="btn_check_onclick"/>
  486. </Layout>
  487. </Layouts>
  488. <Bind>
  489. <BindItem id="item0" compid="grp_srch.Calendar00" propid="value" datasetid="ds_senddata" columnid="magamdd"/>
  490. <BindItem id="item1" compid="grp_srch.radio2" propid="value" datasetid="ds_senddata" columnid="magamflag"/>
  491. <BindItem id="item2" compid="grp_srch.Rad_type" propid="value" datasetid="ds_senddata" columnid="typeflag"/>
  492. </Bind>
  493. <Objects>
  494. <Dataset id="ds_senddata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  495. <ColumnInfo>
  496. <Column id="instcd" type="STRING" size="256"/>
  497. <Column id="magamdd" type="STRING" size="256"/>
  498. <Column id="magamflag" type="STRING" size="256"/>
  499. <Column id="userid" type="STRING" size="256"/>
  500. <Column id="ioflag" type="STRING" size="256"/>
  501. <Column id="ref_usr_rpt_id_no" type="STRING" size="256"/>
  502. <Column id="workflag" type="STRING" size="256"/>
  503. <Column id="typeflag" type="STRING" size="256"/>
  504. </ColumnInfo>
  505. <Rows>
  506. <Row/>
  507. </Rows>
  508. </Dataset>
  509. <Dataset id="ds_adnmpmmrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  510. <ColumnInfo>
  511. <column id="instcd" type="STRING" size="256"/>
  512. <column id="bssh_uid" type="STRING" size="256"/>
  513. <column id="hdr_de" type="STRING" size="256"/>
  514. <column id="bssh_cd" type="STRING" size="256"/>
  515. <column id="rpt_se_cd" type="STRING" size="256"/>
  516. <column id="ref_usr_rpt_id_no" type="STRING" size="256"/>
  517. <column id="rpt_ty_cd" type="STRING" size="256"/>
  518. <column id="rmk" type="STRING" size="256"/>
  519. <column id="rptr_nm" type="STRING" size="256"/>
  520. <column id="rptr_entrps_nm" type="STRING" size="256"/>
  521. <column id="chrg_nm" type="STRING" size="256"/>
  522. <column id="chrg_tel_no" type="STRING" size="256"/>
  523. <column id="chrg_mp_no" type="STRING" size="256"/>
  524. <column id="rnd_dtl_rpt_cnt" type="STRING" size="256"/>
  525. <column id="mdc_pat_se_cd" type="STRING" size="256"/>
  526. <column id="mdc_pat_id_no_ty_cd" type="STRING" size="256"/>
  527. <column id="mdc_pat_id_no" type="STRING" size="256"/>
  528. <column id="mdc_pat_nm" type="STRING" size="256"/>
  529. <column id="mdc_hptl_no" type="STRING" size="256"/>
  530. <column id="mdc_instt_nm" type="STRING" size="256"/>
  531. <column id="mdc_lcns_asort_cd" type="STRING" size="256"/>
  532. <column id="mdc_lcns_no" type="STRING" size="256"/>
  533. <column id="mdc_prsc_doc_nm" type="STRING" size="256"/>
  534. <column id="mdc_prsc_ord_no" type="STRING" size="256"/>
  535. <column id="mdc_diss_code" type="STRING" size="256"/>
  536. <column id="mdc_ani_kind_se_cd" type="STRING" size="256"/>
  537. <column id="mdc_ani_cnt" type="STRING" size="256"/>
  538. <column id="mdc_ani_kind_nm" type="STRING" size="256"/>
  539. <column id="mdc_ani_diss_nm" type="STRING" size="256"/>
  540. <column id="atch_file_co" type="STRING" size="256"/>
  541. <column id="register_id" type="STRING" size="256"/>
  542. <column id="usr_rpt_id_no" type="STRING" size="256"/>
  543. <column id="usr_rpt_ln_id_no" type="STRING" size="256"/>
  544. <column id="storge_no" type="STRING" size="256"/>
  545. <column id="mvmn_ty_cd" type="STRING" size="256"/>
  546. <column id="prduct_cd" type="STRING" size="256"/>
  547. <column id="mnf_no" type="STRING" size="256"/>
  548. <column id="mnf_seq" type="STRING" size="256"/>
  549. <column id="prd_min_distb_unit" type="STRING" size="256"/>
  550. <column id="pce_qy" type="STRING" size="256"/>
  551. <column id="prd_pce_unit" type="STRING" size="256"/>
  552. <column id="prduct_nm" type="STRING" size="256"/>
  553. <column id="prd_sgtin" type="STRING" size="256"/>
  554. <column id="prd_min_distb_qy" type="STRING" size="256"/>
  555. <column id="prd_tot_pce_qy" type="STRING" size="256"/>
  556. <column id="prd_valid_de" type="STRING" size="256"/>
  557. <column id="mdc_sum_qy" type="STRING" size="256"/>
  558. <column id="mdc_once_qy" type="STRING" size="256"/>
  559. <column id="mdc_ade_cnt" type="STRING" size="256"/>
  560. <column id="mdc_tot_dcnt" type="STRING" size="256"/>
  561. <column id="mdc_aft_dsuse_qy" type="STRING" size="256"/>
  562. <column id="mdc_aft_dsuse_unit" type="STRING" size="256"/>
  563. <column id="file_creat_dt" type="STRING" size="256"/>
  564. <column id="file_creat_fg" type="STRING" size="256"/>
  565. <column id="file_name" type="STRING" size="256"/>
  566. <column id="fstrgstrid" type="STRING" size="256"/>
  567. <column id="fstrgstdt" type="STRING" size="256"/>
  568. <column id="lastupdtrid" type="STRING" size="256"/>
  569. <column id="lastupdtdt" type="STRING" size="256"/>
  570. <column id="pid" type="STRING" size="256"/>
  571. <column id="drugdd" type="STRING" size="256"/>
  572. <column id="drugno" type="STRING" size="256"/>
  573. <Column id="drugcd" type="STRING" size="256"/>
  574. <Column id="indt" type="STRING" size="256"/>
  575. <Column id="outdt" type="STRING" size="256"/>
  576. </ColumnInfo>
  577. <Rows>
  578. <Row/>
  579. </Rows>
  580. </Dataset>
  581. <Dataset id="ds_outmeg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  582. <ColumnInfo>
  583. <Column id="ioflag" type="STRING" size="256"/>
  584. </ColumnInfo>
  585. </Dataset>
  586. <Dataset id="ds_rptcdtynm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  587. <ColumnInfo>
  588. <Column id="CD" type="STRING" size="256"/>
  589. <Column id="CDNM" type="STRING" size="256"/>
  590. </ColumnInfo>
  591. <Rows>
  592. <Row>
  593. <Col id="CD">0</Col>
  594. <Col id="CDNM">신규</Col>
  595. </Row>
  596. <Row>
  597. <Col id="CD">1</Col>
  598. <Col id="CDNM">취소</Col>
  599. </Row>
  600. <Row>
  601. <Col id="CD">2</Col>
  602. <Col id="CDNM">변경</Col>
  603. </Row>
  604. </Rows>
  605. </Dataset>
  606. <Dataset id="ds_rep_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  607. <ColumnInfo>
  608. <Column id="ref_usr_rpt_id_no" type="STRING" size="256"/>
  609. </ColumnInfo>
  610. <Rows>
  611. <Row/>
  612. </Rows>
  613. </Dataset>
  614. <Dataset id="ds_ref_adnmpmmrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  615. <ColumnInfo>
  616. <column id="instcd" type="STRING" size="256"/>
  617. <column id="bssh_uid" type="STRING" size="256"/>
  618. <column id="hdr_de" type="STRING" size="256"/>
  619. <column id="bssh_cd" type="STRING" size="256"/>
  620. <column id="rpt_se_cd" type="STRING" size="256"/>
  621. <column id="ref_usr_rpt_id_no" type="STRING" size="256"/>
  622. <column id="rpt_ty_cd" type="STRING" size="256"/>
  623. <column id="rmk" type="STRING" size="256"/>
  624. <column id="rptr_nm" type="STRING" size="256"/>
  625. <column id="rptr_entrps_nm" type="STRING" size="256"/>
  626. <column id="chrg_nm" type="STRING" size="256"/>
  627. <column id="chrg_tel_no" type="STRING" size="256"/>
  628. <column id="chrg_mp_no" type="STRING" size="256"/>
  629. <column id="rnd_dtl_rpt_cnt" type="STRING" size="256"/>
  630. <column id="mdc_pat_se_cd" type="STRING" size="256"/>
  631. <column id="mdc_pat_id_no_ty_cd" type="STRING" size="256"/>
  632. <column id="mdc_pat_id_no" type="STRING" size="256"/>
  633. <column id="mdc_pat_nm" type="STRING" size="256"/>
  634. <column id="mdc_hptl_no" type="STRING" size="256"/>
  635. <column id="mdc_instt_nm" type="STRING" size="256"/>
  636. <column id="mdc_lcns_asort_cd" type="STRING" size="256"/>
  637. <column id="mdc_lcns_no" type="STRING" size="256"/>
  638. <column id="mdc_prsc_doc_nm" type="STRING" size="256"/>
  639. <column id="mdc_prsc_ord_no" type="STRING" size="256"/>
  640. <column id="mdc_diss_code" type="STRING" size="256"/>
  641. <column id="mdc_ani_kind_se_cd" type="STRING" size="256"/>
  642. <column id="mdc_ani_cnt" type="STRING" size="256"/>
  643. <column id="mdc_ani_kind_nm" type="STRING" size="256"/>
  644. <column id="mdc_ani_diss_nm" type="STRING" size="256"/>
  645. <column id="atch_file_co" type="STRING" size="256"/>
  646. <column id="register_id" type="STRING" size="256"/>
  647. <column id="usr_rpt_id_no" type="STRING" size="256"/>
  648. <column id="usr_rpt_ln_id_no" type="STRING" size="256"/>
  649. <column id="storge_no" type="STRING" size="256"/>
  650. <column id="mvmn_ty_cd" type="STRING" size="256"/>
  651. <column id="prduct_cd" type="STRING" size="256"/>
  652. <column id="mnf_no" type="STRING" size="256"/>
  653. <column id="mnf_seq" type="STRING" size="256"/>
  654. <column id="prd_min_distb_unit" type="STRING" size="256"/>
  655. <column id="pce_qy" type="STRING" size="256"/>
  656. <column id="prd_pce_unit" type="STRING" size="256"/>
  657. <column id="prduct_nm" type="STRING" size="256"/>
  658. <column id="prd_sgtin" type="STRING" size="256"/>
  659. <column id="prd_min_distb_qy" type="STRING" size="256"/>
  660. <column id="prd_tot_pce_qy" type="STRING" size="256"/>
  661. <column id="prd_valid_de" type="STRING" size="256"/>
  662. <column id="mdc_sum_qy" type="STRING" size="256"/>
  663. <column id="mdc_once_qy" type="STRING" size="256"/>
  664. <column id="mdc_ade_cnt" type="STRING" size="256"/>
  665. <column id="mdc_tot_dcnt" type="STRING" size="256"/>
  666. <column id="mdc_aft_dsuse_qy" type="STRING" size="256"/>
  667. <column id="mdc_aft_dsuse_unit" type="STRING" size="256"/>
  668. <column id="file_creat_dt" type="STRING" size="256"/>
  669. <column id="file_creat_fg" type="STRING" size="256"/>
  670. <column id="file_name" type="STRING" size="256"/>
  671. <column id="fstrgstrid" type="STRING" size="256"/>
  672. <column id="fstrgstdt" type="STRING" size="256"/>
  673. <column id="lastupdtrid" type="STRING" size="256"/>
  674. <column id="lastupdtdt" type="STRING" size="256"/>
  675. <column id="pid" type="STRING" size="256"/>
  676. <column id="drugdd" type="STRING" size="256"/>
  677. <column id="drugno" type="STRING" size="256"/>
  678. <Column id="drugcd" type="STRING" size="256"/>
  679. <Column id="indt" type="STRING" size="256"/>
  680. <Column id="outdt" type="STRING" size="256"/>
  681. </ColumnInfo>
  682. <Rows>
  683. <Row/>
  684. </Rows>
  685. </Dataset>
  686. <Dataset id="ds_hismagamlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  687. <ColumnInfo>
  688. <Column id="drugcd" type="STRING" size="256"/>
  689. <Column id="pid" type="STRING" size="256"/>
  690. <Column id="hngnm" type="STRING" size="256"/>
  691. <Column id="sex" type="STRING" size="256"/>
  692. <Column id="age" type="STRING" size="256"/>
  693. <Column id="addr" type="STRING" size="256"/>
  694. <Column id="diagcd" type="STRING" size="256"/>
  695. <Column id="ordqty" type="STRING" size="256"/>
  696. <Column id="deliveqty" type="STRING" size="256"/>
  697. <Column id="enddt" type="STRING" size="256"/>
  698. <Column id="rtnenddd" type="STRING" size="256"/>
  699. <Column id="drugno" type="STRING" size="256"/>
  700. <Column id="bogocnt" type="STRING" size="256"/>
  701. <Column id="prcpno" type="STRING" size="256"/>
  702. </ColumnInfo>
  703. <Rows>
  704. <Row/>
  705. </Rows>
  706. </Dataset>
  707. <Dataset id="ds_hismagamsum" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  708. <ColumnInfo>
  709. <Column id="drugcd" type="STRING" size="256"/>
  710. <Column id="narcflag" type="STRING" size="256"/>
  711. <Column id="ordqty" type="STRING" size="256"/>
  712. <Column id="drugnm" type="STRING" size="256"/>
  713. <Column id="outqtyp" type="STRING" size="256"/>
  714. <Column id="outqtym" type="STRING" size="256"/>
  715. <Column id="ordqtym" type="STRING" size="256"/>
  716. </ColumnInfo>
  717. <Rows>
  718. <Row/>
  719. </Rows>
  720. </Dataset>
  721. <Dataset id="ds_hispmmrsum" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  722. <ColumnInfo>
  723. <Column id="drugcd" type="STRING" size="256"/>
  724. <Column id="narcflag" type="STRING" size="256"/>
  725. <Column id="ordqty" type="STRING" size="256"/>
  726. <Column id="drugnm" type="STRING" size="256"/>
  727. <Column id="prduct_nm" type="STRING" size="256"/>
  728. <Column id="outqty" type="STRING" size="256"/>
  729. </ColumnInfo>
  730. <Rows>
  731. <Row/>
  732. </Rows>
  733. </Dataset>
  734. <Dataset id="ds_adnmstoclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  735. <ColumnInfo>
  736. <column id="instcd" type="STRING" size="256"/>
  737. <column id="drugcd" type="STRING" size="256"/>
  738. <column id="infg" type="STRING" size="256"/>
  739. <column id="histno" type="STRING" size="256"/>
  740. <column id="gtin" type="STRING" size="256"/>
  741. <column id="prd_valid_de" type="STRING" size="256"/>
  742. <column id="mnf_no" type="STRING" size="256"/>
  743. <column id="mnf_seq" type="STRING" size="256"/>
  744. <column id="seq" type="STRING" size="256"/>
  745. <column id="prd_sgtin" type="STRING" size="256"/>
  746. <column id="storge_no" type="STRING" size="256"/>
  747. <column id="prtm_se_nm" type="STRING" size="256"/>
  748. <column id="prd_min_distb_qy" type="STRING" size="256"/>
  749. <column id="prd_min_distb_unit" type="STRING" size="256"/>
  750. <column id="prd_tot_pce_qy" type="STRING" size="256"/>
  751. <column id="prd_pce_unit" type="STRING" size="256"/>
  752. <column id="in_pce_qy" type="STRING" size="256"/>
  753. <column id="indd" type="STRING" size="256"/>
  754. <column id="opp_bssh_cd" type="STRING" size="256"/>
  755. <column id="opp_bssh_nm" type="STRING" size="256"/>
  756. <column id="opp_storge_no" type="STRING" size="256"/>
  757. <column id="in_dtl_cd" type="STRING" size="256"/>
  758. <column id="in_trnsfe_se_cd" type="STRING" size="256"/>
  759. <column id="out_fg" type="STRING" size="256"/>
  760. <column id="out_pce_qy" type="STRING" size="256"/>
  761. <column id="fnshfg" type="STRING" size="256"/>
  762. <column id="prcpno" type="STRING" size="256"/>
  763. <column id="drugdd" type="STRING" size="256"/>
  764. <column id="drugno" type="STRING" size="256"/>
  765. <column id="ioflag" type="STRING" size="256"/>
  766. <column id="drugseqno" type="STRING" size="256"/>
  767. <column id="pat_id_no_ty_cd" type="STRING" size="256"/>
  768. <column id="pat_id_no" type="STRING" size="256"/>
  769. <column id="pat_nm" type="STRING" size="256"/>
  770. <column id="lcns_asort_cd" type="STRING" size="256"/>
  771. <column id="lcns_no" type="STRING" size="256"/>
  772. <column id="prsc_doc_nm" type="STRING" size="256"/>
  773. <column id="prsc_ord_no" type="STRING" size="256"/>
  774. <column id="diss_code" type="STRING" size="256"/>
  775. <column id="once_qty" type="STRING" size="256"/>
  776. <column id="ade_cnt" type="STRING" size="256"/>
  777. <column id="tot_dcnt" type="STRING" size="256"/>
  778. <column id="sum_qy" type="STRING" size="256"/>
  779. <column id="aft_dsuse_qy" type="STRING" size="256"/>
  780. <column id="dsuse_se_cd" type="STRING" size="256"/>
  781. <column id="dsuse_prv_cd" type="STRING" size="256"/>
  782. <column id="dsuse_mth_cd" type="STRING" size="256"/>
  783. <column id="dsuse_loc" type="STRING" size="256"/>
  784. <column id="dsuse_de" type="STRING" size="256"/>
  785. <column id="dsuse_instt_cd" type="STRING" size="256"/>
  786. <column id="dsuse_doc_de" type="STRING" size="256"/>
  787. <column id="outdd" type="STRING" size="256"/>
  788. <column id="out_bssh_cd" type="STRING" size="256"/>
  789. <column id="out_bssh_nm" type="STRING" size="256"/>
  790. <column id="out_storge_no" type="STRING" size="256"/>
  791. <column id="out_dtl_cd" type="STRING" size="256"/>
  792. <column id="out_trnsfr_se_cd" type="STRING" size="256"/>
  793. <column id="insendfg" type="STRING" size="256"/>
  794. <column id="outsendfg" type="STRING" size="256"/>
  795. <column id="spreqy" type="STRING" size="256"/>
  796. <column id="spredd" type="STRING" size="256"/>
  797. <column id="spredt" type="STRING" size="256"/>
  798. <column id="rtnfg" type="STRING" size="256"/>
  799. <column id="rtndd" type="STRING" size="256"/>
  800. <column id="rtndt" type="STRING" size="256"/>
  801. <Column id="pid" type="STRING" size="256"/>
  802. <Column id="labelno" type="STRING" size="256"/>
  803. <Column id="indt" type="STRING" size="256"/>
  804. <Column id="outdt" type="STRING" size="256"/>
  805. <column id="in_prcpno" type="STRING" size="256"/>
  806. <column id="in_drugdd" type="STRING" size="256"/>
  807. <column id="in_drugno" type="STRING" size="256"/>
  808. <column id="in_ioflag" type="STRING" size="256"/>
  809. <column id="in_pid" type="STRING" size="256"/>
  810. </ColumnInfo>
  811. <Rows>
  812. <Row/>
  813. </Rows>
  814. </Dataset>
  815. <Dataset id="ds_send_stoc" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  816. <ColumnInfo>
  817. <Column id="drugcd" type="STRING" size="256"/>
  818. <Column id="storge_no" type="STRING" size="256"/>
  819. <Column id="prcpno" type="STRING" size="256"/>
  820. <Column id="seltype" type="STRING" size="256"/>
  821. <Column id="drugdd" type="STRING" size="256"/>
  822. <Column id="pid" type="STRING" size="256"/>
  823. <Column id="boxflag" type="STRING" size="256"/>
  824. <Column id="gtin" type="STRING" size="256"/>
  825. <Column id="prd_valid_de" type="STRING" size="256"/>
  826. <Column id="mnf_no" type="STRING" size="256"/>
  827. <Column id="mnf_seq" type="STRING" size="256"/>
  828. <Column id="workflag" type="STRING" size="256"/>
  829. <Column id="drugno" type="STRING" size="256"/>
  830. </ColumnInfo>
  831. <Rows>
  832. <Row/>
  833. </Rows>
  834. </Dataset>
  835. <Dataset id="ds_hismagamminlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  836. <ColumnInfo>
  837. <Column id="drugcd" type="STRING" size="256"/>
  838. <Column id="pid" type="STRING" size="256"/>
  839. <Column id="hngnm" type="STRING" size="256"/>
  840. <Column id="sex" type="STRING" size="256"/>
  841. <Column id="age" type="STRING" size="256"/>
  842. <Column id="addr" type="STRING" size="256"/>
  843. <Column id="diagcd" type="STRING" size="256"/>
  844. <Column id="ordqty" type="STRING" size="256"/>
  845. <Column id="deliveqty" type="STRING" size="256"/>
  846. <Column id="enddt" type="STRING" size="256"/>
  847. <Column id="rtnenddd" type="STRING" size="256"/>
  848. <Column id="drugno" type="STRING" size="256"/>
  849. <Column id="bogocnt" type="STRING" size="256"/>
  850. <Column id="prcpno" type="STRING" size="256"/>
  851. </ColumnInfo>
  852. <Rows>
  853. <Row/>
  854. </Rows>
  855. </Dataset>
  856. <Dataset id="ds_chkdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  857. <ColumnInfo>
  858. <Column id="chkcnt" type="STRING" size="256"/>
  859. </ColumnInfo>
  860. </Dataset>
  861. <Dataset id="ds_sendchk" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  862. <ColumnInfo>
  863. <Column id="magamdd" type="STRING" size="256"/>
  864. <Column id="drugcd" type="STRING" size="256"/>
  865. <Column id="pid" type="STRING" size="256"/>
  866. <Column id="drugno" type="STRING" size="256"/>
  867. <Column id="drugdd" type="STRING" size="256"/>
  868. <Column id="prcpno" type="STRING" size="256"/>
  869. </ColumnInfo>
  870. <Rows>
  871. <Row/>
  872. </Rows>
  873. </Dataset>
  874. <Dataset id="ds_drugchk" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  875. <ColumnInfo>
  876. <Column id="pid" type="STRING" size="256"/>
  877. <Column id="drugdd" type="STRING" size="256"/>
  878. <Column id="drugcd" type="STRING" size="256"/>
  879. <Column id="drugno" type="STRING" size="256"/>
  880. <Column id="prcpno" type="STRING" size="256"/>
  881. <Column id="hngnm" type="STRING" size="256"/>
  882. <Column id="deliveqty" type="STRING" size="256"/>
  883. <Column id="enddt" type="STRING" size="256"/>
  884. <Column id="bogocnt" type="STRING" size="256"/>
  885. </ColumnInfo>
  886. <Rows>
  887. <Row/>
  888. </Rows>
  889. </Dataset>
  890. <Dataset id="ds_drugstocchk" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  891. <ColumnInfo>
  892. <Column id="bogocnt" type="STRING" size="256"/>
  893. </ColumnInfo>
  894. <Rows>
  895. <Row/>
  896. </Rows>
  897. </Dataset>
  898. <Dataset id="ds_finddrugdd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  899. <ColumnInfo>
  900. <Column id="pid" type="STRING" size="256"/>
  901. <Column id="drugcd" type="STRING" size="256"/>
  902. <Column id="drugno" type="STRING" size="256"/>
  903. </ColumnInfo>
  904. <Rows>
  905. <Row/>
  906. </Rows>
  907. </Dataset>
  908. <Dataset id="ds_retdrugdd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  909. <ColumnInfo>
  910. <Column id="drugdd" type="STRING" size="256"/>
  911. </ColumnInfo>
  912. <Rows>
  913. <Row/>
  914. </Rows>
  915. </Dataset>
  916. <Dataset id="ds_failList" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  917. <Dataset id="ds_successList" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  918. </Objects>
  919. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  920. * System Name :
  921. * Job Name :
  922. * Creator :
  923. * Make Date : 2018-03-08
  924. * Description :
  925. ****************************************************************************************/
  926. //=======================================================================================
  927. // Lib Include
  928. //---------------------------------------------------------------------------------------
  929. include "com_commonxp::comm_main.xjs"
  930. include "ast_commonxp::AST.xjs"
  931. var arErrorCode = new HashArray();
  932. var Arstorge_no = "";
  933. function SMADT12005_oninit(obj:Form, e:InitEventInfo)
  934. {
  935. frmf_initForm(obj); // 폼 초기화
  936. // ds_senddata.clearData()
  937. ds_adnmpmmrlist.clearData()
  938. // ds_sendpatdata.clearData()
  939. grdf_setGridSort(grd_daypatlist);
  940. grdf_setGridSort(grd_hismagamlist);
  941. grdf_setGridSort(grd_hismagamminlist);
  942. grdf_setGridSort(grd_selstoclist);
  943. grdf_setGridSort(grd_daypatlist03);
  944. grdf_setGridSort(grd_daypatlist02);
  945. var sCurDate = utlf_getCurrentDate();
  946. grd_selstoclist.visible = false;
  947. grd_seldrugchk.visible = false;
  948. var currentDate = new Date(sCurDate.substr(0,4), sCurDate.substr(4,2) -1, sCurDate.substr(6,2));
  949. //조회날짜 초기화
  950. ds_senddata.setColumn( 0, "magamdd", currentDate.getAddDate(-7,"D").getDateFormat("YYYYMMDD"));
  951. ds_senddata.setColumn(0,"magamflag" , 'T' ); ///"R", "S"
  952. ds_senddata.setColumn(0,"userid" , sysf_getUserId() ); ///"R", "S"
  953. ds_senddata.setColumn(0,"instcd" , sysf_getUserInfo("dutplceinstcd") );
  954. ds_senddata.setColumn(0,"ioflag" , '' );
  955. ds_senddata.setColumn(0, "ref_usr_rpt_id_no", '');
  956. ds_senddata.setColumn(0,"typeflag" , '중점' ); ///"R", "S"
  957. }
  958. // function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  959. // {
  960. // var oParam = {};
  961. // oParam.id = "TXADT12005";
  962. // oParam.service = "pharmacydrugsumapp.NarcManagent";
  963. // oParam.method = "reqGetStocMagam";
  964. // oParam.inds = "req=ds_senddata";
  965. // oParam.outds = "ds_outmeg=stocdata";
  966. // oParam.async = false;
  967. //
  968. // tranf_submit(oParam);
  969. // }
  970. function grd_daypatlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  971. {
  972. var cRow = e.row;
  973. if( cRow > -1 ){
  974. ds_senddata.setColumn(0, "ref_usr_rpt_id_no", ds_adnmpmmrlist.getColumn(cRow, "ref_usr_rpt_id_no"));
  975. dsf_makeValue(ds_senddata, "magamgubun", "string", "R");
  976. var oParam = {};
  977. oParam.id = "TRADT12010";
  978. oParam.service = "pharmacydrugsumapp.NarcManagent";
  979. oParam.method = "reqGetAdnmPmmrList";
  980. oParam.inds = "req=ds_senddata";
  981. oParam.outds = "ds_ref_adnmpmmrlist=pmmrlist";
  982. oParam.async = false;
  983. tranf_submit(oParam);
  984. }
  985. }
  986. function btn_sea01_onclick(obj:Button, e:ClickEventInfo)
  987. {
  988. if(sysf_messageBox("해당일자의 "+grp_srch.radio2.text+" 마감데이터를", "Q001") == "6") {
  989. ds_senddata.setColumn(0, "ref_usr_rpt_id_no", '');
  990. ds_senddata.setColumn(0,"workflag" , 'TD' );
  991. var oParam = {};
  992. oParam.id = "TXADT12005";
  993. oParam.service = "pharmacydrugsumapp.NarcManagent";
  994. oParam.method = "reqGetStocMagam";
  995. oParam.inds = "req=ds_senddata";
  996. oParam.outds = "ds_outmeg=stocdata";
  997. oParam.async = false;
  998. oParam.callback = "cf_TXADT12005_Delete";
  999. tranf_submit(oParam);
  1000. }
  1001. }
  1002. function cf_TXADT12005_Delete(sSvcId, nErrorCode, sErrorMsg) {
  1003. if(nErrorCode < 0) return;
  1004. sysf_messageBox("삭제 되었습니다.","I");
  1005. }
  1006. function btn_sea00_onclick(obj:Button, e:ClickEventInfo)
  1007. {
  1008. ds_senddata.setColumn(0, "ref_usr_rpt_id_no", '');
  1009. ds_senddata.setColumn(0,"workflag" , 'TI' );
  1010. var oParam = {};
  1011. oParam.id = "TRADT12018";
  1012. oParam.service = "pharmacydrugsumapp.NarcManagent";
  1013. oParam.method = "reqGetMagamDataCheck";
  1014. oParam.inds = "req=ds_senddata";
  1015. oParam.outds = "ds_chkdata=chkdata";
  1016. oParam.async = false;
  1017. tranf_submit(oParam);
  1018. var Achkcnt = ds_chkdata.getColumn(0, "chkcnt");
  1019. if ( Achkcnt > 0 ){
  1020. if(sysf_messageBox("해당일자에 마감데이타 생성되어있습니다.. "+grp_srch.radio2.text+" 마감데이터 삭제 후", "Q003") == "6") {
  1021. //btn_sea01.click();
  1022. ds_senddata.setColumn(0, "ref_usr_rpt_id_no", '');
  1023. ds_senddata.setColumn(0,"workflag" , 'TD' );
  1024. var oParam = {};
  1025. oParam.id = "TXADT12005";
  1026. oParam.service = "pharmacydrugsumapp.NarcManagent";
  1027. oParam.method = "reqGetStocMagam";
  1028. oParam.inds = "req=ds_senddata";
  1029. oParam.outds = "ds_outmeg=stocdata";
  1030. oParam.async = false;
  1031. //oParam.callback = "cf_TXADT12005_Delete";
  1032. tranf_submit(oParam);
  1033. } else {
  1034. return;
  1035. }
  1036. }
  1037. ds_senddata.setColumn(0, "workflag", "TI");
  1038. if(ds_senddata.getColumn(0, "magamflag") == "T") {
  1039. ds_senddata.setColumn(0, "magamflag", "O");
  1040. var oParam = {};
  1041. oParam.id = "TXADT12005";
  1042. oParam.service = "pharmacydrugsumapp.NarcManagent";
  1043. oParam.method = "reqGetStocMagam";
  1044. oParam.inds = "req=ds_senddata";
  1045. oParam.outds = "ds_outmeg=magaminfo";
  1046. oParam.async = false;
  1047. //oParam.callback = "cf_TXADT12005";
  1048. tranf_submit(oParam);
  1049. ds_senddata.setColumn(0, "magamflag", "R");
  1050. var oParam = {};
  1051. oParam.id = "TXADT12005";
  1052. oParam.service = "pharmacydrugsumapp.NarcManagent";
  1053. oParam.method = "reqGetStocMagam";
  1054. oParam.inds = "req=ds_senddata";
  1055. oParam.outds = "ds_outmeg=magaminfo";
  1056. oParam.async = false;
  1057. //oParam.callback = "cf_TXADT12005";
  1058. tranf_submit(oParam);
  1059. ds_senddata.setColumn(0, "magamflag", "T");
  1060. call_TRADT12023();
  1061. if(arErrorCode.pop("TRADT12023") > -1) {
  1062. if(ds_failList.rowcount > 0) {
  1063. open_SMADT12009();
  1064. }
  1065. }
  1066. } else {
  1067. var oParam = {};
  1068. oParam.id = "TXADT12005";
  1069. oParam.service = "pharmacydrugsumapp.NarcManagent";
  1070. oParam.method = "reqGetStocMagam";
  1071. oParam.inds = "req=ds_senddata";
  1072. oParam.outds = "ds_outmeg=magaminfo";
  1073. oParam.async = false;
  1074. oParam.callback = "cf_TXADT12005";
  1075. tranf_submit(oParam);
  1076. }
  1077. sysf_messageBox("마감 되었습니다.","I");
  1078. }
  1079. function btn_sea_onclick(obj:Button, e:ClickEventInfo)
  1080. {
  1081. ds_senddata.setColumn(0,"ref_usr_rpt_id_no", '');
  1082. //ds_senddata.setColumn(0,"magamflag" , 'T' );
  1083. dsf_makeValue(ds_senddata, "magamgubun", "string", "T");
  1084. var oParam = {};
  1085. oParam.id = "TRADT12010";
  1086. oParam.service = "pharmacydrugsumapp.NarcManagent";
  1087. oParam.method = "reqGetAdnmPmmrList";
  1088. oParam.inds = "req=ds_senddata";
  1089. oParam.outds = "ds_adnmpmmrlist=pmmrlist ds_hispmmrsum=pmmrsum"; /// ds_hispmmrsum=pmmrsum
  1090. oParam.async = false;
  1091. tranf_submit(oParam);
  1092. }
  1093. function btn_histri_onclick(obj:Button, e:ClickEventInfo)
  1094. {
  1095. ds_senddata.setColumn(0, "ref_usr_rpt_id_no", '');
  1096. var oParam = {};
  1097. oParam.id = "TRADT12017";
  1098. oParam.service = "pharmacydrugsumapp.NarcManagent";
  1099. oParam.method = "reqGetHisMagamList";
  1100. oParam.inds = "req=ds_senddata";
  1101. oParam.outds = "ds_hismagamlist=hislist ds_hismagamminlist=hisminlist ds_hismagamsum=hissum";
  1102. oParam.async = false;
  1103. tranf_submit(oParam);
  1104. // dsf_makeValue(ds_hismagamlist,"bogocnt","string", 0 );
  1105. // for(var i = 0; i < ds_hismagamlist.rowcount ; i++){
  1106. // ds_send_stoc.setColumn(0, "drugcd", "");
  1107. // ds_send_stoc.setColumn(0, "drugdd", "");
  1108. // ds_send_stoc.setColumn(0, "drugno", "");
  1109. // ds_send_stoc.setColumn(0, "pid", "");
  1110. // ds_send_stoc.setColumn(0, "prcpno", "");
  1111. // ds_send_stoc.setColumn(0, "storge_no", "");
  1112. // ds_send_stoc.setColumn(0, "seltype", "");
  1113. // ds_send_stoc.setColumn(0, "boxflag", "");
  1114. // ds_send_stoc.setColumn(0, "gtin", "");
  1115. // ds_send_stoc.setColumn(0, "prd_valid_de", "");
  1116. // ds_send_stoc.setColumn(0, "mnf_no", "");
  1117. // ds_send_stoc.setColumn(0, "mnf_seq", "");
  1118. // ds_send_stoc.setColumn(0, "workflag", "");
  1119. // ds_adnmstoclist.clearData();
  1120. // ds_send_stoc.setColumn(0, "drugcd", ds_hismagamlist.getColumn(i, "drugcd"));
  1121. // ds_send_stoc.setColumn(0, "drugdd", ds_hismagamlist.getColumn(i, "drugdd"));
  1122. // ds_send_stoc.setColumn(0, "drugno", ds_hismagamlist.getColumn(i, "drugno"));
  1123. // ds_send_stoc.setColumn(0, "pid", ds_hismagamlist.getColumn(i, "pid"));
  1124. // ds_send_stoc.setColumn(0, "prcpno", ds_hismagamlist.getColumn(i, "prcpno"));
  1125. // ds_send_stoc.setColumn(0, "workflag", "S");
  1126. //
  1127. // var oParam = {};
  1128. // oParam.id = "TRADT12007";
  1129. // oParam.service = "pharmacydrugsumapp.NarcManagent";
  1130. // oParam.method = "reqGetNarcStocOkList";
  1131. // oParam.inds = "req=ds_send_stoc";
  1132. // oParam.outds = "ds_adnmstoclist=stocdata";
  1133. // oParam.async = false;
  1134. // oParam.callback = "cf_TRADT12007";
  1135. // tranf_submit(oParam);
  1136. // var bogocnt = ds_adnmstoclist.rowcount ;
  1137. // ds_hismagamlist.setColumn(i, "bogocnt", bogocnt);
  1138. // }
  1139. //
  1140. // dsf_makeValue(ds_hismagamminlist,"bogocnt","string", 0 );
  1141. // for(var i = 0; i < ds_hismagamminlist.rowcount ; i++){
  1142. // ds_send_stoc.setColumn(0, "drugcd", "");
  1143. // ds_send_stoc.setColumn(0, "drugdd", "");
  1144. // ds_send_stoc.setColumn(0, "drugno", "");
  1145. // ds_send_stoc.setColumn(0, "pid", "");
  1146. // ds_send_stoc.setColumn(0, "prcpno", "");
  1147. // ds_send_stoc.setColumn(0, "storge_no", "");
  1148. // ds_send_stoc.setColumn(0, "seltype", "");
  1149. // ds_send_stoc.setColumn(0, "boxflag", "");
  1150. // ds_send_stoc.setColumn(0, "gtin", "");
  1151. // ds_send_stoc.setColumn(0, "prd_valid_de", "");
  1152. // ds_send_stoc.setColumn(0, "mnf_no", "");
  1153. // ds_send_stoc.setColumn(0, "mnf_seq", "");
  1154. // /// ds_send_stoc.setColumn(0, "workflag", "");
  1155. // ds_adnmstoclist.clearData();
  1156. // ds_send_stoc.setColumn(0, "drugcd", ds_hismagamminlist.getColumn(i, "drugcd"));
  1157. // ds_send_stoc.setColumn(0, "drugdd", ds_hismagamminlist.getColumn(i, "drugdd"));
  1158. // ds_send_stoc.setColumn(0, "drugno", ds_hismagamminlist.getColumn(i, "drugno"));
  1159. // ds_send_stoc.setColumn(0, "pid", ds_hismagamminlist.getColumn(i, "pid"));
  1160. // ds_send_stoc.setColumn(0, "prcpno", ds_hismagamminlist.getColumn(i, "prcpno"));
  1161. // ds_send_stoc.setColumn(0, "workflag", "M");
  1162. //
  1163. // var oParam = {};
  1164. // oParam.id = "TRADT12007";
  1165. // oParam.service = "pharmacydrugsumapp.NarcManagent";
  1166. // oParam.method = "reqGetNarcStocOkList";
  1167. // oParam.inds = "req=ds_send_stoc";
  1168. // oParam.outds = "ds_adnmstoclist=stocdata";
  1169. // oParam.async = false;
  1170. // oParam.callback = "cf_TRADT12007";
  1171. // tranf_submit(oParam);
  1172. // var bogocnt = ds_adnmstoclist.rowcount ;
  1173. // bogocnt = bogocnt * -1;
  1174. // ds_hismagamminlist.setColumn(i, "bogocnt", bogocnt);
  1175. // }
  1176. }
  1177. function grd_selstoclist_onheadclick(obj:Grid, e:GridClickEventInfo)
  1178. {
  1179. grd_selstoclist.visible = false;
  1180. }
  1181. function grd_hismagamlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  1182. {
  1183. grd_selstoclist.visible = true;
  1184. var cRow = e.row;
  1185. if( cRow > -1 ){
  1186. ds_send_stoc.setColumn(0, "drugcd", "");
  1187. ds_send_stoc.setColumn(0, "drugdd", "");
  1188. ds_send_stoc.setColumn(0, "drugno", "");
  1189. ds_send_stoc.setColumn(0, "pid", "");
  1190. ds_send_stoc.setColumn(0, "prcpno", "");
  1191. ds_send_stoc.setColumn(0, "storge_no", "");
  1192. ds_send_stoc.setColumn(0, "seltype", "");
  1193. ds_send_stoc.setColumn(0, "boxflag", "");
  1194. ds_send_stoc.setColumn(0, "gtin", "");
  1195. ds_send_stoc.setColumn(0, "prd_valid_de", "");
  1196. ds_send_stoc.setColumn(0, "mnf_no", "");
  1197. ds_send_stoc.setColumn(0, "mnf_seq", "");
  1198. ds_send_stoc.setColumn(0, "workflag", "");
  1199. ds_send_stoc.setColumn(0, "drugcd", ds_hismagamlist.getColumn(cRow, "drugcd"));
  1200. ds_send_stoc.setColumn(0, "drugdd", ds_hismagamlist.getColumn(cRow, "drugdd"));
  1201. ds_send_stoc.setColumn(0, "drugno", ds_hismagamlist.getColumn(cRow, "drugno"));
  1202. ds_send_stoc.setColumn(0, "pid", ds_hismagamlist.getColumn(cRow, "pid"));
  1203. ds_send_stoc.setColumn(0, "prcpno", ds_hismagamlist.getColumn(cRow, "prcpno"));
  1204. // alert( ds_hismagamlist.getColumn(cRow, "drugno"));
  1205. ds_send_stoc.setColumn(0, "workflag", "S");
  1206. var oParam = {};
  1207. oParam.id = "TRADT12007";
  1208. oParam.service = "pharmacydrugsumapp.NarcManagent";
  1209. oParam.method = "reqGetNarcStocOkList";
  1210. oParam.inds = "req=ds_send_stoc";
  1211. oParam.outds = "ds_adnmstoclist=stocdata";
  1212. oParam.async = false;
  1213. oParam.callback = "cf_TRADT12007";
  1214. tranf_submit(oParam);
  1215. if(arErrorCode.pop("TRADT12007") > -1) {
  1216. grd_selstoclist.visible = true;
  1217. }
  1218. }
  1219. }
  1220. function grd_hismagamminlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  1221. {
  1222. grd_selstoclist.visible = true;
  1223. var cRow = e.row;
  1224. if( cRow > -1 ){
  1225. ds_send_stoc.setColumn(0, "drugcd", "");
  1226. ds_send_stoc.setColumn(0, "drugdd", "");
  1227. ds_send_stoc.setColumn(0, "drugno", "");
  1228. ds_send_stoc.setColumn(0, "pid", "");
  1229. ds_send_stoc.setColumn(0, "prcpno", "");
  1230. ds_send_stoc.setColumn(0, "storge_no", "");
  1231. ds_send_stoc.setColumn(0, "seltype", "");
  1232. ds_send_stoc.setColumn(0, "boxflag", "");
  1233. ds_send_stoc.setColumn(0, "gtin", "");
  1234. ds_send_stoc.setColumn(0, "prd_valid_de", "");
  1235. ds_send_stoc.setColumn(0, "mnf_no", "");
  1236. ds_send_stoc.setColumn(0, "mnf_seq", "");
  1237. ds_send_stoc.setColumn(0, "workflag", "");
  1238. ds_send_stoc.setColumn(0, "drugcd", ds_hismagamminlist.getColumn(cRow, "drugcd"));
  1239. ds_send_stoc.setColumn(0, "drugdd", ds_hismagamminlist.getColumn(cRow, "drugdd"));
  1240. ds_send_stoc.setColumn(0, "drugno", ds_hismagamminlist.getColumn(cRow, "drugno"));
  1241. ds_send_stoc.setColumn(0, "pid", ds_hismagamminlist.getColumn(cRow, "pid"));
  1242. ds_send_stoc.setColumn(0, "prcpno", ds_hismagamminlist.getColumn(cRow, "prcpno"));
  1243. // alert( ds_hismagamlist.getColumn(cRow, "drugno"));
  1244. ds_send_stoc.setColumn(0, "workflag", "M");
  1245. var oParam = {};
  1246. oParam.id = "TRADT12007";
  1247. oParam.service = "pharmacydrugsumapp.NarcManagent";
  1248. oParam.method = "reqGetNarcStocOkList";
  1249. oParam.inds = "req=ds_send_stoc";
  1250. oParam.outds = "ds_adnmstoclist=stocdata";
  1251. oParam.async = false;
  1252. oParam.callback = "cf_TRADT12007";
  1253. tranf_submit(oParam);
  1254. if(arErrorCode.pop("TRADT12007") > -1) {
  1255. grd_selstoclist.visible = true;
  1256. }
  1257. }
  1258. }
  1259. function btn_trans_onclick(obj:Button, e:ClickEventInfo)
  1260. {
  1261. call_TRADT12023();
  1262. if(arErrorCode.pop("TRADT12023") > -1) {
  1263. if(ds_failList.rowcount > 0) {
  1264. open_SMADT12009();
  1265. sysf_messageBox("전송버튼을 다시 클릭해주세요..","I");
  1266. return;
  1267. }
  1268. }
  1269. ds_senddata.setColumn(0, "ref_usr_rpt_id_no", '');
  1270. ds_senddata.setColumn(0,"workflag" , 'RI' );
  1271. var oParam = {};
  1272. oParam.id = "TRADT12018";
  1273. oParam.service = "pharmacydrugsumapp.NarcManagent";
  1274. oParam.method = "reqGetMagamDataCheck";
  1275. oParam.inds = "req=ds_senddata";
  1276. oParam.outds = "ds_chkdata=chkdata";
  1277. oParam.async = false;
  1278. tranf_submit(oParam);
  1279. var Achkcnt = ds_chkdata.getColumn(0, "chkcnt");
  1280. if ( Achkcnt > 0 ){
  1281. sysf_messageBox("전송일자에 데이타 생성되어있습니다.!! 전산실 문의후 진행하세요! ", "I");
  1282. return;
  1283. }else{
  1284. var oParam = {};
  1285. oParam.id = "TXADT12005";
  1286. oParam.service = "pharmacydrugsumapp.NarcManagent";
  1287. oParam.method = "reqGetStocMagam";
  1288. oParam.inds = "req=ds_senddata";
  1289. oParam.outds = "ds_outmeg=stocdata";
  1290. oParam.async = false;
  1291. tranf_submit(oParam);
  1292. }
  1293. sysf_messageBox("전송 되었습니다.","I");
  1294. }
  1295. function Button00_onclick(obj:Button, e:ClickEventInfo)
  1296. {
  1297. grd_daypatlist.position.width = grd_seldrugchk.position.right;
  1298. }
  1299. function but_hisP_onclick(obj:Button, e:ClickEventInfo)
  1300. {
  1301. if( ds_hismagamlist.rowcount > 0 ){
  1302. grdf_exportExcel(grd_hismagamlist, "HIS마감플러스", "HIS마감플러스", false, "", "user", false);
  1303. } else {
  1304. sysf_messageBox("조회된 데이터가 ", "I004");
  1305. }
  1306. }
  1307. function but_hisM_onclick(obj:Button, e:ClickEventInfo)
  1308. {
  1309. if( ds_hismagamminlist.rowcount > 0 ){
  1310. grdf_exportExcel(grd_hismagamminlist, "HIS마감마이너스", "HIS마감마이너스", false, "", "user", false);
  1311. } else {
  1312. sysf_messageBox("조회된 데이터가 ", "I004");
  1313. }
  1314. }
  1315. function but_hissum_onclick(obj:Button, e:ClickEventInfo)
  1316. {
  1317. if( ds_hismagamsum.rowcount > 0 ){
  1318. grdf_exportExcel(grd_daypatlist02, "HIS마감합계", "HIS마감합계", false, "", "user", false);
  1319. } else {
  1320. sysf_messageBox("조회된 데이터가 ", "I004");
  1321. }
  1322. }
  1323. ///
  1324. function but_nimsum_onclick(obj:Button, e:ClickEventInfo)
  1325. {
  1326. if( ds_hispmmrsum.rowcount > 0 ){
  1327. grdf_exportExcel(grd_daypatlist03, "림스마감합계", "림스마감합계", false, "", "user", false);
  1328. } else {
  1329. sysf_messageBox("조회된 데이터가 ", "I004");
  1330. }
  1331. }
  1332. function but_nimlist_onclick(obj:Button, e:ClickEventInfo)
  1333. {
  1334. if( ds_adnmpmmrlist.rowcount > 0 ){
  1335. grdf_exportExcel(grd_daypatlist, "림스마감현황", "림스마감현황", false, "", "user", false);
  1336. } else {
  1337. sysf_messageBox("조회된 데이터가 ", "I004");
  1338. }
  1339. }
  1340. function Button01_onclick(obj:Button, e:ClickEventInfo)
  1341. {
  1342. grd_daypatlist.position.width = line02.position.right;
  1343. }
  1344. function btn_seaall_onclick(obj:Button, e:ClickEventInfo)
  1345. {
  1346. ds_senddata.setColumn(0, "ref_usr_rpt_id_no", '');
  1347. ds_senddata.setColumn(0,"workflag" , 'AI' );
  1348. var oParam = {};
  1349. oParam.id = "TRADT12018";
  1350. oParam.service = "pharmacydrugsumapp.NarcManagent";
  1351. oParam.method = "reqGetMagamDataCheck";
  1352. oParam.inds = "req=ds_senddata";
  1353. oParam.outds = "ds_chkdata=chkdata";
  1354. oParam.async = false;
  1355. tranf_submit(oParam);
  1356. var Achkcnt = ds_chkdata.getColumn(0, "chkcnt");
  1357. // if ( Achkcnt > 0 ){
  1358. // alert("마감일자에 데이타 생성되어있습니다.!! 삭제는 전산실 문의후 진행하세요! ")
  1359. // }else{
  1360. var oParam = {};
  1361. oParam.id = "TXADT12005";
  1362. oParam.service = "pharmacydrugsumapp.NarcManagent";
  1363. oParam.method = "reqGetStocMagam";
  1364. oParam.inds = "req=ds_senddata";
  1365. oParam.outds = "ds_outmeg=stocdata";
  1366. oParam.callback = "cf_TXADT12005";
  1367. oParam.async = false;
  1368. tranf_submit(oParam);
  1369. //}
  1370. }
  1371. function grd_daypatlist02_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  1372. {
  1373. grd_seldrugchk.visible = true;
  1374. var cRow = e.row;
  1375. if( cRow > -1 ){
  1376. ds_sendchk.setColumn(0,"magamdd", ds_senddata.getColumn(0, "magamdd"));
  1377. ds_sendchk.setColumn(0,"drugcd" , ds_hismagamsum.getColumn(cRow, "drugcd") );
  1378. //alert(ds_senddata.getColumn(0, "magamdd"));
  1379. //alert(ds_hismagamsum.getColumn(cRow, "drugcd"));
  1380. var oParam = {};
  1381. oParam.id = "TRADT12020";
  1382. oParam.service = "pharmacydrugsumapp.NarcManagent";
  1383. oParam.method = "reqGetMagamDrugChk";
  1384. oParam.inds = "req=ds_sendchk";
  1385. oParam.outds = "ds_drugchk=chkdata";
  1386. oParam.async = false;
  1387. tranf_submit(oParam);
  1388. // for(var i = 0; i < ds_drugchk.rowcount ; i++){
  1389. // ds_sendchk.setColumn(0,"magamdd", ds_senddata.getColumn(0, "magamdd"));
  1390. // ds_sendchk.setColumn(0,"drugcd" , ds_drugchk.getColumn(i, "drugcd") );
  1391. // ds_sendchk.setColumn(0,"pid" , ds_drugchk.getColumn(i, "pid") );
  1392. // ds_sendchk.setColumn(0,"drugno" , ds_drugchk.getColumn(i, "drugno") );
  1393. // ds_sendchk.setColumn(0,"drugdd" , ds_drugchk.getColumn(i, "drugdd") );
  1394. // ds_sendchk.setColumn(0,"prcpno" , ds_drugchk.getColumn(i, "prcpno") );
  1395. // var oParam = {};
  1396. // oParam.id = "TRADT12021";
  1397. // oParam.service = "pharmacydrugsumapp.NarcManagent";
  1398. // oParam.method = "reqGetMagamDrugStocChk";
  1399. // oParam.inds = "req=ds_sendchk";
  1400. // oParam.outds = "ds_drugstocchk=chkdata";
  1401. // tranf_submit(oParam);
  1402. // var bogocnt = ds_drugstocchk.getColumn(0, "bogocnt");
  1403. // ds_drugchk.setColumn(i, "bogocnt", bogocnt);
  1404. // }
  1405. }
  1406. }
  1407. function grd_seldrugchk_onheadclick(obj:Grid, e:GridClickEventInfo)
  1408. {
  1409. grd_seldrugchk.visible = false;
  1410. }
  1411. function grd_seldrugchk_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  1412. {
  1413. var cRow = e.row;
  1414. if( cRow > -1 ){
  1415. // var fprcpno = ds_drugchk.getColumn(cRow, "prcpno") ;
  1416. // if ( fprcpno = 0 ){
  1417. ds_finddrugdd.setColumn(0,"pid", ds_drugchk.getColumn(cRow, "pid"));
  1418. ds_finddrugdd.setColumn(0,"drugcd" , ds_drugchk.getColumn(cRow, "drugcd") );
  1419. ds_finddrugdd.setColumn(0,"drugno" , ds_drugchk.getColumn(cRow, "drugno") );
  1420. var oParam = {};
  1421. oParam.id = "TRADT12022";
  1422. oParam.service = "pharmacydrugsumapp.NarcManagent";
  1423. oParam.method = "reqGetDrugddFind";
  1424. oParam.inds = "req=ds_finddrugdd";
  1425. oParam.outds = "ds_retdrugdd=drugdd";
  1426. oParam.async = false;
  1427. tranf_submit(oParam);
  1428. var fdrugdd = ds_retdrugdd.getColumn(0, "drugdd");
  1429. }
  1430. // }
  1431. }
  1432. function cf_TRADT12007(sSvcId, nErrorCode, sErrorMsg) {
  1433. arErrorCode.push(sSvcId, nErrorCode);
  1434. ds_adnmstoclist.addColumn("prd_pce_unit","string");
  1435. for(var i = 0; i < ds_adnmstoclist.rowcount; i++) {
  1436. ds_adnmstoclist.setColumn(i, "prd_pce_unit", ds_adnmstoclist.getColumn(i, "infg"));
  1437. }
  1438. }
  1439. function cf_TXADT12005(sSvcId, nErrorCode, sErrorMsg) {
  1440. if(nErrorCode < 0) return;
  1441. call_TRADT12023();
  1442. if(arErrorCode.pop("TRADT12023") > -1) {
  1443. if(ds_failList.rowcount > 0) {
  1444. open_SMADT12009();
  1445. }
  1446. }
  1447. }
  1448. function btn_check_onclick(obj:Button, e:ClickEventInfo)
  1449. {
  1450. call_TRADT12023();
  1451. if(arErrorCode.pop("TRADT12023") > -1) {
  1452. if(ds_failList.rowcount > 0) {
  1453. open_SMADT12009();
  1454. } else if(ds_successList.rowcount > 0){
  1455. sysf_messageBox("마감데이터 확인 되었습니다..","I");
  1456. } else {
  1457. sysf_messageBox("해당 조건의 마감데이터가 없습니다..","I");
  1458. }
  1459. }
  1460. }
  1461. function call_TRADT12023() {
  1462. ds_successList.clearData();
  1463. ds_failList.clearData();
  1464. var oParam = {};
  1465. oParam.id = "TRADT12023";
  1466. oParam.service = "pharmacydrugsumapp.NarcManagent";
  1467. oParam.method = "reqGetMagamDrugStocDataChk";
  1468. oParam.inds = "req=ds_senddata";
  1469. oParam.outds = "ds_successList=successlist ds_failList=faillist";
  1470. oParam.callback = "cf_TRADT12023";
  1471. oParam.async = false;
  1472. tranf_submit(oParam);
  1473. }
  1474. function cf_TRADT12023(sSvcId, nErrorCode, sErrorMsg) {
  1475. arErrorCode.push(sSvcId, nErrorCode);
  1476. }
  1477. function open_SMADT12009() {
  1478. var objArg = new Object();
  1479. objArg.arg_ds_senddata = ds_senddata;
  1480. objArg.arg_ds_successList = ds_successList;
  1481. objArg.arg_ds_failList = ds_failList;
  1482. frmf_modal("SMADT12009", "SMADT12009", objArg, null, null, null, null, null, null, null, null, null, "M");
  1483. }
  1484. function grd_daypatlist_onkeydown(obj:Grid, e:KeyEventInfo)
  1485. {
  1486. fGridCopyClipboard(obj, e);
  1487. }
  1488. function grd_selstoclist_onkeydown(obj:Grid, e:KeyEventInfo)
  1489. {
  1490. fGridCopyClipboard(obj, e);
  1491. }
  1492. function fGridCopyClipboard(obj:Grid, e:KeyEventInfo)
  1493. {
  1494. var bPushed = e.ctrlKey;
  1495. var clipStr = "";
  1496. if (e.keycode == 67 && bPushed == true ) // ctrl + c
  1497. {
  1498. clipStr = obj.getCellText(obj.currentrow, obj.currentcol);
  1499. system.clearClipboard();
  1500. system.setClipboard("CF_TEXT",clipStr);
  1501. }
  1502. }
  1503. ]]></Script>
  1504. </Form>
  1505. </FDL>