SMAER00300_실시관리(핵체내).xrw 193 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>실시관리(핵의학체내)</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <ordlist1>
  11. <mainordlist1>
  12. <no/>
  13. <pid/>
  14. <patnm/>
  15. <prcpgenrflag/>
  16. <wardcd/>
  17. <depthngnm/>
  18. <execprcpuniqno/>
  19. <orddeptcd/>
  20. <rsrvdd/>
  21. <execprcpstatcd/>
  22. <prcpdd/>
  23. <roomcd/>
  24. <orddrid/>
  25. <rcptyn/>
  26. <aftrcptinfo/>
  27. </mainordlist1>
  28. <subordlist4/>
  29. <mainordlist3/>
  30. </ordlist1>
  31. <ordlist2>
  32. <mainordlist2>
  33. <no/>
  34. <calcscorcd/>
  35. <prcpnm/>
  36. <pid/>
  37. <patnm/>
  38. <execprcpuniqno/>
  39. <orddeptcd/>
  40. <rsrvdd/>
  41. <execprcpstatcd/>
  42. <prcpdd/>
  43. <roomcd/>
  44. <orddrid/>
  45. <rcptyn/>
  46. <prcpgenrflag/>
  47. <wardcd/>
  48. </mainordlist2>
  49. <mainordlist3/>
  50. </ordlist2>
  51. <ordlist3>
  52. <mainordlist>
  53. <mainordlist3/>
  54. </mainordlist>
  55. </ordlist3>
  56. <subordlist>
  57. <subordlist1>
  58. <check/>
  59. <pid/>
  60. <patnm/>
  61. <prcpdd/>
  62. <prcphopedd/>
  63. <prcpnm/>
  64. <execprcpstatcd/>
  65. <payflagcd/>
  66. <rsrvdt/>
  67. <prcpgenrflag/>
  68. <orddepthngnm/>
  69. <orddrnm/>
  70. <ivinputyn/>
  71. <cntctel/>
  72. <arvtm/>
  73. <excueqcd1/>
  74. <prcpkindcd/>
  75. <examroomnm/>
  76. <rgstdepthngnm/>
  77. <rgstridnm/>
  78. <basecd/>
  79. <rsrvdt/>
  80. <prcphopedt/>
  81. <execprcpuniqno/>
  82. <calcscorcd/>
  83. <prcpexecdeptcd/>
  84. <excuroomgrpcd/>
  85. <excuroomcd/>
  86. <rgstdeptcd/>
  87. <rgstrid/>
  88. <portprcpflag/>
  89. <inflag/>
  90. <rcptacptyn/>
  91. <execbaseflag/>
  92. <lrgcd/>
  93. <mdlcd/>
  94. <excupartcd/>
  95. <modality/>
  96. <rcptno/>
  97. <acptseqno/>
  98. <acptrem/>
  99. <execrem/>
  100. <prcpdelivefact/>
  101. <execrid1/>
  102. <execrid2/>
  103. <execrid3/>
  104. <execrid4/>
  105. <acptid/>
  106. <orddeptcd/>
  107. <excuexecfromdt1/>
  108. <basesuppdeptcd/>
  109. <orddd/>
  110. <cretno/>
  111. <orddrid/>
  112. <pacsnocretyn/>
  113. <rgsttm/>
  114. <eqmtifyn/>
  115. <eqcdyn/>
  116. <prcpexecdeptcd/>
  117. <prcpno/>
  118. <pacsnocretcdyn/>
  119. <choiordflag/>
  120. <specdrid/>
  121. <specdrnm/>
  122. <prcphistno/>
  123. </subordlist1>
  124. <subordlist3>
  125. <diagdd/>
  126. <diagengnm/>
  127. <diagcd/>
  128. <orddeptnm/>
  129. <orddrnm/>
  130. </subordlist3>
  131. <subordlist4>
  132. <memodd/>
  133. <memorem/>
  134. </subordlist4>
  135. </subordlist>
  136. <subordlist2>
  137. <subordlist3>
  138. <diagdd/>
  139. <diagengnm/>
  140. <diagcd/>
  141. <orddeptnm/>
  142. <orddrnm/>
  143. </subordlist3>
  144. </subordlist2>
  145. <patinfo>
  146. <patinfolist/>
  147. </patinfo>
  148. <popupendflag/>
  149. <eqcdlist>
  150. <eqcdlist1>
  151. <prcpdd/>
  152. <excueqcd/>
  153. <excuexecfromdt/>
  154. <execprcpuniqno/>
  155. </eqcdlist1>
  156. </eqcdlist>
  157. <exculist>
  158. <subordlist3>
  159. <rows/>
  160. </subordlist3>
  161. </exculist>
  162. <scrtlist>
  163. <scrtuselist>
  164. <pid/>
  165. <patnm/>
  166. <drugdt/>
  167. <progdt/>
  168. </scrtuselist>
  169. </scrtlist>
  170. <subpopordlist>
  171. <subordlist5/>
  172. </subpopordlist>
  173. <codelist>
  174. <item/>
  175. </codelist>
  176. <specdridlist/>
  177. </main>
  178. <send>
  179. <data>
  180. <cmb_info>
  181. <initexecroom>
  182. <excuroomcdid/>
  183. <excuroomcdid2/>
  184. </initexecroom>
  185. <initexecward>
  186. <execwardcdid/>
  187. </initexecward>
  188. <initexcueq>
  189. <excueqcdid/>
  190. </initexcueq>
  191. <initioflag>
  192. <ioflag/>
  193. </initioflag>
  194. <initexcuroomgrp>
  195. <excuroomgrpcdid/>
  196. </initexcuroomgrp>
  197. </cmb_info>
  198. <srchpid/>
  199. <srchdate1/>
  200. <srchdate2/>
  201. <acptlistflag>J</acptlistflag>
  202. <srchtotal/>
  203. <wardcd/>
  204. <grd_info>
  205. <grid_data>
  206. </grid_data>
  207. </grd_info>
  208. <tobeacptprcp>
  209. <tobeacptprcplist/>
  210. </tobeacptprcp>
  211. <tobeacptcnclprcp>
  212. <tobeacptcnclprcplist/>
  213. </tobeacptcnclprcp>
  214. <tobeholdprcp>
  215. <tobeholdprcplist/>
  216. </tobeholdprcp>
  217. <tobeholdcnclprcp>
  218. <tobeholdcnclprcplist/>
  219. </tobeholdcnclprcp>
  220. <nuclinput>
  221. <nuclinptlist/>
  222. </nuclinput>
  223. <execprcpuniq>
  224. <execprcpuniqlist/>
  225. </execprcpuniq>
  226. <setspecdrcd/>
  227. </data>
  228. <ivdata>
  229. <prcpdd/>
  230. <nuclcd/>
  231. <drugdd/>
  232. <drugtm/>
  233. <drugqty/>
  234. <cstqty/>
  235. <nuclrem/>
  236. <compdcd/>
  237. <drugmthdcd/>
  238. <phormcd/>
  239. <scrtrmcd/>
  240. <injpartcd/>
  241. <suplcustcd/>
  242. <ht/>
  243. <bdwt/>
  244. <bsugarqty/>
  245. <labbkg/>
  246. <patbkg/>
  247. <smplact/>
  248. <thyrmea/>
  249. <testrsltval/>
  250. <execrid/>
  251. <execprcpuniqno/>
  252. <srchphormcd/>
  253. <stndactqty/>
  254. <stndactinsptm/>
  255. <stndpostactqty/>
  256. <stndpostactinsptm/>
  257. <nuclinsptm/>
  258. <nucldrugrestqty/>
  259. <nucldruginsptm/>
  260. <smplnfstcnt/>
  261. <smplnfstbcolltm/>
  262. <smplnscndcnt/>
  263. <smplnscndbcolltm/>
  264. <smplnthirdcnt/>
  265. <smplnthirdcolltm/>
  266. <smplnfourthcnt/>
  267. <smplnfourthcolltm/>
  268. </ivdata>
  269. <globalinstance>
  270. <instance1/>
  271. </globalinstance>
  272. <windowloadinstance/>
  273. <eqdata>
  274. <eqprcpdd/>
  275. <eqexecprcpuniqno/>
  276. <excueqcd/>
  277. </eqdata>
  278. <data2>
  279. <srchcond/>
  280. <pid/>
  281. <hngnm/>
  282. <rrgstno1/>
  283. <rrgstno2/>
  284. <acptdd/>
  285. </data2>
  286. <temp>
  287. <pid/>
  288. <calcscorcd/>
  289. </temp>
  290. <savedata/>
  291. <grupcdid/>
  292. </send>
  293. <init>
  294. <cmb_info>
  295. <initexcuroomgrp>
  296. <excuroomgrpcdid/>
  297. <excuroomgrpcdnm/>
  298. </initexcuroomgrp>
  299. <excuroom>
  300. <initexecroom>
  301. <excuroomcdid/>
  302. <excuroomcdnm/>
  303. </initexecroom>
  304. </excuroom>
  305. <initexecward>
  306. <execwardcdid/>
  307. <execwardcdnm/>
  308. </initexecward>
  309. <initexcueq>
  310. <excueqcdid/>
  311. <excueqcdnm/>
  312. </initexcueq>
  313. <initexecrid>
  314. <execridnm/>
  315. <execridid/>
  316. </initexecrid>
  317. <initphoroom>
  318. <phoroomcdid/>
  319. <phoroomcdnm/>
  320. <phoroomgrpcdid/>
  321. </initphoroom>
  322. </cmb_info>
  323. <cmb_info2>
  324. <initexecroom>
  325. <excuroomcdid/>
  326. <excuroomcdnm/>
  327. </initexecroom>
  328. </cmb_info2>
  329. <cmb_info3>
  330. <phorm>
  331. <lable/>
  332. <value/>
  333. </phorm>
  334. <nuclcd>
  335. <lable/>
  336. <value/>
  337. </nuclcd>
  338. <compd>
  339. <lable/>
  340. <value/>
  341. </compd>
  342. <drugmthdcd>
  343. <lable/>
  344. <value/>
  345. </drugmthdcd>
  346. <injpartcd>
  347. <lable/>
  348. <value/>
  349. </injpartcd>
  350. </cmb_info3>
  351. <baseinfo>
  352. <initexecprcpstatcd/>
  353. <initpayflagcd/>
  354. <initprcpgenrflagcd/>
  355. </baseinfo>
  356. <popupmenu>
  357. <grid01>
  358. <item>
  359. <name>체외검사결과보기</name>
  360. <func>fBColl</func>
  361. </item>
  362. <item>
  363. <name>-</name>
  364. <func/>
  365. </item>
  366. <item>
  367. <name>부서별기록관리</name>
  368. <func>fDeptCaseRecMngt</func>
  369. </item>
  370. <item>
  371. <name>-</name>
  372. <func/>
  373. </item>
  374. <item>
  375. <name>대기환자등록</name>
  376. <func>fSetWaitExcuRoomPatList</func>
  377. </item>
  378. </grid01>
  379. <grid02>
  380. <item>
  381. <name>체외검사결과보기</name>
  382. <func>fBColl</func>
  383. </item>
  384. <item>
  385. <name>-</name>
  386. <func/>
  387. </item>
  388. <item>
  389. <name>부서별기록관리</name>
  390. <func>fDeptCaseRecMngt</func>
  391. </item>
  392. <item>
  393. <name>-</name>
  394. <func/>
  395. </item>
  396. <item>
  397. <name>대기환자등록</name>
  398. <func>fSetWaitExcuRoomPatList</func>
  399. </item>
  400. <item>
  401. <name>선택진료의변경</name>
  402. <func>fSpecdrChange</func>
  403. </item>
  404. </grid02>
  405. </popupmenu>
  406. <waitfoominfo>
  407. <waitroomcdval/>
  408. </waitfoominfo>
  409. </init>
  410. <hidden>
  411. <count/>
  412. <comcd/>
  413. </hidden>
  414. <temp1/>
  415. </root>
  416. </instance>
  417. <script type="javascript" ev:event="xforms-ready">
  418. <![CDATA[
  419. // 부서 코드 조회
  420. aezfSetSuppDeptcd();
  421. model.setValue("/root/send/data/srchdate1", getCurrentDate().toDate().getAddDate(-7,"D").getDateFormat("YYYYMMDD"));
  422. model.setValue("/root/send/data/srchdate2", getCurrentDate());
  423. var excuroomgrpcdid = "영상검사실";
  424. // 투여대기
  425. btn_roomupdt.disabled = false; // 실변경
  426. btn_partexec.disabled = true; // 시작
  427. btn_contcure.disabled = true; // 연속검사
  428. btn_druginpt.disabled = false; // 투여입력
  429. btn_drugcncl.disabled = true; // 투여취소
  430. btn_acpt.disabled = true; // 실시완료
  431. btn_acptcncl.disabled = true; // 취소
  432. var excuroomgrp = model.property("exec_excuroomgrp");
  433. if (excuroomgrp != "") {
  434. excuroomgrpcdid = excuroomgrp;
  435. }
  436. var excuroom = model.property("exec_excuroom");
  437. if (excuroom != "") {
  438. model.setValue("/root/send/data/cmb_info/initexecroom/excuroomcdid", excuroom);
  439. }
  440. var srchdate1 = model.property("exec_srchdate1");
  441. if (srchdate1 != "") {
  442. model.setValue("/root/send/data/srchdate1", srchdate1);
  443. }
  444. var srchdate2 = model.property("exec_srchdate2");
  445. if (srchdate2 != "") {
  446. model.setValue("/root/send/data/srchdate2", srchdate2);
  447. }
  448. //20101012 NM002 각검사실별 해당 기술적기록 탭 선택 -박재영
  449. model.setValue("/root/send/grupcdid","NM002");
  450. submit("TRAEB00010", false);
  451. model.makeValue("/root/send/data/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  452. model.makeValue("/root/send/data/basesuppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  453. model.setValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid", excuroomgrpcdid);
  454. // 기술적 기록 입력 화면 설정
  455. fSetToggle(excuroomgrpcdid);
  456. var acptlistflag = model.property("exec_acptlistflag");
  457. if (acptlistflag != "" ) {
  458. model.setValue("/root/send/data/acptlistflag", acptlistflag);
  459. // 버튼 활성화 기준
  460. fBtnDisabled(acptlistflag);
  461. } else if (excuroomgrp !="" ){
  462. // 버튼 활성화 기준
  463. fBtnDisabled(model.getValue("/root/send/data/acptlistflag"));
  464. }
  465. // 기본 정보 조회
  466. submit("TRAER00301", false);
  467. // 공통코드 조회
  468. zbcfGetCodeList( new Array("M0010", "M0011","M0029","A0608"), new Array("/root/init/baseinfo/initprcpgenrflagcd", "/root/init/baseinfo/initexecprcpstatcd", "/root/init/baseinfo/initpayflagcd","/root/init/waitfoominfo/waitroomcdval") );
  469. submit("TRZBC00101", false);
  470. aezfInsertInstance("M0010", "전체", "", "/root/init/baseinfo/initprcpgenrflagcd");
  471. var cnt = getNodesetCount("/root/init/baseinfo/initexecprcpstatcd/M0011");
  472. cnt++;
  473. model.makeValue("/root/init/baseinfo/initexecprcpstatcd/M0011[" + cnt + "]/cdnm","예약대기");
  474. model.makeValue("/root/init/baseinfo/initexecprcpstatcd/M0011[" + cnt + "]/cdid","340");
  475. cnt++;
  476. model.makeValue("/root/init/baseinfo/initexecprcpstatcd/M0011[" + cnt + "]/cdnm","예약보류");
  477. model.makeValue("/root/init/baseinfo/initexecprcpstatcd/M0011[" + cnt + "]/cdid","350");
  478. fInitGrid();
  479. grd_subordlist1.fixedcellcheckbox(0,1)=true;
  480. // 부서별 메모현황
  481. model.makeNode("/root/main/subordlist/subordlist4");
  482. copyNodeType("/root/main/subordlist/subordlist4","/root/init/cmb_info/subordlist4","replace");
  483. // 2011.02.14 cyw 선택진료의 가져오기
  484. submit("TRAEA01136");
  485. model.refresh();
  486. datagrid1.autoResize = true;
  487. ]]>
  488. </script>
  489. <bind id="bind_execprcpstatcd" ref="/root/main/subordlist/subordlist1/execprcpstatcd" readonly="../execprcpstatcd!=''"/>
  490. <bind id="bind_payflagcd" ref="/root/main/subordlist/subordlist1/payflagcd" readonly="../payflagcd!=''"/>
  491. <bind id="bind_wardcd" ref="/root/main/ordlist1/mainordlist1/wardcd" readonly="../wardcd!=''"/>
  492. <bind id="bind_wardcd2" ref="/root/main/ordlist1/mainordlist2/wardcd" readonly="../wardcd!=''"/>
  493. <bind id="bind_prcpgenrflagcd" ref="/root/main/subordlist/subordlist1/prcpgenrflag" readonly="../prcpgenrflag!=''"/>
  494. <bind id="bind_prcpgenrflagcd2" ref="/root/main/ordlist1/mainordlist1/prcpgenrflag" readonly="../prcpgenrflag!=''"/>
  495. <bind id="bind_excueqcd1" ref="/root/main/ordlist1/mainordlist1/excueqcd1" readonly="../excueqcd1!=''"/>
  496. <bind id="bind_excueqcd2" ref="/root/main/ordlist1/mainordlist1/excueqcd2" readonly="../excueqcd2!=''"/>
  497. <bind id="bind_excueqcd3" ref="/root/main/ordlist1/mainordlist1/excueqcd3" readonly="../excueqcd3!=''"/>
  498. <bind id="bind_excueqcd4" ref="/root/main/ordlist1/mainordlist1/excueqcd4" readonly="../excueqcd4!=''"/>
  499. <bind id="bind_excueqcd5" ref="/root/main/ordlist1/mainordlist1/excueqcd5" readonly="../excueqcd5!=''"/>
  500. <submission id="TRZBC00101"/>
  501. <submission id="TRAER00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info"/>
  502. <submission id="TRAER00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance" resultref="/root/main/ordlist1"/>
  503. <submission id="TRAER00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance" resultref="/root/main/ordlist2"/>
  504. <submission id="TRAER00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordlist1"/>
  505. <submission id="TRAER00305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordlist2"/>
  506. <submission id="TRAER00306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordlist1"/>
  507. <submission id="TRAER00307" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordlist2"/>
  508. <submission id="TRAER00308" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/subordlist"/>
  509. <submission id="TRAER00309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/ivdata" replace="instance" resultref="/root/main/mainordlist2"/>
  510. <submission id="TRAER00314" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/eqdata" replace="instance" resultref="/root/main/eqcdlist"/>
  511. <submission id="TRAER00315" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/scrtlist"/>
  512. <submission id="TRAER00316" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/subpopordlist"/>
  513. <submission id="TXAER00211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
  514. <submission id="TXAER00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
  515. <submission id="TXAER00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
  516. <submission id="TXAER00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
  517. <submission id="TXAER00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
  518. <submission id="TXAER00305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
  519. <submission id="TXAER00306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
  520. <submission id="TXAER00307" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
  521. <submission id="TXAER00308" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
  522. <submission id="TRAEA01418" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/cmb_info"/>
  523. <submission id="TRAEA02009" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/patinfo" replace="instance" resultref="/root/reqdata1"/>
  524. <submission id="TRAEB02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/matrcstcodelist"/>
  525. <submission id="TXAEA02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/patinfo" replace="instance" resultref="/root/temp"/>
  526. <submission id="TXMNV07007" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/returnsts"/>
  527. <submission id="TRAEB00010" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/codelist"/>
  528. <submission id="TRAEA01136" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/main/specdridlist"/>
  529. <submission id="TXAEA01512" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/setspecdrcd" resultref="/root/temp1"/>
  530. </model>
  531. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  532. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  533. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  534. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  535. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  536. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  537. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  538. <script type="javascript" src="../../../emr/waitguideweb/js/SMMNV12000.js"/>
  539. <script type="javascript">
  540. <![CDATA[
  541. /* @group : 접수관리(핵의학체내)
  542. * @ver : 2007.03.21
  543. * @by : 장준원
  544. * @-----------------------------------
  545. * @type : function
  546. * @access : public
  547. * @desc : Grid 초기화를 위한 Function
  548. */
  549. function fInitGrid() {
  550. //chk_statecd.value = "";
  551. fInitTar();
  552. model.resetInstanceNode("/root/send/data/srchpid");
  553. model.resetInstanceNode("/root/send/ivdata");
  554. model.removenode("/root/main/ordlist1");
  555. model.removenode("/root/main/ordlist2");
  556. model.removenode("/root/main/ordlist3");
  557. model.removenode("/root/main/subordlist");
  558. model.removenode("/root/main/mainordlist2");
  559. model.removenode("/root/main/exculist");
  560. model.removenode("/root/main/eqcdlist");
  561. model.removenode("/root/main/scrtlist");
  562. }
  563. /* @group : 실시관리(핵의학체내)
  564. * @ver : 2007.03.21
  565. * @by : 장준원
  566. * @-----------------------------------
  567. * @type : function
  568. * @access : public
  569. * @desc : TextArea 초기화 Function
  570. */
  571. function fInitTar() {
  572. tar_prcpremfact.value = "-";
  573. tar_acptrem.value = "-";
  574. tar_execrem.value = "-";
  575. }
  576. /* @group : 접수관리(진단방사선)
  577. * @ver : 2007.03.21
  578. * @by : 장준원
  579. * @-----------------------------------
  580. * @type : function
  581. * @access : public
  582. * @desc : Toggle선택 조회를 위한 선택 Function
  583. */
  584. function fGetToggleAcptList() {
  585. // 실시관리 : 대기/실시/실시완료 조회
  586. fGetExamCureAcptList();
  587. }
  588. /* @group : 실시관리(핵의학체내)
  589. * @ver : 2007.03.21
  590. * @by : 장준원
  591. * @-----------------------------------
  592. * @type : function
  593. * @access : public
  594. * @desc : 대기/실시/실시완료 조회 Submission Function
  595. */
  596. function fGetExamCureAcptList() {
  597. var acptlistflag = model.getValue("/root/send/data/acptlistflag");
  598. if (acptlistflag == "") {
  599. messageBox("상태를 선택해 주십시오.","I999");
  600. return "0";
  601. }
  602. var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
  603. var excuroomcdid = model.getValue("/root/send/data/cmb_info/initexecroom/excuroomcdid");
  604. if (excuroomgrpcdid == "") {
  605. messageBox("검사실 그룹을 선택해 주십시오.","I999");
  606. return "0";
  607. }
  608. fInitGrid();
  609. // Top 정보 clear
  610. delPatientInfos();
  611. // flag Setting
  612. model.makeValue("/root/send/data1/acptlistflag", acptlistflag);
  613. model.makeValue("/root/send/data1/excuroomgrpcdid", excuroomgrpcdid);
  614. model.makeValue("/root/send/data1/excuroomcdid", excuroomcdid);
  615. model.makeValue("/root/send/data1/instance1", model.getValue("/root/send/globalinstance/instance1"));
  616. model.makeValue("/root/send/data1/srchdate1", model.getValue("/root/send/data/srchdate1"));
  617. model.makeValue("/root/send/data1/srchdate2", model.getValue("/root/send/data/srchdate2"));
  618. model.resetInstanceNode("/root/send/ivdata");
  619. model.resetInstanceNode("/root/send/ivdata1");
  620. model.resetInstanceNode("/root/send/ivdata2");
  621. model.resetInstanceNode("/root/send/ivdata3");
  622. model.resetInstanceNode("/root/send/ivdata4");
  623. if ( btn_case1.selected == true ) {
  624. model.makeValue("/root/send/data1/ioflag","O");
  625. model.makeValue("/root/send/data1/srchflag", 'P');
  626. model.toggle("case1");
  627. } else if ( btn_case2.selected == true ) {
  628. model.makeValue("/root/send/data1/ioflag","I");
  629. model.makeValue("/root/send/data1/srchflag", 'P');
  630. model.toggle("case1");
  631. } else if ( btn_case3.selected == true ) {
  632. model.makeValue("/root/send/data1/ioflag","");
  633. model.makeValue("/root/send/data1/srchflag", 'C');
  634. model.toggle("case2");
  635. }
  636. var temppid = model.getValue("/root/send/temp/pid");
  637. var tempcalcscorcd = model.getValue("/root/send/temp/calcscorcd");
  638. var flag = false;
  639. // 환자별
  640. if ( btn_case3.selected != true ) {
  641. submit("TRAER00302", false); // submit("TRAER00303");
  642. model.resetInstanceNode("/root/init/cmb_info/initexcuroom");
  643. model.copyNode("/root/init/cmb_info/excuroom","/root/main/ordlist1/excuroom");
  644. model.makeNode("/root/main/ordlist3/mainordlist");
  645. copyNodeType("/root/main/ordlist3/mainordlist", "/root/main/ordlist1/mainordlist", "replace");
  646. // 입원/외래 일 경우
  647. if (temppid != "") {
  648. for (i = 1; i< grd_mainordlist1.rows; i++) {
  649. var pid = model.getValue("/root/main/ordlist1/mainordlist1[" + i + "]/pid");
  650. if (temppid == pid) {
  651. flag = true;
  652. grd_mainordlist1.row = i;
  653. }
  654. }
  655. // 해당 등록번호가 있는 경우
  656. if (flag == true) {
  657. fGetExamCurePrcpList(grd_mainordlist1);
  658. }
  659. } else {
  660. delPatientInfos();
  661. }
  662. // 검사별
  663. } else {
  664. submit("TRAER00303", false); // submit("TRAER00307");
  665. model.resetInstanceNode("/root/init/cmb_info/initexcuroom");
  666. model.copyNode("/root/init/cmb_info/excuroom","/root/main/ordlist2/excuroom");
  667. model.makeNode("/root/main/ordlist3/mainordlist");
  668. copyNodeType("/root/main/ordlist3/mainordlist", "/root/main/ordlist2/mainordlist", "replace");
  669. // 검사별 일 경우
  670. if (tempcalcscorcd != "") {
  671. for (i = 1; i< grd_mainordlist2.rows; i++) {
  672. var calcscorcd= model.getValue("/root/main/ordlist2/mainordlist2[" + i + "]/calcscorcd");
  673. if (tempcalcscorcd == calcscorcd) {
  674. flag = true;
  675. grd_mainordlist2.row = i;
  676. }
  677. }
  678. // 해당 처방이 있는 경우
  679. if (flag == true) {
  680. fGetExamCurePrcpList(grd_mainordlist2);
  681. }
  682. }
  683. }
  684. model.makeValue("/root/send/data/cmb_info/initexecroom/excuroomcdid2", excuroomcdid);
  685. cmb_scrtcd.choices.itemset.attribute("nodeset") = "/root/init/cmb_info/initscrtroom[basecdcnts='"+ excuroomcdid + "']";
  686. model.makeValue("/root/send/ivdata/srchphormcd", excuroomcdid);
  687. // 대기실 현황
  688. fGetScrtRoomUseList();
  689. model.setValue("/root/send/data/srchpid","");
  690. model.setValue("/root/send/data/cmb_info/initexcueq/excueqcdid","");
  691. model.refresh();
  692. // 연속검사 구분
  693. fSetSubDetailGrid2();
  694. //2013.02.13 by kya 후불 수납
  695. for(var i = 1 ; i < grd_mainordlist1.rows ; i++ ){
  696. grd_mainordlist1.rowstyle(i, "data", "background-color") = "#ffffff";
  697. }
  698. aezfSetRowStyle("grd_mainordlist1" , "15^16^17" , "V^P^A" , "aftrcptinfo" ); //20101005 cell단위가 아닌 row단위로 표시 - 권영애
  699. }
  700. /* @group : 접수관리(핵의학체내)
  701. * @ver : 2007.03.21
  702. * @by : 장준원
  703. * @-----------------------------------
  704. * @type : function
  705. * @access : public
  706. * @desc : 상병 조회를 위한 선택 Function
  707. */
  708. function fGetExamCureDiagList(maingridlistid) {
  709. if ( maingridlistid.row == 0 ) return;
  710. var row = maingridlistid.row;
  711. var pid = maingridlistid.valueMatrix(row, maingridlistid.colRef("pid"));
  712. var prcpgenrflag = maingridlistid.valueMatrix(row, maingridlistid.colRef("prcpgenrflag")); // 상병조회에서 사용 pid, prcpgenrflag,orddeptcd,prcpdd
  713. var orddeptcd = maingridlistid.valueMatrix(row, maingridlistid.colRef("orddeptcd"));
  714. var prcpdd = maingridlistid.valueMatrix(row, maingridlistid.colRef("prcpdd"));
  715. model.makeValue("/root/send/data/grd_info/grid_data/pid", pid);
  716. model.makeValue("/root/send/data/grd_info/grid_data/prcpgenrflag", prcpgenrflag);
  717. model.makeValue("/root/send/data/grd_info/grid_data/orddeptcd", orddeptcd);
  718. model.makeValue("/root/send/data/grd_info/grid_data/prcpdd", prcpdd);
  719. submit("TRAER00310");
  720. }
  721. /* @group : 접수관리(핵의학체내)
  722. * @ver : 2007.03.21
  723. * @by : 장준원
  724. * @-----------------------------------
  725. * @type : function
  726. * @access : public
  727. * @desc : 처방내역/타과처방/상병/코멘트 조회를 위한 선택 Function
  728. */
  729. function fGetExamCurePrcpList(maingridlistid) {
  730. if ( maingridlistid.row == 0 ) return;
  731. var row = maingridlistid.row;
  732. fInitTar();
  733. grd_subordlist1.fixedcellcheckbox(0,1)=true;
  734. grd_subordlist1.fixedcellischeck(0,1)=false;
  735. cmb_excuroom2.disabled = true;
  736. var ioflag = model.getValue("/root/send/data/cmb_info/initioflag/ioflag");
  737. // 조회조건 초기화
  738. model.removenode("/root/send/patinfo");
  739. model.removenode("/root/send/data/grd_info");
  740. model.makeValue("/root/send/data/grd_info/grid_data/instance1", model.getValue("/root/send/globalinstance/instance1"));
  741. model.makeValue("/root/send/data/grd_info/grid_data/srchdate1", model.getValue("/root/send/data/srchdate1"));
  742. model.makeValue("/root/send/data/grd_info/grid_data/srchdate2", model.getValue("/root/send/data/srchdate2"));
  743. var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
  744. model.makeValue("/root/send/data/grd_info/grid_data/excuroomgrpcdid", excuroomgrpcdid);
  745. var excuroomcdid = model.getValue("/root/send/data/cmb_info/initexecroom/excuroomcdid");
  746. model.makeValue("/root/send/data/grd_info/grid_data/excuroomcdid", excuroomcdid);
  747. if ( btn_case3.selected != true ) {
  748. var pid = maingridlistid.valueMatrix(row, maingridlistid.colRef("pid"));
  749. var prcpgenrflag = maingridlistid.valueMatrix(row, maingridlistid.colRef("prcpgenrflag"));
  750. model.makeValue("/root/send/data/grd_info/grid_data/pid", pid);
  751. model.makeValue("/root/send/data/grd_info/grid_data/prcpgenrflag", prcpgenrflag);
  752. // 환자내역
  753. model.makeValue("/root/send/patinfo/srchpid", pid);
  754. model.makeValue("/root/send/patinfo/orddd", maingridlistid.valueMatrix(row, maingridlistid.colRef("orddd")));
  755. model.makeValue("/root/send/patinfo/orddeptcd", maingridlistid.valueMatrix(row, maingridlistid.colRef("orddeptcd")));
  756. model.makeValue("/root/send/patinfo/suppdeptcd1", model.getValue("/root/send/globalinstance/instance1"));
  757. model.makeValue("/root/send/patinfo/chkflag", "");
  758. if ( btn_case1.selected == true ) {
  759. model.makeValue("/root/send/data/cmb_info/initioflag/ioflag","O");
  760. } else if ( btn_case2.selected == true ) {
  761. model.makeValue("/root/send/data/cmb_info/initioflag/ioflag","I");
  762. }
  763. } else {
  764. var calcscorcd = maingridlistid.valueMatrix(row, maingridlistid.colRef("calcscorcd"));
  765. model.makeValue("/root/send/data/grd_info/grid_data/calcscorcd", calcscorcd);
  766. model.makeValue("/root/send/data/grd_info/grid_data/prcpgenrflag", "");
  767. model.makeValue("/root/send/data/grd_info/grid_data/ioflag", model.getValue("/root/send/data/cmb_info/initioflag/ioflag"));
  768. }
  769. var acptlistflag = model.getValue("/root/send/data/acptlistflag");
  770. if ( chk_statecd.value == "ALL" ) {
  771. acptlistflag = "L";
  772. }
  773. model.makeValue("/root/send/data/grd_info/grid_data/largeclass", "M3");
  774. model.makeValue("/root/send/data/grd_info/grid_data/acptlistflag", acptlistflag);
  775. model.resetInstanceNode("/root/send/ivdata");
  776. model.resetInstanceNode("/root/send/ivdata1");
  777. model.resetInstanceNode("/root/send/ivdata2");
  778. model.resetInstanceNode("/root/send/ivdata3");
  779. model.resetInstanceNode("/root/send/ivdata4");
  780. //model.removenode("/root/main/scrtlist");
  781. //model.removenode("/root/main/eqcdlist");
  782. model.removenode("/root/main/mainordlist2");
  783. if ( submit("TRAER00308",false) ) {
  784. // 그리드 세팅
  785. fSetSubDetailGrid();
  786. if ( btn_case3.selected != true ) { // 환자별 조회만 해당. 상병정보가져오기
  787. //fGetExamCureDiagList(grd_mainordlist1);
  788. // 환자 Comment 조회
  789. model.removenode("/root/main/exculist/subordlist3");
  790. if (submit("TRAEA02009",false)){
  791. model.makeNode("/root/main/exculist/subordlist3");
  792. copyNodeType("/root/main/exculist/subordlist3", "/root/reqdata1/subordlist3", "replace");
  793. grd_patcmtlist.refresh();
  794. patcmt();
  795. }
  796. } else {
  797. model.setValue("/root/send/data/cmb_info/initioflag/ioflag",ioflag);
  798. }
  799. maingridlistid.row = row;
  800. // 2011.05.02 cyw 외래환자이고 검사실이 PET이고 수납일자가 2011.05.02 이전일 경우 안내메시지 띄우기.
  801. var grpcnt = 0;
  802. var subcnt = getNodesetCount("/root/main/subordlist/subordlist1");
  803. for (var i = 1; i <= subcnt; i++) {
  804. if( model.getValue("/root/main/subordlist/subordlist1["+i+"]/prcpgenrflag") == "O" ){
  805. if( model.getValue("/root/main/subordlist/subordlist1["+i+"]/excuroomgrpcd") == "PET-CT실" && model.getValue("/root/main/subordlist/subordlist1["+i+"]/rcptdd") < "20110501" ){
  806. grpcnt++;
  807. }
  808. }
  809. }
  810. if( grpcnt > 0 ){
  811. messageBox("환급을 위해 원무 창구로 안내", "I008");
  812. }
  813. }
  814. model.refresh();
  815. aezfSetCellStyle("grd_subordlist1" , "0^1^2" , "V^P^A" , "aftrcptinfo", "pid", "F");
  816. }
  817. /* @group : 실시관리(핵의학체내)
  818. * @ver : 2007.03.21
  819. * @by : 장준원
  820. * @-----------------------------------
  821. * @type : function
  822. * @access : public
  823. * @desc : 처방내역에 대한 장비코드 리스트 Function
  824. */
  825. function fEqcdList(subgridlistid) {
  826. if ( subgridlistid.row == 0 ) return;
  827. //grp_eqcdlist.visible = true;
  828. model.resetInstanceNode("/root/main/eqcdlist/eqcdlist1");
  829. var prcpdd = subgridlistid.valueMatrix(subgridlistid.row, subgridlistid.colRef("prcpdd"));
  830. var execprcpuniqno = subgridlistid.valueMatrix(subgridlistid.row, subgridlistid.colRef("execprcpuniqno"));
  831. model.setValue("/root/send/eqdata/eqprcpdd", prcpdd);
  832. model.setValue("/root/send/eqdata/eqexecprcpuniqno", execprcpuniqno);
  833. model.setValue("/root/send/eqdata/excueqcd", model.getValue("/root/send/data/cmb_info/initexcueq/excueqcdid"));
  834. submit("TRAER00314");
  835. }
  836. /* @group : 접수관리(핵의학체내)
  837. * @ver : 2007.03.21
  838. * @by : 장준원
  839. * @-----------------------------------
  840. * @type : function
  841. * @access : public
  842. * @desc : 처방내역에 대한 장비코드 에 대한 부분 실시 Function
  843. */
  844. function fExePartExec() {
  845. model.resetInstanceNode("/root/send/data/execprcpuniq/execprcpuniqlist");
  846. var nodeList = instance1.selectNodes("/root/main/ordlist3/mainordlist/mainordlist3[check='Y']");
  847. var rCSV = getNodeListCSV(nodeList);
  848. if ( rCSV == "" ) {
  849. return;
  850. }
  851. model.makeValue("/root/send/data/execprcpuniq/execprcpuniqlist", rCSV);
  852. // 장비 시작 실시
  853. submit("TXAER00305", false);
  854. }
  855. /* @group : 접수관리(핵의학체내)
  856. * @ver : 2007.03.21
  857. * @by : 장준원
  858. * @-----------------------------------
  859. * @type : function
  860. * @access : public
  861. * @desc : 처방내역에 대한 실시완료 Function , gubn : 1:실시, 2:실시취소
  862. */
  863. function fExeExec(gubn) {
  864. var check = "";
  865. var loopcnt = 0;
  866. var loop = getNodesetCount("/root/main/subordlist/subordlist1");
  867. for( var i = 1 ; i <= loop ; i++ ) {
  868. check = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/check");
  869. if ( check == "Y" ) {
  870. loopcnt++;
  871. // 검체검사는 접수/취소/보류/취소를 막는다.
  872. var chkprcpnm = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/prcpnm");
  873. var execprcpstatcd = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/execprcpstatcd");
  874. var excuroomcd = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/excuroomcd");
  875. var pacsnocretyn = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/pacsnocretyn");
  876. var pacsnocretcdyn = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/pacsnocretcdyn");
  877. var baseroomflag = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/baseroomflag");
  878. model.setValue("/root/main/subordlist/subordlist1[" + i + "]/pacsnocretyn", pacsnocretcdyn);
  879. if ( model.getValue("/root/main/subordlist/subordlist1[" + i + "]/basesuppdeptcd") == "B6" ) {
  880. messageBox("["+chkprcpnm+"] 검사는 검체검사입니다. [환자채혈] 기능을 이용하시기 바랍니다.", "I999");
  881. return "0";
  882. }
  883. if (gubn == 1) {
  884. //20101102 치료투약실일경우 - 박재영
  885. //if ( excuroomcd != "NMCU" ) {
  886. if ( excuroomcd != "NMR01" ) {
  887. if ( baseroomflag != "8" ) {
  888. messageBox("검사실 구분이 촬영실인 아닌 경우 실시완료", "E001");
  889. return "0";
  890. }
  891. }
  892. // if ( excuroomcd == "NM01" ) {
  893. // messageBox("촬영실이 핵의학 접수인 경우 실시완료", "E001");
  894. // return "0";
  895. // }
  896. //
  897. // if ( excuroomcd == "NMPT03" ) {
  898. // messageBox("촬영실이 PET-CT 접수인 경우 실시완료", "E001");
  899. // return "0";
  900. // }
  901. if ( execprcpstatcd != "600" ) {
  902. messageBox("["+chkprcpnm+"] 검사는 부분 실시 상태가 아니므로 실시완료", "E001");
  903. return "0";
  904. }
  905. }
  906. if (gubn == 2) {
  907. if ( execprcpstatcd != "610" && pacsnocretyn !="N") {
  908. messageBox("["+chkprcpnm+"] 검사는 실시완료 상태가 아니므로 실시완료 취소를", "E001");
  909. return "0";
  910. }
  911. }
  912. }
  913. }
  914. if ( loopcnt == 0 ) {
  915. messageBox("처방내역을 선택해 주십시오.","I999");
  916. return "0";
  917. }
  918. // 실시
  919. if(gubn == 1) {
  920. for( var i = 1 ; i <= loop ; i++ ) {
  921. check = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/check");
  922. if ( check == "Y" ) {
  923. model.setValue("/root/main/subordlist/subordlist1[" + i + "]/execrem", tar_execrem.value);
  924. model.setValue("/root/main/subordlist/subordlist1[" + i + "]/excueqcd1", model.getValue("/root/send/data/cmb_info/initexcueq/excueqcdid") );
  925. }
  926. }
  927. var nodeList = instance1.selectNodes("/root/main/subordlist/subordlist1[check='Y']");
  928. var rCSV = getNodeListCSV(nodeList);
  929. if ( rCSV == "" ) {
  930. messageBox("처방내역을 선택해 주십시오.","I999");
  931. return "0";
  932. }
  933. model.setValue("/root/send/data/tobeacptprcp/tobeacptprcplist", rCSV);
  934. }
  935. // 실시취소
  936. if(gubn == 2) {
  937. //취소코드조회
  938. model.makeValue("/root/send/popup/basecdflag","C");
  939. model.makeNode("root/hidden/cnclcdlist/cnclcd");
  940. modal("SPAEA01500", 0,100,150,"SPAEA01500", "/root/send/popup/basecdflag", "/root/hidden/receivedata");
  941. if ( model.getValue("root/hidden/cnclcdlist/cnclcd") == "") {
  942. messageBox("취소코드를 선택해 주십시오.","I999");
  943. return "0";
  944. }
  945. for( var i = 1 ; i <= loop ; i++ ) {
  946. check = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/check");
  947. if ( check == "Y" ) {
  948. // 취소코드 사유 Test 하기 위해, 20070705 ////
  949. model.setValue("/root/main/subordlist/subordlist1[" + i + "]/basecd", model.getValue("/root/hidden/cnclcdlist/cnclcd") );
  950. model.setValue("/root/main/subordlist/subordlist1[" + i + "]/execrem", "-" );
  951. if ( model.getValue("/root/main/subordlist/subordlist1[" + i + "]/execbaseflag") == "A" ) { // 실시기준여부가 접수인경우
  952. model.setValue("/root/main/subordlist/subordlist1[" + i + "]/acptrem", "-");
  953. }
  954. }
  955. }
  956. var nodeList = instance1.selectNodes("/root/main/subordlist/subordlist1[check='Y']");
  957. var rCSV = getNodeListCSV(nodeList);
  958. if ( rCSV == "" ) {
  959. messageBox("처방내역을 선택해 주십시오.","I999");
  960. return "0";
  961. }
  962. model.setValue("/root/send/data/tobeacptcnclprcp/tobeacptcnclprcplist", rCSV);
  963. }
  964. var pid = "";
  965. var calcscorcd = "";
  966. if ( btn_case3.selected == true ) {
  967. calcscorcd = model.getValue("/root/main/ordlist2/mainordlist2["+grd_mainordlist2.row+"]/calcscorcd");
  968. } else {
  969. pid = model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/pid");
  970. }
  971. model.makeValue("/root/send/temp/pid",pid);
  972. model.makeValue("/root/send/temp/calcscorcd",calcscorcd);
  973. if ( gubn == 1 ) {
  974. if ( messageBox("실시내역을 ","Q002")==6 ) {
  975. if (submit("TXAER00301",false)) {
  976. var srchpid = model.getValue("/root/send/data/srchpid");
  977. if (srchpid == "") {
  978. fGetExamCureAcptList();
  979. } else {
  980. fGetExamCurePidPrcpList();
  981. }
  982. }
  983. }else {
  984. model.resetInstanceNode("/root/send/data/tobeacptprcp/tobeacptprcplist");
  985. return "0";
  986. }
  987. } else if ( gubn == 2 ) {
  988. if ( messageBox("실시취소내역을 ","Q002")==6 ) {
  989. if (submit("TXAER00302",false)) {
  990. var srchpid = model.getValue("/root/send/data/srchpid");
  991. if (srchpid == "") {
  992. fGetExamCureAcptList();
  993. } else {
  994. fGetExamCurePidPrcpList();
  995. }
  996. }
  997. } else {
  998. model.resetInstanceNode("/root/send/data/tobeacptcnclprcp/tobeacptcnclprcplist");
  999. return "0";
  1000. }
  1001. }
  1002. }
  1003. /* @group : 접수관리(핵의학체내)
  1004. * @ver : 2007.03.21
  1005. * @by : 장준원
  1006. * @-----------------------------------
  1007. * @type : function
  1008. * @access : public
  1009. * @desc : 접수내역에 대한 보류/보류취소를 위한 선택 Function
  1010. */
  1011. function fExeHold(gubn) {
  1012. var check = "";
  1013. var loopcnt = 0;
  1014. var execprcpstatcd = ""; // 처방상태코드 구분
  1015. //var loop = grd_subordlist1.rows - grd_subordlist1.fixedRows;
  1016. var loop = getNodesetCount("/root/main/subordlist/subordlist1");
  1017. if ( gubn == 1 ) {
  1018. for ( var i = 1 ; i <= loop ; i++ ) {
  1019. check = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/check");
  1020. execprcpstatcd = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/execprcpstatcd");
  1021. prcpnm = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/prcpnm");
  1022. if ( check == "Y" ) {
  1023. if( execprcpstatcd == "450" ) {
  1024. messageBox(prcpnm + "은 Hold된 처방이므로 보류 할 수 없습니다.","I999");
  1025. return "0";
  1026. }
  1027. // 검체검사는 접수/취소/보류/취소를 막는다.
  1028. var chkprcpnm = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/prcpnm");
  1029. if ( model.getValue("/root/main/subordlist/subordlist1[" + i + "]/basesuppdeptcd") == "B6" ) {
  1030. messageBox("["+chkprcpnm+"] 검사는 검체검사입니다. [환자채혈] 기능을 이용하시기 바랍니다.", "I999");
  1031. return "0";
  1032. }
  1033. loopcnt++;
  1034. }
  1035. }
  1036. if ( loopcnt == 0 ) {
  1037. messageBox("처방내역을 선택해 주십시오.","I999");
  1038. return "0";
  1039. }
  1040. }
  1041. if ( gubn == 2 ) {
  1042. for( var i = 1 ; i <= loop ; i++ ) {
  1043. check = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/check");
  1044. execprcpstatcd = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/execprcpstatcd");
  1045. prcpnm = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/prcpnm");
  1046. if ( check == "Y" ) {
  1047. if ( execprcpstatcd == "440" ) {
  1048. messageBox(prcpnm + "은 접수된 처방이므로 보류취소 할 수 없습니다.","I999");
  1049. return "0";
  1050. }
  1051. // 검체검사는 접수/취소/보류/취소를 막는다.
  1052. var chkprcpnm = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/prcpnm");
  1053. if ( model.getValue("/root/main/subordlist/subordlist1[" + i + "]/basesuppdeptcd") == "B6" ) {
  1054. messageBox("["+chkprcpnm+"] 검사는 검체검사입니다. [환자채혈] 기능을 이용하시기 바랍니다.", "I999");
  1055. return "0";
  1056. }
  1057. loopcnt++;
  1058. }
  1059. }
  1060. if ( loopcnt == 0 ) {
  1061. messageBox("처방내역을 선택해 주십시오.","I999");
  1062. return "0";
  1063. }
  1064. }
  1065. ////////////////////////////////
  1066. // CopyNode 로직이 들어가야 함.
  1067. ////////////////////////////////
  1068. // 보류
  1069. if(gubn == 1) {
  1070. var nodeList = instance1.selectNodes("/root/main/subordlist/subordlist1[check='Y']");
  1071. var rCSV = getNodeListCSV(nodeList);
  1072. if ( rCSV == "" ) {
  1073. messageBox("처방내역을 선택해 주십시오.","I999");
  1074. return "0";
  1075. }
  1076. model.setValue("/root/send/data/tobeholdprcp/tobeholdprcplist", rCSV);
  1077. }
  1078. // 보류취소
  1079. if(gubn == 2) {
  1080. var nodeList = instance1.selectNodes("/root/main/subordlist/subordlist1[check='Y']");
  1081. var rCSV = getNodeListCSV(nodeList);
  1082. if ( rCSV == "" ) {
  1083. messageBox("보류처방내역을 선택해 주십시오.","I999");
  1084. return "0";
  1085. }
  1086. model.setValue("/root/send/data/tobeholdcnclprcp/tobeholdcnclprcplist", rCSV);
  1087. }
  1088. if ( gubn == 1 ) {
  1089. if ( messageBox("보류내역을 ","Q002")==6 ) {
  1090. if (submit("TXAER00303")) {
  1091. var srchpid = model.getValue("/root/send/data/srchpid");
  1092. if (srchpid == "") {
  1093. if ( btn_case3.selected != true ) {
  1094. fGetExamCurePrcpList(grd_mainordlist1);
  1095. } else {
  1096. fGetExamCurePrcpList(grd_mainordlist2);
  1097. }
  1098. } else {
  1099. fGetExamCurePidPrcpList();
  1100. }
  1101. }
  1102. } else {
  1103. model.resetInstanceNode("/root/send/data/tobeholdprcp/tobeholdprcplist");
  1104. return "0";
  1105. }
  1106. } else if ( gubn == 2 ) {
  1107. if ( messageBox("보류취소내역을 ","Q002")==6 ) {
  1108. if (submit("TXAER00304")) {
  1109. var srchpid = model.getValue("/root/send/data/srchpid");
  1110. if (srchpid == "") {
  1111. if ( btn_case3.selected != true ) {
  1112. fGetExamCurePrcpList(grd_mainordlist1);
  1113. } else {
  1114. fGetExamCurePrcpList(grd_mainordlist2);
  1115. }
  1116. } else {
  1117. fGetExamCurePidPrcpList();
  1118. }
  1119. }
  1120. } else {
  1121. model.resetInstanceNode("/root/send/data/tobeholdcnclprcp/tobeholdcnclprcplist");
  1122. return "0";
  1123. }
  1124. }
  1125. }
  1126. /* @group : 실시관리
  1127. * @ver : 2007.06.14
  1128. * @by : 장준원
  1129. * @-----------------------------------
  1130. * @type : function
  1131. * @access : public
  1132. * @desc : 처방 그리드 Setting Function
  1133. */
  1134. function fSetSubDetailGrid()
  1135. {
  1136. ////////////////////////////
  1137. // 처방 그리드 세팅한다//
  1138. ////////////////////////////
  1139. // 색상 해제 ,
  1140. var srchLength1 = model.instances(0).selectNodes( "/root/main/subordlist/subordlist1" ).length;
  1141. for ( var i = 1; i <= srchLength1; i++ ) {
  1142. grd_subordlist1.rowstyle( i , "data" , "background-color" ) = "#FFFFFF";
  1143. grd_subordlist1.rowstyle( i , "data" , "color" ) = "#000000";
  1144. }
  1145. aezfSetRowStyle("grd_subordlist1" , "7" , "Y" , "eqcdyn" );
  1146. aezfSetFontRowStyle("grd_subordlist1" , "9" , "B6" , "basesuppdeptcd" );
  1147. }
  1148. /* @group : 실시관리
  1149. * @ver : 2007.06.14
  1150. * @by : 장준원
  1151. * @-----------------------------------
  1152. * @type : function
  1153. * @access : public
  1154. * @desc : 처방 그리드 Setting Function
  1155. */
  1156. function fSetSubDetailGrid2()
  1157. {
  1158. ////////////////////////////
  1159. // 처방 그리드 세팅한다//
  1160. ////////////////////////////
  1161. // 색상 해제 ,
  1162. var srchLength1 = model.instances(0).selectNodes( "/root/main/ordlist3/mainordlist/mainordlist3" ).length;
  1163. var conttestyn = "";
  1164. for ( var i = 1; i <= srchLength1; i++ ) {
  1165. grd_subpopordlist.rowstyle( i , "data" , "background-color" ) = "#FFFFFF";
  1166. grd_subpopordlist.rowstyle( i , "data" , "color" ) = "#000000";
  1167. grd_subpopordlist.isReadOnly(i, grd_subpopordlist.colRef("check"), i , grd_subpopordlist.colRef("check")) = false;
  1168. conttestyn = grd_subpopordlist.valueMatrix(i, grd_subpopordlist.colRef("conttestyn"));
  1169. conttestrsrvdd = grd_subpopordlist.valueMatrix(i, grd_subpopordlist.colRef("conttestrsrvdd"));
  1170. if ( conttestyn == "Y" ) {
  1171. grd_subpopordlist.rowstyle( i , "data" , "background-color" ) = "#FFCCCC";
  1172. if (conttestrsrvdd > getCurrentDate() ) {
  1173. grd_subpopordlist.isReadOnly(i, grd_subpopordlist.colRef("check"), i , grd_subpopordlist.colRef("check")) = true;
  1174. }
  1175. }
  1176. }
  1177. // aezfSetRowStyle("grd_subpopordlist" , "7" , "Y" , "conttestyn" );
  1178. // aezfSetFontRowStyle("grd_subpopordlist" , "9" , "Y" , "conttestyn" );
  1179. }
  1180. /* @group : 접수관리(핵의학체내)
  1181. * @ver : 2007.03.21
  1182. * @by : 장준원
  1183. * @-----------------------------------
  1184. * @type : function
  1185. * @access : public
  1186. * @desc : 환자기준 전체 처방내역 조회를 위한 선택 Function
  1187. */
  1188. function fGetExamCurePidPrcpList() {
  1189. fInitTar();
  1190. var pid = model.getValue("/root/send/data/srchpid");
  1191. model.makeValue("/root/send/data/grd_info/grid_data/pid", pid);
  1192. model.makeValue("/root/send/data/grd_info/grid_data/largeclass", "M3");
  1193. var flag = model.getValue("/root/send/data/acptlistflag");
  1194. model.makeValue("/root/send/data/acptlistflag", "L");
  1195. // 대상자 내역 Clear를 한다.
  1196. model.resetInstanceNode("/root/main/ordlist1/mainordlist1");
  1197. model.resetInstanceNode("/root/main/ordlist2/mainordlist2");
  1198. model.resetInstanceNode("/root/send/ivdata");
  1199. model.resetInstanceNode("/root/send/ivdata1");
  1200. model.resetInstanceNode("/root/send/ivdata2");
  1201. model.resetInstanceNode("/root/send/ivdata3");
  1202. model.resetInstanceNode("/root/send/ivdata4");
  1203. model.makeValue("/root/send/data/grd_info/grid_data/prcpgenrflag", "");
  1204. if (submit("TRAER00308")) {
  1205. // 그리드 세팅
  1206. fSetSubDetailGrid();
  1207. model.removenode("/root/main/exculist/subordlist3");
  1208. if (submit("TRAEA02009",false)){
  1209. model.makeNode("/root/main/exculist/subordlist3");
  1210. copyNodeType("/root/main/exculist/subordlist3", "/root/reqdata1/subordlist3", "replace");
  1211. grd_patcmtlist.refresh();
  1212. patcmt();
  1213. }
  1214. btn_accept.disabled = true;
  1215. }
  1216. // 그리드 세팅
  1217. fSetSubDetailGrid();
  1218. aezfSetCellStyle("grd_subordlist1" , "0^1^2" , "V^P^A" , "aftrcptinfo", "pid", "F");
  1219. model.makeValue("/root/send/data/acptlistflag", flag);
  1220. cmb_acptlistflag.value = "";
  1221. cmb_excuroomgrp.value ="";
  1222. cmb_excuroom.value = "";
  1223. model.refresh();
  1224. var nodecnt = getNodesetCount("/root/main/subordlist/subordlist1");
  1225. //TOP 정보 보여주기
  1226. if (nodecnt >0 ) {
  1227. model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/no", "1");
  1228. model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/pid", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/pid"));
  1229. model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/patnm", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/patnm"));
  1230. model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/prcpgenrflag", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/prcpgenrflag"));
  1231. model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/wardcd", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/wardcd"));
  1232. model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/depthngnm", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/depthngnm"));
  1233. model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/execprcpuniqno", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/execprcpuniqno"));
  1234. model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/orddeptcd", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/orddeptcd"));
  1235. model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/rsrvdd", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/rsrvdd"));
  1236. model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/execprcpstatcd", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/execprcpstatcd"));
  1237. model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/prcpdd", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/prcpdd"));
  1238. model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/roomcd", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/roomcd"));
  1239. model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/orddrid", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/orddrid"));
  1240. model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/rcptyn", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/rcptyn"));
  1241. model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/orddd", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/orddd"));
  1242. model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/cretno", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/cretno"));
  1243. var prcpgenrflag = model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/prcpgenrflag");
  1244. if ( prcpgenrflag =="I" || prcpgenrflag =="D" || prcpgenrflag =="E" ) {
  1245. btn_case2.selected = true;
  1246. } else if ( prcpgenrflag =="-" || prcpgenrflag =="O" || prcpgenrflag =="S" ) {
  1247. btn_case1.selected = true;
  1248. } else {
  1249. btn_case1.selected = true;
  1250. }
  1251. model.toggle("case1");
  1252. grd_mainordlist1.row = 1;
  1253. model.refresh();
  1254. delPatientInfos();
  1255. fTopInfo();
  1256. }
  1257. }
  1258. function fPatidInfo() {
  1259. var child = getChildWindow("SMMMO02500");
  1260. if (child != null ) {
  1261. var pid = model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/pid");
  1262. if (pid == "") {
  1263. pid = model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/pid");
  1264. }
  1265. child.model.makeValue("/root/main/patinfolist/pid" , pid);
  1266. setParameter ( "SMMMO02500_cond" ,pid);
  1267. child.javascript.fReqGetPatComnInfo("/root/send/reqdata", pid);
  1268. child.button1.selected = true;
  1269. child.model.toggle("case1");
  1270. child.model.copyNode("/root/main/patinfolist", "/root/main/srchinfo/patinfolist");
  1271. child.model.removeNodeset("/root/main/bfprcp/prcplist");
  1272. child.model.removeNodeset("/root/main/bfprcpday/bfprcpday");
  1273. child.grd_prcpdd.visible = false;
  1274. child.grd_bfprcplist.attribute("left") = 2;
  1275. child.grd_bfprcplist.attribute("width")= 1190;
  1276. child.model.refresh();
  1277. } else {
  1278. open("SMMMO02500", "","","", "SMMMO02500", "", "/root/init/srchcond2");
  1279. }
  1280. }
  1281. function fRsrvInfo() {
  1282. if ( btn_case3.selected != true ) {
  1283. open("SMAEA00300", "", "", "", "SMAEA00300","/root/main/ordlist1/mainordlist1["+ grd_subordlist1.row +"]/pid","/root/send/srchpid");
  1284. }else {
  1285. open("SMAEA00300", "", "", "", "SMAEA00300","/root/main/ordlist2/mainordlist2["+ grd_mainordlist1.row +"]/pid","/root/send/srchpid");
  1286. }
  1287. }
  1288. function fNuclInput() {
  1289. var row = grd_subordlist1.row;
  1290. var ivinputyn = grd_subordlist1.valueMatrix(row, grd_subordlist1.colRef("ivinputyn"));
  1291. var execprcpstatcd = grd_subordlist1.valueMatrix(row, grd_subordlist1.colRef("execprcpstatcd"));
  1292. var prcpnm = grd_subordlist1.valueMatrix(row, grd_subordlist1.colRef("prcpnm"));
  1293. if ( execprcpstatcd == "450" ) {
  1294. messageBox(prcpnm + "은 Hold된 처방이므로 동위원소 투여입력을 할 수 없습니다.","I999");
  1295. return;
  1296. }
  1297. if ( ivinputyn == "N" || ivinputyn == "Y") {
  1298. var pid = grd_subordlist1.valueMatrix(row, grd_subordlist1.colRef("pid"));
  1299. var srchdate1 = model.getValue("/root/send/data/srchdate1");
  1300. var srchdate2 = model.getValue("/root/send/data/srchdate2");
  1301. var excuroom = model.getValue("/root/send/data/cmb_info/initexecroom/excuroomcdid");
  1302. var windowid = "SMAEA01400";
  1303. model.makeValue("/root/send/windowloadinstance/srchpid", pid);
  1304. model.makeValue("/root/send/windowloadinstance/srchdate1", srchdate1);
  1305. model.makeValue("/root/send/windowloadinstance/srchdate2", srchdate2);
  1306. model.makeValue("/root/send/windowloadinstance/excuroom", excuroom);
  1307. model.makeValue("/root/send/windowloadinstance/windowid", windowid);
  1308. model.refresh();
  1309. //window.load( "SMAEA02300_IV입력관리.xrw","modal","code", "left:100px; top:150px; width:530px; height:380px;min:hidden;max:hidden;resize:false;" );
  1310. open("SMAEA02300", "","","", "SMAEA02300", "/root/send/windowloadinstance","/root/init/windowloadinstance");
  1311. model.resetInstanceNode("/root/send/windowloadinstance");
  1312. model.refresh();
  1313. }
  1314. }
  1315. function fAddPrcpMngt() {
  1316. aezfAddPrcpMngt(grd_subordlist1, "/root/main/subordlist/subordlist1");
  1317. }
  1318. // 환자 Commnet 가 없을 경우 입력 row 생성
  1319. function patcmt() {
  1320. if (grd_patcmtlist.rows > 1){
  1321. var irow = grd_patcmtlist.findRow(getCurrentDate(), 1, 1);
  1322. if (irow < 1){
  1323. grd_patcmtlist.insertRow(1, "above");
  1324. model.makeValue("/root/main/exculist/subordlist3/rows[" + 1 + "]/iudgb", "I");
  1325. }
  1326. }else{
  1327. grd_patcmtlist.insertRow(0);
  1328. model.makeValue("/root/main/exculist/subordlist3/rows[" + 1 + "]/iudgb", "I");
  1329. }
  1330. model.makeValue("/root/main/exculist/subordlist3/rows[" + 1 + "]/pid", model.getValue("/root/send/patinfo/srchpid"));
  1331. model.makeValue("/root/main/exculist/subordlist3/rows[" + 1 + "]/cmtdd", getCurrentDate());
  1332. btn_patcmtsave.disabled = false;
  1333. grd_patcmtlist.refresh();
  1334. }
  1335. /* @group : IV입력관리(핵의학체내)
  1336. * @ver : 2007.03.21
  1337. * @by : 장준원
  1338. * @-----------------------------------
  1339. * @type : function
  1340. * @access : public
  1341. * @desc : IV입력을 위한 Function
  1342. */
  1343. function fExeNuclInpt() {
  1344. var nuclcd = model.getValue("/root/send/ivdata/nuclcd");
  1345. if (nuclcd == "") {
  1346. var msg = messageBox("기술적 기록이 조회 되지 않았습니다. 조회 후 투여입력을", "Q002");
  1347. if (msg == 6) {
  1348. // 기술적 기록 조회
  1349. fGetNuclInptList(grd_subordlist1);
  1350. } else {
  1351. messageBox("핵종코드를 선택해 주십시오.","I999");
  1352. return "0";
  1353. }
  1354. }
  1355. var execrid = model.getValue("/root/send/ivdata/execrid");
  1356. if (execrid == "") {
  1357. messageBox("실시자를 선택해 주십시오.","I999");
  1358. return "0";
  1359. }
  1360. var nodeList = instance1.selectNodes("/root/main/subordlist/subordlist1[check='Y' ]");
  1361. var rCSV = getNodeListCSV(nodeList);
  1362. if ( rCSV == null ) {
  1363. messageBox("동위원소 투여 입력 할 처방을","C002");
  1364. return;
  1365. }
  1366. for (var i=1; i<grd_subordlist1.rows; i++) {
  1367. var selChk = grd_subordlist1.valueMatrix(i, grd_subordlist1.colRef("check"));
  1368. if (selChk == "Y") {
  1369. var excuroomgrpcd = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/excuroomgrpcd");
  1370. var excuroomcd = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/excuroomcd");
  1371. var ivinputyn = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/ivinputyn");
  1372. model.makeValue("/root/send/ivdata/ivinputyn", ivinputyn);
  1373. if ( ivinputyn == "Y" ) {
  1374. // 영상인 경우만 적용
  1375. if (btn_clear.visible == true) {
  1376. var msg = messageBox("동위원소 투여 입력된 검사입니다. 재료소모 내역를 신규", "Q002");
  1377. if (msg == 6) {
  1378. // 기술적 기록 추가 입력
  1379. model.setValue("/root/send/ivdata/ivinputyn","N");
  1380. }
  1381. }
  1382. }
  1383. // 핵종코드가 primarykey로 변경 되었기 때문에 값이 없을 경우 '-' 대체
  1384. var nuclcd = model.getValue("/root/send/ivdata/nuclcd");
  1385. if (nuclcd == "") {
  1386. model.setValue("/root/send/ivdata/nuclcd","-");
  1387. }
  1388. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/nuclcd", model.getValue("/root/send/ivdata/nuclcd"));
  1389. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/oldnuclcd", model.getValue("/root/send/ivdata/oldnuclcd"));
  1390. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/drugdd", model.getValue("/root/send/ivdata/drugdd"));
  1391. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/drugtm", model.getValue("/root/send/ivdata/drugtm"));
  1392. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/drugqty", model.getValue("/root/send/ivdata/drugqty"));
  1393. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/cstqty", model.getValue("/root/send/ivdata/cstqty"));
  1394. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/nuclrem", model.getValue("/root/send/ivdata/nuclrem"));
  1395. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/compdcd", model.getValue("/root/send/ivdata/compdcd"));
  1396. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/drugmthdcd", model.getValue("/root/send/ivdata/drugmthdcd"));
  1397. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/phormcd", model.getValue("/root/send/ivdata/phormcd"));
  1398. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/scrtroomcd", model.getValue("/root/send/ivdata/scrtrmcd"));
  1399. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/injpartcd", model.getValue("/root/send/ivdata/injpartcd"));
  1400. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/suplcustcd", model.getValue("/root/send/ivdata/suplcustcd"));
  1401. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/ht", model.getValue("/root/send/ivdata/ht"));
  1402. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/bdwt", model.getValue("/root/send/ivdata/bdwt"));
  1403. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/bsugarqty", model.getValue("/root/send/ivdata/bsugarqty"));
  1404. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/labbkg", model.getValue("/root/send/ivdata/labbkg"));
  1405. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/patbkg", model.getValue("/root/send/ivdata/patbkg"));
  1406. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/smplact", model.getValue("/root/send/ivdata/smplact"));
  1407. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/thyrmea", model.getValue("/root/send/ivdata/thyrmea"));
  1408. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/testrsltval", model.getValue("/root/send/ivdata/testrsltval"));
  1409. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/execrid", model.getValue("/root/send/ivdata/execrid"));
  1410. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/stndactqty", model.getValue("/root/send/ivdata/stndactqty"));
  1411. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/stndactinsptm", model.getValue("/root/send/ivdata/stndactinsptm"));
  1412. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/stndpostactqty", model.getValue("/root/send/ivdata/stndpostactqty"));
  1413. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/stndpostactinsptm", model.getValue("/root/send/ivdata/stndpostactinsptm"));
  1414. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/nuclinsptm", model.getValue("/root/send/ivdata/nuclinsptm"));
  1415. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/nucldrugrestqty", model.getValue("/root/send/ivdata/nucldrugrestqty"));
  1416. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/nucldruginsptm", model.getValue("/root/send/ivdata/nucldruginsptm"));
  1417. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/smplnfstcnt", model.getValue("/root/send/ivdata/smplnfstcnt"));
  1418. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/smplnfstbcolltm", model.getValue("/root/send/ivdata/smplnfstbcolltm"));
  1419. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/smplnscndcnt", model.getValue("/root/send/ivdata/smplnscndcnt"));
  1420. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/smplnscndbcolltm", model.getValue("/root/send/ivdata/smplnscndbcolltm"));
  1421. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/smplnthirdcnt", model.getValue("/root/send/ivdata/smplnthirdcnt"));
  1422. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/smplnthirdcolltm", model.getValue("/root/send/ivdata/smplnthirdcolltm"));
  1423. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/smplnfourthcnt", model.getValue("/root/send/ivdata/smplnfourthcnt"));
  1424. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/smplnfourthcolltm", model.getValue("/root/send/ivdata/smplnfourthcolltm"));
  1425. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/ordcd", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/calcscorcd"));
  1426. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/ivinputyn", model.getValue("/root/send/ivdata/ivinputyn"));
  1427. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/examroomnm", cmb_excuroom2.label);
  1428. }
  1429. }
  1430. var nodeList = instance1.selectNodes("/root/main/subordlist/subordlist1[check='Y' ]");
  1431. var rCSV = getNodeListCSV(nodeList);
  1432. model.setValue("/root/send/data/nuclinput/nuclinptlist", rCSV);
  1433. if ( messageBox("동위원소투여 입력을 ","Q002") ==6 ) {
  1434. // 기술적 기록 입력
  1435. submit("TXAER00306");
  1436. } else {
  1437. return "0";
  1438. }
  1439. }
  1440. /* @group : IV입력관리(핵의학체내)
  1441. * @ver : 2007.03.21
  1442. * @by : 장준원
  1443. * @-----------------------------------
  1444. * @type : function
  1445. * @access : public
  1446. * @desc : IV입력 취소를 위한 Function
  1447. */
  1448. function fExeNuclCnclList() {
  1449. var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
  1450. var excuroomcdid = model.getValue("/root/send/data/cmb_info/initexecroom/excuroomcdid");
  1451. for (var i=1; i<grd_subordlist1.rows; i++) {
  1452. var selChk = grd_subordlist1.valueMatrix(i, grd_subordlist1.colRef("check"));
  1453. if (selChk == "Y") {
  1454. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/nuclcd", model.getValue("/root/send/ivdata/nuclcd"));
  1455. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/oldnuclcd", model.getValue("/root/send/ivdata/oldnuclcd"));
  1456. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/drugdd", model.getValue("/root/send/ivdata/drugdd"));
  1457. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/drugtm", model.getValue("/root/send/ivdata/drugtm"));
  1458. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/drugqty", model.getValue("/root/send/ivdata/drugqty"));
  1459. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/cstqty", model.getValue("/root/send/ivdata/cstqty"));
  1460. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/nuclrem", model.getValue("/root/send/ivdata/nuclrem"));
  1461. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/compdcd", model.getValue("/root/send/ivdata/compdcd"));
  1462. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/drugmthdcd", model.getValue("/root/send/ivdata/drugmthdcd"));
  1463. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/phormcd", model.getValue("/root/send/ivdata/phormcd"));
  1464. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/scrtroomcd", model.getValue("/root/send/ivdata/scrtrmcd"));
  1465. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/injpartcd", model.getValue("/root/send/ivdata/injpartcd"));
  1466. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/suplcustcd", model.getValue("/root/send/ivdata/suplcustcd"));
  1467. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/ht", model.getValue("/root/send/ivdata/ht"));
  1468. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/bdwt", model.getValue("/root/send/ivdata/bdwt"));
  1469. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/bsugarqty", model.getValue("/root/send/ivdata/bsugarqty"));
  1470. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/labbkg", model.getValue("/root/send/ivdata/labbkg"));
  1471. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/patbkg", model.getValue("/root/send/ivdata/patbkg"));
  1472. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/smplact", model.getValue("/root/send/ivdata/smplact"));
  1473. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/thyrmea", model.getValue("/root/send/ivdata/thyrmea"));
  1474. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/testrsltval", model.getValue("/root/send/ivdata/testrsltval"));
  1475. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/execrid", model.getValue("/root/send/ivdata/execrid"));
  1476. model.makeValue("/root/main/subordlist/subordlist1[" + i + "]/ordcd", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/calcscorcd"));
  1477. var ivinputyn = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/ivinputyn");
  1478. var prcpnm = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/prcpnm");
  1479. if ( ivinputyn == "N" ) {
  1480. messageBox("["+ prcpnm + "] 처방은 동위원소투여 입력여부가 [N]입니다. 취소상태로 변경할 수 없습니다.","I999");
  1481. return "0";
  1482. }
  1483. }
  1484. }
  1485. var nodeList = instance1.selectNodes("/root/main/subordlist/subordlist1[check='Y' ]");
  1486. var rCSV = getNodeListCSV(nodeList);
  1487. if ( rCSV == null ) {
  1488. messageBox("동위원소 투여 취소 할 처방을","C002");
  1489. return;
  1490. }
  1491. model.setValue("/root/send/data/nuclinput/nuclinptlist", rCSV);
  1492. if ( messageBox("동위원소투여 입력 취소를 ","Q002")==6 ) {
  1493. submit("TXAER00307");
  1494. } else {
  1495. return "0";
  1496. }
  1497. }
  1498. /* @group : 화면 상단에 선택된 환자정보 조회(핵의학체내)
  1499. * @ver : 2007.03.21
  1500. * @by : 장준원
  1501. * @-----------------------------------
  1502. * @type : function
  1503. * @access : public
  1504. * @desc : Function
  1505. */
  1506. function fTopInfo(){
  1507. //TOP 정보 보여주기
  1508. schk = "N";
  1509. var pid = model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/pid");
  1510. var prcpgenrflag = model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/prcpgenrflag");
  1511. var dschdd = model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/dschdd");
  1512. var srchdd = "";
  1513. if ( prcpgenrflag =="O" ) {
  1514. var pat_info = prcpgenrflag
  1515. + "▦"+ pid
  1516. + "▦"+ model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/orddd")
  1517. + "▦"+ model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/cretno")
  1518. + "▦"+ getUserInfo("dutplceinstcd")
  1519. + "▦1▦"+model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/orddd");
  1520. schk = "Y";
  1521. } else if ( prcpgenrflag =="I" || prcpgenrflag =="D" || prcpgenrflag =="E" ) {
  1522. if (dschdd == "" || dschdd == "99991231") {
  1523. srchdd = getCurrentDate();
  1524. } else {
  1525. srchdd = dschdd;
  1526. }
  1527. var pat_info = prcpgenrflag
  1528. + "▦"+ pid
  1529. + "▦"+ model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/orddd")
  1530. + "▦"+ model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/cretno")
  1531. + "▦"+ getUserInfo("dutplceinstcd")
  1532. + "▦"+ srchdd;
  1533. schk = "Y";
  1534. } else if ( prcpgenrflag =="S" || prcpgenrflag =="-" ) {
  1535. var pat_info = prcpgenrflag
  1536. + "▦"+ model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/prcpdd")
  1537. + "▦"+ model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/execprcpuniqno")
  1538. + "▦"+ getUserInfo("dutplceinstcd");
  1539. schk = "Y";
  1540. }
  1541. if (schk == "Y"){
  1542. setParameter("condparam", pat_info);
  1543. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  1544. }
  1545. // Open 되어 있는 프로그램에서 선택 환자 변경 시 재조회
  1546. fOpenPrgmReRef(pid);
  1547. }
  1548. // 처방으로 조회 한 경우 Top 정보 보여주기
  1549. function fTopInfo2(){
  1550. //TOP 정보 보여주기
  1551. schk = "N";
  1552. var pid = model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/pid");
  1553. var prcpgenrflag = model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/prcpgenrflag");
  1554. var dschdd = model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/dschdd");
  1555. var srchdd = "";
  1556. if ( prcpgenrflag =="O" ) {
  1557. var pat_info = prcpgenrflag
  1558. +"▦"+pid
  1559. +"▦"+model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/orddd")
  1560. +"▦"+model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/cretno")
  1561. +"▦"+getUserInfo("dutplceinstcd")
  1562. +"▦1▦"+model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/orddd");
  1563. schk = "Y";
  1564. } else if ( prcpgenrflag =="I" || prcpgenrflag =="D" || prcpgenrflag =="E" ) {
  1565. if (dschdd == "" || dschdd == "99991231") {
  1566. srchdd = getCurrentDate();
  1567. } else {
  1568. srchdd = dschdd;
  1569. }
  1570. var pat_info = prcpgenrflag
  1571. +"▦"+ pid
  1572. +"▦"+ model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/orddd")
  1573. +"▦"+ model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/cretno")
  1574. +"▦"+ getUserInfo("dutplceinstcd")
  1575. +"▦"+ srchdd;
  1576. schk = "Y";
  1577. } else if ( prcpgenrflag =="S" || prcpgenrflag =="-" ) {
  1578. var pat_info = prcpgenrflag + "▦"+ model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/prcpdd")
  1579. +"▦"+model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/execprcpuniqno")
  1580. +"▦"+getUserInfo("dutplceinstcd");
  1581. schk = "Y";
  1582. }
  1583. if (schk == "Y"){
  1584. setParameter("condparam", pat_info);
  1585. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  1586. }
  1587. // Open 되어 있는 프로그램에서 선택 환자 변경 시 재조회
  1588. fOpenPrgmReRef(pid);
  1589. }
  1590. /* @group :
  1591. * @ver :
  1592. * @by :
  1593. * @-----------------------------------
  1594. * @type : function
  1595. * @access : public
  1596. * @desc : Open 되어 있는 프로그램에서 선택 환자 변경 시 재조회
  1597. */
  1598. function fOpenPrgmReRef(pid) {
  1599. // 1. 예약조회
  1600. var curRsrvRefObj = getOpenWindow("SMAEA00300"); //활성화된 검사결과 화면 object loading
  1601. if(curRsrvRefObj != null){
  1602. curRsrvRefObj.model.setvalue("/root/send/srchpid", pid );
  1603. curRsrvRefObj.javascript.btn_sea.dispatch("DOMActivate");
  1604. }
  1605. // 2. 환자정보조회
  1606. var curPatInfoRefObj = getOpenWindow("SMMMO02500"); //활성화된 검사결과 화면 object loading
  1607. if(curPatInfoRefObj != null){
  1608. fPatidInfo();
  1609. }
  1610. // 3. 환자진행조회
  1611. var curPatPrcsRefObj = getOpenWindow("SMAEA04000"); //활성화된 검사결과 화면 object loading
  1612. if(curPatPrcsRefObj != null){
  1613. curPatPrcsRefObj.model.setvalue("/root/send/srchpid", pid );
  1614. curPatPrcsRefObj.javascript.btn_sea.dispatch("DOMActivate");
  1615. }
  1616. // 4. 환자채혈관리
  1617. var curPatBCollRefObj = getOpenWindow("SMLLC00300"); //활성화된 검사결과 화면 object loading
  1618. if(curPatBCollRefObj != null){
  1619. curPatBCollRefObj.model.setvalue("/root/hidden/JoHoiFlag/regnopatnm", pid );
  1620. curPatBCollRefObj.javascript.iptSearch.dispatch("onbuttonclick");
  1621. }
  1622. // 5. 통합결과조회
  1623. var curExamRsltObj = getOpenWindow("SMAER00800"); //활성화된 검사결과 화면 object loading
  1624. if(curExamRsltObj != null){
  1625. curExamRsltObj.model.setvalue("/root/send/data/singdata/srchpid", pid );
  1626. curExamRsltObj.javascript.btn_srch.dispatch("DOMActivate");
  1627. }
  1628. // 6. 개인별 처방이력조회
  1629. var curPatPrcpHistRefObj = getOpenWindow("SMAEA00400"); //활성화된 검사결과 화면 object loading
  1630. if(curPatPrcpHistRefObj != null){
  1631. curPatPrcpHistRefObj.model.setvalue("/root/send/pid", pid );
  1632. curPatPrcpHistRefObj.javascript.btn_sea.dispatch("DOMActivate");
  1633. }
  1634. }
  1635. /* @group : IV입력관리(핵의학체내)
  1636. * @ver : 2007.03.21
  1637. * @by : 장준원
  1638. * @-----------------------------------
  1639. * @type : function
  1640. * @access : public
  1641. * @desc : IV입력내역 조회을 위한 Function
  1642. */
  1643. function fGetNuclInptList(subgridlistid) {
  1644. var i = subgridlistid.row;
  1645. model.resetInstanceNode("/root/send/ivdata/prcpdd");
  1646. model.resetInstanceNode("/root/send/ivdata/execprcpuniqno");
  1647. model.resetInstanceNode("/root/send/ivdata/pid");
  1648. model.resetInstanceNode("/root/send/ivdata/ordcd");
  1649. model.resetInstanceNode("/root/send/ivdata/ivinputyn");
  1650. model.resetInstanceNode("/root/send/ivdata/execrid");
  1651. model.makeValue("/root/send/ivdata/prcpdd", model.getValue("/root/main/subordlist/subordlist1["+ i +"]/prcpdd") );
  1652. model.makeValue("/root/send/ivdata/execprcpuniqno",model.getValue("/root/main/subordlist/subordlist1["+ i +"]/execprcpuniqno") );
  1653. model.makeValue("/root/send/ivdata/pid", model.getValue("/root/main/subordlist/subordlist1["+ i +"]/pid") );
  1654. model.makeValue("/root/send/ivdata/ordcd", model.getValue("/root/main/subordlist/subordlist1["+ i +"]/calcscorcd") );
  1655. model.makeValue("/root/send/ivdata/ivinputyn", model.getValue("/root/main/subordlist/subordlist1["+ i +"]/ivinputyn") );
  1656. model.makeValue("/root/send/ivdata/execrid", model.getValue("/root/main/subordlist/subordlist1["+ i +"]/execrid"));
  1657. // PACS 연동 항목
  1658. //model.makeValue("/root/send/ivdata/pacsnocretyn", model.getValue("/root/main/subordlist/subordlist1["+i+"]/pacsnocretyn"));
  1659. model.makeValue("/root/send/ivdata/orddd", model.getValue("/root/main/subordlist/subordlist1["+ i +"]/orddd"));
  1660. model.makeValue("/root/send/ivdata/orddeptcdd", model.getValue("/root/main/subordlist/subordlist1["+ i +"]/orddeptcdd"));
  1661. model.makeValue("/root/send/ivdata/prcpgenrflag", model.getValue("/root/main/subordlist/subordlist1["+ i +"]/prcpgenrflag"));
  1662. model.makeValue("/root/send/ivdata/cretno", model.getValue("/root/main/subordlist/subordlist1["+ i +"]/cretno"));
  1663. model.makeValue("/root/send/ivdata/examroomnm", model.getValue("/root/main/subordlist/subordlist1["+ i +"]/examroomnm"));
  1664. model.makeValue("/root/send/ivdata/calcscorcd", model.getValue("/root/main/subordlist/subordlist1["+ i +"]/calcscorcd"));
  1665. model.makeValue("/root/send/ivdata/rgstrid", model.getValue("/root/main/subordlist/subordlist1["+ i +"]/rgstrid"));
  1666. model.makeValue("/root/send/ivdata/prcpdelivefact", model.getValue("/root/main/subordlist/subordlist1["+ i +"]/prcpdelivefact"));
  1667. model.makeValue("/root/send/ivdata/prcpexecdeptcd",model.getValue("/root/main/subordlist/subordlist1["+ i +"]/prcpexecdeptcd"));
  1668. model.makeValue("/root/send/ivdata/orddepthngnm", model.getValue("/root/main/subordlist/subordlist1["+ i +"]/orddepthngnm"));
  1669. model.makeValue("/root/send/ivdata/pacsnocretyn", model.getValue("/root/main/subordlist/subordlist1["+ i +"]/pacsnocretcdyn"));
  1670. var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
  1671. var excuroomcdid = model.getValue("/root/main/subordlist/subordlist1["+i+"]/excuroomcd");
  1672. model.makeValue("/root/send/ivdata/srchexcucd", model.getValue("/root/main/subordlist/subordlist1["+i+"]/calcscorcd") );
  1673. model.makeValue("/root/send/ivdata/prcpdd", model.getValue("/root/main/subordlist/subordlist1["+i+"]/prcpdd") );
  1674. model.makeValue("/root/send/ivdata/execprcpuniqno", model.getValue("/root/main/subordlist/subordlist1["+i+"]/execprcpuniqno") );
  1675. model.makeValue("/root/send/ivdata/suppdeptcd", model.getValue("/root/send/globalinstance/instance1") );
  1676. // 기술적 기록 입력 여부가 Y인 경우
  1677. if ( model.getValue("/root/main/subordlist/subordlist1["+i+"]/ivinputyn") == "Y" ) {
  1678. // 기술적 기록 조회
  1679. submit("TRAER00309",false);
  1680. copyNodesetType("/root/send/ivdata", "/root/main/mainordlist2/subordlist");
  1681. model.makeValue("/root/send/ivdata/prcpdd", model.getValue("/root/main/subordlist/subordlist1["+i+"]/prcpdd"));
  1682. if ( excuroomgrpcdid == "PET-CT실") {
  1683. model.makeValue("/root/send/ivdata/srchphormcd", excuroomcdid);
  1684. // 대기실 현황
  1685. fGetScrtRoomUseList();
  1686. }
  1687. } else {
  1688. /* */
  1689. // 재료소모코드관리의 TRAEB02001을 호출하기 위해 calcscorcd를 srchexcucd로 대체함.
  1690. submit("TRAEB02001",false)
  1691. var cnt = getNodesetCount("/root/main/matrcstcodelist/item");
  1692. copyNodesetType("/root/send/ivdata", "/root/main/matrcstcodelist/item");
  1693. model.makeValue("/root/send/ivdata/drugdd", getCurrentDate());
  1694. model.makeValue("/root/send/ivdata/drugtm", getCurrentTime());
  1695. // 사용자 요구 사항에 의해서 기본값 설정(재료소모코드에 등록된 내역 없을 경우
  1696. if (cnt == 0) {
  1697. if ( excuroomgrpcdid == "치료,투약실") {
  1698. model.makeValue("/root/send/ivdata/nuclcd", "RI12");
  1699. model.makeValue("/root/send/ivdata/drugmthdcd", "IN05");
  1700. model.makeValue("/root/send/ivdata/drugqty", "150");
  1701. } else if ( excuroomgrpcdid == "기능적 검사") {
  1702. // Thyroid uptake 일 경우
  1703. if (excuroomcdid == "NMFUNC01") {
  1704. model.makeValue("/root/send/ivdata/nuclcd", "RI12");
  1705. model.makeValue("/root/send/ivdata/drugmthdcd", "TR15");
  1706. }
  1707. }
  1708. }
  1709. if ( excuroomgrpcdid == "PET-CT실") {
  1710. model.makeValue("/root/send/ivdata/srchphormcd", excuroomcdid);
  1711. // 대기실 현황
  1712. fGetScrtRoomUseList();
  1713. }
  1714. }
  1715. model.refresh();
  1716. }
  1717. /* @group :
  1718. * @ver :
  1719. * @by :
  1720. * @-----------------------------------
  1721. * @type : function
  1722. * @access : public
  1723. * @desc : Function
  1724. */
  1725. function fGetScrtRoomUseList() {
  1726. var srchphormcd = model.getValue("/root/send/ivdata/srchphormcd");
  1727. if (srchphormcd != "") {
  1728. if (submit("TRAER00315",false)) {
  1729. var nodecnt = getNodesetCount("/root/main/scrtlist/scrtuselist");
  1730. if (nodecnt > 0) {
  1731. for (var i=1; i<=nodecnt;i++) {
  1732. var drugdt = model.getValue("/root/main/scrtlist/scrtuselist[" + i + "]/drugdt");
  1733. var diffTime = getTimeInterval(drugdt.substring(8,12), getCurrentTime().substring(0,4));
  1734. diffTime = (diffTime*1) / 60;
  1735. model.setValue("/root/main/scrtlist/scrtuselist[" + i + "]/progdt", diffTime + "분");
  1736. }
  1737. }
  1738. }
  1739. model.refresh();
  1740. }
  1741. }
  1742. /* @group : 실시관리(핵체내)
  1743. * @ver : 2007.03.21
  1744. * @by : 장준원
  1745. * @-----------------------------------
  1746. * @type : function
  1747. * @access : public
  1748. * @desc : 환자받기를 위한 대상자 조회 Function
  1749. */
  1750. function fGetExamCurePrcpAceptList(maingridlistid) {
  1751. var row = maingridlistid.row;
  1752. var excuroomcd = maingridlistid.valueMatrix(row, maingridlistid.colRef("basecd"));
  1753. model.makeValue("/root/send/data/grd_info/grid_data/excuroomcd", excuroomcd);
  1754. model.makeValue("/root/send/data/grd_info/grid_data/largeclass", "M3");
  1755. model.makeValue("/root/send/data/acptlistflag", "J");
  1756. var success = submit("TRAER00316");
  1757. //alert(success);
  1758. }
  1759. /* @group : 실시관리(핵체내)
  1760. * @ver : 2007.03.21
  1761. * @by : 장준원
  1762. * @-----------------------------------
  1763. * @type : function
  1764. * @access : public
  1765. * @desc : 마지막 채혈 정보 조회 (T3, T4, TSH, Anti-TG-Ab, Free T4)
  1766. */
  1767. function fBColl() {
  1768. var pid = model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/pid");
  1769. model.setValue("/root/send/data2/pid",pid);
  1770. modal("SPAEA05200", "", "200", "200", "SPAEA05200","/root/send/data2/pid","/root/send/data/pid");
  1771. }
  1772. /* @group : 실시관리(핵체내)
  1773. * @ver : 2007.03.21
  1774. * @by : 장준원
  1775. * @-----------------------------------
  1776. * @type : function
  1777. * @access : public
  1778. * @desc : 부서별 기록관리
  1779. */
  1780. function fDeptCaseRecMngt() {
  1781. open("SPMMR05400", "", "", "", "SPMMR05400","","");
  1782. }
  1783. //=====================================================================================================================================================================================
  1784. // @ 검사실대기환자등록
  1785. //=====================================================================================================================================================================================
  1786. function fSetWaitExcuRoomPatList() {
  1787. var dutplceinstcd = getUserInfo("dutplceinstcd");
  1788. var waitroomcdinstcd = model.getValue("/root/init/waitfoominfo/waitroomcdval/A0608/cdid");
  1789. var waitroomcdyn = model.getValue("/root/init/waitfoominfo/waitroomcdval/A0608/cdnm");
  1790. if ( dutplceinstcd == waitroomcdinstcd && waitroomcdyn != 'Y') {
  1791. messageBox("등록된 대기자시스템이", "I004");
  1792. return;
  1793. }
  1794. var acptlistflag = model.getValue("/root/send/data/acptlistflag");
  1795. if (acptlistflag != "E") {
  1796. messageBox("부분실시 상태가 아닌 경우 대기자 등록을 ", "E001");
  1797. return;
  1798. }
  1799. model.removenode("/root/main/temp/ordschelistinfo");
  1800. var schelistcnt = grd_subordlist1.row;
  1801. var instcd = getUserInfo("dutplceinstcd"); // 기관코드
  1802. var pid = model.getValue("/root/main/subordlist/subordlist1["+ schelistcnt +"]/pid"); // 환자등록번호
  1803. var orddd = getCurrentDate(); // 진료일자
  1804. var orddeptcd = model.getValue("/root/send/globalinstance/instance1"); // 지원부서코드
  1805. var ordroomcd = model.getValue("/root/main/subordlist/subordlist1["+ schelistcnt +"]/excuroomcd"); // 검사실코드
  1806. var orddrid = model.getValue("/root/main/subordlist/subordlist1["+ schelistcnt +"]/orddrid"); // 진료의ID
  1807. var ordrsrvtm = getCurrentTime().substring(0,4); // 진료예약시간
  1808. var ordrsrvseqno = schelistcnt; // 진료예약순서
  1809. var dayflag = "Y"; // 당일구분
  1810. model.makeValue("/root/main/temp/ordschelistinfo[" + 1 + "]/chk","1");
  1811. model.makeValue("/root/main/temp/ordschelistinfo[" + 1 + "]/instcd",instcd); // 기관코드
  1812. model.makeValue("/root/main/temp/ordschelistinfo[" + 1 + "]/pid",pid); // 환자등록번호
  1813. model.makeValue("/root/main/temp/ordschelistinfo[" + 1 + "]/orddd", orddd); // 진료일자
  1814. model.makeValue("/root/main/temp/ordschelistinfo[" + 1 + "]/orddeptcd",orddeptcd); // 지원부서코드
  1815. model.makeValue("/root/main/temp/ordschelistinfo[" + 1 + "]/ordroomcd",ordroomcd); // 검사실코드
  1816. model.makeValue("/root/main/temp/ordschelistinfo[" + 1 + "]/orddrid",orddrid); // 진료의ID
  1817. model.makeValue("/root/main/temp/ordschelistinfo[" + 1 + "]/ordrsrvtm",ordrsrvtm); // 진료예약시간
  1818. model.makeValue("/root/main/temp/ordschelistinfo[" + 1 + "]/ordrsrvseqno",""); // 진료예약순서
  1819. model.makeValue("/root/main/temp/ordschelistinfo[" + 1 + "]/dayflag",dayflag); // 당일구분
  1820. // 검사실 전광판 대기 환자 등록 인터페이스 정보
  1821. var sPath="/root/main/temp/ordschelistinfo";
  1822. fSaveExcuRoomPatList(sPath);
  1823. }
  1824. /* @group : 실시관리(핵체내)
  1825. * @ver :
  1826. * @by : 김건기
  1827. * @-----------------------------------
  1828. * @type : function
  1829. * @access : public
  1830. * @desc : 상태 별 버튼 활성화 표시
  1831. */
  1832. function fBtnDisabled(acptlistflag) {
  1833. var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
  1834. switch (acptlistflag) {
  1835. case "J": //투여대기
  1836. btn_roomupdt.disabled = false; // 실변경
  1837. btn_partexec.disabled = true; // 시작
  1838. btn_contcure.disabled = true; // 연속검사
  1839. btn_druginpt.disabled = false; // 투여입력
  1840. btn_drugcncl.disabled = true; // 투여취소
  1841. btn_acpt.disabled = true; // 실시완료
  1842. btn_acptcncl.disabled = true; // 취소
  1843. btn_hold.disabled = false; // 실시보류
  1844. btn_holdcncl.disabled = false; // 실시보류 취소
  1845. // cmb_eqcdlist.disabled = true;
  1846. if (excuroomgrpcdid == "PET-CT실") {
  1847. btn_accept.disabled = false; // 환자받기
  1848. } else {
  1849. btn_accept.disabled = true; // 환자받기
  1850. }
  1851. break;
  1852. case "E": //실시
  1853. btn_roomupdt.disabled = false; // 실변경
  1854. btn_partexec.disabled = false; // 시작
  1855. btn_contcure.disabled = false; // 연속검사
  1856. btn_druginpt.disabled = false; // 투여입력
  1857. btn_drugcncl.disabled = false; // 투여취소
  1858. btn_acpt.disabled = false; // 실시완료
  1859. btn_acptcncl.disabled = true; // 취소
  1860. btn_hold.disabled = true; // 실시보류
  1861. btn_holdcncl.disabled = true; // 실시보류 취소
  1862. // cmb_eqcdlist.disabled = false;
  1863. if (excuroomgrpcdid == "PET-CT실") {
  1864. btn_accept.disabled = true; // 환자받기
  1865. } else {
  1866. btn_accept.disabled = false; // 환자받기
  1867. }
  1868. break;
  1869. case "S": //실시완료
  1870. btn_roomupdt.disabled = true; // 실변경
  1871. btn_partexec.disabled = true; // 시작
  1872. btn_contcure.disabled = true; // 연속검사
  1873. btn_druginpt.disabled = true; // 투여입력
  1874. btn_drugcncl.disabled = true; // 투여취소
  1875. btn_acpt.disabled = true; // 실시완료
  1876. btn_acptcncl.disabled = false; // 취소
  1877. btn_hold.disabled = true; // 실시보류
  1878. btn_holdcncl.disabled = true; // 실시보류 취소
  1879. // cmb_eqcdlist.disabled = true;
  1880. btn_accept.disabled = true; // 환자받기
  1881. break;
  1882. default:
  1883. btn_roomupdt.disabled = true; // 실변경
  1884. btn_partexec.disabled = true; // 시작
  1885. btn_contcure.disabled = true; // 연속검사
  1886. btn_druginpt.disabled = true; // 투여입력
  1887. btn_drugcncl.disabled = true; // 투여취소
  1888. btn_acpt.disabled = true; // 실시완료
  1889. btn_acptcncl.disabled = true; // 취소
  1890. btn_hold.disabled = true; // 실시보류
  1891. btn_holdcncl.disabled = true; // 실시보류 취소
  1892. // cmb_eqcdlist.disabled = true;
  1893. btn_accept.disabled = true; // 환자받기
  1894. break;
  1895. }
  1896. }
  1897. /* @group : 실시관리(핵체내)
  1898. * @ver :
  1899. * @by : 김건기
  1900. * @-----------------------------------
  1901. * @type : function
  1902. * @access : public
  1903. * @desc : 검사실 그룹 변경 시 이벤트
  1904. */
  1905. function fExcuRoomGrpChoi(excuroomgrpcdid) {
  1906. if (excuroomgrpcdid == "") {
  1907. cmb_excuroom.disabled = true;
  1908. } else {
  1909. cmb_excuroom.disabled = false;
  1910. }
  1911. if (submit("TRAEA01418")) {
  1912. copyNodeType("/root/init/cmb_info/excuroom","/root/hidden/cmb_info/excuroom","replace");
  1913. model.removenode("/root/hidden/cmb_info/initexecrinfo/initexecrid[1]");
  1914. copyNodeType("/root/init/cmb_info/initexecrinfo","/root/hidden/cmb_info/initexecrinfo","replace");
  1915. model.setValue("/root/send/data/cmb_info/initexecroom/excuroomcdid","");
  1916. }
  1917. model.refresh();
  1918. }
  1919. /* @group : 실시관리(핵체내)
  1920. * @ver :
  1921. * @by : 김건기
  1922. * @-----------------------------------
  1923. * @type : function
  1924. * @access : public
  1925. * @desc : 기술적 기록 입력 화면 설정
  1926. */
  1927. function fSetToggle(excuroomcdid) {
  1928. var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
  1929. var excuroomcdid = model.getValue("/root/send/data/cmb_info/initexecroom/excuroomcdid");
  1930. btn_clear.visible = false;
  1931. //20101012 NM002 각검사실별 해당 기술적기록 탭 선택 -박재영
  1932. var loop = getNodesetCount("/root/main/codelist/item");
  1933. var cdnm = "";
  1934. var cdid = "";
  1935. var selectcase = "";
  1936. for( var i = 1 ; i <= loop ; i++ ) {
  1937. cdnm = model.getValue("/root/main/codelist/item[" + i + "]/cdnm");
  1938. if(cdnm == excuroomgrpcdid){
  1939. cdid = model.getValue("/root/main/codelist/item[" + i + "]/cdid");
  1940. if(cdid == excuroomcdid){
  1941. selectcase = model.getValue("/root/main/codelist/item[" + i + "]/cntlcd1");
  1942. //alert(selectcase);
  1943. i = loop;
  1944. }else{
  1945. selectcase = model.getValue("/root/main/codelist/item[" + i + "]/cntlcd1");
  1946. }
  1947. }
  1948. }
  1949. if( selectcase == ""){
  1950. model.toggle("NM");
  1951. }else{
  1952. model.toggle(selectcase);
  1953. if ( selectcase == "NM") {
  1954. btn_clear.visible = true;
  1955. }
  1956. }
  1957. /* 20101012 공통코드 등록으로 주석처리 - 박재영
  1958. if ( excuroomgrpcdid == "영상검사실") {
  1959. // Thyroid uptake 일 경우
  1960. if (excuroomcdid == "NMFUNC01") {
  1961. model.toggle("FUNC01");
  1962. // GFR PLASMA 일 경우
  1963. } else if (excuroomcdid == "NMFUNC02") {
  1964. model.toggle("FUNC02");
  1965. } else {
  1966. model.toggle("NM");
  1967. btn_clear.visible = true;
  1968. }
  1969. } else if ( excuroomgrpcdid == "PET-CT실") {
  1970. model.toggle("PT");
  1971. } else if ( excuroomgrpcdid == "치료,투약실") {
  1972. model.toggle("CU");
  1973. } else if ( excuroomgrpcdid == "기능적 검사") {
  1974. // Thyroid uptake 일 경우
  1975. if (excuroomcdid == "NMFUNC01") {
  1976. model.toggle("FUNC01");
  1977. // GFR PLASMA 일 경우
  1978. } else if (excuroomcdid == "NMFUNC02") {
  1979. model.toggle("FUNC02");
  1980. } else {
  1981. model.toggle("FUNC01");
  1982. }
  1983. } else {
  1984. model.toggle("NM");
  1985. }
  1986. */
  1987. }
  1988. /* @group : 검사실 변경
  1989. * @ver :
  1990. * @by :
  1991. * @-----------------------------------
  1992. * @type : function
  1993. * @access : public
  1994. * @desc : 검사실 환자받기을 위한 선택 Function
  1995. */
  1996. function fSetExamCureAcceptRoomCodeList() {
  1997. if ( grd_subpopordlist.row == 0 ) return;
  1998. var check = "";
  1999. var loopcnt = 0;
  2000. var loop = grd_subpopordlist.rows - grd_subpopordlist.fixedRows;
  2001. var excuroomcdid = model.getValue("/root/send/data/cmb_info/initexecroom/excuroomcdid");
  2002. // 촬영실을 선택 여부 체크
  2003. if (excuroomcdid == "") {
  2004. messageBox("환자를 받기를 할 촬영실을", "C002");
  2005. return;
  2006. }
  2007. var acptlistflag = model.getValue("/root/send/data/acptlistflag");
  2008. var excuroomcdid = model.getValue("/root/send/data/cmb_info/initexecroom/excuroomcdid");
  2009. var excuposseqcd = model.getValue("/root/init/cmb_info/excuroom/initexcuroom[excuroomcdid='" + excuroomcdid + "']/excuposseqcd");
  2010. var schelistcnt = 1;
  2011. model.removenode("/root/main/temp/ordschelistinfo");
  2012. for( var i = 1 ; i <= loop ; i++ ) {
  2013. check = model.getValue("/root/main/ordlist3/mainordlist/mainordlist3[" + i + "]/check");
  2014. pacsnocretcdyn = model.getValue("/root/main/ordlist3/mainordlist/mainordlist3[" + i + "]/pacsnocretcdyn");
  2015. if ( check == "Y" ) {
  2016. model.setValue("/root/main/ordlist3/mainordlist/mainordlist3[" + i + "]/excuroomcd", excuroomcdid);
  2017. model.makeValue("/root/main/ordlist3/mainordlist/mainordlist3[" + i + "]/excueqcdid", excuposseqcd);
  2018. if (acptlistflag == "J") {
  2019. model.makeValue("/root/main/ordlist3/mainordlist/mainordlist3[" + i + "]/pacsyn", "2");
  2020. model.makeValue("/root/main/ordlist3/mainordlist/mainordlist3[" + i + "]/syncflag ", "2");
  2021. } else if (acptlistflag == "E") {
  2022. model.makeValue("/root/main/ordlist3/mainordlist/mainordlist3[" + i + "]/pacsyn", "3");
  2023. model.makeValue("/root/main/ordlist3/mainordlist/mainordlist3[" + i + "]/syncflag ", "3");
  2024. model.setValue("/root/main/ordlist3/mainordlist/mainordlist3[" + i + "]/pacsnocretyn", pacsnocretcdyn);
  2025. // var instcd = getUserInfo("dutplceinstcd"); // 기관코드
  2026. // var pid = model.getValue("/root/main/ordlist3/mainordlist/mainordlist3["+i+"]/pid"); // 환자등록번호
  2027. // var orddd = getCurrentDate(); // 진료일자
  2028. // var orddeptcd = model.getValue("/root/send/globalinstance/instance1"); // 지원부서코드
  2029. // var ordroomcd = excuroomcdid; // 검사실코드
  2030. // var orddrid = model.getValue("/root/main/ordlist3/mainordlist/mainordlist3["+i+"]/orddrid"); // 진료의ID
  2031. // var ordrsrvtm = getCurrentTime().substring(0,4); // 진료예약시간
  2032. // var ordrsrvseqno = schelistcnt; // 진료예약순서
  2033. // var dayflag = "Y"; // 당일구분
  2034. //
  2035. // model.makeValue("/root/main/temp/ordschelistinfo[" + schelistcnt + "]/chk","1");
  2036. // model.makeValue("/root/main/temp/ordschelistinfo[" + schelistcnt + "]/instcd",instcd); // 기관코드
  2037. // model.makeValue("/root/main/temp/ordschelistinfo[" + schelistcnt + "]/pid",pid); // 환자등록번호
  2038. // model.makeValue("/root/main/temp/ordschelistinfo[" + schelistcnt + "]/orddd", orddd); // 진료일자
  2039. // model.makeValue("/root/main/temp/ordschelistinfo[" + schelistcnt + "]/orddeptcd",orddeptcd); // 지원부서코드
  2040. // model.makeValue("/root/main/temp/ordschelistinfo[" + schelistcnt + "]/ordroomcd",ordroomcd); // 검사실코드
  2041. // model.makeValue("/root/main/temp/ordschelistinfo[" + schelistcnt + "]/orddrid",orddrid); // 진료의ID
  2042. // model.makeValue("/root/main/temp/ordschelistinfo[" + schelistcnt + "]/ordrsrvtm",ordrsrvtm); // 진료예약시간
  2043. // model.makeValue("/root/main/temp/ordschelistinfo[" + schelistcnt + "]/ordrsrvseqno",""); // 진료예약순서
  2044. // model.makeValue("/root/main/temp/ordschelistinfo[" + schelistcnt + "]/dayflag",dayflag); // 당일구분
  2045. // schelistcnt++;
  2046. }
  2047. loopcnt++;
  2048. }
  2049. }
  2050. if ( loopcnt == 0 ) {
  2051. messageBox("처방내역을 선택해 주십시오.","I999");
  2052. return;
  2053. }
  2054. model.resetInstanceNode("/root/send/data/tobesetexamcureacceptroomcode/tobesetexamcureacceptroomcodelist");
  2055. var nodeList = instance1.selectNodes("/root/main/ordlist3/mainordlist/mainordlist3[check='Y']");
  2056. var rCSV = getNodeListCSV(nodeList);
  2057. if ( rCSV == "" ) {
  2058. messageBox("처방내역을 선택해 주십시오.","I999");
  2059. return;
  2060. }
  2061. model.makeValue("/root/send/data/tobesetexamcureacceptroomcode/tobesetexamcureacceptroomcodelist", rCSV);
  2062. model.makeValue("/root/send/rsrvyn", acptlistflag);
  2063. model.makeValue("/root/send/syncflag", "1");
  2064. if ( messageBox("[환자받기]를 ","Q002")==6 ) {
  2065. // if (acptlistflag == "E") {
  2066. // // 검사실 전광판 대기 환자 등록 인터페이스 정보
  2067. // var sPath="/root/main/temp/ordschelistinfo";
  2068. // fSaveExcuRoomPatList(sPath);
  2069. // }
  2070. submit("TXAER00308");
  2071. // 장비별 시작 실시
  2072. fExePartExec();
  2073. // 실별대기현황 조회
  2074. fGetExamCureAcptList();
  2075. }else {
  2076. model.resetInstanceNode("/root/send/data/tobesetexamcureacceptroomcode/tobesetexamcureacceptroomcodelist");
  2077. model.refresh();
  2078. return;
  2079. }
  2080. model.refresh();
  2081. }
  2082. /* @group : 연속검사 예약 후 재조회
  2083. * @ver :
  2084. * @by :
  2085. * @-----------------------------------
  2086. * @type : function
  2087. * @access : public
  2088. * @desc : 연속검사 예약 후 재조회 Function
  2089. */
  2090. function fContExamCureAcpt() {
  2091. var srchpid = model.getValue("/root/send/data/srchpid");
  2092. if (srchpid == "") {
  2093. var pid = "";
  2094. var calcscorcd = "";
  2095. if ( btn_case3.selected == true ) {
  2096. calcscorcd = model.getValue("/root/main/ordlist2/mainordlist2["+grd_mainordlist2.row+"]/calcscorcd");
  2097. } else {
  2098. pid = model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/pid");
  2099. }
  2100. model.makeValue("/root/send/temp/pid",pid);
  2101. model.makeValue("/root/send/temp/calcscorcd",calcscorcd);
  2102. fGetExamCureAcptList()
  2103. } else {
  2104. fGetExamCurePidPrcpList();
  2105. }
  2106. }
  2107. /*******************************************************************************************************************************************************************/
  2108. // 선택진료의 변경 2011.02.15 c y w
  2109. /*******************************************************************************************************************************************************************/
  2110. function fSpecdrChange() {
  2111. var idx = grd_subordlist1.row;
  2112. var nodeList = instance1.selectNodes("/root/main/subordlist/subordlist1[check='Y']");
  2113. var rCSV = getNodeListCSV(nodeList);
  2114. if ( rCSV == null ) {
  2115. messageBox("처방내역을","C002");
  2116. }else {
  2117. if( model.getValue("/root/main/subordlist/subordlist1[" + idx + "]/choiordflag") == "Y" ) {
  2118. if( model.getValue("/root/main/subordlist/subordlist1[" + idx + "]/execprcpstatcd") <= 440 ) {
  2119. model.makeValue("/root/send/data/setspecdrcd/item/prcpdd" , model.getValue("/root/main/subordlist/subordlist1[" + idx + "]/prcpdd"));
  2120. model.makeValue("/root/send/data/setspecdrcd/item/pid" , model.getValue("/root/main/subordlist/subordlist1[" + idx + "]/pid"));
  2121. model.makeValue("/root/send/data/setspecdrcd/item/execprcpuniqno" , model.getValue("/root/main/subordlist/subordlist1[" + idx + "]/execprcpuniqno"));
  2122. model.makeValue("/root/send/data/setspecdrcd/item/specdrid" , model.getValue("/root/main/subordlist/subordlist1[" + idx + "]/specdrid"));
  2123. model.makeValue("/root/send/data/setspecdrcd/item/basesuppdeptcd" , model.getValue("/root/main/subordlist/subordlist1[" + idx + "]/basesuppdeptcd"));
  2124. model.makeValue("/root/send/data/setspecdrcd/item/prcpno" , model.getValue("/root/main/subordlist/subordlist1[" + idx + "]/prcpno"));
  2125. model.makeValue("/root/send/data/setspecdrcd/item/ioflag" , model.getValue("/root/main/subordlist/subordlist1[" + idx + "]/prcpgenrflag"));
  2126. //2011.10.17 프로시저호출로 수정되어 추가됨
  2127. model.makeValue("/root/send/data/setspecdrcd/item/prcphistno" , model.getValue("/root/main/subordlist/subordlist1[" + idx + "]/prcphistno"));
  2128. model.makeValue("/root/send/data/setspecdrcd/item/cretno" , model.getValue("/root/main/subordlist/subordlist1[" + idx + "]/cretno"));
  2129. //2011.09.22 선택진료동의서 체크
  2130. model.makeValue("/root/send/data/setspecdrcd/item/orddd", model.getValue("/root/main/subordlist/subordlist1[" + idx + "]/orddd"));
  2131. model.makeValue("/root/send/data/setspecdrcd/item/orddeptcd", model.getValue("/root/main/subordlist/subordlist1[" + idx + "]/orddeptcd"));
  2132. model.makeValue("/root/send/data/setspecdrcd/item/orddrid", model.getValue("/root/main/subordlist/subordlist1[" + idx + "]/orddrid"));
  2133. model.makeValue("/root/send/data/setspecdrcd/item/calcscorcd", model.getValue("/root/main/subordlist/subordlist1[" + idx + "]/calcscorcd"));
  2134. submit("TXAEA01512");
  2135. if ( btn_case1.selected == true || btn_case2.selected == true ) {
  2136. fGetExamCurePrcpList(grd_mainordlist1);
  2137. }else{
  2138. fGetExamCurePrcpList(grd_mainordlist2);
  2139. }
  2140. }else{
  2141. messageBox("선택진료의 변경은 투여대기 경우에만", "I006");
  2142. return;
  2143. }
  2144. } else {
  2145. messageBox("선택진료일 경우에만 변경이", "I006");
  2146. return;
  2147. }
  2148. }
  2149. model.refresh();
  2150. }
  2151. ]]>
  2152. </script>
  2153. </xhtml:head>
  2154. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1197;2,785;2,757;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  2155. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:140px; height:15px; ">
  2156. <![CDATA[실시관리(핵체내)]]>
  2157. <script type="javascript" ev:event="ondblclick">
  2158. <![CDATA[
  2159. open("SMAER00010");
  2160. ]]>
  2161. </script>
  2162. </caption>
  2163. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:16px; width:1192px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
  2164. <caption id="caption5" class="search_name" style="left:514px; top:22px; width:91px; height:17px; ">적용일자 :</caption>
  2165. <caption id="caption1" class="search_name" style="left:790px; top:22px; width:91px; height:17px; ">등록번호 :</caption>
  2166. <line id="line2" class="line_1" style="x1:330px; y1:79px; x2:1188px; y2:79px; "/>
  2167. <textarea id="tar_prcpremfact" ref="/root/main/comment1/prcpdelivefact" style="left:623px; top:662px; width:282px; height:32px; "/>
  2168. <textarea id="tar_acptrem" ref="/root/main/comment1/acptrem" style="left:909px; top:721px; width:282px; height:32px; "/>
  2169. <textarea id="tar_execrem" ref="/root/main/comment1/execrem" style="left:909px; top:662px; width:282px; height:32px; "/>
  2170. <line id="line3" class="line_1" style="x1:7px; y1:80px; x2:322px; y2:371px; "/>
  2171. <select id="chk_statecd" ref="/root/send/data/srchtotal" overflow="visible" appearance="full" style="left:1057px; top:22px; width:68px; height:17px; border-style:none; ">
  2172. <choices>
  2173. <item>
  2174. <label>전체조회</label>
  2175. <value>ALL</value>
  2176. </item>
  2177. </choices>
  2178. <hint>
  2179. <![CDATA[환자별검색시만적용됩니다.]]>
  2180. </hint>
  2181. <script type="javascript" ev:event="onclick">
  2182. <![CDATA[
  2183. if ( btn_case1.selected == false ) {
  2184. btn_case1.selected = true;
  2185. model.toggle("case1");
  2186. }
  2187. if ( chk_statecd.value == "" ) {
  2188. model.setValue("/root/send/data/acptlistflag","M");
  2189. model.refresh();
  2190. }
  2191. ]]>
  2192. </script>
  2193. </select>
  2194. <caption id="caption2" class="tit_2" style="left:623px; top:642px; width:131px; height:13px; ">처방 Comment</caption>
  2195. <line id="line6" class="line_1" style="x1:623px; y1:657px; x2:905px; y2:657px; "/>
  2196. <caption id="caption3" class="tit_2" style="left:909px; top:701px; width:137px; height:14px; ">당일 접수 Comment</caption>
  2197. <line id="line8" class="line_1" style="x1:909px; y1:716px; x2:1191px; y2:716px; "/>
  2198. <line id="line9" class="line_1" style="x1:909px; y1:657px; x2:1191px; y2:657px; "/>
  2199. <caption id="caption4" class="tit_2" style="left:909px; top:642px; width:123px; height:13px; ">실시 Comment</caption>
  2200. <caption id="caption6" class="tit_2" style="left:330px; top:642px; width:126px; height:13px; ">핵의학과 메모현황</caption>
  2201. <line id="line10" class="line_1" style="x1:330px; y1:657px; x2:620px; y2:657px; "/>
  2202. <button id="button27" class="btn3_letter6" style="left:82px; top:760px; width:104px; height:22px; ">
  2203. <caption>환자정보조회</caption>
  2204. <script type="javascript" ev:event="DOMActivate">
  2205. <![CDATA[
  2206. fPatidInfo();
  2207. ]]>
  2208. </script>
  2209. </button>
  2210. <button id="button25" class="btn3_letter4" style="left:2px; top:760px; width:80px; height:22px; ">
  2211. <caption>예약조회</caption>
  2212. <script type="javascript" ev:event="DOMActivate">
  2213. <![CDATA[
  2214. //var row = grd_subordlist1.row;
  2215. //var pid = grd_subordlist1.valueMatrix(row, grd_subordlist1.colRef("pid"));
  2216. fRsrvInfo();
  2217. ]]>
  2218. </script>
  2219. </button>
  2220. <input id="ipt_date1" ref="/root/send/data/srchdate1" class="input_default" inputtype="date" style="left:604px; top:22px; width:90px; height:19px; ">
  2221. <script type="javascript" ev:event="xforms-value-changed">
  2222. <![CDATA[
  2223. // 사용자 변경 정보 저장
  2224. model.property("exec_srchdate1") = ipt_date1.value;
  2225. ]]>
  2226. </script>
  2227. </input>
  2228. <input id="ipt_date2" ref="/root/send/data/srchdate2" class="input_default" inputtype="date" style="left:695px; top:22px; width:90px; height:19px; ">
  2229. <script type="javascript" ev:event="xforms-value-changed">
  2230. <![CDATA[
  2231. // 사용자 변경 정보 저장
  2232. model.property("exec_srchdate2") = ipt_date2.value;
  2233. ]]>
  2234. </script>
  2235. </input>
  2236. <input id="ipt_pid" ref="/root/send/data/srchpid" class="input_search" maxlength="10" style="left:884px; top:22px; width:80px; height:19px; ">
  2237. <script type="javascript" ev:event="onkeydown">
  2238. <![CDATA[
  2239. if ( event.keyCode == 13 ) {
  2240. setInputNodeCurText();
  2241. fGetExamCurePidPrcpList();
  2242. }
  2243. ]]>
  2244. </script>
  2245. </input>
  2246. <button id="button61" class="icon_search" style="left:966px; top:23px; width:16px; height:16px; ">
  2247. <caption/>
  2248. <script type="javascript" ev:event="onclick">
  2249. <![CDATA[
  2250. model.setValue("/root/send/data2/srchcond", "2");
  2251. model.setValue("/root/send/data2/pid", model.getValue("/root/send/data/srchpid"));
  2252. modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/data2","/root/send");
  2253. model.setValue("/root/send/data/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid") );
  2254. model.refresh();
  2255. ]]>
  2256. </script>
  2257. </button>
  2258. <output id="ipt_patnm" ref="/root/main/patinfo/patinfolist/hngnm" class="output_fix" style="left:983px; top:22px; width:72px; height:19px; "/>
  2259. <button id="btn_sea" class="btn1_letter2" style="left:1129px; top:20px; width:56px; height:22px; ">
  2260. <caption>조회</caption>
  2261. <script type="javascript" ev:event="DOMActivate">
  2262. <![CDATA[
  2263. // 실시관리 : 대기/실시/실시완료 조회
  2264. fGetExamCureAcptList();
  2265. ]]>
  2266. </script>
  2267. </button>
  2268. <datagrid id="datagrid1" nodeset="/root/main/subordlist/subordlist4" class="datagrid0" autoresize="true" caption="일자^메모내용" colsep="^" colwidth="0, 286" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:330px; top:662px; width:290px; height:91px; ">
  2269. <col ref="memodd" format="yyyy-mm-dd" style="text-align:center; "/>
  2270. <col ref="memorem"/>
  2271. </datagrid>
  2272. <button id="btn_acpt" class="btn4_letter4" disabled="true" visibility="visible" style="left:1055px; top:760px; width:80px; height:22px; ">
  2273. <caption>실시완료</caption>
  2274. <script type="javascript" ev:event="DOMActivate">
  2275. <![CDATA[
  2276. fExeExec(1);
  2277. ]]>
  2278. </script>
  2279. </button>
  2280. <button id="btn_acptcncl" class="btn4_letter2" visibility="visible" style="left:1136px; top:760px; width:56px; height:22px; ">
  2281. <caption>취소</caption>
  2282. <script type="javascript" ev:event="DOMActivate">
  2283. <![CDATA[
  2284. fExeExec(2);
  2285. ]]>
  2286. </script>
  2287. </button>
  2288. <line id="line5" class="line_1" style="x1:623px; y1:716px; x2:905px; y2:716px; "/>
  2289. <datagrid id="grd_patcmtlist" nodeset="/root/main/exculist/subordlist3/rows" class="datagrid0" autoresize="true" caption="환자번호^일자^Comment^caption1" colsep="^" colwidth="0, 0, 265, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:623px; top:721px; width:282px; height:32px; ">
  2290. <col ref="pid" visibility="hidden"/>
  2291. <col ref="cmtdd" format="yyyy-mm-dd" style="text-align:center; "/>
  2292. <col ref="patcmt" type="input"/>
  2293. <col ref="iudgb" visibility="hidden"/>
  2294. <script type="javascript" ev:event="xforms-value-changed">
  2295. <![CDATA[
  2296. if (model.getValue("/root/main/exculist/subordlist3/rows[" + grd_patcmtlist.row + "]/iudgb") != "I"){
  2297. model.setValue("/root/main/exculist/subordlist3/rows[" + grd_patcmtlist.row + "]/iudgb", "U");
  2298. }
  2299. grd_patcmtlist.refresh();
  2300. ]]>
  2301. </script>
  2302. </datagrid>
  2303. <button id="btn_patcmtsave" class="btn2_letter2" disabled="true" style="left:863px; top:696px; width:42px; height:19px; ">
  2304. <caption>저장</caption>
  2305. <script type="javascript" ev:event="onclick">
  2306. <![CDATA[
  2307. var update = getGridUpdateData(grd_patcmtlist);
  2308. if(update == ""){
  2309. messageBox("업데이트 정보가 없습니다.", "I");
  2310. return 0;
  2311. } else {
  2312. model.makeValue("/root/send/patinfo/data", update);
  2313. if (submit("TXAEA02002", false)){
  2314. model.removenode("/root/main/exculist/subordlist3");
  2315. if (submit("TRAEA02009", false)){
  2316. model.makeNode("/root/main/exculist/subordlist3");
  2317. copyNodeType("/root/main/exculist/subordlist3", "/root/reqdata1/subordlist3", "replace");
  2318. grd_patcmtlist.refresh();
  2319. patcmt();
  2320. }
  2321. }
  2322. }
  2323. ]]>
  2324. </script>
  2325. </button>
  2326. <caption id="caption7" class="tit_2" style="left:623px; top:701px; width:123px; height:13px; ">환자 Comment</caption>
  2327. <button id="btn_partexec" class="btn2_letter2" disabled="true" visibility="hidden" style="left:335px; top:615px; width:42px; height:19px; ">
  2328. <caption>시작</caption>
  2329. <script type="javascript" ev:event="DOMActivate">
  2330. <![CDATA[
  2331. // var rtn = fExePartExec();
  2332. // if ( rtn != "0" ) {
  2333. // // 장비 실시 리스트 조회
  2334. // fEqcdList(grd_subordlist1);
  2335. // }
  2336. ]]>
  2337. </script>
  2338. </button>
  2339. <line id="line33" class="line_3" style="x1:330px; y1:635px; x2:1188px; y2:635px; "/>
  2340. <button id="btn_init" class="btn4_letter3" style="left:986px; top:760px; width:68px; height:22px; ">
  2341. <caption>초기화</caption>
  2342. <script type="javascript" ev:event="DOMActivate">
  2343. <![CDATA[
  2344. // 초기화
  2345. var acptlistflag = model.getValue("/root/send/data/acptlistflag");
  2346. if (acptlistflag == "") {
  2347. acptlistflag = "J";
  2348. model.setValue("/root/send/data/acptlistflag", acptlistflag);
  2349. }
  2350. // 버튼 활성화 기준
  2351. fBtnDisabled(acptlistflag);
  2352. var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
  2353. if (excuroomgrpcdid == "") {
  2354. excuroomgrpcdid = "영상검사실";
  2355. model.setValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid", excuroomgrpcdid);
  2356. // 검사실 그룹 변경 시 이벤트
  2357. fExcuRoomGrpChoi(excuroomgrpcdid);
  2358. }
  2359. model.setValue("/root/send/data/srchpid", "");
  2360. // 초기화
  2361. fInitGrid();
  2362. model.refresh();
  2363. ]]>
  2364. </script>
  2365. </button>
  2366. <switch id="switch3" style="left:330px; top:378px; width:858px; height:235px; ">
  2367. <case id="FUNC02">
  2368. <select1 id="combo1" ref="/root/send/ivdata/drugmthdcd" class="combo_search" navindex="3" appearance="minimal" style="left:508px; top:32px; width:100px; height:19px; ">
  2369. <choices>
  2370. <itemset nodeset="/root/init/cmb_info/initdrugmthdcd">
  2371. <label ref="drugmthdcdnm"/>
  2372. <value ref="drugmthdcdid"/>
  2373. </itemset>
  2374. </choices>
  2375. </select1>
  2376. <line id="line42" class="line_2" style="x1:5px; y1:53px; x2:847px; y2:53px; "/>
  2377. <input id="input38" ref="/root/send/ivdata/drugqty" class="input_search" navindex="10" format="#,###.999" style="left:98px; top:85px; width:68px; height:19px; text-align:right; "/>
  2378. <input id="input39" ref="/root/send/ivdata/drugdd" class="input_default" navindex="4" inputtype="date" format="yyyy-mm-dd" style="left:715px; top:32px; width:86px; height:19px; "/>
  2379. <line id="line43" class="line_3" style="x1:5px; y1:107px; x2:847px; y2:107px; "/>
  2380. <caption id="caption16" class="cell_1" style="left:415px; top:30px; width:89px; height:23px; text-align:right; vertical-align:middle; ">투여방법</caption>
  2381. <caption id="caption89" class="cell_1" style="left:613px; top:30px; width:98px; height:23px; text-align:right; vertical-align:middle; ">투여시간</caption>
  2382. <caption id="caption90" class="tit_2" style="left:5px; top:10px; width:170px; height:13px; ">기술적 기록</caption>
  2383. <caption id="caption91" class="cell_1" style="left:5px; top:82px; width:89px; height:23px; text-align:right; vertical-align:middle; ">투여량</caption>
  2384. <caption id="caption92" class="cell_1" style="left:613px; top:1px; width:98px; height:23px; text-align:right; vertical-align:middle; ">실시자</caption>
  2385. <caption id="caption93" style="left:168px; top:85px; width:30px; height:20px; vertical-align:middle; ">mCi</caption>
  2386. <select1 id="combo17" ref="/root/send/ivdata/execrid" class="combo_search" appearance="minimal" style="left:715px; top:3px; width:100px; height:19px; ">
  2387. <choices>
  2388. <itemset nodeset="/root/init/cmb_info/initexecrinfo/initexecrid">
  2389. <label ref="execridnm"/>
  2390. <value ref="execridid"/>
  2391. </itemset>
  2392. </choices>
  2393. </select1>
  2394. <select1 id="combo18" ref="/root/send/ivdata/nuclcd" class="combo_search" navindex="1" appearance="minimal" style="left:98px; top:32px; width:100px; height:19px; ">
  2395. <choices>
  2396. <itemset nodeset="/root/init/cmb_info/initnuclcd">
  2397. <label ref="nuclcdnm"/>
  2398. <value ref="nuclcd"/>
  2399. </itemset>
  2400. </choices>
  2401. </select1>
  2402. <caption id="caption94" class="cell_1" style="left:5px; top:30px; width:89px; height:23px; text-align:right; vertical-align:middle; ">핵종</caption>
  2403. <input id="input41" ref="/root/send/ivdata/drugtm" class="input_default" navindex="5" format="hh:nn" appearance="input" style="left:805px; top:32px; width:45px; height:19px; "/>
  2404. <line id="line44" class="line_1" style="x1:5px; y1:25px; x2:850px; y2:25px; "/>
  2405. <select1 id="combo19" ref="/root/send/ivdata/compdcd" class="combo_search" navindex="2" appearance="minimal" style="left:295px; top:32px; width:117px; height:19px; ">
  2406. <choices>
  2407. <itemset nodeset="/root/init/cmb_info/initcompdcd">
  2408. <label ref="compdcdnm"/>
  2409. <value ref="compdcdid"/>
  2410. </itemset>
  2411. </choices>
  2412. </select1>
  2413. <caption id="caption95" class="cell_1" style="left:202px; top:30px; width:89px; height:23px; text-align:right; vertical-align:middle; ">화합물</caption>
  2414. <caption id="caption96" style="left:168px; top:60px; width:30px; height:20px; vertical-align:middle; ">mCi</caption>
  2415. <input id="input42" ref="/root/send/ivdata/stndactqty" class="input_search" navindex="6" format="#,###.000" style="left:98px; top:58px; width:68px; height:19px; text-align:right; "/>
  2416. <caption id="caption97" class="cell_1" style="left:5px; top:56px; width:89px; height:23px; text-align:right; vertical-align:middle; ">St Activity</caption>
  2417. <input id="input43" ref="/root/send/ivdata/stndactinsptm" class="input_default" navindex="7" format="hh:nn" appearance="input" style="left:295px; top:58px; width:45px; height:19px; "/>
  2418. <caption id="caption98" class="cell_1" style="left:202px; top:56px; width:89px; height:23px; text-align:right; vertical-align:middle; ">St 측정시간</caption>
  2419. <caption id="caption99" style="left:577px; top:58px; width:30px; height:20px; vertical-align:middle; ">mCi</caption>
  2420. <input id="input45" ref="/root/send/ivdata/stndpostactqty" class="input_search" navindex="8" format="#,###.000" style="left:508px; top:58px; width:68px; height:19px; text-align:right; "/>
  2421. <input id="input46" ref="/root/send/ivdata/stndpostactinsptm" class="input_default" navindex="9" format="hh:nn" appearance="input" style="left:715px; top:58px; width:45px; height:19px; "/>
  2422. <caption id="caption100" class="cell_1" style="left:415px; top:56px; width:89px; height:23px; text-align:right; vertical-align:middle; ">St post Activity</caption>
  2423. <caption id="caption101" class="cell_1" style="left:613px; top:56px; width:98px; height:23px; text-align:right; vertical-align:middle; ">St post 측정시간</caption>
  2424. <input id="input48" ref="/root/send/ivdata/nuclinsptm" class="input_default" navindex="11" format="hh:nn" appearance="input" style="left:295px; top:85px; width:45px; height:19px; "/>
  2425. <caption id="caption102" class="cell_1" style="left:202px; top:82px; width:89px; height:23px; text-align:right; vertical-align:middle; ">투여측정시간</caption>
  2426. <caption id="caption103" class="cell_1" style="left:613px; top:82px; width:98px; height:23px; text-align:right; vertical-align:middle; ">투여후 측정시간</caption>
  2427. <caption id="caption104" style="left:577px; top:85px; width:30px; height:20px; vertical-align:middle; ">mCi</caption>
  2428. <input id="input50" ref="/root/send/ivdata/nucldruginsptm" class="input_default" navindex="13" format="hh:nn" appearance="input" style="left:715px; top:85px; width:45px; height:19px; "/>
  2429. <input id="input52" ref="/root/send/ivdata/nucldrugrestqty" class="input_search" navindex="12" format="#,###.000" style="left:508px; top:85px; width:68px; height:19px; text-align:right; "/>
  2430. <caption id="caption105" class="cell_1" style="left:415px; top:82px; width:89px; height:23px; text-align:right; vertical-align:middle; ">투여후 잔량</caption>
  2431. <input id="input53" ref="/root/send/ivdata/smplnfstcnt" class="input_search" navindex="14" format="#,###" style="left:88px; top:137px; width:80px; height:19px; text-align:right; "/>
  2432. <caption id="caption106" class="cell_1" style="left:5px; top:110px; width:80px; height:23px; text-align:center; vertical-align:middle; ">Sample</caption>
  2433. <caption id="caption107" class="cell_1" style="left:88px; top:110px; width:80px; height:23px; text-align:center; vertical-align:middle; ">count</caption>
  2434. <caption id="caption108" class="cell_1" style="left:171px; top:110px; width:80px; height:23px; text-align:center; vertical-align:middle; ">채혈시간</caption>
  2435. <caption id="caption109" class="cell_1" style="left:5px; top:135px; width:80px; height:23px; text-align:right; vertical-align:middle; ">1st</caption>
  2436. <caption id="caption10" class="cell_1" style="left:5px; top:160px; width:80px; height:23px; text-align:right; vertical-align:middle; ">2nd</caption>
  2437. <caption id="caption110" class="cell_1" style="left:5px; top:185px; width:80px; height:23px; text-align:right; vertical-align:middle; ">3rd</caption>
  2438. <input id="input40" ref="/root/send/ivdata/smplnscndcnt" class="input_search" navindex="16" format="#,###" style="left:88px; top:162px; width:80px; height:19px; text-align:right; "/>
  2439. <input id="input55" ref="/root/send/ivdata/smplnthirdcnt" class="input_search" navindex="18" format="#,###" style="left:88px; top:187px; width:80px; height:19px; text-align:right; "/>
  2440. <input id="input54" ref="/root/send/ivdata/smplnscndbcolltm" class="input_search" navindex="17" format="hh:nn" style="left:171px; top:162px; width:80px; height:19px; text-align:right; "/>
  2441. <input id="input56" ref="/root/send/ivdata/smplnfstbcolltm" class="input_search" navindex="15" format="hh:nn" style="left:171px; top:137px; width:80px; height:19px; text-align:right; "/>
  2442. <input id="input57" ref="/root/send/ivdata/smplnthirdcolltm" class="input_search" navindex="19" format="hh:nn" style="left:171px; top:187px; width:80px; height:19px; text-align:right; "/>
  2443. <line id="line45" class="line_2" style="x1:5px; y1:79px; x2:847px; y2:79px; "/>
  2444. <input id="input49" ref="/root/send/ivdata/smplnfourthcnt" class="input_search" navindex="18" format="#,###" style="left:88px; top:212px; width:80px; height:19px; text-align:right; "/>
  2445. <input id="input51" ref="/root/send/ivdata/smplnfourthcolltm" class="input_search" navindex="19" format="hh:nn" style="left:171px; top:212px; width:80px; height:19px; text-align:right; "/>
  2446. <caption id="caption115" class="cell_1" style="left:5px; top:210px; width:80px; height:23px; text-align:right; vertical-align:middle; ">4th</caption>
  2447. </case>
  2448. <case id="FUNC01">
  2449. <caption id="caption81" style="left:198px; top:116px; width:17px; height:20px; vertical-align:middle; ">%</caption>
  2450. <line id="line40" class="line_3" style="x1:5px; y1:139px; x2:847px; y2:139px; "/>
  2451. <caption id="caption70" class="cell_1" style="left:428px; top:89px; width:130px; height:23px; text-align:center; vertical-align:middle; ">Sample Activity</caption>
  2452. <line id="line41" class="line_1" style="x1:5px; y1:25px; x2:847px; y2:25px; "/>
  2453. <caption id="caption71" class="cell_1" style="left:5px; top:114px; width:130px; height:23px; text-align:center; vertical-align:middle; ">검사 결과치</caption>
  2454. <input id="input8" ref="/root/send/ivdata/drugqty" class="input_search" format="#,###.000" style="left:720px; top:32px; width:100px; height:19px; text-align:right; "/>
  2455. <caption id="caption72" class="cell_1" style="left:217px; top:89px; width:130px; height:23px; text-align:center; vertical-align:middle; ">Patient BKG</caption>
  2456. <input id="input9" ref="/root/send/ivdata/drugdd" class="input_default" inputtype="date" format="yyyy-mm-dd" style="left:275px; top:32px; width:86px; height:19px; "/>
  2457. <caption id="caption50" class="cell_1" style="left:5px; top:89px; width:130px; height:23px; text-align:center; vertical-align:middle; ">Laboratory BKG</caption>
  2458. <caption id="caption73" class="cell_1" style="left:640px; top:89px; width:130px; height:23px; text-align:center; vertical-align:middle; ">Thyroid measurement</caption>
  2459. <line id="line32" class="line_2" style="x1:5px; y1:53px; x2:847px; y2:53px; "/>
  2460. <caption id="caption51" class="cell_1" style="left:428px; top:89px; width:130px; height:23px; text-align:right; vertical-align:middle; ">Sample Activity</caption>
  2461. <caption id="caption74" class="cell_1" style="left:5px; top:56px; width:80px; height:23px; text-align:right; vertical-align:middle; ">비고</caption>
  2462. <caption id="caption52" class="cell_1" style="left:5px; top:114px; width:130px; height:23px; text-align:right; vertical-align:middle; ">검사 결과치</caption>
  2463. <caption id="caption75" class="cell_1" style="left:450px; top:30px; width:80px; height:23px; text-align:right; vertical-align:middle; ">투여방법</caption>
  2464. <line id="line34" class="line_2" style="x1:5px; y1:53px; x2:847px; y2:53px; "/>
  2465. <input id="input10" ref="/root/send/ivdata/drugqty" class="input_search" format="#,###.999" style="left:720px; top:32px; width:100px; height:19px; text-align:right; "/>
  2466. <line id="line12" class="line_3" style="x1:5px; y1:81px; x2:847px; y2:81px; "/>
  2467. <caption id="caption53" class="cell_1" style="left:217px; top:89px; width:130px; height:23px; text-align:right; vertical-align:middle; ">Patient BKG</caption>
  2468. <caption id="caption76" class="cell_1" style="left:193px; top:30px; width:80px; height:23px; text-align:right; vertical-align:middle; ">투여시간</caption>
  2469. <input id="input11" ref="/root/send/ivdata/drugdd" class="input_default" inputtype="date" format="yyyy-mm-dd" style="left:275px; top:32px; width:86px; height:19px; "/>
  2470. <line id="line35" class="line_2" style="x1:5px; y1:113px; x2:847px; y2:113px; "/>
  2471. <caption id="caption54" class="cell_1" style="left:640px; top:89px; width:130px; height:23px; text-align:right; vertical-align:middle; ">Thyroid measurement</caption>
  2472. <input id="input12" ref="/root/send/ivdata/labbkg" class="input_search" style="left:138px; top:91px; width:75px; height:19px; "/>
  2473. <caption id="caption77" class="tit_2" style="left:5px; top:10px; width:170px; height:13px; ">기술적 기록</caption>
  2474. <line id="line36" class="line_3" style="x1:5px; y1:81px; x2:847px; y2:81px; "/>
  2475. <caption id="caption44" class="cell_1" style="left:5px; top:56px; width:80px; height:23px; text-align:right; vertical-align:middle; ">비고</caption>
  2476. <caption id="caption33" class="cell_1" style="left:450px; top:30px; width:80px; height:23px; text-align:right; vertical-align:middle; ">투여방법</caption>
  2477. <input id="input24" ref="/root/send/ivdata/patbkg" class="input_search" style="left:350px; top:91px; width:75px; height:19px; "/>
  2478. <input id="input13" ref="/root/send/ivdata/smplact" class="input_search" style="left:561px; top:91px; width:75px; height:19px; "/>
  2479. <caption id="caption78" class="cell_1" style="left:638px; top:1px; width:80px; height:23px; text-align:right; vertical-align:middle; ">실시자</caption>
  2480. <caption id="caption45" class="cell_1" style="left:193px; top:30px; width:80px; height:23px; text-align:right; vertical-align:middle; ">투여시간</caption>
  2481. <caption id="caption34" class="tit_2" style="left:5px; top:10px; width:170px; height:13px; ">기술적 기록</caption>
  2482. <line id="line37" class="line_3" style="x1:5px; y1:139px; x2:847px; y2:139px; "/>
  2483. <input id="input25" ref="/root/send/ivdata/thyrmea" class="input_search" style="left:773px; top:91px; width:75px; height:19px; "/>
  2484. <input id="input14" ref="/root/send/ivdata/testrsltval" class="input_search" style="left:138px; top:116px; width:57px; height:19px; "/>
  2485. <caption id="caption79" class="cell_1" style="left:638px; top:30px; width:80px; height:23px; text-align:right; vertical-align:middle; ">투여량</caption>
  2486. <caption id="caption68" class="cell_1" style="left:638px; top:1px; width:80px; height:23px; text-align:right; vertical-align:middle; ">실시자</caption>
  2487. <caption id="caption46" class="cell_1" style="left:638px; top:30px; width:80px; height:23px; text-align:right; vertical-align:middle; ">투여량</caption>
  2488. <caption id="caption35" class="cell_1" style="left:5px; top:30px; width:80px; height:23px; text-align:right; vertical-align:middle; ">핵종</caption>
  2489. <input id="input26" ref="/root/send/ivdata/nuclrem" class="input_search" style="left:88px; top:58px; width:759px; height:19px; "/>
  2490. <line id="line39" class="line_2" style="x1:5px; y1:113px; x2:847px; y2:113px; "/>
  2491. <caption id="caption69" class="cell_1" style="left:5px; top:89px; width:130px; height:23px; text-align:right; vertical-align:middle; ">Laboratory BKG</caption>
  2492. <select1 id="cmb_execrid4" ref="/root/send/ivdata/execrid" class="combo_search" appearance="minimal" style="left:720px; top:3px; width:100px; height:19px; ">
  2493. <choices>
  2494. <itemset nodeset="/root/init/cmb_info/initexecrinfo/initexecrid">
  2495. <label ref="execridnm"/>
  2496. <value ref="execridid"/>
  2497. </itemset>
  2498. </choices>
  2499. </select1>
  2500. <input id="input15" ref="/root/send/ivdata/labbkg" class="input_search" style="left:138px; top:91px; width:75px; height:19px; "/>
  2501. <input id="input27" ref="/root/send/ivdata/drugtm" class="input_default" inputtype="date" format="hh:nn:ss" style="left:365px; top:32px; width:80px; height:19px; "/>
  2502. <select1 id="combo6" ref="/root/send/ivdata/execrid" class="combo_search" appearance="minimal" style="left:720px; top:3px; width:100px; height:19px; ">
  2503. <choices>
  2504. <itemset nodeset="/root/init/cmb_info/initexecrinfo/initexecrid">
  2505. <label ref="execridnm"/>
  2506. <value ref="execridid"/>
  2507. </itemset>
  2508. </choices>
  2509. </select1>
  2510. <caption id="caption48" style="left:823px; top:32px; width:30px; height:20px; vertical-align:middle; ">mCi</caption>
  2511. <input id="input16" ref="/root/send/ivdata/smplact" class="input_search" style="left:561px; top:91px; width:75px; height:19px; "/>
  2512. <select1 id="combo7" ref="/root/send/ivdata/nuclcd" class="combo_search" appearance="minimal" style="left:88px; top:32px; width:100px; height:19px; ">
  2513. <choices>
  2514. <itemset nodeset="/root/init/cmb_info/initnuclcd">
  2515. <label ref="nuclcdnm"/>
  2516. <value ref="nuclcd"/>
  2517. </itemset>
  2518. </choices>
  2519. </select1>
  2520. <caption id="caption49" style="left:198px; top:116px; width:17px; height:20px; vertical-align:middle; ">%</caption>
  2521. <input id="input17" ref="/root/send/ivdata/testrsltval" class="input_search" style="left:138px; top:116px; width:57px; height:19px; "/>
  2522. <select1 id="combo8" ref="/root/send/ivdata/drugmthdcd" class="combo_search" appearance="minimal" style="left:533px; top:32px; width:100px; height:19px; ">
  2523. <choices>
  2524. <itemset nodeset="/root/init/cmb_info/initdrugmthdcd">
  2525. <label ref="drugmthdcdnm"/>
  2526. <value ref="drugmthdcdid"/>
  2527. </itemset>
  2528. </choices>
  2529. </select1>
  2530. <input id="input18" ref="/root/send/ivdata/patbkg" class="input_search" style="left:350px; top:91px; width:75px; height:19px; "/>
  2531. <select1 id="combo13" ref="/root/send/ivdata/nuclcd" class="combo_search" appearance="minimal" style="left:88px; top:32px; width:100px; height:19px; ">
  2532. <choices>
  2533. <itemset nodeset="/root/init/cmb_info/initnuclcd">
  2534. <label ref="nuclcdnm"/>
  2535. <value ref="nuclcd"/>
  2536. </itemset>
  2537. </choices>
  2538. </select1>
  2539. <select1 id="combo16" ref="/root/send/ivdata/drugmthdcd" class="combo_search" appearance="minimal" style="left:533px; top:32px; width:100px; height:19px; ">
  2540. <choices>
  2541. <itemset nodeset="/root/init/cmb_info/initdrugmthdcd">
  2542. <label ref="drugmthdcdnm"/>
  2543. <value ref="drugmthdcdid"/>
  2544. </itemset>
  2545. </choices>
  2546. </select1>
  2547. <input id="input19" ref="/root/send/ivdata/thyrmea" class="input_search" style="left:773px; top:91px; width:75px; height:19px; "/>
  2548. <input id="input5" ref="/root/send/ivdata/nuclrem" class="input_search" style="left:88px; top:58px; width:759px; height:19px; "/>
  2549. <caption id="caption80" class="cell_1" style="left:5px; top:30px; width:80px; height:23px; text-align:right; vertical-align:middle; ">핵종</caption>
  2550. <input id="input6" ref="/root/send/ivdata/drugtm" class="input_default" format="hh:nn:ss" style="left:365px; top:32px; width:80px; height:19px; "/>
  2551. <line id="line7" class="line_1" style="x1:5px; y1:25px; x2:847px; y2:25px; "/>
  2552. </case>
  2553. <case id="CU">
  2554. <line id="line30" class="line_1" style="x1:5px; y1:25px; x2:847px; y2:25px; "/>
  2555. <line id="line31" class="line_3" style="x1:5px; y1:81px; x2:847px; y2:81px; "/>
  2556. <caption id="caption20" class="cell_1" style="left:450px; top:30px; width:80px; height:23px; text-align:right; vertical-align:middle; ">투여방법</caption>
  2557. <caption id="caption32" class="tit_2" style="left:5px; top:10px; width:170px; height:13px; ">기술적 기록</caption>
  2558. <caption id="caption21" class="cell_1" style="left:5px; top:30px; width:80px; height:23px; text-align:right; vertical-align:middle; ">핵종</caption>
  2559. <caption id="caption22" class="cell_1" style="left:450px; top:55px; width:80px; height:23px; text-align:right; vertical-align:middle; ">비고</caption>
  2560. <caption id="caption67" class="cell_1" style="left:638px; top:1px; width:80px; height:23px; text-align:right; vertical-align:middle; ">실시자</caption>
  2561. <caption id="caption23" class="cell_1" style="left:193px; top:30px; width:80px; height:23px; text-align:right; vertical-align:middle; ">투여시간</caption>
  2562. <select1 id="combo5" ref="/root/send/ivdata/drugmthdcd" class="combo_search" appearance="minimal" style="left:533px; top:32px; width:100px; height:19px; ">
  2563. <choices>
  2564. <itemset nodeset="/root/init/cmb_info/initdrugmthdcd">
  2565. <label ref="drugmthdcdnm"/>
  2566. <value ref="drugmthdcdid"/>
  2567. </itemset>
  2568. </choices>
  2569. </select1>
  2570. <select1 id="cmb_execrid3" ref="/root/send/ivdata/execrid" class="combo_search" appearance="minimal" style="left:720px; top:3px; width:100px; height:19px; ">
  2571. <choices>
  2572. <itemset nodeset="/root/init/cmb_info/initexecrinfo/initexecrid">
  2573. <label ref="execridnm"/>
  2574. <value ref="execridid"/>
  2575. </itemset>
  2576. </choices>
  2577. </select1>
  2578. <caption id="caption24" class="cell_1" style="left:638px; top:30px; width:80px; height:23px; text-align:right; vertical-align:middle; ">투여량</caption>
  2579. <caption id="caption25" style="left:823px; top:32px; width:30px; height:20px; vertical-align:middle; ">mCi</caption>
  2580. <line id="line29" class="line_2" style="x1:5px; y1:53px; x2:847px; y2:53px; "/>
  2581. <input id="input1" ref="/root/send/ivdata/nuclrem" class="input_search" style="left:533px; top:55px; width:317px; height:19px; "/>
  2582. <input id="input2" ref="/root/send/ivdata/drugtm" class="input_default" format="hh:nn:ss" style="left:365px; top:32px; width:80px; height:19px; "/>
  2583. <input id="input3" ref="/root/send/ivdata/drugqty" class="input_search" format="#,###.999" style="left:720px; top:32px; width:100px; height:19px; text-align:right; "/>
  2584. <input id="input4" ref="/root/send/ivdata/drugdd" class="input_default" inputtype="date" format="yyyy-mm-dd" style="left:275px; top:32px; width:86px; height:19px; "/>
  2585. <select1 id="combo15" ref="/root/send/ivdata/nuclcd" class="combo_search" appearance="minimal" style="left:88px; top:32px; width:100px; height:19px; ">
  2586. <choices>
  2587. <itemset nodeset="/root/init/cmb_info/initnuclcd">
  2588. <label ref="nuclcdnm"/>
  2589. <value ref="nuclcd"/>
  2590. </itemset>
  2591. </choices>
  2592. </select1>
  2593. <button id="button1" class="btn2_letter4" style="left:447px; top:5px; width:64px; height:19px; ">
  2594. <caption>대치처방</caption>
  2595. <script type="javascript" ev:event="DOMActivate">
  2596. <![CDATA[
  2597. var nodeList = instance1.selectNodes("/root/main/subordlist/subordlist1[check='Y']");
  2598. var rCSV = getNodeListCSV(nodeList);
  2599. if ( rCSV == null ) {
  2600. messageBox("처방내역에서 처방을","C002");
  2601. return "0";
  2602. }
  2603. if ( model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/rootgubn" ) == "Y" ) {
  2604. messageBox("모코드는 대치처방","E001");
  2605. return "0";
  2606. }
  2607. model.makeValue("/root/main/formdata/popdata2/pid", model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/pid" ));
  2608. model.makeValue("/root/main/formdata/popdata2/prcpdd", model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/prcpdd") );
  2609. model.makeValue("/root/main/formdata/popdata2/execprcpuniqno", model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/execprcpuniqno") );
  2610. model.makeValue("/root/main/formdata/popdata2/prcpexecdeptcd", model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/prcpexecdeptcd") );
  2611. model.makeValue("/root/main/formdata/popdata2/deptflag", "N" );
  2612. modal("SPAER01800", "", "200", "200", "SPAER01800","/root/main/formdata/popdata2","/root/popdata");
  2613. var pid = "";
  2614. var calcscorcd = "";
  2615. if ( btn_case3.selected == true ) {
  2616. calcscorcd = model.getValue("/root/main/ordlist2/mainordlist2["+grd_mainordlist2.row+"]/calcscorcd");
  2617. } else {
  2618. pid = model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/pid");
  2619. }
  2620. model.makeValue("/root/send/temp/pid",pid);
  2621. model.makeValue("/root/send/temp/calcscorcd",calcscorcd);
  2622. fGetExamCureAcptList()
  2623. ]]>
  2624. </script>
  2625. </button>
  2626. <caption id="caption111" class="cell_1" style="left:5px; top:55px; width:80px; height:23px; text-align:right; vertical-align:middle; ">키</caption>
  2627. <caption id="caption112" style="left:158px; top:56px; width:30px; height:20px; vertical-align:middle; ">cm</caption>
  2628. <input id="input44" ref="/root/send/ivdata/ht" class="input_search" navindex="37" style="left:88px; top:56px; width:65px; height:19px; text-align:right; "/>
  2629. <caption id="caption113" class="cell_1" style="left:193px; top:55px; width:80px; height:23px; text-align:right; vertical-align:middle; ">몸무게</caption>
  2630. <caption id="caption114" style="left:365px; top:57px; width:30px; height:20px; vertical-align:middle; ">kg</caption>
  2631. <input id="input47" ref="/root/send/ivdata/bdwt" class="input_search" navindex="39" style="left:275px; top:57px; width:82px; height:19px; text-align:right; "/>
  2632. </case>
  2633. <case id="PT">
  2634. <select1 id="cmb_scrtcd" ref="/root/send/ivdata/scrtrmcd" class="combo_search" navindex="20" appearance="minimal" style="left:88px; top:32px; width:117px; height:19px; ">
  2635. <choices>
  2636. <itemset nodeset="/root/init/cmb_info/initscrtroom">
  2637. <label ref="scrtroomcdnm"/>
  2638. <value ref="scrtroomcdid"/>
  2639. </itemset>
  2640. </choices>
  2641. </select1>
  2642. <input id="input7" ref="/root/send/ivdata/nuclrem" class="input_search" navindex="43" style="left:88px; top:210px; width:357px; height:19px; "/>
  2643. <caption id="caption60" class="cell_1" style="left:5px; top:82px; width:80px; height:23px; text-align:right; vertical-align:middle; ">투여방법</caption>
  2644. <line id="line20" class="line_2" style="x1:5px; y1:105px; x2:445px; y2:105px; "/>
  2645. <caption id="caption61" class="cell_1" visibility="hidden" style="left:209px; top:108px; width:80px; height:23px; text-align:right; vertical-align:middle; ">소모량</caption>
  2646. <button id="btn_autoexec" class="btn2_letter4" visibility="visible" style="left:720px; top:32px; width:64px; height:19px; ">
  2647. <caption>자동실행</caption>
  2648. <script type="javascript" ev:event="DOMActivate">
  2649. <![CDATA[
  2650. btn_autoexec.disabled = true;
  2651. btn_autostop.disabled = false;
  2652. clockTimer = window.setInterval("fGetScrtRoomUseList()", 20000);
  2653. ]]>
  2654. </script>
  2655. </button>
  2656. <line id="line21" class="line_2" style="x1:5px; y1:180px; x2:445px; y2:180px; "/>
  2657. <caption id="caption62" style="left:417px; top:84px; width:28px; height:20px; vertical-align:middle; ">mCi</caption>
  2658. <caption id="caption40" class="cell_1" style="left:209px; top:158px; width:80px; height:23px; text-align:right; vertical-align:middle; ">혈당</caption>
  2659. <line id="line22" class="line_2" style="x1:5px; y1:154px; x2:445px; y2:154px; "/>
  2660. <line id="line11" class="line_1" style="x1:5px; y1:25px; x2:445px; y2:25px; "/>
  2661. <input id="input20" ref="/root/send/ivdata/drugtm" class="input_default" navindex="26" format="hh:nn:ss" style="left:379px; top:58px; width:66px; height:19px; "/>
  2662. <caption id="caption41" class="cell_1" style="left:5px; top:183px; width:80px; height:23px; text-align:right; vertical-align:middle; ">공급처</caption>
  2663. <button id="btn_autostop" class="btn2_letter4" disabled="true" visibility="visible" style="left:785px; top:32px; width:64px; height:19px; ">
  2664. <caption>자동중지</caption>
  2665. <script type="javascript" ev:event="DOMActivate">
  2666. <![CDATA[
  2667. btn_autoexec.disabled = false;
  2668. btn_autostop.disabled = true;
  2669. window.clearInterval(clockTimer);
  2670. ]]>
  2671. </script>
  2672. </button>
  2673. <caption id="caption64" class="tit_2" style="left:450px; top:10px; width:170px; height:13px; ">대기실 현황</caption>
  2674. <line id="line23" class="line_2" style="x1:5px; y1:128px; x2:445px; y2:128px; "/>
  2675. <datagrid id="grd_scrtlist" nodeset="/root/main/scrtlist/scrtuselist" caption="안정실^등록번호^환자명^투여시간^경과시간" colsep="^" colwidth="66, 63, 70, 115, 60" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:450px; top:55px; width:400px; height:175px; ">
  2676. <col disabled="true" ref="scrtroomcd" type="combo">
  2677. <choices>
  2678. <itemset nodeset="/root/init/cmb_info/initscrtroom">
  2679. <label ref="scrtroomcdnm"/>
  2680. <value ref="scrtroomcdid"/>
  2681. </itemset>
  2682. </choices>
  2683. </col>
  2684. <col ref="pid"/>
  2685. <col ref="patnm"/>
  2686. <col ref="drugdt" format="yyyy-mm-dd hh:nn"/>
  2687. <col ref="progdt" style="text-align:center; "/>
  2688. </datagrid>
  2689. <input id="input21" ref="/root/send/ivdata/drugqty" class="input_search" navindex="30" format="#,###.999" style="left:292px; top:84px; width:120px; height:19px; text-align:right; "/>
  2690. <caption id="caption31" class="cell_1" style="left:5px; top:208px; width:80px; height:23px; text-align:right; vertical-align:middle; ">비고</caption>
  2691. <line id="line24" class="line_2" style="x1:5px; y1:205px; x2:445px; y2:205px; "/>
  2692. <input id="input22" ref="/root/send/ivdata/cstqty" class="input_search" navindex="34" visibility="hidden" format="#,###.000" style="left:292px; top:110px; width:120px; height:19px; text-align:right; "/>
  2693. <caption id="caption43" class="cell_1" style="left:5px; top:30px; width:80px; height:23px; text-align:right; vertical-align:middle; ">안정실</caption>
  2694. <caption id="caption66" class="cell_1" style="left:209px; top:30px; width:80px; height:23px; text-align:right; vertical-align:middle; ">실시자</caption>
  2695. <input id="input23" ref="/root/send/ivdata/drugdd" class="input_default" navindex="24" inputtype="date" format="yyyy-mm-dd" style="left:292px; top:58px; width:86px; height:19px; "/>
  2696. <caption id="caption55" class="cell_1" style="left:5px; top:108px; width:80px; height:23px; text-align:right; vertical-align:middle; ">화합물</caption>
  2697. <select1 id="cmb_execrid2" ref="/root/send/ivdata/execrid" class="combo_search" appearance="minimal" style="left:292px; top:32px; width:117px; height:19px; ">
  2698. <choices>
  2699. <itemset nodeset="/root/init/cmb_info/initexecrinfo/initexecrid">
  2700. <label ref="execridnm"/>
  2701. <value ref="execridid"/>
  2702. </itemset>
  2703. </choices>
  2704. </select1>
  2705. <line id="line26" class="line_1" style="x1:450px; y1:25px; x2:850px; y2:25px; "/>
  2706. <caption id="caption56" class="cell_1" style="left:5px; top:56px; width:80px; height:23px; text-align:right; vertical-align:middle; ">핵종</caption>
  2707. <select1 id="cmb_excuroom2" ref="/root/send/data/cmb_info/initexecroom/excuroomcdid2" class="combo_search" disabled="true" appearance="minimal" style="left:532px; top:32px; width:138px; height:19px; ">
  2708. <choices>
  2709. <itemset nodeset="/root/init/cmb_info/excuroom/initexcuroom">
  2710. <label ref="excuroomcdnm"/>
  2711. <value ref="excuroomcdid"/>
  2712. </itemset>
  2713. </choices>
  2714. </select1>
  2715. <caption id="caption57" class="cell_1" style="left:209px; top:56px; width:80px; height:23px; text-align:right; vertical-align:middle; ">투여시간</caption>
  2716. <line id="line28" class="line_3" style="x1:450px; y1:53px; x2:850px; y2:53px; "/>
  2717. <line id="line17" class="line_2" style="x1:5px; y1:79px; x2:445px; y2:79px; "/>
  2718. <caption id="caption36" class="tit_2" style="left:5px; top:10px; width:170px; height:13px; ">기술적 기록</caption>
  2719. <caption id="caption58" class="cell_1" style="left:209px; top:82px; width:80px; height:23px; text-align:right; vertical-align:middle; ">투여량</caption>
  2720. <select1 id="cmb_injpartcd" ref="/root/send/ivdata/injpartcd" class="combo_search" navindex="36" appearance="minimal" style="left:88px; top:134px; width:117px; height:19px; ">
  2721. <choices>
  2722. <itemset nodeset="/root/init/cmb_info/initinjpartcd">
  2723. <label ref="injpartcdnm"/>
  2724. <value ref="injpartcdid"/>
  2725. </itemset>
  2726. </choices>
  2727. </select1>
  2728. <line id="line18" class="line_2" style="x1:5px; y1:53px; x2:445px; y2:53px; "/>
  2729. <caption id="caption59" visibility="hidden" style="left:417px; top:110px; width:28px; height:20px; vertical-align:middle; ">vial</caption>
  2730. <select1 id="combo10" ref="/root/send/ivdata/compdcd" class="combo_search" navindex="32" appearance="minimal" style="left:88px; top:110px; width:117px; height:19px; ">
  2731. <choices>
  2732. <itemset nodeset="/root/init/cmb_info/initcompdcd">
  2733. <label ref="compdcdnm"/>
  2734. <value ref="compdcdid"/>
  2735. </itemset>
  2736. </choices>
  2737. </select1>
  2738. <caption id="caption37" class="cell_1" style="left:209px; top:133px; width:80px; height:23px; text-align:right; vertical-align:middle; ">키</caption>
  2739. <caption id="caption27" style="left:175px; top:160px; width:30px; height:20px; vertical-align:middle; ">kg</caption>
  2740. <select1 id="combo11" ref="/root/send/ivdata/drugmthdcd" class="combo_search" navindex="27" appearance="minimal" style="left:88px; top:84px; width:117px; height:19px; ">
  2741. <choices>
  2742. <itemset nodeset="/root/init/cmb_info/initdrugmthdcd">
  2743. <label ref="drugmthdcdnm"/>
  2744. <value ref="drugmthdcdid"/>
  2745. </itemset>
  2746. </choices>
  2747. </select1>
  2748. <caption id="caption38" class="cell_1" style="left:5px; top:158px; width:80px; height:23px; text-align:right; vertical-align:middle; ">몸무게</caption>
  2749. <caption id="caption28" style="left:362px; top:134px; width:30px; height:20px; vertical-align:middle; ">cm</caption>
  2750. <select1 id="combo12" ref="/root/send/ivdata/nuclcd" class="combo_search" navindex="21" appearance="minimal" style="left:88px; top:58px; width:117px; height:19px; ">
  2751. <choices>
  2752. <itemset nodeset="/root/init/cmb_info/initnuclcd">
  2753. <label ref="nuclcdnm"/>
  2754. <value ref="nuclcd"/>
  2755. </itemset>
  2756. </choices>
  2757. </select1>
  2758. <caption id="caption39" class="cell_1" style="left:5px; top:133px; width:80px; height:23px; text-align:right; vertical-align:middle; ">IV.site</caption>
  2759. <caption id="caption29" class="cell_1" style="left:450px; top:30px; width:80px; height:23px; text-align:right; vertical-align:middle; ">촬영실</caption>
  2760. <input id="ipt_bdwt" ref="/root/send/ivdata/bdwt" class="input_search" navindex="40" style="left:88px; top:160px; width:82px; height:19px; text-align:right; "/>
  2761. <input id="ipt_ht" ref="/root/send/ivdata/ht" class="input_search" navindex="38" style="left:292px; top:134px; width:65px; height:19px; text-align:right; "/>
  2762. <input id="ipt_bsugarqty" ref="/root/send/ivdata/bsugarqty" class="input_search" navindex="42" style="left:292px; top:160px; width:65px; height:19px; text-align:right; "/>
  2763. <select1 id="combo21" ref="/root/send/ivdata/suplcustcd" class="combo_search" disabled="true" navindex="35" appearance="minimal" style="left:89px; top:185px; width:117px; height:19px; ">
  2764. <choices>
  2765. <itemset nodeset="/root/init/cmb_info/initsuplcustcd">
  2766. <label ref="suplcustcdnm"/>
  2767. <value ref="suplcustcdid"/>
  2768. </itemset>
  2769. </choices>
  2770. </select1>
  2771. </case>
  2772. <case id="NM" selected="true">
  2773. <caption id="caption63" class="tit_2" style="left:455px; top:10px; width:170px; height:13px; ">동위원소투여 상세내용</caption>
  2774. <datagrid id="grd_druginpt" nodeset="/root/main/mainordlist2/subordlist" caption="등록번호^핵종^투여일자^투여시간^화합물^투여량^투여방법^소모량^IVSite코드^공급처^키^몸무게^혈당치^검사자^비고" colsep="^" colwidth="0, 90, 72, 65, 65, 65, 0, 0, 0, 0, 0, 0, 0, 0, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:455px; top:30px; width:395px; height:200px; ">
  2775. <col ref="pid"/>
  2776. <col disabled="true" ref="nuclcd" type="combo">
  2777. <choices>
  2778. <itemset nodeset="/root/init/cmb_info/initnuclcd">
  2779. <label ref="nuclcdnm"/>
  2780. <value ref="nuclcd"/>
  2781. </itemset>
  2782. </choices>
  2783. </col>
  2784. <col ref="drugdd" format="yyyy-mm-dd" style="text-align:center; "/>
  2785. <col ref="drugtm" format="hh:nn:ss" style="text-align:center; "/>
  2786. <col disabled="true" ref="compdcd" type="combo" style="text-align:center; ">
  2787. <choices>
  2788. <itemset nodeset="/root/init/cmb_info/initcompdcd">
  2789. <label ref="compdcdnm"/>
  2790. <value ref="compdcdid"/>
  2791. </itemset>
  2792. </choices>
  2793. </col>
  2794. <col ref="drugqty" type="output" format="#,###.000" style="text-align:right; "/>
  2795. <col disabled="true" ref="drugmthdcd" type="combo" style="text-align:center; ">
  2796. <choices>
  2797. <itemset nodeset="/root/init/cmb_info/initdrugmthdcd">
  2798. <label ref="drugmthdcdnm"/>
  2799. <value ref="drugmthdcdid"/>
  2800. </itemset>
  2801. </choices>
  2802. </col>
  2803. <col ref="cstqty" type="output" format="#,###.000" style="text-align:right; "/>
  2804. <col ref="injpartcd" style="text-align:center; "/>
  2805. <col ref="suplcustcd"/>
  2806. <col ref="ht" style="text-align:right; "/>
  2807. <col ref="bdwt" style="text-align:right; "/>
  2808. <col ref="bsugarqty" style="text-align:right; "/>
  2809. <col ref="execrid"/>
  2810. <col ref="nuclrem"/>
  2811. <script type="javascript" ev:event="onclick">
  2812. <![CDATA[
  2813. if ( grd_druginpt.isCell(event.target) && grd_druginpt.row >= grd_druginpt.fixedRows ) {
  2814. var i = grd_subordlist1.row;
  2815. var row = grd_druginpt.row;
  2816. var prcpdd = model.getValue("/root/main/subordlist/subordlist1["+ i +"]/prcpdd");
  2817. var nuclcd = model.getValue("/root/main/mainordlist2/subordlist["+ row +"]/nuclcd");
  2818. var drugdd = model.getValue("/root/main/mainordlist2/subordlist["+ row +"]/drugdd");
  2819. var drugtm = model.getValue("/root/main/mainordlist2/subordlist["+ row +"]/drugtm");
  2820. var drugqty = model.getValue("/root/main/mainordlist2/subordlist["+ row +"]/drugqty");
  2821. var cstqty = model.getValue("/root/main/mainordlist2/subordlist["+ row +"]/cstqty");
  2822. var nuclrem = model.getValue("/root/main/mainordlist2/subordlist["+ row +"]/nuclrem");
  2823. var compdcd = model.getValue("/root/main/mainordlist2/subordlist["+ row +"]/compdcd");
  2824. var drugmthdcd = model.getValue("/root/main/mainordlist2/subordlist["+ row +"]/drugmthdcd");
  2825. var suplcustcd = model.getValue("/root/main/mainordlist2/subordlist["+ row +"]/suplcustcd");
  2826. var ht = model.getValue("/root/main/mainordlist2/subordlist["+ row +"]/ht");
  2827. var bdwt = model.getValue("/root/main/mainordlist2/subordlist["+ row +"]/bdwt");
  2828. var bsugarqty = model.getValue("/root/main/mainordlist2/subordlist["+ row +"]/bsugarqty");
  2829. model.makeValue("/root/send/ivdata/nuclcd", nuclcd);
  2830. model.makeValue("/root/send/ivdata/drugdd", drugdd);
  2831. model.makeValue("/root/send/ivdata/drugtm", drugtm);
  2832. model.makeValue("/root/send/ivdata/drugqty", drugqty);
  2833. model.makeValue("/root/send/ivdata/cstqty", cstqty);
  2834. model.makeValue("/root/send/ivdata/nuclrem", nuclrem);
  2835. model.makeValue("/root/send/ivdata/compdcd", compdcd);
  2836. model.makeValue("/root/send/ivdata/drugmthdcd", drugmthdcd);
  2837. model.makeValue("/root/send/ivdata/suplcustcd", suplcustcd);
  2838. model.makeValue("/root/send/ivdata/ht", ht);
  2839. model.makeValue("/root/send/ivdata/bdwt", bdwt);
  2840. model.makeValue("/root/send/ivdata/bsugarqty", bsugarqty);
  2841. model.refresh();
  2842. }
  2843. ]]>
  2844. </script>
  2845. </datagrid>
  2846. <line id="line38" class="line_1" style="x1:455px; y1:25px; x2:850px; y2:25px; "/>
  2847. <input id="input28" ref="/root/send/ivdata/nuclrem" class="input_search" navindex="44" style="left:88px; top:210px; width:357px; height:19px; "/>
  2848. <caption id="caption8" class="cell_1" style="left:5px; top:56px; width:80px; height:23px; text-align:right; vertical-align:middle; ">투여방법</caption>
  2849. <caption id="caption11" class="cell_1" visibility="hidden" style="left:209px; top:108px; width:80px; height:23px; text-align:right; vertical-align:middle; ">소모량</caption>
  2850. <line id="line1" class="line_2" style="x1:5px; y1:105px; x2:445px; y2:105px; "/>
  2851. <caption id="caption12" class="cell_1" style="left:209px; top:158px; width:80px; height:23px; text-align:right; vertical-align:middle; ">혈당</caption>
  2852. <caption id="caption13" style="left:177px; top:84px; width:28px; height:20px; vertical-align:middle; ">mCi</caption>
  2853. <line id="line4" class="line_2" style="x1:5px; y1:180px; x2:445px; y2:180px; "/>
  2854. <caption id="caption14" class="cell_1" style="left:5px; top:183px; width:80px; height:23px; text-align:right; vertical-align:middle; ">공급처</caption>
  2855. <input id="input31" ref="/root/send/ivdata/drugtm" class="input_default" navindex="25" format="hh:nn:ss" style="left:379px; top:58px; width:66px; height:19px; "/>
  2856. <line id="line14" class="line_1" style="x1:5px; y1:25px; x2:445px; y2:25px; "/>
  2857. <caption id="caption15" class="cell_1" style="left:5px; top:208px; width:80px; height:23px; text-align:right; vertical-align:middle; ">비고</caption>
  2858. <input id="input32" ref="/root/send/ivdata/drugqty" class="input_search" navindex="29" format="#,###.999" style="left:88px; top:84px; width:82px; height:19px; text-align:right; "/>
  2859. <line id="line16" class="line_2" style="x1:5px; y1:128px; x2:445px; y2:128px; "/>
  2860. <input id="input33" ref="/root/send/ivdata/cstqty" class="input_search" navindex="33" visibility="hidden" format="#,###.999" style="left:292px; top:110px; width:120px; height:19px; text-align:right; "/>
  2861. <line id="line19" class="line_2" style="x1:5px; y1:205px; x2:445px; y2:205px; "/>
  2862. <caption id="caption17" class="cell_1" style="left:5px; top:108px; width:80px; height:23px; text-align:right; vertical-align:middle; ">화합물</caption>
  2863. <input id="input34" ref="/root/send/ivdata/drugdd" class="input_default" navindex="23" inputtype="date" format="yyyy-mm-dd" style="left:292px; top:58px; width:86px; height:19px; "/>
  2864. <caption id="caption18" class="cell_1" style="left:209px; top:30px; width:80px; height:23px; text-align:right; vertical-align:middle; ">실시자</caption>
  2865. <caption id="caption26" class="cell_1" style="left:5px; top:30px; width:80px; height:23px; text-align:right; vertical-align:middle; ">핵종</caption>
  2866. <select1 id="combo2" ref="/root/send/ivdata/execrid" class="combo_search" appearance="minimal" style="left:292px; top:32px; width:117px; height:19px; ">
  2867. <choices>
  2868. <itemset nodeset="/root/init/cmb_info/initexecrinfo/initexecrid">
  2869. <label ref="execridnm"/>
  2870. <value ref="execridid"/>
  2871. </itemset>
  2872. </choices>
  2873. </select1>
  2874. <caption id="caption30" class="cell_1" style="left:209px; top:56px; width:80px; height:23px; text-align:right; vertical-align:middle; ">투여시간</caption>
  2875. <select1 id="combo3" ref="/root/send/ivdata/injpartcd" class="combo_search" navindex="35" appearance="minimal" style="left:88px; top:134px; width:117px; height:19px; ">
  2876. <choices>
  2877. <itemset nodeset="/root/init/cmb_info/initinjpartcd">
  2878. <label ref="injpartcdnm"/>
  2879. <value ref="injpartcdid"/>
  2880. </itemset>
  2881. </choices>
  2882. </select1>
  2883. <caption id="caption42" class="cell_1" style="left:5px; top:82px; width:80px; height:23px; text-align:right; vertical-align:middle; ">투여량</caption>
  2884. <caption id="caption47" class="tit_2" style="left:5px; top:10px; width:95px; height:13px; ">기술적 기록</caption>
  2885. <line id="line25" class="line_2" style="x1:5px; y1:79px; x2:445px; y2:79px; "/>
  2886. <caption id="caption65" class="cell_1" style="left:209px; top:133px; width:80px; height:23px; text-align:right; vertical-align:middle; ">키</caption>
  2887. <select1 id="combo4" ref="/root/send/ivdata/compdcd" class="combo_search" navindex="31" appearance="minimal" style="left:88px; top:110px; width:117px; height:19px; ">
  2888. <choices>
  2889. <itemset nodeset="/root/init/cmb_info/initcompdcd">
  2890. <label ref="compdcdnm"/>
  2891. <value ref="compdcdid"/>
  2892. </itemset>
  2893. </choices>
  2894. </select1>
  2895. <caption id="caption84" visibility="hidden" style="left:417px; top:110px; width:28px; height:20px; vertical-align:middle; ">vial</caption>
  2896. <line id="line27" class="line_2" style="x1:5px; y1:53px; x2:445px; y2:53px; "/>
  2897. <caption id="caption85" class="cell_1" style="left:5px; top:158px; width:80px; height:23px; text-align:right; vertical-align:middle; ">몸무게</caption>
  2898. <select1 id="combo9" ref="/root/send/ivdata/drugmthdcd" class="combo_search" navindex="28" appearance="minimal" style="left:88px; top:58px; width:117px; height:19px; ">
  2899. <choices>
  2900. <itemset nodeset="/root/init/cmb_info/initdrugmthdcd">
  2901. <label ref="drugmthdcdnm"/>
  2902. <value ref="drugmthdcdid"/>
  2903. </itemset>
  2904. </choices>
  2905. </select1>
  2906. <caption id="caption86" style="left:175px; top:160px; width:30px; height:20px; vertical-align:middle; ">kg</caption>
  2907. <caption id="caption87" class="cell_1" style="left:5px; top:133px; width:80px; height:23px; text-align:right; vertical-align:middle; ">IV.site</caption>
  2908. <select1 id="combo14" ref="/root/send/ivdata/nuclcd" class="combo_search" navindex="22" appearance="minimal" style="left:88px; top:32px; width:117px; height:19px; ">
  2909. <choices>
  2910. <itemset nodeset="/root/init/cmb_info/initnuclcd">
  2911. <label ref="nuclcdnm"/>
  2912. <value ref="nuclcd"/>
  2913. </itemset>
  2914. </choices>
  2915. </select1>
  2916. <caption id="caption88" style="left:362px; top:134px; width:30px; height:20px; vertical-align:middle; ">cm</caption>
  2917. <input id="input35" ref="/root/send/ivdata/bdwt" class="input_search" navindex="39" style="left:88px; top:160px; width:82px; height:19px; text-align:right; "/>
  2918. <input id="input36" ref="/root/send/ivdata/bsugarqty" class="input_search" navindex="41" style="left:292px; top:160px; width:65px; height:19px; text-align:right; "/>
  2919. <input id="input37" ref="/root/send/ivdata/ht" class="input_search" navindex="37" style="left:292px; top:134px; width:65px; height:19px; text-align:right; "/>
  2920. <select1 id="combo20" ref="/root/send/ivdata/suplcustcd" class="combo_search" disabled="true" navindex="35" appearance="minimal" style="left:89px; top:185px; width:117px; height:19px; ">
  2921. <choices>
  2922. <itemset nodeset="/root/init/cmb_info/initsuplcustcd">
  2923. <label ref="suplcustcdnm"/>
  2924. <value ref="suplcustcdid"/>
  2925. </itemset>
  2926. </choices>
  2927. </select1>
  2928. </case>
  2929. </switch>
  2930. <select1 id="cmb_acptlistflag" ref="/root/send/data/acptlistflag" appearance="minimal" style="left:70px; top:22px; width:105px; height:19px; ">
  2931. <choices>
  2932. <item>
  2933. <label>투여대기</label>
  2934. <value>J</value>
  2935. </item>
  2936. <item>
  2937. <label>부분실시</label>
  2938. <value>E</value>
  2939. </item>
  2940. <item>
  2941. <label>실시완료</label>
  2942. <value>S</value>
  2943. </item>
  2944. </choices>
  2945. <script type="javascript" ev:event="xforms-select">
  2946. <![CDATA[
  2947. var acptlistflag = model.getValue("/root/send/data/acptlistflag");
  2948. fInitGrid();
  2949. // 버튼 활성화 기준
  2950. fBtnDisabled(acptlistflag);
  2951. model.refresh();
  2952. ]]>
  2953. </script>
  2954. <script type="javascript" ev:event="xforms-value-changed">
  2955. <![CDATA[
  2956. // 사용자 변경 정보 저장
  2957. model.property("exec_acptlistflag") = cmb_acptlistflag.value;
  2958. ]]>
  2959. </script>
  2960. </select1>
  2961. <caption id="caption82" class="search_name" style="left:5px; top:22px; width:65px; height:17px; ">상태 :</caption>
  2962. <select1 id="cmb_excuroomgrp" ref="/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid" class="combo_default" appearance="minimal" style="left:260px; top:22px; width:118px; height:19px; ">
  2963. <choices>
  2964. <itemset nodeset="/root/init/cmb_info/initexcuroomgrp">
  2965. <label ref="excuroomgrpcdnm"/>
  2966. <value ref="excuroomgrpcdid"/>
  2967. </itemset>
  2968. </choices>
  2969. <script type="javascript" ev:event="xforms-select">
  2970. <![CDATA[
  2971. var acptlistflag = model.getValue("/root/send/data/acptlistflag");
  2972. var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
  2973. var excuroomcdid = model.getValue("/root/send/data/cmb_info/initexecroom/excuroomcdid");
  2974. fInitGrid();
  2975. // 버튼 활성화 기준
  2976. fBtnDisabled(acptlistflag);
  2977. // 검사실 변경 시 이벤트
  2978. fExcuRoomGrpChoi(excuroomgrpcdid);
  2979. // 기술적 기록 입력 화면 설정
  2980. fSetToggle(excuroomcdid);
  2981. model.refresh();
  2982. ]]>
  2983. </script>
  2984. <script type="javascript" ev:event="xforms-value-changed">
  2985. <![CDATA[
  2986. // 사용자 변경 정보 저장
  2987. model.property("exec_excuroomgrp") = cmb_excuroomgrp.value;
  2988. ]]>
  2989. </script>
  2990. </select1>
  2991. <caption id="caption83" class="search_name" style="left:180px; top:22px; width:78px; height:17px; ">검사실 :</caption>
  2992. <select1 id="cmb_excuroom" ref="/root/send/data/cmb_info/initexecroom/excuroomcdid" class="combo_default" appearance="minimal" style="left:380px; top:22px; width:130px; height:19px; ">
  2993. <choices>
  2994. <itemset nodeset="/root/init/cmb_info/excuroom/initexcuroom">
  2995. <label ref="excuroomcdnm"/>
  2996. <value ref="excuroomcdid"/>
  2997. </itemset>
  2998. </choices>
  2999. <script type="javascript" ev:event="xforms-select">
  3000. <![CDATA[
  3001. var excuroomcdid = model.getValue("/root/send/data/cmb_info/initexecroom/excuroomcdid");
  3002. // 기술적 기록 입력 화면 설정
  3003. fSetToggle(excuroomcdid);
  3004. model.resetInstanceNode("/root/main/ordlist2/mainordlist2");
  3005. model.resetInstanceNode("/root/main/ordlist1/mainordlist1");
  3006. model.refresh();
  3007. // 실시관리 : 대기/실시/실시완료 조회
  3008. //--fGetExamCureAcptList();
  3009. ]]>
  3010. </script>
  3011. <script type="javascript" ev:event="xforms-value-changed">
  3012. <![CDATA[
  3013. // 사용자 변경 정보 저장
  3014. model.property("exec_excuroom") = cmb_excuroom.value;
  3015. ]]>
  3016. </script>
  3017. </select1>
  3018. <datagrid id="grd_subordlist1" nodeset="/root/main/subordlist/subordlist1" caption="^등록번호 ^성명^처방일자^검사명^총용량^검사실^상태^용량^예약일자^희망일자^급여^I/O^진료과^진료의^IV^Tel^aftrcptinfo^퇴원일자^도착^장비코드1^prcpkindcd^excuroomnm^rgstdepthngnm^rgstridnm^basecd^rsrvdt^prcphopedt^execprcpuniqno^calcscorcd^prcpexecdeptcd^excuroomgrpcd^excuroomcd^rgstdeptcd^rgstrid^portprcpflag^inflag^rcptacptyn^execbaseflag^lrgcd^mdlcd^excupartcd^modality^rcptno^acptseqno^acptrem^execrem^prcpdelivefact^execrid1^execrid2^execrid3^execrid4^acptid^orddeptcd^excuexecfromdt1^basesuppdeptcd^orddd^cretno^orddrid^pacsnocretyn^rgsttm^eqmtifyn^eqcdyn^prcpexecdeptcd^prcpno^선택진료의^선택진료의^prcphistno" colsep="^" colwidth="24, 60, 48, 68, 259, 0, 100, 54, 32, 100, 68, 42, 33, 73, 54, 27, 37, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 80, 100" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:330px; top:84px; width:858px; height:291px; text-align:center; ">
  3019. <col checkvalue="Y,N" ref="check" type="checkbox"/>
  3020. <col ref="pid" style="text-align:left; "/>
  3021. <col ref="patnm"/>
  3022. <col ref="prcpdd" format="yyyy-mm-dd"/>
  3023. <col ref="prcpnm" style="font-weight:bold; text-align:left; "/>
  3024. <col ref="prcpqty"/>
  3025. <col disabled="true" ref="excuroomcd" type="combo">
  3026. <choices>
  3027. <itemset nodeset="/root/init/cmb_info/initexcuroomall">
  3028. <label ref="excuroomcdnm"/>
  3029. <value ref="excuroomcdid"/>
  3030. </itemset>
  3031. </choices>
  3032. </col>
  3033. <col disabled="true" ref="execprcpstatcd" type="combo">
  3034. <choices>
  3035. <itemset nodeset="/root/init/baseinfo/initexecprcpstatcd/M0011">
  3036. <label ref="cdnm"/>
  3037. <value ref="cdid"/>
  3038. </itemset>
  3039. </choices>
  3040. </col>
  3041. <col ref="prcpqty"/>
  3042. <col ref="rsrvdt" format="yyyy-mm-dd hh:nn" style="text-align:left; "/>
  3043. <col ref="prcphopedd" format="yyyy-mm-dd"/>
  3044. <col disabled="true" ref="payflagcd" type="combo">
  3045. <choices>
  3046. <itemset nodeset="/root/init/baseinfo/initpayflagcd/M0029">
  3047. <label ref="cdnm"/>
  3048. <value ref="cdid"/>
  3049. </itemset>
  3050. </choices>
  3051. </col>
  3052. <col ref="prcpgenrflag" type="combo">
  3053. <choices>
  3054. <itemset nodeset="/root/init/baseinfo/initprcpgenrflagcd/M0010">
  3055. <label ref="cdnm"/>
  3056. <value ref="cdid"/>
  3057. </itemset>
  3058. </choices>
  3059. </col>
  3060. <col ref="orddepthngnm"/>
  3061. <col ref="orddrnm"/>
  3062. <col ref="ivinputyn" visibility="hidden"/>
  3063. <col ref="cntctel" visibility="hidden"/>
  3064. <col ref="aftrcptinfo" visibility="hidden"/>
  3065. <col ref="dschdd" visibility="hidden"/>
  3066. <col ref="arvtm"/>
  3067. <col ref="excueqcd1" type="combo">
  3068. <choices>
  3069. <itemset nodeset="/root/init/cmb_info/initexcueq">
  3070. <label ref="excueqcdnm"/>
  3071. <value ref="excueqcdid"/>
  3072. </itemset>
  3073. </choices>
  3074. </col>
  3075. <col ref="prcpkindcd"/>
  3076. <col ref="examroomnm"/>
  3077. <col ref="rgstdepthngnm"/>
  3078. <col ref="rgstridnm"/>
  3079. <col ref="basecd"/>
  3080. <col ref="rsrvdt"/>
  3081. <col ref="prcphopedt"/>
  3082. <col ref="execprcpuniqno"/>
  3083. <col ref="calcscorcd"/>
  3084. <col ref="prcpexecdeptcd"/>
  3085. <col ref="excuroomgrpcd"/>
  3086. <col ref="excuroomcd"/>
  3087. <col ref="rgstdeptcd"/>
  3088. <col ref="rgstrid"/>
  3089. <col ref="portprcpflag"/>
  3090. <col ref="inflag"/>
  3091. <col ref="rcptacptyn"/>
  3092. <col ref="execbaseflag"/>
  3093. <col ref="lrgcd"/>
  3094. <col ref="mdlcd"/>
  3095. <col ref="excupartcd"/>
  3096. <col ref="modality"/>
  3097. <col ref="rcptno"/>
  3098. <col ref="acptseqno"/>
  3099. <col ref="acptrem"/>
  3100. <col ref="execrem"/>
  3101. <col ref="prcpdelivefact"/>
  3102. <col ref="execrid1"/>
  3103. <col ref="execrid2"/>
  3104. <col ref="execrid3"/>
  3105. <col ref="execrid4"/>
  3106. <col ref="acptid"/>
  3107. <col ref="orddeptcd"/>
  3108. <col ref="excuexecfromdt1"/>
  3109. <col ref="basesuppdeptcd"/>
  3110. <col ref="orddd"/>
  3111. <col ref="cretno"/>
  3112. <col ref="orddrid"/>
  3113. <col ref="pacsnocretyn"/>
  3114. <col ref="rgsttm"/>
  3115. <col ref="eqmtifyn"/>
  3116. <col ref="eqcdyn"/>
  3117. <col ref="prcpexecdeptcd"/>
  3118. <col ref="prcpno"/>
  3119. <col ref="choiordflag" style="text-align:center; "/>
  3120. <col disabled="false" ref="specdrid" type="combo" style="text-align:center; ">
  3121. <choices>
  3122. <itemset nodeset="/root/main/specdridlist/item">
  3123. <label ref="usernm"/>
  3124. <value ref="userid"/>
  3125. </itemset>
  3126. </choices>
  3127. </col>
  3128. <col ref="prcphistno" visibility="hidden"/>
  3129. <script type="javascript" ev:event="onclick">
  3130. <![CDATA[
  3131. if ( grd_subordlist1.row == 0 ) return;
  3132. if ( grd_subordlist1.isCell(event.target) && grd_subordlist1.row >= grd_subordlist1.fixedRows ) {
  3133. model.removenode("/root/main/mainordlist2");
  3134. if ( btn_case3.selected == true) {
  3135. fTopInfo2();
  3136. }
  3137. var rowidx = grd_subordlist1.row;
  3138. var colidx = grd_subordlist1.col;
  3139. var schk = model.getValue("/root/main/subordlist/subordlist1[" + rowidx + "]/check");
  3140. if (grd_subordlist1.colRef("check") != colidx) {
  3141. if (schk == "Y"){
  3142. model.setValue("/root/main/subordlist/subordlist1[" + rowidx + "]/check", "N");
  3143. } else if (schk == ""){
  3144. model.setValue("/root/main/subordlist/subordlist1[" + rowidx + "]/check", "Y");
  3145. } else {
  3146. model.setValue("/root/main/subordlist/subordlist1[" + rowidx + "]/check", "Y");
  3147. }
  3148. }
  3149. var chk = model.getValue("/root/main/subordlist/subordlist1["+ rowidx +"]/check");
  3150. var selExecprcpstatcd = model.getValue("/root/main/subordlist/subordlist1["+ rowidx +"]/execprcpstatcd");
  3151. var excuroomcd = model.getValue("/root/main/subordlist/subordlist1["+ rowidx +"]/excuroomcd");
  3152. var excuroomgrpcd = model.getValue("/root/main/subordlist/subordlist1["+ rowidx +"]/excuroomgrpcd");
  3153. var acptlistflag = model.getValue("/root/send/data/acptlistflag");
  3154. for (var i=1; i<grd_subordlist1.rows; i++) {
  3155. if (i != rowidx) {
  3156. var selChk = model.getValue("/root/main/subordlist/subordlist1["+ i +"]/check");
  3157. var newexecprcpstatcd = model.getValue("/root/main/subordlist/subordlist1["+ i +"]/execprcpstatcd");
  3158. var newexcuroomcd = model.getValue("/root/main/subordlist/subordlist1["+ i +"]/excuroomcd");
  3159. if (selChk == "Y") {
  3160. // 다른 검사실 그룹을 선택하는 경우 체크
  3161. if (newexcuroomcd != excuroomcd ) {
  3162. model.setValue("/root/main/subordlist/subordlist1["+ i +"]/check","N");
  3163. messageBox("기존에 선택된 검사실과 다른 검사실을 선택","E001");
  3164. // 다른 처방 상태를 선택하는 경우 체크
  3165. } else if (newexecprcpstatcd != selExecprcpstatcd ) {
  3166. model.setValue("/root/main/subordlist/subordlist1["+ i +"]/check","N");
  3167. messageBox("기존에 선택된 처방상태와 상태가 다른 처방을 선택","E001");
  3168. }
  3169. }
  3170. }
  3171. }
  3172. if (chk == "Y") {
  3173. var pid = model.getValue("/root/send/data/srchpid");
  3174. // 환자 번호로 조회 한 경우
  3175. if (pid != "") {
  3176. if ( selExecprcpstatcd == "440" || selExecprcpstatcd == "450" ) {
  3177. model.setValue("/root/send/data/acptlistflag","J");
  3178. acptlistflag = "J";
  3179. } else if ( selExecprcpstatcd == "600" ) {
  3180. model.setValue("/root/send/data/acptlistflag","E");
  3181. acptlistflag = "E";
  3182. } else if ( selExecprcpstatcd == "610" || selExecprcpstatcd == "700" || selExecprcpstatcd == "730" ) {
  3183. model.setValue("/root/send/data/acptlistflag","S");
  3184. acptlistflag = "S";
  3185. } else {
  3186. acptlistflag = "";
  3187. }
  3188. // 검사실 변경 이벤트
  3189. model.setValue("root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid",excuroomgrpcd);
  3190. // 버튼 활성화 기준
  3191. fBtnDisabled(acptlistflag);
  3192. // 검사실 그룹 변경 시 이벤트
  3193. fExcuRoomGrpChoi(excuroomgrpcd);
  3194. }
  3195. // 기술적 기록 입력 화면 설정
  3196. fSetToggle(excuroomcd);
  3197. cmb_excuroom2.value = excuroomcd;
  3198. cmb_scrtcd.disabled = false;
  3199. cmb_scrtcd.choices.itemset.attribute("nodeset") = "/root/init/cmb_info/initscrtroom[basecdcnts='"+ excuroomcd + "']";
  3200. model.makeValue("/root/send/data/cmb_info/initexecroom/excuroomcdid2", excuroomcd);
  3201. model.makeValue("/root/main/comment1/acptrem", model.getValue("/root/main/subordlist/subordlist1["+ rowidx +"]/acptrem"));
  3202. model.makeValue("/root/main/comment1/execrem", model.getValue("/root/main/subordlist/subordlist1["+ rowidx +"]/execrem"));
  3203. model.makeValue("/root/main/comment1/prcpdelivefact", model.getValue("/root/main/subordlist/subordlist1["+ rowidx +"]/prcpdelivefact"));
  3204. model.setValue("/root/send/data/cmb_info/initexcueq/excueqcdid", model.getValue("/root/main/subordlist/subordlist1["+ rowidx +"]/excuposseqcd"));
  3205. if (acptlistflag != "") {
  3206. // 기술적 기록 조회
  3207. fGetNuclInptList(grd_subordlist1);
  3208. } else {
  3209. model.resetInstanceNode("/root/send/ivdata");
  3210. }
  3211. model.refresh();
  3212. }
  3213. }
  3214. ]]>
  3215. </script>
  3216. <script type="javascript" ev:event="onmousedown">
  3217. <![CDATA[
  3218. if( model.getValue("/root/send/data/acptlistflag") == "J" ){
  3219. setPopupMenu("grd_subordlist1", false, "/root/init/popupmenu/grid02/item", "name", "func");
  3220. }else{
  3221. setPopupMenu("grd_subordlist1", false, "/root/init/popupmenu/grid01/item", "name", "func");
  3222. }
  3223. ]]>
  3224. </script>
  3225. <script type="javascript" ev:event="DOMFocusOut">
  3226. <![CDATA[
  3227. initPopupMenu();
  3228. ]]>
  3229. </script>
  3230. <script type="javascript" ev:event="onmouseover">
  3231. <![CDATA[
  3232. var col = grd_subordlist1.mouseCol;
  3233. var row = grd_subordlist1.mouseRow;
  3234. if (col == grd_subordlist1.colRef("prcpnm")) {
  3235. grd_subordlist1.tooltipText(row, grd_subordlist1.colRef("prcpnm")) = "총용량 : " + grd_subordlist1.valueMatrix(row, grd_subordlist1.colRef("prcpqty")) ;
  3236. grd_subordlist1.attribute("tooltip") = "true";
  3237. } else {
  3238. grd_subordlist1.attribute("tooltip") = "false";
  3239. }
  3240. ]]>
  3241. </script>
  3242. <script type="javascript" ev:event="onmouseout">
  3243. <![CDATA[
  3244. grd_subordlist1.attribute("tooltip") = "false";
  3245. ]]>
  3246. </script>
  3247. <script type="javascript" ev:event="onaftersort">
  3248. <![CDATA[
  3249. grd_subordlist1.gridToInstance(); // 정렬기능 적용 후 인스턴스 재구성
  3250. ]]>
  3251. </script>
  3252. </datagrid>
  3253. <button id="btn_case1" class="btn_sw" group="tab2" style="left:7px; top:61px; width:60px; height:22px; ">
  3254. <caption>외래</caption>
  3255. <toggle case="case1" ev:event="onclick"/>
  3256. <script type="javascript" ev:event="DOMActivate">
  3257. <![CDATA[
  3258. // 입원/외래 구분
  3259. model.makeValue("/root/send/data/cmb_info/initioflag/ioflag","O");
  3260. // 등록번호 초기화
  3261. model.setValue("/root/send/data/srchpid","");
  3262. // 실시관리 : 대기/실시/실시완료 조회
  3263. fGetExamCureAcptList();
  3264. ]]>
  3265. </script>
  3266. </button>
  3267. <button id="btn_case2" class="btn_sw" group="tab2" style="left:67px; top:61px; width:60px; height:22px; ">
  3268. <caption>병실</caption>
  3269. <toggle case="case1" ev:event="onclick"/>
  3270. <script type="javascript" ev:event="DOMActivate">
  3271. <![CDATA[
  3272. // 입원/외래 구분
  3273. model.makeValue("/root/send/data/cmb_info/initioflag/ioflag","I");
  3274. // 등록번호 초기화
  3275. model.setValue("/root/send/data/srchpid","");
  3276. // 실시관리 : 대기/실시/실시완료 조회
  3277. fGetExamCureAcptList();
  3278. ]]>
  3279. </script>
  3280. </button>
  3281. <button id="btn_case3" class="btn_sw" group="tab2" selected="true" style="left:127px; top:61px; width:60px; height:22px; ">
  3282. <caption>검사별</caption>
  3283. <toggle case="case2" ev:event="onclick"/>
  3284. <script type="javascript" ev:event="DOMActivate">
  3285. <![CDATA[
  3286. rdo_ioflag.value = "";
  3287. // 등록번호 초기화
  3288. model.setValue("/root/send/data/srchpid","");
  3289. // 실시관리 : 대기/실시/실시완료 조회
  3290. fGetExamCureAcptList();
  3291. ]]>
  3292. </script>
  3293. </button>
  3294. <switch id="switch2" style="left:7px; top:83px; width:320px; height:291px; ">
  3295. <case id="case1">
  3296. <datagrid id="grd_mainordlist1" nodeset="/root/main/ordlist1/mainordlist1" autoresize="true" caption="No^등록번호^환자명^구분^병동^퇴원일자^과^execprcpuniqno^orddeptcd^rsrvdd^execprcpstatcd^prcpdd^roomcd^orddrid^rcptyn^type^진료(입원)일자^환자일련번호" colsep="^" colwidth="0, 68, 73, 48, 86, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:1px; width:315px; height:284px; ">
  3297. <col ref="no"/>
  3298. <col ref="pid"/>
  3299. <col ref="patnm"/>
  3300. <col disabled="true" ref="prcpgenrflag" type="combo">
  3301. <choices>
  3302. <itemset nodeset="/root/init/baseinfo/initprcpgenrflagcd/M0010">
  3303. <label ref="cdnm"/>
  3304. <value ref="cdid"/>
  3305. </itemset>
  3306. </choices>
  3307. </col>
  3308. <col disabled="true" ref="wardcd" type="combo">
  3309. <choices>
  3310. <itemset nodeset="/root/init/cmb_info/initexecward">
  3311. <label ref="execwardcdnm"/>
  3312. <value ref="execwardcdid"/>
  3313. </itemset>
  3314. </choices>
  3315. </col>
  3316. <col ref="dschdd" visibility="hidden"/>
  3317. <col ref="depthngnm" style="left:230px; top:20px; width:32px; height:20px; "/>
  3318. <col ref="execprcpuniqno"/>
  3319. <col ref="orddeptcd"/>
  3320. <col ref="rsrvdd"/>
  3321. <col ref="execprcpstatcd"/>
  3322. <col ref="prcpdd"/>
  3323. <col ref="roomcd"/>
  3324. <col ref="orddrid"/>
  3325. <col ref="rcptyn"/>
  3326. <col ref="type"/>
  3327. <col ref="orddd"/>
  3328. <col ref="cretno"/>
  3329. <col ref="aftrcptinfo" visibility="hidden"/>
  3330. <script type="javascript" ev:event="onclick">
  3331. <![CDATA[
  3332. var acptlistflag = model.getValue("/root/send/data/acptlistflag");
  3333. if (acptlistflag == "") {
  3334. return "0";
  3335. }
  3336. var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
  3337. if (excuroomgrpcdid == "") {
  3338. return "0";
  3339. }
  3340. if ( (grd_mainordlist1.row >= grd_mainordlist1.fixedRows) && (grd_mainordlist1.isCell(event.target))) {;
  3341. // Top 환자 정보
  3342. if ( btn_case1.selected == true || btn_case2.selected == true) {
  3343. delPatientInfos();
  3344. fTopInfo();
  3345. }
  3346. fGetExamCurePrcpList(grd_mainordlist1);
  3347. }
  3348. ]]>
  3349. </script>
  3350. <script type="javascript" ev:event="onaftersort">
  3351. <![CDATA[
  3352. grd_mainordlist1.gridToInstance(); // 정렬기능 적용 후 인스턴스 재구성
  3353. ]]>
  3354. </script>
  3355. </datagrid>
  3356. </case>
  3357. <case id="case2" selected="true">
  3358. <datagrid id="grd_mainordlist2" nodeset="/root/main/ordlist2/mainordlist2" autoresize="true" caption="No^검사코드^검사명^pid^patnm^execprcpuniqno^orddeptcd^rsrvdd^execprcpstatcd^prcpdd^roomcd^orddrid^rcptyn^prcpgenrflag^wardcd^type" colsep="^" colwidth="0, 0, 266, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:25px; width:310px; height:260px; ">
  3359. <col ref="no" visibility="hidden"/>
  3360. <col ref="calcscorcd"/>
  3361. <col ref="prcpnm"/>
  3362. <col ref="pid"/>
  3363. <col ref="patnm"/>
  3364. <col ref="execprcpuniqno"/>
  3365. <col ref="orddeptcd"/>
  3366. <col ref="rsrvdd"/>
  3367. <col ref="execprcpstatcd"/>
  3368. <col ref="prcpdd"/>
  3369. <col ref="roomcd"/>
  3370. <col ref="orddrid"/>
  3371. <col ref="rcptyn"/>
  3372. <col ref="prcpgenrflag"/>
  3373. <col ref="wardcd"/>
  3374. <col ref="type"/>
  3375. <script type="javascript" ev:event="ondblclick">
  3376. <![CDATA[
  3377. //fGetExamCurePrcpList(grd_mainordlist2);
  3378. ]]>
  3379. </script>
  3380. <script type="javascript" ev:event="onclick">
  3381. <![CDATA[
  3382. var acptlistflag = model.getValue("/root/send/data/acptlistflag");
  3383. if (acptlistflag == "") {
  3384. return "0";
  3385. }
  3386. var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
  3387. if (excuroomgrpcdid == "") {
  3388. return "0";
  3389. }
  3390. if ( (grd_mainordlist2.row >= grd_mainordlist2.fixedRows) && (grd_mainordlist2.isCell(event.target))) {
  3391. fGetExamCurePrcpList(grd_mainordlist2);
  3392. }
  3393. ]]>
  3394. </script>
  3395. <script type="javascript" ev:event="onaftersort">
  3396. <![CDATA[
  3397. grd_mainordlist2.gridToInstance(); // 정렬기능 적용 후 인스턴스 재구성
  3398. ]]>
  3399. </script>
  3400. </datagrid>
  3401. <select1 id="rdo_ioflag" ref="/root/send/data/cmb_info/initioflag/ioflag" class="radio_search" appearance="full" cols="3" rows="2" overflow="visible" style="left:5px; top:5px; width:145px; height:16px; border-style:none; ">
  3402. <choices>
  3403. <item>
  3404. <label>전체</label>
  3405. <value/>
  3406. </item>
  3407. <item>
  3408. <label>외래</label>
  3409. <value>O</value>
  3410. </item>
  3411. <item>
  3412. <label>병실</label>
  3413. <value>I</value>
  3414. </item>
  3415. </choices>
  3416. <script type="javascript" ev:event="onclick">
  3417. <![CDATA[
  3418. fGetToggleAcptList();
  3419. ]]>
  3420. </script>
  3421. </select1>
  3422. </case>
  3423. </switch>
  3424. <button id="btn_roomupdt" class="btn2_letter3" disabled="true" style="left:1135px; top:59px; width:53px; height:19px; ">
  3425. <caption>실변경</caption>
  3426. <script type="javascript" ev:event="DOMActivate">
  3427. <![CDATA[
  3428. var excuroomcdid = model.getValue("/root/send/data/cmb_info/initexecroom/excuroomcdid");
  3429. var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
  3430. // 촬영실을 선택 여부 체크
  3431. if (excuroomcdid != "") {
  3432. var acptlistflag = model.getValue("/root/send/data/acptlistflag");
  3433. model.makeValue("/root/hidden/popup/examroominfo/srchdate1", model.getValue("/root/send/data/srchdate1"));
  3434. model.makeValue("/root/hidden/popup/examroominfo/srchdate2", model.getValue("/root/send/data/srchdate2"));
  3435. model.makeValue("/root/hidden/popup/examroominfo/instance1", model.getValue("/root/send/globalinstance/instance1"));
  3436. model.makeValue("/root/hidden/popup/examroominfo/srchflag", 'P');
  3437. model.makeValue("/root/hidden/popup/examroominfo/acptlistflag", acptlistflag);
  3438. model.makeValue("/root/hidden/popup/examroominfo/excuroomgrpcdid", excuroomgrpcdid);
  3439. model.makeValue("/root/hidden/popup/examroominfo/excuroomcdid", excuroomcdid);
  3440. model.makeValue("/root/hidden/popup/examroominfo/initexecroom", excuroomcdid);
  3441. modal("SPAEA05100", "", "200", "200", "SPAEA05100","/root/hidden/popup/examroominfo","/root/send");
  3442. } else {
  3443. messageBox("환자를 받기를 할 촬영실을", "C002");
  3444. model.setfocus("cmb_excuroom");
  3445. }
  3446. ]]>
  3447. </script>
  3448. </button>
  3449. <button id="btn_holdcncl" class="btn4_letter2" visibility="hidden" style="left:767px; top:756px; width:56px; height:22px; ">
  3450. <caption>취소</caption>
  3451. <script type="javascript" ev:event="DOMActivate">
  3452. <![CDATA[
  3453. fExeHold(2);
  3454. ]]>
  3455. </script>
  3456. </button>
  3457. <button id="btn_hold" class="btn4_letter2" visibility="hidden" style="left:710px; top:756px; width:56px; height:22px; ">
  3458. <caption>보류</caption>
  3459. <script type="javascript" ev:event="DOMActivate">
  3460. <![CDATA[
  3461. fExeHold(1);
  3462. ]]>
  3463. </script>
  3464. </button>
  3465. <button id="btn_clear" class="btn2_letter3" style="left:525px; top:384px; width:53px; height:19px; ">
  3466. <caption>초기화</caption>
  3467. <script type="javascript" ev:event="DOMActivate">
  3468. <![CDATA[
  3469. model.resetInstanceNode("/root/send/ivdata1");
  3470. copyNodesetType("/root/send/ivdata1", "/root/main/matrcstcodelist/item");
  3471. model.makeValue("/root/send/ivdata/drugdd", getCurrentDate());
  3472. model.makeValue("/root/send/ivdata/drugtm", getCurrentTime());
  3473. model.makeValue("/root/send/ivdata/nuclrem", "");
  3474. model.makeValue("/root/send/ivdata/phormcd", "");
  3475. model.makeValue("/root/send/ivdata/scrtrmcd", "");
  3476. model.makeValue("/root/send/ivdata/labbkg", "");
  3477. model.makeValue("/root/send/ivdata/patbkg", "");
  3478. model.makeValue("/root/send/ivdata/smplact", "");
  3479. model.makeValue("/root/send/ivdata/thyrmea", "");
  3480. model.makeValue("/root/send/ivdata/testrsltval", "");
  3481. model.refresh();
  3482. ]]>
  3483. </script>
  3484. </button>
  3485. <button id="btn_druginpt" class="btn2_letter4" disabled="true" style="left:646px; top:384px; width:64px; height:19px; ">
  3486. <caption>투여입력</caption>
  3487. <script type="javascript" ev:event="DOMActivate">
  3488. <![CDATA[
  3489. var rtn = fExeNuclInpt();
  3490. if ( rtn != "0" ) {
  3491. var srchpid = model.getValue("/root/send/data/srchpid");
  3492. if (srchpid == "") {
  3493. var pid = "";
  3494. var calcscorcd = "";
  3495. if ( btn_case3.selected == true ) {
  3496. calcscorcd = model.getValue("/root/main/ordlist2/mainordlist2["+grd_mainordlist2.row+"]/calcscorcd");
  3497. } else {
  3498. pid = model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/pid");
  3499. }
  3500. model.makeValue("/root/send/temp/pid",pid);
  3501. model.makeValue("/root/send/temp/calcscorcd",calcscorcd);
  3502. fGetExamCureAcptList()
  3503. } else {
  3504. fGetExamCurePidPrcpList();
  3505. }
  3506. }
  3507. ]]>
  3508. </script>
  3509. </button>
  3510. <button id="btn_contcure" class="btn2_letter4" disabled="true" style="left:580px; top:384px; width:64px; height:19px; ">
  3511. <caption>연속검사</caption>
  3512. <script type="javascript" ev:event="DOMActivate">
  3513. <![CDATA[
  3514. var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
  3515. // if ( grd_subordlist1.row == 0 ) {
  3516. // messageBox("처방내역을 선택해 주십시오.","I999");
  3517. // return;
  3518. //
  3519. // } else {
  3520. var check = "";
  3521. var loopcnt = 0;
  3522. var loop = grd_subordlist1.rows - grd_subordlist1.fixedRows;
  3523. for( var i = 1 ; i <= loop ; i++ ) {
  3524. check = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/check");
  3525. if ( check == "Y" ) {
  3526. // 검체검사는 접수/취소/보류/취소를 막는다.
  3527. var chkprcpnm = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/prcpnm");
  3528. if ( model.getValue("/root/main/subordlist/subordlist1[" + i + "]/basesuppdeptcd") == "B6" ) {
  3529. messageBox("["+chkprcpnm+"] 검사는 검체검사입니다. [환자채혈] 기능을 이용하시기 바랍니다.", "I999");
  3530. return "0";
  3531. }
  3532. loopcnt++;
  3533. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/check", "Y");
  3534. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/excuroomgrpcdid", excuroomgrpcdid);
  3535. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/pid", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/pid"));
  3536. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/patnm", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/patnm"));
  3537. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/excuroomcd", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/excuroomcd"));
  3538. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/prcpdd", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/prcpdd"));
  3539. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/execprcpuniqno", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/execprcpuniqno"));
  3540. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/rsrvflag", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/prcpgenrflag"));
  3541. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/prcpkindcd", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/prcpkindcd"));
  3542. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/excupartcd", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/excupartcd"));
  3543. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/indd", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/indd"));
  3544. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/actorddd", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/actorddd"));
  3545. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/orddeptcd", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/orddeptcd"));
  3546. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/orddrid", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/orddrid"));
  3547. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/calcscorcd", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/calcscorcd"));
  3548. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/execrid", model.getValue("/root/send/ivdata/execrid"));
  3549. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/rsrvrem", "영상연속검사");
  3550. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/suppdeptcd", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/basesuppdeptcd"));
  3551. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/cnclresncd", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/cnclresncd"));
  3552. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/pacsnocretyn", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/pacsnocretynm"));
  3553. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/rgsttm", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/rgsttm"));
  3554. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/rgstrid", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/rgstrid"));
  3555. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/prcpdelivefact", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/prcpdelivefact"));
  3556. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/orddepthngnm", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/orddepthngnm"));
  3557. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/prcpnm", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/prcpnm"));
  3558. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/orddd", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/orddd"));
  3559. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/rgstdepthngnm", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/rgstdepthngnm"));
  3560. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/excuroomnm", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/examroomnm"));
  3561. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/rsrvpsnnocntlyn", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/rsrvpsnnocntlyn"));
  3562. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/rsrvstatcd", "Y");
  3563. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/cnclresncd", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/cnclresncd"));
  3564. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/cnclflag", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/cnclflag"));
  3565. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/prcpexecdeptcd", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/prcpexecdeptcd"));
  3566. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/prcpexecdeptcd", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/prcpexecdeptcd"));
  3567. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/tmpldata", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/tmpldata"));
  3568. model.makeValue("/root/hidden/exculist/mainordlist5[" + loopcnt + "]/bf_srchrsrvtm", model.getValue("/root/main/subordlist/subordlist1[" + i + "]/conttestrsrvdd"));
  3569. }
  3570. }
  3571. if ( loopcnt == 0 ) {
  3572. messageBox("처방내역을 선택해 주십시오.","I999");
  3573. return "0";
  3574. }
  3575. modal("SMAEA03600", "","","", "SMAEA03600", "/root/hidden/exculist","/root/main/exculist");
  3576. model.refresh();
  3577. // }
  3578. ]]>
  3579. </script>
  3580. </button>
  3581. <button id="btn_drugcncl" class="btn2_letter4" disabled="true" style="left:712px; top:384px; width:64px; height:19px; ">
  3582. <caption>투여취소</caption>
  3583. <script type="javascript" ev:event="DOMActivate">
  3584. <![CDATA[
  3585. var rtn = fExeNuclCnclList();
  3586. if ( rtn != "0" ) {
  3587. // if ( btn_case1.selected == true ) {
  3588. // fGetExamCurePrcpList(grd_mainordlist1);
  3589. // } else {
  3590. // fGetExamCurePrcpList(grd_mainordlist2);
  3591. // }
  3592. var srchpid = model.getValue("/root/send/data/srchpid");
  3593. if (srchpid == "") {
  3594. // if ( btn_case3.selected != true ) {
  3595. // fGetExamCurePrcpList(grd_mainordlist1);
  3596. // } else {
  3597. // fGetExamCurePrcpList(grd_mainordlist2);
  3598. // }
  3599. var pid = "";
  3600. var calcscorcd = "";
  3601. if ( btn_case3.selected == true ) {
  3602. calcscorcd = model.getValue("/root/main/ordlist2/mainordlist2["+grd_mainordlist2.row+"]/calcscorcd");
  3603. } else {
  3604. pid = model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/pid");
  3605. }
  3606. model.makeValue("/root/send/temp/pid",pid);
  3607. model.makeValue("/root/send/temp/calcscorcd",calcscorcd);
  3608. fGetExamCureAcptList()
  3609. } else {
  3610. fGetExamCurePidPrcpList();
  3611. }
  3612. }
  3613. ]]>
  3614. </script>
  3615. </button>
  3616. <group id="group1" style="left:7px; top:378px; width:320px; height:375px; ">
  3617. <caption id="caption9" class="tit_2" style="left:0px; top:10px; width:115px; height:13px; ">
  3618. <![CDATA[대기자 현황]]>
  3619. <script type="javascript" ev:event="onclick">
  3620. <![CDATA[
  3621. var grd_width = grd_subpopordlist.attribute("width");
  3622. if (grd_width == "315px") {
  3623. group1.attribute("width") = "620px";
  3624. grd_subpopordlist.attribute("width") = "615px";
  3625. btn_accept.attribute("left") = "552px";
  3626. line13.attribute("x2") = "616px";
  3627. } else {
  3628. group1.attribute("width") = "320px";
  3629. grd_subpopordlist.attribute("width") = "315px";
  3630. btn_accept.attribute("left") = "252px";
  3631. line13.attribute("x2") = "316px";
  3632. }
  3633. ]]>
  3634. </script>
  3635. </caption>
  3636. <line id="line13" class="line_1" style="x1:0px; y1:25px; x2:316px; y2:25px; "/>
  3637. <datagrid id="grd_subpopordlist" nodeset="/root/main/ordlist3/mainordlist/mainordlist3" caption="^구분^등록번호^환자명^처방명^예약일자^접수일시^검사실코드^유일번호^처방일자^수행부서코드^PACS연동코드" colsep="^" colwidth="21, 37, 69, 66, 255, 90, 0, 0, 0, 0, 0, 0" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:315px; height:342px; ">
  3638. <col checkvalue="Y,N" ref="check" type="checkbox"/>
  3639. <col disabled="true" ref="conttestyn" type="combo" style="text-align:center; ">
  3640. <choices>
  3641. <item>
  3642. <label>연속</label>
  3643. <value>Y</value>
  3644. </item>
  3645. <item>
  3646. <label>일반</label>
  3647. <value>N</value>
  3648. </item>
  3649. </choices>
  3650. </col>
  3651. <col ref="pid"/>
  3652. <col ref="patnm"/>
  3653. <col ref="prcpnm"/>
  3654. <col ref="conttestrsrvdd" format="yyyy-mm-dd" style="text-align:center; "/>
  3655. <col ref="rsrvdt" format="yyyy-mm-dd hh:nn:ss"/>
  3656. <col ref="excuroomcd"/>
  3657. <col ref="execprcpuniqno"/>
  3658. <col ref="prcpdd"/>
  3659. <col ref="basesuppdeptcd"/>
  3660. <col ref="pacsnocretyn"/>
  3661. <script type="javascript" ev:event="onclick">
  3662. <![CDATA[
  3663. if ( grd_subpopordlist.isCell(event.target) && grd_subpopordlist.row >= grd_subpopordlist.fixedRows ) {
  3664. var rowidx = grd_subpopordlist.row;
  3665. var colidx = grd_subpopordlist.col;
  3666. var flag = grd_subpopordlist.isReadOnly(rowidx,colidx);
  3667. if ( flag != false) {
  3668. var schk = model.getValue("/root/main/ordlist3/mainordlist/mainordlist3[" + rowidx + "]/check");
  3669. if (grd_subpopordlist.colRef("check") != colidx) {
  3670. if (schk == "Y"){
  3671. model.setValue("/root/main/ordlist3/mainordlist/mainordlist3[" + rowidx + "]/check", "N");
  3672. } else if (schk == ""){
  3673. model.setValue("/root/main/ordlist3/mainordlist/mainordlist3[" + rowidx + "]/check", "Y");
  3674. } else {
  3675. model.setValue("/root/main/ordlist3/mainordlist/mainordlist3[" + rowidx + "]/check", "Y");
  3676. }
  3677. }
  3678. }
  3679. }
  3680. ]]>
  3681. </script>
  3682. <script type="javascript" ev:event="onaftersort">
  3683. <![CDATA[
  3684. grd_subpopordlist.gridToInstance();
  3685. ]]>
  3686. </script>
  3687. </datagrid>
  3688. <button id="btn_accept" class="btn2_letter4" disabled="true" style="left:252px; top:5px; width:64px; height:19px; ">
  3689. <caption>환자받기</caption>
  3690. <script type="javascript" ev:event="DOMActivate">
  3691. <![CDATA[
  3692. // 검사실 환자받기을 위한 선택
  3693. fSetExamCureAcceptRoomCodeList();
  3694. ]]>
  3695. </script>
  3696. </button>
  3697. </group>
  3698. <shape id="rectangle6" appearance="rectangle" style="left:332px; top:63px; width:20px; height:15px; background-color:#ffff00; "/>
  3699. <shape id="rectangle7" appearance="rectangle" style="left:375px; top:63px; width:20px; height:15px; background-color:#ccffcc; "/>
  3700. <shape id="rectangle8" appearance="rectangle" style="left:454px; top:63px; width:20px; height:15px; background-color:#FF9A00; "/>
  3701. <caption id="caption116" style="left:477px; top:63px; width:38px; height:15px; ">미수납</caption>
  3702. <caption id="caption117" style="left:357px; top:63px; width:18px; height:15px; ">V</caption>
  3703. <caption id="caption118" style="left:398px; top:63px; width:50px; height:15px; ">오늘결과</caption>
  3704. <button id="button2" class="btn3_letter6" style="left:320px; top:760px; width:104px; height:22px; ">
  3705. <caption>판독결과관리</caption>
  3706. <script type="javascript" ev:event="DOMActivate">
  3707. <![CDATA[
  3708. open ( "SMAER00620" );
  3709. ]]>
  3710. </script>
  3711. </button>
  3712. <button id="button3" class="btn3_letter6" style="left:425px; top:760px; width:104px; height:22px; ">
  3713. <caption>판독현황조회</caption>
  3714. <script type="javascript" ev:event="DOMActivate">
  3715. <![CDATA[
  3716. open ( "SMAER00630" );
  3717. ]]>
  3718. </script>
  3719. </button>
  3720. </xhtml:body>
  3721. </xhtml:html>