SMADT01000_원외처방사후관리.xfdl 57 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMADT01000" position="absolute 0 0 1256 786" titletext="원외처방 사후관리" onload="SMADT01000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group3" position="absolute 0 25 1255 782" anchor="all" positiontype="position" scrollbars="none">
  8. <Layouts>
  9. <Layout width="1256" height="757">
  10. <Static id="Static02" class="sta_DA_box" position="absolute 0 402 1254 504" anchor="left top right"/>
  11. <Edit id="edt_altedicd" enable="false" position="absolute 89 430 189 450" anchor="left top" imemode="hangul" maxlength="12" taborder="10" tabstop="false" positiontype="position"/>
  12. <Static id="caption11" class="cell_1" position="absolute 192 428 275 452" style="align:center middle;" anchor="left top" text="용량" align="align:center middle;" positiontype="position"/>
  13. <Static id="caption12" class="cell_1" position="absolute 326 428 373 452" style="align:center middle;" anchor="left top" text="단위" align="align:center middle;" positiontype="position"/>
  14. <Static id="caption14" class="cell_1" position="absolute 192 453 275 477" style="align:center middle;" anchor="left top" text="횟수" align="align:center middle;" positiontype="position"/>
  15. <Static id="caption15" class="cell_1" position="absolute 326 453 373 477" style="align:center middle;" anchor="left top" text="일수" align="align:center middle;" positiontype="position"/>
  16. <Static id="caption16" class="cell_1" position="absolute 432 428 484 452" style="align:center middle;" anchor="left top" text="총량" align="align:center middle;" positiontype="position"/>
  17. <Static id="caption17" class="cell_1" position="absolute 2 453 86 477" style="align:center middle;" anchor="left top" text="용법코드" align="align:center middle;" positiontype="position"/>
  18. <Static id="caption8" class="cell_1" position="absolute 2 428 86 452" style="align:center middle;" anchor="left top" text="보험등재코드" align="align:center middle;" positiontype="position"/>
  19. <Shape id="line7" class="line_2" position="absolute 229 480 1201 480" anchor="top right" linetype="horizontal" positiontype="position"/>
  20. <Static id="caption25" class="cell_1" position="absolute 2 403 86 427" style="align:center middle;" anchor="left top" text="원처방코드" align="align:center middle;" positiontype="position"/>
  21. <Edit id="edt_prcpcd" enable="false" position="absolute 89 405 189 425" anchor="left top" imemode="hangul" taborder="11" tabstop="false" positiontype="position"/>
  22. <Static id="caption26" class="cell_1" position="absolute 192 403 275 427" style="align:center middle;" anchor="left top" text="원처방약품명" align="align:center middle;" positiontype="position"/>
  23. <Edit id="edt_prcpnm" enable="false" position="absolute 278 405 540 425" anchor="left top" imemode="hangul" taborder="12" tabstop="false" positiontype="position"/>
  24. <Button id="btn_del" class="btn4" position="absolute 1197 380 1253 400" anchor="top right" text="삭제" taborder="9" onclick="group3_btn_del_onclick" positiontype="position"/>
  25. <Button id="btn_save" class="btn4" position="absolute 1138 380 1194 400" anchor="top right" text="저장" taborder="8" onclick="group3_btn_save_onclick" positiontype="position"/>
  26. <Button id="button1" class="btn4" position="absolute 1066 380 1135 400" anchor="top right" text="초기화" onclick="group3_button1_onclick" taborder="7" positiontype="position"/>
  27. <Grid id="grd_druglist" position="absolute 225 83 1254 376" anchor="left top right" binddataset="ds_grid_grd_druglist" ondbclick="grd_druglist_ondbclick" cellsizingtype="both" autofittype="none" autoenter="select" oncelldblclick="group3_grd_druglist_oncelldblclick" taborder="13" positiontype="position" extendsizetype="row">
  28. <Formats>
  29. <Format id="default">
  30. <Columns>
  31. <Column size="25" band="left"/>
  32. <Column size="97"/>
  33. <Column size="209"/>
  34. <Column size="53"/>
  35. <Column size="42"/>
  36. <Column size="42"/>
  37. <Column size="40"/>
  38. <Column size="53"/>
  39. <Column size="45"/>
  40. <Column size="73"/>
  41. <Column size="257"/>
  42. <Column size="84"/>
  43. </Columns>
  44. <Rows>
  45. <Row size="24" band="head"/>
  46. <Row size="24"/>
  47. </Rows>
  48. <Band id="head">
  49. <Cell/>
  50. <Cell col="1" text="약품코드"/>
  51. <Cell col="2" text="약품명"/>
  52. <Cell col="3" text="1회용량"/>
  53. <Cell col="4" text="단위"/>
  54. <Cell col="5" text="횟수"/>
  55. <Cell col="6" text="일수"/>
  56. <Cell col="7" colspan="2" text="총량"/>
  57. <Cell col="9" text="용법코드"/>
  58. <Cell col="10" text="용법"/>
  59. <Cell col="11" text="대체유무"/>
  60. </Band>
  61. <Band id="body">
  62. <Cell celltype="head" text="expr:currow+1"/>
  63. <Cell col="1" style="align:left;" text="bind:prcpcd"/>
  64. <Cell col="2" style="align:left;" text="bind:prcpnm"/>
  65. <Cell col="3" style="align:right;" text="bind:prcpqty"/>
  66. <Cell col="4" style="align:left;" text="bind:prcpvolunit"/>
  67. <Cell col="5" style="align:right;" text="bind:prcptims"/>
  68. <Cell col="6" style="align:right;" text="bind:prcpdayno"/>
  69. <Cell col="7" style="align:right;" text="bind:totqty"/>
  70. <Cell col="8" style="align:left;" text="bind:totqtyunit"/>
  71. <Cell col="9" style="align:left;" text="bind:mthdcd"/>
  72. <Cell col="10" style="align:left top;padding:2 2 0 2;" text="bind:mthdnm" wordwrap="char"/>
  73. <Cell col="11" text="bind:aftyn"/>
  74. </Band>
  75. </Format>
  76. </Formats>
  77. </Grid>
  78. <Static id="caption27" class="tit_2" position="absolute 225 62 310 82" text="원외처방" anchor="default" positiontype="position"/>
  79. <Shape id="line10" class="line_1" position="absolute 225 79 1254 82" anchor="top right" linetype="horizontal" positiontype="position"/>
  80. <Shape id="line11" class="line_1" position="absolute 0 79 215 82" anchor="default" linetype="horizontal" positiontype="position"/>
  81. <Static id="caption28" class="tit_2" position="absolute 0 62 85 82" anchor="default" text="투약번호" positiontype="position"/>
  82. <Grid id="grd_aftlist" position="absolute 0 514 1254 757" anchor="all" onclick="grd_aftlist_onclick" binddataset="ds_grid_grd_aftlist" autoenter="select" cellsizingtype="col" oncellclick="group3_grd_aftlist_oncellclick" taborder="14" positiontype="position">
  83. <Formats>
  84. <Format id="default">
  85. <Columns>
  86. <Column size="25" band="left"/>
  87. <Column size="100"/>
  88. <Column size="128"/>
  89. <Column size="100"/>
  90. <Column size="100"/>
  91. <Column size="40"/>
  92. <Column size="37"/>
  93. <Column size="37"/>
  94. <Column size="40"/>
  95. <Column size="37"/>
  96. <Column size="69"/>
  97. <Column size="159"/>
  98. <Column size="153"/>
  99. <Column size="255"/>
  100. <Column size="100"/>
  101. <Column size="100"/>
  102. <Column size="100"/>
  103. <Column size="80"/>
  104. <Column size="100"/>
  105. <Column size="100"/>
  106. </Columns>
  107. <Rows>
  108. <Row size="24" band="head"/>
  109. <Row size="24"/>
  110. </Rows>
  111. <Band id="head">
  112. <Cell/>
  113. <Cell col="1" text="원처방코드"/>
  114. <Cell col="2" text="원처방약품명"/>
  115. <Cell col="3" text="EDI코드"/>
  116. <Cell col="4" text="약품명"/>
  117. <Cell col="5" text="용량"/>
  118. <Cell col="6" text="단위"/>
  119. <Cell col="7" text="횟수"/>
  120. <Cell col="8" text="일수"/>
  121. <Cell col="9" text="총량"/>
  122. <Cell col="10" text="용법코드"/>
  123. <Cell col="11" text="대체사유"/>
  124. <Cell col="12" displaytype="normal" text="대체사유구분"/>
  125. <Cell col="13" text="대체상세사유"/>
  126. <Cell col="14" text="약국명"/>
  127. <Cell col="15" text="약국연락처"/>
  128. <Cell col="16" text="제약회사"/>
  129. <Cell col="17" text="담당자"/>
  130. <Cell col="18" text="입력일자"/>
  131. <Cell col="19" text="수정일자"/>
  132. </Band>
  133. <Band id="body">
  134. <Cell celltype="head"/>
  135. <Cell col="1" style="align:left;" text="bind:prcpcd"/>
  136. <Cell col="2" style="align:left;" text="bind:prcpnm"/>
  137. <Cell col="3" text="bind:edicd"/>
  138. <Cell col="4" style="align:left;" text="bind:altdrugnm"/>
  139. <Cell col="5" style="align:right;" text="bind:drugqty"/>
  140. <Cell col="6" style="align:right;" text="bind:ordunit"/>
  141. <Cell col="7" style="align:right;" text="bind:drugtims"/>
  142. <Cell col="8" style="align:right;" text="bind:drugdays"/>
  143. <Cell col="9" style="align:right;" text="bind:totdrugqty"/>
  144. <Cell col="10" style="align:left;" text="bind:drugmthd"/>
  145. <Cell col="11" displaytype="combo" edittype="none" style="align:left;" text="bind:altresncls" combodataset="ds_init_D_C004" combocodecol="cdid" combodatacol="cdnm"/>
  146. <Cell col="12" displaytype="combo" text="bind:altresnflag" combodataset="ds_init_altresnflaginfo" combocodecol="cdid" combodatacol="cdnm"/>
  147. <Cell col="13" style="align:left top;" text="bind:altresn" wordwrap="both"/>
  148. <Cell col="14" style="align:left;" text="bind:pharmnm"/>
  149. <Cell col="15" style="align:left;" text="bind:pharmtel"/>
  150. <Cell col="16" style="align:left;" text="bind:prodcmpynm"/>
  151. <Cell col="17" text="bind:usernm"/>
  152. <Cell col="18" text="bind:fstrgstdt" mask="@@@@-@@-@@"/>
  153. <Cell col="19" text="bind:lastupdtdt" mask="@@@@-@@-@@"/>
  154. </Band>
  155. </Format>
  156. </Formats>
  157. </Grid>
  158. <Edit id="edt_ordunit" enable="false" position="absolute 376 430 429 450" anchor="left top" imemode="hangul" taborder="15" tabstop="false" positiontype="position"/>
  159. <Edit id="edt_drugmthd" enable="false" position="absolute 89 455 189 475" anchor="left top" imemode="hangul" taborder="16" tabstop="false" positiontype="position"/>
  160. <Static id="caption29" class="cell_1" position="absolute 2 478 86 502" style="align:center middle;" anchor="left top" text="용법" align="align:center middle;" positiontype="position"/>
  161. <Edit id="edt_drugmthdnm" enable="false" position="absolute 89 480 323 502" anchor="left top" imemode="hangul" taborder="17" tabstop="false" positiontype="position"/>
  162. <Shape id="line4" class="line_1" position="absolute 228 404 1201 404" anchor="top right" linetype="horizontal" positiontype="position"/>
  163. <Shape id="line5" class="line_2" position="absolute 228 456 1201 456" anchor="top right" linetype="horizontal" positiontype="position"/>
  164. <Shape id="line8" class="line_3" position="absolute 0 510 1254 513" anchor="top right" linetype="horizontal" positiontype="position"/>
  165. <Edit id="edt_prodcmpynm" class="input_default" taborder="1" position="absolute 1077 405 1254 425" anchor="left top right" imemode="hangul" lengthunit="utf8" maxlength="100" positiontype="position"/>
  166. <Static id="caption31" class="cell_1" position="absolute 980 403 1072 427" style="align:center middle;" anchor="left top" text="제약회사" align="align:center middle;" positiontype="position"/>
  167. <Edit id="edt_altdrugnm" class="input_default" taborder="0" position="absolute 632 405 976 425" anchor="left top" imemode="hangul" lengthunit="utf8" maxlength="200" positiontype="position"/>
  168. <Static id="caption32" class="cell_1" position="absolute 326 478 629 502" style="align:center middle;" anchor="left top" text="대체상세사유 (※30자 이하로만 입력하여 주세요.)" align="align:center middle;" wordwrap="none" positiontype="position"/>
  169. <Static id="caption33" class="cell_1" position="absolute 543 403 629 427" style="align:center middle;" anchor="left top" text="대체약품명" align="align:center middle;" positiontype="position"/>
  170. <Static id="caption34" class="cell_1" position="absolute 543 428 629 452" style="align:center middle;" anchor="left top" text="약국명" align="align:center middle;" positiontype="position"/>
  171. <Static id="caption35" class="cell_1" position="absolute 980 428 1072 452" style="align:center middle;" anchor="left top" text="약국연락처" align="align:center middle;" positiontype="position"/>
  172. <Edit id="edt_pharmnm" class="input_default" taborder="2" position="absolute 632 430 976 450" anchor="left top" imemode="hangul" lengthunit="utf8" maxlength="100" positiontype="position"/>
  173. <Edit id="edt_pharmtel" class="input_default" taborder="3" position="absolute 1077 430 1254 450" anchor="left top right" imemode="hangul" maxlength="20" lengthunit="utf8" inputtype="number" positiontype="position"/>
  174. <Static id="caption38" class="cell_1" position="absolute 543 453 629 477" style="align:center middle;" anchor="left top" text="대체사유" align="align:center middle;" positiontype="position"/>
  175. <Div id="group5" taborder="19" style="align:center top;" class="div_SA" position="absolute 0 0 521 59" anchor="default">
  176. <Layouts>
  177. <Layout>
  178. <Static id="caption2" text="처방일자" class="search_name" position="absolute 272 10 346 30" anchor="default" positiontype="position"/>
  179. <Calendar id="cal_prcpdd1" taborder="0" class="input_essential" position="absolute 346 10 448 30" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true" autoskip="true" onchanged="Calendar_onchanged" positiontype="position"/>
  180. <MaskEdit id="edt_srchdrugno" taborder="3" mask="99999" class="input_search" position="absolute 346 33 448 53" anchor="default" imemode="hangul" maxlength="5" autoselect="true" onkeyup="group3_group5_edt_srchdrugno_onkeyup" positiontype="position"/>
  181. <Static id="caption4" text="투약번호" class="search_name" position="absolute 273 34 347 54" anchor="default" positiontype="position"/>
  182. <Button id="btn_sea" taborder="5" text="조회" class="btn1" position="absolute 457 20 513 40" anchor="top right" onclick="group3_group5_btn_sea_onclick" positiontype="position"/>
  183. <Static id="caption13" text="등록번호 :" class="search_name" position="absolute 7 35 85 52" anchor="default"/>
  184. <Edit id="ipt_pid" taborder="6" position="absolute 93 33 173 52" anchor="default" onkeydown="group3_group5_ipt_pid_onkeydown"/>
  185. <Button id="btn_ptbs_search" taborder="7" onclick="group2_btn_ptbs_search_onclick" class="icon_search" position="absolute 176 35 192 51" anchor="default"/>
  186. <Edit id="ipt_srchhngnm" taborder="8" readonly="true" position="absolute 195 33 259 52" anchor="default"/>
  187. <CheckBox id="chk_srchpid" taborder="9" text="등록번호만으로 조회" position="absolute 16 10 167 27" anchor="default" truevalue="Y" value="Y"/>
  188. </Layout>
  189. </Layouts>
  190. </Div>
  191. <Static id="caption20" text="대체처방" class="tit_2" position="absolute 0 384 95 404" anchor="left top right" positiontype="position"/>
  192. <Grid id="grd_drugnolist" position="absolute 0 83 215 376" onclick="grd_drugnolist_onclick" binddataset="ds_grid_grd_drugnolist" autoenter="select" cellsizingtype="both" taborder="18" oncellclick="group3_grd_drugnolist_oncellclick" anchor="default" positiontype="position" extendsizetype="row">
  193. <Formats>
  194. <Format id="default">
  195. <Columns>
  196. <Column size="25" band="left"/>
  197. <Column size="0"/>
  198. <Column size="80"/>
  199. <Column size="80"/>
  200. <Column size="130"/>
  201. </Columns>
  202. <Rows>
  203. <Row size="24" band="head"/>
  204. <Row size="24"/>
  205. </Rows>
  206. <Band id="head">
  207. <Cell/>
  208. <Cell col="1" text="등록번호"/>
  209. <Cell col="2" text="처방일자"/>
  210. <Cell col="3" text="투약번호"/>
  211. <Cell col="4" edittype="none" text="처방변경사유"/>
  212. </Band>
  213. <Band id="body">
  214. <Cell celltype="head" text="expr:currow+1"/>
  215. <Cell col="1" style="align:left;" text="bind:pid"/>
  216. <Cell col="2" displaytype="date" style="align:left;" text="bind:drugdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  217. <Cell col="3" style="align:left;" text="bind:drugno"/>
  218. <Cell col="4" displaytype="combo" edittype="none" style="align:left;" text="bind:altresncls" combodataset="ds_init_D_C004" combocodecol="cdid" combodatacol="cdnm"/>
  219. </Band>
  220. </Format>
  221. </Formats>
  222. </Grid>
  223. <MaskEdit id="mae_drugqty" taborder="20" mask="#,###" enable="false" position="absolute 278 430 323 450" tabstop="false" anchor="left top"/>
  224. <MaskEdit id="mae_totdrugqty" taborder="21" mask="#,###" enable="false" position="absolute 487 430 540 450" tabstop="false" anchor="left top"/>
  225. <MaskEdit id="mae_drugtims" taborder="22" mask="#,###" enable="false" position="absolute 278 455 323 475" tabstop="false" anchor="left top"/>
  226. <MaskEdit id="mae_drugdays" taborder="23" mask="#,###" enable="false" position="absolute 376 455 429 475" tabstop="false" anchor="left top"/>
  227. <Combo id="cmb_altresncls" taborder="4" class="combo_default" position="absolute 632 455 976 475" anchor="left top right" codecolumn="codecolumn" datacolumn="datacolumn" autoselect="true" onkeydown="Combo_onkeydown">
  228. <Dataset id="innerdataset">
  229. <ColumnInfo>
  230. <Column id="codecolumn" size="256"/>
  231. <Column id="datacolumn" size="256"/>
  232. </ColumnInfo>
  233. <Rows>
  234. <Row>
  235. <Col id="codecolumn">1</Col>
  236. <Col id="datacolumn">대체</Col>
  237. </Row>
  238. <Row>
  239. <Col id="codecolumn">2</Col>
  240. <Col id="datacolumn">변경</Col>
  241. </Row>
  242. </Rows>
  243. </Dataset>
  244. </Combo>
  245. <Static id="Static00" position="absolute 526 0 1254 59" class="sta_DA_box" anchor="default"/>
  246. <Static id="Static01" text="등록번호" position="absolute 530 6 597 29" class="cell_1" anchor="default"/>
  247. <Edit id="opt_pid" taborder="24" position="absolute 600 8 735 27" anchor="default" class="output" readonly="true"/>
  248. <Static id="Static03" text="수납일자" class="cell_1" position="absolute 530 32 597 55" anchor="default"/>
  249. <Edit id="opt_drugdd" taborder="25" position="absolute 600 34 735 53" readonly="true" anchor="default" class="output"/>
  250. <Static id="Static04" text="투약번호" class="cell_1" position="absolute 746 32 813 55" anchor="default"/>
  251. <Static id="Static05" text="환자명" class="cell_1" position="absolute 746 6 813 29" anchor="default"/>
  252. <Edit id="opt_drugno" taborder="26" position="absolute 816 34 951 53" readonly="true" anchor="default" class="output" password="false"/>
  253. <Edit id="opt_hngnm" taborder="27" position="absolute 816 8 951 27" readonly="true" anchor="default" class="output" password="false"/>
  254. <Static id="Static06" text="진료의" class="cell_1" position="absolute 962 32 1029 55" anchor="default"/>
  255. <Static id="Static07" text="진료과" class="cell_1" position="absolute 962 6 1029 29" anchor="default"/>
  256. <Edit id="opt_orddrnm" taborder="28" position="absolute 1032 34 1167 53" readonly="true" anchor="default" class="output" password="false"/>
  257. <Edit id="opt_orddeptnm" taborder="29" position="absolute 1032 8 1167 27" readonly="true" anchor="default" class="output" password="false"/>
  258. <Static id="caption00" text="대체사유구분" class="cell_1" position="absolute 980 454 1072 478" anchor="left top" style="align:center middle;"/>
  259. <Combo id="combo_altresnflag" taborder="30" position="absolute 1077 454 1253 475" class="combo_default" codecolumn="codecolumn" datacolumn="datacolumn" index="-1" anchor="default">
  260. <Dataset id="innerdataset">
  261. <ColumnInfo>
  262. <Column id="codecolumn" size="256"/>
  263. <Column id="datacolumn" size="256"/>
  264. </ColumnInfo>
  265. <Rows>
  266. <Row>
  267. <Col id="codecolumn">01</Col>
  268. <Col id="datacolumn">재고부족</Col>
  269. </Row>
  270. <Row>
  271. <Col id="codecolumn">02</Col>
  272. <Col id="datacolumn">동일성분대체</Col>
  273. </Row>
  274. <Row>
  275. <Col id="codecolumn">99</Col>
  276. <Col id="datacolumn">기타</Col>
  277. </Row>
  278. </Rows>
  279. </Dataset>
  280. </Combo>
  281. <Shape id="line00" class="line_1" position="absolute 225 80 1254 83" anchor="top right"/>
  282. <Shape id="line01" class="line_1" position="absolute 0 80 215 83"/>
  283. <Shape id="line02" class="line_1" position="absolute 225 81 1254 84" anchor="top right"/>
  284. <Shape id="line03" class="line_1" position="absolute 0 81 215 84"/>
  285. <Shape id="line06" class="line_3" position="absolute 0 511 1254 514" anchor="top right"/>
  286. <Shape id="line09" class="line_3" position="absolute 0 512 1254 515" anchor="top right"/>
  287. <TextArea id="tar_altresn" taborder="6" position="absolute 632 480 1253 502" anchor="left top right" imemode="hangul" maxlength="120" onmouseenter="group3_tar_altresn_onmouseenter" onmouseleave="group3_tar_altresn_onmouseleave" lengthunit="utf8" scrollbars="autovert" wordwrap="word" positiontype="position"/>
  288. </Layout>
  289. </Layouts>
  290. </Div>
  291. <Static id="caption19" text="원외처방 사후관리(대체조제 정보)" class="tit_1" position="absolute 0 0 290 25"/>
  292. </Layout>
  293. </Layouts>
  294. <Objects>
  295. <Dataset id="ds_grid_grd_druglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  296. <ColumnInfo>
  297. <Column id="prcpcd" type="STRING"/>
  298. <Column id="prcpnm" type="STRING"/>
  299. <Column id="prcpqty" type="STRING"/>
  300. <Column id="prcpvolunit" type="STRING"/>
  301. <Column id="prcptims" type="STRING"/>
  302. <Column id="prcpdayno" type="STRING"/>
  303. <Column id="totqty" type="STRING"/>
  304. <Column id="totqtyunit" type="STRING"/>
  305. <Column id="mthdcd" type="STRING"/>
  306. <Column id="mthdnm" type="STRING"/>
  307. <Column id="aftyn" type="STRING"/>
  308. </ColumnInfo>
  309. </Dataset>
  310. <Dataset id="ds_grid_grd_aftlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  311. <ColumnInfo>
  312. <Column id="prcpcd" type="STRING"/>
  313. <Column id="prcpnm" type="STRING"/>
  314. <Column id="edicd" type="STRING"/>
  315. <Column id="altdrugnm" type="STRING"/>
  316. <Column id="drugqty" type="STRING"/>
  317. <Column id="ordunit" type="STRING"/>
  318. <Column id="drugtims" type="STRING"/>
  319. <Column id="drugdays" type="STRING"/>
  320. <Column id="totdrugqty" type="STRING"/>
  321. <Column id="drugmthd" type="STRING"/>
  322. <Column id="altresncls" type="STRING"/>
  323. <Column id="altresnflag" type="STRING"/>
  324. <Column id="altresn" type="STRING"/>
  325. <Column id="pharmnm" type="STRING"/>
  326. <Column id="pharmtel" type="STRING"/>
  327. <Column id="prodcmpynm" type="STRING"/>
  328. <Column id="usernm" type="STRING"/>
  329. <Column id="fstrgstdt" type="STRING"/>
  330. <Column id="lastupdtdt" type="STRING"/>
  331. </ColumnInfo>
  332. </Dataset>
  333. <Dataset id="ds_grid_grd_drugnolist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  334. <ColumnInfo>
  335. <Column id="pid" type="STRING"/>
  336. <Column id="drugdd" type="STRING"/>
  337. <Column id="drugno" type="STRING"/>
  338. <Column id="altresncls" type="STRING"/>
  339. </ColumnInfo>
  340. </Dataset>
  341. <Dataset id="ds_init_altresnclsinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  342. <ColumnInfo>
  343. <Column id="cdid" type="STRING" size="256"/>
  344. <Column id="cdnm" type="STRING" size="256"/>
  345. </ColumnInfo>
  346. </Dataset>
  347. <Dataset id="ds_init_altresnflaginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  348. <ColumnInfo>
  349. <Column id="cdid" type="STRING" size="256"/>
  350. <Column id="cdnm" type="STRING" size="256"/>
  351. </ColumnInfo>
  352. </Dataset>
  353. <Dataset id="ds_init_D_C004" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  354. <ColumnInfo>
  355. <Column id="cdnm" type="STRING" size="255"/>
  356. <Column id="temp4" type="STRING" size="255"/>
  357. <Column id="temp5" type="STRING" size="255"/>
  358. <Column id="cdgrupid" type="STRING" size="255"/>
  359. <Column id="cmt" type="STRING" size="255"/>
  360. <Column id="lastupdtrid" type="STRING" size="255"/>
  361. <Column id="fstrgstdt" type="STRING" size="255"/>
  362. <Column id="fstrgstrid" type="STRING" size="255"/>
  363. <Column id="lastupdtdt" type="STRING" size="255"/>
  364. <Column id="cdid" type="STRING" size="255"/>
  365. <Column id="temp1" type="STRING" size="255"/>
  366. <Column id="temp2" type="STRING" size="255"/>
  367. <Column id="bizflag" type="STRING" size="255"/>
  368. <Column id="temp3" type="STRING" size="255"/>
  369. </ColumnInfo>
  370. </Dataset>
  371. <Dataset id="ds_init_D_C005" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  372. <ColumnInfo>
  373. <Column id="cdnm" type="STRING" size="255"/>
  374. <Column id="temp4" type="STRING" size="255"/>
  375. <Column id="temp5" type="STRING" size="255"/>
  376. <Column id="cdgrupid" type="STRING" size="255"/>
  377. <Column id="cmt" type="STRING" size="255"/>
  378. <Column id="lastupdtrid" type="STRING" size="255"/>
  379. <Column id="fstrgstdt" type="STRING" size="255"/>
  380. <Column id="fstrgstrid" type="STRING" size="255"/>
  381. <Column id="lastupdtdt" type="STRING" size="255"/>
  382. <Column id="cdid" type="STRING" size="255"/>
  383. <Column id="temp1" type="STRING" size="255"/>
  384. <Column id="temp2" type="STRING" size="255"/>
  385. <Column id="bizflag" type="STRING" size="255"/>
  386. <Column id="temp3" type="STRING" size="255"/>
  387. </ColumnInfo>
  388. </Dataset>
  389. <Dataset id="ds_chkrpl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  390. <ColumnInfo>
  391. <Column id="label" type="STRING" size="256"/>
  392. <Column id="value" type="STRING" size="256"/>
  393. </ColumnInfo>
  394. <Rows>
  395. <Row>
  396. <Col id="label">전체</Col>
  397. <Col id="value">A</Col>
  398. </Row>
  399. <Row>
  400. <Col id="label">Y</Col>
  401. <Col id="value">Y</Col>
  402. </Row>
  403. <Row>
  404. <Col id="label">N</Col>
  405. <Col id="value">N</Col>
  406. </Row>
  407. </Rows>
  408. </Dataset>
  409. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  410. <ColumnInfo>
  411. <Column id="srchdrugdd" type="STRING" size="256"/>
  412. <Column id="srchprcpdd1" type="STRING" size="256"/>
  413. <Column id="srchprcpdd2" type="STRING" size="256"/>
  414. <Column id="srchdrugno" type="STRING" size="256"/>
  415. <Column id="srchpid" type="STRING" size="256"/>
  416. <Column id="chkrpl" type="STRING" size="256"/>
  417. <Column id="srchpidonly" type="STRING" size="256"/>
  418. <Column id="srchhngnm" type="STRING" size="256"/>
  419. </ColumnInfo>
  420. <Rows>
  421. <Row>
  422. <Col id="srchpidonly">Y</Col>
  423. </Row>
  424. </Rows>
  425. </Dataset>
  426. <Dataset id="ds_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  427. <ColumnInfo>
  428. <Column id="pid" type="STRING" size="255"/>
  429. <Column id="orddd" type="STRING" size="255"/>
  430. <Column id="cretno" type="BIGDECIMAL" size="255"/>
  431. <Column id="acptseqno" type="BIGDECIMAL" size="255"/>
  432. <Column id="instcd" type="STRING" size="255"/>
  433. <Column id="orgorddd" type="STRING" size="255"/>
  434. <Column id="orgcretno" type="BIGDECIMAL" size="255"/>
  435. <Column id="calcbaseflag" type="STRING" size="255"/>
  436. <Column id="calcyn" type="STRING" size="255"/>
  437. <Column id="ordtm" type="STRING" size="255"/>
  438. <Column id="centcd" type="STRING" size="255"/>
  439. <Column id="centernm" type="STRING" size="255"/>
  440. <Column id="orddeptcd" type="STRING" size="255"/>
  441. <Column id="subdeptcd" type="STRING" size="255"/>
  442. <Column id="orddrid" type="STRING" size="255"/>
  443. <Column id="mskind" type="STRING" size="255"/>
  444. <Column id="insukind" type="STRING" size="255"/>
  445. <Column id="suppkind" type="STRING" size="255"/>
  446. <Column id="specordyn" type="STRING" size="255"/>
  447. <Column id="fsexamflag" type="STRING" size="255"/>
  448. <Column id="ordtype" type="STRING" size="255"/>
  449. <Column id="medamtestmyn" type="STRING" size="255"/>
  450. <Column id="rsrvflag" type="STRING" size="255"/>
  451. <Column id="hosoutexptresncd" type="STRING" size="255"/>
  452. <Column id="clincstdyacptflag" type="STRING" size="255"/>
  453. <Column id="clincstdyno" type="STRING" size="255"/>
  454. <Column id="nursacptyn" type="STRING" size="255"/>
  455. <Column id="nursacptdt" type="STRING" size="255"/>
  456. <Column id="dracptyn" type="STRING" size="255"/>
  457. <Column id="dracptdt" type="STRING" size="255"/>
  458. <Column id="prcpgenryn" type="STRING" size="255"/>
  459. <Column id="prcpnotoccrresn" type="STRING" size="255"/>
  460. <Column id="estmspclappyn" type="STRING" size="255"/>
  461. <Column id="elbulbodstat" type="STRING" size="255"/>
  462. <Column id="elbulbodstatdt" type="STRING" size="255"/>
  463. <Column id="histstat" type="STRING" size="255"/>
  464. <Column id="etcordflag" type="STRING" size="255"/>
  465. <Column id="hngnm" type="STRING" size="255"/>
  466. <Column id="sex" type="STRING" size="255"/>
  467. <Column id="rrgstno1" type="STRING" size="255"/>
  468. <Column id="rrgstno2" type="STRING" size="255"/>
  469. <Column id="nonprgresncd" type="STRING" size="255"/>
  470. <Column id="nonprgresncnts" type="STRING" size="255"/>
  471. <Column id="age" type="STRING" size="255"/>
  472. <Column id="ioflag" type="STRING" size="255"/>
  473. <Column id="mainjudgid" type="STRING" size="255"/>
  474. <Column id="prcplockid" type="STRING" size="255"/>
  475. <Column id="tranindd" type="STRING" size="255"/>
  476. <Column id="orddrnm" type="STRING" size="255"/>
  477. <Column id="orddeptnm" type="STRING" size="255"/>
  478. <Column id="rareobstflag" type="STRING" size="255"/>
  479. <Column id="tranflag" type="STRING" size="255"/>
  480. <Column id="autoformcd" type="STRING" size="255"/>
  481. <Column id="prcptdayaftrcptyn" type="STRING" size="255"/>
  482. <Column id="rcptvipresncd" type="STRING" size="255"/>
  483. <Column id="rcptvipetcresn" type="STRING" size="255"/>
  484. <Column id="coopteamcd" type="STRING" size="255"/>
  485. <Column id="coopteamnm" type="STRING" size="255"/>
  486. <Column id="scndyn" type="STRING" size="255"/>
  487. <Column id="specordtypenm" type="STRING" size="255"/>
  488. <Column id="specordtype" type="STRING" size="255"/>
  489. <Column id="hometel" type="STRING" size="255"/>
  490. <Column id="mpphontel" type="STRING" size="255"/>
  491. <Column id="waitcnt" type="BIGDECIMAL" size="255"/>
  492. <Column id="editcnt" type="BIGDECIMAL" size="255"/>
  493. <Column id="endcnt" type="BIGDECIMAL" size="255"/>
  494. <Column id="bloodtrans" type="STRING" size="255"/>
  495. <Column id="bloodtransetc" type="STRING" size="255"/>
  496. <Column id="drgflag" type="STRING" size="255"/>
  497. <Column id="actlinsuyn" type="STRING" size="255"/>
  498. <Column id="multiord" type="STRING" size="255"/>
  499. <Column id="memoyn" type="STRING" size="255"/>
  500. <Column id="bmtflag" type="STRING" size="255"/>
  501. <Column id="replyn" type="STRING" size="255"/>
  502. <Column id="repltypenm" type="STRING" size="255"/>
  503. <Column id="bfjudgvalue" type="STRING" size="255"/>
  504. </ColumnInfo>
  505. </Dataset>
  506. <Dataset id="ds_drugListCond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  507. <ColumnInfo>
  508. <Column id="srchdrugdd" type="STRING" size="256"/>
  509. <Column id="srchdrugno" type="STRING" size="256"/>
  510. </ColumnInfo>
  511. </Dataset>
  512. <Dataset id="ds_saveData" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  513. <ColumnInfo>
  514. <Column id="drugdd" type="STRING" size="256"/>
  515. <Column id="drugno" type="INT" size="256"/>
  516. <Column id="drugseqno" type="INT" size="256"/>
  517. <Column id="instcd" type="STRING" size="256"/>
  518. <Column id="prcpcd" type="STRING" size="256"/>
  519. <Column id="altedicd" type="STRING" size="256"/>
  520. <Column id="altdrugnm" type="STRING" size="256"/>
  521. <Column id="prcpedicd" type="STRING" size="256"/>
  522. <Column id="pid" type="STRING" size="256"/>
  523. <Column id="orddd" type="STRING" size="256"/>
  524. <Column id="orddeptcd" type="STRING" size="256"/>
  525. <Column id="orddrid" type="STRING" size="256"/>
  526. <Column id="drugqty" type="STRING" size="256"/>
  527. <Column id="cretno" type="INT" size="256"/>
  528. <Column id="ordunit" type="STRING" size="256"/>
  529. <Column id="drugtims" type="BIGDECIMAL" size="256"/>
  530. <Column id="drugdays" type="BIGDECIMAL" size="256"/>
  531. <Column id="totdrugqty" type="BIGDECIMAL" size="256"/>
  532. <Column id="drugmthd" type="STRING" size="256"/>
  533. <Column id="altresncls" type="STRING" size="256"/>
  534. <Column id="altresnflag" type="STRING" size="256"/>
  535. <Column id="altresn" type="STRING" size="256"/>
  536. <Column id="pharmnm" type="STRING" size="256"/>
  537. <Column id="pharmtel" type="STRING" size="256"/>
  538. <Column id="prodcmpynm" type="STRING" size="256"/>
  539. <Column id="prcpnm" type="STRING" size="256"/>
  540. <Column id="drugmthdnm" type="STRING" size="256"/>
  541. <Column id="m" type="STRING" size="256"/>
  542. </ColumnInfo>
  543. </Dataset>
  544. <Dataset id="ds_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  545. <Dataset id="ds_init_errlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  546. <Dataset id="ds_patdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  547. <ColumnInfo>
  548. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  549. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  550. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과명"/>
  551. <Column id="drugdd" type="STRING" size="256" sumtext="투약일자"/>
  552. <Column id="drugno" type="STRING" size="256" sumtext="투약번호"/>
  553. <Column id="orddrnm" type="STRING" size="256" sumtext="진료의사명"/>
  554. </ColumnInfo>
  555. <Rows>
  556. <Row/>
  557. </Rows>
  558. </Dataset>
  559. </Objects>
  560. <Bind>
  561. <BindItem id="item0" compid="group3.edt_prcpcd" propid="value" datasetid="ds_saveData" columnid="prcpcd"/>
  562. <BindItem id="item2" compid="group3.edt_altedicd" propid="value" datasetid="ds_saveData" columnid="altedicd"/>
  563. <BindItem id="item3" compid="group3.mae_drugqty" propid="value" datasetid="ds_saveData" columnid="drugqty"/>
  564. <BindItem id="item4" compid="group3.edt_ordunit" propid="value" datasetid="ds_saveData" columnid="ordunit"/>
  565. <BindItem id="item1" compid="group3.edt_drugmthd" propid="value" datasetid="ds_saveData" columnid="drugmthd"/>
  566. <BindItem id="item5" compid="group3.mae_drugtims" propid="value" datasetid="ds_saveData" columnid="drugtims"/>
  567. <BindItem id="item6" compid="group3.mae_drugdays" propid="value" datasetid="ds_saveData" columnid="drugdays"/>
  568. <BindItem id="item7" compid="group3.edt_altdrugnm" propid="value" datasetid="ds_saveData" columnid="altdrugnm"/>
  569. <BindItem id="item8" compid="group3.edt_prodcmpynm" propid="value" datasetid="ds_saveData" columnid="prodcmpynm"/>
  570. <BindItem id="item9" compid="group3.edt_pharmnm" propid="value" datasetid="ds_saveData" columnid="pharmnm"/>
  571. <BindItem id="item10" compid="group3.edt_pharmtel" propid="value" datasetid="ds_saveData" columnid="pharmtel"/>
  572. <BindItem id="item11" compid="group3.cmb_altresncls" propid="value" datasetid="ds_saveData" columnid="altresncls"/>
  573. <BindItem id="item13" compid="group3.tar_altresn" propid="value" datasetid="ds_saveData" columnid="altresn"/>
  574. <BindItem id="item14" compid="group3.edt_prcpnm" propid="value" datasetid="ds_saveData" columnid="prcpnm"/>
  575. <BindItem id="item15" compid="group3.edt_drugmthdnm" propid="value" datasetid="ds_saveData" columnid="drugmthdnm"/>
  576. <BindItem id="item16" compid="group3.mae_totdrugqty" propid="value" datasetid="ds_saveData" columnid="totdrugqty"/>
  577. <BindItem id="item17" compid="group3.group5.ipt_pid" propid="value" datasetid="ds_cond" columnid="srchpid"/>
  578. <BindItem id="item18" compid="group3.group5.ipt_srchhngnm" propid="value" datasetid="ds_cond" columnid="srchhngnm"/>
  579. <BindItem id="item12" compid="group3.opt_pid" propid="value" datasetid="ds_patdata" columnid="pid"/>
  580. <BindItem id="item19" compid="group3.opt_hngnm" propid="value" datasetid="ds_patdata" columnid="hngnm"/>
  581. <BindItem id="item20" compid="group3.opt_orddeptnm" propid="value" datasetid="ds_patdata" columnid="orddeptnm"/>
  582. <BindItem id="item21" compid="group3.opt_drugdd" propid="value" datasetid="ds_patdata" columnid="drugdd"/>
  583. <BindItem id="item22" compid="group3.opt_drugno" propid="value" datasetid="ds_patdata" columnid="drugno"/>
  584. <BindItem id="item23" compid="group3.opt_orddrnm" propid="value" datasetid="ds_patdata" columnid="orddrnm"/>
  585. <BindItem id="item24" compid="group3.group5.cal_prcpdd1" propid="value" datasetid="ds_cond" columnid="srchdrugdd"/>
  586. <BindItem id="item25" compid="group3.group5.edt_srchdrugno" propid="value" datasetid="ds_cond" columnid="srchdrugno"/>
  587. <BindItem id="item26" compid="group3.group5.chk_srchpid" propid="value" datasetid="ds_cond" columnid="srchpidonly"/>
  588. </Bind>
  589. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  590. * System Name :
  591. * Job Name :
  592. * File Name : SMADT01000_원외처방사후관리.xfdl
  593. * Creator :
  594. * Make Date :
  595. *
  596. * Description :
  597. *---------------------------------------------------------------------------------------
  598. * Modify Date Modifier Modify Description
  599. *---------------------------------------------------------------------------------------
  600. *
  601. *---------------------------------------------------------------------------------------
  602. ****************************************************************************************/
  603. //=======================================================================================
  604. // xjs Include
  605. //---------------------------------------------------------------------------------------
  606. include "com_commonxp::comm_main.xjs";
  607. var lvnGrdFWid = 215; // 그리드 접은 width
  608. var lvnGrdSWid = 400; // 그리드 펼쳐진 width
  609. var lvnSelRow = 0;
  610. var lvnAreaFoldHei = group3.tar_altresn.position.height;
  611. var lvnAreaSpreadHei = 50;
  612. //=======================================================================================
  613. // Function
  614. //---------------------------------------------------------------------------------------
  615. /****************************************************************************************
  616. * Function : lf_setLoadData
  617. * Description : 최초 로드시 호출
  618. * Argument :
  619. * :
  620. * :
  621. * 예)lf_setLoadData();
  622. * return type :
  623. * Creator :
  624. ****************************************************************************************/
  625. function lf_setLoadData(){
  626. group3.group5.cal_prcpdd1.value = utlf_getCurrentDate();
  627. grdf_setRowTypeIcon(group3.grd_aftlist, 0)
  628. var arrParam = [{dsNm: "ds_init_altresnclsinfo", cdGrpId: "A0033"}
  629. ,{dsNm: "ds_init_altresnflaginfo", cdGrpId: "A0034"}
  630. ]
  631. appf_getCodeList(arrParam);
  632. var pamInfoCvs = sysf_getGlobalVariable("paminfo");
  633. ds_paminfo.clearData();
  634. dsf_setCSVToDs("ds_paminfo",pamInfoCvs);
  635. group3.group5.cal_prcpdd1.setFocus();
  636. if (!utlf_isNull(pamInfoCvs))
  637. {
  638. group3.group5.ipt_pid.value = ds_paminfo.getColumn(0, "pid");
  639. lf_search();
  640. }
  641. var mparam = frmf_getMenuParam();
  642. if (mparam == "E"){
  643. group3.btn_save.enable = false;
  644. group3.btn_del.enable = false;
  645. }
  646. grdf_setToolTipBind(group3.grd_drugnolist); // tooltip 추가
  647. grdf_setToolTipBind(group3.grd_druglist); // tooltip 추가
  648. grdf_setToolTipBind(group3.grd_aftlist); // tooltip 추가
  649. }
  650. /****************************************************************************************
  651. * Components :
  652. * Components ID : button2
  653. * Event : onclick
  654. * Argument : 01.obj : Object Event has occurred
  655. * : 02.e : Event Object
  656. * Description : 등록번호 엔터시 조회
  657. ****************************************************************************************/
  658. function edt_pid_onkeyup(obj:Edit, e:KeyEventInfo)
  659. {
  660. if ( e.keycode == 13 ) {
  661. lf_search();
  662. }
  663. }
  664. // 공통코드 콜백
  665. function cbf_getAllBizCodeList(){
  666. //trace(ds_init_D_C004.saveXML())
  667. }
  668. //=======================================================================================
  669. // Event
  670. //---------------------------------------------------------------------------------------
  671. /****************************************************************************************
  672. * Components :
  673. * Components ID : SMADT01000
  674. * Event : onload
  675. * Argument : 01.obj : Object Event has occurred
  676. * : 02.e : Event Object
  677. * Description :
  678. ****************************************************************************************/
  679. function SMADT01000_onload(obj:Form, e:LoadEventInfo)
  680. {
  681. frmf_initForm(obj); // 화면공통
  682. lf_setLoadData();
  683. }
  684. // 조회버튼
  685. function group3_group5_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  686. {
  687. lf_search();
  688. }
  689. // 조회
  690. function lf_search(){
  691. var sDate = group3.group5.cal_prcpdd1.value;
  692. var success = null;
  693. var srchdrugdd = group3.group5.cal_prcpdd1.value;
  694. var srchdrugno = group3.group5.edt_srchdrugno.value;
  695. var srchpid = group3.group5.ipt_pid.value;
  696. var srchpidonly = group3.group5.chk_srchpid.value ;
  697. // 등록번호로만으로 조회
  698. if (srchpidonly == "Y") {
  699. if (utlf_isNull(srchpid) ) {
  700. sysf_messageBox("등록번호를","C001");
  701. return;
  702. }
  703. } else {
  704. if (utlf_isNull(srchdrugdd) ) {
  705. sysf_messageBox("수납일자를","C001");
  706. return;
  707. }
  708. if (utlf_isNull(srchdrugno) && utlf_isNull(srchpid)) {
  709. sysf_messageBox("투약번호나 등록번호를","C001");
  710. return;
  711. }
  712. }
  713. ds_saveData.clearData();
  714. tranf_submit({
  715. id: "TRADT01001"
  716. , service: "pharmacyprescriptionapp.AfterMngt"
  717. , method: "reqGetDrugNoList"
  718. , inds: "req=ds_cond"
  719. , outds: "ds_grid_grd_drugnolist=drugnolist "
  720. , async: false
  721. , callback: "cbf_callBack"
  722. , alert: false
  723. });
  724. }
  725. function cbf_callBack(strSvcID, nErrorCode, strErrorMag){
  726. // if (nErrorCode != 0)
  727. // {
  728. // //alert(ErrorMsg);
  729. // return;
  730. // }
  731. switch(strSvcID){
  732. case "TRADT01001": // 조회버튼
  733. if ( nErrorCode > -1 ) {
  734. ds_grid_grd_drugnolist.rowposition = 0;
  735. lf_setDruglistCond(ds_grid_grd_drugnolist.rowposition);
  736. var oParam = {};
  737. oParam.id = "TRADT01002";
  738. oParam.service = "pharmacyprescriptionapp.AfterMngt";
  739. oParam.method = "reqGetDrugDetlList";
  740. oParam.inds = "req=ds_drugListCond";
  741. oParam.outds = "ds_grid_grd_druglist=druglist ds_patdata=patdata ds_grid_grd_aftlist=aftlist";
  742. oParam.async = false;
  743. oParam.callback = "cbf_callBack";
  744. tranf_submit(oParam);
  745. }
  746. break;
  747. case "TXADT00101": // 저장
  748. lf_search();
  749. if (ds_cond.getColumn(0, "chkrpl") != "N"){
  750. ds_grid_grd_drugnolist.rowposition = lvnSelRow;
  751. lvnSelRow = 0;
  752. }
  753. break;
  754. case "TXADT00101_D": // 삭제
  755. lf_search();
  756. if (ds_cond.getColumn(0, "chkrpl") == "A"){
  757. ds_grid_grd_drugnolist.rowposition = lvnSelRow;
  758. lvnSelRow = 0;
  759. }
  760. break;
  761. default:
  762. break;
  763. }
  764. }
  765. // 원외처방 파라메터 세팅
  766. function lf_setDruglistCond(row){
  767. ds_drugListCond.clearData();
  768. var nRow = ds_drugListCond.addRow();
  769. ds_drugListCond.setColumn(nRow, "srchdrugdd", ds_grid_grd_drugnolist.getColumn(row,"drugdd"));
  770. ds_drugListCond.setColumn(nRow, "srchdrugno", ds_grid_grd_drugnolist.getColumn(row,"drugno"));
  771. }
  772. // 원외처방 그리드 더블클릭
  773. function group3_grd_druglist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  774. {
  775. if(ds_grid_grd_druglist.getColumn(e.row, "aftyn") == "Y")
  776. {
  777. sysf_messageBox("이미 대체된 자료", "E008");
  778. ds_saveData.clearData();
  779. return;
  780. }
  781. lf_setPharmInfo(ds_grid_grd_druglist, e.row);
  782. }
  783. // 대체처방 edit group 세팅
  784. function lf_setPharmInfo(objDs, nRow){
  785. ds_saveData.clearData();
  786. ds_saveData.addRow();
  787. ds_saveData.setColumn(0, "drugdd", objDs.getColumn(nRow, "drugdd"));
  788. ds_saveData.setColumn(0, "drugno", objDs.getColumn(nRow, "drugno"));
  789. ds_saveData.setColumn(0, "drugseqno", objDs.getColumn(nRow, "drugseqno"));
  790. ds_saveData.setColumn(0, "prcpcd", objDs.getColumn(nRow, "prcpcd"));
  791. ds_saveData.setColumn(0, "prcpnm", objDs.getColumn(nRow, "prcpnm"));
  792. ds_saveData.setColumn(0, "pid", objDs.getColumn(nRow, "pid"));
  793. ds_saveData.setColumn(0, "orddd", objDs.getColumn(nRow, "orddd"));
  794. ds_saveData.setColumn(0, "orddrid", objDs.getColumn(nRow, "orddrid"));
  795. ds_saveData.setColumn(0, "orddeptcd", objDs.getColumn(nRow, "orddeptcd"));
  796. ds_saveData.setColumn(0, "cretno", objDs.getColumn(nRow, "cretno"));
  797. ds_saveData.setColumn(0, "altedicd", objDs.getColumn(nRow, "edicd"));
  798. if (objDs.name == "ds_grid_grd_druglist"){
  799. ds_saveData.setColumn(0, "ordunit", objDs.getColumn(nRow, "prcpvolunit"));
  800. ds_saveData.setColumn(0, "drugtims", objDs.getColumn(nRow, "prcptims"));
  801. ds_saveData.setColumn(0, "drugdays", objDs.getColumn(nRow, "prcpdayno"));
  802. ds_saveData.setColumn(0, "totdrugqty", objDs.getColumn(nRow, "totqty"));
  803. ds_saveData.setColumn(0, "drugmthd", objDs.getColumn(nRow, "mthdcd"));
  804. ds_saveData.setColumn(0, "drugqty", objDs.getColumn(nRow, "prcpqty"));
  805. ds_saveData.setColumn(0, "drugmthdnm", objDs.getColumn(nRow, "mthdnm"));
  806. ds_saveData.setColumn(0, "m", "i");
  807. } else {
  808. ds_saveData.setColumn(0, "instcd", objDs.getColumn(nRow, "instcd"));
  809. ds_saveData.setColumn(0, "altresncls", objDs.getColumn(nRow, "altresncls"));
  810. ds_saveData.setColumn(0, "altresnflag", objDs.getColumn(nRow, "altresnflag"));
  811. ds_saveData.setColumn(0, "altdrugnm", objDs.getColumn(nRow, "altdrugnm"));
  812. ds_saveData.setColumn(0, "prcpedicd", objDs.getColumn(nRow, "prcpedicd"));
  813. ds_saveData.setColumn(0, "altresn", objDs.getColumn(nRow, "altresn"));
  814. ds_saveData.setColumn(0, "pharmnm", objDs.getColumn(nRow, "pharmnm"));
  815. ds_saveData.setColumn(0, "prodcmpynm", objDs.getColumn(nRow, "prodcmpynm"));
  816. ds_saveData.setColumn(0, "drugqty", objDs.getColumn(nRow, "drugqty"));
  817. ds_saveData.setColumn(0, "pharmtel", objDs.getColumn(nRow, "pharmtel"));
  818. // ds_saveData.setColumn(0, "usernm", objDs.getColumn(nRow, "usernm"));
  819. // ds_saveData.setColumn(0, "fstrgstdt", objDs.getColumn(nRow, "fstrgstdt"));
  820. // ds_saveData.setColumn(0, "lastupdtdt", objDs.getColumn(nRow, "lastupdtdt"));
  821. ds_saveData.setColumn(0, "ordunit", objDs.getColumn(nRow, "ordunit"));
  822. ds_saveData.setColumn(0, "drugtims", objDs.getColumn(nRow, "drugtims"));
  823. ds_saveData.setColumn(0, "drugdays", objDs.getColumn(nRow, "drugdays"));
  824. ds_saveData.setColumn(0, "totdrugqty", objDs.getColumn(nRow, "totdrugqty"));
  825. ds_saveData.setColumn(0, "drugmthd", objDs.getColumn(nRow, "drugmthd"));
  826. ds_saveData.setColumn(0, "drugmthdnm", objDs.getColumn(nRow, "drugmthdnm"));
  827. ds_saveData.setColumn(0, "m", "u");
  828. }
  829. }
  830. // 초기화
  831. function group3_button1_onclick(obj:Button, e:ClickEventInfo)
  832. {
  833. ds_saveData.clearData();
  834. }
  835. // 대체처방 클릭
  836. function group3_grd_aftlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  837. {
  838. lf_setPharmInfo(ds_grid_grd_aftlist, e.row);
  839. }
  840. function group3_group5_cmb_chkrpl_onkeydown(obj:Combo, e:KeyEventInfo)
  841. {
  842. if(e.keycode == "40") { //아래쪽 방향키 입력시
  843. obj.dropdown();
  844. }
  845. }
  846. // 저장버튼
  847. function group3_btn_save_onclick(obj:Button, e:ClickEventInfo)
  848. {
  849. if (!lf_isValid()) return;
  850. lvnSelRow = ds_grid_grd_drugnolist.rowposition;
  851. tranf_submit({
  852. id: "TXADT00101"
  853. , service: "pharmacyprescriptionapp.AfterMngt"
  854. , method: "reqExeAftMngt"
  855. , inds: "req=ds_saveData:U"
  856. , outds: "item=ds_item"
  857. , async: false
  858. , callback: "cbf_callBack"
  859. , alert: true
  860. });
  861. }
  862. // 저장 유효성 체크
  863. function lf_isValid(){
  864. if (utlf_isNull(ds_saveData.getColumn(0, "prcpcd")))
  865. {
  866. sysf_messageBox("처리할 처방데이터를", "C002");
  867. return false;
  868. }
  869. // if (utlf_isNull(ds_saveData.getColumn(0, "altdrugnm")))
  870. // {
  871. // sysf_messageBox("대체약품명은", "I003");
  872. // return false;
  873. // }
  874. if (utlf_isNull(ds_saveData.getColumn(0, "altresncls")))
  875. {
  876. sysf_messageBox("처방변경사유는", "I003");
  877. return false;
  878. }
  879. return true;
  880. }
  881. function group3_group5_cmb_chkrpl_onkeyup(obj:Combo, e:KeyEventInfo)
  882. {
  883. if (e.keycode == 13){
  884. lf_search();
  885. }
  886. }
  887. function Combo_onkeydown(obj:Combo, e:KeyEventInfo)
  888. {
  889. if(e.keycode == 40) { //아래쪽 방향키 입력시
  890. obj.dropdown();
  891. }
  892. }
  893. function group3_tar_altresn_onmouseenter(obj:TextArea, e:MouseEventInfo)
  894. {
  895. obj.position.height = lvnAreaSpreadHei;
  896. }
  897. function group3_tar_altresn_onmouseleave(obj:TextArea, e:MouseEventInfo)
  898. {
  899. obj.position.height = lvnAreaFoldHei;
  900. }
  901. // 삭제버튼
  902. function group3_btn_del_onclick(obj:Button, e:ClickEventInfo)
  903. {
  904. if (!lf_isDelValid()) return;
  905. var result = sysf_messageBox( "해당 데이터를 삭제", "S001");
  906. if( result==7 || result == 2 ) return;
  907. lvnSelRow = ds_grid_grd_drugnolist.rowposition;
  908. ds_saveData.setColumn(0, "m", "d");
  909. tranf_submit({
  910. id: "TXADT00101_D"
  911. , service: "pharmacyprescriptionapp.AfterMngt"
  912. , method: "reqExeAftMngt"
  913. , inds: "req=ds_saveData:U"
  914. , outds: "item=ds_item"
  915. , async: false
  916. , callback: "cbf_callBack"
  917. , alert: true
  918. });
  919. // if (fValidateSelData() == false) return;
  920. //
  921. // var result = sysf_messageBox( "해당 데이터를 삭제", "S001");
  922. // if( result==7 || result == 2 ) return;
  923. //
  924. // model.copyNode("/root/send/req/data","/root/main/altdetlinfo");
  925. // model.setValue("/root/send/req/data/m","d");
  926. // var success = submit("TXADT01001");
  927. // if (success) {
  928. // model.copyNode("/root/main/altdetlinfo","/root/init/data");
  929. // grd_drugnolist.dispatch("onclick");
  930. // }
  931. }
  932. function lf_isDelValid(){
  933. if (utlf_isNull(ds_saveData.getColumn(0, "prcpcd")))
  934. {
  935. sysf_messageBox("처리할 처방데이터를", "C002");
  936. return false;
  937. } else return true;
  938. // if (sysf_messageBox("해당 데이터를", "Q001") == 7)
  939. // {
  940. // return false;
  941. // }
  942. }
  943. // 외래처방 출력이력 버튼
  944. function btn_prtHistory_onclick(obj:Button, e:ClickEventInfo)
  945. {
  946. var objArg = new Object();
  947. if ( ds_grid_grd_drugnolist.rowcount > 0 ) {
  948. var nRow = ds_grid_grd_drugnolist.rowposition;
  949. objArg.plgv_pid = ds_grid_grd_drugnolist.getColumn(nRow, "pid");
  950. objArg.plgv_prcpdd = ds_grid_grd_drugnolist.getColumn(nRow, "drugdd");
  951. objArg.plgv_drugno = ds_grid_grd_drugnolist.getColumn(nRow, "drugno");
  952. }
  953. var sRtnValue = frmf_modal("SMADT00300", "SMADT00300", objArg, "", "", "", "", "", "", "", "", "", "M");
  954. }
  955. function group3_group5_edt_srchdrugno_onkeyup(obj:MaskEdit, e:KeyEventInfo)
  956. {
  957. if (e.keycode == 13){
  958. lf_search();
  959. }
  960. }
  961. /****************************************************************************************
  962. * Components :
  963. * Components ID : cal_prcpdd1
  964. * Event : onchanged
  965. * Argument : 01.obj : Object Event has occurred
  966. * : 02.e : Event Object
  967. * Description : 기간변경
  968. ****************************************************************************************/
  969. function Calendar_onchanged(obj:Calendar, e:ChangeEventInfo)
  970. {
  971. obj.updateToDataset();
  972. lf_search();
  973. }
  974. function group3_grd_drugnolist_oncellclick(obj:Grid, e:GridClickEventInfo)
  975. {
  976. lf_setDruglistCond(e.row);
  977. var oParam = {};
  978. oParam.id = "TRADT01002";
  979. oParam.service = "pharmacyprescriptionapp.AfterMngt";
  980. oParam.method = "reqGetDrugDetlList";
  981. oParam.inds = "req=ds_drugListCond";
  982. oParam.outds = "ds_grid_grd_druglist=druglist ds_patdata=patdata ds_grid_grd_aftlist=aftlist";
  983. oParam.async = false;
  984. oParam.callback = "cbf_callBack";
  985. tranf_submit(oParam);
  986. }
  987. function group3_group5_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
  988. {
  989. if(e.keycode== 13) {
  990. obj.updateToDataset();
  991. lf_search();
  992. }
  993. }
  994. function group3_group5_cal_prcpdd1_oneditclick(obj:Calendar, e:EditClickEventInfo)
  995. {
  996. }
  997. function group2_btn_ptbs_search_onclick(obj:Button, e:ClickEventInfo)
  998. {
  999. frmf_modal("SPPMC02500", "SPPMC02500", "", "", 1, 150, 150, "", "", "", "", "", "M");
  1000. ds_cond.setColumn(0,"srchpid" , ds_patinfolist.getColumn(0,"pid"));
  1001. ds_cond.setColumn(0,"srchhngnm", ds_patinfolist.getColumn(0,"hngnm"));
  1002. }
  1003. ]]></Script>
  1004. </Form>
  1005. </FDL>