SMADT20300_특수조제실출력.xfdl 72 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMADT20300" position="absolute 0 0 1194 787" titletext="특수조제실 출력 및 마감" oninit="SMADT20300_oninit" onload="SMADT20300_onload" ontimer="SMADT20300_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 87 1194 785" id="group3" scrollbars="autoboth" anchor="all">
  8. <Layouts>
  9. <Layout>
  10. <Shape position="absolute 0 -1 1194 5" linetype="horizontal" id="line9" class="line_1" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
  11. <Shape position="absolute 0 691 1194 697" linetype="horizontal" id="line1" class="line_3" anchor="left right bottom"/>
  12. <Grid position="absolute 275 4 1194 656" id="grd_prcplist" binddataset="ds_main_masterinfo_grid1" anchor="all" cellsizingtype="col" selecttype="multirow" onlbuttonup="group3_grd_prcplist_onlbuttonup" onrbuttondown="group3_grd_prcplist_onrbuttondown" cellclickbound="cell">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="54"/>
  17. <Column size="46"/>
  18. <Column size="70"/>
  19. <Column size="43"/>
  20. <Column size="42"/>
  21. <Column size="33"/>
  22. <Column size="35"/>
  23. <Column size="40"/>
  24. <Column size="0"/>
  25. <Column size="0"/>
  26. <Column size="93"/>
  27. <Column size="27"/>
  28. <Column size="57"/>
  29. <Column size="100"/>
  30. <Column size="54"/>
  31. <Column size="54"/>
  32. <Column size="35"/>
  33. <Column size="50"/>
  34. <Column size="50"/>
  35. <Column size="34"/>
  36. <Column size="31"/>
  37. <Column size="41"/>
  38. <Column size="84"/>
  39. <Column size="83"/>
  40. <Column size="58"/>
  41. <Column size="79"/>
  42. <Column size="0"/>
  43. <Column size="0"/>
  44. <Column size="0"/>
  45. <Column size="0"/>
  46. <Column size="0"/>
  47. <Column size="0"/>
  48. <Column size="0"/>
  49. <Column size="0"/>
  50. <Column size="0"/>
  51. <Column size="0"/>
  52. <Column size="0"/>
  53. <Column size="0"/>
  54. <Column size="0"/>
  55. <Column size="0"/>
  56. <Column size="0"/>
  57. <Column size="0"/>
  58. <Column size="0"/>
  59. </Columns>
  60. <Rows>
  61. <Row size="24" band="head"/>
  62. <Row size="24"/>
  63. </Rows>
  64. <Band id="head">
  65. <Cell text="처방구분"/>
  66. <Cell col="1" text="병실"/>
  67. <Cell col="2" text="등록번호"/>
  68. <Cell col="3" text="성명"/>
  69. <Cell col="4" text="S/A"/>
  70. <Cell col="5" text="과"/>
  71. <Cell col="6" text="D#"/>
  72. <Cell col="7" text="Mix"/>
  73. <Cell col="8"/>
  74. <Cell col="9"/>
  75. <Cell col="10" text="약품코드"/>
  76. <Cell col="11" displaytype="checkbox" edittype="checkbox"/>
  77. <Cell col="12" text="상태"/>
  78. <Cell col="13" text="전달사항"/>
  79. <Cell col="14" text="용량"/>
  80. <Cell col="15" text="1회용량"/>
  81. <Cell col="16" text="단위"/>
  82. <Cell col="17" text="수량"/>
  83. <Cell col="18" text="1회수량"/>
  84. <Cell col="19" text="단위"/>
  85. <Cell col="20" text="횟수"/>
  86. <Cell col="21" text="일수"/>
  87. <Cell col="22" text="적용일자"/>
  88. <Cell col="23" text="입원일"/>
  89. <Cell col="24" text="퇴원예고"/>
  90. <Cell col="25" text="퇴원예정일"/>
  91. <Cell col="26" text="caption1"/>
  92. <Cell col="27" text="caption2"/>
  93. <Cell col="28" text="caption3"/>
  94. <Cell col="29" text="caption4"/>
  95. <Cell col="30" text="caption5"/>
  96. <Cell col="31" text="caption6"/>
  97. <Cell col="32" text="caption7"/>
  98. <Cell col="33" text="caption8"/>
  99. <Cell col="34" text="caption9"/>
  100. <Cell col="35" text="caption10"/>
  101. <Cell col="36" text="caption11"/>
  102. <Cell col="37" text="caption12"/>
  103. <Cell col="38" text="caption13"/>
  104. <Cell col="39" text="caption14"/>
  105. <Cell col="40" text="caption15"/>
  106. <Cell col="41" text="caption16"/>
  107. <Cell col="42" text="caption18"/>
  108. </Band>
  109. <Band id="body">
  110. <Cell style="align:left middle;padding:0 0 0 3;" text="bind:prcpflagnm" wordwrap="char" suppress="1" suppressalign="middle,over"/>
  111. <Cell col="1" style="align:left middle;padding:0 0 0 3;" text="bind:roomcd" wordwrap="char" suppress="2" suppressalign="middle,over"/>
  112. <Cell col="2" style="align:left middle;padding:0 0 0 3;background:EXPR(dschstat=='퇴원예고'||dschstat=='퇴원수납'?'#f7a08b':'');background2:EXPR(dschstat=='퇴원예고'||dschstat=='퇴원수납'?'#f7a08b':'');" text="bind:pid" wordwrap="char" suppress="3" suppressalign="middle,over"/>
  113. <Cell col="3" style="align:left middle;padding:0 0 0 3;" text="bind:hngnm" wordwrap="char" suppress="3" suppressalign="middle,over"/>
  114. <Cell col="4" style="align:left middle;padding:0 0 0 3;" text="bind:sexage" wordwrap="char" suppress="3" suppressalign="middle,over"/>
  115. <Cell col="5" style="align:left middle;padding:0 0 0 3;" text="bind:orddeptnm" wordwrap="char" suppress="3" suppressalign="middle,over"/>
  116. <Cell col="6" style="align:left middle;padding:0 0 0 3;" text="bind:prtldg" wordwrap="char" suppress="3" suppressalign="middle,over"/>
  117. <Cell col="7" style="align:left middle;padding:0 0 0 3;" text="bind:prcpmixno" wordwrap="char" suppress="4" suppressalign="middle,over"/>
  118. <Cell col="8" text="bind:execprcphistcdnm" wordwrap="char"/>
  119. <Cell col="9" text="bind:prcpno" wordwrap="char"/>
  120. <Cell col="10" style="align:left;padding:0 0 0 3;background:EXPR(prcpexecdeptnm=='ID'?'#d5bfaa':execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(prcpexecdeptnm=='ID'?'#d5bfaa':execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:prcpcd" wordwrap="char"/>
  121. <Cell col="11" displaytype="checkbox" edittype="checkbox" style="background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:sel" expr="expr:(sel==&quot;Y&quot;||sel==1)?1:0" wordwrap="char"/>
  122. <Cell col="12" style="align:left;padding:0 0 0 3;background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:drugstatnm" wordwrap="char"/>
  123. <Cell col="13" style="align:left;padding:0 0 0 3;background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:prcpdelivefact" wordwrap="char"/>
  124. <Cell col="14" style="background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:prcpvol"/>
  125. <Cell col="15" style="align:right;padding:0 3 0 0;background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:prcpvol2"/>
  126. <Cell col="16" style="background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:prcpvolunit"/>
  127. <Cell col="17" style="align:right;padding:0 3 0 0;background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:prcpqty"/>
  128. <Cell col="18" style="align:right;padding:0 3 0 0;background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:prcpqty2"/>
  129. <Cell col="19" style="background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:prcpqtyunit"/>
  130. <Cell col="20" style="align:right;padding:0 3 0 0;background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:prcptims"/>
  131. <Cell col="21" style="align:right;padding:0 3 0 0;background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:prcpdayno"/>
  132. <Cell col="22" displaytype="expr:utlf_isNull(prcpdd) || prcpdd == '-' ? 'normal' : 'date'" style="background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:prcpdd"/>
  133. <Cell col="23" displaytype="expr:utlf_isNull(orddd) || orddd == '-' ? 'normal' : 'date'" style="background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:orddd"/>
  134. <Cell col="24" style="background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:dschstat"/>
  135. <Cell col="25" displaytype="expr:utlf_isNull(dschdd) || dschdd == '-' ? 'normal' : 'date'" style="background:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');background2:EXPR(execprcphistcdnm=='DC전'?'#b9e5fb':execprcphistcdnm=='반납'?'#fec34d':'');" text="bind:dschdd"/>
  136. <Cell col="26" text="bind:drugno"/>
  137. <Cell col="27" text="bind:drugtypenm"/>
  138. <Cell col="28" text="bind:sumdt"/>
  139. <Cell col="29" text="bind:prntdt"/>
  140. <Cell col="30" text="bind:drugstat"/>
  141. <Cell col="31" text="bind:drugdd"/>
  142. <Cell col="32" text="bind:ioflag"/>
  143. <Cell col="33" text="bind:instcd"/>
  144. <Cell col="34" text="bind:prcphistno"/>
  145. <Cell col="35" text="bind:grdselrow"/>
  146. <Cell col="36" text="bind:reteresn"/>
  147. <Cell col="37" text="bind:prcpflag"/>
  148. <Cell col="38" text="bind:wardcd"/>
  149. <Cell col="39" text="bind:cretno"/>
  150. <Cell col="40" text="bind:drugseqno"/>
  151. <Cell col="41" text="bind:userid"/>
  152. <Cell col="42" text="bind:reglindcaseyn"/>
  153. </Band>
  154. </Format>
  155. </Formats>
  156. </Grid>
  157. <Grid position="absolute 0 4 270 689" id="grd_sumlist" binddataset="ds_main_sumlist" anchor="left top bottom" onlbuttonup="group3_grd_sumlist_onlbuttonup" cellsizingtype="col" onheadclick="group3_grd_sumlist_onheadclick" cellclickbound="cell" oncellclick="group3_grd_sumlist_oncellclick">
  158. <Formats>
  159. <Format id="default">
  160. <Columns>
  161. <Column size="25"/>
  162. <Column size="24"/>
  163. <Column size="70"/>
  164. <Column size="55"/>
  165. <Column size="0"/>
  166. <Column size="0"/>
  167. <Column size="60"/>
  168. <Column size="38"/>
  169. <Column size="0"/>
  170. <Column size="0"/>
  171. <Column size="0"/>
  172. </Columns>
  173. <Rows>
  174. <Row size="24" band="head"/>
  175. <Row size="24"/>
  176. </Rows>
  177. <Band id="head">
  178. <Cell/>
  179. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  180. <Cell col="2" text="마감일자"/>
  181. <Cell col="3" text="마감시간"/>
  182. <Cell col="4" text="sumdt"/>
  183. <Cell col="5" text="sumcls"/>
  184. <Cell col="6" text="처방구분"/>
  185. <Cell col="7" text="건수"/>
  186. <Cell col="8" text="drugdd"/>
  187. <Cell col="9" text="ioflag"/>
  188. <Cell col="10" text="instcd"/>
  189. </Band>
  190. <Band id="body">
  191. <Cell celltype="head" text="expr:currow+1"/>
  192. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:sel" expr="expr:(sel==&quot;Y&quot;||sel==1)?1:0"/>
  193. <Cell col="2" displaytype="date" style="align:left middle;" text="bind:sumdd"/>
  194. <Cell col="3" text="bind:sumtm" mask="@@:@@:@@"/>
  195. <Cell col="4" text="bind:sumdt"/>
  196. <Cell col="5" text="bind:sumcls"/>
  197. <Cell col="6" text="bind:prcpflagnm" wordwrap="char"/>
  198. <Cell col="7" text="bind:cnt"/>
  199. <Cell col="8" text="bind:drugdd"/>
  200. <Cell col="9" text="bind:ioflag"/>
  201. <Cell col="10" text="bind:instcd"/>
  202. </Band>
  203. </Format>
  204. </Formats>
  205. </Grid>
  206. <Shape id="roundrect3" type="roundrectangle" position="absolute 275 659 945 689" anchor="left bottom"/>
  207. <Static id="caption40" class="color_5" position="absolute 455 666 470 681" anchor="left bottom"/>
  208. <Static id="caption41" text="범 례" class="cell_2" position="absolute 295 664 365 684" anchor="left bottom"/>
  209. <Static id="caption43" text="분할전 원처방" visible="false" position="absolute 680 667 765 681" anchor="left bottom"/>
  210. <Static id="caption38" text="반환" position="absolute 473 667 508 681" anchor="left bottom"/>
  211. <Static id="caption39" class="color_7" position="absolute 377 666 392 681" anchor="left bottom"/>
  212. <Static id="caption29" text="반환의뢰" position="absolute 395 667 445 681" anchor="left bottom"/>
  213. <Static id="caption4" class="color_6" position="absolute 512 666 527 681" anchor="left bottom"/>
  214. <Static id="caption5" text="퇴원환자" position="absolute 530 667 580 681" anchor="left bottom"/>
  215. <Static id="caption8" text="실출고부서" position="absolute 972 665 1041 685" anchor="left bottom" style="color:red;font:Dotum,9,bold;"/>
  216. <Combo id="combo3" taborder="1" innerdataset="@ds_init_misdeptlist_deptlist" codecolumn="deptcd" datacolumn="deptnm" position="absolute 1040 665 1161 684" anchor="left bottom" onitemchanged="group3_combo3_onitemchanged"/>
  217. <Static id="caption42" class="color_9" visible="false" position="absolute 662 666 677 681" anchor="left bottom"/>
  218. <Static position="absolute 590 666 605 681" id="caption46" class="color_8" anchor="left bottom"/>
  219. <Static text="병동약국" position="absolute 608 667 658 681" align="align:center middle;" id="caption48" anchor="left bottom"/>
  220. </Layout>
  221. </Layouts>
  222. </Div>
  223. <Div position="absolute 0 61 1194 88" id="group4" scrollbars="autoboth" anchor="left top right">
  224. <Layouts>
  225. <Layout>
  226. <Button position="absolute 94 3 162 25" id="button1" class="btn6" text="처방전" anchor="default" onclick="group4_button1_onclick"/>
  227. <Button position="absolute 222 3 290 25" id="button2" class="btn6" text="조제표" anchor="default" onclick="group4_button2_onclick"/>
  228. <Button position="absolute 362 3 454 25" id="button3" class="btn6" text="반환리스트" anchor="default" onclick="group4_button3_onclick"/>
  229. <Button position="absolute 164 3 220 25" id="button5" class="btn6" text="라벨" anchor="default" onclick="group4_button5_onclick"/>
  230. <Button position="absolute 292 3 360 25" id="button6" class="btn6" text="집계표" anchor="default" onclick="group4_button6_onclick"/>
  231. <Button position="absolute 0 3 92 25" id="btn_prnt" class="btn3" text="프린터설정" anchor="default" onclick="group4_btn_prnt_onclick"/>
  232. <Button position="absolute 1055 3 1111 25" id="button29" class="btn4" text="마감" anchor="top right" onclick="group4_button29_onclick"/>
  233. <Button position="absolute 1114 3 1194 25" id="button4" class="btn4" visible="true" text="마감취소" anchor="top right" onclick="group4_button4_onclick"/>
  234. <Combo position="absolute 465 5 565 24" id="combo1" visible="false" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
  235. <Dataset id="innerdataset">
  236. <ColumnInfo>
  237. <Column id="codecolumn"/>
  238. <Column id="datacolumn"/>
  239. </ColumnInfo>
  240. <Rows>
  241. <Row>
  242. <Col id="codecolumn">S</Col>
  243. <Col id="datacolumn">입원주사조제</Col>
  244. </Row>
  245. <Row>
  246. <Col id="codecolumn">V</Col>
  247. <Col id="datacolumn">외래주사조제</Col>
  248. </Row>
  249. <Row>
  250. <Col id="codecolumn">U</Col>
  251. <Col id="datacolumn">원내조제</Col>
  252. </Row>
  253. <Row>
  254. <Col id="codecolumn">Q</Col>
  255. <Col id="datacolumn">완제품TPN</Col>
  256. </Row>
  257. </Rows>
  258. </Dataset>
  259. </Combo>
  260. <Static text="등록번호 :" position="absolute 863 7 937 24" id="caption7" class="search_name" anchor="default"/>
  261. <Edit position="absolute 940 5 1021 24" id="input4" anchor="default"/>
  262. <Static text="[병동별 마감]" position="absolute 465 9 560 24" id="caption6" anchor="default" style="color:blue;font:Dotum,9,bold;"/>
  263. <Edit id="ipt_wardnm" taborder="1" class="input_search" enable="false" position="absolute 550 5 830 24" anchor="default"/>
  264. <Button id="button7" taborder="2" class="icon_search" position="absolute 831 6 847 22" anchor="default" onclick="group4_button7_onclick"/>
  265. </Layout>
  266. </Layouts>
  267. </Div>
  268. <Edit position="absolute 710 84 850 103" id="ipt_wardcd" class="input_search" visible="false"/>
  269. <Static id="caption19" text="특수조제실 처방전/라벨/집계표/조제표 출력" class="tit_1" position="absolute 0 0 300 25"/>
  270. <Div id="group2" taborder="1" class="div_SA" position="absolute 0 25 1194 62" anchor="left top right">
  271. <Layouts>
  272. <Layout>
  273. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1071 7 1077 32" anchor="top right"/>
  274. <Calendar id="ipt_prcpdd" taborder="1" class="input_default" position="absolute 90 10 178 29" anchor="default" onchanged="group2_ipt_prcpdd_onchanged"/>
  275. <Button id="btn_sea" taborder="2" text="조회" class="btn1" position="absolute 1129 8 1185 30" anchor="top right" onclick="group2_btn_sea_onclick"/>
  276. <Radio id="rdo_ioflag" taborder="3" columncount="3" rowcount="4" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 286 10 381 30" anchor="default" onitemchanged="group2_rdo_ioflag_onitemchanged">
  277. <Dataset id="innerdataset">
  278. <ColumnInfo>
  279. <Column id="codecolumn"/>
  280. <Column id="datacolumn"/>
  281. </ColumnInfo>
  282. <Rows>
  283. <Row>
  284. <Col id="codecolumn">I</Col>
  285. <Col id="datacolumn">입원</Col>
  286. </Row>
  287. <Row>
  288. <Col id="codecolumn">O</Col>
  289. <Col id="datacolumn">외래</Col>
  290. </Row>
  291. </Rows>
  292. </Dataset>
  293. </Radio>
  294. <Static id="caption1" text="입원외래구분 :" class="search_name" position="absolute 185 12 289 29" anchor="default"/>
  295. <Static id="caption2" text="처방구분 :" class="search_name" position="absolute 386 12 464 29" anchor="default"/>
  296. <CheckBox id="checkbox3" taborder="4" class="checkbox_search" position="absolute 461 9 536 29" anchor="default" text="전체선택" truevalue="Y" onchanged="group2_checkbox3_onchanged"/>
  297. <Combo id="combo2" taborder="6" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_s_essential" position="absolute 8 10 85 29" anchor="default" onitemchanged="group2_combo2_onitemchanged">
  298. <Dataset id="innerdataset">
  299. <ColumnInfo>
  300. <Column id="codecolumn"/>
  301. <Column id="datacolumn"/>
  302. </ColumnInfo>
  303. <Rows>
  304. <Row>
  305. <Col id="codecolumn">1</Col>
  306. <Col id="datacolumn">적용일자</Col>
  307. </Row>
  308. <Row>
  309. <Col id="codecolumn">2</Col>
  310. <Col id="datacolumn">마감일자</Col>
  311. </Row>
  312. </Rows>
  313. </Dataset>
  314. </Combo>
  315. <CheckBox id="chk_autoflag" taborder="7" position="absolute 1080 12 1125 27" anchor="top right" text="자동" onchanged="group2_chk_autoflag_onchanged" truevalue="1"/>
  316. <Static id="caption3" text="※ 체크된 처방구분만 마감됩니다." position="absolute 869 10 1074 30" anchor="default" style="color:blue;font:Dotum,9,bold;"/>
  317. <cp_checkboxList id="checkbox1" titletext="CheckBox List" taborder="8" text="cp_checkboxList00" scrollbars="none" position="absolute 535 11 635 29" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible" anchor="default"/>
  318. </Layout>
  319. </Layouts>
  320. </Div>
  321. <cp_checkboxList id="chk_ward" titletext="CheckBox List" taborder="4" scrollbars="none" visible="false" position="absolute 550 85 650 109" style="background:azure;" col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
  322. </Layout>
  323. </Layouts>
  324. <Objects>
  325. <Dataset id="ds_main_list1_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  326. <ColumnInfo>
  327. <Column id="선택" type="STRING" size="256"/>
  328. <Column id="room" type="STRING" size="256"/>
  329. </ColumnInfo>
  330. </Dataset>
  331. <Dataset id="ds_main_sumlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_sumlist_oncolumnchanged">
  332. <ColumnInfo>
  333. <Column id="sel" type="STRING" size="256"/>
  334. <Column id="sumdd" type="STRING" size="256"/>
  335. <Column id="sumtm" type="STRING" size="256"/>
  336. <Column id="sumdt" type="STRING" size="256"/>
  337. <Column id="sumcls" type="STRING" size="256"/>
  338. <Column id="prcpflagnm" type="STRING" size="256"/>
  339. <Column id="cnt" type="STRING" size="256"/>
  340. <Column id="drugdd" type="STRING" size="256"/>
  341. <Column id="ioflag" type="STRING" size="256"/>
  342. <Column id="instcd" type="STRING" size="256"/>
  343. </ColumnInfo>
  344. </Dataset>
  345. <Dataset id="ds_main_masterinfo_grid1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_masterinfo_grid1_oncolumnchanged">
  346. <ColumnInfo>
  347. <Column id="roomcd" type="STRING" size="256"/>
  348. <Column id="pid" type="STRING" size="256"/>
  349. <Column id="hngnm" type="STRING" size="256"/>
  350. <Column id="sexage" type="STRING" size="256"/>
  351. <Column id="orddeptnm" type="STRING" size="256"/>
  352. <Column id="prtldg" type="STRING" size="256"/>
  353. <Column id="prcpmixno" type="STRING" size="256"/>
  354. <Column id="prcpno" type="STRING" size="256"/>
  355. <Column id="prcpcd" type="STRING" size="256"/>
  356. <Column id="sel" type="STRING" size="256"/>
  357. <Column id="drugstatnm" type="STRING" size="256"/>
  358. <Column id="prcpdelivefact" type="STRING" size="256"/>
  359. <Column id="prcpvol" type="STRING" size="256"/>
  360. <Column id="prcpvolunit" type="STRING" size="256"/>
  361. <Column id="prcpqty" type="STRING" size="256"/>
  362. <Column id="prcpqtyunit" type="STRING" size="256"/>
  363. <Column id="prcptims" type="STRING" size="256"/>
  364. <Column id="prcpdayno" type="STRING" size="256"/>
  365. <Column id="prcpdd" type="STRING" size="256"/>
  366. <Column id="orddd" type="STRING" size="256"/>
  367. <Column id="drugno" type="STRING" size="256"/>
  368. <Column id="drugtypenm" type="STRING" size="256"/>
  369. <Column id="sumdt" type="STRING" size="256"/>
  370. <Column id="prntdt" type="STRING" size="256"/>
  371. <Column id="drugstat" type="STRING" size="256"/>
  372. <Column id="drugdd" type="STRING" size="256"/>
  373. <Column id="ioflag" type="STRING" size="256"/>
  374. <Column id="instcd" type="STRING" size="256"/>
  375. <Column id="prcphistno" type="STRING" size="256"/>
  376. <Column id="grdselrow" type="STRING" size="256"/>
  377. <Column id="reteresn" type="STRING" size="256"/>
  378. <Column id="prcpflag" type="STRING" size="256"/>
  379. <Column id="wardcd" type="STRING" size="256"/>
  380. <Column id="cretno" type="STRING" size="256"/>
  381. <Column id="drugseqno" type="STRING" size="256"/>
  382. <Column id="userid" type="STRING" size="256"/>
  383. <Column id="dschstat" type="STRING" size="256"/>
  384. <Column id="dschdd" type="STRING" size="256"/>
  385. <Column id="lblflag" type="STRING" size="256"/>
  386. </ColumnInfo>
  387. </Dataset>
  388. <Dataset id="ds_main_sumprintlist_sumlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  389. <Dataset id="ds_send_suminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  390. <ColumnInfo>
  391. <Column id="prcpdd" type="STRING" size="256"/>
  392. <Column id="prcpflag" type="STRING" size="256"/>
  393. <Column id="instcd" type="STRING" size="256"/>
  394. <Column id="drugflag" type="STRING" size="256"/>
  395. <Column id="drugkind" type="STRING" size="256"/>
  396. <Column id="kindd" type="STRING" size="256"/>
  397. <Column id="kindb" type="STRING" size="256"/>
  398. <Column id="kindt" type="STRING" size="256"/>
  399. <Column id="kindc" type="STRING" size="256"/>
  400. <Column id="pid" type="STRING" size="256"/>
  401. <Column id="kind1" type="STRING" size="256"/>
  402. <Column id="wardcd" type="STRING" size="256"/>
  403. </ColumnInfo>
  404. <Rows>
  405. <Row>
  406. <Col id="prcpdd"/>
  407. <Col id="prcpflag"/>
  408. <Col id="instcd"/>
  409. <Col id="drugflag">S</Col>
  410. <Col id="drugkind"/>
  411. <Col id="kindd"/>
  412. <Col id="kindb"/>
  413. <Col id="kindt"/>
  414. <Col id="kindc"/>
  415. <Col id="pid"/>
  416. <Col id="kind1"/>
  417. <Col id="wardcd"/>
  418. </Row>
  419. </Rows>
  420. </Dataset>
  421. <Dataset id="ds_send_sumlistinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  422. <ColumnInfo>
  423. <Column id="drugflag" type="STRING" size="256"/>
  424. </ColumnInfo>
  425. <Rows>
  426. <Row>
  427. <Col id="drugflag">S</Col>
  428. </Row>
  429. </Rows>
  430. </Dataset>
  431. <Dataset id="ds_send_srchinfo_sumlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  432. <ColumnInfo>
  433. <Column id="roomcd" type="STRING" size="256"/>
  434. <Column id="srchioflag" type="STRING" size="256"/>
  435. </ColumnInfo>
  436. </Dataset>
  437. <Dataset id="ds_send_prcpinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  438. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  439. <ColumnInfo>
  440. <Column id="scrnid" type="STRING" size="256"/>
  441. <Column id="data1" type="STRING" size="256"/>
  442. </ColumnInfo>
  443. <Rows>
  444. <Row/>
  445. </Rows>
  446. </Dataset>
  447. <Dataset id="ds_send_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  448. <Dataset id="ds_init_barcdprntsetup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  449. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  450. <ColumnInfo>
  451. <Column id="autoflag" type="STRING" size="256"/>
  452. </ColumnInfo>
  453. <Rows>
  454. <Row/>
  455. </Rows>
  456. </Dataset>
  457. <Dataset id="ds_hidden_srchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  458. <ColumnInfo>
  459. <Column id="drugdd" type="STRING" size="256"/>
  460. <Column id="fst_drugno" type="STRING" size="256"/>
  461. <Column id="last_drugno" type="STRING" size="256"/>
  462. <Column id="prcpflag" type="STRING" size="256"/>
  463. <Column id="mpsflag" type="STRING" size="256"/>
  464. <Column id="lblyn" type="STRING" size="256"/>
  465. <Column id="lbl_drug" type="STRING" size="256"/>
  466. <Column id="lbl_inj" type="STRING" size="256"/>
  467. <Column id="ward" type="STRING" size="256"/>
  468. <Column id="pid" type="STRING" size="256"/>
  469. <Column id="prntflag" type="STRING" size="256"/>
  470. <Column id="instcd" type="STRING" size="256"/>
  471. <Column id="sumdt" type="STRING" size="256"/>
  472. <Column id="drugflag" type="STRING" size="256"/>
  473. <Column id="drugkind" type="STRING" size="256"/>
  474. <Column id="drugkindall" type="STRING" size="256"/>
  475. <Column id="ioflag" type="STRING" size="256"/>
  476. <Column id="wardcd" type="STRING" size="256"/>
  477. <Column id="wardnm" type="STRING" size="256"/>
  478. <Column id="timeflag" type="STRING" size="256"/>
  479. </ColumnInfo>
  480. <Rows>
  481. <Row>
  482. <Col id="drugdd"/>
  483. <Col id="fst_drugno"/>
  484. <Col id="last_drugno"/>
  485. <Col id="prcpflag"/>
  486. <Col id="mpsflag"/>
  487. <Col id="lblyn"/>
  488. <Col id="lbl_drug"/>
  489. <Col id="lbl_inj"/>
  490. <Col id="ward"/>
  491. <Col id="pid"/>
  492. <Col id="prntflag"/>
  493. <Col id="instcd"/>
  494. <Col id="sumdt"/>
  495. <Col id="drugflag">S</Col>
  496. <Col id="drugkind"/>
  497. <Col id="drugkindall"/>
  498. <Col id="ioflag">I</Col>
  499. <Col id="wardcd"/>
  500. <Col id="wardnm"/>
  501. <Col id="timeflag">1</Col>
  502. </Row>
  503. </Rows>
  504. </Dataset>
  505. <Dataset id="ds_hidden_rtninfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  506. <Dataset id="ds_hidden_prcpsrch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  507. <ColumnInfo>
  508. <Column id="stocdeptcd" type="STRING" size="256"/>
  509. </ColumnInfo>
  510. <Rows>
  511. <Row/>
  512. </Rows>
  513. </Dataset>
  514. <Dataset id="ds_temp_prnt_druglist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  515. <ColumnInfo>
  516. <Column id="roomcd" type="STRING" size="256"/>
  517. <Column id="pid" type="STRING" size="256"/>
  518. <Column id="hngnm" type="STRING" size="256"/>
  519. <Column id="agesex" type="STRING" size="256"/>
  520. <Column id="bsa" type="STRING" size="256"/>
  521. <Column id="orddeptnm" type="STRING" size="256"/>
  522. <Column id="diagnm" type="STRING" size="256"/>
  523. <Column id="prtlnm" type="STRING" size="256"/>
  524. <Column id="prtldg" type="STRING" size="256"/>
  525. <Column id="prcpmixno" type="STRING" size="256"/>
  526. <Column id="prcpcd" type="STRING" size="256"/>
  527. <Column id="prcpvol" type="STRING" size="256"/>
  528. <Column id="prcpvolunit" type="STRING" size="256"/>
  529. <Column id="prcptims" type="STRING" size="256"/>
  530. </ColumnInfo>
  531. <Rows>
  532. <Row>
  533. <Col id="roomcd"/>
  534. <Col id="pid"/>
  535. <Col id="hngnm"/>
  536. <Col id="agesex"/>
  537. <Col id="bsa"/>
  538. <Col id="orddeptnm"/>
  539. <Col id="diagnm"/>
  540. <Col id="prtlnm"/>
  541. <Col id="prtldg"/>
  542. <Col id="prcpmixno"/>
  543. <Col id="prcpcd"/>
  544. <Col id="prcpvol"/>
  545. <Col id="prcpvolunit"/>
  546. <Col id="prcptims"/>
  547. </Row>
  548. </Rows>
  549. </Dataset>
  550. <Dataset id="ds_temp_prnt_sumlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  551. <Dataset id="ds_temp_srchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  552. <ColumnInfo>
  553. <Column id="ward" type="STRING" size="256"/>
  554. </ColumnInfo>
  555. <Rows>
  556. <Row/>
  557. </Rows>
  558. </Dataset>
  559. <Dataset id="ds_temp_prntdrugsumlist_sumclsB_prntdrugsum" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  560. <ColumnInfo>
  561. <Column id="drugcd" type="STRING" size="256"/>
  562. <Column id="sum" type="STRING" size="256"/>
  563. </ColumnInfo>
  564. <Rows>
  565. <Row/>
  566. </Rows>
  567. </Dataset>
  568. <Dataset id="ds_temp_prntdrugsumlist_sumclsT_prntdrugsum" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="false" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  569. <ColumnInfo>
  570. <Column id="drugcd" type="STRING" size="256"/>
  571. <Column id="sum" type="STRING" size="256"/>
  572. </ColumnInfo>
  573. <Rows>
  574. <Row/>
  575. </Rows>
  576. </Dataset>
  577. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  578. <ColumnInfo>
  579. <Column id="reteresn" type="STRING" size="256"/>
  580. <Column id="stocdeptcd" type="STRING" size="256"/>
  581. </ColumnInfo>
  582. <Rows>
  583. <Row/>
  584. </Rows>
  585. </Dataset>
  586. <Dataset id="ds_checkbox1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  587. <ColumnInfo>
  588. <Column id="label" type="STRING" size="256"/>
  589. <Column id="value" type="STRING" size="256"/>
  590. </ColumnInfo>
  591. <Rows>
  592. <Row>
  593. <Col id="label">항암제</Col>
  594. <Col id="value">D</Col>
  595. </Row>
  596. <Row>
  597. <Col id="label">소아TPN</Col>
  598. <Col id="value">B</Col>
  599. </Row>
  600. <Row>
  601. <Col id="label">TPN</Col>
  602. <Col id="value">T</Col>
  603. </Row>
  604. <Row>
  605. <Col id="label">무균조제</Col>
  606. <Col id="value">C</Col>
  607. </Row>
  608. <Row>
  609. <Col id="label">면역억제제</Col>
  610. <Col id="value">1</Col>
  611. </Row>
  612. </Rows>
  613. </Dataset>
  614. <Dataset id="ds_send_deptinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  615. <Dataset id="ds_hidden_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  616. <Dataset id="ds_main_barcdprntsetup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  617. <Dataset id="ds_init_misdeptlist_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  618. <Dataset id="ds_main_sumrslt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  619. <Dataset id="ds_hidden_ret" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  620. </Objects>
  621. <Bind>
  622. <BindItem id="item0" compid="group2.combo2" propid="value" datasetid="ds_hidden_srchinfo" columnid="timeflag"/>
  623. <BindItem id="item1" compid="group2.ipt_prcpdd" propid="value" datasetid="ds_hidden_srchinfo" columnid="drugdd"/>
  624. <BindItem id="item2" compid="group2.rdo_ioflag" propid="value" datasetid="ds_hidden_srchinfo" columnid="ioflag"/>
  625. <BindItem id="item3" compid="group2.checkbox3" propid="value" datasetid="ds_hidden_srchinfo" columnid="drugkindall"/>
  626. <BindItem id="item4" compid="group2.chk_autoflag" propid="value" datasetid="ds_init" columnid="autoflag"/>
  627. <BindItem id="item5" compid="ipt_wardcd" propid="value" datasetid="ds_hidden_srchinfo" columnid="wardcd"/>
  628. <BindItem id="item6" compid="group4.ipt_wardnm" propid="value" datasetid="ds_hidden_srchinfo" columnid="wardnm"/>
  629. <BindItem id="item7" compid="group4.input4" propid="value" datasetid="ds_hidden_srchinfo" columnid="pid"/>
  630. <BindItem id="item8" compid="group3.combo3" propid="value" datasetid="ds_hidden_prcpsrch" columnid="stocdeptcd"/>
  631. </Bind>
  632. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  633. * System Name :
  634. * Job Name :
  635. * Creator :
  636. * Make Date : 2015-11-13
  637. * Description :
  638. *---------------------------------------------------------------------------------------
  639. * Modify Date Modifier Modify Description
  640. *---------------------------------------------------------------------------------------
  641. * 2015-11-13 Live Converter TF->XP
  642. *
  643. *---------------------------------------------------------------------------------------
  644. ****************************************************************************************/
  645. //=======================================================================================
  646. // Lib Include
  647. //---------------------------------------------------------------------------------------
  648. include "com_commonxp::comm_main.xjs"
  649. include "ast_commonxp::AST.xjs"
  650. include "com_commodulexp::SSZFM00901.xjs"
  651. include "ast_pharmacyxp::SMADT20300.xjs"
  652. include "emr_prcpmngtxp::MMOCommon.xjs"
  653. //=======================================================================================
  654. // Global Form Variable
  655. //---------------------------------------------------------------------------------------
  656. var arErrorCode = new HashArray();
  657. var gTimer = 0;
  658. var checkAllFlag = "N";
  659. //=======================================================================================
  660. // Function
  661. //---------------------------------------------------------------------------------------
  662. /****************************************************************************************
  663. * Argument : N/A
  664. * Description :
  665. ****************************************************************************************/
  666. function fn_checkbox1() {
  667. ds_hidden_srchinfo.setColumn(0,"drugkind",String(group2.checkbox1.getData()).replace(",","|"));
  668. var sDrugkind = ds_hidden_srchinfo.getColumn(0,"drugkind");
  669. // alert(sDrugkind.length);
  670. if(sDrugkind.length == 9){
  671. group2.checkbox3.enableevent = false;
  672. ds_hidden_srchinfo.setColumn(0,"drugkindall", "Y");
  673. group2.checkbox3.enableevent = true;
  674. } else {
  675. group2.checkbox3.enableevent = false;
  676. ds_hidden_srchinfo.setColumn(0,"drugkindall", "");
  677. group2.checkbox3.enableevent = true;
  678. }
  679. }
  680. /****************************************************************************************
  681. * Argument : N/A
  682. * Description : 프린터 설정
  683. ****************************************************************************************/
  684. function fSetPrint() {
  685. var prntsetupinfo = ds_main_barcdprntsetup.getColumn(0,"prntsetupinfo");
  686. var objArg = new Object();
  687. objArg.arg_sSetupInfo = prntsetupinfo;
  688. objArg.arg_sCallBackFunction = "lf_convertXmlToDs";
  689. frmf_modal("SPZUR00300", "SPZUR00300", objArg, null, 0, 20, 150, null, null, null, null, null, "M");
  690. if(!utlf_isNull(frmf_getParameter("SetupInfo")))
  691. ds_main_barcdprntsetup.setColumn(0,"prntsetupinfo",frmf_clearParameter("SetupInfo"));
  692. }
  693. /****************************************************************************************
  694. * Argument : drugstat
  695. * Description : 팝업메뉴 실행
  696. ****************************************************************************************/
  697. function fSubmitDrugChk(drugstat){
  698. var reteresn = "";
  699. var nodeList = new Dataset();
  700. var rCSV = null;
  701. var sel = null;
  702. var befdrugstat = null;
  703. var prcpcd = null;
  704. // nodeList = instance1.selectNodes("/root/main/masterinfo/grid1[sel='Y']");
  705. // rCSV = getNodeListCSV(nodeList);
  706. ds_main_masterinfo_grid1.filter("sel=='Y'");
  707. nodeList.copyData(ds_main_masterinfo_grid1,true);
  708. ds_main_masterinfo_grid1.filter("");
  709. if ( nodeList.rowcount == 0 ) {
  710. sysf_messageBox("처방내역을 선택해 주십시오.","I999");
  711. return;
  712. }
  713. // 검수보류사유
  714. if (drugstat == "ND") {
  715. frmf_modal("SMADT00101", "SMADT00101", null, null, 0, 100, 160, null, null, null, null, null, "M");
  716. reteresn = ds_temp.getColumn(0,"reteresn");
  717. if (utlf_isNull(reteresn)) {
  718. sysf_messageBox("보류사유을", "C002");
  719. return;
  720. }
  721. }
  722. // 투약/미불출은 데이터 처리불가
  723. for (var j = 0; j < ds_main_masterinfo_grid1.rowcount; j++) {
  724. sel = ds_main_masterinfo_grid1.getColumn(j,"sel");
  725. if (sel == "Y") {
  726. befdrugstat = ds_main_masterinfo_grid1.getColumn(j,"drugstat");
  727. prcpcd = ds_main_masterinfo_grid1.getColumn(j,"prcpcd");
  728. if (befdrugstat == "M") {
  729. sysf_messageBox("[" + prcpcd + "] 약은 투약완료되어 처리", "E001");
  730. return;
  731. } else if (befdrugstat == "X") {
  732. sysf_messageBox("[" + prcpcd + "] 약은 미불출되어 처리", "E001");
  733. return;
  734. }
  735. }
  736. }
  737. // 검수보류사유와 검수상태셋팅
  738. for(var i = 0; i < ds_main_masterinfo_grid1.rowcount; i++) {
  739. dsf_makeValue(ds_main_masterinfo_grid1,"drugstat","string",drugstat ,i);
  740. dsf_makeValue(ds_main_masterinfo_grid1,"reteresn","string",reteresn ,i);
  741. dsf_makeValue(ds_main_masterinfo_grid1,"userid" ,"string",sysf_getUserId() ,i);
  742. }
  743. // nodeList = instance1.selectNodes("/root/main/masterinfo/grid1[sel='Y']");
  744. // rCSV = getNodeListCSV(nodeList);
  745. ds_main_masterinfo_grid1.filter("sel=='Y'");
  746. nodeList.copyData(ds_main_masterinfo_grid1,true);
  747. ds_main_masterinfo_grid1.filter("");
  748. ds_send_data1.clear();
  749. ds_send_data1.copyData(nodeList);
  750. dsf_makeValue(ds_send_data1,"drugflag","string",ds_hidden_srchinfo.getColumn(0,"drugflag"));
  751. // 수정
  752. // var sucess = submit("TXADT20102");
  753. var oParam = {};
  754. oParam.id = "TXADT20102";
  755. oParam.service = "pharmacyprescriptionapp.MpsCheck";
  756. oParam.method = "reqExeDrugChkSp";
  757. oParam.inds = "req=ds_send_data1";
  758. oParam.outds = "ds_hidden_ret=chkitem";
  759. oParam.async = false;
  760. //oParam.callback = "cf_TXADT20102";
  761. tranf_submit(oParam);
  762. fSrchPrcpDataRe();
  763. }
  764. /****************************************************************************************
  765. * Argument : N/A
  766. * Description : 마감취소
  767. ****************************************************************************************/
  768. function fSumCancel(){
  769. var reteresn = "";
  770. var nodeList = new Dataset();
  771. var rCSV = null;
  772. var sel = null;
  773. var befdrugstat = null;
  774. var prcpcd = null;
  775. // nodeList = instance1.selectNodes("/root/main/masterinfo/grid1[sel='Y']");
  776. // rCSV = getNodeListCSV(nodeList);
  777. ds_main_masterinfo_grid1.filter("sel=='Y'");
  778. nodeList.copyData(ds_main_masterinfo_grid1,true);
  779. ds_main_masterinfo_grid1.filter("");
  780. if ( nodeList.rowcount == 0 ) {
  781. sysf_messageBox("처방내역을 선택해 주십시오.","I999");
  782. return;
  783. }
  784. ds_send_data1.clear();
  785. ds_send_data1.copyData(nodeList);
  786. // 수정
  787. // var sucess = submit("TXADT20301");
  788. var oParam = {};
  789. oParam.id = "TXADT20301";
  790. oParam.service = "pharmacyprescriptionapp.DrugAccept";
  791. oParam.method = "reqExeSumCancel";
  792. oParam.inds = "req=ds_send_data1";
  793. oParam.outds = "ds_hidden_ret=chkitem";
  794. oParam.async = false;
  795. //oParam.callback = "cf_TXADT20301";
  796. tranf_submit(oParam);
  797. fSrchPrcpDataRe();
  798. }
  799. /****************************************************************************************
  800. * Argument : N/A
  801. * Description : grd_prcplist 행 선택시 체크박스 선택 유무 변경
  802. * : 처방구분, 병실, 등록번호, 성명, S/A , 과, D#, Mix 선택시에는 동일한 항목에 대해서 일괄 체크
  803. * : 기타 로우는 드래그 혹은 단일 선택시 체크박스 선택
  804. ****************************************************************************************/
  805. function fRowSel(SelCol){
  806. //==============================선택한 row의 초기값 설정=======================================
  807. // 선택한 row의 일괄 체크 항목의 Col값들에 대해서 초기화를 실행한다.
  808. var prcpflagnm = ds_main_masterinfo_grid1.getColumn(ds_main_masterinfo_grid1.rowposition,"prcpflagnm");
  809. var roomcd = ds_main_masterinfo_grid1.getColumn(ds_main_masterinfo_grid1.rowposition,"roomcd");
  810. var pid = ds_main_masterinfo_grid1.getColumn(ds_main_masterinfo_grid1.rowposition,"pid");
  811. var hngnm = ds_main_masterinfo_grid1.getColumn(ds_main_masterinfo_grid1.rowposition,"hngnm");
  812. var sexage = ds_main_masterinfo_grid1.getColumn(ds_main_masterinfo_grid1.rowposition,"sexage");
  813. var orddeptnm = ds_main_masterinfo_grid1.getColumn(ds_main_masterinfo_grid1.rowposition,"orddeptnm");
  814. var prtldg = ds_main_masterinfo_grid1.getColumn(ds_main_masterinfo_grid1.rowposition,"prtldg");
  815. var prcpmixno = ds_main_masterinfo_grid1.getColumn(ds_main_masterinfo_grid1.rowposition,"prcpmixno");
  816. //===========================================================================================
  817. if(SelCol == 0){ // prcpflagnm - 처방구분
  818. for(var i = 0; i < ds_main_masterinfo_grid1.rowcount; i++){
  819. if(ds_main_masterinfo_grid1.getColumn(i,"prcpflagnm") == prcpflagnm){
  820. if(ds_main_masterinfo_grid1.getColumn(i,"sel") !="Y"){
  821. ds_main_masterinfo_grid1.setColumn(i,"sel", "Y");
  822. }else ds_main_masterinfo_grid1.setColumn(i,"sel", "N");
  823. }
  824. }
  825. }else if(SelCol == 1){ // roomcd - 병실
  826. for(var i = 0; i < ds_main_masterinfo_grid1.rowcount; i++){
  827. if(ds_main_masterinfo_grid1.getColumn(i,"prcpflagnm") == prcpflagnm
  828. && ds_main_masterinfo_grid1.getColumn(i,"roomcd") == roomcd){
  829. // group3.grd_prcplist.select(parseInt(i),1) = true;
  830. if(ds_main_masterinfo_grid1.getColumn(i,"sel") !="Y"){
  831. ds_main_masterinfo_grid1.setColumn(i,"sel", "Y");
  832. }else ds_main_masterinfo_grid1.setColumn(i,"sel", "N");
  833. }
  834. }
  835. }else if(SelCol == 2){ // pid - 등록번호
  836. for(var i = 0; i < ds_main_masterinfo_grid1.rowcount; i++){
  837. if(ds_main_masterinfo_grid1.getColumn(i,"prcpflagnm") == prcpflagnm
  838. && ds_main_masterinfo_grid1.getColumn(i,"roomcd") == roomcd
  839. && ds_main_masterinfo_grid1.getColumn(i,"pid") == pid){
  840. if(ds_main_masterinfo_grid1.getColumn(i,"sel") !="Y"){
  841. ds_main_masterinfo_grid1.setColumn(i,"sel", "Y");
  842. }else ds_main_masterinfo_grid1.setColumn(i,"sel", "N");
  843. }
  844. }
  845. }else if(SelCol == 3){ // hngnm - 성명
  846. for(var i = 0; i < ds_main_masterinfo_grid1.rowcount; i++){
  847. if(ds_main_masterinfo_grid1.getColumn(i,"prcpflagnm") == prcpflagnm
  848. && ds_main_masterinfo_grid1.getColumn(i,"roomcd") == roomcd
  849. && ds_main_masterinfo_grid1.getColumn(i,"pid") == pid
  850. && ds_main_masterinfo_grid1.getColumn(i,"hngnm") == hngnm){
  851. if(ds_main_masterinfo_grid1.getColumn(i,"sel") !="Y"){
  852. ds_main_masterinfo_grid1.setColumn(i,"sel", "Y");
  853. }else ds_main_masterinfo_grid1.setColumn(i,"sel", "N");
  854. }
  855. }
  856. }else if(SelCol == 4){ // sexage - S/A
  857. for(var i = 0; i < ds_main_masterinfo_grid1.rowcount; i++){
  858. if(ds_main_masterinfo_grid1.getColumn(i,"prcpflagnm") == prcpflagnm
  859. && ds_main_masterinfo_grid1.getColumn(i,"roomcd") == roomcd
  860. && ds_main_masterinfo_grid1.getColumn(i,"pid") == pid
  861. && ds_main_masterinfo_grid1.getColumn(i,"hngnm") == hngnm
  862. && ds_main_masterinfo_grid1.getColumn(i,"sexage") == sexage){
  863. if(ds_main_masterinfo_grid1.getColumn(i,"sel") !="Y"){
  864. ds_main_masterinfo_grid1.setColumn(i,"sel", "Y");
  865. }else ds_main_masterinfo_grid1.setColumn(i,"sel", "N");
  866. }
  867. }
  868. }else if(SelCol == 5){ // orddeptnm - 과
  869. for(var i = 0; i < ds_main_masterinfo_grid1.rowcount; i++){
  870. if(ds_main_masterinfo_grid1.getColumn(i,"prcpflagnm") == prcpflagnm
  871. && ds_main_masterinfo_grid1.getColumn(i,"roomcd") == roomcd
  872. && ds_main_masterinfo_grid1.getColumn(i,"pid") == pid
  873. && ds_main_masterinfo_grid1.getColumn(i,"hngnm") == hngnm
  874. && ds_main_masterinfo_grid1.getColumn(i,"orddeptnm") == orddeptnm){
  875. if(ds_main_masterinfo_grid1.getColumn(i,"sel") !="Y"){
  876. ds_main_masterinfo_grid1.setColumn(i,"sel", "Y");
  877. }else ds_main_masterinfo_grid1.setColumn(i,"sel", "N");
  878. }
  879. }
  880. }else if(SelCol == 6){ // prtldg - D#
  881. for(var i = 0; i < ds_main_masterinfo_grid1.rowcount; i++){
  882. if(ds_main_masterinfo_grid1.getColumn(i,"prcpflagnm") == prcpflagnm
  883. && ds_main_masterinfo_grid1.getColumn(i,"roomcd") == roomcd
  884. && ds_main_masterinfo_grid1.getColumn(i,"pid") == pid
  885. && ds_main_masterinfo_grid1.getColumn(i,"hngnm") == hngnm
  886. && ds_main_masterinfo_grid1.getColumn(i,"orddeptnm") == orddeptnm
  887. && ds_main_masterinfo_grid1.getColumn(i,"prtldg") == prtldg){
  888. if(ds_main_masterinfo_grid1.getColumn(i,"sel") !="Y"){
  889. ds_main_masterinfo_grid1.setColumn(i,"sel", "Y");
  890. }else ds_main_masterinfo_grid1.setColumn(i,"sel", "N");
  891. }
  892. }
  893. }else if(SelCol == 7){ // prcpmixno - Mix
  894. for(var i = 0; i < ds_main_masterinfo_grid1.rowcount; i++){
  895. if(ds_main_masterinfo_grid1.getColumn(i,"prcpflagnm") == prcpflagnm
  896. && ds_main_masterinfo_grid1.getColumn(i,"roomcd") == roomcd
  897. && ds_main_masterinfo_grid1.getColumn(i,"pid") == pid
  898. && ds_main_masterinfo_grid1.getColumn(i,"hngnm") == hngnm
  899. && ds_main_masterinfo_grid1.getColumn(i,"orddeptnm") == orddeptnm
  900. && ds_main_masterinfo_grid1.getColumn(i,"prtldg") == prtldg
  901. && ds_main_masterinfo_grid1.getColumn(i,"prcpmixno") == prcpmixno){
  902. if(ds_main_masterinfo_grid1.getColumn(i,"sel") !="Y"){
  903. ds_main_masterinfo_grid1.setColumn(i,"sel", "Y");
  904. }else ds_main_masterinfo_grid1.setColumn(i,"sel", "N");
  905. }
  906. }
  907. }else{ // 기타 머지되지 않는 셀
  908. var selectedRows = grdf_getSelectedRows(group3.grd_prcplist);
  909. var startRow = selectedRows[0];
  910. var endRow = selectedRows[selectedRows.length - 1];
  911. for(var i = startRow ; i <= endRow ; i++) {
  912. if(ds_main_masterinfo_grid1.getColumn(i,"sel") == "Y") ds_main_masterinfo_grid1.setColumn(i,"sel","N");
  913. else ds_main_masterinfo_grid1.setColumn(i,"sel","Y")
  914. }
  915. }
  916. }
  917. /****************************************************************************************
  918. * Argument : N/A
  919. * Description : 자동체크시 실행되는 함수
  920. ****************************************************************************************/
  921. function fAuto(){
  922. ds_main_masterinfo_grid1.clearData();
  923. if(ds_hidden_srchinfo.getColumn(0,"ioflag") == "I") {
  924. fHosSpSum(); //마감
  925. }
  926. //마감리스트 조회
  927. dsf_makeValue(ds_hidden_srchinfo,"autoflag","string",ds_init.getColumn(0,"autoflag"));
  928. fSrchsumData();
  929. //마감별 환자리스트 조회
  930. fSrchPrcpData();
  931. if(ds_main_masterinfo_grid1.rowcount > 0) {
  932. //처방전 출력
  933. ds_hidden_srchinfo.setColumn(0,"mpsflag","Y"); // 처방전 출력 셋팅
  934. //라벨출력
  935. ds_hidden_srchinfo.setColumn(0,"lblyn" ,"Y"); // 라벨 출력 셋팅
  936. fPrcpMPSPrint();
  937. ds_hidden_srchinfo.setColumn(0,"mpsflag",""); //처방전 출력 클리어
  938. ds_hidden_srchinfo.setColumn(0,"lblyn" ,""); //라벨 출력 클리어
  939. fSrchPrcpDataRe();
  940. }
  941. }
  942. //=======================================================================================
  943. // Event
  944. //---------------------------------------------------------------------------------------
  945. /****************************************************************************************
  946. * Components : Form
  947. * Components ID : SMADT20300
  948. * Event : oninit
  949. * Argument : 01.obj : Object Event has occurred
  950. * : 02.e : Event Object
  951. * Description : 화면 처음 초기화시 폼초기화
  952. ****************************************************************************************/
  953. function SMADT20300_oninit(obj:Form, e:InitEventInfo)
  954. {
  955. frmf_initForm(obj); // 폼 초기화
  956. }
  957. /****************************************************************************************
  958. * Components : Form
  959. * Components ID : SMADT20300
  960. * Event : oninit
  961. * Argument : 01.obj : Object Event has occurred
  962. * : 02.e : Event Object
  963. * Description : 화면 처음 초기화시 폼초기화
  964. ****************************************************************************************/
  965. function SMADT20300_onload(obj:Form, e:LoadEventInfo)
  966. {
  967. var sProp_5_1 = "col=5,row=1,cellspacing=4,vcellspacing=0,itemWidth=-1,itemHeight=17,overflow='visible'";
  968. group2.checkbox1.setInitComp(sProp_5_1,ds_checkbox1,"value","label","fn_checkbox1");
  969. group2.checkbox1.setCheckAll(true);
  970. frmf_createPopupMenu("popup"
  971. ,"fPopup"
  972. ,[{id: "SD", level: "0", title: "조제완료"}
  973. ,{id: "ND", level: "0", title: "조제보류"}]
  974. );
  975. fInit();
  976. // fn_setGridStyle();
  977. }
  978. function fPopup(obj:PopupMenu, e:MenuClickEventInfo) {
  979. fSubmitDrugChk(e.id);
  980. }
  981. /****************************************************************************************
  982. * Components : Dataset
  983. * Components ID : ds_main_masterinfo_grid1
  984. * Event : oncolumnchanged
  985. * Argument : 01.obj : Object Event has occurred
  986. * : 02.e : Event Object
  987. * Description :
  988. ****************************************************************************************/
  989. function ds_main_masterinfo_grid1_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  990. {
  991. if(e.columnid=="sel") {
  992. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  993. }
  994. }
  995. /****************************************************************************************
  996. * Components : Dataset
  997. * Components ID : ds_main_sumlist
  998. * Event : oncolumnchanged
  999. * Argument : 01.obj : Object Event has occurred
  1000. * : 02.e : Event Object
  1001. * Description :
  1002. ****************************************************************************************/
  1003. function ds_main_sumlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  1004. {
  1005. if(e.columnid=="sel") {
  1006. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  1007. }
  1008. }
  1009. /****************************************************************************************
  1010. * Components : Combo
  1011. * Components ID : group2.combo2
  1012. * Event : onitemchanged
  1013. * Argument : 01.obj : Object Event has occurred
  1014. * : 02.e : Event Object
  1015. * Description : 조회조건 변경시 마감가능여부 변경
  1016. ****************************************************************************************/
  1017. function group2_combo2_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  1018. {
  1019. if(ds_hidden_srchinfo.getColumn(0,"timeflag") == "1") {
  1020. group4.button29.enable = true;
  1021. } else {
  1022. group4.button29.enable = false;
  1023. }
  1024. }
  1025. /****************************************************************************************
  1026. * Components : Calendar
  1027. * Components ID : group2.ipt_prcpdd
  1028. * Event : onchanged
  1029. * Argument : 01.obj : Object Event has occurred
  1030. * : 02.e : Event Object
  1031. * Description : 일자 변경시 마감리스트 조회
  1032. ****************************************************************************************/
  1033. function group2_ipt_prcpdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  1034. {
  1035. ds_send_sumlistinfo.copyData(ds_hidden_srchinfo);
  1036. call_TRADT20302();
  1037. ds_main_masterinfo_grid1.clearData();
  1038. }
  1039. /****************************************************************************************
  1040. * Components : Grid
  1041. * Components ID : group3.grd_sumlist
  1042. * Event : onlbuttonup
  1043. * Argument : 01.obj : Object Event has occurred
  1044. * : 02.e : Event Object
  1045. * Description : 마감리스트 선택시 상세조회
  1046. ****************************************************************************************/
  1047. function group3_grd_sumlist_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
  1048. {
  1049. // if(e.row > -1) {
  1050. // fSrchPrcpData();
  1051. // }
  1052. }
  1053. /****************************************************************************************
  1054. * Components : Grid
  1055. * Components ID : group3.grd_sumlist
  1056. * Event : onheadclick
  1057. * Argument : 01.obj : Object Event has occurred
  1058. * : 02.e : Event Object
  1059. * Description : 전체선택
  1060. ****************************************************************************************/
  1061. function group3_grd_sumlist_onheadclick(obj:Grid, e:GridClickEventInfo)
  1062. {
  1063. if(e.col == 1) {
  1064. ds_main_sumlist.rowposition = -1; // 전체선택이나 전체해제시
  1065. if(utlf_isNull(group3.grd_sumlist.getCellProperty("Head",1,"text"))) {
  1066. group3.grd_sumlist.setCellProperty("Head",1,"text",1);
  1067. for(var i = 0; i < ds_main_sumlist.rowcount; i++) {
  1068. ds_main_sumlist.setColumn(i,"sel","Y");
  1069. }
  1070. } else {
  1071. group3.grd_sumlist.setCellProperty("Head",1,"text","");
  1072. for(var i = 0; i < ds_main_sumlist.rowcount; i++) {
  1073. ds_main_sumlist.setColumn(i,"sel","N");
  1074. }
  1075. }
  1076. fSrchPrcpData();
  1077. }
  1078. }
  1079. /****************************************************************************************
  1080. * Components : Radio
  1081. * Components ID : group2.rdo_ioflag
  1082. * Event : onitemchanged
  1083. * Argument : 01.obj : Object Event has occurred
  1084. * : 02.e : Event Object
  1085. * Description : 입원/외래 변경시 처리
  1086. ****************************************************************************************/
  1087. function group2_rdo_ioflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  1088. {
  1089. if(ds_hidden_srchinfo.getColumn(0,"ioflag") == "O") {
  1090. group4.ipt_wardnm.visible = false;
  1091. group4.button7.visible = false;
  1092. chk_ward.visible = false;
  1093. group4.caption6.visible = false; //2010-05-25 병동별 마감 Title 추가
  1094. ds_temp_srchinfo.setColumn(0,"ward", "");
  1095. ipt_wardcd.value = String(chk_ward.getData()).replace(","," ");
  1096. group4.ipt_wardnm.value = String(chk_ward.getLableData()).replace(","," ");
  1097. } else if(ds_hidden_srchinfo.getColumn(0,"ioflag") == "I") {
  1098. group4.ipt_wardnm.visible = true;
  1099. group4.button7.visible = true;
  1100. group4.caption6.visible = true; //2010-05-25 병동별 마감 Title 추가
  1101. }
  1102. ds_send_sumlistinfo.copyData(ds_hidden_srchinfo);
  1103. call_TRADT20302();
  1104. }
  1105. /****************************************************************************************
  1106. * Components : CheckBox
  1107. * Components ID : group2.checkbox3
  1108. * Event : onchanged
  1109. * Argument : 01.obj : Object Event has occurred
  1110. * : 02.e : Event Object
  1111. * Description : 처방구분 체크박스 리스트 전체선택/해제
  1112. ****************************************************************************************/
  1113. function group2_checkbox3_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  1114. {
  1115. if(e.postvalue == "Y") {
  1116. group2.checkbox1.setCheckAll(true);
  1117. } else {
  1118. group2.checkbox1.setCheckAll(false);
  1119. }
  1120. }
  1121. /****************************************************************************************
  1122. * Components : CheckBox
  1123. * Components ID : group2.chk_autoflag
  1124. * Event : onchanged
  1125. * Argument : 01.obj : Object Event has occurred
  1126. * : 02.e : Event Object
  1127. * Description : 자동 체크시 동작
  1128. ****************************************************************************************/
  1129. function group2_chk_autoflag_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  1130. {
  1131. var autoflag = e.postvalue; //ds_init.getColumn(0,"autoflag");
  1132. if (autoflag == "1" ) {
  1133. group4.enable = false;
  1134. group2.combo2.enable = false;
  1135. group2.ipt_prcpdd.enable = false;
  1136. group2.rdo_ioflag.enable = false;
  1137. group2.checkbox3.enable = false;
  1138. group2.checkbox1.enable = false;
  1139. group2.btn_sea.enable = false;
  1140. group3.grd_sumlist.enable = false;
  1141. if (gTimer == 0) {
  1142. // gTimer = window.setInterval("fAuto()",80000);
  1143. gTimer = 1;
  1144. this.setTimer(0,80000);
  1145. }
  1146. } else {
  1147. group4.enable = true;
  1148. group2.combo2.enable = true;
  1149. group2.ipt_prcpdd.enable = true;
  1150. group2.rdo_ioflag.enable = true;
  1151. group2.checkbox3.enable = true;
  1152. group2.checkbox1.enable = true;
  1153. group2.btn_sea.enable = true;
  1154. group3.grd_sumlist.enable = true;
  1155. if (gTimer > 0) {
  1156. // window.clearinterval(gTimer);
  1157. gTimer = 0;
  1158. this.killTimer(0);
  1159. }
  1160. }
  1161. }
  1162. /****************************************************************************************
  1163. * Components : Form
  1164. * Components ID : SMADT20300
  1165. * Event : ontimer
  1166. * Argument : 01.obj : Object Event has occurred
  1167. * : 02.e : Event Object
  1168. * Description : 타이머이벤트
  1169. ****************************************************************************************/
  1170. function SMADT20300_ontimer(obj:Form, e:TimerEventInfo)
  1171. {
  1172. // gTimer++;
  1173. fAuto();
  1174. }
  1175. /****************************************************************************************
  1176. * Components : Button
  1177. * Components ID : group2.btn_sea
  1178. * Event : onclick
  1179. * Argument : 01.obj : Object Event has occurred
  1180. * : 02.e : Event Object
  1181. * Description : 조회클릭
  1182. ****************************************************************************************/
  1183. function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  1184. {
  1185. dsf_makeValue(ds_hidden_srchinfo,"autoflag","string","");
  1186. ds_main_masterinfo_grid1.clearData();
  1187. fSrchsumData();
  1188. }
  1189. /****************************************************************************************
  1190. * Components : Button
  1191. * Components ID : group4.btn_prnt
  1192. * Event : onclick
  1193. * Argument : 01.obj : Object Event has occurred
  1194. * : 02.e : Event Object
  1195. * Description : 프린터설정
  1196. ****************************************************************************************/
  1197. function group4_btn_prnt_onclick(obj:Button, e:ClickEventInfo)
  1198. {
  1199. fSetPrint();
  1200. }
  1201. /****************************************************************************************
  1202. * Components : Button
  1203. * Components ID : group4.button1
  1204. * Event : onclick
  1205. * Argument : 01.obj : Object Event has occurred
  1206. * : 02.e : Event Object
  1207. * Description : 처방전 출력
  1208. ****************************************************************************************/
  1209. function group4_button1_onclick(obj:Button, e:ClickEventInfo)
  1210. {
  1211. ds_hidden_srchinfo.setColumn(0,"mpsflag","Y"); //처방전 출력 셋팅
  1212. fPrcpMPSPrint();
  1213. ds_hidden_srchinfo.setColumn(0,"mpsflag",""); //처방전 출력 클리어
  1214. fSrchPrcpDataRe();
  1215. }
  1216. /****************************************************************************************
  1217. * Components : Button
  1218. * Components ID : group4.button5
  1219. * Event : onclick
  1220. * Argument : 01.obj : Object Event has occurred
  1221. * : 02.e : Event Object
  1222. * Description : 라벨 출력
  1223. ****************************************************************************************/
  1224. function group4_button5_onclick(obj:Button, e:ClickEventInfo)
  1225. {
  1226. ds_hidden_srchinfo.setColumn(0,"lblyn","Y"); //라벨 출력 셋팅
  1227. fPrcpMPSPrint();
  1228. ds_hidden_srchinfo.setColumn(0,"lblyn",""); //라벨 출력 클리어
  1229. }
  1230. /****************************************************************************************
  1231. * Components : Button
  1232. * Components ID : group4.button2
  1233. * Event : onclick
  1234. * Argument : 01.obj : Object Event has occurred
  1235. * : 02.e : Event Object
  1236. * Description : 조제표 출력
  1237. ****************************************************************************************/
  1238. function group4_button2_onclick(obj:Button, e:ClickEventInfo)
  1239. {
  1240. fPrcpListPrnt();
  1241. }
  1242. /****************************************************************************************
  1243. * Components : Button
  1244. * Components ID : group4.button6
  1245. * Event : onclick
  1246. * Argument : 01.obj : Object Event has occurred
  1247. * : 02.e : Event Object
  1248. * Description : 집계표 출력
  1249. ****************************************************************************************/
  1250. function group4_button6_onclick(obj:Button, e:ClickEventInfo)
  1251. {
  1252. fSumPrint();
  1253. }
  1254. /****************************************************************************************
  1255. * Components : Button
  1256. * Components ID : group4.button3
  1257. * Event : onclick
  1258. * Argument : 01.obj : Object Event has occurred
  1259. * : 02.e : Event Object
  1260. * Description : 반환리스트 출력
  1261. ****************************************************************************************/
  1262. function group4_button3_onclick(obj:Button, e:ClickEventInfo)
  1263. {
  1264. fRtnListPrnt();
  1265. }
  1266. /****************************************************************************************
  1267. * Components : Combo
  1268. * Components ID : group4.combo3
  1269. * Event : onitemchanged
  1270. * Argument : 01.obj : Object Event has occurred
  1271. * : 02.e : Event Object
  1272. * Description : 실출고부서 변경
  1273. ****************************************************************************************/
  1274. function group3_combo3_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  1275. {
  1276. if(chk_cnt != 0) {
  1277. var ret = sysf_messageBox("약품출고부서를 " + e.posttext + "으로 ", "S001");
  1278. if(ret == "6") {
  1279. ds_send_suminfo.setColumn(0,"mstocdeptcd", e.postvalue);
  1280. obj.index = e.postindex;
  1281. } else {
  1282. ds_send_suminfo.setColumn(0,"mstocdeptcd", e.prevalue);
  1283. obj.index = e.preindex;
  1284. }
  1285. }
  1286. }
  1287. /****************************************************************************************
  1288. * Components : Button
  1289. * Components ID : group4.button7
  1290. * Event : onclick
  1291. * Argument : 01.obj : Object Event has occurred
  1292. * : 02.e : Event Object
  1293. * Description : 병동선택
  1294. ****************************************************************************************/
  1295. function group4_button7_onclick(obj:Button, e:ClickEventInfo)
  1296. {
  1297. if(chk_ward.visible == true){
  1298. chk_ward.visible = false;
  1299. }else {
  1300. chk_ward.visible = true;
  1301. }
  1302. }
  1303. /****************************************************************************************
  1304. * Components : Button
  1305. * Components ID : group4.button29
  1306. * Event : onclick
  1307. * Argument : 01.obj : Object Event has occurred
  1308. * : 02.e : Event Object
  1309. * Description : 마감버튼 클릭
  1310. ****************************************************************************************/
  1311. function group4_button29_onclick(obj:Button, e:ClickEventInfo)
  1312. {
  1313. fHosSpSum();
  1314. fSrchsumData();
  1315. chk_ward.visible = false;
  1316. }
  1317. /****************************************************************************************
  1318. * Components : Button
  1319. * Components ID : group4.button4
  1320. * Event : onclick
  1321. * Argument : 01.obj : Object Event has occurred
  1322. * : 02.e : Event Object
  1323. * Description : 마감취소버튼 클릭
  1324. ****************************************************************************************/
  1325. function group4_button4_onclick(obj:Button, e:ClickEventInfo)
  1326. {
  1327. for ( var i = 0; i < ds_main_masterinfo_grid1.rowcount; i++){
  1328. if ( ds_main_masterinfo_grid1.getColumn(i,"sel") =="Y" ){
  1329. if ( ds_main_masterinfo_grid1.getColumn(i,"drugstat") =="SD" ){
  1330. sysf_messageBox("특조완료된 처방은 불가능합니다.","I999");
  1331. return;
  1332. }
  1333. //2010-03-09 주사실에서 특수조제실로 전송하는 모든 약제처방의 마감취소가 가능하도록 해야 함
  1334. // (외래주사조제실(V)에서 [마감취소]가능하도록 처리한다. 그외는 원래상태의 [항암제]만 마감취소) [요청번호:6662]
  1335. if ( frmf_getMenuParam() != "V") {
  1336. if ( ds_main_masterinfo_grid1.getColumn(i,"prcpflag") != "D" ){
  1337. sysf_messageBox("항암제만 가능합니다.","I999");
  1338. return;
  1339. }
  1340. }
  1341. }
  1342. }
  1343. if ( sysf_messageBox("선택된 약번호의 마감 취소를", "Q004") == 6 ){
  1344. fSumCancel();
  1345. }
  1346. }
  1347. /****************************************************************************************
  1348. * Components : Grid
  1349. * Components ID : group3.grd_prcplist
  1350. * Event : onlbuttonup
  1351. * Argument : 01.obj : Object Event has occurred
  1352. * : 02.e : Event Object
  1353. * Description :
  1354. ****************************************************************************************/
  1355. function group3_grd_prcplist_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
  1356. {
  1357. if ( e.row > -1 && e.col != 11) {
  1358. fRowSel(e.col);
  1359. }
  1360. }
  1361. /****************************************************************************************
  1362. * Components : Grid
  1363. * Components ID : group3.grd_prcplist
  1364. * Event : onrbuttondown
  1365. * Argument : 01.obj : Object Event has occurred
  1366. * : 02.e : Event Object
  1367. * Description : 팝업메뉴
  1368. ****************************************************************************************/
  1369. function group3_grd_prcplist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  1370. {
  1371. if(e.row > -1){
  1372. grdf_setSelectedCell(obj, e); // 선택된 행 확실히 선택해줌
  1373. popup.trackPopup(e.screenX,e.screenY);
  1374. }
  1375. return true;
  1376. }
  1377. function group3_grd_sumlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  1378. {
  1379. if(e.row > -1) {
  1380. fSrchPrcpData();
  1381. }
  1382. }
  1383. ]]></Script>
  1384. </Form>
  1385. </FDL>