SMADB10100_약력조회.xfdl 121 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMADB10100" position="absolute 0 0 1192 753" titletext="약력조회" oninit="SMADB10100_oninit" onload="SMADB10100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1188 25" id="group1" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Static text="약력조회" position="absolute 0 0 160 25" id="caption6" class="tit_1" anchor="default"/>
  11. <Button position="absolute 1083 2 1187 24" id="button3" class="btn3" text="통합결과조회" anchor="top right" onclick="group1_button3_onclick"/>
  12. <Button position="absolute 977 2 1081 24" id="button4" class="btn3" text="통합기록조회" anchor="top right" onclick="group1_button4_onclick"/>
  13. </Layout>
  14. </Layouts>
  15. </Div>
  16. <Div position="absolute 0 25 1190 751" id="group3" scrollbars="autoboth" anchor="all">
  17. <Layouts>
  18. <Layout>
  19. <Shape position="absolute 523 24 1187 30" linetype="horizontal" id="line1" class="line_2" anchor="top right"/>
  20. <Shape position="absolute 523 48 1187 54" linetype="horizontal" id="line4" class="line_2" anchor="top right"/>
  21. <Shape position="absolute 523 72 1187 78" linetype="horizontal" id="line6" class="line_2" anchor="top right"/>
  22. <Tab position="absolute 0 106 1188 725" id="switch2" anchor="all" tabindex="1" onchanged="group3_switch2_onchanged">
  23. <Tabpages>
  24. <Tabpage text="약품별" id="case1" style="anchor:default;margin:0 0 0 0;" scrollbars="none">
  25. <Layouts>
  26. <Layout/>
  27. </Layouts>
  28. </Tabpage>
  29. <Tabpage text="적용시간별" id="case2" style="anchor:default;margin:0 0 0 0;">
  30. <Layouts>
  31. <Layout>
  32. <Grid position="absolute 0 3 255 592" id="grd_prcphistory" binddataset="ds_main_prcphistory" anchor="left top bottom" oncellclick="group3_switch2_case2_grd_prcphistory_oncellclick" selecttype="multirow" autosizingtype="row" extendsizetype="row" cellsizingtype="col">
  33. <Formats>
  34. <Format id="default">
  35. <Columns>
  36. <Column size="72"/>
  37. <Column size="36"/>
  38. <Column size="88"/>
  39. <Column size="60"/>
  40. <Column size="78"/>
  41. <Column size="36"/>
  42. <Column size="0"/>
  43. <Column size="0"/>
  44. </Columns>
  45. <Rows>
  46. <Row size="35" band="head"/>
  47. <Row size="24"/>
  48. </Rows>
  49. <Band id="head">
  50. <Cell text="적용일자"/>
  51. <Cell col="1" text="입외"/>
  52. <Cell col="2" text="진료과"/>
  53. <Cell col="3" text="주치의"/>
  54. <Cell col="4" text="입원일"/>
  55. <Cell col="5" text="입실"/>
  56. <Cell col="6" text="caption1"/>
  57. <Cell col="7"/>
  58. </Band>
  59. <Band id="body">
  60. <Cell displaytype="date" text="bind:prcpdd"/>
  61. <Cell col="1" text="bind:ionm"/>
  62. <Cell col="2" displaytype="text" style="padding:2 2 2 2;" text="bind:orddeptnm" wordwrap="char" autosizerow="limitmin"/>
  63. <Cell col="3" text="bind:ordrgstdrnm"/>
  64. <Cell col="4" displaytype="date" text="bind:orddd"/>
  65. <Cell col="5" text="bind:careinyn"/>
  66. <Cell col="6" text="bind:ioflag"/>
  67. <Cell col="7" text="bind:orddeptid"/>
  68. </Band>
  69. </Format>
  70. </Formats>
  71. </Grid>
  72. <Grid position="absolute 255 3 1187 489" id="grd_prcplist" class="datagrid2" scrollbars="autoboth" binddataset="ds_main_prcporderhistory" anchor="all" cellsizingtype="col" oncelldblclick="group3_switch2_case2_grd_prcplist_oncelldblclick" selecttype="multirow" oncellclick="group3_switch2_case2_grd_prcplist_oncellclick" cellsizebandtype="allband" onrbuttondown="group3_switch2_case2_grd_prcplist_onrbuttondown" onrbuttonup="group3_switch2_case2_grd_prcplist_onrbuttonup">
  73. <Formats>
  74. <Format id="default">
  75. <Columns>
  76. <Column size="50" band="left"/>
  77. <Column size="30" band="left"/>
  78. <Column size="48" band="left"/>
  79. <Column size="29" band="left"/>
  80. <Column size="0" band="left"/>
  81. <Column size="95" band="left"/>
  82. <Column size="203"/>
  83. <Column size="55"/>
  84. <Column size="54"/>
  85. <Column size="31"/>
  86. <Column size="47"/>
  87. <Column size="47"/>
  88. <Column size="30"/>
  89. <Column size="23"/>
  90. <Column size="26"/>
  91. <Column size="56"/>
  92. <Column size="110"/>
  93. <Column size="116"/>
  94. <Column size="116"/>
  95. <Column size="25"/>
  96. <Column size="25"/>
  97. <Column size="25"/>
  98. <Column size="25"/>
  99. <Column size="25"/>
  100. <Column size="25"/>
  101. <Column size="25"/>
  102. <Column size="116"/>
  103. <Column size="54"/>
  104. <Column size="100"/>
  105. <Column size="100"/>
  106. <Column size="100"/>
  107. <Column size="100"/>
  108. <Column size="51"/>
  109. <Column size="51"/>
  110. <Column size="54"/>
  111. <Column size="116"/>
  112. <Column size="80"/>
  113. <Column size="30"/>
  114. <Column size="100"/>
  115. <Column size="300"/>
  116. </Columns>
  117. <Rows>
  118. <Row size="35" band="head"/>
  119. <Row size="29"/>
  120. </Rows>
  121. <Band id="head">
  122. <Cell text="약번호"/>
  123. <Cell col="1" text="수납&#13;&#10;여부" wordwrap="char"/>
  124. <Cell col="2" text="구분"/>
  125. <Cell col="3"/>
  126. <Cell col="4" text="처방번호"/>
  127. <Cell col="5" text="약품코드"/>
  128. <Cell col="6" text="약품명"/>
  129. <Cell col="7" text="1일용량"/>
  130. <Cell col="8" text="1회용량"/>
  131. <Cell col="9" text="단위"/>
  132. <Cell col="10" text="1일수량"/>
  133. <Cell col="11" text="1회수량"/>
  134. <Cell col="12" text="단위"/>
  135. <Cell col="13" text="횟&#13;&#10;수" wordwrap="char"/>
  136. <Cell col="14" text="일&#13;&#10;수" wordwrap="char"/>
  137. <Cell col="15" text="용법"/>
  138. <Cell col="16" text="용법명"/>
  139. <Cell col="17" colspan="2" text="처방출력일시" taborder="undefined"/>
  140. <Cell col="19" text="Mix" wordwrap="char"/>
  141. <Cell col="20" text="산제" wordwrap="char"/>
  142. <Cell col="21" text="HOME" wordwrap="char"/>
  143. <Cell col="22" text="Self" wordwrap="char"/>
  144. <Cell col="23" text="응급" wordwrap="char"/>
  145. <Cell col="24" text="선처치" wordwrap="char"/>
  146. <Cell col="25" text="부서처방" wordwrap="char"/>
  147. <Cell col="26" text="집계일시"/>
  148. <Cell col="27" text="급여"/>
  149. <Cell col="28" text="발행부서"/>
  150. <Cell col="29" text="수행부서"/>
  151. <Cell col="30" text="M-Set"/>
  152. <Cell col="31" text="병동"/>
  153. <Cell col="32" text="병실"/>
  154. <Cell col="33" text="처방의"/>
  155. <Cell col="34" text="입력자"/>
  156. <Cell col="35" text="처방입력일시"/>
  157. <Cell col="36" text="예약일"/>
  158. <Cell col="37" text="사용종료" wordwrap="char"/>
  159. <Cell col="38" text="DUR모듈명"/>
  160. <Cell col="39" text="DUR 처방사유"/>
  161. </Band>
  162. <Band id="body">
  163. <Cell displaytype="text" style="align:center middle;background:BIND(tempbgcolor1);background2:BIND(tempbgcolor1);" text="bind:drugno" suppress="1" suppressalign="middle,over" autosizerow="default"/>
  164. <Cell col="1" style="align:left middle;padding:0 3 0 3;background:BIND(tempbgcolor2);background2:BIND(tempbgcolor2);" text="bind:rcptyn" wordwrap="char" suppress="2" suppressalign="middle,over"/>
  165. <Cell col="2" style="align:left middle;padding:0 3 0 3;background:BIND(tempbgcolor3);background2:BIND(tempbgcolor3);" text="bind:hosinhosoutflagnm" wordwrap="char" suppress="3" suppressalign="middle,over"/>
  166. <Cell col="3" style="align:center middle;padding:0 3 0 3;background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:execprcphistcd" wordwrap="char" suppress="4" suppressalign="middle,over"/>
  167. <Cell col="4" style="background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:prcpno" suppress="5"/>
  168. <Cell col="5" style="align:left;padding:2 2 2 2;background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');color:EXPR(prntdt2 !='' ?'#0054FF':'');color2:EXPR(prntdt2 !='' ?'#0054FF':'');" text="bind:prcpcd" wordwrap="char" suppress="6" suppressalign="middle,over"/>
  169. <Cell col="6" style="align:left top;padding:2 2 2 2;background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');color:EXPR(prntdt2 !='' ?'#0054FF':'');color2:EXPR(prntdt2 !='' ?'#0054FF':'');" text="bind:prcpnm" wordwrap="char" suppress="7" suppressalign="middle,over" autosizerow="default"/>
  170. <Cell col="7" style="align:right;background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:prcpvol" suppress="8" suppressalign="middle,over"/>
  171. <Cell col="8" style="align:right;background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:prcpvol2" suppress="9" suppressalign="middle,over"/>
  172. <Cell col="9" style="align:left;padding:0 0 0 5;background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:prcpvolunit" suppress="10" suppressalign="middle,over"/>
  173. <Cell col="10" style="align:right;background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:prcpqty" suppress="11" suppressalign="middle,over"/>
  174. <Cell col="11" style="align:right;background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:prcpqty2" suppress="12" suppressalign="middle,over"/>
  175. <Cell col="12" style="align:left;padding:0 0 0 5;background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:prcpqtyunit" suppress="13" suppressalign="middle,over"/>
  176. <Cell col="13" style="align:right;background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:prcptims" suppress="14" suppressalign="middle,over"/>
  177. <Cell col="14" style="align:right;background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:prcpdayno" suppress="15" suppressalign="middle,over"/>
  178. <Cell col="15" style="align:left;padding:2 2 2 2;background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:mthdcd" wordwrap="char" suppress="16" suppressalign="middle,over" autosizerow="limitmin"/>
  179. <Cell col="16" style="align:left;padding:2 2 2 2;background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:mthdnm" wordwrap="char" suppress="17" suppressalign="middle,over" autosizerow="limitmin"/>
  180. <Cell col="17" style="background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:prntdt" mask="expr:!utlf_isNull(prntdt) &amp;&amp; prntdt!='-'?&quot;@@@@-@@-@@ @@:@@:@@&quot;:&quot;&quot;" suppress="18" suppressalign="middle,over"/>
  181. <Cell col="18" style="background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:prntdt2" mask="expr:!utlf_isNull(prntdt2) &amp;&amp; prntdt2!='-'?&quot;@@@@-@@-@@ @@:@@:@@&quot;:&quot;&quot;" suppress="19" suppressalign="middle,over"/>
  182. <Cell col="19" style="background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:prcpmixno" suppress="20" suppressalign="middle,over"/>
  183. <Cell col="20" displaytype="checkbox" edittype="checkbox" style="background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:powdflag" expr="expr:(powdflag==&quot;Y&quot;||powdflag==1)?1:0" suppress="21" suppressalign="middle,over" enable="true"/>
  184. <Cell col="21" displaytype="checkbox" edittype="checkbox" style="background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:selfprcpflag" expr="expr:(selfprcpflag==&quot;Y&quot;||selfprcpflag==1)?1:0" suppress="22" suppressalign="middle,over" enable="true"/>
  185. <Cell col="22" displaytype="checkbox" edittype="checkbox" style="background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:selfdrugflag" expr="expr:(selfdrugflag==&quot;Y&quot;||selfdrugflag==1)?1:0" suppress="23" suppressalign="middle,over" enable="false"/>
  186. <Cell col="23" displaytype="checkbox" edittype="checkbox" style="background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:erprcpflag" expr="expr:(erprcpflag==&quot;Y&quot;||erprcpflag==1)?1:0" suppress="24" suppressalign="middle,over" enable="true"/>
  187. <Cell col="24" displaytype="checkbox" edittype="checkbox" style="background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:precureprcpflag" expr="expr:(precureprcpflag==&quot;Y&quot;||precureprcpflag==1)?1:0" suppress="25" suppressalign="middle,over" enable="true"/>
  188. <Cell col="25" displaytype="checkbox" edittype="checkbox" style="background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:prcpauthflag" expr="expr:(prcpauthflag==&quot;Y&quot;||prcpauthflag==1)?1:0" suppress="26" suppressalign="middle,over" enable="true"/>
  189. <Cell col="26" style="background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:drugsumdt" mask="expr:!utlf_isNull(drugsumdt) &amp;&amp; drugsumdt!='-'?&quot;@@@@-@@-@@ @@:@@:@@&quot;:&quot;&quot;" suppress="27" suppressalign="middle,over"/>
  190. <Cell col="27" style="background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:payflagcd" suppress="28" suppressalign="middle,over"/>
  191. <Cell col="28" style="align:left;padding:0 0 0 5;background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:issdeptnm" wordwrap="char" suppress="29" suppressalign="middle,over" autosizerow="limitmin"/>
  192. <Cell col="29" style="align:left;padding:0 0 0 5;background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:prcpexecdeptnm" wordwrap="char" suppress="30" suppressalign="middle,over" autosizerow="limitmin"/>
  193. <Cell col="30" style="align:left;padding:0 0 0 5;background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:inclprcpcd" wordwrap="char" suppress="31" suppressalign="middle,over" autosizerow="limitmin"/>
  194. <Cell col="31" style="align:left;padding:0 0 0 5;background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:wardnm" suppress="32" suppressalign="middle,over"/>
  195. <Cell col="32" style="align:left;padding:0 0 0 5;background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:roomcd" suppress="33" suppressalign="middle,over"/>
  196. <Cell col="33" style="background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:ordnm" suppress="34" suppressalign="middle,over"/>
  197. <Cell col="34" style="background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:rgstnm" suppress="35" suppressalign="middle,over"/>
  198. <Cell col="35" style="background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:appdt" mask="expr:!utlf_isNull(appdt) &amp;&amp; appdt!='-'?&quot;@@@@-@@-@@ @@:@@:@@&quot;:&quot;&quot;" suppress="36" suppressalign="middle,over"/>
  199. <Cell col="36" displaytype="expr:!utlf_isNull(actorddd) ? &quot;date&quot; : &quot;normal&quot;" style="background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:actorddd" suppress="37" suppressalign="middle,over"/>
  200. <Cell col="37" style="background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:outdrugnoyn" suppress="38" suppressalign="middle,over"/>
  201. <Cell col="38" style="align:left top;padding:5 0 0 5;background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:resnnm" wordwrap="char" suppress="39" suppressalign="middle,over"/>
  202. <Cell col="39" style="align:left top;padding:5 0 0 5;background:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');background2:EXPR(execprcphistcd=='C' || execprcphistcd=='50'?'#b9e5fb':execprcphistcd=='D'?'#7BE6B7':execprcphistcd=='E'?'#f3e1bf':'');" text="bind:resncnts" wordwrap="char" suppress="40" suppressalign="middle,over"/>
  203. </Band>
  204. </Format>
  205. </Formats>
  206. </Grid>
  207. <Shape position="absolute 257 510 1187 516" linetype="horizontal" id="line10" class="line_1" anchor="left right bottom"/>
  208. <TextArea position="absolute 342 539 1187 592" id="tar_innrmemo" anchor="left right bottom" wordwrap="char"/>
  209. <Edit position="absolute 379 517 456 536" id="ipt_writid" class="input_essential" anchor="left bottom" onkeyup="group3_switch2_case2_ipt_writid_onkeyup" autoselect="true"/>
  210. <Button position="absolute 1086 517 1187 536" id="button9" class="btn2" text="조제시참조사항" anchor="right bottom" onclick="group3_switch2_case2_button9_onclick"/>
  211. <Static text="사번" position="absolute 342 515 377 538" id="caption3" class="cell_1" anchor="left bottom" style="padding:0 0 0 4;"/>
  212. <Edit position="absolute 497 517 574 536" id="ipt_writenm" anchor="left bottom" readonly="true" class="output"/>
  213. <Button position="absolute 997 517 1039 536" id="btn_new" class="btn5" enable="false" text="추가" anchor="right bottom" onclick="group3_switch2_case2_btn_new_onclick"/>
  214. <Static text="약사메모 ( * 모든 약제 부서에서 입력한 약사메모를 포함하며, 이력 선택시 조회 가능 합니다.)" position="absolute 257 494 839 510" id="caption4" class="tit_2" anchor="left bottom"/>
  215. <Static text="작성일시" position="absolute 579 515 659 538" align="align:center middle;" id="caption5" class="cell_1" anchor="left bottom" style="padding:0 0 0 8;"/>
  216. <Static text="이름" position="absolute 460 515 495 538" id="caption7" class="cell_1" anchor="left bottom" style="padding:0 0 0 4;"/>
  217. <MaskEdit position="absolute 661 517 949 536" id="input3" mask="####-##-## ##:##:##" anchor="left right bottom" readonly="true" type="string" displaynulltext=" " style="align:left middle;"/>
  218. <Shape position="absolute 257 589 1182 595" linetype="horizontal" id="line3" class="line_3" anchor="left bottom"/>
  219. <Static text="메모사항" position="absolute 257 515 341 592" id="caption8" class="cell_1" anchor="left bottom"/>
  220. <Button position="absolute 953 517 995 536" id="button13" class="btn2" text="이력" anchor="right bottom" onclick="group3_switch2_case2_button13_onclick"/>
  221. <Button position="absolute 1041 517 1083 536" id="button14" class="btn5" text="저장" anchor="right bottom" onclick="group3_switch2_case2_button14_onclick"/>
  222. <!--<PopupMenu id="pmn_menu" innerdataset="@ds_mouserght" idcolumn="func" captioncolumn="label" levelcolumn="level" onmenuclick="pmn_menu_onmenuclick" position="absolute 500 200 800 222"/>-->
  223. <Div position="absolute 745 170 1179 372" id="group5" visible="false" anchor="default" class="div_SA2">
  224. <Layouts>
  225. <Layout>
  226. <Grid position="absolute 2 2 432 177" id="datagrid2" visible="true" scrollbars="autoboth" binddataset="ds_main_detlprcplist_detlprcpinfo" anchor="default">
  227. <Formats>
  228. <Format id="default">
  229. <Columns>
  230. <Column size="25"/>
  231. <Column size="0"/>
  232. <Column size="0"/>
  233. <Column size="0"/>
  234. <Column size="0"/>
  235. <Column size="0"/>
  236. <Column size="81"/>
  237. <Column size="71"/>
  238. <Column size="0"/>
  239. <Column size="0"/>
  240. <Column size="121"/>
  241. <Column size="0"/>
  242. <Column size="0"/>
  243. <Column size="0"/>
  244. <Column size="0"/>
  245. <Column size="90"/>
  246. </Columns>
  247. <Rows>
  248. <Row size="24" band="head"/>
  249. <Row size="24"/>
  250. </Rows>
  251. <Band id="head">
  252. <Cell/>
  253. <Cell col="1" text="구분"/>
  254. <Cell col="2" text="ioflag"/>
  255. <Cell col="3" text="처방번호"/>
  256. <Cell col="4" text="투약번호"/>
  257. <Cell col="5" text="병실"/>
  258. <Cell col="6" text="실시일자"/>
  259. <Cell col="7" text="실시시간"/>
  260. <Cell col="8" text="집계일시"/>
  261. <Cell col="9" text="집계부서"/>
  262. <Cell col="10" text="시행부서"/>
  263. <Cell col="11" text="발행부서"/>
  264. <Cell col="12" text="마감일시"/>
  265. <Cell col="13" text="출력일시"/>
  266. <Cell col="14" text="execrid"/>
  267. <Cell col="15" text="실시자"/>
  268. </Band>
  269. <Band id="body">
  270. <Cell celltype="head" text="expr:currow+1"/>
  271. <Cell col="1" text="bind:ioflagnm"/>
  272. <Cell col="2" text="bind:ioflag"/>
  273. <Cell col="3" text="bind:prcpno"/>
  274. <Cell col="4" text="bind:drugno"/>
  275. <Cell col="5" text="bind:roomcd"/>
  276. <Cell col="6" displaytype="expr:utlf_isNull(execdd) || execdd == '-' ? 'normal' : 'date'" text="bind:execdd"/>
  277. <Cell col="7" text="bind:exectm" mask="expr:utlf_isNull(exectm) || exectm == '-' ? '' : '##:##'"/>
  278. <Cell col="8" text="bind:drugsumdt" mask="yyyy-mm-dd hh:nn:ss"/>
  279. <Cell col="9" text="bind:sumdeptnm"/>
  280. <Cell col="10" text="bind:execdeptnm"/>
  281. <Cell col="11" text="bind:issdeptcdnm"/>
  282. <Cell col="12" text="bind:sumdt" mask="yyyy-mm-dd hh:nn:ss"/>
  283. <Cell col="13" text="bind:prntdt" mask="yyyy-mm-dd hh:nn:ss"/>
  284. <Cell col="14" text="bind:execrid"/>
  285. <Cell col="15" text="bind:execrnm"/>
  286. </Band>
  287. </Format>
  288. </Formats>
  289. </Grid>
  290. <Button position="absolute 376 178 432 200" id="button10" class="btn4" text="닫기" anchor="default" onclick="group3_switch2_case2_group5_button10_onclick"/>
  291. </Layout>
  292. </Layouts>
  293. </Div>
  294. <Shape id="line00" class="line_1" position="absolute 257 509 1187 515" anchor="left right bottom"/>
  295. <Shape id="line01" class="line_1" position="absolute 257 511 1187 517" anchor="left right bottom"/>
  296. </Layout>
  297. </Layouts>
  298. </Tabpage>
  299. <Tabpage text="회신서" id="case6" style="anchor:default;margin:0 0 0 0;">
  300. <Layouts>
  301. <Layout>
  302. <TextArea position="absolute 525 0 1187 596" id="textarea1" anchor="all"/>
  303. <Grid position="absolute 0 0 525 596" id="grd_reqlist" scrollbars="fixedboth" binddataset="ds_main_reqlist" anchor="left top bottom" oncelldblclick="group3_switch2_case6_grd_reqlist_oncelldblclick">
  304. <Formats>
  305. <Format id="default">
  306. <Columns>
  307. <Column size="45"/>
  308. <Column size="86"/>
  309. <Column size="70"/>
  310. <Column size="0"/>
  311. <Column size="0"/>
  312. <Column size="0"/>
  313. <Column size="99"/>
  314. <Column size="100"/>
  315. <Column size="56"/>
  316. <Column size="100"/>
  317. <Column size="59"/>
  318. <Column size="53"/>
  319. <Column size="0"/>
  320. <Column size="58"/>
  321. <Column size="100"/>
  322. <Column size="86"/>
  323. <Column size="57"/>
  324. <Column size="161"/>
  325. <Column size="54"/>
  326. <Column size="58"/>
  327. <Column size="100"/>
  328. <Column size="119"/>
  329. <Column size="52"/>
  330. <Column size="0"/>
  331. <Column size="0"/>
  332. </Columns>
  333. <Rows>
  334. <Row size="24" band="head"/>
  335. <Row size="24"/>
  336. </Rows>
  337. <Band id="head">
  338. <Cell text="상태"/>
  339. <Cell col="1" text="환자번호"/>
  340. <Cell col="2" text="성명"/>
  341. <Cell col="3" text="cretno"/>
  342. <Cell col="4" text="orddeptcd"/>
  343. <Cell col="5" text="prcpgenrflag"/>
  344. <Cell col="6" text="의뢰일자"/>
  345. <Cell col="7" text="회신일자"/>
  346. <Cell col="8" text="회신약사"/>
  347. <Cell col="9" text="의뢰구분"/>
  348. <Cell col="10" text="병실"/>
  349. <Cell col="11" text="A/S"/>
  350. <Cell col="12" text="rrgstno"/>
  351. <Cell col="13" text="환자상태"/>
  352. <Cell col="14" text="주상병"/>
  353. <Cell col="15" text="내원/입원일"/>
  354. <Cell col="16" text="재원일수"/>
  355. <Cell col="17" text="의뢰약물"/>
  356. <Cell col="18" text="의뢰과"/>
  357. <Cell col="19" text="의뢰자"/>
  358. <Cell col="20" text="의뢰이유"/>
  359. <Cell col="21" text="전달사항"/>
  360. <Cell col="22" text="의뢰번호"/>
  361. <Cell col="23" text="reqdeptcd"/>
  362. <Cell col="24" text="requserid"/>
  363. </Band>
  364. <Band id="body">
  365. <Cell text="bind:stat"/>
  366. <Cell col="1" text="bind:pid"/>
  367. <Cell col="2" text="bind:hngnm"/>
  368. <Cell col="3" text="bind:cretno"/>
  369. <Cell col="4" text="bind:orddeptcd"/>
  370. <Cell col="5" text="bind:prcpgenrflag"/>
  371. <Cell col="6" text="bind:reqdd"/>
  372. <Cell col="7" text="bind:repldd"/>
  373. <Cell col="8" text="bind:replpharmst"/>
  374. <Cell col="9" displaytype="combo" edittype="combo" text="bind:reqdetlflag" combodataset="ds_combo_reqdetlflag" combocodecol="value" combodatacol="label"/>
  375. <Cell col="10" text="bind:wardnm"/>
  376. <Cell col="11" text="bind:agesex"/>
  377. <Cell col="12" text="bind:rrgstno"/>
  378. <Cell col="13" text="bind:patstat"/>
  379. <Cell col="14" text="bind:diagcd"/>
  380. <Cell col="15" text="bind:orddd"/>
  381. <Cell col="16" text="bind:inhospday"/>
  382. <Cell col="17" text="bind:reqdrug"/>
  383. <Cell col="18" text="bind:reqdeptnm"/>
  384. <Cell col="19" text="bind:requsernm"/>
  385. <Cell col="20" text="bind:reqresn"/>
  386. <Cell col="21" text="bind:reqcommnet"/>
  387. <Cell col="22" text="bind:formrecseq"/>
  388. <Cell col="23" text="bind:reqdeptcd"/>
  389. <Cell col="24" text="bind:requserid"/>
  390. </Band>
  391. </Format>
  392. </Formats>
  393. </Grid>
  394. </Layout>
  395. </Layouts>
  396. </Tabpage>
  397. </Tabpages>
  398. </Tab>
  399. <Edit readonly="true" position="absolute 606 30 1187 49" id="output4" anchor="top right" class="output"/>
  400. <Edit readonly="true" position="absolute 764 6 841 25" id="output5" anchor="top right" class="output"/>
  401. <Edit readonly="true" position="absolute 900 6 966 25" id="output9" anchor="top right" class="output"/>
  402. <Static text="주소" position="absolute 523 28 603 51" align="align:center middle;" id="caption11" class="cell_1" anchor="top right"/>
  403. <Static text="키" position="absolute 706 4 761 27" align="align:center middle;" id="caption13" class="cell_1" anchor="top right"/>
  404. <Shape position="absolute 523 -1 1187 5" linetype="horizontal" id="line2" class="line_1" anchor="top right"/>
  405. <Static text="체중" position="absolute 844 4 899 27" align="align:center middle;" id="caption16" class="cell_1" anchor="top right"/>
  406. <Edit readonly="true" position="absolute 606 6 645 25" id="output1" anchor="top right" class="output"/>
  407. <Static text="성별/나이" position="absolute 523 4 603 27" align="align:center middle;" id="caption9" class="cell_1" anchor="top right"/>
  408. <Static text="연락처" position="absolute 523 52 603 75" align="align:center middle;" id="caption18" class="cell_1" anchor="top right"/>
  409. <Edit readonly="true" position="absolute 606 54 840 73" id="output3" anchor="top right" class="output"/>
  410. <Div position="absolute 0 0 520 99" align="align:center top;" id="group6" class="div_SA" anchor="left top right">
  411. <Layouts>
  412. <Layout>
  413. <Static text="적 용 일 시 :" position="absolute 16 31 102 48" id="caption24" class="search_name" anchor="default"/>
  414. <Shape position="absolute 437 10 443 90" linetype="vertical" id="line5" anchor="top right"/>
  415. <Calendar position="absolute 105 29 190 48" id="input9" class="input_search" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
  416. <Static text="복 약 구 분 :" position="absolute 16 53 107 70" id="caption25" class="search_name" anchor="default"/>
  417. <Static text="환 자 :" position="absolute 16 7 102 24" id="caption26" class="search_name" anchor="default"/>
  418. <Combo position="absolute 105 52 220 71" id="combo2" class="combo_search" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
  419. <Dataset id="innerdataset">
  420. <ColumnInfo>
  421. <Column id="codecolumn"/>
  422. <Column id="datacolumn"/>
  423. </ColumnInfo>
  424. <Rows>
  425. <Row>
  426. <Col id="codecolumn">
  427. </Col>
  428. <Col id="datacolumn">
  429. </Col>
  430. </Row>
  431. </Rows>
  432. </Dataset>
  433. </Combo>
  434. <Button position="absolute 200 8 216 24" id="button15" class="icon_search" text="" anchor="default" onclick="group3_group6_button15_onclick"/>
  435. <Edit position="absolute 220 7 325 26" id="input10" class="input_search" anchor="default" autoselect="true"/>
  436. <Edit position="absolute 105 7 196 26" id="input11" class="input_search" anchor="default" onkeydown="group3_group6_input11_onkeydown" autoselect="true"/>
  437. <Static text="약 품 코 드 :" position="absolute 16 76 106 93" id="caption27" class="search_name" anchor="default"/>
  438. <Calendar position="absolute 255 29 340 48" id="input12" class="input_search" anchor="default" dateformat="yyyy-MM-dd" autoselect="true"/>
  439. <Static text="~" position="absolute 243 33 258 48" id="caption29" anchor="default"/>
  440. <Button position="absolute 400 30 416 46" id="button16" class="icon_search" visible="false" text="" anchor="default"/>
  441. <Button position="absolute 225 76 241 92" id="button17" class="icon_search" text="" anchor="default" onclick="group3_group6_button17_onclick"/>
  442. <Edit position="absolute 105 75 220 94" id="input13" class="input_search" anchor="default" imemode="alpha" autoselect="true"/>
  443. <Button position="absolute 450 39 506 61" id="btn_sea" class="btn1" text="조회" anchor="top right" onclick="group3_group6_btn_sea_onclick"/>
  444. <MaskEdit position="absolute 345 29 391 48" id="input1" class="input_search" mask="@@:@@" anchor="default" type="string" autoselect="true"/>
  445. <MaskEdit position="absolute 195 29 241 48" id="input2" class="input_search" mask="@@:@@" anchor="default" type="string" autoselect="true"/>
  446. </Layout>
  447. </Layouts>
  448. </Div>
  449. <Edit readonly="true" position="absolute 1026 6 1187 25" id="output2" anchor="top right" class="output"/>
  450. <Static text="보험" position="absolute 970 4 1025 27" align="align:center middle;" id="caption1" class="cell_1" anchor="top right"/>
  451. <Edit readonly="true" position="absolute 650 6 700 25" id="output6" anchor="top right" class="output"/>
  452. <Static text="휴대전화" position="absolute 845 52 925 75" align="align:center middle;" id="caption2" class="cell_1" anchor="top right"/>
  453. <Edit readonly="true" position="absolute 928 54 1187 73" id="output7" anchor="top right" class="output"/>
  454. <Static text="진단정보" position="absolute 523 76 603 99" align="align:center middle;" id="caption10" class="cell_1" anchor="top right"/>
  455. <Button position="absolute 581 78 597 94" id="button61" class="icon_search" text="" anchor="top right" onclick="group3_button61_onclick"/>
  456. <Edit readonly="true" position="absolute 606 78 1187 97" id="output8" anchor="top right" class="output"/>
  457. <Shape position="absolute 523 96 1187 102" linetype="horizontal" id="line15" class="line_3" anchor="top right"/>
  458. <CheckBox position="absolute 197 111 272 126" id="checkbox1" anchor="default" text="삭제포함" truevalue="Y" value="false"/>
  459. <Button position="absolute 285 106 349 128" id="btn_save" class="btn5" text="원외승인" anchor="default" onclick="group3_btn_save_onclick"/>
  460. <Button position="absolute 457 106 549 128" id="button19" class="btn3" text="반환약관리" anchor="default" onclick="group3_button19_onclick"/>
  461. <Button position="absolute 351 106 455 128" id="btn_oprcprint" class="btn3" text="원외처방출력" anchor="default" onclick="group3_btn_oprcprint_onclick"/>
  462. <Button position="absolute 551 106 626 128" id="button12" class="btn2" visible="false" text="확대/축소" anchor="default" onclick="group3_button12_onclick"/>
  463. <Shape id="line00" class="line_1" position="absolute 523 0 1187 6" anchor="top right"/>
  464. <Shape id="line03" class="line_1" position="absolute 523 -2 1187 4" anchor="top right"/>
  465. </Layout>
  466. </Layouts>
  467. </Div>
  468. <Button position="absolute 1107 131 1187 153" id="button1" class="btn2" visible="false" text="ADR보고서"/>
  469. <PopupMenu id="PopupMenu00" innerdataset="@ds_mouserght" idcolumn="func" captioncolumn="label" levelcolumn="level" position="absolute 350 191 506 343" visible="false" onmenuclick="PopupMenu00_onmenuclick"/>
  470. </Layout>
  471. </Layouts>
  472. <Objects>
  473. <Dataset id="ds_main_baseinfo_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  474. <ColumnInfo>
  475. <Column id="pid" type="STRING" size="256"/>
  476. <Column id="hngnm" type="STRING" size="256"/>
  477. <Column id="sex" type="STRING" size="256"/>
  478. <Column id="brthdd" type="STRING" size="256"/>
  479. <Column id="hometel" type="STRING" size="256"/>
  480. <Column id="mpphontel" type="STRING" size="256"/>
  481. <Column id="detladdr" type="STRING" size="256"/>
  482. <Column id="age" type="STRING" size="256"/>
  483. <Column id="patcls" type="STRING" size="256"/>
  484. </ColumnInfo>
  485. <Rows>
  486. <Row>
  487. <Col id="pid"/>
  488. <Col id="hngnm"/>
  489. <Col id="sex"/>
  490. <Col id="brthdd"/>
  491. <Col id="hometel"/>
  492. <Col id="mpphontel"/>
  493. <Col id="detladdr"/>
  494. <Col id="age"/>
  495. <Col id="patcls"/>
  496. </Row>
  497. </Rows>
  498. </Dataset>
  499. <Dataset id="ds_main_drughistory" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  500. <ColumnInfo>
  501. <Column id="flag" type="STRING" size="256"/>
  502. <Column id="prcpcd" type="STRING" size="256"/>
  503. <Column id="prcpnm" type="STRING" size="256"/>
  504. <Column id="prcpqtyunit" type="STRING" size="256"/>
  505. <Column id="prcpdd" type="STRING" size="256"/>
  506. <Column id="prcpcnts" type="STRING" size="256"/>
  507. </ColumnInfo>
  508. <Rows>
  509. <Row>
  510. <Col id="flag"/>
  511. <Col id="prcpcd"/>
  512. <Col id="prcpnm"/>
  513. <Col id="prcpqtyunit"/>
  514. <Col id="prcpdd"/>
  515. <Col id="prcpcnts"/>
  516. </Row>
  517. </Rows>
  518. </Dataset>
  519. <Dataset id="ds_mouserght" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  520. <ColumnInfo>
  521. <Column id="func" type="STRING" size="256"/>
  522. <Column id="label" type="STRING" size="256"/>
  523. <Column id="level" type="STRING" size="256"/>
  524. </ColumnInfo>
  525. <Rows>
  526. <Row>
  527. <Col id="label">약품편람</Col>
  528. <Col id="func">fDrugInfo</Col>
  529. <Col id="level">0</Col>
  530. </Row>
  531. <Row>
  532. <Col id="label">환자진료정보조회</Col>
  533. <Col id="func">fPatInfo</Col>
  534. <Col id="level">0</Col>
  535. </Row>
  536. </Rows>
  537. </Dataset>
  538. <Dataset id="ds_main_prcphistory" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  539. <ColumnInfo>
  540. <Column id="prcpdd" type="STRING" size="256"/>
  541. <Column id="ionm" type="STRING" size="256"/>
  542. <Column id="orddeptnm" type="STRING" size="256"/>
  543. <Column id="ioflag" type="STRING" size="256"/>
  544. <Column id="orddeptid" type="STRING" size="256"/>
  545. <Column id="orddd" type="STRING" size="256"/>
  546. <Column id="careinyn" type="STRING" size="256"/>
  547. <Column id="ordrgstdrnm" type="STRING" size="256"/>
  548. </ColumnInfo>
  549. </Dataset>
  550. <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  551. <Dataset id="ds_main_prcporderhistory" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_prcporderhistory_oncolumnchanged">
  552. <ColumnInfo>
  553. <Column id="drugno" type="STRING" size="256"/>
  554. <Column id="hosinhosoutflagnm" type="STRING" size="256"/>
  555. <Column id="execprcphistcd" type="STRING" size="256"/>
  556. <Column id="prcpno" type="STRING" size="256"/>
  557. <Column id="prcpcd" type="STRING" size="256"/>
  558. <Column id="prcpnm" type="STRING" size="256"/>
  559. <Column id="prcpvol" type="STRING" size="256"/>
  560. <Column id="prcpvolunit" type="STRING" size="256"/>
  561. <Column id="prcpqty" type="STRING" size="256"/>
  562. <Column id="prcpqtyunit" type="STRING" size="256"/>
  563. <Column id="prcptims" type="STRING" size="256"/>
  564. <Column id="prcpdayno" type="STRING" size="256"/>
  565. <Column id="mthdcd" type="STRING" size="256"/>
  566. <Column id="mthdnm" type="STRING" size="256"/>
  567. <Column id="prcpmixno" type="STRING" size="256"/>
  568. <Column id="powdflag" type="STRING" size="256"/>
  569. <Column id="selfprcpflag" type="STRING" size="256"/>
  570. <Column id="erprcpflag" type="STRING" size="256"/>
  571. <Column id="precureprcpflag" type="STRING" size="256"/>
  572. <Column id="prcpauthflag" type="STRING" size="256"/>
  573. <Column id="payflagcd" type="STRING" size="256"/>
  574. <Column id="issdeptnm" type="STRING" size="256"/>
  575. <Column id="prcpexecdeptnm" type="STRING" size="256"/>
  576. <Column id="inclprcpcd" type="STRING" size="256"/>
  577. <Column id="wardnm" type="STRING" size="256"/>
  578. <Column id="roomcd" type="STRING" size="256"/>
  579. <Column id="ordnm" type="STRING" size="256"/>
  580. <Column id="rgstnm" type="STRING" size="256"/>
  581. <Column id="appdt" type="STRING" size="256"/>
  582. <Column id="hosinhosoutflag" type="STRING" size="256"/>
  583. <Column id="resnnm" type="STRING" size="256"/>
  584. <Column id="resncnts" type="STRING" size="256"/>
  585. </ColumnInfo>
  586. </Dataset>
  587. <Dataset id="ds_main_prcporderhistory_diaginfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  588. <Dataset id="ds_main_reqlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  589. <ColumnInfo>
  590. <Column id="stat" type="STRING" size="256"/>
  591. <Column id="pid" type="STRING" size="256"/>
  592. <Column id="hngnm" type="STRING" size="256"/>
  593. <Column id="cretno" type="STRING" size="256"/>
  594. <Column id="orddeptcd" type="STRING" size="256"/>
  595. <Column id="prcpgenrflag" type="STRING" size="256"/>
  596. <Column id="reqdd" type="STRING" size="256"/>
  597. <Column id="repldd" type="STRING" size="256"/>
  598. <Column id="replpharmst" type="STRING" size="256"/>
  599. <Column id="reqdetlflag" type="STRING" size="256"/>
  600. <Column id="wardnm" type="STRING" size="256"/>
  601. <Column id="agesex" type="STRING" size="256"/>
  602. <Column id="rrgstno" type="STRING" size="256"/>
  603. <Column id="patstat" type="STRING" size="256"/>
  604. <Column id="diagcd" type="STRING" size="256"/>
  605. <Column id="orddd" type="STRING" size="256"/>
  606. <Column id="inhospday" type="STRING" size="256"/>
  607. <Column id="reqdrug" type="STRING" size="256"/>
  608. <Column id="reqdeptnm" type="STRING" size="256"/>
  609. <Column id="requsernm" type="STRING" size="256"/>
  610. <Column id="reqresn" type="STRING" size="256"/>
  611. <Column id="reqcommnet" type="STRING" size="256"/>
  612. <Column id="formrecseq" type="STRING" size="256"/>
  613. <Column id="reqdeptcd" type="STRING" size="256"/>
  614. <Column id="requserid" type="STRING" size="256"/>
  615. </ColumnInfo>
  616. <Rows>
  617. <Row>
  618. <Col id="stat"/>
  619. <Col id="pid"/>
  620. <Col id="hngnm"/>
  621. <Col id="cretno"/>
  622. <Col id="orddeptcd"/>
  623. <Col id="prcpgenrflag"/>
  624. <Col id="reqdd"/>
  625. <Col id="repldd"/>
  626. <Col id="replpharmst"/>
  627. <Col id="reqdetlflag"/>
  628. <Col id="wardnm"/>
  629. <Col id="agesex"/>
  630. <Col id="rrgstno"/>
  631. <Col id="patstat"/>
  632. <Col id="diagcd"/>
  633. <Col id="orddd"/>
  634. <Col id="inhospday"/>
  635. <Col id="reqdrug"/>
  636. <Col id="reqdeptnm"/>
  637. <Col id="requsernm"/>
  638. <Col id="reqresn"/>
  639. <Col id="reqcommnet"/>
  640. <Col id="formrecseq"/>
  641. <Col id="reqdeptcd"/>
  642. <Col id="requserid"/>
  643. </Row>
  644. </Rows>
  645. </Dataset>
  646. <Dataset id="ds_main_sumparam" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  647. <ColumnInfo>
  648. <Column id="pid" type="STRING" size="256"/>
  649. <Column id="orddd" type="STRING" size="256"/>
  650. <Column id="cretno" type="STRING" size="256"/>
  651. <Column id="instcd" type="STRING" size="256"/>
  652. <Column id="orddeptcd" type="STRING" size="256"/>
  653. <Column id="orddrid" type="STRING" size="256"/>
  654. </ColumnInfo>
  655. <Rows>
  656. <Row>
  657. <Col id="pid"/>
  658. <Col id="orddd"/>
  659. <Col id="cretno"/>
  660. <Col id="instcd"/>
  661. <Col id="orddeptcd"/>
  662. <Col id="orddrid"/>
  663. </Row>
  664. </Rows>
  665. </Dataset>
  666. <Dataset id="ds_main_detlprcplist_detlprcpinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  667. <ColumnInfo>
  668. <Column id="ioflagnm" type="STRING" size="256"/>
  669. <Column id="ioflag" type="STRING" size="256"/>
  670. <Column id="prcpno" type="STRING" size="256"/>
  671. <Column id="drugno" type="STRING" size="256"/>
  672. <Column id="execdd" type="STRING" size="256"/>
  673. <Column id="exectm" type="STRING" size="256"/>
  674. <Column id="drugsumdt" type="STRING" size="256"/>
  675. <Column id="execdeptnm" type="STRING" size="256"/>
  676. <Column id="execdeptcd" type="STRING" size="256"/>
  677. <Column id="issdeptcd" type="STRING" size="256"/>
  678. <Column id="issdeptcdnm" type="STRING" size="256"/>
  679. <Column id="execdrnm" type="STRING" size="256"/>
  680. </ColumnInfo>
  681. <Rows>
  682. <Row>
  683. <Col id="ioflagnm"/>
  684. <Col id="ioflag"/>
  685. <Col id="prcpno"/>
  686. <Col id="drugno"/>
  687. <Col id="execdd"/>
  688. <Col id="exectm"/>
  689. <Col id="drugsumdt"/>
  690. <Col id="execdeptnm"/>
  691. <Col id="execdeptcd"/>
  692. <Col id="issdeptcd"/>
  693. <Col id="issdeptcdnm"/>
  694. <Col id="execdrnm"/>
  695. </Row>
  696. </Rows>
  697. </Dataset>
  698. <Dataset id="ds_main_detailinfo_memoinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  699. <ColumnInfo>
  700. <Column id="pid" type="STRING" size="256"/>
  701. <Column id="seqno" type="STRING" size="256"/>
  702. <Column id="hosinhosoutflag" type="STRING" size="256"/>
  703. <Column id="instcd" type="STRING" size="256"/>
  704. <Column id="orddeptcd" type="STRING" size="256"/>
  705. <Column id="orddeptnm" type="STRING" size="256"/>
  706. <Column id="drugdd" type="STRING" size="256"/>
  707. <Column id="drugno" type="STRING" size="256"/>
  708. <Column id="writid2" type="STRING" size="256"/>
  709. <Column id="writnm" type="STRING" size="256"/>
  710. <Column id="writdt" type="STRING" size="256"/>
  711. <Column id="memo" type="STRING" size="256"/>
  712. <Column id="m" type="STRING" size="256"/>
  713. <Column id="ioflag" type="STRING" size="256"/>
  714. <Column id="writid" type="STRING" size="256"/>
  715. <Column id="useyn" type="STRING" size="256"/>
  716. <Column id="indd" type="STRING" size="256"/>
  717. <Column id="indd" type="STRING" size="256"/>
  718. </ColumnInfo>
  719. <Rows>
  720. <Row>
  721. <Col id="pid"/>
  722. <Col id="seqno"/>
  723. <Col id="hosinhosoutflag"/>
  724. <Col id="instcd"/>
  725. <Col id="orddeptcd"/>
  726. <Col id="orddeptnm"/>
  727. <Col id="drugdd"/>
  728. <Col id="drugno"/>
  729. <Col id="writid2"/>
  730. <Col id="writnm"/>
  731. <Col id="memo"/>
  732. <Col id="m"/>
  733. <Col id="ioflag"/>
  734. <Col id="writid"/>
  735. <Col id="useyn"/>
  736. <Col id="indd"/>
  737. <Col id="indd"/>
  738. </Row>
  739. </Rows>
  740. </Dataset>
  741. <Dataset id="ds_send_srchdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  742. <ColumnInfo>
  743. <Column id="pid" type="STRING" size="256"/>
  744. <Column id="prcpfromdd" type="STRING" size="256"/>
  745. <Column id="prcpfromdt" type="STRING" size="256"/>
  746. <Column id="prcptodd" type="STRING" size="256"/>
  747. <Column id="prcptodt" type="STRING" size="256"/>
  748. <Column id="tmedflag" type="STRING" size="256"/>
  749. <Column id="drugcd" type="STRING" size="256"/>
  750. <Column id="hngnm" type="STRING" size="256"/>
  751. <Column id="prcpdd" type="STRING" size="256"/>
  752. <Column id="orddeptcd" type="STRING" size="256"/>
  753. <Column id="ioflag" type="STRING" size="256"/>
  754. <Column id="startreqdd" type="STRING" size="256"/>
  755. <Column id="endreqdd" type="STRING" size="256"/>
  756. <Column id="reqpid" type="STRING" size="256"/>
  757. <Column id="srchpid" type="STRING" size="256"/>
  758. <Column id="srchindd" type="STRING" size="256"/>
  759. <Column id="isdel" type="STRING" size="256"/>
  760. <Column id="srchinstcd" type="STRING" size="256"/>
  761. <Column id="srchcretno" type="STRING" size="256"/>
  762. <Column id="srchorddeptcd" type="STRING" size="256"/>
  763. <Column id="srchorddrid" type="STRING" size="256"/>
  764. </ColumnInfo>
  765. <Rows>
  766. <Row>
  767. <Col id="pid"/>
  768. <Col id="prcpfromdd"/>
  769. <Col id="prcpfromdt">0000</Col>
  770. <Col id="prcptodd"/>
  771. <Col id="prcptodt">2400</Col>
  772. <Col id="tmedflag"/>
  773. <Col id="drugcd"/>
  774. <Col id="hngnm"/>
  775. <Col id="prcpdd"/>
  776. <Col id="orddeptcd"/>
  777. <Col id="ioflag"/>
  778. <Col id="startreqdd"/>
  779. <Col id="endreqdd"/>
  780. <Col id="reqpid"/>
  781. <Col id="srchpid"/>
  782. <Col id="srchindd"/>
  783. <Col id="isdel"/>
  784. <Col id="srchinstcd"/>
  785. <Col id="srchcretno"/>
  786. <Col id="srchorddeptcd"/>
  787. <Col id="srchorddrid"/>
  788. </Row>
  789. </Rows>
  790. </Dataset>
  791. <Dataset id="ds_send_memosrchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  792. <ColumnInfo>
  793. <Column id="srchpid" type="STRING" size="256"/>
  794. <Column id="srchseqno" type="STRING" size="256"/>
  795. <Column id="srchindd" type="STRING" size="256"/>
  796. <Column id="srchinstcd" type="STRING" size="256"/>
  797. <Column id="srchioflag" type="STRING" size="256"/>
  798. <Column id="srchhosinhosoutflag" type="STRING" size="256"/>
  799. <Column id="srchorddeptcd" type="STRING" size="256"/>
  800. </ColumnInfo>
  801. <Rows>
  802. <Row>
  803. <Col id="srchpid"/>
  804. <Col id="srchseqno"/>
  805. <Col id="srchindd"/>
  806. <Col id="srchinstcd"/>
  807. <Col id="srchioflag"/>
  808. <Col id="srchhosinhosoutflag"/>
  809. <Col id="srchorddeptcd"/>
  810. </Row>
  811. </Rows>
  812. </Dataset>
  813. <Dataset id="ds_send_srchdetlinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  814. <ColumnInfo>
  815. <Column id="pid" type="STRING" size="256"/>
  816. <Column id="prcpno" type="STRING" size="256"/>
  817. <Column id="prcpdd" type="STRING" size="256"/>
  818. <Column id="orddeptflag" type="STRING" size="256"/>
  819. <Column id="srchpid" type="STRING" size="256"/>
  820. </ColumnInfo>
  821. <Rows>
  822. <Row>
  823. <Col id="srchpid"/>
  824. <Col id="prcpno"/>
  825. <Col id="prcpdd"/>
  826. <Col id="orddeptflag"/>
  827. <Col id="pid"/>
  828. </Row>
  829. </Rows>
  830. </Dataset>
  831. <Dataset id="ds_send_usersrchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  832. <ColumnInfo>
  833. <Column id="srchuserid" type="STRING" size="256"/>
  834. </ColumnInfo>
  835. <Rows>
  836. <Row/>
  837. </Rows>
  838. </Dataset>
  839. <Dataset id="ds_send_req_data2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  840. <ColumnInfo>
  841. <Column id="m" type="STRING" size="256"/>
  842. </ColumnInfo>
  843. <Rows>
  844. <Row/>
  845. </Rows>
  846. </Dataset>
  847. <Dataset id="ds_init_dateinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  848. <Dataset id="ds_hidden_momoitem" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  849. <ColumnInfo>
  850. <Column id="count" type="STRING" size="256"/>
  851. <Column id="seqno" type="STRING" size="256"/>
  852. </ColumnInfo>
  853. <Rows>
  854. <Row>
  855. <Col id="count"/>
  856. <Col id="seqno"/>
  857. </Row>
  858. </Rows>
  859. </Dataset>
  860. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  861. <ColumnInfo>
  862. <Column id="receivedrugcd" type="STRING" size="256"/>
  863. </ColumnInfo>
  864. <Rows>
  865. <Row>
  866. <Col id="receivedrugcd">ds_send_srchdata</Col>
  867. </Row>
  868. </Rows>
  869. </Dataset>
  870. <Dataset id="ds_hidden_userinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  871. <ColumnInfo>
  872. <Column id="userid" type="STRING" size="256"/>
  873. <Column id="usernm" type="STRING" size="256"/>
  874. </ColumnInfo>
  875. <Rows>
  876. <Row/>
  877. </Rows>
  878. </Dataset>
  879. <Dataset id="ds_temp_patinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  880. <ColumnInfo>
  881. <Column id="pid" type="STRING" size="256"/>
  882. </ColumnInfo>
  883. <Rows>
  884. <Row/>
  885. </Rows>
  886. </Dataset>
  887. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  888. <ColumnInfo>
  889. <Column id="ret" type="STRING" size="256"/>
  890. <Column id="durgno" type="STRING" size="256"/>
  891. <Column id="prcpdd" type="STRING" size="256"/>
  892. <Column id="patdiaginfo" type="STRING" size="256"/>
  893. </ColumnInfo>
  894. </Dataset>
  895. <Dataset id="ds_temp_receivedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  896. <ColumnInfo>
  897. <Column id="receiveref" type="STRING" size="256"/>
  898. <Column id="srchflag" type="STRING" size="256"/>
  899. <Column id="srchcnts" type="STRING" size="256"/>
  900. <Column id="drugkind" type="STRING" size="256"/>
  901. <Column id="receivecd" type="STRING" size="256"/>
  902. <Column id="receivenm" type="STRING" size="256"/>
  903. </ColumnInfo>
  904. <Rows>
  905. <Row>
  906. <Col id="receiveref"/>
  907. <Col id="srchflag"/>
  908. <Col id="srchcnts"/>
  909. <Col id="drugkind"/>
  910. <Col id="receivecd"/>
  911. <Col id="receivenm"/>
  912. </Row>
  913. </Rows>
  914. </Dataset>
  915. <Dataset id="ds_popdata_popinfo_poplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  916. <ColumnInfo>
  917. <Column id="pid" type="STRING" size="256"/>
  918. <Column id="prcpcd" type="STRING" size="256"/>
  919. <Column id="prcpno" type="STRING" size="256"/>
  920. <Column id="execprcphistcd" type="STRING" size="256"/>
  921. </ColumnInfo>
  922. <Rows>
  923. <Row>
  924. <Col id="pid"/>
  925. <Col id="prcpcd"/>
  926. <Col id="prcpno"/>
  927. <Col id="execprcphistcd"/>
  928. </Row>
  929. </Rows>
  930. </Dataset>
  931. <Dataset id="ds_popdata1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  932. <Dataset id="ds_combo_reqdetlflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  933. <ColumnInfo>
  934. <Column id="label" type="STRING" size="256"/>
  935. <Column id="value" type="STRING" size="256"/>
  936. </ColumnInfo>
  937. <Rows>
  938. <Row>
  939. <Col id="label">전체</Col>
  940. <Col id="value">-</Col>
  941. </Row>
  942. <Row>
  943. <Col id="label">ACS자문의뢰</Col>
  944. <Col id="value">E06</Col>
  945. </Row>
  946. <Row>
  947. <Col id="label">TDM자문의뢰</Col>
  948. <Col id="value">E03</Col>
  949. </Row>
  950. <Row>
  951. <Col id="label">약품식별의뢰</Col>
  952. <Col id="value">E02</Col>
  953. </Row>
  954. <Row>
  955. <Col id="label">NST의뢰</Col>
  956. <Col id="value">E04</Col>
  957. </Row>
  958. <Row>
  959. <Col id="label">복약지도의뢰</Col>
  960. <Col id="value">E05</Col>
  961. </Row>
  962. <Row>
  963. <Col id="label">ADR보고</Col>
  964. <Col id="value">E01</Col>
  965. </Row>
  966. </Rows>
  967. </Dataset>
  968. <Dataset id="ds_main_prcporderhistory_memoinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  969. <Dataset id="ds_temp_memoinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  970. </Objects>
  971. <Bind>
  972. <BindItem id="item0" compid="group3.group6.input11" propid="value" datasetid="ds_main_baseinfo_patinfolist" columnid="pid"/>
  973. <BindItem id="item1" compid="group3.group6.input9" propid="value" datasetid="ds_send_srchdata" columnid="prcpfromdd"/>
  974. <BindItem id="item2" compid="group3.group6.input10" propid="value" datasetid="ds_main_baseinfo_patinfolist" columnid="hngnm"/>
  975. <BindItem id="item3" compid="group3.group6.input2" propid="value" datasetid="ds_send_srchdata" columnid="prcpfromdt"/>
  976. <BindItem id="item4" compid="group3.group6.input12" propid="value" datasetid="ds_send_srchdata" columnid="prcptodd"/>
  977. <BindItem id="item5" compid="group3.group6.input1" propid="value" datasetid="ds_send_srchdata" columnid="prcptodt"/>
  978. <BindItem id="item6" compid="group3.group6.combo2" propid="value" datasetid="ds_send_srchdata" columnid="tmedflag"/>
  979. <BindItem id="item7" compid="group3.group6.input13" propid="value" datasetid="ds_send_srchdata" columnid="drugcd"/>
  980. <BindItem id="item8" compid="group3.output1" propid="value" datasetid="ds_main_baseinfo_patinfolist" columnid="sex"/>
  981. <BindItem id="item9" compid="group3.output6" propid="value" datasetid="ds_main_baseinfo_patinfolist" columnid="age"/>
  982. <BindItem id="item12" compid="group3.output2" propid="value" datasetid="ds_main_baseinfo_patinfolist" columnid="patcls"/>
  983. <BindItem id="item13" compid="group3.output4" propid="value" datasetid="ds_main_baseinfo_patinfolist" columnid="detladdr"/>
  984. <BindItem id="item14" compid="group3.output7" propid="value" datasetid="ds_main_baseinfo_patinfolist" columnid="mpphontel"/>
  985. <BindItem id="item15" compid="group3.output3" propid="value" datasetid="ds_main_baseinfo_patinfolist" columnid="hometel"/>
  986. <BindItem id="item16" compid="group3.output8" propid="value" datasetid="ds_temp" columnid="patdiaginfo"/>
  987. <BindItem id="item10" compid="group3.switch2.case2.tar_innrmemo" propid="value" datasetid="ds_main_detailinfo_memoinfo" columnid="memo"/>
  988. <BindItem id="item11" compid="group3.switch2.case2.ipt_writid" propid="value" datasetid="ds_main_detailinfo_memoinfo" columnid="writid2"/>
  989. <BindItem id="item17" compid="group3.switch2.case2.ipt_writenm" propid="value" datasetid="ds_main_detailinfo_memoinfo" columnid="writnm"/>
  990. <BindItem id="item18" compid="group3.switch2.case2.input3" propid="value" datasetid="ds_main_detailinfo_memoinfo" columnid="writdt"/>
  991. </Bind>
  992. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  993. * System Name :
  994. * Job Name :
  995. * Creator :
  996. * Make Date : 2015-09-03
  997. * Description :
  998. *---------------------------------------------------------------------------------------
  999. * Modify Date Modifier Modify Description
  1000. *---------------------------------------------------------------------------------------
  1001. * 2015-09-03 Live Converter TF->XP
  1002. *
  1003. *---------------------------------------------------------------------------------------
  1004. ****************************************************************************************/
  1005. //=======================================================================================
  1006. // Lib Include
  1007. //---------------------------------------------------------------------------------------
  1008. include "com_commonxp::comm_main.xjs"
  1009. include "emr_prcpmngtxp::MMOCommon.xjs"
  1010. //=======================================================================================
  1011. // Global Form Variable
  1012. //---------------------------------------------------------------------------------------
  1013. var arErrorCode = new HashArray();
  1014. //=======================================================================================
  1015. // Function
  1016. //---------------------------------------------------------------------------------------
  1017. // 20100126_laboru
  1018. function trim(data) {
  1019. return data.replace(/(^\s*)|(\s*$)/g, "");
  1020. }
  1021. /****************************************************************************************
  1022. * Argument : N/A
  1023. * Description : 메모 저장
  1024. ****************************************************************************************/
  1025. function fSubmitMemo() {
  1026. var varSaveMode = ""; // i-입력, m-수정(제외)
  1027. var varSaveFlag = false;
  1028. var varDrugNo = 0;
  1029. var varWritId = "";
  1030. // 환자선택 필수
  1031. if (utlf_isNull(ds_main_baseinfo_patinfolist.getColumn(0,"pid"))) {
  1032. sysf_messageBox("환자를 선택하시고", "C001");
  1033. return;
  1034. }
  1035. // 작성자
  1036. varWritId = ds_main_detailinfo_memoinfo.getColumn(0,"writid2");
  1037. if (utlf_isNull(varWritId)) {
  1038. sysf_messageBox("메모작성자 이름은", "I003");
  1039. return;
  1040. }
  1041. // 메모내용필수
  1042. if (utlf_isNull(ds_main_detailinfo_memoinfo.getColumn(0,"memo"))) {
  1043. sysf_messageBox("메모내용은", "I003");
  1044. return;
  1045. }
  1046. ds_main_detailinfo_memoinfo.setColumn(0,"pid" ,ds_main_baseinfo_patinfolist.getColumn(0,"pid"));
  1047. ds_main_detailinfo_memoinfo.setColumn(0,"useyn" , "Y");
  1048. ds_main_detailinfo_memoinfo.setColumn(0,"seqno" , "");
  1049. ds_main_detailinfo_memoinfo.setColumn(0,"orddeptcd" , ds_main_prcphistory.getColumn(0,"orddeptcd"));
  1050. ds_main_detailinfo_memoinfo.setColumn(0,"writdt" , ds_init_dateinfo.getColumn(0,"currentdt"));
  1051. ds_main_detailinfo_memoinfo.setColumn(0,"ioflag" , ds_main_prcphistory.getColumn(0,"ioflag"));
  1052. ds_main_detailinfo_memoinfo.setColumn(0,"writid" , varWritId);
  1053. var hosflag = ds_main_prcporderhistory.getColumn(0,"hosinhosoutflagnm");
  1054. if( hosflag == "원내") {
  1055. ds_main_detailinfo_memoinfo.setColumn(0,"hosinhosoutflag", "I");
  1056. } else if(hosflag == "원외") {
  1057. ds_main_detailinfo_memoinfo.setColumn(0,"hosinhosoutflag", "O");
  1058. }
  1059. var drugno = "";
  1060. var drugdd = "";
  1061. var indd = "";
  1062. if(ds_main_prcphistory.getColumn(0,"ioflag") == "O") {
  1063. drugno = ds_main_prcporderhistory.getColumn(0,"drugno");
  1064. ds_main_detailinfo_memoinfo.setColumn(0,"drugno",drugno);
  1065. drugdd = ds_main_prcphistory.getColumn(0,"prcpdd");
  1066. ds_main_detailinfo_memoinfo.setColumn(0,"drugdd",drugdd);
  1067. } else if(ds_main_prcphistory.getColumn(0,"ioflag") == "I") {
  1068. indd = ds_main_prcphistory.getColumn(0,"orddd");
  1069. ds_main_detailinfo_memoinfo.setColumn(0,"indd",indd);
  1070. }
  1071. // 자료수집
  1072. varDrugNo = ds_main_detailinfo_memoinfo.getColumn(0,"drugno");
  1073. if (utlf_isNull(varDrugNo)) {
  1074. ds_main_detailinfo_memoinfo.setColumn(0,"drugno", 0);
  1075. }
  1076. ds_send_req_data2.copyData(ds_main_detailinfo_memoinfo);
  1077. // 저장은 무조건 추가로 처리, 수정기능은 제외
  1078. varSaveMode = "i";
  1079. ds_send_req_data2.setColumn(0,"m", varSaveMode);
  1080. if( (!utlf_isNull(hosflag) && !utlf_isNull(drugno) && !utlf_isNull(drugdd)) || !utlf_isNull(indd) ) {
  1081. var oParam = {};
  1082. oParam.id = "TXADT00102";
  1083. oParam.service = "pharmacyprescriptionapp.MpsCheck";
  1084. oParam.method = "reqExeMemoData";
  1085. oParam.inds = "req=ds_send_req_data2";
  1086. oParam.outds = "ds_hidden_momoitem=memoitem";
  1087. oParam.async = true;
  1088. //oParam.callback = "cf_TXADT00102";
  1089. tranf_submit(oParam);
  1090. varSaveFlag = true;
  1091. // 화면정리 및 메세지처리
  1092. if (varSaveFlag == true) {
  1093. sysf_messageBox("메모저장이", "I002");
  1094. }
  1095. } else {
  1096. sysf_messageBox("처방이력을 선택하십시오.", "");
  1097. }
  1098. }
  1099. /****************************************************************************************
  1100. * Argument : N/A
  1101. * Description : 메모사항 리셋
  1102. ****************************************************************************************/
  1103. function fResetMemo() {
  1104. ds_main_detailinfo_memoinfo.setColumn(0,"pid" , ds_main_baseinfo_patinfolist.getColumn(0,"pid"));
  1105. ds_main_detailinfo_memoinfo.setColumn(0,"seqno" , "");
  1106. ds_main_detailinfo_memoinfo.setColumn(0,"hosinhosoutflag" , ds_main_prcporderhistory.getColumn(0,"hosinhosoutflagnm"));
  1107. ds_main_detailinfo_memoinfo.setColumn(0,"instcd" , "");
  1108. ds_main_detailinfo_memoinfo.setColumn(0,"orddeptcd" , ds_main_prcphistory.getColumn(0,"orddeptcd"));
  1109. ds_main_detailinfo_memoinfo.setColumn(0,"orddeptnm" , "");
  1110. ds_main_detailinfo_memoinfo.setColumn(0,"drugdd" , ds_main_prcphistory.getColumn(0,"prcpdd"));
  1111. ds_main_detailinfo_memoinfo.setColumn(0,"indd" , ds_main_prcphistory.getColumn(0,"orddd"));
  1112. ds_main_detailinfo_memoinfo.setColumn(0,"drugno" , ds_main_prcporderhistory.getColumn(0,"drugno"));
  1113. ds_main_detailinfo_memoinfo.setColumn(0,"useyn" , "Y");
  1114. ds_main_detailinfo_memoinfo.setColumn(0,"memo" , "");
  1115. ds_main_detailinfo_memoinfo.setColumn(0,"writid" , sysf_getUserId());
  1116. ds_main_detailinfo_memoinfo.setColumn(0,"writid2" , "");
  1117. ds_main_detailinfo_memoinfo.setColumn(0,"writnm" , sysf_getUserName());
  1118. ds_main_detailinfo_memoinfo.setColumn(0,"writdt" , utlf_getCurrentDate() + utlf_getCurrentTime());
  1119. }
  1120. /****************************************************************************************
  1121. * Argument : N/A
  1122. * Description : 프리뷰
  1123. ****************************************************************************************/
  1124. function fView(){
  1125. ds_send_srchdata.setColumn(0,"pid" , ds_main_baseinfo_patinfolist.getColumn(0,"pid"));
  1126. ds_send_srchdata.setColumn(0,"reqpid", ds_main_baseinfo_patinfolist.getColumn(0,"pid"));
  1127. var oParam = {};
  1128. oParam.id = "TRADB10101";
  1129. oParam.service = "pharmacyconsultapp.DrugHistory";
  1130. oParam.method = "reqGetPatBaseData";
  1131. oParam.inds = "req=ds_send_srchdata";
  1132. oParam.outds = "ds_main_baseinfo_patinfolist=item";
  1133. oParam.async = false;
  1134. //oParam.callback = "cf_TRADB10101";
  1135. tranf_submit(oParam);
  1136. if(ds_main_baseinfo_patinfolist.rowcount == 0) ds_main_baseinfo_patinfolist.addRow();
  1137. ds_main_prcporderhistory.clearData();
  1138. ds_main_prcporderhistory_diaginfolist.clearData();
  1139. ds_main_prcporderhistory_memoinfo.clearData();
  1140. ds_temp.setColumn(0,"patdiaginfo","");
  1141. if ( group3.switch2.tabindex == 1 ) {
  1142. var oParam = {};
  1143. oParam.id = "TRADB10102";
  1144. oParam.service = "pharmacyconsultapp.DrugHistory";
  1145. oParam.method = "reqGetPrcpHistory";
  1146. oParam.inds = "req=ds_send_srchdata";
  1147. oParam.outds = "ds_main_prcphistory=item";
  1148. oParam.async = false;
  1149. //oParam.callback = "cf_TRADB10102";
  1150. tranf_submit(oParam);
  1151. } else if ( group3.switch2.tabindex == 2 ){
  1152. ds_send_srchdata.setColumn(0,"startreqdd", ds_send_srchdata.getColumn(0,"prcpfromdd"));
  1153. ds_send_srchdata.setColumn(0,"endreqdd" , ds_send_srchdata.getColumn(0,"prcptodd"));
  1154. var oParam = {};
  1155. oParam.id = "TRADC00102";
  1156. oParam.service = "pharmacyconsultapp.ReqMngt";
  1157. oParam.method = "reqGetReqMngtData";
  1158. oParam.inds = "req=ds_send_srchdata";
  1159. oParam.outds = "ds_main_reqlist=reqlist";
  1160. oParam.async = true;
  1161. //oParam.callback = "cf_TRADC00102";
  1162. tranf_submit(oParam);
  1163. }else if ( group3.switch2.tabindex == 0 ){
  1164. var oParam = {};
  1165. oParam.id = "TRADB10104";
  1166. oParam.service = "pharmacyconsultapp.DrugHistory";
  1167. oParam.method = "reqGetDrugHistory";
  1168. oParam.inds = "req=ds_send_srchdata";
  1169. oParam.outds = "ds_main_drughistory=item";
  1170. oParam.async = false;
  1171. //oParam.callback = "cf_TRADB10104";
  1172. tranf_submit(oParam);
  1173. // exeReportPreview("RPADB10101", "XMLSTR", "", "", "false","false","","","","false", "","case1");
  1174. var objDOM = rptf_createDOM(); // DOM 객체 설정
  1175. rptf_setNodeListToDOM(objDOM, "/root/main/drughistory/item" , ds_main_drughistory); // 데이터셋 1
  1176. var objParam = new Object();
  1177. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  1178. var option = "open=1;save=1;directprint=0;print=1;zoom=1;show=1";
  1179. rptf_exeReportPreview30(["RPADB10101"],[objParam], option,"","group3.switch2.case1"); //미리보기만 가능
  1180. }
  1181. // 20100126_laboru
  1182. ds_main_detailinfo_memoinfo.setColumn(0,"memo", "");
  1183. // model.removenode("/root/temp/memoinfo");
  1184. // dsf_deleteDs("ds_temp_memoinfo");
  1185. ds_temp_memoinfo.clear();
  1186. // 20100218_laboru_약사메모 전체
  1187. ds_send_memosrchinfo.setColumn(0,"srchpid" , ds_send_srchdata.getColumn(0,"pid"));
  1188. ds_send_memosrchinfo.setColumn(0,"srchhosinhosoutflag" , "");
  1189. ds_send_memosrchinfo.setColumn(0,"srchioflag" , "");
  1190. ds_send_memosrchinfo.setColumn(0,"srchorddeptcd" , "");
  1191. ds_send_memosrchinfo.setColumn(0,"srchindd" , ds_send_srchdata.getColumn(0,"srchindd"));
  1192. var oParam = {};
  1193. oParam.id = "TRADB60605";
  1194. oParam.service = "pharmacyprescriptionapp.MpsCheck";
  1195. oParam.method = "reqGetMemoList";
  1196. oParam.inds = "req=ds_send_memosrchinfo";
  1197. oParam.outds = "ds_temp_memoinfo=item";
  1198. oParam.async = false;
  1199. oParam.callback = "cf_TRADB60605";
  1200. tranf_submit(oParam);
  1201. if(arErrorCode.pop("TRADB60605") > -1) {
  1202. ds_main_detailinfo_memoinfo.setColumn(0,"memo",ds_temp_memoinfo.getColumn(0,"memo"));
  1203. }
  1204. }
  1205. function cf_TRADB60605(sSvcId, nErrorCode, sErrorMsg) {
  1206. arErrorCode.push(sSvcId, nErrorCode);
  1207. }
  1208. //=======================================================================================
  1209. // Event
  1210. //---------------------------------------------------------------------------------------
  1211. /****************************************************************************************
  1212. * Components : Form
  1213. * Components ID : SMADB10100
  1214. * Event : oninit
  1215. * Argument : 01.obj : Object Event has occurred
  1216. * : 02.e : Event Object
  1217. * Description : 화면 처음 초기화시 폼초기화
  1218. ****************************************************************************************/
  1219. function SMADB10100_oninit(obj:Form, e:InitEventInfo)
  1220. {
  1221. frmf_initForm(obj); // 폼 초기화
  1222. try{
  1223. ds_temp_patinfo.copyData(arg_ds_temp_patinfo);
  1224. }catch(e){}
  1225. grdf_setGridSort(group3.switch2.case2.grd_prcphistory); // 그리드 소트만
  1226. grdf_setGridSort(group3.switch2.case2.grd_prcplist); // 그리드 소트만
  1227. grdf_setGridSort(group3.switch2.case2.group5.datagrid2); // 그리드 소트만
  1228. grdf_setGridSort(group3.switch2.case6.grd_reqlist); // 그리드 소트만
  1229. }
  1230. /****************************************************************************************
  1231. * Components : Form
  1232. * Components ID : SMADB10100
  1233. * Event : onload
  1234. * Argument : 01.obj : Object Event has occurred
  1235. * : 02.e : Event Object
  1236. * Description : 화면 처음 초기화시 폼초기화
  1237. ****************************************************************************************/
  1238. function SMADB10100_onload(obj:Form, e:LoadEventInfo)
  1239. {
  1240. var dutplceinstcd = sysf_getUserInfo("dutplceinstcd");
  1241. if(utlf_isNull(dutplceinstcd)) {
  1242. dutplceinstcd = "031"; //???
  1243. }
  1244. ds_send_srchdata.setColumn(0,"srchinstcd",dutplceinstcd);
  1245. //rptf_exeReportPreview30(["RPADB01013"],[objParam], option,"","group3.switch2.case1.div_preview");
  1246. //makeReportPreview(2,10,1150,585,"case1");
  1247. ds_send_srchdata.setColumn(0,"prcpfromdd",utlf_getCurrentDate().toDate("YYYYMMDD").getAddDate(-6,"M").getDateFormat("YYYYMMDD"));
  1248. ds_send_srchdata.setColumn(0,"prcptodd" ,utlf_getCurrentDate());
  1249. ds_main_baseinfo_patinfolist.setColumn(0,"pid", ds_temp_patinfo.getColumn(0,"pid"));
  1250. if (!utlf_isNull(ds_temp_patinfo.getColumn(0,"pid"))){
  1251. fView();
  1252. }
  1253. // 로긴사번,이름,현재일자셋팅
  1254. var oParam = {};
  1255. oParam.id = "TRADT00103";
  1256. oParam.service = "pharmacyprescriptionapp.MpsCheck";
  1257. oParam.method = "reqGetCurrentDate";
  1258. //oParam.inds = "req=ds_";
  1259. oParam.outds = "ds_init_dateinfo=dateinfo";
  1260. oParam.async = false;
  1261. //oParam.callback = "cf_TRADT00103";
  1262. tranf_submit(oParam);
  1263. ds_main_detailinfo_memoinfo.setColumn(0,"writid" , ds_temp_memoinfo.getColumn(0,"writid"));
  1264. ds_main_detailinfo_memoinfo.setColumn(0,"writnm" , ds_temp_memoinfo.getColumn(0,"writnm"));
  1265. ds_main_detailinfo_memoinfo.setColumn(0,"writdt" , ds_temp_memoinfo.getColumn(0,"writdt"));
  1266. //1일기준인지 1회기준인지 체크하여 컬럼을 hidden
  1267. var colHidnValue = lf_grdBaseColHidn("D");
  1268. //1회 기준
  1269. if( colHidnValue == "C") {
  1270. group3.switch2.case2.grd_prcplist.setFormatColProperty(group3.switch2.case2.grd_prcplist.getBindCellIndex("body","prcpvol"),"size",0);
  1271. group3.switch2.case2.grd_prcplist.setFormatColProperty(group3.switch2.case2.grd_prcplist.getBindCellIndex("body","prcpqty"),"size",0);
  1272. } else {
  1273. group3.switch2.case2.grd_prcplist.setFormatColProperty(group3.switch2.case2.grd_prcplist.getBindCellIndex("body","prcpvol2"),"size",0);
  1274. group3.switch2.case2.grd_prcplist.setFormatColProperty(group3.switch2.case2.grd_prcplist.getBindCellIndex("body","prcpqty2"),"size",0);
  1275. }
  1276. }
  1277. /****************************************************************************************
  1278. * Components : Button
  1279. * Components ID : group3.group6.button15
  1280. * Event : onclick
  1281. * Argument : 01.obj : Object Event has occurred
  1282. * : 02.e : Event Object
  1283. * Description : 환자조회 버튼 클릭
  1284. ****************************************************************************************/
  1285. function group3_group6_button15_onclick(obj:Button, e:ClickEventInfo)
  1286. {
  1287. frmf_modal("SPPMC02500", "SPPMC02500", null, null, 0, 100, 150, null, null, null, null, null, "M");
  1288. ds_main_baseinfo_patinfolist.copyData(ds_patinfolist);
  1289. if(ds_main_baseinfo_patinfolist.rowcount == 0) ds_main_baseinfo_patinfolist.addRow();
  1290. }
  1291. /****************************************************************************************
  1292. * Components : Button
  1293. * Components ID : group3.group6.button17
  1294. * Event : onclick
  1295. * Argument : 01.obj : Object Event has occurred
  1296. * : 02.e : Event Object
  1297. * Description : 약품코드조회 버튼 클릭
  1298. ****************************************************************************************/
  1299. function group3_group6_button17_onclick(obj:Button, e:ClickEventInfo)
  1300. {
  1301. ds_temp_receivedata.setColumn(0,"receiveref" , ds_hidden.getColumn(0,"receivedrugcd"));
  1302. ds_temp_receivedata.setColumn(0,"srchflag" , "");
  1303. ds_temp_receivedata.setColumn(0,"srchcnts" , "");
  1304. ds_temp_receivedata.setColumn(0,"drugkind" , "");
  1305. ds_temp_receivedata.setColumn(0,"receivedrugcd" , "drugcd");
  1306. ds_temp_receivedata.setColumn(0,"receivedrugnm" , "");
  1307. // 약품코드 검색
  1308. var objArg = new Object();
  1309. objArg.arg_ds_temp_receivedata = ds_temp_receivedata;
  1310. frmf_modal("SPADB60100", "SPADB60100", objArg, null, 0, 100, 150, null, null, null, null, null, "M");
  1311. //ds_send_srchdata.setColumn(0,"drugcd",ds_send_srchdata.getColumn(0,"receiveref"));
  1312. }
  1313. /****************************************************************************************
  1314. * Components : Button
  1315. * Components ID : group3.group6.btn_sea
  1316. * Event : onclick
  1317. * Argument : 01.obj : Object Event has occurred
  1318. * : 02.e : Event Object
  1319. * Description : 조회 버튼 클릭
  1320. ****************************************************************************************/
  1321. function group3_group6_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  1322. {
  1323. fView();
  1324. }
  1325. /****************************************************************************************
  1326. * Components : Tab
  1327. * Components ID : group3.switch2
  1328. * Event : onchanged
  1329. * Argument : 01.obj : Object Event has occurred
  1330. * : 02.e : Event Object
  1331. * Description : 약품별 탭버튼 클릭
  1332. ****************************************************************************************/
  1333. function group3_switch2_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  1334. {
  1335. if(e.postindex==0) {
  1336. // exeReportPreview("RPADB10101", "XMLSTR", "", "", "false","false","","","","false", "","case1");
  1337. var objDOM = rptf_createDOM(); // DOM 객체 설정
  1338. rptf_setNodeListToDOM(objDOM, "/root/main/drughistory/item" , ds_main_drughistory); // 데이터셋 1
  1339. var objParam = new Object();
  1340. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  1341. var option = "open=1;save=1;directprint=0;print=1;zoom=1;show=1";
  1342. rptf_exeReportPreview30(["RPADB10101"],[objParam], option,"","group3.switch2.case1"); //미리보기만 가능
  1343. }
  1344. }
  1345. /****************************************************************************************
  1346. * Components : Button
  1347. * Components ID : group3.btn_save
  1348. * Event : onclick
  1349. * Argument : 01.obj : Object Event has occurred
  1350. * : 02.e : Event Object
  1351. * Description : 원외승인버튼 클릭
  1352. ****************************************************************************************/
  1353. function group3_btn_save_onclick(obj:Button, e:ClickEventInfo)
  1354. {
  1355. if ( utlf_isNull(ds_send_srchdata.getColumn(0,"srchindd"))) {
  1356. sysf_messageBox("처리할 적용일자를 목록에서 ", "C002");
  1357. return;
  1358. }
  1359. var oParam = {};
  1360. oParam.id = "TRADB10105";
  1361. oParam.service = "pharmacyprescriptionapp.DrugAccept";
  1362. oParam.method = "reqGetOutCnfmParam";
  1363. oParam.inds = "req=ds_send_srchdata";
  1364. oParam.outds = "ds_main_sumparam=item";
  1365. oParam.async = true;
  1366. //oParam.callback = "cf_TRADB10105";
  1367. tranf_submit(oParam);
  1368. if ( utlf_isNull(ds_main_sumparam.getColumn(0,"pid"))) {
  1369. sysf_messageBox("처리할 대상이 없습니다.", "I999");
  1370. return;
  1371. }
  1372. if ( sysf_messageBox("원외승인 작업을 ", "Q004") != 6 ) {
  1373. return;
  1374. }
  1375. ds_send_srchdata.setColumn(0,"srchinstcd" , ds_main_sumparam.getColumn(0,"instcd"));
  1376. ds_send_srchdata.setColumn(0,"srchcretno" , ds_main_sumparam.getColumn(0,"cretno"));
  1377. ds_send_srchdata.setColumn(0,"srchorddeptcd", ds_main_sumparam.getColumn(0,"orddeptcd"));
  1378. ds_send_srchdata.setColumn(0,"srchorddrid" , ds_main_sumparam.getColumn(0,"orddrid"));
  1379. var oParam = {};
  1380. oParam.id = "TXADB10101";
  1381. oParam.service = "outordamtmngtapp.OutRcpt";
  1382. oParam.method = "reqExePharmacyZeroRcpt";
  1383. oParam.inds = "req=ds_send_srchdata";
  1384. //oParam.outds = "ds_=retlist";
  1385. oParam.async = true;
  1386. //oParam.callback = "cf_TXADB10101";
  1387. tranf_submit(oParam);
  1388. dsf_createDsRow("ds_req", [
  1389. {col:"pid", type:"STRING", size:256, val:ds_send_srchdata.getColumn(0,"pid")}
  1390. , {col:"prcpdd", type:"STRING", size:256, val:ds_send_srchdata.getColumn(0,"prcpdd")}
  1391. , {col:"orddeptcd", type:"STRING", size:256, val:ds_send_srchdata.getColumn(0,"orddeptcd")}
  1392. , {col:"ioflag", type:"STRING", size:256, val:ds_send_srchdata.getColumn(0,"ioflag")}
  1393. , {col:"srchpid", type:"STRING", size:256, val:ds_send_srchdata.getColumn(0,"srchpid")}
  1394. , {col:"srchindd", type:"STRING", size:256, val:ds_send_srchdata.getColumn(0,"srchindd")}
  1395. , {col:"isdel", type:"STRING", size:256, val:ds_send_srchdata.getColumn(0,"isdel")}
  1396. ]);
  1397. var oParam = {};
  1398. oParam.id = "TRADB10103";
  1399. oParam.service = "pharmacyconsultapp.DrugHistory";
  1400. oParam.method = "reqGetPrcpOrderHistory";
  1401. oParam.inds = "req=ds_req";
  1402. oParam.outds = "ds_main_prcporderhistory=item ds_main_prcporderhistory_memoinfo=memoinfo ds_main_prcporderhistory_diaginfolist=diaginfolist";
  1403. oParam.async = true;
  1404. //oParam.callback = "cf_TRADB10103";
  1405. tranf_submit(oParam);
  1406. // grdf_setRowStyle(group3.switch2.case2.grd_prcplist , "4" , "C" , "execprcphistcd", "equal");
  1407. // grdf_setRowStyle(group3.switch2.case2.grd_prcplist , "4" , "L" , "execprcphistcd", "equal");
  1408. // grdf_setRowStyle(group3.switch2.case2.grd_prcplist , "4" , "50", "execprcphistcd", "equal");
  1409. // grdf_setRowStyle(group3.switch2.case2.grd_prcplist , "3" , "D" , "execprcphistcd", "equal");
  1410. // grdf_setRowStyle(group3.switch2.case2.grd_prcplist , "2" , "E" , "execprcphistcd", "equal");
  1411. // grdf_setRowStyle(group3.switch2.case2.grd_prcplist , "4^4^4^3^2" , "C^L^50^D^E" , "execprcphistcd");
  1412. // group3.switch2.case2.grd_prcplist.redraw();
  1413. }
  1414. /****************************************************************************************
  1415. * Components : Button
  1416. * Components ID : group3.btn_oprcprint
  1417. * Event : onclick
  1418. * Argument : 01.obj : Object Event has occurred
  1419. * : 02.e : Event Object
  1420. * Description : 원외처방출력 클릭
  1421. ****************************************************************************************/
  1422. function group3_btn_oprcprint_onclick(obj:Button, e:ClickEventInfo)
  1423. {
  1424. // 20100122_laboru_원외처방출력
  1425. var row = ds_main_prcporderhistory.rowposition;
  1426. var hisrow = ds_main_prcphistory.rowposition;
  1427. if(ds_main_prcporderhistory.getColumn(row,"hosinhosoutflag") == "O") {
  1428. dsf_makeValue(ds_temp,"drugno","string",ds_main_prcporderhistory.getColumn(row,"drugno"));
  1429. dsf_makeValue(ds_temp,"prcpdd","string",ds_main_prcphistory.getColumn(hisrow,"prcpdd"));
  1430. var objArg = new Object();
  1431. objArg.arg_ds_temp = ds_temp;
  1432. frmf_open("SMADT01102", "SMADT01102", objArg, null, 0, 0, 0, null, null, null, null, null, "M");
  1433. } else if(utlf_isNull(ds_main_prcporderhistory.getColumn(row,"hosinhosoutflag"))) {
  1434. if(ds_main_prcporderhistory.getColumn(row,"hosinhosoutflagnm") == "원외") {
  1435. dsf_makeValue(ds_temp,"drugno","string",ds_main_prcporderhistory.getColumn(row,"drugno"));
  1436. dsf_makeValue(ds_temp,"prcpdd","string",ds_main_prcphistory.getColumn(hisrow,"prcpdd"));
  1437. var objArg = new Object();
  1438. objArg.arg_ds_temp = ds_temp;
  1439. frmf_open("SMADT01102", "SMADT01102", objArg, null, 0, 0, 0, null, null, null, null, null, "M");
  1440. } else {
  1441. sysf_messageBox("원외 처방만" , "I006");
  1442. }
  1443. } else {
  1444. sysf_messageBox("원외 처방만" , "I006");
  1445. }
  1446. }
  1447. /****************************************************************************************
  1448. * Components : Button
  1449. * Components ID : group3.button19
  1450. * Event : onclick
  1451. * Argument : 01.obj : Object Event has occurred
  1452. * : 02.e : Event Object
  1453. * Description : 반환약관리버튼 클릭
  1454. ****************************************************************************************/
  1455. function group3_button19_onclick(obj:Button, e:ClickEventInfo)
  1456. {
  1457. var objArg = new Object();
  1458. objArg.arg_ds_temp_srchinfo = ds_main_baseinfo_patinfolist;
  1459. frmf_open("SMADT00600", "SMADT00600", objArg, null, 0, 0, 0, null, null, null, null, null, "M");
  1460. }
  1461. /****************************************************************************************
  1462. * Components : Button
  1463. * Components ID : group3.button61
  1464. * Event : onclick
  1465. * Argument : 01.obj : Object Event has occurred
  1466. * : 02.e : Event Object
  1467. * Description : 진단정보 팝업버튼 클릭
  1468. ****************************************************************************************/
  1469. function group3_button61_onclick(obj:Button, e:ClickEventInfo)
  1470. {
  1471. //var iRowNo = 1;
  1472. dsf_deleteDs("ds_temp_diaglist_screenMessageList");
  1473. dsf_createDs("ds_temp_diaglist_screenMessageList", [{col:"rgstdepthngnm", type:"string", size:256}
  1474. ,{col:"diseasecd" , type:"string", size:256}
  1475. ,{col:"diseasenm" , type:"string", size:256}
  1476. ,{col:"diagdd" , type:"string", size:256}]);
  1477. for(var iNo = 0 ; iNo < ds_main_prcporderhistory_diaginfolist.rowcount ; iNo++) {
  1478. var iRowNo = ds_temp_diaglist_screenMessageList.addRow();
  1479. ds_temp_diaglist_screenMessageList.setColumn(iRowNo,"rgstdepthngnm" , ds_main_prcporderhistory_diaginfolist.getColumn(iNo,"orddeptnm"));
  1480. ds_temp_diaglist_screenMessageList.setColumn(iRowNo,"diseasecd" , ds_main_prcporderhistory_diaginfolist.getColumn(iNo,"diagcd"));
  1481. ds_temp_diaglist_screenMessageList.setColumn(iRowNo,"diseasenm" , ds_main_prcporderhistory_diaginfolist.getColumn(iNo,"diaghngnm"));
  1482. ds_temp_diaglist_screenMessageList.setColumn(iRowNo,"diagdd" , ds_main_prcporderhistory_diaginfolist.getColumn(iNo,"diagdd"));
  1483. }
  1484. var objArg = new Object();
  1485. objArg.arg_ds_screenMessageList_patientInfoList = ds_temp_diaglist_screenMessageList;
  1486. frmf_modal("SPZCS00601", "SPZCS00601", objArg, null, 1, 150, 150, null, null, null, null, null, "M");
  1487. }
  1488. /****************************************************************************************
  1489. * Components : Button
  1490. * Components ID : group1.button4
  1491. * Event : onclick
  1492. * Argument : 01.obj : Object Event has occurred
  1493. * : 02.e : Event Object
  1494. * Description : 통합기록조회 팝업버튼 클릭
  1495. ****************************************************************************************/
  1496. function group1_button4_onclick(obj:Button, e:ClickEventInfo)
  1497. {
  1498. frmf_setParameter("SMMRI00400_param_pid", ds_main_baseinfo_patinfolist.getColumn(0,"pid"));
  1499. frmf_open("SMMRI00400", "SMMRI00400", null, null, null, null, null, null, null, null, null, null, "M");
  1500. }
  1501. /****************************************************************************************
  1502. * Components : Button
  1503. * Components ID : group1.button3
  1504. * Event : onclick
  1505. * Argument : 01.obj : Object Event has occurred
  1506. * : 02.e : Event Object
  1507. * Description : 통합결과조회 팝업버튼 클릭
  1508. ****************************************************************************************/
  1509. function group1_button3_onclick(obj:Button, e:ClickEventInfo)
  1510. {
  1511. dsf_createDs("ds_temp_singdata", [{col:"srchpid", type:"string", size:256}]);
  1512. ds_temp_singdata.setColumn(ds_temp_singdata.addRow(),"srchpid",ds_main_baseinfo_patinfolist.getColumn(0,"pid"));
  1513. var objArg = new Object();
  1514. objArg.arg_ds_send_singdata = ds_temp_singdata;
  1515. frmf_open("SMAER00800", "SMAER00800", objArg, null, null, null, null, null, null, null, null, null, "M");
  1516. }
  1517. /****************************************************************************************
  1518. * Components : Grid
  1519. * Components ID : group3.switch2.case2.grd_prcphistory
  1520. * Event : oncellclick
  1521. * Argument : 01.obj : Object Event has occurred
  1522. * : 02.e : Event Object
  1523. * Description :
  1524. ****************************************************************************************/
  1525. function group3_switch2_case2_grd_prcphistory_oncellclick(obj:Grid, e:GridClickEventInfo)
  1526. {
  1527. ds_send_srchdata.setColumn(0,"srchpid" , ds_send_srchdata.getColumn(0,"pid"));
  1528. ds_send_srchdata.setColumn(0,"srchindd" , ds_main_prcphistory.getColumn(ds_main_prcphistory.rowposition,"orddd"));
  1529. ds_send_srchdata.setColumn(0,"prcpdd" , ds_main_prcphistory.getColumn(ds_main_prcphistory.rowposition,"prcpdd"));
  1530. ds_send_srchdata.setColumn(0,"orddeptcd", ds_main_prcphistory.getColumn(ds_main_prcphistory.rowposition,"orddeptcd"));
  1531. ds_send_srchdata.setColumn(0,"ioflag" , ds_main_prcphistory.getColumn(ds_main_prcphistory.rowposition,"ioflag"));
  1532. dsf_createDsRow("ds_req", [
  1533. {col:"pid", type:"STRING", size:256, val:ds_send_srchdata.getColumn(0,"pid")}
  1534. , {col:"prcpdd", type:"STRING", size:256, val:ds_send_srchdata.getColumn(0,"prcpdd")}
  1535. , {col:"orddeptcd", type:"STRING", size:256, val:ds_send_srchdata.getColumn(0,"orddeptcd")}
  1536. , {col:"ioflag", type:"STRING", size:256, val:ds_send_srchdata.getColumn(0,"ioflag")}
  1537. , {col:"srchpid", type:"STRING", size:256, val:ds_send_srchdata.getColumn(0,"srchpid")}
  1538. , {col:"srchindd", type:"STRING", size:256, val:ds_send_srchdata.getColumn(0,"srchindd")}
  1539. , {col:"isdel", type:"STRING", size:256, val:ds_send_srchdata.getColumn(0,"isdel")}
  1540. ]);
  1541. var oParam = {};
  1542. oParam.id = "TRADB10103";
  1543. oParam.service = "pharmacyconsultapp.DrugHistory";
  1544. oParam.method = "reqGetPrcpOrderHistory";
  1545. oParam.inds = "req=ds_req";
  1546. oParam.outds = "ds_main_prcporderhistory=item ds_main_prcporderhistory_memoinfo=memoinfo ds_main_prcporderhistory_diaginfolist=diaginfolist";
  1547. oParam.async = false;
  1548. oParam.callback = "cf_TRADB10103";
  1549. tranf_submit(oParam);
  1550. if(arErrorCode.pop("TRADB10103") > -1) { // 2009.04 외래일경우만 수납여부 보이도록
  1551. dsf_makeValue(ds_temp,"patdiaginfo","string",ds_main_prcporderhistory_diaginfolist.getColumn(0,"diagcd") + " " + ds_main_prcporderhistory_diaginfolist.getColumn(0,"diaghngnm"));
  1552. // output8.refresh();
  1553. if(ds_main_prcphistory.getColumn(ds_main_prcphistory.rowposition,"ioflag") != "O") {
  1554. group3.switch2.case2.grd_prcplist.setFormatColProperty(1,"size",0);
  1555. } else {
  1556. group3.switch2.case2.grd_prcplist.setFormatColProperty(1,"size",30);
  1557. }
  1558. }
  1559. // grdf_setRowStyle(group3.switch2.case2.grd_prcplist , "4^4^3^2" , "C^50^D^E" , "execprcphistcd");
  1560. // for(var i = 0 ; i < 3 ; i++ ) {
  1561. // group3.switch2.case2.grd_prcplist.setCellProperty("body", i, "background" ,"");
  1562. // group3.switch2.case2.grd_prcplist.setCellProperty("body", i, "background2" ,"");
  1563. // }
  1564. // group3.switch2.case2.grd_prcplist.redraw();
  1565. ///////////////////////////////////////////// 처방조회시 suppress로 묵인부분 맨처음 처방의 배경색과 동일하게 하기 위해 추가 start
  1566. var sRow1 = 0;
  1567. var eRow1 = -1;
  1568. var sRow2 = 0;
  1569. var eRow2 = -1;
  1570. var sRow3 = 0;
  1571. var eRow3 = -1;
  1572. var vDrugno = "";
  1573. var vRcptyn = "";
  1574. var vHosflag = "";
  1575. var vColor1 = "";
  1576. var vColor2 = "";
  1577. var vColor3 = "";
  1578. ds_main_prcporderhistory.addColumn("tempbgcolor1","string");
  1579. ds_main_prcporderhistory.addColumn("tempbgcolor2","string");
  1580. ds_main_prcporderhistory.addColumn("tempbgcolor3","string");
  1581. for(var i = 0 ; i < ds_main_prcporderhistory.rowcount ; i++) {
  1582. vDrugno = ds_main_prcporderhistory.getColumn(i,"drugno");
  1583. vColor1 = lf_getBgColor(i);
  1584. eRow1 = ds_main_prcporderhistory.findRowExpr("drugno != '"+vDrugno+"'",sRow1);
  1585. if(eRow1 < 0) eRow1 = ds_main_prcporderhistory.rowcount;
  1586. for(var j = i ; j < eRow1 ; j++) {
  1587. vRcptyn = ds_main_prcporderhistory.getColumn(j,"rcptyn");
  1588. vColor2 = lf_getBgColor(j);
  1589. sRow2 = j;
  1590. eRow2 = ds_main_prcporderhistory.findRowExpr("drugno != '"+vDrugno+"' || rcptyn != '"+vRcptyn+"'",sRow2);
  1591. if(eRow2 < 0) eRow2 = ds_main_prcporderhistory.rowcount;
  1592. for(var k = j ; k < eRow2 ; k++) {
  1593. vHosflag = ds_main_prcporderhistory.getColumn(k,"hosinhosoutflagnm");
  1594. vColor3 = lf_getBgColor(k);
  1595. sRow3 = k;
  1596. eRow3 = ds_main_prcporderhistory.findRowExpr("drugno != '"+vDrugno+"' || rcptyn != '"+vRcptyn+"' || hosinhosoutflagnm != '"+vHosflag+"'",sRow3);
  1597. if(eRow3 < 0) eRow3 = ds_main_prcporderhistory.rowcount;
  1598. for(var l = k ; l < eRow3 ; l++) {
  1599. //sysf_trace("i : "+i+" / j : "+j+" / k : "+k+" / l : "+l);sysf_trace("eRow1 : "+eRow1+" / eRow2 : "+eRow2+" / eRow3 : "+eRow3);
  1600. ds_main_prcporderhistory.setColumn(l,"tempbgcolor1",vColor1);
  1601. ds_main_prcporderhistory.setColumn(l,"tempbgcolor2",vColor2);
  1602. ds_main_prcporderhistory.setColumn(l,"tempbgcolor3",vColor3);
  1603. if(l == (eRow3-1)) {
  1604. k = l;
  1605. sRow3 = eRow3;
  1606. }
  1607. }
  1608. if(k == (eRow2-1)) {
  1609. j = k;
  1610. sRow2 = eRow2;
  1611. }
  1612. }
  1613. if(j == (eRow1-1)) {
  1614. i = j;
  1615. sRow1 = eRow1;
  1616. }
  1617. }
  1618. }
  1619. ///////////////////////////////////////////// 처방조회시 suppress로 묵인부분 맨처음 처방의 배경색과 동일하게 하기 위해 추가 end
  1620. }
  1621. function cf_TRADB10103(sSvcId, nErrorCode, sErrorMsg) {
  1622. arErrorCode.push(sSvcId, nErrorCode);
  1623. dsf_setDefaultVal(ds_main_prcporderhistory,"rcptyn:");
  1624. dsf_setDefaultVal(ds_main_prcporderhistory,"all");
  1625. for(var i = 0 ; i < ds_main_prcporderhistory.rowcount ; i++) {
  1626. ds_main_prcporderhistory.setColumn(i,"drugno",String(ds_main_prcporderhistory.getColumn(i,"drugno")).getTrim());
  1627. }
  1628. }
  1629. function lf_getBgColor(cRow) {
  1630. var vColor = "";
  1631. if(ds_main_prcporderhistory.getColumn(cRow,"execprcphistcd") == "C" || ds_main_prcporderhistory.getColumn(cRow,"execprcphistcd") == "50")
  1632. vColor = "#b9e5fb";
  1633. else if(ds_main_prcporderhistory.getColumn(cRow,"execprcphistcd") == "D")
  1634. vColor = "#7be6b7";
  1635. else if(ds_main_prcporderhistory.getColumn(cRow,"execprcphistcd") == "E")
  1636. vColor = "#f3e1bf";
  1637. else vColor = "white";
  1638. return vColor;
  1639. }
  1640. /****************************************************************************************
  1641. * Components : Dataset
  1642. * Components ID : ds_main_prcporderhistory
  1643. * Event : oncolumnchanged
  1644. * Argument : 01.obj : Object Event has occurred
  1645. * : 02.e : Event Object
  1646. * Description : 그리드네 체크박스 값 설정
  1647. ****************************************************************************************/
  1648. function ds_main_prcporderhistory_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  1649. {
  1650. if(e.columnid=="powdflag") {
  1651. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  1652. }
  1653. if(e.columnid=="selfprcpflag") {
  1654. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  1655. }
  1656. if(e.columnid=="selfdrugflag") {
  1657. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  1658. }
  1659. if(e.columnid=="erprcpflag") {
  1660. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  1661. }
  1662. if(e.columnid=="precureprcpflag") {
  1663. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  1664. }
  1665. if(e.columnid=="prcpauthflag") {
  1666. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  1667. }
  1668. }
  1669. /****************************************************************************************
  1670. * Components : Grid
  1671. * Components ID : group3.switch2.case2.grd_prcplist
  1672. * Event : oncelldblclick
  1673. * Argument : 01.obj : Object Event has occurred
  1674. * : 02.e : Event Object
  1675. * Description :
  1676. ****************************************************************************************/
  1677. function group3_switch2_case2_grd_prcplist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  1678. {
  1679. var row = ds_main_prcporderhistory.rowposition;
  1680. ds_send_srchdetlinfo.setColumn(0,"pid" , ds_main_baseinfo_patinfolist.getColumn(0,"pid"));
  1681. ds_send_srchdetlinfo.setColumn(0,"prcpno" , ds_main_prcporderhistory.getColumn(row,"prcpno"));
  1682. ds_send_srchdetlinfo.setColumn(0,"prcpdd" , ds_main_prcporderhistory.getColumn(row,"orgprcpdd"));
  1683. var oParam = {};
  1684. oParam.id = "TRADT10311";
  1685. oParam.service = "pharmacyprescriptionapp.BeforeCure";
  1686. oParam.method = "reqGetDetlPrcpInfo";
  1687. oParam.inds = "req=ds_send_srchdetlinfo";
  1688. oParam.outds = "ds_main_detlprcplist_detlprcpinfo=detlprcpinfo";
  1689. oParam.async = false;
  1690. oParam.callback = "cf_TRADT10311";
  1691. tranf_submit(oParam);
  1692. if(arErrorCode.pop("TRADT10311") > -1) {
  1693. group3.switch2.case2.group5.visible = true;
  1694. }
  1695. }
  1696. function cf_TRADT10311(sSvcId, nErrorCode, sErrorMsg) {
  1697. arErrorCode.push(sSvcId, nErrorCode);
  1698. }
  1699. /****************************************************************************************
  1700. * Components : Button
  1701. * Components ID : group3.switch2.case2.group5.button10
  1702. * Event : onclick
  1703. * Argument : 01.obj : Object Event has occurred
  1704. * : 02.e : Event Object
  1705. * Description :
  1706. ****************************************************************************************/
  1707. function group3_switch2_case2_group5_button10_onclick(obj:Button, e:ClickEventInfo)
  1708. {
  1709. group3.switch2.case2.group5.visible = false;
  1710. }
  1711. /****************************************************************************************
  1712. * Components : Edit
  1713. * Components ID : group3.switch2.case2.ipt_writid
  1714. * Event : onkeyup
  1715. * Argument : 01.obj : Object Event has occurred
  1716. * : 02.e : Event Object
  1717. * Description : 약사메모 사번 입력후 엔터
  1718. ****************************************************************************************/
  1719. function group3_switch2_case2_ipt_writid_onkeyup(obj:Edit, e:KeyEventInfo)
  1720. {
  1721. if(e.keycode == 13) {
  1722. // 20100126_laboru_약사메모 이력 관리 및 등록 기능 추가
  1723. //setInputNodeCurText(); //frmf_setInputNodeCurPid( objComp, mask )
  1724. obj.updateToDataset();
  1725. if(!utlf_isNull(ds_main_detailinfo_memoinfo.getColumn(0,"writid2").getTrim())) {
  1726. var writid = ds_main_detailinfo_memoinfo.getColumn(0,"writid2").getTrim();
  1727. ds_send_usersrchinfo.setColumn(0,"srchuserid",writid);
  1728. var oParam = {};
  1729. oParam.id = "TRADT00105";
  1730. oParam.service = "pharmacyprescriptionapp.MpsCheck";
  1731. oParam.method = "reqGetUserInfo";
  1732. oParam.inds = "req=ds_send_usersrchinfo";
  1733. oParam.outds = "ds_hidden_userinfo=item";
  1734. oParam.async = false;
  1735. oParam.callback = "cf_TRADT00105";
  1736. tranf_submit(oParam);
  1737. if (arErrorCode.pop("TRADT00105") > -1) {
  1738. ds_main_detailinfo_memoinfo.setColumn(0,"writid2",ds_main_detailinfo_memoinfo.getColumn(0,"writid2"));
  1739. ds_main_detailinfo_memoinfo.setColumn(0,"writnm",ds_hidden_userinfo.getColumn(0,"usernm"));
  1740. dsf_setDefaultVal(ds_main_detailinfo_memoinfo,"all");
  1741. // 반환된 약사정보(이름) 체크
  1742. if(!utlf_isNull(ds_main_detailinfo_memoinfo.getColumn(0,"writnm").getTrim())) {
  1743. // 메모 내용 입력여부 체크
  1744. if (utlf_isNull(ds_main_detailinfo_memoinfo.getColumn(0,"memo").getTrim())) {
  1745. sysf_messageBox("메모내용은", "I003");
  1746. // model.setFocus("tar_memo"); // <- 존재하지 않음
  1747. // group3.switch2.case2.tar_innrmemo.setFocus();
  1748. return;
  1749. } else {
  1750. fSubmitMemo();
  1751. }
  1752. } else {
  1753. sysf_messageBox("입력한 사번으로 이름 확인을", "E009");
  1754. return;
  1755. }
  1756. }
  1757. } else {
  1758. sysf_messageBox("약사메모 입력을 위해 사번은", "I003");
  1759. ds_main_detailinfo_memoinfo.setColumn(0,"writid2",ds_main_detailinfo_memoinfo.getColumn(0,"writid2").getTrim());
  1760. return;
  1761. }
  1762. }
  1763. }
  1764. function cf_TRADT00105(sSvcId, nErrorCode, sErrorMsg) {
  1765. arErrorCode.push(sSvcId, nErrorCode);
  1766. }
  1767. /****************************************************************************************
  1768. * Components : Button
  1769. * Components ID : group3.switch2.case2.button13
  1770. * Event : onclick
  1771. * Argument : 01.obj : Object Event has occurred
  1772. * : 02.e : Event Object
  1773. * Description : 이력버튼 클릭
  1774. ****************************************************************************************/
  1775. function group3_switch2_case2_button13_onclick(obj:Button, e:ClickEventInfo)
  1776. {
  1777. if (utlf_isNull(ds_send_srchdata.getColumn(0,"pid"))) {
  1778. sysf_messageBox("환자를", "C002");
  1779. return;
  1780. }
  1781. // 약사메모이력
  1782. ds_send_memosrchinfo.setColumn(0,"srchpid" , ds_send_srchdata.getColumn(0,"pid"));
  1783. ds_send_memosrchinfo.setColumn(0,"srchhosinhosoutflag" , "");
  1784. ds_send_memosrchinfo.setColumn(0,"srchioflag" , ds_send_srchdata.getColumn(0,"ioflag"));
  1785. ds_send_memosrchinfo.setColumn(0,"srchorddeptcd" , "");
  1786. ds_send_memosrchinfo.setColumn(0,"srchindd" , ds_send_srchdata.getColumn(0,"srchindd"));
  1787. // 20100218_laboru_약사메모 전체 조회
  1788. var objArg = new Object();
  1789. objArg.arg_ds_send_srchinfo = ds_send_memosrchinfo;
  1790. frmf_modal("SPADB60605", "SPADB60605", objArg, null, 0, 100, 150, null, null, null, null, null, "M");
  1791. }
  1792. /****************************************************************************************
  1793. * Components : Button
  1794. * Components ID : group3.switch2.case2.btn_new
  1795. * Event : onclick
  1796. * Argument : 01.obj : Object Event has occurred
  1797. * : 02.e : Event Object
  1798. * Description : 메모 추가 버튼 클릭
  1799. ****************************************************************************************/
  1800. function group3_switch2_case2_btn_new_onclick(obj:Button, e:ClickEventInfo)
  1801. {
  1802. fResetMemo();
  1803. }
  1804. /****************************************************************************************
  1805. * Components : Button
  1806. * Components ID : group3.switch2.case2.button14
  1807. * Event : onclick
  1808. * Argument : 01.obj : Object Event has occurred
  1809. * : 02.e : Event Object
  1810. * Description : 메모 저장 버튼 클릭
  1811. ****************************************************************************************/
  1812. function group3_switch2_case2_button14_onclick(obj:Button, e:ClickEventInfo)
  1813. {
  1814. // 20100126_laboru_약사메모 이력 관리 및 등록 기능 추가
  1815. if(!utlf_isNull(ds_main_detailinfo_memoinfo.getColumn(0,"writid2").getTrim())) {
  1816. var writid = ds_main_detailinfo_memoinfo.getColumn(0,"writid2").getTrim();
  1817. ds_send_usersrchinfo.setColumn(0,"srchuserid",writid);
  1818. var oParam = {};
  1819. oParam.id = "TRADT00105";
  1820. oParam.service = "pharmacyprescriptionapp.MpsCheck";
  1821. oParam.method = "reqGetUserInfo";
  1822. oParam.inds = "req=ds_send_usersrchinfo";
  1823. oParam.outds = "ds_hidden_userinfo=item";
  1824. oParam.async = false;
  1825. oParam.callback = "cf_TRADT00105";
  1826. tranf_submit(oParam);
  1827. if (arErrorCode.pop("TRADT00105") > -1) {
  1828. ds_main_detailinfo_memoinfo.setColumn(0,"writid2",ds_main_detailinfo_memoinfo.getColumn(0,"writid2").getTrim());
  1829. ds_main_detailinfo_memoinfo.setColumn(0,"writnm",ds_hidden_userinfo.getColumn(0,"usernm"));
  1830. dsf_setDefaultVal(ds_main_detailinfo_memoinfo,"all");
  1831. // 반환된 약사정보(이름) 체크
  1832. if(!utlf_isNull(ds_main_detailinfo_memoinfo.getColumn(0,"writnm").getTrim())) {
  1833. // 메모 내용 입력여부 체크
  1834. if (utlf_isNull(ds_main_detailinfo_memoinfo.getColumn(0,"memo").getTrim())) {
  1835. sysf_messageBox("메모내용은", "I003");
  1836. // model.setFocus("tar_memo"); // <- 존재하지 않음
  1837. // group3.switch2.case2.tar_innrmemo.setFocus();
  1838. return;
  1839. } else {
  1840. fSubmitMemo();
  1841. }
  1842. } else {
  1843. sysf_messageBox("입력한 사번으로 이름 확인을", "E009");
  1844. return;
  1845. }
  1846. }
  1847. } else {
  1848. sysf_messageBox("약사메모 입력을 위해 사번은", "I003");
  1849. ds_main_detailinfo_memoinfo.setColumn(0,"writid2",ds_main_detailinfo_memoinfo.getColumn(0,"writid2").getTrim());
  1850. return;
  1851. }
  1852. }
  1853. /****************************************************************************************
  1854. * Components : Button
  1855. * Components ID : group3.switch2.case2.button9
  1856. * Event : onclick
  1857. * Argument : 01.obj : Object Event has occurred
  1858. * : 02.e : Event Object
  1859. * Description : 조제시 참조사항 버튼 클릭
  1860. ****************************************************************************************/
  1861. function group3_switch2_case2_button9_onclick(obj:Button, e:ClickEventInfo)
  1862. {
  1863. ds_send_memosrchinfo.setColumn(0,"srchioflag","O");
  1864. var objArg = new Object();
  1865. objArg.arg_ds_send_srchinfo = ds_send_memosrchinfo;
  1866. frmf_modal("SPADB60602", "SPADB60602", null, null, 0, 100, 160, null, null, null, null, null, "M");
  1867. }
  1868. /****************************************************************************************
  1869. * Components : Grid
  1870. * Components ID : group3.switch2.case6.grd_reqlist
  1871. * Event : oncelldblclick
  1872. * Argument : 01.obj : Object Event has occurred
  1873. * : 02.e : Event Object
  1874. * Description :
  1875. ****************************************************************************************/
  1876. function group3_switch2_case6_grd_reqlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  1877. {
  1878. var formrecseq = ds_main_reqlist.getColumn(ds_main_reqlist.rowposition,"formrecseq");
  1879. frmf_setParameter("openmode" , "deptcnstform");
  1880. frmf_setParameter("formrecseq", formrecseq);
  1881. frmf_setParameter("overwrite" , "false");
  1882. frmf_setParameter("replcnts" , "");
  1883. frmf_modal("SSMMR01100", "SSMMR01100", null, null, 1, 0, 0, null, null, null, null, null, "M");
  1884. }
  1885. /****************************************************************************************
  1886. * Components : Edit
  1887. * Components ID : group3.group6.input11
  1888. * Event : onkeydown
  1889. * Argument : 01.obj : Object Event has occurred
  1890. * : 02.e : Event Object
  1891. * Description : 엔터로 조회 실행
  1892. ****************************************************************************************/
  1893. function group3_group6_input11_onkeydown(obj:Edit, e:KeyEventInfo)
  1894. {
  1895. if(e.keycode == 13) {
  1896. obj.updateToDataset();
  1897. fView();
  1898. }
  1899. }
  1900. /****************************************************************************************
  1901. * Components : Grid
  1902. * Components ID : group3.switch2.case2.grd_prcplist
  1903. * Event : oncellclick
  1904. * Argument : 01.obj : Object Event has occurred
  1905. * : 02.e : Event Object
  1906. * Description : 약번호 선택시 같은 그룹 전체 선택되도록
  1907. ****************************************************************************************/
  1908. function group3_switch2_case2_grd_prcplist_oncellclick(obj:Grid, e:GridClickEventInfo)
  1909. {
  1910. return; // 약번호가 같은게 꼭 붙어 나오지 않더라... 다른 방법을 찾을때까지 일단 막는다
  1911. var sColNm = "";
  1912. if(e.col == obj.getBindCellIndex("body","drugno") || e.col == obj.getBindCellIndex("body","hosinhosoutflagnm") || e.col == obj.getBindCellIndex("body","execprcphistcd"))
  1913. sColNm = "drugno";
  1914. // else if(e.col == obj.getBindCellIndex("body","hosinhosoutflagnm")) sColNm = "hosinhosoutflagnm";
  1915. // else if(e.col == obj.getBindCellIndex("body","execprcphistcd")) sColNm = "execprcphistcd";
  1916. else return;
  1917. var cValue = ds_main_prcporderhistory.getColumn(e.row,sColNm);
  1918. var oExtCmn = new ExtCommon;
  1919. var nChkRows = new Array();
  1920. nChkRows = oExtCmn.findRows(ds_main_prcporderhistory, sColNm, cValue);
  1921. for(var i = 0 ; i < nChkRows.length ; i++) {
  1922. ds_main_prcporderhistory.selectRow(nChkRows[i]);
  1923. }
  1924. }
  1925. function group3_switch2_case2_grd_prcplist_onrbuttonup(obj:Grid, e:GridMouseEventInfo)
  1926. {
  1927. if(e.row < 0 || e.col < 0) return;
  1928. grdf_setSelectedCell(obj, e);
  1929. PopupMenu00.trackPopup(e.screenX, e.screenY);
  1930. return true;
  1931. }
  1932. function group3_PopupMenu00_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  1933. {
  1934. }
  1935. function PopupMenu00_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  1936. {
  1937. eval(e.id + "()");
  1938. }
  1939. function group3_switch2_case2_grd_prcplist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  1940. {
  1941. if( e.row > -1 ){
  1942. grdf_setSelectedCell(obj, e); // 선택된 행 확실히 선택해줌
  1943. }
  1944. }
  1945. function fDrugInfo()
  1946. {
  1947. sDrugCd = ds_main_prcporderhistory.getColumn(ds_main_prcporderhistory.rowposition, "prcpcd");
  1948. dsf_createDsRow("ds_req_druginfo", [{col:"srchdrugcd", type:"string", size:256, val:sDrugCd}]);
  1949. var objArg = new Object(); //약품편람 조회 화면 open시 약코드 parameter기본 설정
  1950. objArg.arg_ds_hidden_receivedata = ds_req_druginfo;
  1951. var curPopupObj = frmf_findPopup("SMADB01900"); //활성화된 화면 object loading
  1952. if(!utlf_isNull(curPopupObj)) {
  1953. curPopupObj.fInit(objArg.arg_ds_hidden_receivedata);
  1954. curPopupObj.setFocus();
  1955. } else {
  1956. frmf_open("SMADB01900", "SMADB01900", objArg, null, 0, 0, 0, null, null, null, null, null, "M");
  1957. }
  1958. dsf_deleteDs("ds_req_druginfo");
  1959. }
  1960. function fPatInfo()
  1961. {
  1962. var pid = ds_main_baseinfo_patinfolist.getColumn(0, "pid");
  1963. frmf_setParameter("SMMMO02500_cond", pid);
  1964. frmf_setParameter("SMMMO02500_pid", pid);
  1965. var curMemoObj = frmf_findPopup("SMMMO02500");
  1966. if(!utlf_isNull(curMemoObj)) {
  1967. curMemoObj.fInitialize_SMMMO02500();
  1968. frmf_setFocusPop("SMMMO02500");
  1969. }else{
  1970. frmf_open("SMMMO02500","SMMMO02500","","",1,20,128,"","","","","","M");
  1971. }
  1972. }
  1973. ]]></Script>
  1974. </Form>
  1975. </FDL>