SMADB00600_교환약관리.xfdl 84 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMADB00600" position="absolute 0 0 1230 805" titletext="모아서 주는 약 관리" onload="SMADB00600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1194 21" id="group1">
  8. <Layouts>
  9. <Layout>
  10. <Static text="모아서 주는 약 관리" position="absolute 0 0 166 19" id="caption19" class="tit_1" anchor="default"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div position="absolute 0 13 1219 798" id="group3" scrollbars="autoboth">
  15. <Layouts>
  16. <Layout width="1219" height="785">
  17. <Tab position="absolute 2 55 1208 776" id="switch1" anchor="default">
  18. <Tabpages>
  19. <Tabpage text="기본정보" id="case1">
  20. <Layouts>
  21. <Layout>
  22. <Button position="absolute 1029 5 1082 24" id="button50" class="btn2" visible="false" text="행복사" anchor="default" onclick="group3_switch1_case1_button50_onclick"/>
  23. <Button position="absolute 974 5 1027 24" id="btn_grdadd" class="btn2" visible="false" text="행추가" anchor="default" onclick="group3_switch1_case1_btn_grdadd_onclick"/>
  24. <Button position="absolute 1084 5 1137 24" id="btn_grddel" class="btn2" text="행삭제" anchor="default" onclick="group3_switch1_case1_btn_grddel_onclick"/>
  25. <Button position="absolute 1141 5 1183 24" id="button90" class="btn5" text="저장" anchor="default" onclick="group3_switch1_case1_button90_onclick"/>
  26. <Static text="집계할 약품정보" position="absolute 6 8 194 21" id="caption6" class="tit_2" anchor="default" onclick="group3_switch1_case1_caption6_onclick"/>
  27. <Static text="불출할 약품정보" position="absolute 600 8 788 21" id="caption7" class="tit_2" anchor="default"/>
  28. <Grid position="absolute 1 30 1194 652" id="grd_sumdrug" binddataset="ds_main_sumdruglist" anchor="default" oncellclick="group3_switch1_case1_grd_sumdrug_oncellclick" onexpanddown="group3_switch1_case1_grd_sumdrug_onexpanddown" oncelldblclick="group3_switch1_case1_grd_sumdrug_oncelldblclick">
  29. <Formats>
  30. <Format id="default">
  31. <Columns>
  32. <Column size="22"/>
  33. <Column size="105"/>
  34. <Column size="220"/>
  35. <Column size="59"/>
  36. <Column size="40"/>
  37. <Column size="59"/>
  38. <Column size="40"/>
  39. <Column size="55"/>
  40. <Column size="5"/>
  41. <Column size="5"/>
  42. <Column size="105"/>
  43. <Column size="220"/>
  44. <Column size="70"/>
  45. <Column size="55"/>
  46. <Column size="70"/>
  47. <Column size="55"/>
  48. </Columns>
  49. <Rows>
  50. <Row size="24" band="head"/>
  51. <Row size="24"/>
  52. </Rows>
  53. <Band id="head">
  54. <Cell/>
  55. <Cell col="1" text="집계할 약품코드"/>
  56. <Cell col="2" text="한글상품명"/>
  57. <Cell col="3" text="용량"/>
  58. <Cell col="4" text="단위"/>
  59. <Cell col="5" text="수량"/>
  60. <Cell col="6" text="단위"/>
  61. <Cell col="7" text="수량환산"/>
  62. <Cell col="8" text="usefromdd"/>
  63. <Cell col="9" text="cdflag"/>
  64. <Cell col="10" text="불출할 약품코드"/>
  65. <Cell col="11" text="한글상품명"/>
  66. <Cell col="12" text="용량"/>
  67. <Cell col="13" text="단위"/>
  68. <Cell col="14" text="수량"/>
  69. <Cell col="15" text="단위"/>
  70. </Band>
  71. <Band id="body">
  72. <Cell celltype="head"/>
  73. <Cell col="1" text="bind:drugcd" enable="false"/>
  74. <Cell col="2" text="bind:drugnm"/>
  75. <Cell col="3" text="bind:exchvol"/>
  76. <Cell col="4" displaytype="combo" edittype="combo" text="bind:exchvolunit" enable="false"/>
  77. <Cell col="5" text="bind:exchqty"/>
  78. <Cell col="6" displaytype="combo" edittype="combo" text="bind:exchqtyunit" enable="false"/>
  79. <Cell col="7" displaytype="text" edittype="text" text="bind:sumtodeliveqty"/>
  80. <Cell col="8" text="bind:usefromdd"/>
  81. <Cell col="9" text="bind:cdflag"/>
  82. <Cell col="10" displaytype="text" edittype="text" text="bind:deliveddrugcd"/>
  83. <Cell col="11" text="bind:deliveddrugnm"/>
  84. <Cell col="12" text="bind:delivedexchvol"/>
  85. <Cell col="13" displaytype="combo" edittype="combo" text="bind:delivedexchvolunit" enable="false"/>
  86. <Cell col="14" text="bind:delivedexchqty"/>
  87. <Cell col="15" displaytype="combo" edittype="combo" text="bind:delivedexchqtyunit" enable="false"/>
  88. </Band>
  89. </Format>
  90. </Formats>
  91. </Grid>
  92. <Shape position="absolute 1 22 1186 28" linetype="vertical" id="line3" class="line_1" anchor="default"/>
  93. </Layout>
  94. </Layouts>
  95. </Tabpage>
  96. <Tabpage text="집계내역" id="case2">
  97. <Layouts>
  98. <Layout>
  99. <Shape position="absolute 15 5 1170 45" id="roundrect2" type="roundrectangle" anchor="default"/>
  100. <Static text="약품코드 :" position="absolute 25 15 111 32" id="caption2" class="search_name" anchor="default"/>
  101. <Static text="처방명칭 :" position="absolute 245 15 335 32" id="caption4" class="search_name" anchor="default"/>
  102. <Static text="부서 :" position="absolute 790 15 855 32" id="caption5" class="search_name" anchor="default"/>
  103. <Edit readonly="true" position="absolute 335 15 760 34" id="output1" class="output_search" anchor="default"/>
  104. <Edit readonly="true" position="absolute 115 15 215 34" id="output2" class="output_search" anchor="default"/>
  105. <Edit readonly="true" position="absolute 845 15 1130 34" id="output3" class="output_search" anchor="default"/>
  106. <Grid position="absolute 2 75 1186 691" id="grd_ordexchdrug" class="datagrid2" binddataset="ds_grd_ordexchdrug" anchor="default">
  107. <Formats>
  108. <Format id="default">
  109. <Columns>
  110. <Column size="22"/>
  111. <Column size="115"/>
  112. <Column size="75"/>
  113. <Column size="40"/>
  114. <Column size="60"/>
  115. <Column size="70"/>
  116. <Column size="70"/>
  117. <Column size="70"/>
  118. <Column size="70"/>
  119. <Column size="54"/>
  120. <Column size="40"/>
  121. <Column size="40"/>
  122. <Column size="40"/>
  123. <Column size="40"/>
  124. <Column size="40"/>
  125. <Column size="70"/>
  126. <Column size="40"/>
  127. <Column size="39"/>
  128. <Column size="40"/>
  129. <Column size="40"/>
  130. <Column size="45"/>
  131. <Column size="50"/>
  132. <Column size="45"/>
  133. <Column size="115"/>
  134. <Column size="115"/>
  135. <Column size="115"/>
  136. <Column size="115"/>
  137. <Column size="0"/>
  138. <Column size="0"/>
  139. <Column size="0"/>
  140. <Column size="0"/>
  141. <Column size="0"/>
  142. <Column size="0"/>
  143. <Column size="0"/>
  144. <Column size="0"/>
  145. <Column size="0"/>
  146. <Column size="0"/>
  147. <Column size="0"/>
  148. <Column size="0"/>
  149. <Column size="0"/>
  150. <Column size="0"/>
  151. </Columns>
  152. <Rows>
  153. <Row size="24" band="head"/>
  154. <Row size="24"/>
  155. </Rows>
  156. <Band id="head">
  157. <Cell/>
  158. <Cell col="1" text="불출일시"/>
  159. <Cell col="2" text="처방일자"/>
  160. <Cell col="3" text=" 투약 번호"/>
  161. <Cell col="4" text="병실"/>
  162. <Cell col="5" text="등록번호"/>
  163. <Cell col="6" text="환자명"/>
  164. <Cell col="7" text="진료과"/>
  165. <Cell col="8" text="부서"/>
  166. <Cell col="9" text="1일수량"/>
  167. <Cell col="10" text="횟수"/>
  168. <Cell col="11" text="일수"/>
  169. <Cell col="12" text="총수량"/>
  170. <Cell col="13" text=" 누적 수량"/>
  171. <Cell col="14" text=" 수량 단위"/>
  172. <Cell col="15" text="불출약품명"/>
  173. <Cell col="16" text=" 불출 수량"/>
  174. <Cell col="17" text="불출단위"/>
  175. <Cell col="18" text="잔여수량"/>
  176. <Cell col="19" text="수량단위"/>
  177. <Cell col="20" text="구분"/>
  178. <Cell col="21" text="구분"/>
  179. <Cell col="22" text="구분"/>
  180. <Cell col="23" text="실시일시"/>
  181. <Cell col="24" text="반환일시"/>
  182. <Cell col="25" text="마감일시"/>
  183. <Cell col="26" text="출력일시"/>
  184. <Cell col="27" text="sumdeptcd"/>
  185. <Cell col="28" text="ioflag"/>
  186. <Cell col="29" text="execprcpuniqno"/>
  187. <Cell col="30" text="prcpkindcd"/>
  188. <Cell col="31" text="prcpno"/>
  189. <Cell col="32" text="prcphistno"/>
  190. <Cell col="33" text="execprcpno"/>
  191. <Cell col="34" text="sumstat"/>
  192. <Cell col="35" text="prcpvol"/>
  193. <Cell col="36" text="prcpvolunit"/>
  194. <Cell col="37" text="orddeptcd"/>
  195. <Cell col="38" text="wardcd"/>
  196. <Cell col="39" text="stocdeptcd"/>
  197. <Cell col="40" text="sumprcpcd"/>
  198. </Band>
  199. <Band id="body">
  200. <Cell/>
  201. <Cell col="1" displaytype="text" text="bind:delivedt" mask="expr:utlf_isNull(delivedt) ? &quot;&quot; : &quot;####-##-## ##:##:##&quot;"/>
  202. <Cell col="2" displaytype="text" text="bind:prcpdd" mask="expr:utlf_isNull(prcpdd) ? &quot;&quot; : &quot;####-##-##&quot;"/>
  203. <Cell col="3" text="bind:drugno"/>
  204. <Cell col="4" text="bind:roomcd"/>
  205. <Cell col="5" text="bind:pid"/>
  206. <Cell col="6" text="bind:hngnm"/>
  207. <Cell col="7" text="bind:orddeptnm"/>
  208. <Cell col="8" text="bind:wardnm"/>
  209. <Cell col="9" text="bind:prcpqty"/>
  210. <Cell col="10" text="bind:prcptims"/>
  211. <Cell col="11" text="bind:prcpdayno"/>
  212. <Cell col="12" text="bind:totqty"/>
  213. <Cell col="13" text="bind:acmlqty"/>
  214. <Cell col="14" text="bind:prcpqtyunit"/>
  215. <Cell col="15" text="bind:prcpcd"/>
  216. <Cell col="16" displaytype="text" edittype="text" text="bind:deliveqty" mask="####.99"/>
  217. <Cell col="17" text="bind:deliveunit"/>
  218. <Cell col="18" text="bind:spreqty"/>
  219. <Cell col="19" text="bind:spreunit"/>
  220. <Cell col="20" text="bind:flag1"/>
  221. <Cell col="21" text="bind:flag2"/>
  222. <Cell col="22" text="bind:flag3"/>
  223. <Cell col="23" displaytype="text" text="bind:execdt" mask="expr:utlf_isNull(execdt) ? &quot;&quot; : &quot;####-##-## ##:##:##&quot;"/>
  224. <Cell col="24" displaytype="text" text="bind:rtndd" mask="expr:utlf_isNull(rtndd) ? &quot;&quot; : &quot;####-##-## ##:##:##&quot;"/>
  225. <Cell col="25" displaytype="text" text="bind:sumdt" mask="expr:utlf_isNull(sumdt) ? &quot;&quot; : &quot;####-##-## ##:##:##&quot;"/>
  226. <Cell col="26" displaytype="text" text="bind:prntdt" mask="expr:utlf_isNull(prntdt) ? &quot;&quot; : &quot;####-##-## ##:##:##&quot;"/>
  227. <Cell col="27" text="bind:delivedeptcd"/>
  228. <Cell col="28" text="bind:ioflag"/>
  229. <Cell col="29" text="bind:execprcpuniqno"/>
  230. <Cell col="30" text="bind:prcpkindcd"/>
  231. <Cell col="31" text="bind:prcpno"/>
  232. <Cell col="32" text="bind:prcphistno"/>
  233. <Cell col="33" text="bind:execprcpno"/>
  234. <Cell col="34" text="bind:delivestat"/>
  235. <Cell col="35" text="bind:prcpvol"/>
  236. <Cell col="36" text="bind:prcpvolunit"/>
  237. <Cell col="37" text="bind:orddeptcd"/>
  238. <Cell col="38" text="bind:wardcd"/>
  239. <Cell col="39" text="bind:stocdeptcd"/>
  240. <Cell col="40" text="bind:sumprcpcd"/>
  241. </Band>
  242. </Format>
  243. </Formats>
  244. </Grid>
  245. <Calendar position="absolute 589 52 689 71" id="input7" class="input_default" anchor="default"/>
  246. <Static text="~" position="absolute 576 53 591 73" align="align:center middle;" id="caption10" anchor="default"/>
  247. <Calendar position="absolute 470 52 570 71" id="input6" class="input_default" anchor="default"/>
  248. <Button position="absolute 696 50 752 72" id="button5" class="btn1" text="조회" anchor="default" onclick="group3_switch1_case2_button5_onclick"/>
  249. <Button position="absolute 995 50 1051 72" id="btn_sum" class="btn4" text="저장" anchor="default" onclick="group3_switch1_case2_btn_sum_onclick"/>
  250. <Button position="absolute 1130 55 1183 74" id="button6" class="btn2" text="행삭제" anchor="default" onclick="group3_switch1_case2_button6_onclick"/>
  251. <Button position="absolute 1075 55 1128 74" id="button7" class="btn2" text="행추가" anchor="default" onclick="group3_switch1_case2_button7_onclick"/>
  252. <Button position="absolute 17 50 74 72" id="btn_excel" class="btn6" text="엑셀" anchor="default" onclick="group3_switch1_case2_btn_excel_onclick"/>
  253. <Button position="absolute 75 50 131 72" id="btn_prnt" class="btn6" text="출력" anchor="default" onclick="group3_switch1_case2_btn_prnt_onclick"/>
  254. <Static text="적용일자(실시일자) :" position="absolute 333 54 483 71" id="caption8" class="search_name" anchor="default"/>
  255. <Combo position="absolute 865 52 986 71" id="combo1" innerdataset="@ds_misdeptlist_deptlist" datacolumn="deptnm" codecolumn="deptcd" anchor="default" cancharchange="group3_switch1_case2_combo1_cancharchange" onitemchanged="group3_switch1_case2_combo1_onitemchanged"/>
  256. <Static text="실출고부서" position="absolute 797 52 866 72" id="caption9" anchor="default"/>
  257. <Button position="absolute 140 50 244 72" id="button11" class="btn3" taborder="18" visible="true" text="마감시간관리" anchor="default" onclick="group3_switch1_case2_button11_onclick"/>
  258. </Layout>
  259. </Layouts>
  260. </Tabpage>
  261. </Tabpages>
  262. </Tab>
  263. <Div position="absolute 2 11 1139 46" id="group2" anchor="default">
  264. <Layouts>
  265. <Layout>
  266. <Shape position="absolute 0 3 1070 31" id="roundrect1" type="roundrectangle" anchor="default"/>
  267. <Static text="부 서 :" position="absolute 303 8 389 25" id="caption1" class="search_name" anchor="default" onclick="group3_group2_caption1_onclick"/>
  268. <Static text="약품코드 :" position="absolute 12 8 98 25" id="caption3" class="search_name" anchor="default"/>
  269. <Edit position="absolute 35 5 45 24" id="ipt_drugcd" class="input_search" visible="false" anchor="default" oneditclick="group3_group2_ipt_drugcd_oneditclick" onkeydown="group3_group2_ipt_drugcd_onkeydown"/>
  270. <Button position="absolute 205 10 221 26" id="btn_drug" class="icon_search" visible="false" text="" anchor="default" onclick="group3_group2_btn_drug_onclick"/>
  271. <CheckBox position="absolute 225 10 255 30" id="chk_deptflag" class="checkbox_search" visible="false" anchor="default" onclick="group3_group2_chk_deptflag_onclick" onkillfocus="group3_group2_chk_deptflag_onkillfocus" onmouseleave="group3_group2_chk_deptflag_onmouseleave"/>
  272. <Radio position="absolute 375 5 1030 25" id="radio1" class="checkbox_search" columncount="8" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" onitemchanged="group3_group2_radio1_onitemchanged" onitemclick="group3_group2_radio1_onitemclick" onmouseup="group3_group2_radio1_onmouseup">
  273. <Dataset id="innerdataset">
  274. <ColumnInfo>
  275. <Column id="codecolumn"/>
  276. <Column id="datacolumn"/>
  277. </ColumnInfo>
  278. <Rows>
  279. <Row>
  280. <Col id="codecolumn">W</Col>
  281. <Col id="datacolumn">병동</Col>
  282. </Row>
  283. <Row>
  284. <Col id="codecolumn">E</Col>
  285. <Col id="datacolumn">응급실</Col>
  286. </Row>
  287. <Row>
  288. <Col id="codecolumn">O</Col>
  289. <Col id="datacolumn">수술실</Col>
  290. </Row>
  291. <Row>
  292. <Col id="codecolumn">J</Col>
  293. <Col id="datacolumn">주사실</Col>
  294. </Row>
  295. <Row>
  296. <Col id="codecolumn">X</Col>
  297. <Col id="datacolumn">집계부서</Col>
  298. </Row>
  299. <Row>
  300. <Col id="codecolumn">D</Col>
  301. <Col id="datacolumn">진료부서</Col>
  302. </Row>
  303. <Row>
  304. <Col id="codecolumn">A</Col>
  305. <Col id="datacolumn">복막투석실</Col>
  306. </Row>
  307. <Row>
  308. <Col id="codecolumn">S</Col>
  309. <Col id="datacolumn">건진</Col>
  310. </Row>
  311. </Rows>
  312. </Dataset>
  313. </Radio>
  314. <Button position="absolute 5 5 30 25" id="button9" visible="false" text="button9" anchor="default" onclick="group3_group2_button9_onclick"/>
  315. <Combo position="absolute 100 7 225 26" id="combo2" innerdataset="ds_init_combo2" datacolumn="drugcd" codecolumn="drugcd" anchor="default" onitemchanged="group3_group2_combo2_onitemchanged"/>
  316. <Edit position="absolute 229 7 269 26" id="input1" visible="false" anchor="default"/>
  317. </Layout>
  318. </Layouts>
  319. </Div>
  320. <Radio position="absolute 375 42 938 365" id="rdo_deptcd" visible="false" columncount="4" innerdataset="@ds_init_orddept" datacolumn="depthngnm" codecolumn="deptcd" anchor="default" onsetfocus="group3_rdo_deptcd_onsetfocus" onkillfocus="group3_rdo_deptcd_onkillfocus" onitemchanged="group3_rdo_deptcd_onitemchanged" style="background:darkgray;"/>
  321. </Layout>
  322. </Layouts>
  323. </Div>
  324. </Layout>
  325. </Layouts>
  326. <Objects>
  327. <Dataset id="ds_grd_sumdrug" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  328. <ColumnInfo>
  329. <Column id="drugcd" type="STRING"/>
  330. <Column id="drugnm" type="STRING"/>
  331. <Column id="exchvol" type="STRING"/>
  332. <Column id="exchvolunit" type="STRING"/>
  333. <Column id="exchqty" type="STRING"/>
  334. <Column id="exchqtyunit" type="STRING"/>
  335. <Column id="sumtodeliveqty" type="STRING"/>
  336. <Column id="usefromdd" type="STRING"/>
  337. <Column id="cdflag" type="STRING"/>
  338. <Column id="deliveddrugcd" type="STRING"/>
  339. <Column id="deliveddrugnm" type="STRING"/>
  340. <Column id="delivedexchvol" type="STRING"/>
  341. <Column id="delivedexchvolunit" type="STRING"/>
  342. <Column id="delivedexchqty" type="STRING"/>
  343. <Column id="delivedexchqtyunit" type="STRING"/>
  344. </ColumnInfo>
  345. </Dataset>
  346. <Dataset id="ds_grd_ordexchdrug" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_grd_ordexchdrug_oncolumnchanged">
  347. <ColumnInfo>
  348. <Column id="delivedt" type="STRING"/>
  349. <Column id="prcpdd" type="STRING"/>
  350. <Column id="drugno" type="STRING"/>
  351. <Column id="roomcd" type="STRING"/>
  352. <Column id="pid" type="STRING"/>
  353. <Column id="hngnm" type="STRING"/>
  354. <Column id="orddeptnm" type="STRING"/>
  355. <Column id="wardnm" type="STRING"/>
  356. <Column id="prcpqty" type="STRING"/>
  357. <Column id="prcptims" type="STRING"/>
  358. <Column id="prcpdayno" type="STRING"/>
  359. <Column id="totqty" type="STRING"/>
  360. <Column id="acmlqty" type="STRING"/>
  361. <Column id="prcpqtyunit" type="STRING"/>
  362. <Column id="prcpcd" type="STRING"/>
  363. <Column id="deliveqty" type="STRING"/>
  364. <Column id="deliveunit" type="STRING"/>
  365. <Column id="spreqty" type="STRING"/>
  366. <Column id="spreunit" type="STRING"/>
  367. <Column id="flag1" type="STRING"/>
  368. <Column id="flag2" type="STRING"/>
  369. <Column id="flag3" type="STRING"/>
  370. <Column id="execdt" type="STRING"/>
  371. <Column id="rtndd" type="STRING"/>
  372. <Column id="sumdt" type="STRING"/>
  373. <Column id="prntdt" type="STRING"/>
  374. <Column id="delivedeptcd" type="STRING"/>
  375. <Column id="ioflag" type="STRING"/>
  376. <Column id="execprcpuniqno" type="STRING"/>
  377. <Column id="prcpkindcd" type="STRING"/>
  378. <Column id="prcpno" type="STRING"/>
  379. <Column id="prcphistno" type="STRING"/>
  380. <Column id="execprcpno" type="STRING"/>
  381. <Column id="delivestat" type="STRING"/>
  382. <Column id="prcpvol" type="STRING"/>
  383. <Column id="prcpvolunit" type="STRING"/>
  384. <Column id="orddeptcd" type="STRING"/>
  385. <Column id="wardcd" type="STRING"/>
  386. <Column id="stocdeptcd" type="STRING"/>
  387. <Column id="sumprcpcd" type="STRING"/>
  388. </ColumnInfo>
  389. </Dataset>
  390. <Dataset id="ds_init_combo1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  391. <ColumnInfo>
  392. <Column id="deptnm" type="STRING"/>
  393. <Column id="deptcd" type="STRING"/>
  394. </ColumnInfo>
  395. </Dataset>
  396. <Dataset id="ds_init_combo2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  397. <ColumnInfo>
  398. <Column id="drugcd" type="STRING"/>
  399. <Column id="drugcd" type="STRING"/>
  400. </ColumnInfo>
  401. </Dataset>
  402. <Dataset id="ds_init_rdo_deptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  403. <ColumnInfo>
  404. <Column id="depthngnm" type="STRING"/>
  405. <Column id="deptcd" type="STRING"/>
  406. </ColumnInfo>
  407. </Dataset>
  408. <Dataset id="ds_A0599" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  409. <ColumnInfo>
  410. <Column id="cdid" type="STRING" size="256"/>
  411. <Column id="cdnm" type="STRING" size="256"/>
  412. </ColumnInfo>
  413. </Dataset>
  414. <Dataset id="ds_main_sumdruglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  415. <ColumnInfo>
  416. <Column id="drugcd" type="STRING" size="256" sumtext="코드 id"/>
  417. <Column id="drugnm" type="STRING" size="256" sumtext="코드 이름"/>
  418. <Column id="exchvol" type="STRING" size="256" sumtext="비고"/>
  419. <Column id="exchvolunit" type="STRING" size="256" sumtext="비고"/>
  420. <Column id="exchqty" type="STRING" size="256" sumtext="비고"/>
  421. <Column id="exchqtyunit" type="STRING" size="256" sumtext="비고"/>
  422. <Column id="usefromdd" type="STRING" size="256" sumtext="비고"/>
  423. <Column id="cdflag" type="STRING" size="256" sumtext="비고"/>
  424. <Column id="deliveddrugcd" type="STRING" size="256" sumtext="코드 id"/>
  425. <Column id="deliveddrugnm" type="STRING" size="256" sumtext="코드 이름"/>
  426. <Column id="delivedexchvol" type="STRING" size="256" sumtext="비고"/>
  427. <Column id="delivedexchvolunit" type="STRING" size="256" sumtext="비고"/>
  428. <Column id="delivedexchqty" type="STRING" size="256" sumtext="비고"/>
  429. <Column id="delivedexchqtyunit" type="STRING" size="256" sumtext="비고"/>
  430. <Column id="sumtodeliveqty" type="STRING" size="256" sumtext="수량환산"/>
  431. </ColumnInfo>
  432. <Rows>
  433. <Row/>
  434. </Rows>
  435. </Dataset>
  436. <Dataset id="ds_main_delivedruglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  437. <ColumnInfo>
  438. <Column id="drugcd" type="STRING" size="256" sumtext="코드 id"/>
  439. <Column id="drugnm" type="STRING" size="256" sumtext="코드 이름"/>
  440. <Column id="exchvol" type="STRING" size="256" sumtext="비고"/>
  441. <Column id="exchvolunit" type="STRING" size="256" sumtext="비고"/>
  442. <Column id="exchqty" type="STRING" size="256" sumtext="비고"/>
  443. <Column id="exchqtyunit" type="STRING" size="256" sumtext="비고"/>
  444. <Column id="usefromdd" type="STRING" size="256" sumtext="유효일자"/>
  445. <Column id="sumdrugcd" type="STRING" size="256" sumtext="유효일자"/>
  446. </ColumnInfo>
  447. </Dataset>
  448. <Dataset id="ds_init_exchdruglist_druglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  449. <Dataset id="ds_misdeptlist_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  450. <Dataset id="ds_send_srchdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  451. <ColumnInfo>
  452. <Column id="srchdeptcd" type="STRING" size="256"/>
  453. <Column id="srcdrugcd" type="STRING" size="256"/>
  454. <Column id="srchfromdd" type="STRING" size="256"/>
  455. <Column id="srchtodd" type="STRING" size="256"/>
  456. <Column id="srchprcpcd" type="STRING" size="256"/>
  457. <Column id="srchorddeptcd" type="STRING" size="256"/>
  458. <Column id="srchorddeptflag" type="STRING" size="256"/>
  459. <Column id="drugcd" type="STRING" size="256"/>
  460. <Column id="srchfromtm" type="STRING" size="256"/>
  461. <Column id="srchtotm" type="STRING" size="256"/>
  462. <Column id="sumdt" type="STRING" size="256"/>
  463. <Column id="userid" type="STRING" size="256"/>
  464. <Column id="stocdeptcd" type="STRING" size="256"/>
  465. <Column id="deliveddrugcd" type="STRING" size="256"/>
  466. <Column id="deptflag" type="STRING" size="256"/>
  467. </ColumnInfo>
  468. <Rows>
  469. <Row>
  470. <Col id="srchfromtm">0000</Col>
  471. <Col id="srchtotm">2400</Col>
  472. </Row>
  473. </Rows>
  474. </Dataset>
  475. <Dataset id="ds_hidden_sumdrugcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  476. <Dataset id="ds_temp_druginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  477. <ColumnInfo>
  478. <Column id="drugcd" type="STRING" size="256" sumtext="코드 id"/>
  479. <Column id="drugnm" type="STRING" size="256" sumtext="코드 이름"/>
  480. <Column id="exchvol" type="STRING" size="256" sumtext="비고"/>
  481. <Column id="exchvolunit" type="STRING" size="256" sumtext="비고"/>
  482. <Column id="exchqty" type="STRING" size="256" sumtext="비고"/>
  483. <Column id="exchqtyunit" type="STRING" size="256" sumtext="비고"/>
  484. <Column id="usefromdd" type="STRING" size="256" sumtext="유효일자"/>
  485. <Column id="sumdrugcd" type="STRING" size="256" sumtext="유효일자"/>
  486. <Column id="delivedrugcd" type="STRING" size="256" sumtext="유효일자"/>
  487. <Column id="sumtodeliveqty" type="STRING" size="256" sumtext="유효일자"/>
  488. </ColumnInfo>
  489. </Dataset>
  490. <Dataset id="ds_hidden_prntdruglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  491. <Dataset id="ds_main_ordexchdruglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  492. <ColumnInfo>
  493. <Column id="delivedt" type="STRING" size="256" sumtext="불출일시"/>
  494. <Column id="delivedeptcd" type="STRING" size="256" sumtext="불출부서"/>
  495. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  496. <Column id="ioflag" type="STRING" size="256" sumtext="입/외래"/>
  497. <Column id="prcpdd" type="STRING" size="256" sumtext="처방일자"/>
  498. <Column id="execprcpuniqno" type="STRING" size="256" sumtext="실시고유번호"/>
  499. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  500. <Column id="deliveqty" type="STRING" size="256" sumtext="불출단위"/>
  501. <Column id="prcpkindcd" type="STRING" size="256" sumtext="처방종류"/>
  502. <Column id="prcpno" type="STRING" size="256" sumtext="처방번호"/>
  503. <Column id="prcphistno" type="STRING" size="256" sumtext="처방이력번호"/>
  504. <Column id="execprcpno" type="STRING" size="256" sumtext="처방일력번호"/>
  505. <Column id="delivestat" type="STRING" size="256" sumtext="불출구분"/>
  506. <Column id="prcpvol" type="STRING" size="256" sumtext="1일용량"/>
  507. <Column id="prcpvolunit" type="STRING" size="256" sumtext="1일용량"/>
  508. <Column id="prcpqty" type="STRING" size="256" sumtext="1일용량"/>
  509. <Column id="prcpqtyunit" type="STRING" size="256" sumtext="횟수"/>
  510. <Column id="prcptims" type="STRING" size="256" sumtext="처방명"/>
  511. <Column id="prcpdayno" type="STRING" size="256" sumtext="일수"/>
  512. <Column id="deliveunit" type="STRING" size="256" sumtext="불출단위"/>
  513. <Column id="acmlqty" type="STRING" size="256" sumtext="불출일시"/>
  514. <Column id="spreqty" type="STRING" size="256" sumtext="잔여수량"/>
  515. <Column id="spreunit" type="STRING" size="256" sumtext="잔여단위"/>
  516. <Column id="totqty" type="STRING" size="256" sumtext="총수량"/>
  517. <Column id="drugno" type="STRING" size="256" sumtext="투약번호"/>
  518. <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
  519. <Column id="hngnm" type="STRING" size="256" sumtext="이름"/>
  520. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과"/>
  521. <Column id="wardnm" type="STRING" size="256" sumtext="병동"/>
  522. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  523. <Column id="wardcd" type="STRING" size="256" sumtext="병동"/>
  524. <Column id="execdt" type="STRING" size="256" sumtext="실시일자"/>
  525. <Column id="drugsumdt" type="STRING" size="256" sumtext="집계시간"/>
  526. <Column id="prntdt" type="STRING" size="256" sumtext="출력일시"/>
  527. <Column id="sumdt" type="STRING" size="256" sumtext="불출일시"/>
  528. <Column id="flag1" type="STRING" size="256" sumtext="불출일시"/>
  529. <Column id="flag2" type="STRING" size="256" sumtext="불출일시"/>
  530. <Column id="flag3" type="STRING" size="256" sumtext="불출일시"/>
  531. <Column id="stocdeptcd" type="STRING" size="256" sumtext="실출고부서"/>
  532. <Column id="sumprcpcd" type="STRING" size="256" sumtext="실출고부서"/>
  533. </ColumnInfo>
  534. </Dataset>
  535. <Dataset id="ds_init_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  536. <ColumnInfo>
  537. <Column id="chk" type="STRING" size="256" sumtext="선택"/>
  538. <Column id="deptcd" type="STRING" size="256" sumtext="코드"/>
  539. <Column id="depthngnm" type="STRING" size="256" sumtext="이름"/>
  540. <Column id="orddeptflag" type="STRING" size="256" sumtext="구분"/>
  541. </ColumnInfo>
  542. </Dataset>
  543. <Dataset id="ds_send_delivedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  544. <ColumnInfo>
  545. <Column id="drugcd" type="STRING" size="256"/>
  546. <Column id="drugnm" type="STRING" size="256"/>
  547. <Column id="orddeptnm" type="STRING" size="256"/>
  548. </ColumnInfo>
  549. <Rows>
  550. <Row/>
  551. </Rows>
  552. </Dataset>
  553. <Dataset id="ds_send_req_reqsumdrug" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  554. <ColumnInfo>
  555. <Column id="m" type="STRING" size="256" sumtext="m"/>
  556. <Column id="drugcd" type="STRING" size="256" sumtext="집계할 약품코드"/>
  557. <Column id="drugnm" type="STRING" size="256" sumtext="한글상품명"/>
  558. <Column id="exchvol" type="STRING" size="256" sumtext="용량"/>
  559. <Column id="exchvolunit" type="STRING" size="256" sumtext="단위"/>
  560. <Column id="exchqty" type="STRING" size="256" sumtext="수량"/>
  561. <Column id="exchqtyunit" type="STRING" size="256" sumtext="단위"/>
  562. <Column id="sumtodeliveqty" type="STRING" size="256" sumtext="교환단위"/>
  563. <Column id="usefromdd" type="STRING" size="256" sumtext="유효일자"/>
  564. <Column id="deliveddrugcd" type="STRING" size="256" sumtext="구분자"/>
  565. <Column id="delivedexchvol" type="STRING" size="256" sumtext="구분자"/>
  566. <Column id="delivedexchvolunit" type="STRING" size="256" sumtext="구분자"/>
  567. <Column id="delivedexchqty" type="STRING" size="256" sumtext="구분자"/>
  568. <Column id="delivedexchqtyunit" type="STRING" size="256" sumtext="구분자"/>
  569. </ColumnInfo>
  570. </Dataset>
  571. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  572. <ColumnInfo>
  573. <Column id="sumdrugcd" type="STRING" size="256"/>
  574. <Column id="count" type="STRING" size="256"/>
  575. <Column id="drugcd" type="STRING" size="256"/>
  576. <Column id="prntdruglist" type="STRING" size="256"/>
  577. <Column id="receivedrugcd" type="STRING" size="256"/>
  578. </ColumnInfo>
  579. <Rows>
  580. <Row>
  581. <Col id="receivedrugcd">/root/hidden/drugcd</Col>
  582. </Row>
  583. </Rows>
  584. </Dataset>
  585. <Dataset id="ds_temp_receivedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  586. <ColumnInfo>
  587. <Column id="receiveref" type="STRING" size="256"/>
  588. <Column id="srchflag" type="STRING" size="256"/>
  589. <Column id="srchcnts" type="STRING" size="256"/>
  590. <Column id="drugkind" type="STRING" size="256"/>
  591. </ColumnInfo>
  592. <Rows>
  593. <Row/>
  594. </Rows>
  595. </Dataset>
  596. <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  597. <ColumnInfo>
  598. <Column id="reqsumdrug" type="STRING" size="256"/>
  599. <Column id="reqdelivedrug" type="STRING" size="256"/>
  600. <Column id="drugcd" type="STRING" size="256"/>
  601. <Column id="reqexchdrug" type="STRING" size="256"/>
  602. </ColumnInfo>
  603. <Rows>
  604. <Row>
  605. <Col id="reqsumdrug"/>
  606. <Col id="reqdelivedrug"/>
  607. <Col id="drugcd"/>
  608. <Col id="reqexchdrug"/>
  609. </Row>
  610. </Rows>
  611. </Dataset>
  612. <Dataset id="ds_send_req_reqexchdrug" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  613. <ColumnInfo>
  614. <Column id="m" type="STRING" size="256" sumtext="m"/>
  615. <Column id="delivedt" type="STRING" size="256" sumtext="불출일시"/>
  616. <Column id="delivedeptcd" type="STRING" size="256" sumtext="불출부서"/>
  617. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  618. <Column id="ioflag" type="STRING" size="256" sumtext="입/외래"/>
  619. <Column id="prcpdd" type="STRING" size="256" sumtext="처방일자"/>
  620. <Column id="execprcpuniqno" type="STRING" size="256" sumtext="실시고유번호"/>
  621. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  622. <Column id="prcpkindcd" type="STRING" size="256" sumtext="처방종류"/>
  623. <Column id="prcpno" type="STRING" size="256" sumtext="처방번호"/>
  624. <Column id="prcphistno" type="STRING" size="256" sumtext="처방이력번호"/>
  625. <Column id="execprcpno" type="STRING" size="256" sumtext="처방일력번호"/>
  626. <Column id="delivestat" type="STRING" size="256" sumtext="불출구분"/>
  627. <Column id="prcpvol" type="STRING" size="256" sumtext="1일용량"/>
  628. <Column id="prcpvolunit" type="STRING" size="256" sumtext="1일용량"/>
  629. <Column id="prcpqty" type="STRING" size="256" sumtext="1일용량"/>
  630. <Column id="prcpqtyunit" type="STRING" size="256" sumtext="횟수"/>
  631. <Column id="prcptims" type="STRING" size="256" sumtext="처방명"/>
  632. <Column id="prcpdayno" type="STRING" size="256" sumtext="일수"/>
  633. <Column id="deliveqty" type="STRING" size="256" sumtext="불출일시"/>
  634. <Column id="acmlqty" type="STRING" size="256" sumtext="불출일시"/>
  635. <Column id="spreqty" type="STRING" size="256" sumtext="잔여수량"/>
  636. <Column id="drugno" type="STRING" size="256" sumtext="투약번호"/>
  637. <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
  638. <Column id="hngnm" type="STRING" size="256" sumtext="이름"/>
  639. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  640. <Column id="wardcd" type="STRING" size="256" sumtext="병동"/>
  641. <Column id="execdt" type="STRING" size="256" sumtext="실시일자"/>
  642. <Column id="drugsumdt" type="STRING" size="256" sumtext="집계시간"/>
  643. <Column id="prntdt" type="STRING" size="256" sumtext="출력일시"/>
  644. <Column id="sumdt" type="STRING" size="256" sumtext="불출일시"/>
  645. <Column id="stocdeptcd" type="STRING" size="256" sumtext="실출고부서"/>
  646. <Column id="srchprcpcd" type="STRING" size="256" sumtext="실출고부서"/>
  647. <Column id="sumprcpcd" type="STRING" size="256" sumtext="실출고부서"/>
  648. <Column id="deliveddrugcd" type="STRING" size="256" sumtext="실출고부서"/>
  649. </ColumnInfo>
  650. </Dataset>
  651. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  652. <ColumnInfo>
  653. <Column id="stocdeptcd" type="STRING" size="256"/>
  654. </ColumnInfo>
  655. </Dataset>
  656. <Dataset id="ds_hidden_prcpsrch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  657. <ColumnInfo>
  658. <Column id="stocdeptcd" type="STRING" size="256"/>
  659. </ColumnInfo>
  660. </Dataset>
  661. </Objects>
  662. <Bind>
  663. <BindItem id="item0" compid="group3.switch1.case2.input6" propid="value" datasetid="ds_send_srchdata" columnid="srchfromdd"/>
  664. <BindItem id="item1" compid="group3.switch1.case2.input7" propid="value" datasetid="ds_send_srchdata" columnid="srchtodd"/>
  665. <BindItem id="item2" compid="group3.switch1.case2.combo1" propid="value" datasetid="ds_send_srchdata" columnid="stocdeptcd"/>
  666. <BindItem id="item3" compid="group3.switch1.case2.output2" propid="value" datasetid="ds_send_delivedata" columnid="drugcd"/>
  667. <BindItem id="item4" compid="group3.switch1.case2.output1" propid="value" datasetid="ds_send_delivedata" columnid="drugnm"/>
  668. <BindItem id="item5" compid="group3.switch1.case2.output3" propid="value" datasetid="ds_send_delivedata" columnid="orddeptnm"/>
  669. <BindItem id="item6" compid="group3.group2.combo2" propid="value" datasetid="ds_send_srchdata" columnid="srcdrugcd"/>
  670. <BindItem id="item7" compid="group3.group2.input1" propid="value" datasetid="ds_send_srchdata" columnid="deliveddrugcd"/>
  671. <BindItem id="item8" compid="group3.group2.radio1" propid="value" datasetid="ds_send_srchdata" columnid="deptflag"/>
  672. <BindItem id="item9" compid="group3.rdo_deptcd" propid="value" datasetid="ds_send_srchdata" columnid="srchdeptcd"/>
  673. <BindItem id="item10" compid="group3.group2.chk_deptflag" propid="value" datasetid="ds_send_srchdata" columnid="deptflag"/>
  674. <BindItem id="item11" compid="group3.rdo_deptcd" propid="" datasetid="ds_send_srchdata" columnid="deliveddrugcd"/>
  675. </Bind>
  676. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  677. * System Name :
  678. * Job Name :
  679. * Creator :
  680. * Make Date : 2015-11-13
  681. * Description :
  682. * 현재 사용하지 않는 화면. 추후 현업에서 사용시 재 확인 필요
  683. *---------------------------------------------------------------------------------------
  684. * Modify Date Modifier Modify Description
  685. *---------------------------------------------------------------------------------------
  686. * 2015-11-13 Live Converter TF->XP
  687. *
  688. *---------------------------------------------------------------------------------------
  689. ****************************************************************************************/
  690. //=======================================================================================
  691. // Lib Include
  692. //---------------------------------------------------------------------------------------
  693. include "com_commonxp::comm_main.xjs"
  694. //include "ast_pharmacyxp::SPADT62201.xjs";
  695. //include "ast_pharmacyxp::SMADT10201.xjs";
  696. include "com_basiccodexp::ZBC001.xjs";
  697. include "emr_prcpmngtxp::MMOCommon.xjs";
  698. include "ast_commonxp::AST.xjs";
  699. //=======================================================================================
  700. // Global Form Variable
  701. //---------------------------------------------------------------------------------------
  702. var arErrorCode = new HashArray();
  703. var chk_cnt = 0;
  704. function SMADB00600_onload(obj:Form, e:LoadEventInfo)
  705. {
  706. frmf_initForm(obj);
  707. grdf_setRowTypeIcon(group3.switch1.case1.grd_sumdrug, 0); // 그리드에 업데이트 아이콘 설정.
  708. grdf_setRowTypeIcon(group3.switch1.case2.grd_ordexchdrug, 0); // 그리드에 업데이트 아이콘 설정.
  709. //zbcfGetCodeList( new Array("A0599") ,new Array("/root/init/baseinfo/unit"));
  710. var arrParam = [{dsNm: "ds_A0599", cdGrpId: "A0599", showValue: false} ]
  711. appf_getCodeList(arrParam, true, false, "");
  712. // 교환약 조회
  713. //submit("TRADB00601");
  714. var oParam = {};
  715. oParam.id = "TRADB00601";
  716. oParam.service = "pharmacybaseapp.ExchDrug";
  717. oParam.method = "reqGetExchDrugList";
  718. oParam.inds = "req=ds_";
  719. oParam.outds = "ds_main_sumdruglist=sumdruglist";
  720. oParam.async = false;
  721. //oParam.callback = "cf_TRADB00601";
  722. tranf_submit(oParam);
  723. //submit("TRADB00604");
  724. var oParam = {};
  725. oParam.id = "TRADB00604";
  726. oParam.service = "pharmacybaseapp.ExchDrug";
  727. oParam.method = "reqGetExchdrugInfo";
  728. oParam.inds = "req=ds_";
  729. oParam.outds = "ds_main_delivedruglist=delivedruglist";
  730. oParam.async = false;
  731. //oParam.callback = "cf_TRADB00604";
  732. tranf_submit(oParam);
  733. //submit("TRADB00605");
  734. var oParam = {};
  735. oParam.id = "TRADB00605";
  736. oParam.service = "pharmacybaseapp.ExchDrug";
  737. oParam.method = "reqGetInitExchdrugInfo";
  738. oParam.inds = "req=ds_";
  739. oParam.outds = "ds_init_exchdruglist_druglist=druglist";
  740. oParam.async = false;
  741. //oParam.callback = "cf_TRADB00605";
  742. tranf_submit(oParam);
  743. // 출고부서 조회
  744. //submit("TRADT01106");
  745. var oParam = {};
  746. oParam.id = "TRADT01106";
  747. oParam.service = "pharmacyprescriptionapp.DrugPrint";
  748. oParam.method = "reqGetMisDeptlist";
  749. oParam.inds = "";
  750. oParam.outds = "ds_misdeptlist_deptlist=deptlist";
  751. oParam.async = false;
  752. //oParam.callback = "cf_TRADT01106";
  753. tranf_submit(oParam);
  754. //var dutplceinstcd = getUserInfo("dutplceinstcd");
  755. var dutplceinstcd = sysf_getUserInfo("dutplceinstcd");
  756. sysf_trace(dutplceinstcd);
  757. if(dutplceinstcd == "012") {
  758. group3.switch1.case2.combo1.index = 1;
  759. } else {
  760. group3.switch1.case2.combo1.index = 0;
  761. }
  762. //model.setValue("/root/send/srchdata/srchfromdd", new Date().getAddDate(-3, "M").getDateFormat());
  763. //model.setValue("/root/send/srchdata/srchtodd", getCurrentDate());
  764. //model.refresh();
  765. var addDate = new Date();
  766. var curdate = addDate.getAddDate(-3,"M");
  767. ds_send_srchdata.setColumn(0,"srchfromdd" , curdate.getDateFormat());
  768. ds_send_srchdata.setColumn(0,"srchtodd" , utlf_getCurrentDate());
  769. }
  770. function group3_switch1_case1_btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
  771. {
  772. //grd_delivedrug.addItem();
  773. //model.setValue("/root/main/delivedruglist/delivedruglist["+ grd_delivedrug.row +"]/usefromdd", getCurrentDate());
  774. //if(model.getValue("/root/hidden/sumdrugcd") != "" ) {
  775. // model.setValue("/root/main/delivedruglist/delivedruglist["+ grd_delivedrug.row +"]/sumdrugcd", model.getValue("/root/hidden/sumdrugcd"));
  776. //}
  777. // visible = false 사용되는 곳이 없음
  778. var RowCnt = ds_main_delivedruglist.rowcount;
  779. ds_main_delivedruglist.insertRow(RowCnt);
  780. ds_send_srchdata.setColumn(RowCnt,"usefromdd", utlf_getCurrentDateTime());
  781. if(!utlf_isNull(ds_hidden_sumdrugcd.getColumn(0,"sumdrugcd"))) {
  782. ds_send_srchdata.setColumn(RowCnt,"sumdrugcd", ds_hidden_sumdrugcd.getColumn(0,"sumdrugcd"));
  783. }
  784. }
  785. function group3_switch1_case1_button50_onclick(obj:Button, e:ClickEventInfo)
  786. {
  787. //var chkrow = 0;
  788. //copyNodesetType("/root/main/delivedruglist/delivedruglist[" + grd_delivedrug.row + "]", "/root/main/delivedruglist/delivedruglist[" + grd_delivedrug.row + "]", "after");
  789. //model.refresh();
  790. //chkrow = grd_delivedrug.rows-1;
  791. //grd_delivedrug.addStatus(chkrow, "insert");
  792. // visible = false 사용되는 곳이 없음
  793. var copyRow = ds_main_delivedruglist.rowposition;
  794. var addRow = ds_main_delivedruglist.addRow();
  795. ds_main_delivedruglist.copyRow(addRow,ds_main_delivedruglist,copyRow);
  796. }
  797. function group3_switch1_case1_btn_grddel_onclick(obj:Button, e:ClickEventInfo)
  798. {
  799. //grd_sumdrug.addStatus(grd_sumdrug.row,"delete");
  800. grdf_setStatus(group3.switch1.case1.grd_sumdrug, "D", grdf_getSelectedRows(group3.switch1.case1.grd_sumdrug));
  801. }
  802. function group3_switch1_case1_button90_onclick(obj:Button, e:ClickEventInfo)
  803. {
  804. //model.setValue("/root/send/req/reqsumdrug", grd_sumdrug.getUpdateData());
  805. //submit("TXADB00601");
  806. var oDsUpdate = grdf_getGridUpdateData(group3.switch1.case1.grd_sumdrug);
  807. grdf_setStatusColumn(oDsUpdate, "m"); // 각행의 status에 rowType 값에 따라 'i', 'u', 'd'로 업데이트 시켜준다
  808. ds_send_req_reqsumdrug.copyData(oDsUpdate, true);
  809. var oParam = {};
  810. oParam.id = "TXADB00601";
  811. oParam.service = "pharmacybaseapp.ExchDrug";
  812. oParam.method = "reqExeExchDrug";
  813. oParam.inds = "reqsumdrug=ds_send_req_reqsumdrug reqdelivedrug=ds_";
  814. oParam.outds = "ds_main_sumdruglist=sumdruglist ds_main_delivedruglist=delivedruglist";
  815. oParam.async = false;
  816. //oParam.callback = "cf_TXADB00601";
  817. tranf_submit(oParam);
  818. }
  819. function group3_group2_button9_onclick(obj:Button, e:ClickEventInfo)
  820. {
  821. //if(submit("TRADB00603")) {
  822. // if(model.getValue("/root/temp/druginfo/druginfo/drugcd") != "") {
  823. // model.setValue("/root/send/delivedata/drugcd", model.getValue("/root/temp/druginfo/druginfo/drugcd"));
  824. // model.setValue("/root/send/delivedata/drugnm", model.getValue("/root/temp/druginfo/druginfo/drugnm"));
  825. // model.setValue("/root/send/srchdata/deliveddrugcd", model.getValue("/root/temp/druginfo/druginfo/delivedrugcd"));
  826. // output1.refresh();
  827. // output2.refresh();
  828. // } else {
  829. // model.setValue("/root/send/srchdata/srcdrugcd", "");
  830. // }
  831. //}
  832. var oParam = {};
  833. oParam.id = "TRADB00603";
  834. oParam.service = "pharmacybaseapp.ExchDrug";
  835. oParam.method = "reqGetExchdrugNm";
  836. oParam.inds = "req=ds_send_srchdata";
  837. oParam.outds = "ds_temp_druginfo=druginfo";
  838. oParam.async = false;
  839. //oParam.callback = "cf_TRADB00603";
  840. tranf_submit(oParam);
  841. if(!utlf_isNull(ds_temp_druginfo.getColumn(0,"drugcd"))) {
  842. ds_send_delivedata.setColumn(0,"drugcd", ds_temp_druginfo.getColumn(0,"drugcd"));
  843. ds_send_delivedata.setColumn(0,"drugnm", ds_temp_druginfo.getColumn(0,"drugnm"));
  844. ds_send_srchdata.setColumn(0,"deliveddrugcd", ds_temp_druginfo.getColumn(0,"delivedrugcd"));
  845. } else {
  846. ds_send_srchdata.setColumn(0,"srcdrugcd", "");
  847. }
  848. }
  849. function group3_group2_ipt_drugcd_onkeydown(obj:Edit, e:KeyEventInfo)
  850. {
  851. //if(event.keyCode == 13) {
  852. if(e.keycode == 13) {
  853. //model.setValue("/root/send/srchdata/srcdrugcd", ipt_drugcd.currentText);
  854. ds_send_srchdata.setColumn(0,"srcdrugcd", ipt_drugcd.currentText);
  855. //ipt_drugcd.refresh();
  856. //button9.dispatch("DOMActivate");
  857. var e = new ClickEventInfo;
  858. frmf_inputEnterKey("group3.group2.button9", "onclick", e);
  859. }
  860. }
  861. function group3_group2_combo2_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  862. {
  863. //model.setValue("/root/send/srchdata/srcdrugcd", combo2.value);
  864. //combo2.refresh();
  865. //button9.dispatch("DOMActivate");
  866. //button5.dispatch("DOMActivate");
  867. ds_send_srchdata.setColumn(0,"srcdrugcd",group3_group2_combo2.value);
  868. //combo2.refresh();
  869. var e = new ClickEventInfo;
  870. frmf_inputEnterKey("group3.group2.button9", "onclick", e);
  871. frmf_inputEnterKey("group3_switch1_case2_button5", "onclick", e);
  872. }
  873. function group3_switch1_case2_btn_excel_onclick(obj:Button, e:ClickEventInfo)
  874. {
  875. //var fileName = window.fileDialog("save", ",", false, "교환약집계내역", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  876. //if (fileName != ""){
  877. // grd_ordexchdrug.saveExcel(fileName, "SheetName", false, false, "", "", false);
  878. //}
  879. grdf_exportExcel(group3.switch1.case2.grd_ordexchdrug, "excel", "SheetName");
  880. }
  881. function group3_switch1_case2_btn_prnt_onclick(obj:Button, e:ClickEventInfo)
  882. {
  883. //if(submit("TRADB00606")) {
  884. // if(getNodesetCount("/root/hidden/prntdruglist/prntdruglist") > 0){
  885. // exeReportPreview("RPADB00600", "XMLSTR", "", "", "true","","","","","true");
  886. // }
  887. //}
  888. var oParam = {};
  889. oParam.id = "TRADB00606";
  890. oParam.service = "pharmacybaseapp.ExchDrug";
  891. oParam.method = "reqGetPrntExchList";
  892. oParam.inds = "req=ds_send_srchdata";
  893. oParam.outds = "ds_hidden_prntdruglist=prntdruglist";
  894. oParam.async = false;
  895. //oParam.callback = "cf_TRADB00606";
  896. tranf_submit(oParam);
  897. if(ds_hidden_prntdruglist.rowcount > 0){
  898. //exeReportPreview("RPADB00600", "XMLSTR", "", "", "true","","","","","true");
  899. var objDOM = rptf_createDOM(); // DOM 객체 설정
  900. rptf_setNodeListToDOM(objDOM, "/root/hidden/prntdruglist/prntdruglist" , ds_hidden_prntdruglist); // 데이터셋 1
  901. var objParam = new Object();
  902. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  903. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  904. rptf_exeReportPreview30(["RPADB00600"],[objParam], option);
  905. }
  906. }
  907. function group3_switch1_case2_button11_onclick(obj:Button, e:ClickEventInfo)
  908. {
  909. //modal("SPADT64100");
  910. frmf_modal("SPADT64100", "SPADT64100", "", "", "", "", "", "", "", "", "", "", "M");
  911. }
  912. function group3_switch1_case2_button5_onclick(obj:Button, e:ClickEventInfo)
  913. {
  914. if(fSelDeptchk()){
  915. //model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/send/srchdata/srcdrugcd"));
  916. //model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/send/srchdata/srchdeptcd"));
  917. //model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/send/srchdata/deptflag"));
  918. ds_send_srchdata.setColumn(0,"srchprcpcd", ds_send_srchdata.getColumn(0,"srcdrugcd") );
  919. ds_send_srchdata.setColumn(0,"srchorddeptcd", ds_send_srchdata.getColumn(0,"srchdeptcd") );
  920. ds_send_srchdata.setColumn(0,"srchorddeptflag", ds_send_srchdata.getColumn(0,"deptflag") );
  921. //if(submit("TRADB00602")) {
  922. // for (var i=1; i<grd_ordexchdrug.rows; i++) {
  923. // grd_ordexchdrug.cellStyle("background-color", i, grd_ordexchdrug.colRef("deliveqty")) = "#ccff66";
  924. // }
  925. //}
  926. //model.refresh();
  927. var oParam = {};
  928. oParam.id = "TRADB00602";
  929. oParam.service = "pharmacybaseapp.ExchDrug";
  930. oParam.method = "reqGetExchPrcpList";
  931. oParam.inds = "req=ds_send_srchdata";
  932. oParam.outds = "ds_main_ordexchdruglist=prcpinfo";
  933. oParam.async = false;
  934. //oParam.callback = "cf_TRADB00602";
  935. tranf_submit(oParam);
  936. for (var i=0; i<ds_main_ordexchdruglist.rowcount; i++) {
  937. //grd_ordexchdrug.cellStyle("background-color", i, grd_ordexchdrug.colRef("deliveqty")) = "#ccff66";
  938. group3_switch1_case2.grd_ordexchdrug.setCellProperty("Body",curCol,"style","background:EXPR(getColumn(currow,'" + vOrgrst + "') == 'false'?'#ccff66')");
  939. }
  940. }else{
  941. sysf_messageBox("부서를","C002");
  942. }
  943. }
  944. function fSelDeptchk(){
  945. //if(model.getValue("/root/send/srchdata/srchdeptcd") != "" && model.getValue("/root/send/srchdata/deptflag") != "" ) {
  946. if(!utlf_isNull(ds_send_srchdata.getColumn(0,"srchdeptcd")) && !utlf_isNull(ds_send_srchdata.getColumn(0,"deptflag"))) {
  947. return true;
  948. } else {
  949. return false;
  950. }
  951. }
  952. function group3_switch1_case2_button7_onclick(obj:Button, e:ClickEventInfo)
  953. {
  954. // group3.switch1.case2.grd_ordexchdrug.addItem();
  955. // var lastRow = grd_ordexchdrug.rows - grd_ordexchdrug.fixedRows;
  956. var lastRow = ds_grd_ordexchdrug.rowcount
  957. fMakeDeliveData(lastRow);
  958. }
  959. function fMakeDeliveData(lastrow){
  960. if(!utlf_isNull(lastrow)) {
  961. //model.makeNode("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]");
  962. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/delivedt", getCurrentDate()+ getCurrentTime());
  963. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/delivedeptcd", model.getValue("/root/send/srchdata/srchdeptcd"));
  964. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/wardnm", rdo_deptcd.label);
  965. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/pid", "-");
  966. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/ioflag", "-");
  967. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/prcpdd", getCurrentDate());
  968. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/execprcpuniqno", "0");
  969. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/prcpcd", model.getValue("/root/send/srchdata/deliveddrugcd"));
  970. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/prcpkindcd", "-");
  971. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/prcpno", "0");
  972. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/prcphistno", "0");
  973. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/execprcpno", "0");
  974. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/delivestat", "D");
  975. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/prcpvol", "0");
  976. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/prcpvolunit", "-");
  977. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/prcpqty", "0");
  978. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/prcpqtyunit", "-");
  979. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/prcptims", "0");
  980. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/prcpdayno", "0");
  981. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/deliveqty", ""); // 불출수량 입력해야 함
  982. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/acmlqty", "0");
  983. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/spreqty", "0");
  984. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/stocdeptcd", model.getValue("/root/send/srchdata/stocdeptcd"));
  985. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ lastrow +"]/sumprcpcd", combo2.value);
  986. //grd_ordexchdrug.refresh();
  987. ds_grd_ordexchdrug.addRow();
  988. ds_grd_ordexchdrug.setColumn(lastrow,"delivedt", utlf_getCurrentDate() + utlf_getCurrentTime() );
  989. ds_grd_ordexchdrug.setColumn(lastrow,"delivedeptcd", ds_send_srchdata.getColumn(0,"srchdeptcd"));
  990. ds_grd_ordexchdrug.setColumn(lastrow,"wardnm", group3.rdo_deptcd.text ); //=> 확인 필요
  991. ds_grd_ordexchdrug.setColumn(lastrow,"pid", "-" );
  992. ds_grd_ordexchdrug.setColumn(lastrow,"ioflag", "-" );
  993. ds_grd_ordexchdrug.setColumn(lastrow,"prcpdd", utlf_getCurrentDate() );
  994. ds_grd_ordexchdrug.setColumn(lastrow,"execprcpuniqno", "0" );
  995. ds_grd_ordexchdrug.setColumn(lastrow,"prcpcd", ds_send_srchdata.getColumn(0,"deliveddrugcd") );
  996. ds_grd_ordexchdrug.setColumn(lastrow,"prcpkindcd", "" );
  997. ds_grd_ordexchdrug.setColumn(lastrow,"prcpno", "0" );
  998. ds_grd_ordexchdrug.setColumn(lastrow,"prcphistno", "0" );
  999. ds_grd_ordexchdrug.setColumn(lastrow,"execprcpno", "0" );
  1000. ds_grd_ordexchdrug.setColumn(lastrow,"delivestat", "D" );
  1001. ds_grd_ordexchdrug.setColumn(lastrow,"prcpvol", "0" );
  1002. ds_grd_ordexchdrug.setColumn(lastrow,"prcpvolunit", "-" );
  1003. ds_grd_ordexchdrug.setColumn(lastrow,"prcpqty", "0" );
  1004. ds_grd_ordexchdrug.setColumn(lastrow,"prcpqtyunit", "-" );
  1005. ds_grd_ordexchdrug.setColumn(lastrow,"prcptims", "0" );
  1006. ds_grd_ordexchdrug.setColumn(lastrow,"prcpdayno", "0" );
  1007. ds_grd_ordexchdrug.setColumn(lastrow,"deliveqty", "" ); // 불출수량 입력해야 함
  1008. ds_grd_ordexchdrug.setColumn(lastrow,"acmlqty", "0" );
  1009. ds_grd_ordexchdrug.setColumn(lastrow,"spreqty", "0" );
  1010. ds_grd_ordexchdrug.setColumn(lastrow,"stocdeptcd", ds_send_srchdata.getColumn(0,"stocdeptcd") );
  1011. ds_grd_ordexchdrug.setColumn(lastrow,"sumprcpcd", group3.group2.combo2.value ); //=> 확인 필요
  1012. }
  1013. }
  1014. function group3_group2_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  1015. {
  1016. //model.setValue("/root/send/delivedata/orddeptnm", radio1.label);
  1017. ds_send_delivedata.setColumn(0,"orddeptnm" , group3.group2.radio1.text);
  1018. //output3.refresh();
  1019. }
  1020. function group3_group2_radio1_onmouseup(obj:Radio, e:RadioMouseEventInfo)
  1021. {
  1022. group3.rdo_deptcd.visible = true;
  1023. }
  1024. function group3_switch1_case1_grd_sumdrug_oncellclick(obj:Grid, e:GridClickEventInfo)
  1025. {
  1026. //model.setValue("/root/hidden/sumdrugcd", (model.getValue("/root/main/sumdruglist/sumdruglist["+grd_sumdrug.row+"]/drugcd")).toUpperCase());
  1027. ds_hidden.setColumn(0, "sumdrugcd", (ds_main_sumdruglist.getColumn(group3.switch1.case1.grd_sumdrug.currentrow, "drugcd")).toUpperCase());
  1028. if(utlf_isNull(ds_hidden.getColumn(0, "sumdrugcd"))){
  1029. return;
  1030. }
  1031. }
  1032. function group3_switch1_case2_combo1_cancharchange(obj:Combo, e:CanCharEventInfo)
  1033. {
  1034. }
  1035. function group3_group2_radio1_onitemclick(obj:Radio, e:RadioMouseEventInfo)
  1036. {
  1037. // alert("onitemclick");
  1038. //진료과
  1039. group3.rdo_deptcd.visible=true;
  1040. //var deptflag = model.getValue("/root/send/srchdata/deptflag");
  1041. var deptflag = ds_send_srchdata.getColumn(0,"deptflag");
  1042. if(deptflag != ""){
  1043. //submit("TRADT10321");
  1044. var oParam = {};
  1045. oParam.id = "TRADT10321";
  1046. oParam.service = "pharmacyprescriptionapp.BeforeCure";
  1047. oParam.method = "reqGetBeforeCureDeptList";
  1048. oParam.inds = "req=ds_send_srchdata";
  1049. oParam.outds = "ds_init_orddept=dept";
  1050. oParam.async = false;
  1051. //oParam.callback = "cf_TRADT10301";
  1052. tranf_submit(oParam);
  1053. //model.setValue("/root/send/delivedata/orddeptnm", radio1.label);
  1054. ds_send_delivedata.setColumn(0,"orddeptnm" , group3.group2.radio1.text);
  1055. }
  1056. }
  1057. function group3_switch1_case1_grd_sumdrug_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  1058. {
  1059. var sCol = group3.switch1.case1.grd_sumdrug.currentcol;
  1060. //if ( grd_sumdrug.col == grd_sumdrug.colRef("deliveddrugcd") ){
  1061. if ( sCol == group3.switch1.case1.grd_sumdrug.getBindCellIndex("body", "deliveddrugcd")) {
  1062. //model.setValue("/root/temp/receivedata/receiveref", model.getValue("/root/hidden/receivedrugcd"));
  1063. //model.setValue("/root/temp/receivedata/srchflag", "");
  1064. //model.setValue("/root/temp/receivedata/srchcnts", "");
  1065. //model.setValue("/root/temp/receivedata/drugkind","");
  1066. ds_temp_receivedata.setColumn(0, "receiveref", ds_hidden.getColumn(0, "receivedrugcd"));
  1067. ds_temp_receivedata.setColumn(0, "srchflag", "");
  1068. ds_temp_receivedata.setColumn(0, "srchcnts", "");
  1069. ds_temp_receivedata.setColumn(0, "drugkind", "");
  1070. //modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata");
  1071. var objArg = new Object();
  1072. objArg.arg_ds_temp_receivedata = ds_temp_receivedata; // XP 전환시 사용될 아규먼트
  1073. frmf_modal("SPADB60100", "SPADB60100", objArg, null, 0, 100, 150, null, null, null, null, null, "M");
  1074. //if ( model.getValue("/root/hidden/drugcd") ==""){
  1075. if(utlf_isNull(ds_hidden.getColumn(0, "drugcd"))){
  1076. return;
  1077. } else {
  1078. //model.setValue("/root/main/sumdruglist/sumdruglist["+ grd_sumdrug.row +"]/deliveddrugcd", model.getValue("/root/hidden/drugcd") );
  1079. //model.setValue("/root/send/srchdata/srcdrugcd", model.getValue("/root/hidden/drugcd") );
  1080. ds_main_sumdruglist.setColumn(group3.switch1.case1.grd_sumdrug.currentrow, "deliveddrugcd" , ds_hidden.getColumn(0, "drugcd"));
  1081. ds_send_srchdata.setColumn(0, "srcdrugcd", ds_hidden.getColumn(0, "drugcd"));
  1082. var oParam = {};
  1083. oParam.id = "TRADB00603";
  1084. oParam.service = "pharmacybaseapp.ExchDrug";
  1085. oParam.method = "reqGetExchdrugNm";
  1086. oParam.inds = "req=ds_send_srchdata";
  1087. oParam.outds = "ds_temp_druginfo=druginfo";
  1088. oParam.async = false;
  1089. oParam.callback = "cf_TRADB00603";
  1090. tranf_submit(oParam);
  1091. //if(submit("TRADB00603")) {
  1092. //model.setValue("/root/main/sumdruglist/sumdruglist["+ grd_sumdrug.row +"]/deliveddrugnm", model.getValue("/root/temp/druginfo/druginfo/drugnm"));
  1093. //model.setValue("/root/main/sumdruglist/sumdruglist["+ grd_sumdrug.row +"]/delivedexchvol", model.getValue("/root/temp/druginfo/druginfo/exchvol"));
  1094. //model.setValue("/root/main/sumdruglist/sumdruglist["+ grd_sumdrug.row +"]/delivedexchvolunit", model.getValue("/root/temp/druginfo/druginfo/exchvolunit"));
  1095. //model.setValue("/root/main/sumdruglist/sumdruglist["+ grd_sumdrug.row +"]/delivedexchqty", model.getValue("/root/temp/druginfo/druginfo/exchqty"));
  1096. //model.setValue("/root/main/sumdruglist/sumdruglist["+ grd_sumdrug.row +"]/delivedexchqtyunit", model.getValue("/root/temp/druginfo/druginfo/exchqtyunit"));
  1097. //model.setValue("/root/main/sumdruglist/sumdruglist["+ grd_sumdrug.row +"]/usefromdd", model.getValue("/root/temp/druginfo/druginfo/usefromdd"));
  1098. //grd_sumdrug.addStatus(grd_sumdrug.row, "insert");
  1099. //model.refresh();
  1100. //}
  1101. }
  1102. }
  1103. }
  1104. function cf_TRADB00603(sSvcId, nErrorCode, sErrorMsg) {
  1105. if(nErrorCode < 0) return;
  1106. ds_main_sumdruglist.setColumn(group3.switch1.case1.grd_sumdrug.currentrow, "deliveddrugnm", ds_temp_druginfo.getColumn(0, "drugnm"));
  1107. ds_main_sumdruglist.setColumn(group3.switch1.case1.grd_sumdrug.currentrow, "delivedexchvol", ds_temp_druginfo.getColumn(0, "exchvol"));
  1108. ds_main_sumdruglist.setColumn(group3.switch1.case1.grd_sumdrug.currentrow, "delivedexchvolunit", ds_temp_druginfo.getColumn(0, "exchvolunit"));
  1109. ds_main_sumdruglist.setColumn(group3.switch1.case1.grd_sumdrug.currentrow, "delivedexchqty", ds_temp_druginfo.getColumn(0, "exchqty"));
  1110. ds_main_sumdruglist.setColumn(group3.switch1.case1.grd_sumdrug.currentrow, "delivedexchqtyunit", ds_temp_druginfo.getColumn(0, "exchqtyunit"));
  1111. ds_main_sumdruglist.setColumn(group3.switch1.case1.grd_sumdrug.currentrow, "usefromdd", ds_temp_druginfo.getColumn(0, "usefromdd"));
  1112. //grd_sumdrug.addStatus(grd_sumdrug.row, "insert");
  1113. grdf_setStatus(group3.switch1.case1.grd_sumdrug, "I", grdf_getSelectedRows(group3.switch1.case1.grd_sumdrug));
  1114. }
  1115. function group3_switch1_case1_grd_sumdrug_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  1116. {
  1117. //model.setValue("/root/send/srchdata/srcdrugcd", model.getValue("/root/main/sumdruglist/sumdruglist["+ grd_sumdrug.row +"]/drugcd"));
  1118. //model.setValue("/root/send/srchdata/deliveddrugcd", model.getValue("/root/main/sumdruglist/sumdruglist["+ grd_sumdrug.row +"]/deliveddrugcd"));
  1119. ds_send_srchdata.setColumn(0, "srcdrugcd", ds_main_sumdruglist.getColumn(group3.switch1.case1.grd_sumdrug.currentrow, "drugcd"));
  1120. ds_send_srchdata.setColumn(0, "deliveddrugcd", ds_main_sumdruglist.getColumn(group3.switch1.case1.grd_sumdrug.currentrow, "deliveddrugcd"));
  1121. //combo2.dispatch("xforms-select");
  1122. frmf_inputEnterKey("group3.group2.combo2", "onitemchanged", e);
  1123. }
  1124. function ds_grd_ordexchdrug_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  1125. {
  1126. // 그리드grd_ordexchdrug 의 onendedit 를 수행.
  1127. if(group3.switch1.case2.grd_ordexchdrug.getEditText() == undefined) return;
  1128. var sRow = ds_grd_ordexchdrug.rowposition;
  1129. var sCol = group3.switch1.case1.grd_sumdrug.currentcol;
  1130. var deliqty = ds_grd_ordexchdrug.getColumn(sRow, "deliveqty"); //= grd_ordexchdrug.labelmatrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("deliveqty"));
  1131. if ( sCol == group3.switch1.case2.grd_ordexchdrug.getBindCellIndex("body", "deliveqty")) { //if(grd_ordexchdrug.col == grd_ordexchdrug.colRef("deliveqty")) {
  1132. //if(model.getValue("/root/main/ordexchdruglist/prcpinfo["+ grd_ordexchdrug.row +"]/delivestat") != "S" &&
  1133. // model.getValue("/root/main/ordexchdruglist/prcpinfo["+ grd_ordexchdrug.row +"]/deliveqty") != "") {
  1134. if(ds_grd_ordexchdrug.getColumn(sRow, "delivestat") != "S" &&
  1135. utlf_isNull(ds_grd_ordexchdrug.getColumn(sRow, "deliveqty"))) {
  1136. var std = ds_temp_druginfo.getColumn(0, "sumtodeliveqty"); //var std =model.getValue("/root/temp/druginfo/druginfo/sumtodeliveqty");
  1137. //var spreqty = parseFloat(grd_ordexchdrug.labelmatrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("acmlqty"))) -
  1138. // parseFloat(grd_ordexchdrug.labelmatrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("deliveqty")) * std );
  1139. var spreqty = parseFloat(ds_grd_ordexchdrug.getColumn(sRow, "acmlqty")) - parseFloat(ds_grd_ordexchdrug.getColumn(sRow, "deliveqty") * std);
  1140. if(spreqty < 0) {
  1141. //grd_ordexchdrug.valuematrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("spreqty")) = 0;
  1142. ds_grd_ordexchdrug.setColumn(sRow, "spreqty", 0 );
  1143. } else {
  1144. //grd_ordexchdrug.valuematrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("spreqty")) = spreqty;
  1145. ds_grd_ordexchdrug.setColumn(sRow, "spreqty", spreqty );
  1146. }
  1147. //grd_ordexchdrug.addStatus(grd_ordexchdrug.row, "insert");
  1148. grdf_setStatus(group3.switch1.case2.grd_ordexchdrug, "I", grdf_getSelectedRows(group3.switch1.case2.grd_ordexchdrug));
  1149. //} else if(model.getValue("/root/main/ordexchdruglist/prcpinfo["+ grd_ordexchdrug.row +"]/delivestat") != "S" && grd_ordexchdrug.rowStatus(grd_ordexchdrug.row) == "3"){
  1150. } else if(ds_grd_ordexchdrug.getColumn(sRow, "delivestat") !="S" && ds_grd_ordexchdrug.getRowType(sRow) == "2"){
  1151. var std = ds_temp_druginfo.getColumn(0, "sumtodeliveqty");//var std =model.getValue("/root/temp/druginfo/druginfo/sumtodeliveqty");
  1152. //var spreqty = parseFloat(grd_ordexchdrug.labelmatrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("acmlqty"))) - parseFloat(deliqty * std );
  1153. var spreqty = parseFloat(ds_grd_ordexchdrug.getColumn(sRow, "acmlqty")) - parseFloat(deliqty * std );
  1154. if(spreqty < 0) {
  1155. //grd_ordexchdrug.valuematrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("spreqty")) = 0;
  1156. ds_grd_ordexchdrug.setColumn(sRow, "spreqty", 0 );
  1157. } else {
  1158. //grd_ordexchdrug.valuematrix(grd_ordexchdrug.row, grd_ordexchdrug.colRef("spreqty")) = spreqty;
  1159. ds_grd_ordexchdrug.setColumn(sRow, "spreqty", spreqty );
  1160. }
  1161. //grd_ordexchdrug.addStatus(grd_ordexchdrug.row, "insert");
  1162. grdf_setStatus(group3.switch1.case2.grd_ordexchdrug, "I", grdf_getSelectedRows(group3.switch1.case2.grd_ordexchdrug));
  1163. }else {
  1164. //grd_ordexchdrug.removeStatus(grd_ordexchdrug.row, "insert");
  1165. grdf_setStatus(group3.switch1.case2.grd_ordexchdrug, "", grdf_getSelectedRows(group3.switch1.case2.grd_ordexchdrug));
  1166. }
  1167. //for(var i = grd_ordexchdrug.row - 1; i >= grd_ordexchdrug.fixedRows; i--) {
  1168. for(var i = sRow ; i >= 0 ; i--){
  1169. //if(model.getValue("/root/main/ordexchdruglist/prcpinfo["+ i +"]/delivestat") != "S") {
  1170. if( ds_grd_ordexchdrug.getColumn(i, "delivestat") != "S") {
  1171. var prcpqty = parseFloat(ds_grd_ordexchdrug.getColumn(i, "prcpqty")); //var prcpqty = parseFloat(grd_ordexchdrug.labelmatrix(i, grd_ordexchdrug.colRef("prcpqty")));
  1172. ds_grd_ordexchdrug.setColumn(i, "deliveqty", parseFloat(0)); //grd_ordexchdrug.valuematrix(i, grd_ordexchdrug.colRef("deliveqty")) = parseFloat(0);
  1173. ds_grd_ordexchdrug.setColumn(i, "spreqty", parseFloat(0)); //grd_ordexchdrug.valuematrix(i, grd_ordexchdrug.colRef("spreqty")) = parseFloat(0);
  1174. grdf_setStatus(group3.switch1.case2.grd_ordexchdrug, "I", i); //grd_ordexchdrug.addStatus(i, "insert");
  1175. } else {
  1176. grdf_setStatus(group3.switch1.case2.grd_ordexchdrug, "", i); //grd_ordexchdrug.removeStatus(i, "insert");
  1177. }
  1178. }
  1179. }
  1180. }
  1181. function group3_switch1_case2_btn_sum_onclick(obj:Button, e:ClickEventInfo)
  1182. {
  1183. group3.switch1.case2.btn_sum.enable =false;
  1184. var lastrow = "";
  1185. //for(var i = grd_ordexchdrug.fixedRows ; i < grd_ordexchdrug.rows; i++ ) {
  1186. for(var i = 0; i < ds_grd_ordexchdrug.rowcount; i++) {
  1187. //if(grd_ordexchdrug.rowStatus(i) == "3" ||grd_ordexchdrug.rowStatus(i) == "1" ) {
  1188. if(ds_grd_ordexchdrug.getRowType(i) == 2) { // just inserted row
  1189. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ i +"]/delivedt", getCurrentDate()+ getCurrentTime());
  1190. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ i +"]/delivedeptcd",model.getValue("/root/send/srchdata/srchdeptcd"));
  1191. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ i +"]/delivestat","S"); // 집계
  1192. //model.setValue("/root/main/ordexchdruglist/prcpinfo["+ i +"]/stocdeptcd", model.getValue("/root/send/srchdata/stocdeptcd"));
  1193. //lastrow = i;
  1194. ds_grd_ordexchdrug.setColumn(i, "delivedt", utlf_getCurrentDate() + utlf_getCurrentDateTime());
  1195. ds_grd_ordexchdrug.setColumn(i, "delivedeptcd", ds_send_srchdata.getColumn(0, "srchdeptcd"));
  1196. ds_grd_ordexchdrug.setColumn(i, "delivestat","S"); // 집계
  1197. ds_grd_ordexchdrug.setColumn(i, "stocdeptcd", ds_send_srchdata.getColumn(0, "stocdeptcd"));
  1198. }
  1199. }
  1200. //if ( messageBox("약품 불출을 ","Q004")==6 ) {
  1201. if( sysf_messageBox("약품 불출을 ","Q004")==6 ) {
  1202. if(fSelDeptchk()){
  1203. //model.setValue("/root/send/req/reqexchdrug", grd_ordexchdrug.getUpdateData());
  1204. var oDsUpdate = grdf_getGridUpdateData(group3.switch1.case2.grd_ordexchdrug);
  1205. grdf_setStatusColumn(oDsUpdate, "m"); // 각행의 status에 rowType 값에 따라 'i', 'u', 'd'로 업데이트 시켜준다
  1206. ds_send_req_reqexchdrug.copyData(oDsUpdate, true);
  1207. //submit("TXADB00602");
  1208. var oParam = {};
  1209. oParam.id = "TXADB00602";
  1210. oParam.service = "pharmacybaseapp.ExchDrug";
  1211. oParam.method = "reqExeExchDrugSum";
  1212. oParam.inds = "req=ds_send_req_reqexchdrug srchdata=ds_send_srchdata";
  1213. oParam.outds = "ds_grd_ordexchdrug=prcpinfo";
  1214. oParam.async = false;
  1215. //oParam.callback = "cf_TXADB00602";
  1216. tranf_submit(oParam);
  1217. }else{
  1218. sysf_messageBox("불출할 부서를","C002");
  1219. }
  1220. }
  1221. group3.switch1.case2.btn_sum.enable = true;
  1222. }
  1223. function group3_switch1_case2_button6_onclick(obj:Button, e:ClickEventInfo)
  1224. {
  1225. //if(model.getValue("/root/main/ordexchdruglist/prcpinfo["+ grd_ordexchdrug.row +"]/delivestat") == "S") {
  1226. if(ds_grd_ordexchdrug.getColumn(ds_grd_ordexchdrug.rowposition, "delivestat") == "S") {
  1227. sysf_messageBox("출고시킨 약품을 행삭제", "E001");
  1228. return;
  1229. } else {
  1230. ds_grd_ordexchdrug.deleteRow(ds_grd_ordexchdrug.rowposition); //grd_ordexchdrug.deleteRow(grd_ordexchdrug.row, true);
  1231. }
  1232. }
  1233. function group3_switch1_case2_combo1_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  1234. {
  1235. if(chk_cnt != 0) {
  1236. var ret = sysf_messageBox("약품출고부서를 " + group3.switch1.case2.combo1.text +"으로 ", "S001");
  1237. if(ret == "6") {
  1238. //model.setValue("/root/temp/stocdeptcd", combo1.value);
  1239. ds_temp.setColumn(0, "stocdeptcd", group3.switch1.case2.combo1.value);
  1240. } else {
  1241. //model.setValue("/root/hidden/prcpsrch/stocdeptcd", model.getValue("/root/temp/stocdeptcd"));
  1242. ds_hidden_prcpsrch.setColumn(0, "stocdeptcd", ds_temp.getColumn(0, "stocdeptcd"));
  1243. }
  1244. chk_cnt ++;
  1245. //combo1.refresh();
  1246. }
  1247. }
  1248. function group3_group2_btn_drug_onclick(obj:Button, e:ClickEventInfo)
  1249. {
  1250. // model.setValue("/root/temp/receivedata/receiveref", model.getValue("/root/hidden/receivedrugcd"));
  1251. // model.setValue("/root/temp/receivedata/srchflag", "");
  1252. // model.setValue("/root/temp/receivedata/srchcnts", "");
  1253. // model.setValue("/root/temp/receivedata/drugkind","");
  1254. ds_temp_receivedata.setColumn(0, "receiveref", ds_hidden.getColumn(0, "receivedrugcd"));
  1255. ds_temp_receivedata.setColumn(0, "srchflag", "");
  1256. ds_temp_receivedata.setColumn(0, "srchcnts", "");
  1257. ds_temp_receivedata.setColumn(0, "drugkind", "");
  1258. //modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata");
  1259. var objArg = new Object();
  1260. objArg.arg_ds_temp_receivedata = ds_temp_receivedata; // XP 전환시 사용될 아규먼트
  1261. frmf_modal("SPADB60100", "SPADB60100", objArg, null, 0, 100, 150, null, null, null, null, null, "M");
  1262. //if ( model.getValue("/root/hidden/drugcd") =="")
  1263. if(utlf_isNull(ds_hidden.getColumn(0, "drugcd"))){
  1264. return;
  1265. }
  1266. // model.setValue("/root/send/srchdata/srcdrugcd", model.getValue("/root/hidden/drugcd") );
  1267. // model.setValue("/root/send/delivedata/drugcd", model.getValue("/root/hidden/drugcd") );
  1268. // ipt_drugcd.refresh();
  1269. ds_send_srchdata.setColumn(0, "srcdrugcd", ds_hidden.getColumn(0, "drugcd"));
  1270. ds_send_delivedata.setColumn(0, "drugcd", ds_hidden.getColumn(0, "drugcd"));
  1271. }
  1272. function group3_group2_chk_deptflag_onclick(obj:CheckBox, e:ClickEventInfo)
  1273. {
  1274. // 진료과
  1275. group3.rdo_deptcd.visible = true; //rdo_deptcd.visible=true;
  1276. var deptflag = ds_send_srchdata.getColumn(0, "deptflag"); // model.getValue("/root/send/srchdata/deptflag");
  1277. //if(deptflag != ""){
  1278. if(!utlf_isNull(deptflag)){
  1279. //submit("TRADT10321");
  1280. var oParam = {};
  1281. oParam.id = "TRADT10321";
  1282. oParam.service = "pharmacyprescriptionapp.BeforeCure";
  1283. oParam.method = "reqGetBeforeCureDeptList";
  1284. oParam.inds = "req=ds_send_srchdata";
  1285. oParam.outds = "ds_init_orddept=dept";
  1286. oParam.async = false;
  1287. //oParam.callback = "cf_TRADT10301";
  1288. tranf_submit(oParam);
  1289. // var srchdeptcd = model.getValue("/root/send/srchdata/srchdeptcd");
  1290. // var tmp_deptflag = deptflag.split(" ");
  1291. // model.refresh();
  1292. var srchdeptcd = ds_send_srchdata.getColumn(0, "srchdeptcd");
  1293. var tmp_deptflag = deptflag.split(" ");
  1294. }
  1295. }
  1296. function group3_group2_chk_deptflag_onkillfocus(obj:CheckBox, e:KillFocusEventInfo)
  1297. {
  1298. // 진료과
  1299. group3.rdo_deptcd.visible=true;
  1300. var deptflag = ds_send_srchdata.getColumn(0, "deptflag"); //model.getValue("/root/send/srchdata/deptflag");
  1301. if(!utlf_isNull(deptflag)){
  1302. if (deptflag.indexOf("W") >-1 ){
  1303. group3.rdo_deptcd.visible=true;
  1304. } else {
  1305. group3.rdo_deptcd.visible=false;
  1306. }
  1307. //submit("TRADT10321");
  1308. var oParam = {};
  1309. oParam.id = "TRADT10321";
  1310. oParam.service = "pharmacyprescriptionapp.BeforeCure";
  1311. oParam.method = "reqGetBeforeCureDeptList";
  1312. oParam.inds = "req=ds_send_srchdata";
  1313. oParam.outds = "ds_init_orddept=dept";
  1314. oParam.async = false;
  1315. //oParam.callback = "cf_TRADT10301";
  1316. tranf_submit(oParam);
  1317. // 체크박스 해제한 항목을 조회조건에서 제외 - 그외 기존 체크항목 유지
  1318. var srchdeptcd = "";
  1319. var tmp_srchdeptcd = ds_send_srchdata.getColumn(0, "srchdeptcd").split("|"); //기존 선택한 [상세부서]목록 설정
  1320. for(var i = 0; i <= ds_init_orddept.rowcount ; i++){ // 새로조회된 [상세부서]목록만큼.. * 인스턴스배열은 1부터..
  1321. if(utlf_isSearchString(deptflag, ds_init_orddept.getColumn(i, "orddeptflag"))){ // 새로 조회된 부서 중 이전 선택한 항목에 대해서만.. [부서구분]으로 비교
  1322. for(j = 0; j < tmp_srchdeptcd.length; j++){
  1323. //if(model.getValue("/root/init/orddept/dept["+i+"]/deptcd") == tmp_srchdeptcd[j]){
  1324. if(ds_init_orddept.getColumn(i, "deptcd") == tmp_srchdeptcd[j]){ // 신/구 [상세부서] 비교
  1325. srchdeptcd += tmp_srchdeptcd[j]+"|";
  1326. }
  1327. //model.setValue("/root/init/orddept/dept["+i+"]/chk", "Y");
  1328. ds_init_orddept.setColumn(i, "chk", "Y");
  1329. }
  1330. }
  1331. }
  1332. srchdeptcd = srchdeptcd.substr(0,parseInt(srchdeptcd.length)-1); // 마지막 구분자는 삭제
  1333. ds_send_srchdata.setColumn(0, "srchdeptcd", srchdeptcd);
  1334. gv_deptflag = deptflag; // 이전 선택된 부서구분을 위한 비교변수 설정
  1335. }else{
  1336. // 선택한 대상부서가 없을시 부서 조회조건 초기화
  1337. ds_init_orddept.clearData(); //model.resetInstanceNode("/root/init/orddept/dept");
  1338. ds_send_srchdata.setColumn(0, "srchdeptcd", ""); //model.setValue("/root/send/srchdata/srchdeptcd", "");
  1339. gv_deptflag = "";
  1340. }
  1341. }
  1342. function group3_group2_chk_deptflag_onmouseleave(obj:CheckBox, e:MouseEventInfo)
  1343. {
  1344. group3.rdo_deptcd.visible=true;
  1345. }
  1346. function group3_rdo_deptcd_onsetfocus(obj:Radio, e:SetFocusEventInfo)
  1347. {
  1348. group3.rdo_deptcd.visible = true;
  1349. }
  1350. function group3_rdo_deptcd_onkillfocus(obj:Radio, e:KillFocusEventInfo)
  1351. {
  1352. group3.rdo_deptcd.visible = false;
  1353. }
  1354. function group3_rdo_deptcd_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  1355. {
  1356. if(!utlf_isNull(group3.rdo_deptcd.value)) {
  1357. //button5.dispatch("DOMActivate");
  1358. var e = new ClickEventInfo;
  1359. frmf_inputEnterKey("group3.switch1.case2.button5", "onclick", e);
  1360. var ordIdx = ds_send_delivedata.getColumn(0, "orddeptnm").indexOf("|");
  1361. if(ordIdx > -1) {
  1362. var ordStr = ds_send_delivedata.getColumn(0, "orddeptnm").substr(0, ordIdx) + "| " + group3.rdo_deptcd.text; //model.getValue("/root/send/delivedata/orddeptnm").substr(0, ordIdx) + "| " + rdo_deptcd.label;
  1363. ds_send_delivedata.setColumn(0, "orddeptnm", ordStr); //model.setValue("/root/send/delivedata/orddeptnm", ordStr);
  1364. } else {
  1365. //model.setValue("/root/send/delivedata/orddeptnm", model.getValue("/root/send/delivedata/orddeptnm") + " | " + rdo_deptcd.label);
  1366. ds_send_delivedata.setColumn(0, "orddeptnm", ds_send_delivedata.getColumn(0, "orddeptnm") + " | " + group3.rdo_deptcd.text);
  1367. }
  1368. }
  1369. }]]></Script>
  1370. </Form>
  1371. </FDL>