123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMADT30100" position="absolute 0 0 1213 785" titletext="마약/향정약 처방관리" oninit="SMADT30100_oninit" onload="SMADT30100_onload" ontimer="SMADT30100_ontimer">
- <Layouts>
- <Layout>
- <Shape id="line02" class="line_10" position="absolute 0 243 1211 249" anchor="left top right"/>
- <Div id="grp_srch" taborder="50" position="absolute 0 25 776 216" class="div_SA"/>
- <Tab id="switch1" taborder="49" tabindex="0" class="tab_Normal" position="absolute 0 235 1211 754" anchor="all">
- <Tabpages>
- <Tabpage id="case1">
- <Layouts>
- <Layout>
- <Grid id="grd_narclist" class="datagrid2" taborder="0" binddataset="ds_main_narclist_narclist" useinputpanel="false" position="absolute 0 0 1211 506" cellclickbound="cell" selecttype="multirow" anchor="all" cellsizingtype="col" onkeyup="switch1_grd_onkeyup" oncelldblclick="switch1_case1_grd_narclist_oncelldblclick" onrbuttonup="switch1_case1_grd_narclist_onrbuttonup" cellsizebandtype="allband" autoenter="key" onheadclick="switch1_case1_grd_narclist_onheadclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30" band="left"/>
- <Column size="20" band="left"/>
- <Column size="56" band="left"/>
- <Column size="33" band="left"/>
- <Column size="54" band="left"/>
- <Column size="55" band="left"/>
- <Column size="67" band="left"/>
- <Column size="50" band="left"/>
- <Column size="50" band="left"/>
- <Column size="70" band="left"/>
- <Column size="40" band="left"/>
- <Column size="62" band="left"/>
- <Column size="50" band="left"/>
- <Column size="74"/>
- <Column size="150"/>
- <Column size="28"/>
- <Column size="30"/>
- <Column size="36"/>
- <Column size="29"/>
- <Column size="35"/>
- <Column size="31"/>
- <Column size="40"/>
- <Column size="28"/>
- <Column size="40"/>
- <Column size="29"/>
- <Column size="28"/>
- <Column size="32"/>
- <Column size="28"/>
- <Column size="28"/>
- <Column size="29"/>
- <Column size="32"/>
- <Column size="35"/>
- <Column size="8"/>
- <Column size="70"/>
- <Column size="8"/>
- <Column size="80"/>
- <Column size="70"/>
- <Column size="8"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="9"/>
- <Column size="70"/>
- <Column size="9"/>
- <Column size="70"/>
- <Column size="9"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="7"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="7"/>
- <Column size="85"/>
- <Column size="7"/>
- <Column size="85"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="30" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
- <Cell col="2" text="불출상태" wordwrap="char"/>
- <Cell col="3" text="처방 상태" wordwrap="char"/>
- <Cell col="4" text="반환상태" wordwrap="char"/>
- <Cell col="5" text="반납상태" wordwrap="char"/>
- <Cell col="6" text="처방일자" wordwrap="char"/>
- <Cell col="7" text="투약번호" wordwrap="char"/>
- <Cell col="8" text="처방구분" wordwrap="char"/>
- <Cell col="9" text="수행부서" wordwrap="char"/>
- <Cell col="10" text="병실" wordwrap="char"/>
- <Cell col="11" text="환자번호" wordwrap="char"/>
- <Cell col="12" text="환자명" wordwrap="char"/>
- <Cell col="13" text="약품코드" wordwrap="char"/>
- <Cell col="14" text="약품명" wordwrap="char"/>
- <Cell col="15" colspan="2" text="총량" wordwrap="char" taborder="undefined"/>
- <Cell col="17" colspan="2" text="일수량" wordwrap="char" taborder="undefined"/>
- <Cell col="19" colspan="2" text="1회수량" wordwrap="char" taborder="undefined"/>
- <Cell col="21" colspan="2" text="일용량" wordwrap="char" taborder="undefined"/>
- <Cell col="23" colspan="2" text="1회용량" wordwrap="char" taborder="undefined"/>
- <Cell col="25" text="횟수" wordwrap="char"/>
- <Cell col="26" colspan="2" text="잔량" wordwrap="char" taborder="undefined"/>
- <Cell col="28" colspan="2" text="반환횟수" wordwrap="char" taborder="undefined"/>
- <Cell col="30" colspan="2" text="반환수량" wordwrap="char" taborder="undefined"/>
- <Cell col="32" style="align:left;padding:0 0 0 8;" text="불출신청일자" wordwrap="char"/>
- <Cell col="33" text="불출 신청자" wordwrap="char"/>
- <Cell col="34" style="align:left;padding:0 0 0 8;" text="조제일시" wordwrap="char"/>
- <Cell col="35" text="출고부서"/>
- <Cell col="36" text="조제 약사" wordwrap="char"/>
- <Cell col="37" style="align:left;padding:0 0 0 8;" text="투약일시" wordwrap="char"/>
- <Cell col="38" text="투약 약사" wordwrap="char"/>
- <Cell col="39" text="수령일시" wordwrap="char"/>
- <Cell col="40" text="수령 담당자" wordwrap="char"/>
- <Cell col="41" style="align:left;padding:0 0 0 8;" text="병동수령일시" wordwrap="char"/>
- <Cell col="42" text="부서확인 간호사" wordwrap="char"/>
- <Cell col="43" style="align:left;padding:0 0 0 8;" text="간호투약일시" wordwrap="char"/>
- <Cell col="44" text="간호투약 간호사" wordwrap="char"/>
- <Cell col="45" style="align:left;padding:0 0 0 8;" text="반환신청일시" wordwrap="char"/>
- <Cell col="46" text="반환신청 간호사" wordwrap="char"/>
- <Cell col="47" text="반환일시" wordwrap="char"/>
- <Cell col="48" text="반환 담당자" wordwrap="char"/>
- <Cell col="49" style="align:left;padding:0 0 0 8;" text="반환확인일시" wordwrap="char"/>
- <Cell col="50" text="반환확인 약사" wordwrap="char"/>
- <Cell col="51" text="반환사유" wordwrap="char"/>
- <Cell col="52" style="align:left;padding:0 0 0 8;" text="잔량반납 신청일시" wordwrap="char"/>
- <Cell col="53" text="잔량반납신청 간호사" wordwrap="char"/>
- <Cell col="54" style="align:left;padding:0 0 0 8;" text="잔량반납 확인일시" wordwrap="char"/>
- <Cell col="55" text="잔량반납확인 약사" wordwrap="char"/>
- <Cell col="56" text="prcpno"/>
- <Cell col="57" text="prcphistno"/>
- <Cell col="58" text="drugdd"/>
- <Cell col="59" text="drugno"/>
- <Cell col="60" text="ioflag"/>
- <Cell col="61" text="instcd"/>
- <Cell col="62" text="narcflag"/>
- <Cell col="63" text="prntflag"/>
- <Cell col="64" text="orddd"/>
- <Cell col="65" text="orddeptcd"/>
- <Cell col="66" text="prcpgenrflag"/>
- <Cell col="67" text="prntdt"/>
- <Cell col="68" text="caption1"/>
- <Cell col="69" text="반납반환 표시여부"/>
- <Cell col="70" text="투약기록 완료여부"/>
- <Cell col="71" text="간호 실시횟수"/>
- <Cell col="72" text="간호 반환횟수"/>
- <Cell col="73" text="투약x반환불가 횟수"/>
- <Cell col="74"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="expr:utlf_isNull(getColumn(currow, 'narcstat')) || getColumn(currow, 'narcstat') == '1' ? 'none' : 'checkbox'" style="background2:#f0f0f0ff;controlbackground:EXPR(utlf_isNull(getColumn(currow, 'narcstat')) || getColumn(currow, 'narcstat') == '1' ? 'silver' : '');controlborder:EXPR(utlf_isNull(getColumn(currow, 'narcstat')) || getColumn(currow, 'narcstat') == '1' ? '1 solid #708090cc' : ''));" text="bind:sel" expr="expr:(sel=="Y"||sel==1)?1:0"/>
- <Cell col="2" displaytype="combo" edittype="combo" style="align:left top;padding:4 2 3 2;background2:#f0f0f0ff;" text="bind:narcstat" wordwrap="char" combodataset="ds_cmb_narcstat" combocodecol="value" combodatacol="label" autosizerow="limitmin"/>
- <Cell col="3" style="align:center top;padding:4 2 3 2;background2:#f0f0f0ff;" text="bind:prcphistcd" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="4" displaytype="combo" edittype="combo" style="align:left top;padding:4 2 3 2;background2:#f0f0f0ff;" text="bind:cnclstat" wordwrap="char" combodataset="ds_cmb_cnclstat" combocodecol="value" combodatacol="label" autosizerow="limitmin"/>
- <Cell col="5" displaytype="combo" edittype="combo" style="align:left top;padding:4 2 3 2;background2:#f0f0f0ff;" text="bind:rtnstat" wordwrap="char" combodataset="ds_cmb_rtnstat" combocodecol="value" combodatacol="label" autosizerow="limitmin"/>
- <Cell col="6" style="align:left top;padding:4 2 3 2;background2:#f0f0f0ff;" text="bind:prcpdd" wordwrap="char" mask="expr:utlf_isNull(prcpdd) || prcpdd=='-' ? '' : '####/##/##'" autosizerow="limitmin"/>
- <Cell col="7" displaytype="text" style="align:center top;padding:4 2 3 2;background2:#f0f0f0ff;" text="bind:drugno" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="8" style="align:left top;padding:4 2 3 2;background2:#f0f0f0ff;" text="bind:prcpkindnm" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="9" style="align:left top;padding:4 2 3 2;background2:#f0f0f0ff;" text="bind:issdeptcdnm" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="10" style="align:left top;padding:4 2 3 2;background2:#f0f0f0ff;" text="bind:roomcd" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="11" style="align:left top;padding:4 2 3 2;background2:#f0f0f0ff;color:EXPR(dethyn == 'Y' ? '#0000ff' : '');font:EXPR(dethyn == 'Y' ? 'dotum,9,bold' : '');" text="bind:pid" wordwrap="char" tooltiptext="expr:dethyn == 'Y' ? '사망일자:' + dethdd : ''" autosizerow="limitmin"/>
- <Cell col="12" style="align:left top;padding:4 2 3 2;background2:#f0f0f0ff;color:EXPR(dethyn == 'Y' ? '#0000ff' : '');font:EXPR(dethyn == 'Y' ? 'dotum,9,bold' : '');" text="bind:patnm" wordwrap="char" tooltiptext="expr:dethyn == 'Y' ? '사망일자:' + dethdd : ''" autosizerow="limitmin"/>
- <Cell col="13" displaytype="text" style="align:left top;padding:4 2 3 2;background2:#f0f0f0ff;" text="bind:prcpcd" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="14" displaytype="text" style="align:left top;padding:4 2 1 2;background2:#f0f0f0ff;" text="bind:drugnm" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="15" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:totdrugqty"/>
- <Cell col="16" style="background2:#f0f0f0ff;" text="bind:prcpqtyunit"/>
- <Cell col="17" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:dayprcpqty"/>
- <Cell col="18" style="background2:#f0f0f0ff;" text="bind:dayprcpqtyunit"/>
- <Cell col="19" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:prcpqty2"/>
- <Cell col="20" style="background2:#f0f0f0ff;" text="bind:prcpqtyunit2"/>
- <Cell col="21" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:prcpvol"/>
- <Cell col="22" style="background2:#f0f0f0ff;" text="bind:prcpvolunit"/>
- <Cell col="23" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:prcpvol2"/>
- <Cell col="24" style="background2:#f0f0f0ff;" text="bind:prcpvolunit2"/>
- <Cell col="25" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:prcptims"/>
- <Cell col="26" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:spreqty"/>
- <Cell col="27" style="background2:#f0f0f0ff;" text="bind:prcpvolunit"/>
- <Cell col="28" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:rtnqty" mask="99999999999"/>
- <Cell col="29" style="background2:#f0f0f0ff;" text="bind:rtnunit"/>
- <Cell col="30" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:returnqty"/>
- <Cell col="31" style="background2:#f0f0f0ff;" text="bind:prcpqtyunit"/>
- <Cell col="32" style="background2:#f0f0f0ff;" text="bind:reqdt" mask="expr:utlf_isNull(reqdt) || reqdt=='-' ? '' : '####/##/## ##:##'"/>
- <Cell col="33" style="background2:#f0f0f0ff;" text="bind:reqidnm"/>
- <Cell col="34" style="background2:#f0f0f0ff;" text="bind:prcpdt" mask="expr:utlf_isNull(prcpdt) || prcpdt=='-' ? '' : '####/##/## ##:##'"/>
- <Cell col="35" displaytype="combo" style="background2:#f0f0f0ff;" text="bind:stocdeptcd" combodataset="ds_init_misdeptlist_deptlist" combocodecol="deptcd" combodatacol="deptnm"/>
- <Cell col="36" style="background2:#f0f0f0ff;" text="bind:prcpidnm"/>
- <Cell col="37" style="background2:#f0f0f0ff;" text="bind:drugdt" mask="expr:utlf_isNull(drugdt) || drugdt=='-' ? '' : '####/##/## ##:##'"/>
- <Cell col="38" style="background2:#f0f0f0ff;" text="bind:drugidnm"/>
- <Cell col="39" style="background2:#f0f0f0ff;" text="bind:delivedt" mask="expr:utlf_isNull(delivedt) || delivedt=='-' ? '' : '####/##/##'"/>
- <Cell col="40" style="background2:#f0f0f0ff;" text="bind:deliveidnm"/>
- <Cell col="41" style="background2:#f0f0f0ff;" text="bind:acptdt" mask="expr:utlf_isNull(acptdt) || acptdt=='-' ? '' : '####/##/## ##:##'"/>
- <Cell col="42" style="background2:#f0f0f0ff;" text="bind:acptidnm"/>
- <Cell col="43" style="background2:#f0f0f0ff;" text="bind:nrexecdt" mask="expr:utlf_isNull(nrexecdt) || nrexecdt=='-' ? '' : '####/##/## ##:##'"/>
- <Cell col="44" style="background2:#f0f0f0ff;" text="bind:nrexecridnm"/>
- <Cell col="45" style="background2:#f0f0f0ff;" text="bind:rtnappdt" mask="expr:utlf_isNull(rtnappdt) || rtnappdt=='-' ? '' : '####/##/## ##:##'"/>
- <Cell col="46" style="background2:#f0f0f0ff;" text="bind:rtnappidnm"/>
- <Cell col="47" style="background2:#f0f0f0ff;" text="bind:rtndt" mask="expr:utlf_isNull(rtndt) || rtndt=='-' ? '' : '####/##/##''"/>
- <Cell col="48" style="background2:#f0f0f0ff;" text="bind:rtnidnm"/>
- <Cell col="49" style="background2:#f0f0f0ff;" text="bind:rtncnfmdt" mask="expr:utlf_isNull(rtncnfmdt) || rtncnfmdt=='-' ? '' : '####/##/## ##:##'"/>
- <Cell col="50" style="background2:#f0f0f0ff;" text="bind:rtncnfmidnm"/>
- <Cell col="51" displaytype="text" style="background2:#f0f0f0ff;" text="bind:rtnresn"/>
- <Cell col="52" style="background2:#f0f0f0ff;" text="bind:spredt" mask="expr:utlf_isNull(spredt) || spredt=='-' ? '' : '####/##/## ##:##'"/>
- <Cell col="53" style="background2:#f0f0f0ff;" text="bind:spreidnm"/>
- <Cell col="54" style="background2:#f0f0f0ff;" text="bind:sprecnfmdt" mask="expr:utlf_isNull(sprecnfmdt) || sprecnfmdt=='-' ? '' : '####/##/## ##:##'"/>
- <Cell col="55" style="background2:#f0f0f0ff;" text="bind:sprecnfmidnm"/>
- <Cell col="56" text="bind:prcpno"/>
- <Cell col="57" text="bind:prcphistno"/>
- <Cell col="58" text="bind:drugdd"/>
- <Cell col="59" text="bind:drugno"/>
- <Cell col="60" text="bind:ioflag"/>
- <Cell col="61" text="bind:instcd"/>
- <Cell col="62" text="bind:narcflag"/>
- <Cell col="63" text="bind:prntflag"/>
- <Cell col="64" text="bind:orddd"/>
- <Cell col="65" text="bind:orddeptcd"/>
- <Cell col="66" text="bind:prcpgenrflag"/>
- <Cell col="67" text="bind:prntdt"/>
- <Cell col="68" text="bind:presqty2"/>
- <Cell col="69" text="bind:statvisible"/>
- <Cell col="70" text="bind:medrendyn"/>
- <Cell col="71" text="bind:medrqty"/>
- <Cell col="72" text="bind:medrtims"/>
- <Cell col="73" text="bind:medrx"/>
- <Cell col="74" text="bind:drugseqno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case2">
- <Layouts>
- <Layout>
- <Grid id="grd_sprelist" class="datagrid2" taborder="1" binddataset="ds_main_narclist_narclist" useinputpanel="false" position="absolute 0 0 1211 506" cellclickbound="cell" selecttype="multirow" anchor="all" cellsizingtype="col" onkeyup="switch1_grd_onkeyup" extendsizetype="row" autosizingtype="row" cellsizebandtype="allband">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30" band="left"/>
- <Column size="20" band="left"/>
- <Column size="60" band="left"/>
- <Column size="80" band="left"/>
- <Column size="65" band="left"/>
- <Column size="58" band="left"/>
- <Column size="90"/>
- <Column size="150"/>
- <Column size="50"/>
- <Column size="33"/>
- <Column size="34"/>
- <Column size="26"/>
- <Column size="50"/>
- <Column size="29"/>
- <Column size="34"/>
- <Column size="50"/>
- <Column size="34"/>
- <Column size="100"/>
- <Column size="65"/>
- <Column size="100"/>
- <Column size="62"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="30" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
- <Cell col="2" text="상태"/>
- <Cell col="3" text="처방일자"/>
- <Cell col="4" text="환자번호"/>
- <Cell col="5" text="환자명"/>
- <Cell col="6" text="약품코드"/>
- <Cell col="7" text="약품명"/>
- <Cell col="8" colspan="2" text="총량" taborder="undefined"/>
- <Cell col="10" colspan="2" text="일수량" taborder="undefined"/>
- <Cell col="12" colspan="2" text="일용량" taborder="undefined"/>
- <Cell col="14" text="횟수"/>
- <Cell col="15" colspan="2" text="잔량" taborder="undefined"/>
- <Cell col="17" text="반납신청일시"/>
- <Cell col="18" text="반납신청 담당자"/>
- <Cell col="19" text="반납확인일시"/>
- <Cell col="20" text="반납확인 담당자"/>
- <Cell col="21" text="prcpno"/>
- <Cell col="22" text="prcphistno"/>
- <Cell col="23" text="drugdd"/>
- <Cell col="24" text="drugno"/>
- <Cell col="25" text="ioflag"/>
- <Cell col="26" text="instcd"/>
- <Cell col="27" text="narcflag"/>
- <Cell col="28" text="prntflag"/>
- <Cell col="29" text="orddd"/>
- <Cell col="30" text="orddeptcd"/>
- <Cell col="31" text="prcpgenrflag"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="expr:utlf_isNull(getColumn(currow, 'narcstat')) || getColumn(currow, 'narcstat') == '1' ? 'none' : 'checkbox'" style="background2:#f0f0f0ff;controlbackground:EXPR(utlf_isNull(getColumn(currow, 'narcstat')) || getColumn(currow, 'narcstat') == '1' ? 'silver' : '');controlborder:EXPR(utlf_isNull(getColumn(currow, 'narcstat')) || getColumn(currow, 'narcstat') == '1' ? '1 solid #708090cc' : ''));" text="bind:sel" expr="expr:(sel=="Y"||sel==1)?1:0"/>
- <Cell col="2" displaytype="combo" edittype="combo" style="padding:3 2 3 2;background2:#f0f0f0ff;" text="bind:narcstat" wordwrap="char" combodataset="ds_cmb_narcstat2" combocodecol="value" combodatacol="label" autosizerow="limitmin"/>
- <Cell col="3" style="padding:3 2 3 2;background2:#f0f0f0ff;" text="bind:prcpdd" wordwrap="char" mask="expr:utlf_isNull(prcpdd) || prcpdd=='-' ? '' : '####/##/##'" autosizerow="limitmin"/>
- <Cell col="4" style="padding:3 2 3 2;background2:#f0f0f0ff;" text="bind:pid" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="5" style="padding:3 2 3 2;background2:#f0f0f0ff;" text="bind:patnm" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="6" displaytype="text" style="padding:3 2 3 2;background2:#f0f0f0ff;" text="bind:prcpcd" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="7" displaytype="text" style="padding:3 2 3 2;background2:#f0f0f0ff;" text="bind:drugnm" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="8" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:totdrugqty"/>
- <Cell col="9" style="background2:#f0f0f0ff;" text="bind:prcpqtyunit"/>
- <Cell col="10" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:dayprcpqty"/>
- <Cell col="11" style="background2:#f0f0f0ff;" text="bind:prcpqtyunit"/>
- <Cell col="12" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:prcpvol"/>
- <Cell col="13" style="background2:#f0f0f0ff;" text="bind:prcpvolunit"/>
- <Cell col="14" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:prcptims"/>
- <Cell col="15" style="align:right;padding:0 2 0 0;background2:#f0f0f0ff;" text="bind:spreqty"/>
- <Cell col="16" style="background2:#f0f0f0ff;" text="bind:prcpvolunit"/>
- <Cell col="17" style="background2:#f0f0f0ff;" text="bind:spredt" mask="expr:utlf_isNull(spredt) || spredt=='-' ? '' : '####/##/## ##:##'"/>
- <Cell col="18" style="background2:#f0f0f0ff;" text="bind:spreidnm"/>
- <Cell col="19" style="background2:#f0f0f0ff;" text="bind:sprecnfmdt" mask="expr:utlf_isNull(sprecnfmdt) || sprecnfmdt=='-' ? '' : '####/##/## ##:##'"/>
- <Cell col="20" style="background2:#f0f0f0ff;" text="bind:sprecnfmidnm"/>
- <Cell col="21" text="bind:prcpno"/>
- <Cell col="22" text="bind:prcphistno"/>
- <Cell col="23" text="bind:drugdd"/>
- <Cell col="24" text="bind:drugno"/>
- <Cell col="25" text="bind:ioflag"/>
- <Cell col="26" text="bind:instcd"/>
- <Cell col="27" text="bind:narcflag"/>
- <Cell col="28" text="bind:prntflag"/>
- <Cell col="29" text="bind:orddd"/>
- <Cell col="30" text="bind:orddeptcd"/>
- <Cell col="31" text="bind:prcpgenrflag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <ActiveX id="CommAX" position="absolute 270 155 315 200" progid="{B721F534-D025-466B-8A28-7CF40E700ACD}" useautobitmapcache="1" anchor="default" taborder="2" visible="false"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case3">
- <Layouts>
- <Layout>
- <Grid id="grd_outnarc" class="datagrid2" taborder="0" binddataset="ds_main_narclist_narclist" useinputpanel="false" position="absolute 0 0 1211 506" cellclickbound="cell" selecttype="multirow" anchor="all" cellsizingtype="col" onkeyup="switch1_grd_onkeyup" extendsizetype="row" autosizingtype="row" cellsizebandtype="allband" oncelldblclick="switch1_case3_grd_outnarc_oncelldblclick" onrbuttonup="switch1_case3_grd_outnarc_onrbuttonup" ontextchanged="switch1_case3_grd_outnarc_ontextchanged" autoenter="key" onheadclick="switch1_case3_grd_outnarc_onheadclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30" band="left"/>
- <Column size="20" band="left"/>
- <Column size="65" band="left"/>
- <Column size="40" band="left"/>
- <Column size="70" band="left"/>
- <Column size="70" band="left"/>
- <Column size="53" band="left"/>
- <Column size="50" band="left"/>
- <Column size="52" band="left"/>
- <Column size="70" band="left"/>
- <Column size="80" band="left"/>
- <Column size="65" band="left"/>
- <Column size="61" band="left"/>
- <Column size="90"/>
- <Column size="150"/>
- <Column size="40"/>
- <Column size="35"/>
- <Column size="40"/>
- <Column size="35"/>
- <Column size="40"/>
- <Column size="35"/>
- <Column size="40"/>
- <Column size="35"/>
- <Column size="40"/>
- <Column size="35"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="40"/>
- <Column size="35"/>
- <Column size="55"/>
- <Column size="35"/>
- <Column size="40"/>
- <Column size="35"/>
- <Column size="8"/>
- <Column size="70"/>
- <Column size="8"/>
- <Column size="80"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="8"/>
- <Column size="70"/>
- <Column size="7"/>
- <Column size="70"/>
- <Column size="10"/>
- <Column size="70"/>
- <Column size="10"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="6"/>
- <Column size="85"/>
- <Column size="7"/>
- <Column size="85"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="30" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
- <Cell col="2" text="불출상태" wordwrap="char"/>
- <Cell col="3" text="처방 상태" wordwrap="char"/>
- <Cell col="4" text="반환상태" wordwrap="char"/>
- <Cell col="5" text="반납상태" wordwrap="char"/>
- <Cell col="6" text="약품 구분" wordwrap="char"/>
- <Cell col="7" text="투약번호" wordwrap="char"/>
- <Cell col="8" text="처방구분" wordwrap="char"/>
- <Cell col="9" text="수행부서" wordwrap="char"/>
- <Cell col="10" text="처방일자" wordwrap="char"/>
- <Cell col="11" text="환자번호" wordwrap="char"/>
- <Cell col="12" text="환자명" wordwrap="char"/>
- <Cell col="13" text="약품코드" wordwrap="char"/>
- <Cell col="14" text="약품명" wordwrap="char"/>
- <Cell col="15" colspan="2" text="총량" wordwrap="char" taborder="undefined"/>
- <Cell col="17" colspan="2" text="일수량" wordwrap="char" taborder="undefined"/>
- <Cell col="19" colspan="2" text="1회수량" wordwrap="char" taborder="undefined"/>
- <Cell col="21" colspan="2" text="일용량" wordwrap="char" taborder="undefined"/>
- <Cell col="23" colspan="2" text="1회용량" wordwrap="char" taborder="undefined"/>
- <Cell col="25" text="횟수" wordwrap="char"/>
- <Cell col="26" text="일수" wordwrap="char"/>
- <Cell col="27" colspan="2" text="잔량" wordwrap="char" taborder="undefined"/>
- <Cell col="29" colspan="2" text="반환횟수" wordwrap="char" taborder="undefined"/>
- <Cell col="31" colspan="2" text="반환수량" wordwrap="char" taborder="undefined"/>
- <Cell col="33" style="align:left;padding:0 0 0 8;" text="불출신청일자" wordwrap="char"/>
- <Cell col="34" text="불출 신청자" wordwrap="char"/>
- <Cell col="35" style="align:left;padding:0 0 0 8;" text="조제일시" wordwrap="char"/>
- <Cell col="36" text="출고부서"/>
- <Cell col="37" text="조제약사" wordwrap="char"/>
- <Cell col="38" text="투약일시" wordwrap="char"/>
- <Cell col="39" text="투약약사" wordwrap="char"/>
- <Cell col="40" style="align:left;padding:0 0 0 8;" text="수령일시" wordwrap="char"/>
- <Cell col="41" text="수령 담당자" wordwrap="char"/>
- <Cell col="42" style="align:left;padding:0 0 0 8;" text="부서확인 일시" wordwrap="char"/>
- <Cell col="43" text="부서확인 간호사" wordwrap="char"/>
- <Cell col="44" style="align:left;padding:0 0 0 8;" text="반환신청일시" wordwrap="char"/>
- <Cell col="45" text="반환신청 간호사" wordwrap="char"/>
- <Cell col="46" style="align:left;padding:0 0 0 8;" text="반환확인일시" wordwrap="char"/>
- <Cell col="47" text="반환확인 약사" wordwrap="char"/>
- <Cell col="48" text="반환사유" wordwrap="char"/>
- <Cell col="49" style="align:left;padding:0 0 0 8;" text="반납신청 일시" wordwrap="char"/>
- <Cell col="50" text="잔량반납신청 간호사" wordwrap="char"/>
- <Cell col="51" style="align:left;padding:0 0 0 8;" text="반납확인 일시" wordwrap="char"/>
- <Cell col="52" text="잔량반납확인 약사" wordwrap="char"/>
- <Cell col="53" text="prcpno"/>
- <Cell col="54" text="prcphistno"/>
- <Cell col="55" text="drugdd"/>
- <Cell col="56" text="drugno"/>
- <Cell col="57" text="ioflag"/>
- <Cell col="58" text="instcd"/>
- <Cell col="59" text="narcflag"/>
- <Cell col="60" text="prntflag"/>
- <Cell col="61" text="orddd"/>
- <Cell col="62" text="orddeptcd"/>
- <Cell col="63" text="prcpgenrflag"/>
- <Cell col="64" text="drugkind"/>
- <Cell col="65" text="rtndrugtims"/>
- <Cell col="66" text="rtndrugdayno"/>
- <Cell col="67" text="rtnstocqty"/>
- <Cell col="68"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="expr:utlf_isNull(getColumn(currow, 'narcstat')) || getColumn(currow, 'narcstat') == '1' ? 'none' : 'checkbox'" style="background2:#f0f0f0ff;controlbackground:EXPR(utlf_isNull(getColumn(currow, 'narcstat')) || getColumn(currow, 'narcstat') == '1' ? 'silver' : '');controlborder:EXPR(utlf_isNull(getColumn(currow, 'narcstat')) || getColumn(currow, 'narcstat') == '1' ? '1 solid #708090cc' : ''));" text="bind:sel" expr="expr:(sel=="Y"||sel==1)?1:0"/>
- <Cell col="2" displaytype="combo" edittype="combo" style="align:left top;padding:4 2 1 2;background2:#f0f0f0ff;" text="bind:narcstat" wordwrap="char" combodataset="ds_cmb_narcstat2" combocodecol="value" combodatacol="label" autosizerow="limitmin"/>
- <Cell col="3" style="align:center top;padding:4 2 1 2;background2:#f0f0f0ff;" text="bind:prcphistcd" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="4" displaytype="combo" edittype="combo" style="align:left top;padding:4 2 1 2;background2:#f0f0f0ff;" text="bind:cnclstat" wordwrap="char" combodataset="ds_cmb_cnclstat" combocodecol="value" combodatacol="label" autosizerow="limitmin"/>
- <Cell col="5" displaytype="combo" edittype="combo" style="align:left top;padding:4 2 1 2;background2:#f0f0f0ff;" text="bind:rtnstat" wordwrap="char" combodataset="ds_cmb_rtnstat" combocodecol="value" combodatacol="label" autosizerow="limitmin"/>
- <Cell col="6" style="align:left top;padding:4 2 1 2;background2:#f0f0f0ff;" text="bind:drugkindnm" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="7" displaytype="text" style="align:center top;padding:4 2 1 2;background2:#f0f0f0ff;" text="bind:drugno" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="8" style="align:left top;padding:4 2 1 2;background2:#f0f0f0ff;" text="bind:prcpkindnm" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="9" style="align:left top;padding:4 2 1 2;background2:#f0f0f0ff;" text="bind:issdeptcdnm" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="10" style="align:left top;padding:4 2 1 2;background2:#f0f0f0ff;" text="bind:prcpdd" wordwrap="char" mask="expr:utlf_isNull(prcpdd) || prcpdd=='-' ? '' : '####/##/##'" autosizerow="limitmin"/>
- <Cell col="11" style="align:left top;padding:4 2 1 2;background2:#f0f0f0ff;" text="bind:pid" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="12" style="align:left top;padding:4 2 1 2;background2:#f0f0f0ff;" text="bind:patnm" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="13" displaytype="text" style="align:left top;padding:4 2 1 2;background2:#f0f0f0ff;" text="bind:prcpcd" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="14" displaytype="text" style="align:left top;padding:4 2 1 2;background2:#f0f0f0ff;" text="bind:drugnm" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="15" style="align:right;background2:#f0f0f0ff;" text="bind:totdrugqty"/>
- <Cell col="16" style="background2:#f0f0f0ff;" text="bind:prcpqtyunit"/>
- <Cell col="17" style="align:right;background2:#f0f0f0ff;" text="bind:dayprcpqty"/>
- <Cell col="18" style="background2:#f0f0f0ff;" text="bind:dayprcpqtyunit"/>
- <Cell col="19" style="align:right;background2:#f0f0f0ff;" text="bind:prcpqty2"/>
- <Cell col="20" style="background2:#f0f0f0ff;" text="bind:prcpqtyunit2"/>
- <Cell col="21" style="align:right;background2:#f0f0f0ff;" text="bind:prcpvol"/>
- <Cell col="22" style="background2:#f0f0f0ff;" text="bind:prcpvolunit"/>
- <Cell col="23" style="align:right;background2:#f0f0f0ff;" text="bind:prcpvol2"/>
- <Cell col="24" style="background2:#f0f0f0ff;" text="bind:prcpvolunit2"/>
- <Cell col="25" style="align:right;background2:#f0f0f0ff;" text="bind:prcptims"/>
- <Cell col="26" style="align:right;background2:#f0f0f0ff;" text="bind:prcpdayno"/>
- <Cell col="27" style="align:right;background2:#f0f0f0ff;" text="bind:spreqty"/>
- <Cell col="28" style="background2:#f0f0f0ff;" text="bind:prcpvolunit"/>
- <Cell col="29" displaytype="text" edittype="text" style="align:right;background:left middle;background2:#f0f0f0ff left middle;backgroundimage:URL('..\..\..\IMAGES\ast\ICON\icon_input.png');" class="gridinput" text="bind:rtnqty" editautoselect="true"/>
- <Cell col="30" style="background2:#f0f0f0ff;" text="bind:rtnunit"/>
- <Cell col="31" style="align:right;background2:#f0f0f0ff;" text="bind:returnqty"/>
- <Cell col="32" style="background2:#f0f0f0ff;" text="bind:prcpqtyunit"/>
- <Cell col="33" style="background2:#f0f0f0ff;" text="bind:reqdt" mask="expr:utlf_isNull(reqdt) || reqdt=='-' ? '' : '####/##/## ##:##'"/>
- <Cell col="34" style="background2:#f0f0f0ff;" text="bind:reqidnm"/>
- <Cell col="35" style="background2:#f0f0f0ff;" text="bind:prcpdt" mask="expr:utlf_isNull(prcpdt) || prcpdt=='-' ? '' : '####/##/## ##:##'"/>
- <Cell col="36" displaytype="combo" style="background2:#f0f0f0ff;" text="bind:stocdeptcd" combodataset="ds_init_misdeptlist_deptlist" combocodecol="deptcd" combodatacol="deptnm"/>
- <Cell col="37" style="background2:#f0f0f0ff;" text="bind:prcpidnm"/>
- <Cell col="38" style="background2:#f0f0f0ff;" text="bind:drugdt" mask="expr:utlf_isNull(drugdt) || drugdt=='-' ? '' : '####/##/## ##:##'"/>
- <Cell col="39" style="background2:#f0f0f0ff;" text="bind:drugidnm"/>
- <Cell col="40" style="background2:#f0f0f0ff;" text="bind:delivedt" mask="expr:utlf_isNull(delivedt) || delivedt=='-' ? '' : '####/##/## ##:##'"/>
- <Cell col="41" style="background2:#f0f0f0ff;" text="bind:deliveidnm"/>
- <Cell col="42" style="background2:#f0f0f0ff;" text="bind:acptdt" mask="expr:utlf_isNull(acptdt) || acptdt=='-' ? '' : '####/##/## ##:##'"/>
- <Cell col="43" style="background2:#f0f0f0ff;" text="bind:acptidnm"/>
- <Cell col="44" style="background2:#f0f0f0ff;" text="bind:rtnappdt" mask="expr:utlf_isNull(rtnappdt) || rtnappdt=='-' ? '' : '####/##/## ##:##'"/>
- <Cell col="45" style="background2:#f0f0f0ff;" text="bind:rtnappidnm"/>
- <Cell col="46" style="background2:#f0f0f0ff;" text="bind:rtncnfmdt" mask="expr:utlf_isNull(rtncnfmdt) || rtncnfmdt=='-' ? '' : '####/##/## ##:##'"/>
- <Cell col="47" style="background2:#f0f0f0ff;" text="bind:rtncnfmidnm"/>
- <Cell col="48" displaytype="text" style="background2:#f0f0f0ff;" text="bind:rtnresn"/>
- <Cell col="49" style="background2:#f0f0f0ff;" text="bind:spredt" mask="expr:utlf_isNull(spredt) || spredt=='-' ? '' : '####/##/## ##:##'"/>
- <Cell col="50" style="background2:#f0f0f0ff;" text="bind:spreidnm"/>
- <Cell col="51" style="background2:#f0f0f0ff;" text="bind:sprecnfmdt" mask="expr:utlf_isNull(sprecnfmdt) || sprecnfmdt=='-' ? '' : '####/##/## ##:##'"/>
- <Cell col="52" style="background2:#f0f0f0ff;" text="bind:sprecnfmidnm"/>
- <Cell col="53" text="bind:prcpno"/>
- <Cell col="54" text="bind:prcphistno"/>
- <Cell col="55" text="bind:drugdd"/>
- <Cell col="56" text="bind:drugno"/>
- <Cell col="57" text="bind:ioflag"/>
- <Cell col="58" text="bind:instcd"/>
- <Cell col="59" text="bind:narcflag"/>
- <Cell col="60" text="bind:prntflag"/>
- <Cell col="61" text="bind:orddd"/>
- <Cell col="62" text="bind:orddeptcd"/>
- <Cell col="63" text="bind:prcpgenrflag"/>
- <Cell col="64" text="bind:drugkind"/>
- <Cell col="65" text="bind:rtndrugtims"/>
- <Cell col="66" text="bind:rtndrugdayno"/>
- <Cell col="67" text="bind:rtnstocqty"/>
- <Cell col="68" text="bind:drugseqno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Button position="absolute 1131 759 1211 781" id="btn_excel" class="btn7" taborder="46" text="엑셀저장" anchor="right bottom" onclick="btn_excel_onclick"/>
- <Button position="absolute 1024 759 1128 781" id="button8" class="btn6" taborder="45" text="반환반납장부" anchor="right bottom" onclick="button8_onclick"/>
- <Button position="absolute 893 759 1021 781" id="button9" class="btn6" taborder="44" text="잔류마약폐기장부" anchor="right bottom" onclick="button9_onclick"/>
- <Button position="absolute 794 759 890 781" id="button1" class="btn6" taborder="43" text="불출확인서" anchor="right bottom" onclick="button1_onclick"/>
- <Div position="absolute 535 512 978 729" id="group5" visible="false" class="div_SA2">
- <Layouts>
- <Layout>
- <Grid position="absolute 6 7 436 182" id="datagrid2" visible="true" scrollbars="autoboth" binddataset="ds_main_detlprcplist_detlprcpinfo" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30" band="left"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="81"/>
- <Column size="71"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="121"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="90"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="구분"/>
- <Cell col="2" text="ioflag"/>
- <Cell col="3" text="처방번호"/>
- <Cell col="4" text="투약번호"/>
- <Cell col="5" text="병실"/>
- <Cell col="6" text="실시일자"/>
- <Cell col="7" text="실시시간"/>
- <Cell col="8" text="집계일시"/>
- <Cell col="9" text="집계부서"/>
- <Cell col="10" text="시행부서"/>
- <Cell col="11" text="발행부서"/>
- <Cell col="12" text="마감일시"/>
- <Cell col="13" text="출력일시"/>
- <Cell col="14" text="execrid"/>
- <Cell col="15" text="실시자"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" text="bind:ioflagnm"/>
- <Cell col="2" text="bind:ioflag"/>
- <Cell col="3" text="bind:prcpno"/>
- <Cell col="4" text="bind:drugno"/>
- <Cell col="5" text="bind:roomcd"/>
- <Cell col="6" text="bind:execdd" mask="expr:utlf_isNull(execdd) || execdd=='-' ? '' : '####-##-##'"/>
- <Cell col="7" text="bind:exectm" mask="expr:utlf_isNull(exectm) || exectm=='-' ? '' : '##:##'"/>
- <Cell col="8" text="bind:drugsumdt" mask="yyyy-mm-dd hh:nn:ss"/>
- <Cell col="9" text="bind:sumdeptnm"/>
- <Cell col="10" displaytype="text" text="bind:execdeptnm"/>
- <Cell col="11" text="bind:issdeptcdnm"/>
- <Cell col="12" text="bind:sumdt" mask="yyyy-mm-dd hh:nn:ss"/>
- <Cell col="13" text="bind:prntdt" mask="yyyy-mm-dd hh:nn:ss"/>
- <Cell col="14" text="bind:execrid"/>
- <Cell col="15" displaytype="text" text="bind:execrnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 380 188 436 210" id="button10" class="btn4" text="닫기" anchor="default" onclick="group5_button10_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption19" text="마약/향정약 처방관리(Ver 1230)" class="tit_1" position="absolute 0 0 240 25"/>
- <Div id="group2" taborder="47" position="absolute 0 24 1211 216" anchor="left top right" onkeyup="group_onkeyup">
- <Layouts>
- <Layout>
- <Shape id="roundrect2" type="roundrectangle" position="absolute 781 1 1211 192" anchor="all"/>
- <Edit id="input8" taborder="0" class="input_search" position="absolute 92 139 192 158" anchor="default" style="font:Dotum,9,bold;" onkeydown="group2_input8_onkeydown" autoselect="true"/>
- <Edit id="input9" taborder="1" class="input_search" enable="false" position="absolute 92 166 217 185" anchor="default" style="font:Dotum,9,bold;" onkeydown="group2_input9_onkeydown" autoselect="true"/>
- <Static id="caption1" text="마약구분 :" class="search_name" visible="false" position="absolute 475 61 561 78" anchor="default"/>
- <Shape id="line13" class="line_4" position="absolute 697 5 703 100" anchor="default" linetype="vertical"/>
- <Static id="caption2" text="환자번호 :" class="search_name" position="absolute 10 140 96 157" anchor="default"/>
- <Combo id="combo2" taborder="2" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_essential" position="absolute 92 7 211 26" anchor="default" style="font:Dotum,9,bold;" onitemchanged="group2_combo2_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">처방일자</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">적용일자</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">불출신청일자</Col>
- </Row>
- <Row>
- <Col id="codecolumn">4</Col>
- <Col id="datacolumn">실시일자</Col>
- </Row>
- <Row>
- <Col id="codecolumn">5</Col>
- <Col id="datacolumn">반환저장일자</Col>
- </Row>
- <Row>
- <Col id="codecolumn">6</Col>
- <Col id="datacolumn">잔량저장일자</Col>
- </Row>
- <Row>
- <Col id="codecolumn">7</Col>
- <Col id="datacolumn">불출일자</Col>
- </Row>
- <Row>
- <Col id="codecolumn">8</Col>
- <Col id="datacolumn">조제일자</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Button id="button61" taborder="3" class="icon_search" position="absolute 197 140 213 156" anchor="default" onclick="group2_button61_onclick"/>
- <Static id="caption3" text="마약종류 :" class="search_name" position="absolute 793 10 879 27" anchor="default"/>
- <Static id="caption4" text="~" position="absolute 335 7 348 27" anchor="default"/>
- <Radio id="radio1" taborder="4" columncount="3" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" visible="false" position="absolute 550 58 685 78" anchor="default" style="font:Dotum,9,bold;">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">T</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">마약</Col>
- </Row>
- <Row>
- <Col id="codecolumn">P</Col>
- <Col id="datacolumn">향정</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Shape id="line1" linetype="horizontal" class="line_2" position="absolute 5 159 766 165" anchor="default"/>
- <Radio id="radio2" taborder="5" columncount="3" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 92 32 247 52" anchor="default" style="font:Dotum,9,bold;">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">T</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">D</Col>
- <Col id="datacolumn">약</Col>
- </Row>
- <Row>
- <Col id="codecolumn">I</Col>
- <Col id="datacolumn">주사</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption6" text="병동 :" class="search_name" position="absolute 230 140 300 157" anchor="default"/>
- <Radio id="radio3" taborder="6" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 92 59 722 79" anchor="default" index="-1" style="textpadding:0 3 0 3;font:Dotum,9,bold;" onitemchanged="group2_radio3_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">T</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">미신청</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">불출신청</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">출력완료</Col>
- </Row>
- <Row>
- <Col id="codecolumn">4</Col>
- <Col id="datacolumn">조제완료</Col>
- </Row>
- <Row>
- <Col id="codecolumn">5</Col>
- <Col id="datacolumn">불출</Col>
- </Row>
- <Row>
- <Col id="codecolumn">6</Col>
- <Col id="datacolumn">부서확인</Col>
- </Row>
- <Row>
- <Col id="codecolumn">7</Col>
- <Col id="datacolumn">실 불출신청</Col>
- </Row>
- <Row>
- <Col id="codecolumn">8</Col>
- <Col id="datacolumn">재출력</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Shape id="line3" linetype="horizontal" class="line_2" position="absolute 5 105 766 111" anchor="default"/>
- <Static id="caption7" text="바코드 :" class="search_name" position="absolute 10 167 98 184" anchor="default"/>
- <Calendar id="ipt_lastdd" taborder="8" class="input_search" position="absolute 350 7 450 26" anchor="default" style="font:Dotum,9,bold;" autoselect="true" dateformat="yyyy-MM-dd"/>
- <Shape id="line4" linetype="horizontal" class="line_2" position="absolute 5 52 694 58" anchor="default"/>
- <Shape id="line5" linetype="horizontal" class="line_2" position="absolute 5 27 694 33" anchor="default"/>
- <Static id="caption9" text="조회구간 :" class="search_name" position="absolute 10 8 96 25" anchor="default"/>
- <Calendar id="ipt_fstdd" taborder="7" class="input_search" position="absolute 232 7 332 26" anchor="default" style="font:Dotum,9,bold;" autoselect="true" dateformat="yyyy-MM-dd" value="null"/>
- <Grid id="datagrid1" taborder="9" binddataset="ds_temp_srchcond_narclist" useinputpanel="false" position="absolute 788 33 1204 153" anchor="all" selecttype="multirow" cellclickbound="cell" cellsizingtype="col" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30" band="left"/>
- <Column size="46"/>
- <Column size="220"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" style="font:Dotum,9,bold;" text="선택"/>
- <Cell col="2" style="font:Dotum,9,bold;" text="명칭"/>
- <Cell col="3" style="font:Dotum,9,bold;" text="코드"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" style="font:Dotum,9,bold;" text="expr:currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" style="background2:#f0f0f0ff;" text="bind:sel" expr="expr:(sel=="Y"||sel==1)?1:0"/>
- <Cell col="2" displaytype="text" style="background2:#f0f0f0ff;font:Dotum,10,bold;" text="bind:narcnm"/>
- <Cell col="3" displaytype="text" style="background2:#f0f0f0ff;font:Dotum,10,bold;" text="bind:narccd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_sea" taborder="10" text="조회" class="btn1" position="absolute 705 35 761 57" anchor="default" onclick="group2_btn_sea_onclick"/>
- <Combo id="cmb_ward" taborder="11" innerdataset="@ds_temp_srchcond_ward" codecolumn="wardcd" datacolumn="wardnm" position="absolute 290 139 390 158" anchor="default" style="font:Dotum,9,bold;"/>
- <Static id="caption5" text="조회구분 :" class="search_name" position="absolute 10 34 96 51" anchor="default"/>
- <Static id="caption8" text="담당자 :" class="search_name" position="absolute 480 167 568 184" anchor="default"/>
- <Edit id="opt_usernm" taborder="12" readonly="true" class="output" position="absolute 675 166 755 185" anchor="default" style="font:Dotum,9,bold;" autoselect="true"/>
- <Edit id="ipt_srchid" taborder="13" class="input_search" position="absolute 565 166 665 185" anchor="default" style="font:Dotum,9,bold;" onkeydown="group2_ipt_srchid_onkeydown" autoselect="true"/>
- <Radio id="rdo_drugflag" taborder="14" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 432 32 597 52" anchor="default" index="-1" style="textpadding:0 5 0 3;font:Dotum,9,bold;" onitemchanged="group2_rdo_drugflag_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">I</Col>
- <Col id="datacolumn">병동</Col>
- </Row>
- <Row>
- <Col id="codecolumn">L</Col>
- <Col id="datacolumn">퇴원/외박/외출</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption10" text="투약번호 :" class="search_name" position="absolute 395 140 481 157" anchor="default"/>
- <MaskEdit id="input2" taborder="15" mask="99999" class="input_search" position="absolute 480 139 545 158" anchor="default" style="font:Dotum,9,bold;" onkeydown="group2_input2_onkeydown" autoselect="true"/>
- <Radio id="radio4" taborder="16" columncount="3" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 879 7 1022 27" anchor="default" style="font:Dotum,9,bold;" onitemchanged="group2_radio4_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">M</Col>
- <Col id="datacolumn">마약</Col>
- </Row>
- <Row>
- <Col id="codecolumn">H</Col>
- <Col id="datacolumn">향정</Col>
- </Row>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption12" text="수행부서 :" class="search_name" position="absolute 550 140 640 157" anchor="default"/>
- <Combo id="combo3" taborder="17" innerdataset="@ds_temp_drugdeptinfo_dept" codecolumn="deptcd" datacolumn="deptnm" position="absolute 640 139 760 158" columncount="2" anchor="default" style="font:Dotum,9,bold;"/>
- <Radio id="radio5" taborder="18" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 276 32 429 52" anchor="default" style="font:Dotum,9,bold;" onitemchanged="group2_radio5_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn"/>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">O</Col>
- <Col id="datacolumn">외래</Col>
- </Row>
- <Row>
- <Col id="codecolumn">I</Col>
- <Col id="datacolumn">병동</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Edit id="input1" taborder="19" class="input_search" position="absolute 335 166 460 185" anchor="default" style="font:Dotum,9,bold;" onkeydown="group2_input1_onkeydown" autoselect="true"/>
- <Static id="caption11" text="잔량확인 :" class="search_name" position="absolute 240 167 328 184" anchor="default"/>
- <Tab id="switch2" taborder="20" tabindex="0" class="tab_Normal" position="absolute 5 99 776 137" anchor="default">
- <Tabpages>
- <Tabpage id="case4">
- <Layouts>
- <Layout>
- <Radio id="rdo_cncl" taborder="16" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 90 1 434 21" anchor="default" index="-1" style="textpadding:0 2 0 2;font:Dotum,9,bold;">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">T</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">0</Col>
- <Col id="datacolumn">반환대상</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">반환신청</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">반환확인</Col>
- </Row>
- <Row>
- <Col id="codecolumn">7</Col>
- <Col id="datacolumn">반환종료</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <CheckBox id="checkbox1" taborder="17" position="absolute 3 1 89 21" anchor="default" text="반환대상만" style="font:Dotum,9,bold;" truevalue="Y" onclick="group2_switch2_case4_checkbox1_onclick"/>
- <CheckBox id="checkbox3" taborder="18" position="absolute 424 1 512 21" anchor="default" text="반납대상만" style="font:Dotum,9,bold;" truevalue="Y" onclick="group2_switch2_case4_checkbox3_onclick"/>
- <Radio id="rdo_rtn" taborder="19" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 512 1 770 21" anchor="default" style="textpadding:0 2 0 2;font:Dotum,9,bold;">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">T</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">0</Col>
- <Col id="datacolumn">잔량대상</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">잔량신청</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">잔량확인</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case5">
- <Layouts>
- <Layout>
- <CheckBox id="checkbox5" taborder="1" position="absolute 3 1 91 21" anchor="default" text="반환대상만" style="font:Dotum,9,bold;" onclick="group2_switch2_case5_checkbox5_onclick" truevalue="Y"/>
- <CheckBox id="checkbox6" taborder="2" position="absolute 374 1 462 21" anchor="default" text="반납대상만" style="font:Dotum,9,bold;" onclick="group2_switch2_case5_checkbox6_onclick" truevalue="Y"/>
- <CheckBox id="checkbox7" taborder="3" position="absolute 674 1 754 21" anchor="default" text="미불출만" style="font:Dotum,9,bold;" onclick="group2_switch2_case5_checkbox7_onclick" truevalue="Y"/>
- <Radio id="radio6" taborder="4" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 90 1 364 21" anchor="default" index="-1" style="textpadding:0 5 0 3;font:Dotum,9,bold;">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">T</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">반환신청</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">반환확인</Col>
- </Row>
- <Row>
- <Col id="codecolumn">7</Col>
- <Col id="datacolumn">반환종료</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Radio id="radio7" taborder="5" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 467 1 668 21" anchor="default" index="-1" style="textpadding:0 5 0 3;font:Dotum,9,bold;">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">T</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">잔량신청</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">잔량확인</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Static id="caption13" text="실출고부서" position="absolute 460 7 530 27" anchor="default" style="color:red;font:Dotum,9,bold;"/>
- <Combo id="combo1" taborder="21" innerdataset="@ds_init_misdeptlist_deptlist" codecolumn="deptcd" datacolumn="deptnm" position="absolute 534 7 665 26" anchor="default" style="font:Dotum,9,bold;"/>
- <Static id="caption14" text="처방구분 :" class="search_name" position="absolute 10 85 96 102" anchor="default"/>
- <CheckBox id="checkbox8" taborder="23" position="absolute 92 86 137 101" anchor="default" text="전체" style="font:Dotum,9,bold;" truevalue="Y" onclick="group2_checkbox8_onclick"/>
- <Div id="grp_prntdt" taborder="24" visible="false" position="absolute 624 80 1146 107" anchor="default">
- <Layouts>
- <Layout>
- <Shape id="roundrect3" type="roundrectangle" position="absolute 0 0 516 25" anchor="default"/>
- <Static id="caption15" text="출력시간 :" class="search_name" position="absolute 7 5 96 22" anchor="default"/>
- <Combo id="cmb_prntdt" taborder="1" innerdataset="ds_temp_prntdt_item" codecolumn="wardnm" datacolumn="wardnm" position="absolute 95 3 510 22" columncount="1" anchor="default" style="font:Dotum,9,bold;" onitemchanged="group2_grp_prntdt_cmb_prntdt_onitemchanged"/>
- </Layout>
- </Layouts>
- </Div>
- <cp_checkboxList id="checkbox2" titletext="CheckBox List" taborder="25" text="cp_checkboxList01" scrollbars="none" visible="false" position="absolute 1042 7 1182 30" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
- <cp_checkboxList id="chk_prcpkind" titletext="CheckBox List" taborder="26" text="cp_checkboxList00" scrollbars="none" position="absolute 149 83 401 106" style="background:transparent;font:Dotum,9,bold;" col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
- <Shape id="line00" class="line_2" position="absolute 87 77 696 83"/>
- <CheckBox id="chk_auto" taborder="22" position="absolute 710 59 755 79" anchor="default" text="자동" style="font:Dotum,9,bold;" onclick="group2_chk_auto_onclick" truevalue="Y"/>
- <Static id="cap_automess" text="자동 출력중!!" position="absolute 797 164 1136 186" style="color:red;font:Dotum,15,bold;"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="group4" taborder="48" position="absolute 0 216 1211 243" anchor="left top right" onkeyup="group_onkeyup">
- <Layouts>
- <Layout>
- <Button id="btn_rtn" taborder="43" text="반환확인" class="btn4" position="absolute 882 5 962 27" anchor="top right" onclick="group4_btn_rtn_onclick"/>
- <Button id="btn_prt" taborder="44" text="일괄처리" class="btn3" position="absolute 0 5 84 27" anchor="default" onclick="group4_btn_prt_onclick"/>
- <Button id="btn_drugcncl" taborder="45" text="불출취소" class="btn4" visible="false" position="absolute 799 5 879 27" anchor="top right"/>
- <Button id="btn_spre" taborder="46" text="잔량확인" class="btn4" position="absolute 1048 5 1128 27" anchor="top right" onclick="group4_btn_spre_onclick"/>
- <Button id="btn_prcpcncl" taborder="47" text="조제취소" class="btn4" visible="false" position="absolute 627 5 707 27" anchor="top right"/>
- <Button id="btn_prcp" taborder="48" text="조제확인" class="btn4" visible="false" position="absolute 681 5 761 27" anchor="top right" onclick="group4_btn_prcp_onclick"/>
- <Button id="button7" taborder="49" text="라벨재출력" class="btn6" position="absolute 194 5 286 27" anchor="default" onclick="group4_button7_onclick"/>
- <CheckBox id="checkbox4" taborder="50" position="absolute 554 11 629 26" anchor="default" text="라벨생략" truevalue="Y" onclick="group4_checkbox4_onclick"/>
- <Button id="button5" taborder="51" text="바코드불출" class="btn3" position="absolute 289 5 381 27" anchor="default" onclick="group4_button5_onclick"/>
- <Button id="btn_prnt" taborder="52" text="프린터설정" class="btn3" position="absolute 384 5 476 27" anchor="default" onclick="group4_btn_prnt_onclick"/>
- <Button id="btn_sprecncl" taborder="53" text="잔량취소" class="btn4" position="absolute 1131 5 1211 27" anchor="top right" onclick="group4_btn_sprecncl_onclick"/>
- <Button id="btn_rtncncl" taborder="54" text="반환취소" class="btn4" position="absolute 965 5 1045 27" anchor="top right" onclick="group4_btn_rtncncl_onclick"/>
- <CheckBox id="chk_all" taborder="55" enable="false" position="absolute 480 11 552 26" anchor="default" text="일괄처리" truevalue="Y" onclick="group4_chk_all_onclick"/>
- <Button id="button2" taborder="56" text="처방전재출력" class="btn6" position="absolute 87 5 191 27" anchor="default" onclick="group4_button2_onclick"/>
- <Button id="btn_drug" taborder="57" text="불출확인" class="btn4" visible="false" position="absolute 773 5 853 27" anchor="top right" onclick="group4_btn_drug_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <CheckBox id="chk_grdAll" taborder="51" value="N" truevalue="Y" falsevalue="N" onclick="chk_grdAll_onclick" position="absolute 32 253 48 273"/>
- <Button id="Button00" taborder="52" text="통합마약불출점검" position="absolute 1 759 133 781" onclick="Button00_onclick" anchor="left bottom" class="btn3"/>
- <Button id="Button02" taborder="53" text="일반마약불출" position="absolute 136 759 240 781" anchor="left bottom" onclick="Button02_onclick" class="btn3"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_temp_chkcashinfo_narclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_temp_srchcond_narclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_temp_srchcond_narclist_oncolumnchanged">
- <ColumnInfo>
- <Column id="sel" type="STRING" size="256"/>
- <Column id="narcnm" type="STRING" size="256"/>
- <Column id="narccd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="sel"/>
- <Col id="narcnm"/>
- <Col id="narccd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="drugdeptinfo" type="STRING" size="256"/>
- <Column id="reprnt" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_hosp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="hosp" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="hosp"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_userinfo_userinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- <Column id="userdeptcd" type="STRING" size="256"/>
- <Column id="userdeptnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="userid"/>
- <Col id="usernm"/>
- <Col id="userdeptcd"/>
- <Col id="userdeptnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_narclist_narclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_narclist_narclist_oncolumnchanged">
- <ColumnInfo>
- <Column id="sel" type="STRING" size="256"/>
- <Column id="prcpdd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="patnm" type="STRING" size="256"/>
- <Column id="issdeptcdnm" type="STRING" size="256"/>
- <Column id="roomcd" type="STRING" size="256"/>
- <Column id="prcpcd" type="STRING" size="256"/>
- <Column id="drugnm" type="STRING" size="256"/>
- <Column id="totdrugqty" type="STRING" size="256"/>
- <Column id="dayprcpqty" type="STRING" size="256"/>
- <Column id="prcpqty" type="STRING" size="256"/>
- <Column id="prcpqtyunit" type="STRING" size="256"/>
- <Column id="prcptims" type="STRING" size="256"/>
- <Column id="prcpdayno" type="STRING" size="256"/>
- <Column id="rtnqty" type="STRING" size="256"/>
- <Column id="returnqty" type="STRING" size="256"/>
- <Column id="rtnunit" type="STRING" size="256"/>
- <Column id="prcpdt" type="STRING" size="256"/>
- <Column id="prcpidnm" type="STRING" size="256"/>
- <Column id="drugdt" type="STRING" size="256"/>
- <Column id="drugidnm" type="STRING" size="256"/>
- <Column id="delivedt" type="STRING" size="256"/>
- <Column id="deliveidnm" type="STRING" size="256"/>
- <Column id="acptdt" type="STRING" size="256"/>
- <Column id="acptidnm" type="STRING" size="256"/>
- <Column id="rtnappdt" type="STRING" size="256"/>
- <Column id="rtnappidnm" type="STRING" size="256"/>
- <Column id="rtndt" type="STRING" size="256"/>
- <Column id="rtnidnm" type="STRING" size="256"/>
- <Column id="rtncnfmdt" type="STRING" size="256"/>
- <Column id="rtncnfmidnm" type="STRING" size="256"/>
- <Column id="rtnresn" type="STRING" size="256"/>
- <Column id="spreqty" type="STRING" size="256"/>
- <Column id="spredt" type="STRING" size="256"/>
- <Column id="spreidnm" type="STRING" size="256"/>
- <Column id="sprecnfmdt" type="STRING" size="256"/>
- <Column id="sprecnfmidnm" type="STRING" size="256"/>
- <Column id="prcpno" type="STRING" size="256"/>
- <Column id="prcphistno" type="STRING" size="256"/>
- <Column id="drugdd" type="STRING" size="256"/>
- <Column id="drugno" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="narcflag" type="STRING" size="256"/>
- <Column id="narcstat" type="STRING" size="256"/>
- <Column id="cnclstat" type="STRING" size="256"/>
- <Column id="rtnstat" type="STRING" size="256"/>
- <Column id="prntflag" type="STRING" size="256"/>
- <Column id="returnflag" type="STRING" size="256"/>
- <Column id="orddd" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="prcpgenrflag" type="STRING" size="256"/>
- <Column id="drugflag" type="STRING" size="256"/>
- <Column id="drugkind" type="STRING" size="256"/>
- <Column id="drugkindnm" type="STRING" size="256"/>
- <Column id="sumdt" type="STRING" size="256"/>
- <Column id="reqid" type="STRING" size="256"/>
- <Column id="reqidnm" type="STRING" size="256"/>
- <Column id="reqdt" type="STRING" size="256"/>
- <Column id="statvisible" type="STRING" size="256"/>
- <Column id="medrendyn" type="STRING" size="256"/>
- <Column id="medrqty" type="STRING" size="256"/>
- <Column id="medrtims" type="STRING" size="256"/>
- <Column id="medrx" type="STRING" size="256"/>
- <Column id="rtndrugtims" type="STRING" size="256"/>
- <Column id="rtndrugdayno" type="STRING" size="256"/>
- <Column id="rtnstocqty" type="STRING" size="256"/>
- <Column id="engnm" type="STRING" size="256"/>
- <Column id="abbrnm" type="STRING" size="256"/>
- <Column id="util" type="STRING" size="256"/>
- <Column id="mthdcnts1" type="STRING" size="256"/>
- <Column id="mthdcnts2" type="STRING" size="256"/>
- <Column id="mthdcnts3" type="STRING" size="256"/>
- <Column id="mthdcnts4" type="STRING" size="256"/>
- <Column id="drugdesc" type="STRING" size="256"/>
- <Column id="mthddesc" type="STRING" size="256"/>
- <Column id="stocdeptcd" type="STRING" size="256"/>
- <Column id="prcpdd2" type="STRING" size="256"/>
- <Column id="dayprcpqty2" type="STRING" size="256"/>
- <Column id="totdrugqty2" type="STRING" size="256"/>
- <Column id="resultqty" type="STRING" size="256"/>
- <Column id="spcldrug" type="STRING" size="256"/>
- <Column id="dethyn" type="STRING" size="256"/>
- <Column id="dethdd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="sel"/>
- <Col id="prcpdd"/>
- <Col id="pid"/>
- <Col id="patnm"/>
- <Col id="issdeptcdnm"/>
- <Col id="roomcd"/>
- <Col id="prcpcd"/>
- <Col id="drugnm"/>
- <Col id="totdrugqty"/>
- <Col id="dayprcpqty"/>
- <Col id="prcpqty"/>
- <Col id="prcpqtyunit"/>
- <Col id="prcptims"/>
- <Col id="prcpdayno"/>
- <Col id="rtnqty"/>
- <Col id="returnqty"/>
- <Col id="rtnunit"/>
- <Col id="prcpdt"/>
- <Col id="prcpidnm"/>
- <Col id="drugdt"/>
- <Col id="drugidnm"/>
- <Col id="delivedt"/>
- <Col id="deliveidnm"/>
- <Col id="acptdt"/>
- <Col id="acptidnm"/>
- <Col id="rtnappdt"/>
- <Col id="rtnappidnm"/>
- <Col id="rtndt"/>
- <Col id="rtnidnm"/>
- <Col id="rtncnfmdt"/>
- <Col id="rtncnfmidnm"/>
- <Col id="rtnresn"/>
- <Col id="spreqty"/>
- <Col id="spredt"/>
- <Col id="spreidnm"/>
- <Col id="sprecnfmdt"/>
- <Col id="sprecnfmidnm"/>
- <Col id="prcpno"/>
- <Col id="prcphistno"/>
- <Col id="drugdd"/>
- <Col id="drugno"/>
- <Col id="ioflag"/>
- <Col id="instcd"/>
- <Col id="narcflag"/>
- <Col id="narcstat"/>
- <Col id="cnclstat"/>
- <Col id="rtnstat"/>
- <Col id="prntflag"/>
- <Col id="returnflag"/>
- <Col id="orddd"/>
- <Col id="orddeptcd"/>
- <Col id="prcpgenrflag"/>
- <Col id="drugflag"/>
- <Col id="drugkind"/>
- <Col id="drugkindnm"/>
- <Col id="sumdt"/>
- <Col id="reqid"/>
- <Col id="reqidnm"/>
- <Col id="reqdt"/>
- <Col id="statvisible"/>
- <Col id="medrendyn"/>
- <Col id="medrqty"/>
- <Col id="medrtims"/>
- <Col id="medrx"/>
- <Col id="rtndrugtims"/>
- <Col id="rtndrugdayno"/>
- <Col id="rtnstocqty"/>
- <Col id="engnm"/>
- <Col id="abbrnm"/>
- <Col id="util"/>
- <Col id="mthdcnts1"/>
- <Col id="mthdcnts2"/>
- <Col id="mthdcnts3"/>
- <Col id="mthdcnts4"/>
- <Col id="drugdesc"/>
- <Col id="mthddesc"/>
- <Col id="stocdeptcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_userinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="userid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="userid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_prtinfo_narclist_narclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_temp_srchcond_ward" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="wardcd" type="STRING" size="256"/>
- <Column id="wardnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="wardcd"/>
- <Col id="wardnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_prtinfo_hosp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="hosp" type="STRING" size="256"/>
- <Column id="narcflag" type="STRING" size="256"/>
- <Column id="pastillyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="hosp"/>
- <Col id="narcflag"/>
- <Col id="pastillyn"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_barcdprntsetup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="setupinfo" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="setupinfo"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_srchcond_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="deptnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="deptcd"/>
- <Col id="deptnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_send_prntdt_narcdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_hidden_popup_prcp_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="hardcdnm" type="STRING" size="256"/>
- <Column id="hardcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="hardcdnm">실시내역</Col>
- <Col id="hardcd">Execlist</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_narclist_narclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_init_misdeptlist_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="deptnm" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="deptnm"/>
- <Col id="deptcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_srchcond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="deptflag" type="STRING" size="256"/>
- <Column id="narcflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="deptflag"/>
- <Col id="narcflag">M</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="lblskip" type="STRING" size="256"/>
- <Column id="chkall" type="STRING" size="256"/>
- <Column id="scrnid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_srchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_temp_srchinfo_oncolumnchanged">
- <ColumnInfo>
- <Column id="narcflag" type="STRING" size="256"/>
- <Column id="timeflag" type="STRING" size="256"/>
- <Column id="fst_dd" type="STRING" size="256"/>
- <Column id="last_dd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="ward" type="STRING" size="256"/>
- <Column id="srchdrugno" type="STRING" size="256"/>
- <Column id="barcode" type="STRING" size="256"/>
- <Column id="srchdrugkind" type="STRING" size="256"/>
- <Column id="srchioflag" type="STRING" size="256"/>
- <Column id="drugflag" type="STRING" size="256"/>
- <Column id="srchroot" type="STRING" size="256"/>
- <Column id="narcstat" type="STRING" size="256"/>
- <Column id="cnclflag" type="STRING" size="256"/>
- <Column id="cnclstat" type="STRING" size="256"/>
- <Column id="rtnflag" type="STRING" size="256"/>
- <Column id="rtnstat" type="STRING" size="256"/>
- <Column id="narctypeflag" type="STRING" size="256"/>
- <Column id="narctype" type="STRING" size="256"/>
- <Column id="srchid" type="STRING" size="256"/>
- <Column id="narccd" type="STRING" size="256"/>
- <Column id="srchdeptcd" type="STRING" size="256"/>
- <Column id="prtab" type="STRING" size="256"/>
- <Column id="barcodespre" type="STRING" size="256"/>
- <Column id="nodeliveflag" type="STRING" size="256"/>
- <Column id="stocdeptcd" type="STRING" size="256"/>
- <Column id="autoprnt" type="STRING" size="256"/>
- <Column id="srchprcpkind" type="STRING" size="256"/>
- <Column id="srchprcpkindall" type="STRING" size="256"/>
- <Column id="prntdt" type="STRING" size="256"/>
- <Column id="issdeptcd" type="STRING" size="256"/>
- <Column id="wardnm" type="STRING" size="256"/>
- <Column id="selkey" type="STRING" size="256"/>
- <Column id="selkeyall" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="narcflag"/>
- <Col id="timeflag">2</Col>
- <Col id="fst_dd"/>
- <Col id="last_dd"/>
- <Col id="pid"/>
- <Col id="ward"/>
- <Col id="srchdrugno"/>
- <Col id="barcode"/>
- <Col id="srchdrugkind"/>
- <Col id="srchioflag">I</Col>
- <Col id="drugflag">I</Col>
- <Col id="srchroot"/>
- <Col id="narcstat"/>
- <Col id="cnclflag"/>
- <Col id="cnclstat"/>
- <Col id="rtnflag"/>
- <Col id="rtnstat"/>
- <Col id="narctypeflag"/>
- <Col id="narctype"/>
- <Col id="srchid"/>
- <Col id="narccd"/>
- <Col id="srchdeptcd"/>
- <Col id="prtab"/>
- <Col id="barcodespre"/>
- <Col id="nodeliveflag"/>
- <Col id="stocdeptcd"/>
- <Col id="autoprnt"/>
- <Col id="srchprcpkind"/>
- <Col id="srchprcpkindall"/>
- <Col id="prntdt"/>
- <Col id="issdeptcd"/>
- <Col id="wardnm"/>
- <Col id="selkey"/>
- <Col id="selkeyall"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_detlprcplist_detlprcpinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="ioflagnm" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="prcpno" type="STRING" size="256"/>
- <Column id="drugno" type="STRING" size="256"/>
- <Column id="execdd" type="STRING" size="256"/>
- <Column id="exectm" type="STRING" size="256"/>
- <Column id="drugsumdt" type="STRING" size="256"/>
- <Column id="execdeptnm" type="STRING" size="256"/>
- <Column id="execdeptcd" type="STRING" size="256"/>
- <Column id="issdeptcd" type="STRING" size="256"/>
- <Column id="issdeptcdnm" type="STRING" size="256"/>
- <Column id="execdrnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="ioflagnm"/>
- <Col id="ioflag"/>
- <Col id="prcpno"/>
- <Col id="drugno"/>
- <Col id="execdd"/>
- <Col id="exectm"/>
- <Col id="drugsumdt"/>
- <Col id="execdeptnm"/>
- <Col id="execdeptcd"/>
- <Col id="issdeptcd"/>
- <Col id="issdeptcdnm"/>
- <Col id="execdrnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_srchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_drugdeptinfo_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_dutdeptinfo_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_barcdprntsetup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_data_setupinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_data_comm01" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_data_comm02" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_data_comm03" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_data_blank" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_lbltype_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_nartype_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_cmb_narcstat" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">미신청</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">불출신청</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">출력완료</Col>
- <Col id="value">3</Col>
- </Row>
- <Row>
- <Col id="label">조제완료</Col>
- <Col id="value">4</Col>
- </Row>
- <Row>
- <Col id="label">불출</Col>
- <Col id="value">5</Col>
- </Row>
- <Row>
- <Col id="label">부서확인</Col>
- <Col id="value">6</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmb_cnclstat" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">-</Col>
- <Col id="value"/>
- </Row>
- <Row>
- <Col id="label">반환대상</Col>
- <Col id="value">0</Col>
- </Row>
- <Row>
- <Col id="label">반환신청</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">반환확인</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">반환종료</Col>
- <Col id="value">7</Col>
- </Row>
- <Row>
- <Col id="label">미불출</Col>
- <Col id="value">10</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmb_rtnstat" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">-</Col>
- <Col id="value"/>
- </Row>
- <Row>
- <Col id="label">잔량대상</Col>
- <Col id="value">0</Col>
- </Row>
- <Row>
- <Col id="label">잔량신청</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">잔량확인</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">미불출</Col>
- <Col id="value">10</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmb_narcstat2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">미신청</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">불출신청</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">출력완료</Col>
- <Col id="value">3</Col>
- </Row>
- <Row>
- <Col id="label">조제완료</Col>
- <Col id="value">4</Col>
- </Row>
- <Row>
- <Col id="label">불출</Col>
- <Col id="value">5</Col>
- </Row>
- <Row>
- <Col id="label">부서확인</Col>
- <Col id="value">6</Col>
- </Row>
- <Row>
- <Col id="label">반납신청</Col>
- <Col id="value">7</Col>
- </Row>
- <Row>
- <Col id="label">반납확인</Col>
- <Col id="value">8</Col>
- </Row>
- <Row>
- <Col id="label">반환신청</Col>
- <Col id="value">9</Col>
- </Row>
- <Row>
- <Col id="label">반환확인</Col>
- <Col id="value">0</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_prntdt_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_srchprcpkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid">R</Col>
- <Col id="cdnm">정규</Col>
- </Row>
- <Row>
- <Col id="cdid">A</Col>
- <Col id="cdnm">추가</Col>
- </Row>
- <Row>
- <Col id="cdid">W</Col>
- <Col id="cdnm">응급</Col>
- </Row>
- <Row>
- <Col id="cdid">M</Col>
- <Col id="cdnm">Admission</Col>
- </Row>
- <Row>
- <Col id="cdid">P</Col>
- <Col id="cdnm">PRN</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_narctypeflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid">T</Col>
- <Col id="cdnm">전체</Col>
- </Row>
- <Row>
- <Col id="cdid">A</Col>
- <Col id="cdnm">처방가능약</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_narcinfo_srchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_send_narcinfo_narclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_send_narcinfo_userinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_send_prntinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_prntlist_patinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_prntlist_diaginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_prntlist_prntlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_prntlist_resn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_data_pcllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_ret" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_rtnlist_rtnlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_popup_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hardcdnm" type="STRING" size="256"/>
- <Column id="hardcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="hardcdnm">실시내역</Col>
- <Col id="hardcd">Execlist</Col>
- </Row>
- <Row>
- <Col id="hardcdnm">매핑취소</Col>
- <Col id="hardcd">getMappingList</Col>
- </Row>
- <Row>
- <Col id="hardcdnm">신규전송</Col>
- <Col id="hardcd">getTranList</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_sumlist_sumlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_prtinfo_sumlist_sumlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_rtnprntlist_prntlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_sendnarcstoc" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_stocsend" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="drugcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_stocrece" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="dataokflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_chrglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.input8" propid="value" datasetid="ds_temp_srchinfo" columnid="pid"/>
- <BindItem id="item1" compid="group2.input9" propid="value" datasetid="ds_temp_srchinfo" columnid="barcode"/>
- <BindItem id="item3" compid="group2.combo2" propid="value" datasetid="ds_temp_srchinfo" columnid="timeflag"/>
- <BindItem id="item4" compid="group2.radio1" propid="value" datasetid="ds_temp_srchinfo" columnid="narcflag"/>
- <BindItem id="item5" compid="group2.radio2" propid="value" datasetid="ds_temp_srchinfo" columnid="srchdrugkind"/>
- <BindItem id="item6" compid="group2.radio3" propid="value" datasetid="ds_temp_srchinfo" columnid="narcstat"/>
- <BindItem id="item7" compid="group2.ipt_lastdd" propid="value" datasetid="ds_temp_srchinfo" columnid="last_dd"/>
- <BindItem id="item8" compid="group2.ipt_fstdd" propid="value" datasetid="ds_temp_srchinfo" columnid="fst_dd"/>
- <BindItem id="item9" compid="group2.cmb_ward" propid="value" datasetid="ds_temp_srchinfo" columnid="ward"/>
- <BindItem id="item10" compid="group2.opt_usernm" propid="value" datasetid="ds_temp_userinfo_userinfo" columnid="usernm"/>
- <BindItem id="item11" compid="group2.ipt_srchid" propid="value" datasetid="ds_temp_srchinfo" columnid="srchid"/>
- <BindItem id="item12" compid="group2.rdo_drugflag" propid="value" datasetid="ds_temp_srchinfo" columnid="drugflag"/>
- <BindItem id="item13" compid="group2.input2" propid="value" datasetid="ds_temp_srchinfo" columnid="srchdrugno"/>
- <BindItem id="item14" compid="group2.radio4" propid="value" datasetid="ds_send_srchcond" columnid="narcflag"/>
- <BindItem id="item15" compid="group2.combo3" propid="value" datasetid="ds_temp_srchinfo" columnid="srchdeptcd"/>
- <BindItem id="item16" compid="group2.radio5" propid="value" datasetid="ds_temp_srchinfo" columnid="srchioflag"/>
- <BindItem id="item17" compid="group2.input1" propid="value" datasetid="ds_temp_srchinfo" columnid="barcodespre"/>
- <BindItem id="item18" compid="group2.switch2.case4.rdo_cncl" propid="value" datasetid="ds_temp_srchinfo" columnid="cnclstat"/>
- <BindItem id="item19" compid="group2.switch2.case4.checkbox1" propid="value" datasetid="ds_temp_srchinfo" columnid="cnclflag"/>
- <BindItem id="item20" compid="group2.switch2.case4.checkbox3" propid="value" datasetid="ds_temp_srchinfo" columnid="rtnflag"/>
- <BindItem id="item21" compid="group2.switch2.case4.rdo_rtn" propid="value" datasetid="ds_temp_srchinfo" columnid="rtnstat"/>
- <BindItem id="item22" compid="group2.switch2.case5.checkbox5" propid="value" datasetid="ds_temp_srchinfo" columnid="cnclflag"/>
- <BindItem id="item23" compid="group2.switch2.case5.checkbox6" propid="value" datasetid="ds_temp_srchinfo" columnid="rtnflag"/>
- <BindItem id="item24" compid="group2.switch2.case5.checkbox7" propid="value" datasetid="ds_temp_srchinfo" columnid="nodeliveflag"/>
- <BindItem id="item25" compid="group2.switch2.case5.radio6" propid="value" datasetid="ds_temp_srchinfo" columnid="cnclstat"/>
- <BindItem id="item26" compid="group2.switch2.case5.radio7" propid="value" datasetid="ds_temp_srchinfo" columnid="rtnstat"/>
- <BindItem id="item27" compid="group2.combo1" propid="value" datasetid="ds_temp_srchinfo" columnid="stocdeptcd"/>
- <BindItem id="item28" compid="group2.chk_auto" propid="value" datasetid="ds_temp_srchinfo" columnid="autoprnt"/>
- <BindItem id="item30" compid="group2.checkbox8" propid="value" datasetid="ds_temp_srchinfo" columnid="srchprcpkindall"/>
- <BindItem id="item31" compid="group2.grp_prntdt.cmb_prntdt" propid="value" datasetid="ds_temp_srchinfo" columnid="wardnm"/>
- <BindItem id="item32" compid="group4.checkbox4" propid="value" datasetid="ds_send" columnid="lblskip"/>
- <BindItem id="item33" compid="group4.chk_all" propid="value" datasetid="ds_send" columnid="chkall"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-10-07
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-10-07 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "com_commodulexp::SSZFM00901.xjs";
- include "emr_prcpmngtxp::MMO001.xjs";
- //include "ast_pharmacyxp::SMADT30100.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- var nextFlag = "GO";
- var gTimer = 0;
- var sleepTime = 1000;
- var rtnprntflag = "N"; // 20110422_laboru_경북대병원_반환처방전 반환확인 시 자동출력 될때 메시지 창 안뜨게 하기
- var totqtyflag = "Y"; // 201120712 경북대병원_반환처방전 반환수량 (-) 뜨게하기 김치국
- var autocnt = 0;
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // SMADT30100.xjs 시작
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description : 초기화
- ****************************************************************************************/
- function fInit() {
-
- grdf_initGrid(switch1.case1.grd_narclist);
- grdf_initGrid(switch1.case2.grd_sprelist);
- grdf_initGrid(switch1.case3.grd_outnarc);
- grdf_setGridSort(group2.datagrid1);
- //구분 초기화(전체)
- ds_temp_srchinfo.setColumn( 0, "narcflag", "T");
- ds_temp_srchinfo.setColumn( 0, "srchdrugkind", "T");
- ds_temp_srchinfo.setColumn( 0, "drugflag", "I");
- ds_temp_srchinfo.setColumn( 0, "narcstat", "T");
- ds_temp_srchinfo.setColumn( 0, "cnclstat", "");
- ds_temp_srchinfo.setColumn( 0, "rtnstat", "");
- ds_temp_srchinfo.setColumn( 0, "narctypeflag", "T");
- ds_temp_srchinfo.setColumn( 0, "srchioflag", "I");
- group2.switch2.case4.rdo_cncl.enable = false;
- group2.switch2.case4.rdo_rtn.enable = false;
- group2.cap_automess.visible = false; /// 2017년 5월16일 김치국 자동 출력메세지
- fChgIOFlag();
-
- //토글초기\
- ds_temp_srchinfo.setColumn( 0, "srchroot", "M");
- switch1.tabindex = 0;
- //조회날짜 초기화
- ds_temp_srchinfo.setColumn( 0, "fst_dd", utlf_getCurrentDate());
- ds_temp_srchinfo.setColumn( 0, "last_dd", utlf_getCurrentDate());
- //병동 Combo 조회
- ds_send_srchcond.setColumn( 0, "deptflag", "W");
- call_TRADT30101();
- dsf_addDsItem(ds_temp_srchcond_ward,"wardcd","wardnm","전체","");
- group2.cmb_ward.index = 0;
- //로그인 사용자 셋팅
- var userid = sysf_getUserId();
- ds_temp_srchinfo.setColumn( 0, "srchid", userid);
- fChgUserID();
- //바코드프린터설정 초기화
- ds_send.setColumn(0,"scrnid",frmf_getScreenID());
-
- var oParam = {};
- oParam.id = "TRLLC90101";
- oParam.service = "diagtestapplib.LisCommon";
- oParam.method = "reqGetSetUpInfo";
- oParam.inds = "scrnid=ds_send";
- oParam.outds = "ds_main_barcdprntsetup=getSetUpInfo";
- oParam.async = false;
- //oParam.callback = "cf_TRLLC90101";
- tranf_submit(oParam);
-
- var prntsetupinfo = ds_main_barcdprntsetup.getColumn(0,"prntsetupinfo"); //프린터설정 XML형식
-
- lf_convertXmlToDs(prntsetupinfo);
-
- var comm = ds_data_comm02.getColumn(0,"comm");
- var prntkind = ds_data_setupinfo.getColumn(0,"prntkind");
-
- if(comm == "2") {
- ds_data_comm02.setColumn(0,"comm", "1");
- }
-
- if(prntkind == "1") {
- ds_data_setupinfo.setColumn(0,"prntkind", "5");
- }
-
- //라벨 출력 형식 옵션
- dsf_createDsRow("ds_req", [
- {col:"prcpflag", type:"STRING", size:256, val:""}
- ]);
- var oParam = {};
- oParam.id = "TRADT30106";
- oParam.service = "pharmacyprescriptionapp.Narcotics";
- oParam.method = "reqGetLblType3";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_init_lbltype_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRADT30106";
- tranf_submit(oParam);
-
- //잔량옵션
- dsf_createDsRow("ds_req", [
- {col:"prcpflag", type:"STRING", size:256, val:""}
- ,{col:"code", type:"STRING", size:256, val:"CHRG"}
- ]);
- var oParam = {};
- oParam.id = "TRADT30107";
- oParam.service = "pharmacyprescriptionapp.Narcotics";
- oParam.method = "reqGetNarType";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_init_nartype_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRADT30107";
- tranf_submit(oParam);
-
- var oParam = {};
- oParam.id = "TRADT30108";
- oParam.service = "pharmacyprescriptionapp.Narcotics";
- oParam.method = "reqGetNaesiWorkId";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_init_chrglist=workid";
- oParam.async = false;
- //oParam.callback = "cf_TRADT30107";
- tranf_submit(oParam);
-
-
- // 출고부서 조회, 설정
- var oParam = {};
- oParam.id = "TRADT01106";
- oParam.service = "pharmacyprescriptionapp.DrugPrint";
- oParam.method = "reqGetMisDeptlist";
- oParam.inds = "";
- oParam.outds = "ds_init_misdeptlist_deptlist=deptlist";
- oParam.async = false;
- //oParam.callback = "cf_TRADT01106";
- tranf_submit(oParam);
-
- if(ds_init_misdeptlist_deptlist.rowcount == 1) {
- group2.combo1.index = 0;
- } else {
- // 입원주사조제실 제거
- if(ds_init_misdeptlist_deptlist.getColumn(0,"deptcd") == "3242104000") {
- // combo1.choices.itemset.attribute("nodeset") = "/root/init/misdeptlist/deptlist[deptcd != '3242104000' ]";
- ds_init_misdeptlist_deptlist.filter("deptcd!='3242104000'");
- } else {
- group2.combo1.index = 0;
- }
- }
- group2.combo1.updateToDataset();
-
- //1일기준인지 1회기준인지 체크하여 컬럼을 hidden
- var colHidnValue = lf_grdBaseColHidn("D");
- //1회 기준
- if( colHidnValue == "C" ) {
- switch1.case3.grd_outnarc.setFormatColProperty(switch1.case3.grd_outnarc.getBindCellIndex("body","prcpvol"),"size",0);
- switch1.case3.grd_outnarc.setFormatColProperty(switch1.case3.grd_outnarc.getBindCellIndex("body","prcpvolunit"),"size",0);
- switch1.case3.grd_outnarc.setFormatColProperty(switch1.case3.grd_outnarc.getBindCellIndex("body","dayprcpqty"),"size",0);
- switch1.case3.grd_outnarc.setFormatColProperty(switch1.case3.grd_outnarc.getBindCellIndex("body","dayprcpqtyunit"),"size",0);
-
- switch1.case1.grd_narclist.setFormatColProperty(switch1.case1.grd_narclist.getBindCellIndex("body","prcpvol"),"size",0);
- switch1.case1.grd_narclist.setFormatColProperty(switch1.case1.grd_narclist.getBindCellIndex("body","prcpvolunit"),"size",0);
- switch1.case1.grd_narclist.setFormatColProperty(switch1.case1.grd_narclist.getBindCellIndex("body","dayprcpqty"),"size",0);
- switch1.case1.grd_narclist.setFormatColProperty(switch1.case1.grd_narclist.getBindCellIndex("body","dayprcpqtyunit"),"size",0);
- } else {
- switch1.case3.grd_outnarc.setFormatColProperty(switch1.case3.grd_outnarc.getBindCellIndex("body","prcpvol2"),"size",0);
- switch1.case3.grd_outnarc.setFormatColProperty(switch1.case3.grd_outnarc.getBindCellIndex("body","prcpvolunit2"),"size",0);
- switch1.case3.grd_outnarc.setFormatColProperty(switch1.case3.grd_outnarc.getBindCellIndex("body","prcpqty2"),"size",0);
- switch1.case3.grd_outnarc.setFormatColProperty(switch1.case3.grd_outnarc.getBindCellIndex("body","prcpqtyunit2"),"size",0);
-
- switch1.case1.grd_narclist.setFormatColProperty(switch1.case1.grd_narclist.getBindCellIndex("body","prcpvol2"),"size",0);
- switch1.case1.grd_narclist.setFormatColProperty(switch1.case1.grd_narclist.getBindCellIndex("body","prcpvolunit2"),"size",0);
- switch1.case1.grd_narclist.setFormatColProperty(switch1.case1.grd_narclist.getBindCellIndex("body","prcpqty2"),"size",0);
- switch1.case1.grd_narclist.setFormatColProperty(switch1.case1.grd_narclist.getBindCellIndex("body","prcpqtyunit2"),"size",0);
- }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 마약리스트 조회
- ****************************************************************************************/
- function fGetNarcData() {
- //조회시 마약종류를 조회조건에 추가 START
- var narccdlist = "";
- var objExt = new ExtCommon();
- var arrTmp = objExt.findRows(ds_temp_srchcond_narclist, "sel", "Y");
- // trace("arrTmp : " + arrTmp.length);
- for(var i = 0; i < arrTmp.length; i++) {
- if(ds_temp_srchcond_narclist.getColumn(arrTmp[i],"sel") == "Y") {
- if(utlf_isNull(narccdlist)) {
- narccdlist = "'" + ds_temp_srchcond_narclist.getColumn(arrTmp[i],"narccd") + "'";
- } else {
- narccdlist += ",'" + ds_temp_srchcond_narclist.getColumn(arrTmp[i],"narccd") + "'";
- }
- }
- }
- // trace("narccdlist : " + narccdlist);
- ds_temp_srchinfo.setColumn(0,"narccd", narccdlist);
- //조회시 마약종류를 조회조건에 추가 END
- // grd_narclist.fixedcellischeck(0, 1) = false;
- // grd_outnarc.fixedcellischeck(0, 1) = false;
- // switch1.case1.grd_narclist.setCellProperty("Head",1,"text",0);
- // switch1.case3.grd_outnarc.setCellProperty("Head",1,"text",0);
- chk_grdAll.enableevent = false;
- chk_grdAll.value = "N";
- chk_grdAll.enableevent = true;
-
- ds_send_srchinfo.enableevent = false;
- ds_send_srchinfo.copyData(ds_temp_srchinfo);
- if( ds_temp_srchinfo.getColumn(0, "prtab") == "Y") { // 향정반환반납장부 출력조건
- ds_send_srchinfo.setColumn( 0, "cnclflag", "Y");
- ds_send_srchinfo.setColumn( 0, "rtnflag", "Y");
- ds_send_srchinfo.setColumn( 0, "rtnstat", "T");
- ds_send_srchinfo.setColumn( 0, "cnclstat", "T");
- ds_send_srchinfo.setColumn( 0, "narcstat", "");
- }
- ds_send_srchinfo.enableevent = true;
-
- if(group2.chk_auto.value != "Y") {
- call_TRADT30102();
- } else if(group2.chk_auto.value == "Y") {
- ds_temp_narclist_narclist.clearData();
- dsf_createDsRow("ds_req", [
- {col:"narcflag", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"narcflag")}
- , {col:"timeflag", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"timeflag")}
- , {col:"fst_dd", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"fst_dd")}
- , {col:"last_dd", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"last_dd")}
- , {col:"srchdrugkind", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"srchdrugkind")}
- , {col:"srchioflag", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"srchioflag")}
- , {col:"drugflag", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"drugflag")}
- , {col:"srchroot", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"srchroot")}
- , {col:"narcstat", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"narcstat")}
- , {col:"cnclstat", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"cnclstat")}
- , {col:"rtnstat", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"rtnstat")}
- , {col:"nodeliveflag", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"nodeliveflag")}
- , {col:"narctype", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"narctype")}
- , {col:"pid", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"pid")}
- , {col:"ward", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"ward")}
- , {col:"srchdrugno", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"srchdrugno")}
- , {col:"barcode", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"barcode")}
- , {col:"narccd", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"narccd")}
- , {col:"barcode_2", type:"STRING", size:256, val:""}
- , {col:"srchdeptcd", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"srchdeptcd")}
- , {col:"prntdt", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"prntdt")}
- , {col:"issdeptcd", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"issdeptcd")}
- , {col:"srchprcpkind", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"srchprcpkind")}
- , {col:"kuflag", type:"STRING", size:256, val:"Y"}
- ]);
- var oParam = {};
- oParam.id = "TRADT30110";
- oParam.service = "pharmacyprescriptionapp.Narcotics";
- oParam.method = "reqGetNarcData";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_temp_narclist_narclist=narclist";
- oParam.async = false;
- oParam.callback = "cf_TRADT30110";
- tranf_submit(oParam);
- }
- }
- function cf_TRADT30110(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- dsf_setDefaultVal(ds_temp_narclist_narclist, "sel:Y");
- // dsf_setTypeFormat(ds_temp_narclist_narclist, "prcptims:INT^prcpdayno:INT^rtnqty:INT^prcpno:INT^prcphistno:INT^drugno:INT^drugseqno:INT");
- // fMakeCopyColumn(ds_temp_narclist_narclist,"prcpqtyunit","dayprcpqtyunit");
- // fMakeCopyColumn(ds_temp_narclist_narclist,"prcpqtyunit","prcpqtyunit2");
- // fMakeCopyColumn(ds_temp_narclist_narclist,"prcpvolunit","prcpvolunit2");
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 바코드 변경시
- ****************************************************************************************/
- function fChgBarcode() {
- var sBar = ds_temp_srchinfo.getColumn(0,"barcode").toUpperCase();
- ds_temp_srchinfo.setColumn(0,"barcode", sBar);
- if(sBar.length >= 21){
- if(utlf_isNull(ds_temp_userinfo_userinfo.getColumn(0, "userid"))) {
- sysf_messageBox("사용자ID가 없습니다. 사용자ID부터","C001");
- ds_temp_srchinfo.setColumn( 0, "srchid","");
- group2.ipt_srchid.setFocus();
- } else if(sBar.substr(0,1) != "M" && sBar.substr(0,1) != "H"){
- sysf_messageBox("바코드 정보가 다릅니다. 바코드를 다시","C001");
- ds_temp_srchinfo.setColumn( 0, "barcode","");
- group2.input9.setFocus();
- } else {
- //바코드로 먼저 해당처방을 조회함
- fGetNarcData();
- //바코드로 Acting처리가 가능한 처방인지 체크함
- //바코드로 처리가능한 Acting : 조제완료, 불출, 잔량반납확인, 반환확인
- //바코드로 조회시 데이터는 한건만 조회됨.
- if(sBar.substr(2,1) == "O" || sBar.substr(2,1) == "E" || sBar.substr(2,1) == "D"){
- if(ds_temp_srchinfo.getColumn(0, "srchroot") == "M"){
- if(ds_main_narclist_narclist.getColumn(0, "narcstat")=="3"){
- //바코드로 취소는 불가능 조회만가능
- ds_main_narclist_narclist.setColumn( 0 , "sel","Y");
- fNarcActing("Prcp");
- return;
- } else if(ds_main_narclist_narclist.getColumn(0, "narcstat")=="4"){
- //바코드로 취소는 불가능 조회만가능
- ds_main_narclist_narclist.setColumn( 0 , "sel","Y");
- //fNarcActing("Drug");
- sysf_messageBox("불출확인은 마약불출화면에서 마약수령자가 처리해야합니다.","I900");
- return;
- }
- } else {
- if(ds_main_narclist_narclist.getColumn(0, "narcstat")=="7"){
- //반납신청상태가 아니면 반납확인을 할수없음.
- //반납확인상태이면 조회만 가능
- fNarcActing("Spre");
- return;
- }
- }
- } else {
- if(ds_main_narclist_narclist.getColumn(0, "narcstat")=="9"){
- //반환신청상태가 아니면 반환확인을 할수없음.
- //그외 상태는 조회만 가능
- fNarcActing("Rtn");
- return;
- }
- }
-
- ds_temp_srchinfo.setColumn(0,"barcode","");
- }
- } else {
- sysf_messageBox("바코드 정보가 다릅니다.\n다시","C001");
- ds_temp_srchinfo.setColumn(0,"barcode","");
- group2.input9.setFocus();
- }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 바코드 변경시
- ****************************************************************************************/
- function fChgBarcodeSpre() {
- var sBar = ds_temp_srchinfo.getColumn(0, "barcodespre").toUpperCase();
- ds_temp_srchinfo.setColumn( 0, "barcodespre", sBar);
- if(sBar.length >= 21){
- if(utlf_isNull(ds_temp_userinfo_userinfo.getColumn(0, "userid"))) {
- sysf_messageBox("사용자ID가 없습니다. 사용자ID부터","C001");
- ds_temp_srchinfo.setColumn( 0, "srchid","");
- group2.ipt_srchid.setFocus();
- } else if(sBar.substr(0,1) != "M" && sBar.substr(0,1) != "H"){
- sysf_messageBox("바코드 정보가 다릅니다. 바코드를 다시","C001");
- ds_temp_srchinfo.setColumn( 0, "barcode","");
- ds_temp_srchinfo.setColumn( 0, "barcodespre","");
- group2.input1.setFocus();
- } else {
- //바코드로 먼저 해당처방을 조회함
- ds_temp_srchinfo.setColumn( 0, "barcode",ds_temp_srchinfo.getColumn(0, "barcodespre"));
- fGetNarcData();
- //바코드로 Acting처리가 가능한 처방인지 체크함
- //바코드로 처리가능한 Acting : 조제완료, 불출, 잔량반납확인, 반환확인
- //바코드로 조회시 데이터는 한건만 조회됨.
- ds_main_narclist_narclist.setColumn( 0 , "sel","Y");
-
- fNarcActing("Spre");
- ds_temp_srchinfo.setColumn( 0, "barcode","");
- ds_temp_srchinfo.setColumn( 0, "barcodespre","");
- }
- } else {
- sysf_messageBox("바코드 정보가 다릅니다.\n다시","C001");
- ds_temp_srchinfo.setColumn( 0, "barcodespre","");
- group2.input1.setFocus();
- }
- }
- /****************************************************************************************
- * Argument : sActing - 액팅구분
- * Description : 마약 Acting 버튼 클릭시
- ****************************************************************************************/
- function fNarcActing(sActing) {
- if(utlf_isNull(ds_temp_userinfo_userinfo.getColumn(0, "userid"))) {
- sysf_messageBox("사용자ID가 없습니다. 사용자ID를 먼저","C001");
- ds_temp_srchinfo.setColumn( 0, "srchid","");
- group2.ipt_srchid.setFocus();
- return;
- }
-
- var iActing_Cnt = 0; // 행위 구분을 위한 카운트값
- var sActing_nm = ""; // 해당 행위의 명칭
- var sActingAfter = "";
- var selCnt = 0;
- var RtnCnfmYN = "N";
- var chkAll = ds_send.getColumn(0,"chkall"); // 경북대병원 일괄처리 추가
- // var chkAll1 = ds_send.getColumn(0,"chkall1"); // 경북대병원 일괄처리 추가(불출까지)
- //액팅전 체크표시 cash
- fChkCash("before");
- ds_send_narcinfo_narclist.clear();
- dsf_copyColInfo(ds_send_narcinfo_narclist,ds_main_narclist_narclist);
- /////2018년 3월 마약통합관리 dataset copy 김치국
- ds_sendnarcstoc.clear();
- dsf_copyColInfo(ds_sendnarcstoc,ds_main_narclist_narclist);
- // **** 체크박스 선택 값 카운트 Start ****
- for(var i = 0 ; i < ds_main_narclist_narclist.rowcount ; i++){
- var sel = ds_main_narclist_narclist.getColumn(i, "sel");
- var sNarcStat = ds_main_narclist_narclist.getColumn(i, "narcstat");
- if(sel == "Y" && sNarcStat != "1") selCnt++; // 선택된 값(sel == "Y") 들 중 미신청 값은 제외
- }
-
- if(selCnt == 0) {
- sysf_messageBox("선택된 데이터가","I004");
- return;
- }
-
- //실출고부서 값 확인(조제확인/ 반환확인 시)
- if((sActing == "Prcp" || sActing == "Rtn" ) && utlf_isNull(ds_temp_srchinfo.getColumn(0, "stocdeptcd"))) {
- sysf_messageBox("실출고부서를 지정하십시오 ","I999");
- return;
- }
- // **** 체크박스 선택 값 카운트 End ****
- for(var i = 0; i < ds_main_narclist_narclist.rowcount; i++) {
- var sel = ds_main_narclist_narclist.getColumn(i, "sel"); // 선택여부
- var sNarcStat = ds_main_narclist_narclist.getColumn(i, "narcstat"); // 불출상태
- var sCnclStat = ds_main_narclist_narclist.getColumn(i, "cnclstat"); // 반환상태
- var sRtnStat = ds_main_narclist_narclist.getColumn(i, "rtnstat"); // 반납상태
- var sDrugFlag = ds_main_narclist_narclist.getColumn(i, "drugflag"); // 마약_향정구분
- var sReturnFlag = ds_main_narclist_narclist.getColumn(i, "returnflag"); // 반납여부
- var sDrugKind = ds_main_narclist_narclist.getColumn(i, "drugkind"); // 발생구분
- var sIOflag = ds_main_narclist_narclist.getColumn(i, "ioflag"); // 입원_외래구분
- var sPrcphistcd = ds_main_narclist_narclist.getColumn(i, "prcphistcd"); // 처방상태
- var sPid = ds_main_narclist_narclist.getColumn(i, "pid"); // 환자번호
- var sPrcpcd = ds_main_narclist_narclist.getColumn(i, "prcpcd"); // 약품코드
- var sDrugno = ds_main_narclist_narclist.getColumn(i, "drugno"); // 약품코드
- var sMsg = "*투약번호 : "+sDrugno+" *환자번호 : "+ sPid+ " *약품코드 : "+ sPrcpcd + "\n";
- //=========================================== 제한조건 체크 Start ================================================//
- // 변수명 parameter 명칭 동작가능상태 //
- //------------------------------------------------------------------------------------------------------------//
- // sCnclStat 1. 7 : 반환종료 sCnclStat == "7" ( 진행불가 ) //
- //------------------------------------------------------------------------------------------------------------//
- // sActing
- // 1. Prcp : 조제확인 sNarcStat == "3" [출력완료] //
- // 2. PrcpCncl : 조제취소 sNarcStat == "4" [조제완료] //
- // 3. Drug : 불출확인 sNarcStat == "4" [조제완료] //
- // 4. DrugCncl : 불출취소 sNarcStat == "5" [불출] //
- // 5. Rtn : 반환확인 sCnclStat == "1" [반환신청] //
- // 6. RtnCncl : 반환취소 (2009-05-05 추가) sCnclStat == "2" [반환확인] //
- // 7. Spre : 잔량확인 sRtnStat == "1" [잔량신청] //
- // 8. SpreCncl : 잔량취소 (2009-05-05 추가) sRtnStat == "2" [잔량확인] //
- //============================================================================================================//
- if(sel == "Y"){
-
- //// 2018년 마약통합관리 정보 저장 데이타set copy 김치국
- ///// 해당 관리 항목만 하기위한 데이타 찾기
- ds_stocsend.setColumn(0,"drugcd" , sPrcpcd );
- var oParam = {};
- oParam.id = "TRADT12008";
- oParam.service = "pharmacydrugsumapp.NarcManagent";
- oParam.method = "reqGetNarcStocDataOk";
- oParam.inds = "req=ds_stocsend";
- oParam.outds = "ds_stocrece=stocdataok";
- oParam.async = false;
- tranf_submit(oParam);
- var cOkFlag = ds_stocrece.getColumn(0, "dataokflag");
- if (cOkFlag == 1 ) {
- var dRow = ds_sendnarcstoc.addRow();
- ds_sendnarcstoc.copyRow(dRow,ds_main_narclist_narclist,i);
- dsf_makeValue(ds_sendnarcstoc,"stocdeptcd","string", ds_temp_srchinfo.getColumn(0, "stocdeptcd") );
- ds_sendnarcstoc.setColumn(dRow,"stocdeptcd" , ds_temp_srchinfo.getColumn(0, "stocdeptcd") );
- ///
- }
- /////////////////////
-
- // *** 반환종료 *** 처방 메시지 처리 (진행불가) Start
- if(sCnclStat == "7" && (sNarcStat == "3" || sNarcStat == "4")){
- //메세지처리 반환종료 된 처방입니다.
- sysf_messageBox(sMsg+"반환종료 되었습니다. 반환처방전을 출력","I008");
- return;
- } else if(sCnclStat == "7" && sNarcStat == "2"){
- //메세지처리 : 반환종료되었습니다.
- sysf_messageBox(sMsg+"반환종료 되었습니다.","");
- return;
- }
- // *** 반환종료 *** 처방 메시지 처리 (진행불가) End
- // 경북대병원 일괄처리(Prcpdrug)추가
- if(sActing == "Prcpdrug") {
- if(utlf_isNull(chkAll)) {
- sysf_messageBox("일괄처리가 체크되지", "E007");
- return;
- }
-
- if(sNarcStat == "2" && chkAll == "Y") {
- // astfCopyNodeSet("/root/send/narcinfo/narclist", "/root/main/narclist/narclist["+i+"]");
- var nRow = ds_send_narcinfo_narclist.addRow();
- ds_send_narcinfo_narclist.copyRow(nRow,ds_main_narclist_narclist,i);
- sActing_nm = "불출"
- iActing_Cnt++;
- } else { // 불출상태가 [미신청]일때
- sActing_nm = "불출"
- }
- }else if(sActing == "Prcp"){ // ***조제확인*** 출력완료 일 때만 기능 동작
- // 경북대병원 일괄처리 추가.. 일괄처리시 불출신청 체크 안함.
- if(sNarcStat == "2" && utlf_isNull(chkAll)){ // [불출신청] 상태일 때
- sysf_messageBox("마약처방전이 출력되지","E007");
- return;
- }
- if(parseInt(sNarcStat, 10) > 3){ // [출력완료] 상태 이상일 때
- sysf_messageBox("이미 조제완료된 처방","E008");
- return;
- }
- // 경북대병원 일괄처리시 조제완료까지 처리
- if(sNarcStat == "2" && chkAll == "Y") {
- // astfCopyNodeSet("/root/send/narcinfo/narclist", "/root/main/narclist/narclist["+i+"]");
- var nRow = ds_send_narcinfo_narclist.addRow();
- ds_send_narcinfo_narclist.copyRow(nRow,ds_main_narclist_narclist,i);
- sActing_nm = "조제완료";
- iActing_Cnt++;
-
-
- //// 2018년 마약통합관리 정보 저장 데이타set copy 김치국
- var dRow = ds_sendnarcstoc.addRow();
- ds_sendnarcstoc.copyRow(dRow,ds_main_narclist_narclist,i);
- //////
-
- } else { // 불출상태가 [미신청]일때
- sActing_nm = "조제완료";
- }
-
- if(sNarcStat == "3"){ // [출력완료] 일 때만 기능 동작
- // astfCopyNodeSet("/root/send/narcinfo/narclist", "/root/main/narclist/narclist["+i+"]");
- var nRow = ds_send_narcinfo_narclist.addRow();
- ds_send_narcinfo_narclist.copyRow(nRow,ds_main_narclist_narclist,i);
- sActing_nm = "조제완료";
- iActing_Cnt++;
- } else { // 불출상태가 [미신청]일때
- sActing_nm = "조제완료";
- }
- } else if(sActing == "PrcpCncl"){ // ***조제취소***
- if(!utlf_isNull(sCnclStat)){
- if(sysf_messageBox("반환된 처방입니다. 조제취소를", "Q002") == "7") {
- return;
- }
- }
- if(sNarcStat == "4"){ // [조제완료] 상태일 때
- // astfCopyNodeSet("/root/send/narcinfo/narclist", "/root/main/narclist/narclist["+i+"]");
- var nRow = ds_send_narcinfo_narclist.addRow();
- ds_send_narcinfo_narclist.copyRow(nRow,ds_main_narclist_narclist,i);
- iActing_Cnt++;
- }
- sActing_nm = "조제취소";
- } else if(sActing == "Drug"){ // ***불출확인***
- // 경북대병원 일괄처리 추가 (출력 --> 불출까지)
- // if(sNarcStat == "4" && chkAll == "Y" && chkAll1 == "Y"){ // [조제완료] 상태일 때
- // // astfCopyNodeSet("/root/send/narcinfo/narclist", "/root/main/narclist/narclist["+i+"]");
- // var nRow = ds_send_narcinfo_narclist.addRow();
- // ds_send_narcinfo_narclist.copyRow(nRow,ds_main_narclist_narclist,i);
- // iActing_Cnt++;
- // sActing_nm = "불출";
- // }
- // else if 가되어 맞는게 아닐지? 위 조건이 맞는다면 아래쪽도 당연히 타서 두줄이 생성되게 된다..
- if(sNarcStat == "4"){ // [조제완료] 상태일 때
- // astfCopyNodeSet("/root/send/narcinfo/narclist", "/root/main/narclist/narclist["+i+"]");
- var nRow = ds_send_narcinfo_narclist.addRow();
- ds_send_narcinfo_narclist.copyRow(nRow,ds_main_narclist_narclist,i);
- iActing_Cnt++;
- }
- sActing_nm = "불출";
- } else if(sActing == "DrugCncl"){ // ***불출취소***
- if(!utlf_isNull(sCnclStat)) {
- if(sysf_messageBox("반환된 처방입니다. 불출취소를", "Q002") == "7") {
- return;
- }
- }
- if(sNarcStat == "5"){ // [불출] 상태일 때
- // astfCopyNodeSet("/root/send/narcinfo/narclist", "/root/main/narclist/narclist["+i+"]");
- var nRow = ds_send_narcinfo_narclist.addRow();
- ds_send_narcinfo_narclist.copyRow(nRow,ds_main_narclist_narclist,i);
- iActing_Cnt++;
- }
- sActing_nm = "불출취소";
- } else if(sActing == "Spre"){ // ***잔량확인***
- // 20091111 이선경 수정 : 잔량확인 가능한 조건 변경
- // 1. 잔량이 0 이 아닌 경우 (실제 잔량이 있는 경우)는 잔량신청일 경우만 잔량확인이 되도록
- // 2. 잔량이 0 인 경우(빈 앰플반납하는 경우)는 부서확인일 경우만 잔량확인이 되도록
- // 20091201 이선경 수정 : 처방상태가 O 인 경우만 잔량확인 가능하도록 조건 추가
- var spreqty = ds_main_narclist_narclist.getColumn(i, "spreqty");
- if(sPrcphistcd == "O" && ((spreqty > 0 && sRtnStat == "1") || (spreqty == "0" && sNarcStat >= "6" ))) {
- // astfCopyNodeSet("ds_send_narcinfo_narclist", "ds_main_narclist_narclist["+i+"]");
- var nRow = ds_send_narcinfo_narclist.addRow();
- ds_send_narcinfo_narclist.copyRow(nRow,ds_main_narclist_narclist,i);
- iActing_Cnt++;
- // [반환신청] 이거나 [외래] 경구약 혹은 외용제이면서 처방상태(sReturnFlag)가 [D_C]일 경우
- // 반환일시가 존재할때.
- if((sCnclStat == "1" || (sIOflag == "O" && (sDrugKind == "N" || sDrugKind == "Y") && sReturnFlag == "Y"))
- && !utlf_isNull(ds_main_narclist_narclist.getColumn(i, "rtndt"))){
- var vb_prcpcd = ds_main_narclist_narclist.getColumn(i, "prcpcd");
- var vb_Chk = sysf_messageBox(vb_prcpcd+"마약에 대해 반환확인 데이터가 존재합니다.\n반환확인을 ", "Q004");
-
- if(vb_Chk == 6){
- // model.makeValue("/root/send/narcinfo/narclist["+getNodesetCount("/root/send/narcinfo/narclist")+"]/acting_after", "Rtn");
- ds_send_narcinfo_narclist.addColumn("acting_after","string");
- ds_send_narcinfo_narclist.setColumn(ds_send_narcinfo_narclist.rowcount-1,"acting_after","Rtn");
- }
- }
- } else {
- sysf_messageBox(sMsg+"잔량 처리 대상이 아닙니다", "");
- }
-
- sActing_nm = "잔량반납확인";
- } else if(sActing == "SpreCncl"){ // ***잔량취소***
- if(sRtnStat == "2"){ // [잔량확인] 일 때
- // astfCopyNodeSet("/root/send/narcinfo/narclist", "/root/main/narclist/narclist["+i+"]");
- var nRow = ds_send_narcinfo_narclist.addRow();
- ds_send_narcinfo_narclist.copyRow(nRow,ds_main_narclist_narclist,i);
- iActing_Cnt++;
- }
-
- sActing_nm = "잔량취소";
- } else if(sActing == "Rtn"){ // ***반환확인***
- /*
- 1. 입원 약주사, 외래주사는 간호사가 반환신청을 함
- 2. 퇴원/외박/외출은 약국에서 반환을 수행(삭제, 간호에서 반환신청해야함)
- 3. 외래 원내 약/외용약은 약국에서 반환을 수행
- */
- if(sCnclStat == "1"){ // [반환신청]상태일 때 (입원/외래 공통)
- if(!utlf_isNull(ds_main_narclist_narclist.getColumn(i, "rtnqty"))){
- //병동추가 처방도 반환확인시 ast.adthdrug에 반환정보 insert
- if(ds_temp_srchinfo.getColumn(0, "narcflag") == "H") {
- fIptRtnCnts(i);
- }
- // astfCopyNodeSet("ds_send_narcinfo_narclist", "ds_main_narclist_narclist["+i+"]");
- var nRow = ds_send_narcinfo_narclist.addRow();
- ds_send_narcinfo_narclist.copyRow(nRow,ds_main_narclist_narclist,i);
- iActing_Cnt++;
- } else {
- sysf_messageBox("반환량이 없습니다. 반환량을","C001");
- return;
- }
- if(sRtnStat == "1" && !utlf_isNull(ds_main_narclist_narclist.getColumn(i, "rtndt"))) {
- var vb_Chk = sysf_messageBox("잔량확인 데이터가 존재합니다.\n잔랑반납확인을 ", "Q004");
-
- if(vb_Chk == 6){
- // model.makeValue("/root/send/narcinfo/narclist["+getNodesetCount("/root/send/narcinfo/narclist")+"]/acting_after", "Spre");
- ds_send_narcinfo_narclist.addColumn("acting_after","string");
- ds_send_narcinfo_narclist.setColumn(ds_send_narcinfo_narclist.rowcount-1,"acting_after","Spre");
- }
- }
- } else if(sIOflag == "O" && (sDrugKind == "N" || sDrugKind == "Y") && sReturnFlag == "Y"){ // [외래] 경구/외용약이면서 prcphistcd가 D,C 일 때
- if(utlf_isNull(ds_main_narclist_narclist.getColumn(i, "rtnqty"))) {
- sysf_messageBox("반환량이 없습니다. 반환량을","C001");
- return;
- }
- if(isNaN(ds_main_narclist_narclist.getColumn(i, "rtnqty"))){
- sysf_messageBox("반환량은 숫자로","C001");
- ds_main_narclist_narclist.setColumn( i , "rtnqty", "");
- return;
- }
- // astfCopyNodeSet("ds_send_narcinfo_narclist", "ds_main_narclist_narclist["+i+"]");
- var nRow = ds_send_narcinfo_narclist.addRow();
- ds_send_narcinfo_narclist.copyRow(nRow,ds_main_narclist_narclist,i);
- iActing_Cnt++;
- if(sRtnStat == "1" && !utlf_isNull(ds_main_narclist_narclist.getColumn(i, "rtndt"))) {
- var vb_prcpcd = ds_main_narclist_narclist.getColumn(i, "prcpcd");
- var vb_Chk = sysf_messageBox(vb_prcpcd+"마약에 대해 잔량확인 데이터가 존재합니다.\n잔랑반납확인을 ", "Q004");
-
- if(vb_Chk == 6){
- // model.makeValue("/root/send/narcinfo/narclist["+getNodesetCount("/root/send/narcinfo/narclist")+"]/acting_after", "Spre");
- ds_send_narcinfo_narclist.addColumn("acting_after","string");
- ds_send_narcinfo_narclist.setColumn(ds_send_narcinfo_narclist.rowcount-1,"acting_after","Spre");
- }
- }
- }
-
- sActing_nm = "반환확인";
- RtnCnfmYN = "Y";
- rtnprntflag = "Y";
- } else if(sActing == "RtnCncl"){ // ***반환취소***
- if(sCnclStat == "2"){ // [반환확인] 일 때
- // astfCopyNodeSet("/root/send/narcinfo/narclist", "/root/main/narclist/narclist["+i+"]");
- var nRow = ds_send_narcinfo_narclist.addRow();
- ds_send_narcinfo_narclist.copyRow(nRow,ds_main_narclist_narclist,i);
- iActing_Cnt++;
- }
-
- sActing_nm = "반환취소";
- }
- }
- }
-
- //=========================================== 제한조건 체크 Start ===========================================
- if(iActing_Cnt == 0 && utlf_isNull(ds_temp_srchinfo.getColumn(0,"barcode"))) {
- sysf_messageBox("선택된 데이터중에 ["+sActing_nm+"]할 데이터가 없거나 \n선택된 데이터가","I004");
- return;
- } else if(iActing_Cnt == 0 && !utlf_isNull(ds_temp_srchinfo.getColumn(0,"barcode"))) {
- sysf_messageBox("이미","I001");
- ds_temp_srchinfo.setColumn( 0, "barcode","");
- group2.input9.setFocus();
- return;
- }
- ds_send_narcinfo_srchinfo.copyData(ds_temp_srchinfo);
- ds_send_narcinfo_userinfo.copyData(ds_temp_userinfo_userinfo);
- dsf_makeValue(ds_send_narcinfo_srchinfo,"acting","string",sActing);
- //조제확인시 라벨자동출력은 fNarcLBLPrint 함수에서 처방조회시 가져온 ioflag로 체크해서 출력 여부 결정
- //(수정원인 : 외래,병동 전체 조회 후 조제확인시 라벨자동출력이 안되는 현상이 있음)
- //경북대병원 처방전 일괄처리할때 라벨도 같이 출력 되도록 함.
- if ( ds_send.getColumn(0,"lblskip") != "Y" && sActing == "Prcpdrug"){
- fNarcLBLPrintR("Prnt");
- //라벨 출력 횟수 저장
- call_TXADT30102();
- }
- // 반환처방전 자동출력 2009.07.30 pymi
- if(sActing_nm == "반환확인" || RtnCnfmYN == "Y") {
- fNarcPrint();
- }
-
- // 2013년 3월26일 김치국 아래 수행을 밑으로 내림
- call_TXADT30101();
- //액팅전 체크표시 다시 표시
- // grd_narclist.fixedcellischeck(0, 1) = false;
- // grd_outnarc.fixedcellischeck(0, 1) = false;
- // switch1.case1.grd_narclist.setCellProperty("Head",1,"text",0);
- // switch1.case3.grd_outnarc.setCellProperty("Head",1,"text",0);
- chk_grdAll.value = "N";
-
- fChkCash("after");
-
- ds_temp_srchinfo.setColumn(0,"barcode","");
- group2.input9.setFocus();
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 마약처방전 출력
- ****************************************************************************************/
- function fNarcPrint() {
- if(utlf_isNull(ds_temp_userinfo_userinfo.getColumn(0, "userid"))) {
- sysf_messageBox("사용자ID가 없습니다. 사용자ID를 먼저","C001");
- ds_temp_srchinfo.setColumn( 0, "barcode","");
- group2.input9.setFocus();
- return;
- }
-
- var chkAll = ds_send.getColumn(0,"chkall"); //경북대병원 일괄처리 추가
-
- //액팅전 체크표시 cash
- fChkCash("before");
-
- ds_send_prntinfo.clear();
- dsf_copyColInfo(ds_send_prntinfo,ds_main_narclist_narclist);
-
- for(var i = 0; i < ds_main_narclist_narclist.rowcount ; i++){
- var sel = ds_main_narclist_narclist.getColumn(i, "sel");
- var narcstat = ds_main_narclist_narclist.getColumn(i, "narcstat"); // 불출상태
- var cnclstat = ds_main_narclist_narclist.getColumn(i, "cnclstat"); // 반환상태
- var ioflag = ds_main_narclist_narclist.getColumn(i, "ioflag"); // 입원외래구분
- var prntdt = ds_main_narclist_narclist.getColumn(i, "prntdt"); // 처방전출력일시
- var sPid = ds_main_narclist_narclist.getColumn(i, "pid"); // 환자번호
- var sPrcpcd = ds_main_narclist_narclist.getColumn(i, "prcpcd"); // 처방명
- var sDrugno = ds_main_narclist_narclist.getColumn(i, "drugno"); // 투약번호
- var rpt = ds_temp.getColumn(0, "reprnt"); // 재출력구분 경북대병원 처방전 재출력 추가
- var msg = "*투약번호 : "+sDrugno+" *환자번호 : "+ sPid+ " *약품코드 : "+ sPrcpcd + "\n";
- var result = "";
- var prntyn = ""; // 출력가능 여부
-
- if(sel == "Y"){
- // 경북대병원 처방전 재출력시 재출력 체크 하지 않게 함.
- if (rpt=="Y" && narcstat == "1" || rpt == "Y" && narcstat == "2") {
- alert("일괄처리후 재출력할수 있습니다.");
- return;
- }
-
- if(!utlf_isNull(prntdt) && narcstat > 2 && rpt != "Y" && rtnprntflag != "Y") {
- var prntdata = prntdt.substring(0,4) + "년" + prntdt.substring(4,6) + "월" + prntdt.substring(6,8) + "일" +
- prntdt.substring(8,10) + ":" + prntdt.substring(10,12) + ":" + prntdt.substring(12,14);
- result = sysf_messageBox(prntdata + "에 출력한 처방입니다. 재출력을","Q003");
- } else {
- result = "6";
- }
- if(result == "6") {
- ds_send_prntinfo.addRow();
- ds_send_prntinfo.copyRow(0,ds_main_narclist_narclist,i);
- dsf_makeValue(ds_send_prntinfo,"prntid","string",ds_temp_userinfo_userinfo.getColumn(0,"userid"));
-
- // ************************ [반환처방전] 출력 ************************
- if(!utlf_isNull(cnclstat)) {
- if(ioflag == "I"){
- // 반환신청, 반환확인, 반환종료시(출력완료, 조제완료 일 때만) 반환처방전 출력 가능
- // 반환신청일때는 제외, 반환확인, 반환종료상태만 가능
- // 2013년 3월 26일 김치국 반환신청(cnclstat == "1")일때도 처방전 출력으로 원복
- if(cnclstat == "1" || cnclstat == "2" || (parseInt(narcstat) >= 3 && parseInt(narcstat) <= 4 && cnclstat == "7")){
- dsf_makeValue(ds_send_prntinfo,"prntflag","string","D");
- prntyn = "Y";
- } else {
- if(cnclstat == "7" ){
- //메세지처리 반환종료 된 처방입니다.
- sysf_messageBox(msg+"반환","I002");
- continue;
- } else {
- //메세지처리 반환확인해야 합니다.
- sysf_messageBox(msg+"반환확인시 반환처방전 출력","I006");
- continue;
- }
- continue;
- }
- } else {
- if(cnclstat == "0"){
- //반환확인후 출력가능합니다.
- sysf_messageBox(msg+"반환확인후 출력","I006");
- continue;
- } else {
- dsf_makeValue(ds_send_prntinfo,"prntflag","string","D");
- prntyn = "Y";
- }
- }
- // ************************ [마약처방전] 출력 ************************
- } else {
- if(narcstat == "1"){
- //불출신청이 되어야 출력가능합니다.
- sysf_messageBox(msg+"불출신청 이후 출력","I006");
- continue;
- } else {
- dsf_makeValue(ds_send_prntinfo,"prntflag","string","O");
- prntyn = "Y";
- }
- }
-
- if(prntyn == "Y"){
- call_TRADT30103();
- if(!utlf_isNull(ds_main_prntlist_patinfo.getColumn(0, "drugno"))) {
- //처방전에 DUR이 존재하면 RFADT30105 존재하지 않으면 RFADT30100 출력
- var resn = ds_main_prntlist_resn.getColumn(0, "resnnm");
- // 반환일경우 수량에 (-) 표시
- if (cnclstat == "0" || cnclstat == "1" || cnclstat == "2" || cnclstat == "7" ) {
- var totdrugqty = ds_main_prntlist_prntlist.getColumn(0, "totdrugqty");
- totdrugqty = totdrugqty * -1 ;
- ds_main_prntlist_prntlist.setColumn( 0, "totdrugqty", totdrugqty );
- }
-
- if( utlf_isNull(resn) ){
- //1일기준인지 1회기준인지 체크하여 컬럼을 hidden
- var colHidnValue = lf_grdBaseColHidn("D");
- if( colHidnValue == "C") {//1회 기준
- dsf_makeValue(ds_main_prntlist_patinfo,"prcpvolchk","string","Y");
- }
- // 경북대병원_마약처방전 폼 변경
- // RFADT30100 ==> RFADT30106
- // RFADT30105 ==> RFADT30107
- // exeReportPreview("RFADT30106", "XMLSTR", "", "", "true","","","","","true");
- var objCxtCommon = new ExtCommon();
- var objImgeData = objCxtCommon.encodeBase64(ds_main_prntlist_patinfo.getColumn(0, "signdata"));
- ds_main_prntlist_patinfo.addColumn("sign","string");
- ds_main_prntlist_patinfo.setColumn(0, "sign", objImgeData);
-
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "/root/main/prntlist/prntlist", ds_main_prntlist_prntlist); // 데이터셋 1
- rptf_setNodeListToDOM(objDOM, "/root/main/prntlist/patinfo" , ds_main_prntlist_patinfo); // 데이터셋 2
- rptf_setNodeListToDOM(objDOM, "/root/main/prntlist/diaginfo", ds_main_prntlist_diaginfo); // 데이터셋 3
- rptf_setNodeListToDOM(objDOM, "/root/temp/userinfo/userinfo", ds_temp_userinfo_userinfo); // 데이터셋 4
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
-
- var option = "open=0;save=0;directprint=1;printdialog=0;print=0;zoom=0;";
- var prtOption = "printername=";
- rptf_exeReportPreview30(["RFADT30106"],[objParam], option, prtOption);
- }else{
- // exeReportPreview("RFADT30107", "XMLSTR", "", "", "true","","","","","true");
- var objCxtCommon = new ExtCommon();
- var objImgeData = objCxtCommon.encodeBase64(ds_main_prntlist_patinfo.getColumn(0, "signdata"));
- ds_main_prntlist_patinfo.addColumn("sign","string");
- ds_main_prntlist_patinfo.setColumn(0, "sign", objImgeData);
-
- var objDOM1 = rptf_createDOM(); // DOM 객체 설정
- var objDOM2 = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM1, "/root/main/prntlist/prntlist" , ds_main_prntlist_prntlist); // 데이터셋 1
- rptf_setNodeListToDOM(objDOM1, "/root/main/prntlist/patinfo" , ds_main_prntlist_patinfo); // 데이터셋 2
- rptf_setNodeListToDOM(objDOM1, "/root/main/prntlist/diaginfo" , ds_main_prntlist_diaginfo); // 데이터셋 3
- rptf_setNodeListToDOM(objDOM1, "/root/main/prntlist/resn" , ds_main_prntlist_resn); // 데이터셋 4
-
- rptf_setNodeListToDOM(objDOM2, "/root/main/prntlist/resn" , ds_main_prntlist_resn); // 데이터셋 1
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM1.documentElement.source; // 최상의노드 XML 스트링 추출
- objParam.xml_data_XML2 = objDOM2.documentElement.source; // 최상의노드 XML 스트링 추출
-
- var option = "open=0;save=0;directprint=1;printdialog=0;print=0;zoom=0;";
- var prtOption = "printername=";
- rptf_exeReportPreview30(["RFADT30107"],[objParam], option, prtOption);
- }
- }
- }
- }
- }
- }
- // 20101206 wify 경북대병원 처방전 출력후 체크표시 및 출력완료 표시
- if ( utlf_isNull(chkAll) ) {
- fGetNarcData();
-
- // grd_narclist.fixedcellischeck(0, 1) = false;
- // grd_outnarc.fixedcellischeck(0, 1) = false;
- // switch1.case1.grd_narclist.setCellProperty("Head",1,"text",0);
- // switch1.case3.grd_outnarc.setCellProperty("Head",1,"text",0);
- chk_grdAll.value = "N";
-
- //액팅전 체크표시 다시 표시
- fChkCash("after");
- }
- }
- /****************************************************************************************
- * Argument : chk - 출력구분
- * Description : 마약라벨 출력 (사용안함 - fNarcLBLPrintR 로 대체)
- ****************************************************************************************/
- function fNarcLBLPrint(chk) {
- // var reprint="";
- //
- // model.copyNode("/root/init/barcdprntsetup", "/root/main/barcdprntsetup");
- //
- // //20091015 이선경 수정 : 자동출력 기본이 병동(퇴원제외)만이나 lbltype3이 "Y"이면 외래, 퇴원도 모두 출력됨
- // var lbltype3 = model.getValue("/root/init/lbltype/item/lbltype3");
- //
- // for(var i = grd_narclist.fixedRows; i < grd_narclist.rows; i++){
- // var sel = model.getValue("/root/main/narclist/narclist["+i+"]/sel");
- // var sNarcStat = model.getValue("/root/main/narclist/narclist["+i+"]/narcstat");
- // var ioflag = model.getValue("/root/main/narclist/narclist["+i+"]/ioflag");
- // var drugflag = model.getValue("/root/main/narclist/narclist["+i+"]/drugflag");
- // var sPrcphistcd = model.getValue("/root/main/narclist/narclist["+ i +"]/prcphistcd"); // 2010.03.15 pymi
- // //model.removeNodeset("/root/send/narcinfo/narclist");
- //
- // //20091015 이선경 수정 : 조제확인시 라벨자동출력은 fNarcLBLPrint 함수에서 처방조회시 가져온 ioflag로 체크해서 출력 여부 결정
- // //(수정원인 : 외래,병동 전체 조회 후 조제확인시 라벨자동출력이 안되는 현상이 있음)
- //
- // if(sel == 'Y' && ((chk == "Prnt" && sNarcStat == "3" && sPrcphistcd != "D" && (lbltype3 == "Y" || (ioflag == "I" && drugflag != "L" && drugflag != "G"))) || (chk == "Reprnt" && parseInt(sNarcStat,10) > 3))){ // 2010.03.15 pymi 반환완료된 처방 제외
- // // Comm 설정
- // //CommAX.CommPort = "1"; // 출력 Port
- // //CommAX.Settings = "9600,n,8,1"; // Comm 설정
- // PrnKind = model.getvalue("/root/init/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
- // PrnMarginLeft = model.getvalue("/root/init/barcdprntsetup/prntsetupinfo/setupinfo/blank/left");
- // PrnMarginTop = model.getvalue("/root/init/barcdprntsetup/prntsetupinfo/setupinfo/blank/top");
- // var commkind = model.getvalue("/root/init/barcdprntsetup/prntsetupinfo/setupinfo/commkind")
- // if ( PrnKind ==7 ) {
- // CommAX.PrnKind =4;
- // } else {
- // CommAX.PrnKind =PrnKind;
- // }
- //
- // if(commkind == "02") {
- // CommAX.PortNm = 1;
- // } else {
- // CommAX.PortNm = 2;
- // }
- //
- // if(commkind == "01") {
- // CommAX.PrtNm = model.getvalue("/root/init/barcdprntsetup/prntsetupinfo/setupinfo/comm01/setupval");
- // }
- //
- // var sSndMsg = ""; //라벨출력내용
- //
- // if ( model.getValue("/root/main/narclist/narclist["+i+"]/lblprnttims")>0 ){
- // reprint ="(재)";
- // }
- //
- // //astfCopyNodeSet("/root/send/narcinfo/narclist", "/root/main/narclist/narclist["+i+"]");
- //
- // //if ( CommAX.PortOpen() == true) {
- // //시작(X, Y)
- // sSndMsg += astfStartFormat(0, 0, "S");
- // //라벨이름
- // var nm = "";
- // if(model.getValue("/root/main/narclist/narclist["+i+"]/narcflag") == "M") {
- // nm = "마 약";
- // }else {
- // nm = "향 정";
- // }
- // sSndMsg += astfPrintOut(50, 40, 10, nm,"");
- //
- // //처방일자
- // sSndMsg += astfPrintOut(245, 40, 34, fGetDateString(model.getValue("/root/main/narclist/narclist["+i+"]/prcpdd")),"");
- // //환자번호
- // sSndMsg += astfPrintOut(245, 75, 34, model.getValue("/root/main/narclist/narclist["+i+"]/pid"),"");
- // //수행부서명
- // var issdept = model.getValue("/root/main/narclist/narclist["+i+"]/issdeptcdnm");
- // sSndMsg += astfPrintOut(35, 120, 3,issdept.substring(0, 5) ,"");
- // //병실
- // sSndMsg += astfPrintOut(150, 120, 3, "("+model.getValue("/root/main/narclist/narclist["+i+"]/roomcd") + ")","");
- // //환자이름+투약번호
- // var sPid_Drugno = model.getValue("/root/main/narclist/narclist["+i+"]/patnm")
- // + " (" + model.getValue("/root/main/narclist/narclist["+i+"]/drugno")+reprint + ")";
- // sSndMsg += astfPrintOut(245, 120, 3, sPid_Drugno,"");
- // //선그리기
- // sSndMsg += astfGraphicBox(10, 155, 450, 0, 3);
- //
- // //마약코드
- // sSndMsg += astfPrintOut(30, 170, 3, model.getValue("/root/main/narclist/narclist["+i+"]/prcpcd"),"");
- //
- // //1일기준인지 1회기준인지 체크
- // var colHidnValue = grdBaseColHidn("D");
- // if( colHidnValue == "C") {//1회 기준
- // //일용량
- // sSndMsg += astfPrintOut(250, 170, 4, model.getValue("/root/main/narclist/narclist["+i+"]/prcpvol2")+model.getValue("/root/main/narclist/narclist["+i+"]/prcpvolunit"),"");
- // //일수량
- // sSndMsg += astfPrintOut(360, 170, 4, model.getValue("/root/main/narclist/narclist["+i+"]/prcpqty2")+model.getValue("/root/main/narclist/narclist["+i+"]/prcpqtyunit"),"");
- // } else {
- // //일용량
- // sSndMsg += astfPrintOut(250, 170, 4, model.getValue("/root/main/narclist/narclist["+i+"]/prcpvol")+model.getValue("/root/main/narclist/narclist["+i+"]/prcpvolunit"),"");
- // //일수량
- // sSndMsg += astfPrintOut(360, 170, 4, model.getValue("/root/main/narclist/narclist["+i+"]/totdrugqty")+model.getValue("/root/main/narclist/narclist["+i+"]/prcpqtyunit"),"");
- // }
- //
- // //마약명칭
- // sSndMsg += astfPrintOut(30, 210, 28, "("+model.getValue("/root/main/narclist/narclist["+i+"]/drugnm")+")","");
- //
- // // 바코드(21자리) : 마약구분(1)+입원/외래구분(1)+반납구분(1)+처방일자(8)+처방번호(10)
- // var narcflag = model.getValue("/root/main/narclist/narclist["+i+"]/narcflag");
- // var ioflag = model.getValue("/root/main/narclist/narclist["+i+"]/ioflag");
- // var returnflag = model.getValue("/root/main/narclist/narclist["+i+"]/returnflag");
- // if(returnflag ==""){
- // returnflag = "O";
- // } else {
- // returnflag = "D";
- // }
- // var prcpdd = model.getValue("/root/main/narclist/narclist["+i+"]/prcpdd");
- // var prcpno = model.getValue("/root/main/narclist/narclist["+i+"]/prcpno");
- // var drugseqno ="";
- // if ( ioflag =="O" ){
- // drugseqno = model.getValue("/root/main/narclist/narclist["+i+"]/drugseqno");
- // }
- // var iLen = prcpno.length;
- // for(var j=iLen; j<10; j++) {
- // prcpno = "0" + prcpno;
- // }
- //
- // var sResult = narcflag+ioflag+returnflag+prcpdd+prcpno+drugseqno;
- //
- // //바코드(변환)
- // if(PrnKind == "2" || PrnKind == "7" ) {
- // sSndMsg += astfBarCode_Code39(100, 242, "N", 40, sResult, "S");
- // } else {
- // sSndMsg += astfBarCode_Code39(30, 245, "N", 40, sResult, "S");
- // }
- // //sSndMsg += astfPrintOut(30, 310, 28, sResult,"");
- // //처방입력일시
- // sSndMsg += astfPrintOut(30, 310, 28, "처방입력일시 : "+fGetDateString(model.getValue("/root/main/narclist/narclist["+i+"]/rgstdt")),"");
- //
- //
- // sSndMsg += astfEndFormat(0);
- // CommAX.SendMsg(sSndMsg);
- // sSndMsg = "";
- //
- // gTimer = window.setInterval("fStopTimer()",10000);
- //
- // //CommAX.PortClose();
- // model.refresh();
- //
- // //}
- // }
- // }
- // //submit("TXADT30102");
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 사용안함
- ****************************************************************************************/
- function fStopTimer() {
- // window.clearinterval(gTimer);
- }
- /****************************************************************************************
- * Argument : s - 문자열
- * Description : 날자 Mask 적용
- ****************************************************************************************/
- function fGetDateString(s){
- var dates = "";
- if(s.length > 8){
- dates = s.substring(0,4) +"/" +s.substring(4,6)+"/" +s.substring(6,8)+" "+s.substring(8,10)+":"+s.substring(10,12)+":"+s.substring(12,14);
- } else {
- dates = s.substring(0,4) +"/" +s.substring(4,6)+"/" +s.substring(6,8);
- }
- return dates;
- }
- /****************************************************************************************
- * Argument : rowid - 행
- * Description : 반환량입력시
- ****************************************************************************************/
- function fIptRtnCnts(rowid) {
- var RtnCnts = ds_main_narclist_narclist.getColumn(rowid,"rtnqty");
- var RtnCnfmDt = ds_main_rtnlist_rtnlist.getColumn(rowid,"rtncnfmdt");
- if(!utlf_isNull(RtnCnts)) {
- //반납의뢰인 약품만 반납처리함
- if(!utlf_isNull(RtnCnfmDt)){
- sysf_messageBox("반환종료된 약품","E008");
- return;
- }
-
- //반납량을 입력하지 않았을 경우
- if(RtnCnts == "0"){
- sysf_messageBox("반환량을","C001");
- ds_main_narclist_narclist.setColumn(rowid,"rtnqty", "");
- return;
- }
- if(isNaN(RtnCnts)){
- sysf_messageBox("반환량은 숫자로","C001");
- ds_main_narclist_narclist.setColumn(rowid,"rtnqty", "");
- return;
- }
-
- //반납로직을 위한 변수 선언
- var IOFlag = ds_main_narclist_narclist.getColumn(rowid, "ioflag");
- var PrcpClscd = ds_main_narclist_narclist.getColumn(rowid, "prcpclscd");
- var PrcpGenrflag = ds_main_narclist_narclist.getColumn(rowid, "prcpgenrflag");
- var PrcpKindcd = ds_main_narclist_narclist.getColumn(rowid, "prcpkindcd");
-
-
- if(IOFlag == "O"){
- //수가계산방식에 따른 변화량
- var sCalcmthdcd = ds_main_narclist_narclist.getColumn(rowid, "calcmthdcd");
- //반납재고량 계산을 위한 변수 선언
- var DeliveCrite = ds_main_narclist_narclist.getColumn(rowid, "delivecrite");
- var iRtnCnts = parseInt(RtnCnts, 10);
- var iLimitCnts = 0;
- var PrcpQty = parseFloat(ds_main_narclist_narclist.getColumn(rowid, "prcpqty"));
- var DayPrcpQty = parseFloat(ds_main_narclist_narclist.getColumn(rowid, "dayprcpqty"));
- var PrcpTims = parseInt(ds_main_narclist_narclist.getColumn(rowid, "prcptims"), 10);
- var PrcpDayno = parseInt(ds_main_narclist_narclist.getColumn(rowid, "prcpdayno"), 10);
- var RtnStocQty = 0;
-
- if(PrcpClscd == "A4" || sCalcmthdcd == 4){
- //외래 외용제 (수량반납)
- if(sCalcmthdcd == 4){
- iLimitCnts = DayPrcpQty;
- } else if(sCalcmthdcd == 5){
- iLimitCnts = DayPrcpQty*PrcpDayno;
- } else {
- iLimitCnts = DayPrcpQty*PrcpDayno;
- }
-
- if(iRtnCnts > iLimitCnts){
- sysf_messageBox("반납 가능한 양을","E003");
- ds_main_narclist_narclist.setColumn(rowid, "rtncnts", "");
- return;
- }
-
- RtnStocQty = fCalStocQty("Q", DeliveCrite, iRtnCnts, "", "", rowid);
-
- //투약내역에 들어간 반납결과 수치 계산
- ds_main_narclist_narclist.setColumn(rowid, "rtndrugtims" , ds_main_narclist_narclist.getColumn(rowid, "prcptims"));
- ds_main_narclist_narclist.setColumn(rowid, "rtndrugdayno", ds_main_narclist_narclist.getColumn(rowid, "prcpdayno"));
- } else if(PrcpGenrflag == "O" ||
- ((PrcpGenrflag == "I" || PrcpGenrflag == "E" || PrcpGenrflag == "D") && (PrcpKindcd == "50" || PrcpKindcd == "60" || PrcpKindcd == "70")) ){
- //외래 약주사 또는 입원에서 전환된 퇴원/외출/외박약 (일수반납)
- iLimitCnts = PrcpDayno;
-
- if(iRtnCnts > iLimitCnts){
- sysf_messageBox("반납 가능한 양을","E003");
- ds_main_narclist_narclist.setColumn(rowid, "rtncnts", "");
- return;
- }
- RtnStocQty = fCalStocQty("D", DeliveCrite, iRtnCnts, PrcpQty, PrcpTims, rowid);
-
- //투약내역에 들어간 반납결과 수치 계산
- ds_main_narclist_narclist.setColumn(rowid, "rtndrugtims" , ds_main_narclist_narclist.getColumn(rowid, "prcptims"));
- ds_main_narclist_narclist.setColumn(rowid, "rtndrugdayno", iRtnCnts);
- } else if(PrcpGenrflag == "I" || PrcpGenrflag == "E" || PrcpGenrflag == "D"){
- //입원에서 전환된 그외 처방 (횟수반납)
- iLimitCnts = PrcpTims*PrcpDayno;
-
- if(iRtnCnts > iLimitCnts){
- sysf_messageBox("반납 가능한 양을","E003");
- ds_main_narclist_narclist.setColumn(rowid, "rtncnts", "");
- return;
- }
-
- RtnStocQty = fCalStocQty("T", DeliveCrite, iRtnCnts, PrcpQty, "", "", rowid);
-
- //투약내역에 들어간 반납결과 수치 계산
- var temp = iRtnCnts%PrcpDayno;
- var RtnDrugDayno = 0;
- var RtnDrugTims = 0;
- RtnDrugTims = iRtnCnts;
- RtnDrugDayno = 1;
-
- ds_main_narclist_narclist.setColumn(rowid, "rtndrugtims" , RtnDrugTims);
- ds_main_narclist_narclist.setColumn(rowid, "rtndrugdayno", RtnDrugDayno);
- }
- } else if(IOFlag == "I"){
- //반납재고량 계산을 위한 변수 선언
- var DeliveCrite = ds_main_narclist_narclist.getColumn(rowid, "delivecrite");
- var iRtnCnts = parseInt(RtnCnts, 10);
- var iLimitCnts = 0;
- var PrcpQty = parseFloat(ds_main_narclist_narclist.getColumn(rowid, "prcpqty"));
- var DayPrcpQty = parseFloat(ds_main_narclist_narclist.getColumn(rowid, "dayprcpqty"));
- var PrcpTims = parseInt(ds_main_narclist_narclist.getColumn(rowid, "prcptims"), 10);
- var PrcpDayno = parseInt(ds_main_narclist_narclist.getColumn(rowid, "prcpdayno"), 10);
- var RtnStocQty = 0;
-
- if(PrcpClscd == "A4"){
- //외래 외용제 (수량반납)
- if(sCalcmthdcd == 4){
- iLimitCnts = DayPrcpQty;
- } else if(sCalcmthdcd == 5){
- iLimitCnts = DayPrcpQty*PrcpDayno;
- } else {
- iLimitCnts = DayPrcpQty*PrcpDayno;
- }
-
- if(iRtnCnts > iLimitCnts){
- sysf_messageBox("반납 가능한 양을","E003");
- ds_main_narclist_narclist.setColumn(rowid, "rtncnts", "");
- return;
- }
-
- RtnStocQty = fCalStocQty("Q", DeliveCrite, iRtnCnts, "", "", rowid);
-
- //투약내역에 들어간 반납결과 수치 계산
- ds_main_narclist_narclist.setColumn(rowid, "rtndrugtims" , ds_main_narclist_narclist.getColumn(rowid, "prcptims"));
- ds_main_narclist_narclist.setColumn(rowid, "rtndrugdayno", ds_main_narclist_narclist.getColumn(rowid, "prcpdayno"));
- } else if(PrcpGenrflag == "O" ||
- ((PrcpGenrflag == "I" || PrcpGenrflag == "E" || PrcpGenrflag == "D") && (PrcpKindcd == "50" || PrcpKindcd == "60" || PrcpKindcd == "70")) ){
- //외래 약주사 또는 입원에서 전환된 퇴원/외출/외박약 (일수반납)
- iLimitCnts = PrcpDayno;
-
- if(iRtnCnts > iLimitCnts){
- sysf_messageBox("반납 가능한 양을","E003");
- ds_main_narclist_narclist.setColumn(rowid, "rtncnts", "");
- return;
- }
-
- RtnStocQty = fCalStocQty("D", DeliveCrite, iRtnCnts, PrcpQty, PrcpTims, rowid);
-
- //투약내역에 들어간 반납결과 수치 계산
- ds_main_narclist_narclist.setColumn(rowid, "rtndrugtims" , ds_main_narclist_narclist.getColumn(rowid, "prcptims"));
- ds_main_narclist_narclist.setColumn(rowid, "rtndrugdayno", iRtnCnts);
- } else if(PrcpGenrflag == "I" || PrcpGenrflag == "E" || PrcpGenrflag == "D"){
- //입원에서 전환된 그외 처방 (횟수반납)
- iLimitCnts = PrcpTims*PrcpDayno;
-
- if(iRtnCnts > iLimitCnts){
- sysf_messageBox("반납 가능한 양을","E003");
- ds_main_narclist_narclist.setColumn(rowid, "rtncnts", "");
- return;
- }
-
- RtnStocQty = fCalStocQty("T", DeliveCrite, iRtnCnts, PrcpQty, "", rowid);
-
- //투약내역에 들어간 반납결과 수치 계산
- var temp = iRtnCnts%PrcpDayno;
- var RtnDrugDayno = 0;
- var RtnDrugTims = 0;
- RtnDrugTims = iRtnCnts;
- RtnDrugDayno = 1;
-
- ds_main_narclist_narclist.setColumn(rowid, "rtndrugtims" , RtnDrugTims);
- ds_main_narclist_narclist.setColumn(rowid, "rtndrugdayno", RtnDrugDayno);
- }
- }
-
- ds_main_narclist_narclist.setColumn(rowid, "rtnstocqty", fChkFloat(RtnStocQty));
- ds_main_narclist_narclist.setColumn(rowid, "sel", "Y");
- }
- }
- /****************************************************************************************
- * Argument : qty - number
- * Description : fChkFloat
- ****************************************************************************************/
- function fChkFloat(qty) {
- var fQty = parseFloat(qty);
- var fRst = "";
-
- if(fQty%1 == 0){
- fRst = parseInt(qty);
- } else {
- fRst = qty;
- }
-
- return fRst;
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 병동/외래구분 체크시 - 사용안함
- ****************************************************************************************/
- function fChkIOFlag() {
- var chk = ds_temp_srchinfo.getColumn(0, "srchioflag");
- if(chk.length == 7){
- ds_temp_srchinfo.setColumn( 0, "iototalflag", "T");
- } else {
- ds_temp_srchinfo.setColumn( 0, "iototalflag", "");
- }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : userid 변경시
- ****************************************************************************************/
- function fChgUserID() {
- var sUserid = ds_temp_srchinfo.getColumn(0,"srchid");
- ds_send_userinfo.setColumn( 0, "userid", sUserid);
- dsf_createDsRow("ds_req", [
- {col:"userid", type:"STRING", size:256, val:ds_send_userinfo.getColumn(0,"userid")}
- ]);
- var oParam = {};
- oParam.id = "TRADT30104";
- oParam.service = "pharmacyprescriptionapp.DrugReturn";
- oParam.method = "reqGetUserInfo";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_temp_userinfo_userinfo=userinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRADT30104";
- tranf_submit(oParam);
- if(utlf_isNull(ds_temp_userinfo_userinfo.getColumn(0, "userid"))){
- sysf_messageBox("사용자ID 정보가 없습니다.\n다시","C001");
- ds_temp_srchinfo.setColumn( 0, "srchid","");
- group2.ipt_srchid.setFocus();
- } else {
- ds_temp_srchinfo.setColumn( 0, "srchid","");
- group2.ipt_srchid.setFocus();
- group2.input9.setFocus();
- }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 토글클릭시 - 사용안함
- ****************************************************************************************/
- function fClickToggle(chk) {
- if(chk == "1"){
- ds_temp_srchinfo.setColumn( 0, "srchroot", "M");
- } else if(chk == "2"){
- ds_temp_srchinfo.setColumn( 0, "srchroot", "R");
- }
-
- fChgSwitch();
- fGetNarcData();
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 입원외래구분 클릭시
- ****************************************************************************************/
- function fChgIOFlag() {
- var ioflag = ds_temp_srchinfo.getColumn(0, "srchioflag");
- // ========================== 병동, 퇴원_외박_외출 radio 컨트롤 visible ==========================
- if(ioflag == "O"){
- ds_temp_srchinfo.setColumn( 0, "drugflag", "");
- group2.rdo_drugflag.visible = false;
- switch1.case3.grd_outnarc.setFormatColProperty(switch1.case3.grd_outnarc.getBindCellIndex("body","prcpkindnm"),"size",0); //처방구분숨기기
- if(ds_temp_srchinfo.getColumn(0, "narcflag") == "H") {
- //group2.combo2.index = 3; //외래향정일때 실시일자
- } else {
- group2.combo2.index = 1; //그외 적용일자
- }
- } else if(ioflag == "I"){
- ds_temp_srchinfo.setColumn( 0, "drugflag", "I");
- group2.rdo_drugflag.visible = true;
- switch1.case3.grd_outnarc.setFormatColProperty(switch1.case3.grd_outnarc.getBindCellIndex("body","prcpkindnm"),"size",52); //처방구분보이기
- group2.combo2.index = 1; //그외 적용일자
- }
- // =========================================================================================
- // ========================== 병동 Combo 조회===========================
- dsf_makeValue(ds_send_srchcond,"deptflag","string","W");
-
- dsf_createDsRow("ds_req", [
- {col:"deptflag", type:"STRING", size:256, val:ds_send_srchcond.getColumn(0,"deptflag")}
- ]);
- var oParam = {};
- oParam.id = "TRADT30401";
- oParam.service = "pharmacyprescriptionapp.Narcotics";
- oParam.method = "reqGetNursSrchList";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_temp_srchcond_dept=dept";
- oParam.async = false;
- //oParam.callback = "cf_TRADT30401";
- tranf_submit(oParam);
-
-
- ds_temp_drugdeptinfo_dept.copyData(ds_temp_srchcond_dept); //수행부서 셋팅
-
- dsf_addDsItem(ds_temp_drugdeptinfo_dept,"deptcd","deptnm","수술실 마취","3073100000"); //수행부서 셋팅
- dsf_addDsItem(ds_temp_drugdeptinfo_dept,"deptcd","deptnm","수술실 회복실","3073300000"); //수행부서 셋팅
- dsf_addDsItem(ds_temp_drugdeptinfo_dept,"deptcd","deptnm","전체",""); //???
- dsf_addDsItem(ds_temp_srchcond_dept,"deptcd","deptnm","3073100000","수술실 마취"); //불출신청부서 셋팅
- dsf_addDsItem(ds_temp_srchcond_dept,"deptcd","deptnm","3073300000","수술실 회복실"); //불출신청부서 셋팅
-
- dsf_createDsRow("ds_req", [
- {col:"deptcd", type:"STRING", size:256, val:""}
- ]);
- var oParam = {};
- oParam.id = "TRADT30405";
- oParam.service = "pharmacyprescriptionapp.Narcotics";
- oParam.method = "reqGetOutDeptInfo";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_temp_dutdeptinfo_dept=dept";
- oParam.async = false;
- //oParam.callback = "cf_TRADT30405";
- tranf_submit(oParam);
-
- dsf_copyDs(ds_temp_drugdeptinfo_dept, ds_temp_dutdeptinfo_dept, "after");
- dsf_copyDs(ds_temp_srchcond_dept, ds_temp_dutdeptinfo_dept, "after");
- dsf_addDsItem(ds_temp_srchcond_dept,"deptcd","deptnm","","");
- fChgSwitch();
- fGetNarcData();
-
- call_TRADT30101();
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : switch case변경
- ****************************************************************************************/
- function fChgSwitch() {
- var srchroot = ds_temp_srchinfo.getColumn(0, "srchroot");
- var ioflag = ds_temp_srchinfo.getColumn(0, "srchioflag");
- var drugflag = ds_temp_srchinfo.getColumn(0, "drugflag");
- if(srchroot == "M"){
- if(ioflag == "O"){
- switch1.tabindex = 2;
- } else {
- if(drugflag == "L"){
- switch1.tabindex = 2;
- } else {
- switch1.tabindex = 0;
- }
- }
- } else if(srchroot == "R"){
- switch1.tabindex = 1;
- }
- }
- /****************************************************************************************
- * Argument : param_grid
- * Description : 환자별 조회인지 체크
- ****************************************************************************************/
- function fChkPatSearch(param_grid) {
- var pid = ds_temp_srchinfo.getColumn(0,"pid");
-
- if(!utlf_isNull(pid) && param_grid.rowcount != 0){
- for(var i = 0; i < param_grid.rowcount; i++){
- if(ds_main_narclist_narclist.getColumn(i,"narcstat") != "1"){
- ds_main_narclist_narclist.setColumn(i,"sel", "Y");
- }
- }
- }
- }
- /****************************************************************************************
- * Argument : chk - 전후 구분
- * Description : 액팅후 체크표시 cach
- ****************************************************************************************/
- function fChkCash(chk) {
- var pid = ds_temp_srchinfo.getColumn(0,"pid");
- var param_grid = "";
-
- if(switch1.tabindex == 0){
- param_grid = switch1.case1.grd_narclist;
- } else {
- param_grid = switch1.case3.grd_outnarc;
- }
- if(param_grid.rowcount != 0){
- if(chk == "before"){
- ds_temp_chkcashinfo_narclist.clear();
- dsf_copyColInfo(ds_temp_chkcashinfo_narclist,ds_main_narclist_narclist);
-
- for(var i = 0 ; i < param_grid.rowcount ; i++){
- if(ds_main_narclist_narclist.getColumn(i, "sel") == "Y"){
- ds_temp_chkcashinfo_narclist.copyRow(ds_temp_chkcashinfo_narclist.addRow(),ds_main_narclist_narclist,i);
- }
- }
- } else if (chk == "after"){
- for(var a = 0; a < ds_temp_chkcashinfo_narclist.rowcount; a++){
- var cash_prcpdd = ds_temp_chkcashinfo_narclist.getColumn(a, "prcpdd");
- var cash_prcpno = ds_temp_chkcashinfo_narclist.getColumn(a, "prcpno");
-
- for(var b = 0; b < param_grid.rowcount ; b++){
- var search_prcpdd = ds_main_narclist_narclist.getColumn(b, "prcpdd");
- var search_prcpno = ds_main_narclist_narclist.getColumn(b, "prcpno");
-
- if(cash_prcpdd == search_prcpdd && cash_prcpno == search_prcpno){
- ds_main_narclist_narclist.setColumn( b , "sel", "Y");
- }
- }
- }
- }
- }
- }
- /****************************************************************************************
- * Argument : RtnType, DeliveCrite, RtnCnts, Qty, Tims, rowid
- * Description : 불출계산에 따른 반납재고량 계산
- * : 계산 방식
- * : 원처방 불출량(totdrugqty) - 살아있는처방 불출량 계산 = 반환된 불출량
- ****************************************************************************************/
- function fCalStocQty(RtnType, DeliveCrite, RtnCnts, Qty, Tims, rowid) {
- var dResult = 0;
- var PackVol = parseFloat(ds_main_narclist_narclist.getColumn(rowid, "packvol"));
- var NearIntNum = 0;
- var RoundNum = 0;
- //수가계산방식에 따른 변화량
- var sCalcmthdcd = ds_main_narclist_narclist.getColumn(rowid, "calcmthdcd");
-
- if ( utlf_isNull(Tims) ) { Tims = 1; }
-
- if(RtnType == "Q"){
- //수량반납
- //외용약만 수량반납하므로 무조건 올림처리
- dResult = Math.ceil(RtnCnts);
- } else if(RtnType == "T"){
- // 횟수반납
- // 횟수반납시에는 RtnCnts가 횟수이므로 Tims는 제외
- //살아있는 처방 불출량 계산을 위한 횟수 변환
- var iPrcptims = ds_main_narclist_narclist.getColumn(rowid, "prcptims");
- var itotdrugqty = ds_main_narclist_narclist.getColumn(rowid, "totdrugqty");
-
- if(iPrcptims == RtnCnts){
- //살아있는 처방이 없으므로 불출량은 원처방 불출량(totdrugqty)임
- return itotdrugqty;
- } else {
- //살아있는 처방이 있으면 살아있는 처방의 횟수를 계산
- RtnCnts = iPrcptims - RtnCnts;
- }
-
- // 1 : 단가*수량*횟수*일수
- // 4 : 단가*수량
- // 5 : 단가*수량*일수
- if(sCalcmthdcd == "1"){
- //초기화 없이 다 계산처리함
- } else if(sCalcmthdcd == "4" || sCalcmthdcd == "5"){
- //횟수, 일수 1로 초기화
- RtnCnts = "1";
- }
-
- if (DeliveCrite == "1") {
- // 처방대로
- dResult = Math.round(Qty*RtnCnts*1000)/1000;
- } else if (DeliveCrite == "2") {
- // 1/4 1회 올림 --> 1/2 1회 올림 수정
- dResult = Math.round(Math.ceil(Qty)*Tims*RtnCnts*1000)/1000;
- } else if (DeliveCrite == "3") {
- // 1/2 1회 올림
- dResult = Math.round(Math.ceil(Qty)*RtnCnts*1000)/1000;
- } else if (DeliveCrite == "4") {
- // 1/4 1일 올림
- NearIntNum = Math.floor(Qty*Tims);
- RoundNum = (Qty*Tims) - NearIntNum;
-
- if(RoundNum >= 0.5){
- dResult = Math.round((NearIntNum+0.5)*(RtnCnts/Tims)*1000)/1000;
- } else {
- dResult = Math.round((NearIntNum+1)*(RtnCnts/Tims)*1000)/1000;
- }
- } else if (DeliveCrite == "5") {
- // 1/2 1일 올림
- dResult = Math.round(Math.ceil(Qty*Tims)*(RtnCnts/Tims)*1000)/1000;
- } else if (DeliveCrite == "6") {
- // 계산후 올림
- dResult = Math.ceil(Qty*RtnCnts);
- }
- // 원처방 불출량(totdrugqty) - 살아있는처방 불출량 계산 = 반환된 불출량
- dResult = itotdrugqty - dResult;
- } else if(RtnType == "D"){
- //일수반납
- //살아있는 처방 불출량 계산을 위한 횟수 변환
- var iPrcpDayno = ds_main_narclist_narclist.getColumn(rowid, "prcpdayno");
- var itotdrugqty = ds_main_narclist_narclist.getColumn(rowid, "totdrugqty");
-
- if(iPrcpDayno == RtnCnts){
- //살아있는 처방이 없으므로 불출량은 원처방 불출량(totdrugqty)임
- return itotdrugqty;
- } else {
- //살아있는 처방이 있으면 살아있는 처방의 횟수를 계산
- RtnCnts = iPrcpDayno - RtnCnts;
- }
-
- // 1 : 단가*수량*횟수*일수
- // 4 : 단가*수량
- // 5 : 단가*수량*일수
- if(sCalcmthdcd == "1"){
- //초기화 없이 다 계산처리함
- } else if(sCalcmthdcd == "4"){
- //횟수, 일수 1로 초기화
- Tims = "1";
- RtnCnts = "1";
- } else if(sCalcmthdcd == "5"){
- //횟수 1로 초기화
- Tims = "1";
- }
-
- if (DeliveCrite == "1") {
- // 처방대로
- dResult = Math.round(Qty*Tims*RtnCnts*1000)/1000;
- } else if (DeliveCrite == "2") {
- // 1/4 1회 올림 --> 1/2 1회 올림 수정
- dResult = Math.round(Math.ceil(Qty)*Tims*RtnCnts*1000)/1000;
- } else if (DeliveCrite == "3") {
- // 1/2 1회 올림
- dResult = Math.round(Math.ceil(Qty)*Tims*RtnCnts*1000)/1000;
- } else if (DeliveCrite == "4") {
- // 1/4 1일 올림
- NearIntNum = Math.floor(Qty*Tims);
- RoundNum = (Qty*Tims) - NearIntNum;
-
- if(RoundNum >= 0.5){
- dResult = Math.round((NearIntNum+0.5)*RtnCnts*1000)/1000;
- } else {
- dResult = Math.round((NearIntNum+1)*RtnCnts*1000)/1000;
- }
- } else if (DeliveCrite == "5") {
- // 1/2 1일 올림
- dResult = Math.round(Math.ceil(Qty*Tims)*RtnCnts*1000)/1000;
- } else if (DeliveCrite == "6") {
- // 계산후 올림
- dResult = Math.ceil(Qty*Tims*RtnCnts);
- }
- // 원처방 불출량(totdrugqty) - 살아있는처방 불출량 계산 = 반환된 불출량
- dResult = itotdrugqty - dResult;
- }
- return dResult;
- }
- /****************************************************************************************
- * Argument : chk - 출력구분
- * Description : 마약라벨 출력
- ****************************************************************************************/
- function fNarcLBLPrintR(chk) {
- var reprint = "";
- //20091015 이선경 수정 : 자동출력 기본이 병동(퇴원제외)만이나 lbltype3이 "Y"이면 외래, 퇴원도 모두 출력됨
- var lbltype3 = ds_init_lbltype_item.getColumn(0, "lbltype3");
- var prcpclscdflag = "N";
- dsf_createDs("ds_temp_print");
- ds_main_narclist_narclist.filter("sel=='Y'");
- ds_temp_print.copyData(ds_main_narclist_narclist,true);
- ds_main_narclist_narclist.filter("");
- for(var i = 0; i < ds_temp_print.rowcount; i++){
- var sel = ds_temp_print.getColumn(i, "sel");
- var sNarcStat = ds_temp_print.getColumn(i, "narcstat");
- var ioflag = ds_temp_print.getColumn(i, "ioflag");
- var drugflag = ds_temp_print.getColumn(i, "drugflag");
- var sPrcphistcd = ds_temp_print.getColumn(i, "prcphistcd"); // 2010.03.15 pymi
- var pastillyn = ds_temp_print.getColumn(i, "pastillyn"); // 2019.07.10 향정수불여부 마약주사를 향정으로 분류하기 위해
- //20091015 이선경 수정 : 조제확인시 라벨자동출력은 fNarcLBLPrint 함수에서 처방조회시 가져온 ioflag로 체크해서 출력 여부 결정
- //(수정원인 : 외래,병동 전체 조회 후 조제확인시 라벨자동출력이 안되는 현상이 있음)
- if(sel == "Y" && ((chk == "Prnt" && sNarcStat == "2" && sPrcphistcd != "D" && (lbltype3 == "Y" || (ioflag == "I" && drugflag != "L" && drugflag != "G"))) || (chk == "Reprnt" && parseInt(sNarcStat,10) > 3))){ // 2010.03.15 pymi 반환완료된 처방 제외
- var PrnKind = ds_data_setupinfo.getColumn(0, "prntkind");
- var PrnMarginLeft = ds_data_blank.getColumn(0, "left");
- var PrnMarginTop = ds_data_blank.getColumn(0, "top");
- var commkind = ds_data_setupinfo.getColumn(0, "commkind");
- if(ds_temp_print.getColumn(i, "prcpclscd") == "A6") {
- prcpclscdflag = "Y"; // 20120724_주사라벨이 아닐때만
- }
- if ( ds_temp_print.getColumn(i, "lblprnttims") > 0 ){
- reprint ="(재)";
- }
- // 바코드(21자리) : 마약구분(1)+입원_외래구분(1)+반납구분(1)+처방일자(8)+처방번호(10)
- var narcflag = ds_temp_print.getColumn(i, "narcflag");
- var ioflag = ds_temp_print.getColumn(i, "ioflag");
- var returnflag = ds_temp_print.getColumn(i, "returnflag");
- if(utlf_isNull(returnflag)) {
- returnflag = "O";
- } else {
- returnflag = "D";
- }
- var prcpdd = ds_temp_print.getColumn(i, "prcpdd");
- var prcpno = ds_temp_print.getColumn(i, "prcpno");
- var drugseqno = "";
- if ( ioflag =="O" ){
- drugseqno = ds_temp_print.getColumn(i, "drugseqno");
- }
- var iLen = prcpno.length;
- for(var j = iLen ; j < 10 ; j++) {
- prcpno = "0" + prcpno;
- }
- var sResult = narcflag+ioflag+returnflag+prcpdd+prcpno+drugseqno;
- // ds_temp_print.setColumn( i, "barcode", sResult);
- dsf_makeValue(ds_temp_print,"barcode","string",sResult,i);
- //라벨이름
- var nm = "";
- if(ds_temp_print.getColumn(i, "narcflag") == "M") {
- if(pastillyn == "Y") {
- nm ="향 정";
- } else if(pastillyn == "N") {
- nm = "마 약";
- }
- }else {
- nm = "향 정";
- }
- ds_temp_print.setColumn( i , "drugkindnm", nm);
- ds_temp_print.setColumn( i , "prcpdd" , fGetDateString(ds_temp_print.getColumn(i, "prcpdd")) );
- // issdeptcdnm 글자 수 5자이상 자르기 안되게 수정 2011.9.23. jmkim
- var issdept = ds_temp_print.getColumn(i, "issdeptcdnm");
- ds_temp_print.setColumn( i , "issdeptcdnm", issdept + "("+ds_temp_print.getColumn(i, "roomcd") + ")" );
- // issdeptcdnm(발행부서) 문자열 길이가 15자 이상일 때 체크 2011.9.23 jmkim ex. 508병동(무균)(1111)
- var issdeptcdnmvalue = ds_temp_print.getColumn(i, "issdeptcdnm");
- if(issdeptcdnmvalue.length >= 15) ds_temp_print.setColumn( i, "issdeptcdnmlengthflag", "Y");
- var sPid_Drugno = ds_temp_print.getColumn(i, "patnm") + " (" + ds_temp_print.getColumn(i, "drugno")+reprint + ")";
- ds_temp_print.setColumn( i , "patnm", sPid_Drugno);
- // 2015년 1월 15일 김치국
- var unit = ds_temp_print.getColumn(i, "totdrugqty")+ds_temp_print.getColumn(i, "prcpqtyunit");
- // ds_temp_print.setColumn( i, "unit" , unit);
- dsf_makeValue(ds_temp_print,"unit","string",unit,i);
- ds_temp_print.setColumn( i , "drugnm", "("+ds_temp_print.getColumn(i, "drugnm")+")" );
- // 20120719_일일수량과 영문상품명 추가
- // ds_temp_print.setColumn( i, "qtyname", ds_temp_print.getColumn(i, "totdrugqty") + " " + ds_temp_print.getColumn(i, "lblnm"));
- dsf_makeValue(ds_temp_print,"qtyname","string",ds_temp_print.getColumn(i, "totdrugqty") + " " + ds_temp_print.getColumn(i, "lblnm"),i);
- var day = ds_temp_print.getColumn(i, "prcpdayno");
- var prcptims = ds_temp_print.getColumn(i, "prcptims");
- var prcpqty2 = ds_temp_print.getColumn(i, "prcpqty2");
- var prcpqtyunit = ds_temp_print.getColumn(i, "prcpqtyunit");
- // ds_temp_print.setColumn( i, "narcunit", "1일 " + prcptims + "회 " + prcpqty2 + prcpqtyunit + "씩 " + day + "일분");
- dsf_makeValue(ds_temp_print,"narcunit","string","1일 " + prcptims + "회 " + prcpqty2 + prcpqtyunit + "씩 " + day + "일분",i);
- var rgstdt = "처방입력일시 : "+ fGetDateString(ds_temp_print.getColumn(i, "rgstdt")) ;
- ds_temp_print.setColumn( i , "rgstdt" , rgstdt);
- } else {
- ds_temp_print.deleteRow(i);
- i--;
- }
- }
- var instcd = sysf_getUserInfo("dutplceinstcd");
- if(group2.chk_auto.value != "Y") {
-
- var posx = "";
- var posy = "";
- posx = ds_data_pcllist.getColumn(ds_data_pcllist.findRow("barnm","RFADT30111"),"xpos");
- posy = ds_data_pcllist.getColumn(ds_data_pcllist.findRow("barnm","RFADT30111"),"ypos");
- if(utlf_isNull(posx)) posx = "0";
- if(utlf_isNull(posy)) posy = "0";
- var printnm = ds_data_pcllist.getColumn(ds_data_pcllist.findRow("barnm","RFADT30111"),"prtnm");
- if(instcd == "031") { // 20120724_임시로 본원, 칠곡 구분
- // 2015년 4월9일 김치국 마약처방을 ATC출력물로 통일
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "/root/main/narclist/narclist", ds_temp_print); // 데이터셋 1
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
- var option = "open=0;save=0;directprint=1;printdialog=0;print=0;zoom=0;async=true;";
- var prntOtion = "offsetx=" + posx + ";" + "offsety=" + posy + ";" + "printername="+printnm+";";
- rptf_exeReportPreview30(["RFADT30113"],[objParam], option, prntOtion);
- } else {
-
- if(prcpclscdflag == "Y" ) {
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "/root/main/narclist/narclist", ds_temp_print); // 데이터셋 1
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
- var option = "open=0;save=0;directprint=1;printdialog=0;print=0;zoom=0;async=true;";
- var prntOtion = "offsetx=" + posx + ";" + "offsety=" + posy + ";" + "printername="+printnm+";";
- rptf_exeReportPreview30(["RFADT30111"],[objParam], option, prntOtion);
- } else {
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "/root/main/narclist/narclist", ds_temp_print); // 데이터셋 1
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
- var option = "open=0;save=0;directprint=1;printdialog=0;print=0;zoom=0;async=true;";
- var prntOtion = "offsetx=" + posx + ";" + "offsety=" + posy + ";" + "printername="+printnm+";";
- rptf_exeReportPreview30(["RFADT30112"],[objParam], option, prntOtion);
- }
- }
- } else if(group2.chk_auto.value == "Y") {
-
- if(instcd == "031") { // 20120724_임시로 본원, 칠곡 구분
-
- var printnm = "";
- // 2015년 4월9일 김치국 마약처방을 ATC출력물로 통일
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "/root/main/narclist/narclist", ds_temp_print); // 데이터셋 1
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
- var option = "open=0;save=0;directprint=1;printdialog=0;print=0;zoom=0;async=true;";
- var prntOtion = "offsetx=" + posx + ";" + "offsety=" + posy + ";" + "printername="+printnm+";";
- rptf_exeReportPreview30(["RFADT30113"],[objParam], option, prntOtion);
- } else {
-
- if(prcpclscdflag == "Y" ) {
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "/root/main/narclist/narclist", ds_temp_print); // 데이터셋 1
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
- var option = "open=0;save=0;directprint=1;printdialog=0;print=0;zoom=0;async=true;";
- var prntOtion = "offsetx=" + posx + ";" + "offsety=" + posy + ";" + "printername="+printnm+";";
- rptf_exeReportPreview30(["RFADT30111"],[objParam], option, prntOtion);
- } else {
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "/root/main/narclist/narclist", ds_temp_print); // 데이터셋 1
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
- var option = "open=0;save=0;directprint=1;printdialog=0;print=0;zoom=0;async=true;";
- var prntOtion = "offsetx=" + posx + ";" + "offsety=" + posy + ";" + "printername="+printnm+";";
- rptf_exeReportPreview30(["RFADT30112"],[objParam], option, prntOtion);
- }
- }
- }
- call_TRADT30102();
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 자동조회 함수 실행
- ****************************************************************************************/
- function fAutoOutNarc() {
- // 실불출신청 대상 조회
- fGetNarcData();
- autocnt = autocnt + 1;
- group2.cap_automess.text = '자동 출력 '+autocnt+'번 실행중!.';
- if(ds_temp_narclist_narclist.rowcount > 0 && nextFlag == "GO") {
- nextflag = "STOP";
- ds_main_narclist_narclist.clearData();
- dsf_copyColInfo(ds_main_narclist_narclist,ds_temp_narclist_narclist,true);
-
- ds_main_narclist_narclist.addRow();
- ds_main_narclist_narclist.copyRow(0,ds_temp_narclist_narclist,0);
- ds_main_narclist_narclist.setColumn(0,"sel","Y");
- fNarcActing_auto("Prcpdrug");
- }
- }
- /****************************************************************************************
- * Argument : sActing - 실행구분
- * Description : 자동조회 함수 실행
- ****************************************************************************************/
- function fNarcActing_auto(sActing) {
- if(utlf_isNull(ds_temp_userinfo_userinfo.getColumn(0, "userid"))) {
- sysf_messageBox("사용자ID가 없습니다. 사용자ID를 먼저","C001");
- ds_temp_srchinfo.setColumn( 0, "srchid","");
- group2.ipt_srchid.setFocus();
- return;
- }
- var iActing_Cnt = 0; // 행위 구분을 위한 카운트값
- var sActing_nm = ""; // 해당 행위의 명칭
- var sActingAfter = "";
- var selCnt = 0;
- var RtnCnfmYN = "N";
- var chkAll = ds_send.getColumn(0, "chkall"); // 경북대병원 일괄처리 추가
- // var chkAll1 = ds_send.getColumn(0, "chkall1"); // 경북대병원 일괄처리 추가(불출까지)
-
- //액팅전 체크표시 cash
- fChkCash("before");
- ds_send_narcinfo_narclist.clear();
- dsf_copyColInfo(ds_send_narcinfo_narclist,ds_main_narclist_narclist);
-
- ds_send_prntinfo.clear();
- dsf_copyColInfo(ds_send_prntinfo,ds_main_narclist_narclist);
-
- for(var i = 0; i < ds_main_narclist_narclist.rowcount; i++){
- var sel = ds_main_narclist_narclist.getColumn(i, "sel");
- var narcstat = ds_main_narclist_narclist.getColumn(i, "narcstat"); // 불출상태
- var cnclstat = ds_main_narclist_narclist.getColumn(i, "cnclstat"); // 반환상태
- var ioflag = ds_main_narclist_narclist.getColumn(i, "ioflag"); // 입원외래구분
- var prntdt = ds_main_narclist_narclist.getColumn(i, "prntdt"); // 처방전출력일시
- var sPid = ds_main_narclist_narclist.getColumn(i, "pid"); // 환자번호
- var sPrcpcd = ds_main_narclist_narclist.getColumn(i, "prcpcd"); // 처방명
- var sDrugno = ds_main_narclist_narclist.getColumn(i, "drugno"); // 투약번호
- var rpt = ds_temp.getColumn(0, "reprnt"); //재출력구분 경북대병원 처방전 재출력 추가
- if(sel == "Y"){
- // 경북대병원 일괄처리(Prcpdrug)추가
- if(sActing == "Prcpdrug") {
- if(utlf_isNull(chkAll)) {
- sysf_messageBox("일괄처리가 체크되지", "E007");
- return;
- }
-
- if(narcstat == "2" && chkAll == "Y") {
- var nRow = ds_send_narcinfo_narclist.addRow();
- ds_send_narcinfo_narclist.copyRow(nRow,ds_main_narclist_narclist,i);
- sActing_nm = "불출"
- iActing_Cnt++;
-
- //// 2018년 3월 21일 마약통합관리 정보 저장 데이타set copy 김치국
- var dRow = ds_sendnarcstoc.addRow();
- ds_sendnarcstoc.copyRow(dRow,ds_main_narclist_narclist,i);
- //////
-
- } else { // 불출신청 상태가 아닌데 일괄처리시 진행안되게 수정 2014.8.28 김치국
- sysf_messageBox("불출신청 자료만 일괄처리로 처리 할 수 있습니다.");
- return;
- }
- }
- // 처방전
- ds_send_prntinfo.copyRow(ds_send_prntinfo.addRow(),ds_main_narclist_narclist,i);
- dsf_makeValue( ds_send_prntinfo, "prntid" , "string", ds_temp_userinfo_userinfo.getColumn(0, "userid"));
- dsf_makeValue( ds_send_prntinfo, "prntflag" , "string", "O");
- call_TRADT30103();
-
- if(!utlf_isNull(ds_main_prntlist_patinfo.getColumn(0, "drugno"))){
- //처방전에 DUR이 존재하면 RFADT30105 존재하지 않으면 RFADT30100 출력
- var resn = ds_main_prntlist_resn.getColumn(0, "resnnm");
- if( utlf_isNull(resn) ){
- //1일기준인지 1회기준인지 체크하여 컬럼을 hidden
- var colHidnValue = lf_grdBaseColHidn("D");
- if( colHidnValue == "C") {//1회 기준
- dsf_makeValue( ds_main_prntlist_patinfo, "prcpvolchk", "string", "Y");
- }
- //20101119_wify_경북대병원_마약처방전 폼 변경
- // RFADT30100 ==> RFADT30106
- // RFADT30105 ==> RFADT30107
- var objCxtCommon = new ExtCommon();
- var objImgeData = objCxtCommon.encodeBase64(ds_main_prntlist_patinfo.getColumn(0, "signdata"));
- ds_main_prntlist_patinfo.addColumn("sign","string");
- ds_main_prntlist_patinfo.setColumn(0, "sign", objImgeData);
-
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "/root/main/prntlist/prntlist", ds_main_prntlist_prntlist); // 데이터셋 1
- rptf_setNodeListToDOM(objDOM, "/root/main/prntlist/patinfo" , ds_main_prntlist_patinfo); // 데이터셋 2
- rptf_setNodeListToDOM(objDOM, "/root/main/prntlist/diaginfo", ds_main_prntlist_diaginfo); // 데이터셋 3
- rptf_setNodeListToDOM(objDOM, "/root/temp/userinfo/userinfo", ds_temp_userinfo_userinfo); // 데이터셋 4
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
-
- var option = "open=0;save=0;directprint=1;printdialog=0;print=0;zoom=0;";
- var prtOption = "printername=";
- rptf_exeReportPreview30(["RFADT30106"],[objParam], option, prtOption);
- }else{
- var objCxtCommon = new ExtCommon();
- var objImgeData = objCxtCommon.encodeBase64(ds_main_prntlist_patinfo.getColumn(0, "signdata"));
- ds_main_prntlist_patinfo.addColumn("sign","string");
- ds_main_prntlist_patinfo.setColumn(0, "sign", objImgeData);
-
- var objDOM1 = rptf_createDOM(); // DOM 객체 설정
- var objDOM2 = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM1, "/root/main/prntlist/prntlist" , ds_main_prntlist_prntlist); // 데이터셋 1
- rptf_setNodeListToDOM(objDOM1, "/root/main/prntlist/patinfo" , ds_main_prntlist_patinfo); // 데이터셋 2
- rptf_setNodeListToDOM(objDOM1, "/root/main/prntlist/diaginfo" , ds_main_prntlist_diaginfo); // 데이터셋 3
- rptf_setNodeListToDOM(objDOM1, "/root/main/prntlist/resn" , ds_main_prntlist_resn); // 데이터셋 4
-
- rptf_setNodeListToDOM(objDOM2, "/root/main/prntlist/resn" , ds_main_prntlist_resn); // 데이터셋 1
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM1.documentElement.source; // 최상의노드 XML 스트링 추출
- objParam.xml_data_XML2 = objDOM2.documentElement.source; // 최상의노드 XML 스트링 추출
-
- var option = "open=0;save=0;directprint=1;printdialog=0;print=0;zoom=0;";
- var prtOption = "printername=";
- rptf_exeReportPreview30(["RFADT30107"],[objParam], option, prtOption);
- }
- nextFlag ="GO";
- fSleep(sleepTime);
- }
- }
- }
- ds_send_narcinfo_srchinfo.copyData(ds_temp_srchinfo);
- ds_send_narcinfo_userinfo.copyData(ds_temp_userinfo_userinfo);
- dsf_makeValue( ds_send_narcinfo_srchinfo, "acting", "string", sActing);
- //조제확인시 라벨자동출력은 fNarcLBLPrint 함수에서 처방조회시 가져온 ioflag로 체크해서 출력 여부 결정
- //(수정원인 : 외래,병동 전체 조회 후 조제확인시 라벨자동출력이 안되는 현상이 있음)
- //경북대병원 처방전 일괄처리할때 라벨도 같이 출력 되도록 함.
- if ( nextFlag =="GO" && ds_send.getColumn(0,"lblskip") != "Y" && sActing == "Prcpdrug"){
- fNarcLBLPrintR("Prnt");
- call_TXADT30102();
- }
-
- call_TXADT30101();
- //액팅전 체크표시 다시 표시
- fChkCash("after");
- }
- /****************************************************************************************
- * Argument : numberMillis - 1초
- * Description : fSleep 1초쉼
- ****************************************************************************************/
- function fSleep(numberMillis) {
- var now = new Date();
- var exitTime = now.getTime() + numberMillis;
- while (true) {
- now = new Date();
- if (now.getTime() > exitTime) return;
- }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 불출확인서 출력시 출력일자 설정
- ****************************************************************************************/
- function fSetNarcPrintDt() {
- if ( ds_main_narclist_narclist.rowcount == 0 )
- return;
- var dsUpdate = grdf_getGridUpdateData(switch1.case1.grd_narclist, "all");
- grdf_setStatusColumn(dsUpdate, "m");
-
- ds_send_prntdt_narcdata.copyData(dsUpdate,true);
-
- dsf_createDsRow("ds_narcdata", [
- {col:"m", type:"STRING", size:256, val:ds_send_prntdt_narcdata.getColumn(0,"m")}
- , {col:"drugdd", type:"STRING", size:256, val:ds_send_prntdt_narcdata.getColumn(0,"drugdd")}
- , {col:"drugno", type:"INT", size:256, val:ds_send_prntdt_narcdata.getColumn(0,"drugno")}
- , {col:"prcpno", type:"INT", size:256, val:ds_send_prntdt_narcdata.getColumn(0,"prcpno")}
- , {col:"ioflag", type:"STRING", size:256, val:ds_send_prntdt_narcdata.getColumn(0,"ioflag")}
- ]);
- var oParam = {};
- oParam.id = "TXADT30104";
- oParam.service = "pharmacyprescriptionapp.Narcotics";
- oParam.method = "reqSetNarcPrintDt";
- oParam.inds = "narcdata=ds_narcdata";
- oParam.outds = "ds_temp_ret=item";
- oParam.async = false;
- //oParam.callback = "cf_TXADT30104";
- tranf_submit(oParam);
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 재출력 선택시 출력일자(콤보박스) 조회
- ****************************************************************************************/
- function fGetNarcPrintDt() {
- var narccdlist = "";
- for(var i = 0; i < ds_temp_srchcond_narclist.rowcount; i++) {
- if(ds_temp_srchcond_narclist.getColumn(i, "sel") == "Y") {
- if(utlf_isNull(narccdlist)) {
- narccdlist = "'" + ds_temp_srchcond_narclist.getColumn(i, "narccd") + "'";
- } else {
- narccdlist += ",'" + ds_temp_srchcond_narclist.getColumn(i, "narccd") + "'";
- }
- }
- }
- ds_temp_srchinfo.setColumn( 0, "narccd", narccdlist);
- //이선경 2008-07-22 start (조회시 마약종류를 조회조건에 추가)
- // grd_narclist.fixedcellischeck(0, 1) = false;
- // grd_outnarc.fixedcellischeck(0, 1) = false;
- // switch1.case1.grd_narclist.setCellProperty("Head",1,"text",0);
- // switch1.case3.grd_outnarc.setCellProperty("Head",1,"text",0);
- chk_grdAll.value = "N";
-
- ds_send_srchinfo.copyData(ds_temp_srchinfo);
- if( ds_temp_srchinfo.getColumn(0, "prtab") == "Y") { // 향정반환반납장부 출력조건 2009.05.18 pymi
- ds_send_srchinfo.setColumn( 0, "cnclflag", "Y");
- ds_send_srchinfo.setColumn( 0, "rtnflag", "Y");
- ds_send_srchinfo.setColumn( 0, "rtnstat", "T");
- ds_send_srchinfo.setColumn( 0, "cnclstat", "T");
- ds_send_srchinfo.setColumn( 0, "narcstat", "");
- }
- var oParam = {};
- oParam.id = "TRADT30111";
- oParam.service = "pharmacyprescriptionapp.Narcotics";
- oParam.method = "reqGetNarcPrintDt";
- oParam.inds = "req=ds_send_srchinfo";
- oParam.outds = "ds_temp_prntdt_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRADT30111";
- tranf_submit(oParam);
- }
- //=======================================================================================
- // SMADT30100.xjs 종료
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description : 마약항정리스트 조회
- ****************************************************************************************/
- function call_TRADT30102() {
- ds_main_narclist_narclist.clearData();
- // ds_main_narclist_narclist.enableevent = false;
- dsf_createDsRow("ds_req", [
- {col:"narcflag", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"narcflag")}
- , {col:"timeflag", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"timeflag")}
- , {col:"fst_dd", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"fst_dd")}
- , {col:"last_dd", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"last_dd")}
- , {col:"srchdrugkind", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"srchdrugkind")}
- , {col:"srchioflag", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"srchioflag")}
- , {col:"drugflag", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"drugflag")}
- , {col:"srchroot", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"srchroot")}
- , {col:"narcstat", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"narcstat")}
- , {col:"cnclstat", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"cnclstat")}
- , {col:"rtnstat", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"rtnstat")}
- , {col:"nodeliveflag", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"nodeliveflag")}
- , {col:"narctype", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"narctype")}
- , {col:"pid", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"pid")}
- , {col:"ward", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"ward")}
- , {col:"srchdrugno", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"srchdrugno")}
- , {col:"barcode", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"barcode")}
- , {col:"narccd", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"narccd")}
- , {col:"barcode_2", type:"STRING", size:256, val:""}
- , {col:"srchdeptcd", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"srchdeptcd")}
- , {col:"srchprcpkind", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"srchprcpkind")}
- , {col:"srchprcpkindall", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"srchprcpkindall")}
- , {col:"prntdt", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"prntdt")}
- , {col:"issdeptcd", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"issdeptcd")}
- , {col:"selkey", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"selkey")}
- , {col:"kuflag", type:"STRING", size:256, val:"Y"}
- ]);
- var oParam = {};
- oParam.id = "TRADT30102";
- oParam.service = "pharmacyprescriptionapp.Narcotics";
- oParam.method = "reqGetNarcData";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_main_narclist_narclist=narclist";
- oParam.async = false;
- oParam.callback = "cf_TRADT30102";
- tranf_submit(oParam);
- }
- function cf_TRADT30102(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- // dsf_setTypeFormat(ds_main_narclist_narclist, "prcptims:INT^prcpdayno:INT^rtnqty:INT^prcpno:INT^prcphistno:INT^drugno:INT");
- if(utlf_isNull(ds_main_narclist_narclist.getColumnInfo("dayprcpqtyunit"))) {
- ds_main_narclist_narclist.enableevent = false;
- switch1.case3.grd_outnarc.enableredraw = false;
- ds_main_narclist_narclist.addColumn("dayprcpqtyunit","string");
- ds_main_narclist_narclist.addColumn("prcpqtyunit2","string");
- ds_main_narclist_narclist.addColumn("prcpvolunit2","string");
- var nCnt = ds_main_narclist_narclist.rowcount;
- for(var i = 0 ; i < nCnt ; i++) {
- var nvalue = ds_main_narclist_narclist.getColumn(i,"prcpqtyunit");
- ds_main_narclist_narclist.setColumn(i,"dayprcpqtyunit",nvalue);
- ds_main_narclist_narclist.setColumn(i,"prcpqtyunit2",nvalue);
- ds_main_narclist_narclist.setColumn(i,"prcpvolunit2",ds_main_narclist_narclist.getColumn(i,"prcpvolunit"));
- }
- ds_main_narclist_narclist.enableevent = true;
- switch1.case3.grd_outnarc.enableredraw = true;
- ds_main_narclist_narclist.enableevent = true;
- }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 임시 병동/마약항정리스트 조회
- ****************************************************************************************/
- function call_TRADT30101() {
- var oParam = {};
- oParam.id = "TRADT30101";
- oParam.service = "pharmacyprescriptionapp.Narcotics";
- oParam.method = "reqGetSrchList";
- oParam.inds = "req=ds_send_srchcond";
- oParam.outds = "ds_temp_srchcond_ward=ward ds_temp_srchcond_narclist=narclist";
- oParam.async = false;
- oParam.callback = "cf_TRADT30101";
- tranf_submit(oParam);
- }
- function cf_TRADT30101(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- ds_temp_srchcond_ward.updateColID("deptcd","wardcd");
- ds_temp_srchcond_ward.updateColID("deptnm","wardnm");
- }
- /****************************************************************************************
- * Argument : objDs - Dataset ID
- * : sColSrc - 원본 컬럼
- * : sColTgt - 생성할 컬럼
- * Description : 데이터셋 특정컬럼 카피하여 새컬럼 생성
- ****************************************************************************************/
- function fMakeCopyColumn(objDs,sColSrc,sColTgt) {
- if(utlf_isNull(objDs.getColumnInfo(sColTgt))) objDs.addColumn(sColTgt,"string");
- for(var i = 0 ; i < objDs.rowcount ; i++) {
- objDs.setColumn(i,sColTgt,objDs.getColumn(i,sColSrc));
- }
- }
- /******************************************************************
- * Argument : obj - dataset
- * Description : 멀티체크박스 세팅
- ******************************************************************/
- function lf_setMultiCheckBox(obj) {
- // 멀티체크박스 세팅
- if(!utlf_isNull(obj.getColumn(0,"srchprcpkind"))) {
- group2.chk_prcpkind.setData(obj.getColumn(0,"srchprcpkind").split(" "),null,false);
- }
-
- if(!utlf_isNull(obj.getColumn(0,"narctypeflag"))) {
- group2.chk_prcpkind.setData(obj.getColumn(0,"narctypeflag").split(" "),null,false);
- }
- }
- /******************************************************************
- * Argument : N/A
- * Description : chekboxlist set
- ******************************************************************/
- function fn_setChkboxList() {
- // 처방구분 - chk_prcpkind
- var sProp1="col=6,row=1,cellspacing=5,vcellspacing=0,itemWidth=80,itemHeight=20,overflow='visible'";
- group2.chk_prcpkind.setInitComp(sProp1, ds_init_srchprcpkind, "cdid", "cdnm", "fn_narcstat");
- for(var i = 0 ; i < ds_init_srchprcpkind.rowcount; i++) {
- var chkId = "group2.chk_prcpkind.chk_"+i;
- eval(chkId).font = "arial,9,bold";
- }
-
- // checkbox2
- var sProp1="col=2,row=1,cellspacing=5,vcellspacing=0,itemWidth=-1,itemHeight=20,overflow=''";
- group2.checkbox2.setInitComp(sProp1, ds_init_narctypeflag, "cdid", "cdnm", "fn_narctypeflag");
- for(var i = 0 ; i < ds_init_narctypeflag.rowcount; i++) {
- var chkId = "group2.checkbox2.chk_"+i;
- eval(chkId).font = "arial,9,bold";
- }
- }
- function fn_narcstat() {
- ds_temp_srchinfo.setColumn(0,"srchprcpkind",String(group2.chk_prcpkind.getData()).replace(","," "));
- }
- function fn_narctypeflag() {
- ds_temp_srchinfo.setColumn(0,"narctypeflag",String(group2.checkbox2.getData()).replace(","," "));
- }
- /******************************************************************
- * Argument : N/A
- * Description : 출력정보조회
- ******************************************************************/
- function call_TRADT30103() {
- var oParam = {};
- oParam.id = "TRADT30103";
- oParam.service = "pharmacyprescriptionapp.Narcotics";
- oParam.method = "reqGetNarcPrntData";
- oParam.inds = "req=ds_send_prntinfo";
- oParam.outds = "ds_main_prntlist_patinfo=patinfo ds_main_prntlist_diaginfo=diaginfo ds_main_prntlist_prntlist=prntlist ds_main_prntlist_resn=resn";
- oParam.async = false;
- //oParam.callback = "cf_TRADT30103";
- tranf_submit(oParam);
- }
- /******************************************************************
- * Argument : N/A
- * Description : 액팅처리?
- ******************************************************************/
- function call_TXADT30101() {
- dsf_createDs("ds_req", [
- {col:"prcpdd", type:"STRING", size:256}
- , {col:"prcpno", type:"INT", size:256}
- , {col:"prcphistno", type:"INT", size:256}
- , {col:"prcphistcd", type:"STRING", size:256}
- , {col:"drugdd", type:"STRING", size:256}
- , {col:"drugno", type:"INT", size:256}
- , {col:"drugseqno", type:"INT", size:256}
- , {col:"ioflag", type:"STRING", size:256}
- , {col:"instcd", type:"STRING", size:256}
- , {col:"drugdt", type:"STRING", size:256}
- , {col:"delivedt", type:"STRING", size:256}
- , {col:"rtndt", type:"STRING", size:256}
- , {col:"rtncnfmdt", type:"STRING", size:256}
- , {col:"rtnqty", type:"BIGDECIMAL", size:256}
- , {col:"returnqty", type:"BIGDECIMAL", size:256}
- , {col:"rtndrugtims", type:"BIGDECIMAL", size:256}
- , {col:"rtndrugdayno", type:"BIGDECIMAL", size:256}
- , {col:"rtnstocqty", type:"BIGDECIMAL", size:256}
- , {col:"prcpcd", type:"STRING", size:256}
- , {col:"drugnm", type:"STRING", size:256}
- , {col:"drugkind", type:"STRING", size:256}
- , {col:"drugflag", type:"STRING", size:256}
- , {col:"acting_after", type:"STRING", size:256}
- , {col:"selfprcpflag", type:"STRING", size:256}
- , {col:"sprevol", type:"STRING", size:256}
- ]);
- dsf_setTypeFormat(ds_req, "prcpno:INT^prcphistno:INT^drugno:INT^drugseqno:INT");
- for(var i = 0 ; i < ds_send_narcinfo_narclist.rowcount ; i++) {
- var nRow = ds_req.addRow();
- ds_req.copyRow(nRow, ds_send_narcinfo_narclist, i);
- }
- var oParam = {};
- oParam.id = "TXADT30101";
- oParam.service = "pharmacyprescriptionapp.Narcotics";
- oParam.method = "reqExeNarcData";
- oParam.inds = "req=ds_req srch=ds_send_narcinfo_srchinfo user=ds_send_narcinfo_userinfo";
- oParam.outds = "ds_main_narclist_narclist=narclist";
- oParam.async = false;
- oParam.callback = "cf_TXADT30101";
- tranf_submit(oParam);
- }
- function cf_TXADT30101(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- fMakeCopyColumn(ds_main_narclist_narclist,"prcpqtyunit","prcpqtyunit2");
- fMakeCopyColumn(ds_main_narclist_narclist,"prcpvolunit","prcpvolunit2");
- }
- /******************************************************************
- * Argument : N/A
- * Description : 라벨 출력 횟수 저장
- ******************************************************************/
- function call_TXADT30102() {
- dsf_createDs("ds_req", [
- {col:"prcpdd", type:"STRING", size:256}
- , {col:"prcpno", type:"INT", size:256}
- , {col:"prcphistno", type:"INT", size:256}
- , {col:"drugdd", type:"STRING", size:256}
- , {col:"drugno", type:"INT", size:256}
- , {col:"ioflag", type:"STRING", size:256}
- , {col:"instcd", type:"STRING", size:256}
- , {col:"drugdt", type:"STRING", size:256}
- , {col:"delivedt", type:"STRING", size:256}
- , {col:"rtndt", type:"STRING", size:256}
- , {col:"rtncnfmdt", type:"STRING", size:256}
- , {col:"rtnqty", type:"BIGDECIMAL", size:256}
- , {col:"prcpcd", type:"STRING", size:256}
- , {col:"drugnm", type:"STRING", size:256}
- , {col:"drugkind", type:"STRING", size:256}
- , {col:"drugflag", type:"STRING", size:256}
- , {col:"acting_after", type:"STRING", size:256}
- ]);
- dsf_setTypeFormat(ds_req, "prcpno:INT^prcphistno:INT^drugno:INT");
- for(var i = 0 ; i < ds_send_narcinfo_narclist.rowcount ; i++) {
- var nRow = ds_req.addRow();
- ds_req.copyRow(nRow, ds_send_narcinfo_narclist, i);
- }
- var oParam = {};
- oParam.id = "TXADT30102";
- oParam.service = "pharmacyprescriptionapp.Narcotics";
- oParam.method = "reqExeNarcLblCnt";
- oParam.inds = "req=ds_req srch=ds_send_narcinfo_srchinfo user=ds_send_narcinfo_userinfo";
- oParam.outds = "ds_temp_ret=item";
- oParam.async = false;
- //oParam.callback = "cf_TXADT30102";
- tranf_submit(oParam);
- }
- /****************************************************************************************
- * Argument : objDs - Dataset ID
- * : sColSrc - 원본 컬럼
- * : sColTgt - 생성할 컬럼
- * Description : 데이터셋 특정컬럼 카피하여 새컬럼 생성
- ****************************************************************************************/
- function fMakeCopyColumn(objDs,sColSrc,sColTgt) {
- if(utlf_isNull(objDs.getColumnInfo(sColTgt))) objDs.addColumn(sColTgt,"string");
- for(var i = 0 ; i < objDs.rowcount ; i++) {
- objDs.setColumn(i,sColTgt,objDs.getColumn(i,sColSrc));
- }
- }
- /******************************************************************
- * Argument : N/A
- * Description : 프린터설정
- ******************************************************************/
- function fSetPrint() {
- var prntsetupinfo = ds_main_barcdprntsetup.getColumn(0, "prntsetupinfo");
- var objArg = new Object();
- objArg.arg_sSetupInfo = prntsetupinfo;
- objArg.arg_sCallBackFunction = "lf_convertXmlToDs";
- frmf_modal("SPZUR00300", "SPZUR00300", objArg, null, 0, 20, 150, null, null, null, null, null, "M");
-
- if(!utlf_isNull(frmf_getParameter("SetupInfo")))
- ds_main_barcdprntsetup.setColumn(0,"prntsetupinfo",frmf_clearParameter("SetupInfo"));
- }
- /******************************************************************
- * Argument : N/A
- * Description : 불출확인서 출력내역조회
- ******************************************************************/
- function call_TRADT30109() {
- dsf_createDsRow("ds_req", [
- {col:"narcflag", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"narcflag")}
- , {col:"timeflag", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"timeflag")}
- , {col:"fst_dd", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"fst_dd")}
- , {col:"last_dd", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"last_dd")}
- , {col:"srchdrugkind", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"srchdrugkind")}
- , {col:"srchioflag", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"srchioflag")}
- , {col:"drugflag", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"drugflag")}
- , {col:"srchroot", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"srchroot")}
- , {col:"narcstat", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"narcstat")}
- , {col:"cnclstat", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"cnclstat")}
- , {col:"rtnstat", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"rtnstat")}
- , {col:"nodeliveflag", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"nodeliveflag")}
- , {col:"narctype", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"narctype")}
- , {col:"pid", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"pid")}
- , {col:"ward", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"ward")}
- , {col:"srchdrugno", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"srchdrugno")}
- , {col:"barcode", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"barcode")}
- , {col:"narccd", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"narccd")}
- , {col:"barcode_2", type:"STRING", size:256, val:""}
- , {col:"srchdeptcd", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"srchdeptcd")}
- , {col:"srchprcpkind", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"srchprcpkind")}
- , {col:"srchprcpkindall", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"srchprcpkindall")}
- , {col:"prntdt", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"prntdt")}
- , {col:"issdeptcd", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"issdeptcd")}
- , {col:"selkey", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"selkey")}
- ]);
- var oParam = {};
- oParam.id = "TRADT30109";
- oParam.service = "pharmacyprescriptionapp.Narcotics";
- oParam.method = "reqGetSumNarcData";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_main_sumlist_sumlist=sumlist";
- oParam.async = false;
- //oParam.callback = "cf_TRADT30109";
- tranf_submit(oParam);
- }
- /******************************************************************
- * Argument : N/A
- * Description : 불출확인서 출력
- ******************************************************************/
- function lf_print_RFADT30108() {
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "/root/prtinfo/hosp" , ds_prtinfo_hosp);
- rptf_setNodeListToDOM(objDOM, "/root/prtinfo/narclist/narclist" , ds_prtinfo_narclist_narclist);
- rptf_setNodeListToDOM(objDOM, "/root/prtinfo/sumlist/sumlist" , ds_prtinfo_sumlist_sumlist);
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
-
- var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0;";
- var prtOption = "printername=";
- rptf_exeReportPreview30(["RFADT30108"],[objParam], option, prtOption);
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMADT30100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMADT30100_onload(obj:Form, e:LoadEventInfo)
- {
- fn_setChkboxList();
-
- fInit();
-
- ds_send.setColumn(0,"chkall","Y");
-
- frmf_createPopupMenuDs("pmn_menu", "pmn_menu_onmenuclick", ds_hidden_popup_item);
- }
- // ds에 생성된 id별 함수 실행
- function pmn_menu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
- {
- // eval(e.id + "()");
- if(e.id == "Execlist") {
- var row = 0;
-
- if(switch1.tabindex == 0) {
- row = switch1.case1.grd_narclist.currentrow;
- } else {
- row = switch1.case3.grd_outnarc.currentrow;
- }
- dsf_createDsRow("ds_req", [
- {col:"pid", type:"STRING", size:256, val:ds_main_narclist_narclist.getColumn(row,"pid")}
- , {col:"prcpno", type:"STRING", size:256, val:ds_main_narclist_narclist.getColumn(row,"prcpno")}
- , {col:"prcpdd", type:"STRING", size:256, val:ds_main_narclist_narclist.getColumn(row,"orgprcpdd")}
- , {col:"orddeptflag", type:"STRING", size:256, val:""}
- ]);
- var oParam = {};
- oParam.id = "TRADT10311";
- oParam.service = "pharmacyprescriptionapp.BeforeCure";
- oParam.method = "reqGetDetlPrcpInfo";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_main_detlprcplist_detlprcpinfo=detlprcpinfo";
- oParam.async = false;
- oParam.callback = "cf_TRADT10311";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TRADT10311") > -1) {
- group5.visible = true;
- }
- } else if(e.id == "getMappingList") {
- var iRow = ds_main_narclist_narclist.rowposition;
-
- var chrgid = sysf_getUserInfo("userid");
- var id="";
-
- var cnt = 0;
-
- for(var i =0; i< ds_init_chrglist.rowcount; i++) {
- id = ds_init_chrglist.getColumn(i, "cdid");
-
- if(id == chrgid) {
- cnt++;
- }
- }
-
- if(cnt == 0 && chrgid != "AST") {
- sysf_messageBox("담당자만 매핑취소 작업을 할 수 있습니다.");
- return;
- }
-
- var drugdd = "";
- var drugno = "";
- var pid = "";
- var prcpcd = "";
- drugdd = ds_main_narclist_narclist.getColumn(iRow, "drugdd");
- drugno = ds_main_narclist_narclist.getColumn(iRow, "drugno");
- pid = ds_main_narclist_narclist.getColumn(iRow, "pid");
- prcpcd = ds_main_narclist_narclist.getColumn(iRow, "prcpcd");
-
- var objArg = new Object();
-
- objArg.arg_flag = "mapping";
- objArg.arg_pid = pid;
- objArg.arg_drugdd = drugdd;
- objArg.arg_drugno = drugno;
- objArg.arg_prcpcd = prcpcd;
-
- //alert("pid: " + pid + " drugdd: " + drugdd + " drugno: " + drugno + " prpcd: " + prcpcd);
-
-
-
- frmf_modal("SMADT12270", "SMADT12270", objArg, null, 0, 20, 150, null, null, null, null, null, "M");
-
- } else if(e.id == "getTranList") {
- var iRow = ds_main_narclist_narclist.rowposition;
-
- var chrgid = sysf_getUserInfo("userid");
- var id="";
-
- var cnt = 0;
-
- for(var i =0; i< ds_init_chrglist.rowcount; i++) {
- id = ds_init_chrglist.getColumn(i, "cdid");
-
- if(id == chrgid) {
- cnt++;
- }
- }
-
- if(cnt == 0 && chrgid != "AST") {
- sysf_messageBox("담당자만 신규전송 작업을 할 수 있습니다.");
- return;
- }
-
- var drugdd = "";
- var drugno = "";
- var pid = "";
- var prcpcd = "";
- drugdd = ds_main_narclist_narclist.getColumn(iRow, "drugdd");
- drugno = ds_main_narclist_narclist.getColumn(iRow, "drugno");
- pid = ds_main_narclist_narclist.getColumn(iRow, "pid");
- prcpcd = ds_main_narclist_narclist.getColumn(iRow, "prcpcd");
-
- var objArg = new Object();
-
- objArg.arg_flag = "tran";
- objArg.arg_pid = pid;
- objArg.arg_drugdd = drugdd;
- objArg.arg_drugno = drugno;
- objArg.arg_prcpcd = prcpcd;
-
- //alert("pid: " + pid + " drugdd: " + drugdd + " drugno: " + drugno + " prpcd: " + prcpcd);
-
- frmf_modal("SMADT12270", "SMADT12270", objArg, null, 0, 20, 150, null, null, null, null, null, "M");
-
- }
- }
- function cf_TRADT10311(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /****************************************************************************************
- * Components : CheckBox
- * Description : 일괄처리 체크
- ****************************************************************************************/
- function group4_chk_all_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if(obj.value == false) ds_send.setColumn(0,"chkall","");
- }
- /****************************************************************************************
- * Components : Dataset
- * Description : 체크박스 체크시 처리
- ****************************************************************************************/
- function ds_main_narclist_narclist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid=="sel") {
- obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
- }
- }
- /****************************************************************************************
- * Components : Combo
- * Description : 조회기간 조건 변경
- ****************************************************************************************/
- function group2_combo2_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- if(obj.value == "5") {
- group2.switch2.case4.checkbox1.value = "Y";
- frmf_inputEnterKey("group2.switch2.case4.checkbox1", "onclick", new ClickEventInfo);
-
- group2.switch2.case5.checkbox5.value = "Y";
- frmf_inputEnterKey("group2.switch2.case5.checkbox5", "onclick", new ClickEventInfo);
- }
- }
- /****************************************************************************************
- * Components : CheckBox
- * Description : 반환대상 체크박스 체크시 처리 1
- ****************************************************************************************/
- function group2_switch2_case4_checkbox1_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if(obj.value == false) ds_temp_srchinfo.setColumn(0,"cnclflag","");
- if(ds_temp_srchinfo.getColumn(0,"cnclflag") == "Y"){
- group2.switch2.case4.rdo_cncl.enable = true;
- ds_temp_srchinfo.setColumn(0,"cnclstat","T");
- ds_temp_srchinfo.setColumn(0,"narcstat","");
- } else {
- group2.switch2.case4.rdo_cncl.enable = false;
- ds_temp_srchinfo.setColumn(0,"cnclstat", "");
- if(ds_temp_srchinfo.getColumn(0,"rtnflag") != "Y") {
- ds_temp_srchinfo.setColumn(0,"narcstat","T");
- }
- }
- }
- /****************************************************************************************
- * Components : CheckBox
- * Description : 반환대상 체크박스 체크시 처리 2
- ****************************************************************************************/
- function group2_switch2_case5_checkbox5_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if(obj.value == false) ds_temp_srchinfo.setColumn(0,"cnclflag","");
-
- if(ds_temp_srchinfo.getColumn(0, "cnclflag") == "Y"){
- group2.switch2.case5.radio6.enable = true;
- ds_temp_srchinfo.setColumn( 0, "cnclstat", "T");
- ds_temp_srchinfo.setColumn( 0, "narcstat", "");
- } else {
- group2.switch2.case5.radio6.enable = false;
- ds_temp_srchinfo.setColumn( 0, "cnclstat", "");
- if(ds_temp_srchinfo.getColumn(0, "rtnflag") != "Y") {
- ds_temp_srchinfo.setColumn( 0, "narcstat", "T");
- }
- }
- }
- /****************************************************************************************
- * Components : CheckBox
- * Description : 반납대상 체크박스 체크시 처리 1
- ****************************************************************************************/
- function group2_switch2_case4_checkbox3_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if(obj.value == false) ds_temp_srchinfo.setColumn(0,"rtnflag","");
-
- if(ds_temp_srchinfo.getColumn(0, "rtnflag") == "Y"){
- group2.switch2.case4.rdo_rtn.enable = true;
- ds_temp_srchinfo.setColumn( 0, "rtnstat", "T");
- ds_temp_srchinfo.setColumn( 0, "narcstat", "");
- } else {
- group2.switch2.case4.rdo_rtn.enable = false;
- ds_temp_srchinfo.setColumn( 0, "rtnstat", "");
- if(ds_temp_srchinfo.getColumn(0, "cnclflag") != "Y") {
- ds_temp_srchinfo.setColumn( 0, "narcstat", "T");
- }
- }
- }
- /****************************************************************************************
- * Components : CheckBox
- * Description : 반납대상 체크박스 체크시 처리 2
- ****************************************************************************************/
- function group2_switch2_case5_checkbox6_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if(obj.value == false) ds_temp_srchinfo.setColumn(0,"rtnflag","");
-
- if(ds_temp_srchinfo.getColumn(0, "rtnflag") == "Y"){
- group2.switch2.case5.radio7.enable = true;
- ds_temp_srchinfo.setColumn( 0, "rtnstat", "T");
- ds_temp_srchinfo.setColumn( 0, "narcstat", "");
- } else {
- group2.switch2.case5.radio7.enable = false;
- ds_temp_srchinfo.setColumn( 0, "rtnstat", "");
- if(ds_temp_srchinfo.getColumn(0, "cnclflag") != "Y") {
- ds_temp_srchinfo.setColumn( 0, "narcstat", "T");
- }
- }
- }
- /****************************************************************************************
- * Components : CheckBox
- * Description : 미불출만 체크박스 체크시 처리
- ****************************************************************************************/
- function group2_switch2_case5_checkbox7_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if(obj.value == false) ds_temp_srchinfo.setColumn(0,"nodeliveflag","");
- }
- /****************************************************************************************
- * Components : Radio
- * Description : 외래/병동 구분 선택
- ****************************************************************************************/
- function group2_radio5_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- fChgIOFlag();
- }
- /****************************************************************************************
- * Components : Radio
- * Description : 병동 / 퇴원등 구분
- ****************************************************************************************/
- function group2_rdo_drugflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- fChgSwitch();
- fGetNarcData();
- }
- /****************************************************************************************
- * Components : Radio
- * Description : 불출신청 종류 구분
- ****************************************************************************************/
- function group2_radio3_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- ds_temp_srchinfo.setColumn( 0, "cnclflag","");
- ds_temp_srchinfo.setColumn( 0, "cnclstat","");
- ds_temp_srchinfo.setColumn( 0, "rtnflag","");
- ds_temp_srchinfo.setColumn( 0, "rtnstat","");
-
- group2.switch2.case4.rdo_cncl.enable = false;
- group2.switch2.case4.rdo_rtn.enable = false;
- group2.grp_prntdt.cmb_prntdt.value = "";
-
- if (obj.value == "8") { //재출력
- group2.grp_prntdt.visible = true;
- group2.switch2.case4.rdo_cncl.value = "T";
- group2.switch2.case4.rdo_rtn.value = "T";
-
- fGetNarcPrintDt();
- } else {
- group2.grp_prntdt.cmb_prntdt.value = "";
- group2.grp_prntdt.visible = false;
- }
- }
- /****************************************************************************************
- * Components : CheckBox
- * Description : 처방구분 전체 선택
- ****************************************************************************************/
- function group2_checkbox8_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if(obj.value == false) ds_temp_srchinfo.setColumn(0,"srchprcpkindall","");
-
- var allflag = ds_temp_srchinfo.getColumn(0,"srchprcpkindall");
- // 전체선택
- if (allflag == "Y") {
- group2.chk_prcpkind.setEnable(false);
- } else {
- group2.chk_prcpkind.setEnable(true);
- }
- }
- /****************************************************************************************
- * Components : Dataset
- * Description : 체크박스 바인딩데이터 수정시 체크박스에 반영
- ****************************************************************************************/
- function ds_temp_srchinfo_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- lf_setMultiCheckBox(obj);
- }
- /****************************************************************************************
- * Components : CheckBox
- * Description : 자동 체크시
- ****************************************************************************************/
- function group2_chk_auto_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if(obj.value == false) ds_temp_srchinfo.setColumn(0,"autoprnt","");
-
- if(obj.value == "Y") {
- group2.radio2.enable = false;
- group2.radio3.enable = false;
- group2.radio5.enable = false;
- group2.radio3.value = "7";
-
- group2.rdo_drugflag.enable = false;
- group2.switch2.case4.checkbox1.enable = false;
- group2.switch2.case4.checkbox3.enable = false;
-
- group2.switch2.case4.rdo_cncl.value = "";
- group2.switch2.case4.rdo_rtn.value = "";
-
- group2.radio5.value = "O";
- group4.chk_all.value = "Y";
- group2.cap_automess.visible = true; /// 자동출력 김치국
-
- } else {
- group2.radio2.enable = true;
- group2.radio3.enable = true;
- group2.radio5.enable = true;
-
- group2.rdo_drugflag.enable = true;
- group2.switch2.case4.checkbox1.enable = true;
- group2.switch2.case4.checkbox3.enable = true;
- group2.cap_automess.visible = false; // 자동출력 김치국
- }
-
- var autoflag = ds_temp_srchinfo.getColumn(0,"autoprnt");
- if (autoflag == "Y" && nextFlag == "GO") {
- if (gTimer == 0) {
- gTimer = 1;
- fAutoOutNarc() ;
- this.setTimer(0,13000);
- }
- } else {
- if (gTimer != 0) {
- this.killTimer(0);
- gTimer = 0;
- }
- }
- }
- /****************************************************************************************
- * Components : Form
- * Description : 타이머 함수 실행
- ****************************************************************************************/
- function SMADT30100_ontimer(obj:Form, e:TimerEventInfo)
- {
- if(e.timerid == 0) fAutoOutNarc();
- }
- /****************************************************************************************
- * Components : Combo
- * Description : 출력시간 선택
- ****************************************************************************************/
- function group2_grp_prntdt_cmb_prntdt_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- ds_temp_srchinfo.setColumn(0,"prntdt" ,eval(obj.innerdataset).lookup("wardnm",obj.value,"prntdt"));
- ds_temp_srchinfo.setColumn(0,"issdeptcd",eval(obj.innerdataset).lookup("wardnm",obj.value,"issdeptcd"));
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 환자번호 입력 후 엔터로 조회
- ****************************************************************************************/
- function group2_input8_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
- fGetNarcData();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 환자조회 팝업 오픈
- ****************************************************************************************/
- function group2_button61_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SPPMC02500", "SPPMC02500", "", "", 1, 200, 200, "", "", "", "", "", "M");
- ds_temp_srchinfo.setColumn(0,"pid" , ds_patinfolist.getColumn(0,"pid") ); // 등록번호 설정
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 투약번호 입력 후 엔터로 조회
- ****************************************************************************************/
- function group2_input2_onkeydown(obj:MaskEdit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
- fGetNarcData();
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 바코드 입력 후 엔터로 처리
- ****************************************************************************************/
- function group2_input9_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
- obj.enable = false;
-
- fChgBarcode();
-
- group2.input9.enable = true;
- group2.input9.setFocus();
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 잔량확인 입력 후 엔터로 처리
- ****************************************************************************************/
- function group2_input1_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
- group2.input1.enable = false;
-
- fChgBarcodeSpre();
-
- group2.input1.enable = true;
- group2.input1.setFocus();
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 담당자 입력 후 엔터로 처리
- ****************************************************************************************/
- function group2_ipt_srchid_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
-
- fChgUserID();
- }
- }
- /****************************************************************************************
- * Components : Radio
- * Description : 마약종류 선택시 조회
- ****************************************************************************************/
- function group2_radio4_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- call_TRADT30101();
-
- ds_temp_srchinfo.setColumn( 0, "narcflag", ds_send_srchcond.getColumn(0, "narcflag"));
- //반환대상, 반납대상, 미불출 조건 변경
- if(ds_temp_srchinfo.getColumn(0, "narcflag") == "M"){
- group2.switch2.tabindex = 0;
- group2.combo2.index = 1; //그외 적용일자
- } else if(ds_temp_srchinfo.getColumn(0, "narcflag") == "H"){
- group2.switch2.tabindex = 1;
-
- if(ds_temp_srchinfo.getColumn(0, "srchioflag") == "O") {
- group2.combo2.index = 3; //향정외래일때 실시일자
- } else {
- group2.combo2.index = 1; //그외 적용일자
- }
- } else {
- group2.switch2.tabindex = 0;
- //combo2.select(1); //그외 적용일자
- }
-
- fGetNarcData();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 일괄처리 실행
- ****************************************************************************************/
- function group4_btn_prt_onclick(obj:Button, e:ClickEventInfo)
- {
- fNarcPrint();
-
- if( ds_send.getColumn(0, "chkall") == "Y" ) {
- /// 2014년 11.6 김치국 불출상태가 '1' = 불출신청이면서 일괄처리 버튼 누를시 에러를 발생 시킴
- for( var i = 0; i < ds_main_narclist_narclist.rowcount; i++){
- var sel = ds_main_narclist_narclist.getColumn(i, "sel");
- var cnclstat = ds_main_narclist_narclist.getColumn(i, "cnclstat"); // 반환상태
- if(sel == "Y"){
- if ( cnclstat == "1") {
- alert("반환신청 자료는 일괄처리 할 수 없습니다");
- return;
- }
- }
- }
-
- fNarcActing("Prcpdrug");
- }
-
- // 처방전이나 라벨 출력 시 병동이나 수행부서를 조건으로 걸고 진행한 후 다시 공란으로 돌아가게 수정
- ds_temp_srchinfo.setColumn(0, "ward", "");
- ds_temp_srchinfo.setColumn(0, "srchdeptcd", "");
-
- //// 2018년 마약통합관리 정보 저장 데이타set copy 김치국
- if ( ds_sendnarcstoc.rowcount > 0 ){
- var objArg = new Object(); //ds_sendnarcstoc
- objArg.arg_ds_sendnarcstoc = ds_sendnarcstoc;
- objArg.arg_flag = "Prcp";
- frmf_modal("SMADT12001", "SMADT12001", objArg, null, null, null, null, null, null, null, null, null, "M");
- }
- //////
-
- }
- /****************************************************************************************
- * Components : Button
- * Description : 처방전재출력 실행
- ****************************************************************************************/
- function group4_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- // 경북대병원 처방전재출력 추가.
- ds_temp.setColumn( 0, "reprnt", "Y");
- fNarcPrint();
- ds_temp.setColumn( 0, "reprnt", "N");
- // 처방전이나 라벨 출력 시 병동이나 수행부서를 조건으로 걸고 진행한 후 다시 공란으로 돌아가게 수정
- ds_temp_srchinfo.setColumn( 0, "ward", "");
- ds_temp_srchinfo.setColumn( 0, "srchdeptcd", "");
- }
- /****************************************************************************************
- * Components : Button
- * Description : 라벨재출력 실행
- ****************************************************************************************/
- function group4_button7_onclick(obj:Button, e:ClickEventInfo)
- {
- fNarcLBLPrintR("Reprnt");
- // 처방전이나 라벨 출력 시 병동이나 수행부서를 조건으로 걸고 진행한 후 다시 공란으로 돌아가게 수정
- ds_temp_srchinfo.setColumn( 0, "ward", "");
- ds_temp_srchinfo.setColumn( 0, "srchdeptcd", "");
- }
- /****************************************************************************************
- * Components : Button
- * Description : 바코드불출 팝업 오픈
- ****************************************************************************************/
- function group4_button5_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SMADT30600", "SMADT30600", null, null, null, null, null, null, null, null, null, null, "P");
- }
- /****************************************************************************************
- * Components : Button
- * Description : 프린터설정 팝업 오픈
- ****************************************************************************************/
- function group4_btn_prnt_onclick(obj:Button, e:ClickEventInfo)
- {
- fSetPrint();
- }
- /****************************************************************************************
- * Components : CheckBox
- * Description : 라벨생략 체크박스 선택
- ****************************************************************************************/
- function group4_checkbox4_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if(obj.value == false) ds_send.setColumn(0,"lblskip","");
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 조제확인 불출확인 버튼 활성/비활성
- ****************************************************************************************/
- function switch1_grd_onkeyup(obj:Grid, e:KeyEventInfo)
- {
- if( e.keycode == 121 ){
- group4.btn_prcp.visible = true;
- group4.btn_drug.visible = true;
- }
-
- if( e.keycode == 120 ){
- group4.btn_prcp.visible = false;
- group4.btn_drug.visible = false;
- }
- }
- /****************************************************************************************
- * Components : Div
- * Description : 조제확인 불출확인 버튼 활성/비활성
- ****************************************************************************************/
- function group_onkeyup(obj:Div, e:KeyEventInfo)
- {
- if( e.keycode == 121 ){
- group4.btn_prcp.visible = true;
- group4.btn_drug.visible = true;
- }
-
- if( e.keycode == 120 ){
- group4.btn_prcp.visible = false;
- group4.btn_drug.visible = false;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 조제확인
- ****************************************************************************************/
- function group4_btn_prcp_onclick(obj:Button, e:ClickEventInfo)
- {
- fNarcActing("Prcp");
- }
- /****************************************************************************************
- * Components : Button
- * Description : 불출확인
- ****************************************************************************************/
- function group4_btn_drug_onclick(obj:Button, e:ClickEventInfo)
- {
- fNarcActing("Drug");
- }
- /****************************************************************************************
- * Components : Button
- * Description : 반환확인
- ****************************************************************************************/
- function group4_btn_rtn_onclick(obj:Button, e:ClickEventInfo)
- {
- fNarcActing("Rtn");
- fGetNarcData();
- //// 2018년 마약통합관리 정보 저장 데이타set copy 김치국
- if ( ds_sendnarcstoc.rowcount > 0 ){
- var objArg = new Object(); //ds_sendnarcstoc
- objArg.arg_ds_sendnarcstoc = ds_sendnarcstoc;
- objArg.arg_flag = "Rtn";
- frmf_modal("SMADT12001", "SMADT12001", objArg, null, null, null, null, null, null, null, null, null, "M");
- }
- //////
-
- }
- /****************************************************************************************
- * Components : Button
- * Description : 반환취소
- ****************************************************************************************/
- function group4_btn_rtncncl_onclick(obj:Button, e:ClickEventInfo)
- {
- fNarcActing("RtnCncl");
- fGetNarcData();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 잔량확인
- ****************************************************************************************/
- function group4_btn_spre_onclick(obj:Button, e:ClickEventInfo)
- {
- fNarcActing("Spre");
- //// 2018년 마약통합관리 정보 저장 데이타set copy 김치국
- if ( ds_sendnarcstoc.rowcount > 0 ){
- var objArg = new Object(); //ds_sendnarcstoc
- objArg.arg_ds_sendnarcstoc = ds_sendnarcstoc;
- objArg.arg_flag = "Spre";
- frmf_modal("SMADT12001", "SMADT12001", objArg, null, null, null, null, null, null, null, null, null, "M");
- }
- //////
-
- }
- /****************************************************************************************
- * Components : Button
- * Description : 잔량취소
- ****************************************************************************************/
- function group4_btn_sprecncl_onclick(obj:Button, e:ClickEventInfo)
- {
- fNarcActing("SpreCncl");
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 리스트 더블클릭
- ****************************************************************************************/
- function switch1_case1_grd_narclist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var cRow = e.row;
- if( cRow > -1 ){
- ds_temp_srchinfo.setColumn(0, "pid", ds_main_narclist_narclist.getColumn(cRow, "pid"));
- fGetNarcData();
- //환자별 조회라면 체크 표시
- fChkPatSearch(obj);
- }
- }
- function switch1_case1_grd_narclist_onrbuttonup(obj:Grid, e:GridMouseEventInfo)
- {
- //setPopupMenu("grd_narclist", true, "/root/hidden/popup/prcp/item", "name", "param");
- if(e.row > -1){
- grdf_setSelectedCell(obj, e); // 선택된 행 확실히 선택해줌
- pmn_menu.trackPopup(e.screenX,e.screenY);
- }
-
- return true;
- }
- /****************************************************************************************
- * Components : CheckBox
- * Description : 그리드 전체 선택 기능
- ****************************************************************************************/
- function chk_grdAll_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if(obj.value == "Y") {
- for ( var i = 0 ; i < ds_main_narclist_narclist.rowcount ; i++ ){
- var narcstat = ds_main_narclist_narclist.getColumn(i,"narcstat");
- if(narcstat == "1"){
- ds_main_narclist_narclist.setColumn(i,"sel","N");
- } else {
- ds_main_narclist_narclist.setColumn(i,"sel","Y");
- }
- }
- } else {
- dsf_setFixVal(ds_main_narclist_narclist, "sel:N");
- // for ( var i = 0 ; i < ds_main_narclist_narclist.rowcount ; i++ ){
- // ds_main_narclist_narclist.setColumn(i,"sel","N");
- // }
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 마약향정 리스트 조회
- ****************************************************************************************/
- function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- if (group2.radio3.value == "8") {
- if (utlf_isNull(group2.grp_prntdt.cmb_prntdt.value)) {
- sysf_messageBox("출력할 출력일시를 선택", "I008");
- group2.grp_prntdt.cmb_prntdt.setFocus();
- return;
- }
- }
- ds_temp_srchinfo.setColumn(0,"selkey", "");
-
- fGetNarcData();
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 리스트 더블클릭
- ****************************************************************************************/
- function switch1_case3_grd_outnarc_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.row > -1){
- ds_temp_srchinfo.setColumn(0,"pid",ds_main_narclist_narclist.getColumn(e.row,"pid"));
- fGetNarcData();
- //환자별 조회라면 체크 표시
- fChkPatSearch(obj);
- }
- }
- function switch1_case3_grd_outnarc_onrbuttonup(obj:Grid, e:GridMouseEventInfo)
- {
- // setPopupMenu("grd_narclist", true, "/root/hidden/popup/prcp/item", "name", "param");
- if(e.row > -1){
- grdf_setSelectedCell(obj, e); // 선택된 행 확실히 선택해줌
- pmn_menu.trackPopup(e.screenX,e.screenY);
- }
-
- return true;
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 반환횟수 입력시 반환량 계산
- ****************************************************************************************/
- function switch1_case3_grd_outnarc_ontextchanged(obj:Grid, e:GridEditTextChangedEventInfo)
- {
- if(e.col == 29 && ds_temp_srchinfo.getColumn(0,"narcflag") == "H") {
- fIptRtnCnts(e.row);
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 실시내역 숨기기
- ****************************************************************************************/
- function group5_button10_onclick(obj:Button, e:ClickEventInfo)
- {
- group5.visible = false;
- }
- /****************************************************************************************
- * Components : Button
- * Description : 불출확인서 출력
- ****************************************************************************************/
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- var val = group2.cmb_ward.value;
- var val1 = group2.radio3.value;
- if(val1 == "5" || val1== "7" || val1== "8") {
- if (val1 == "8") {
- if (utlf_isNull(group2.grp_prntdt.cmb_prntdt.value)) {
- sysf_messageBox("출력할 출력일시를 선택", "I008");
- group2.grp_prntdt.cmb_prntdt.setFocus();
- return;
- }
- }
- var sSelKey = "";
- var sSelKeyall = "";
- var iCnt = ds_main_narclist_narclist.rowcount;
- var selCnt = ds_main_narclist_narclist.getCaseCount("sel=='Y'");
-
- if (selCnt == 0) {
- sysf_messageBox("출력할 처방을 선택", "I008");
- return;
- }
-
- for (var i = 0; i < iCnt; i++) {
- if (ds_main_narclist_narclist.getColumn(i,"sel") == "Y") {
- sSelKey += "'"+ ds_main_narclist_narclist.getColumn(i,"drugno") +
- ""+ ds_main_narclist_narclist.getColumn(i,"pid") +
- ""+ ds_main_narclist_narclist.getColumn(i,"prcpdd")+ "',";
- sSelKeyall += "'"+ ds_main_narclist_narclist.getColumn(i,"drugno") +
- ""+ ds_main_narclist_narclist.getColumn(i,"pid") +
- ""+ ds_main_narclist_narclist.getColumn(i,"prcpdd")+
- ""+ ds_main_narclist_narclist.getColumn(i,"prcpno")+
- ""+ ds_main_narclist_narclist.getColumn(i,"drugseqno")+"',";
- }
- }
-
- sSelKey = sSelKey.replace(/,$/g, "");
- sSelKeyall = sSelKeyall.replace(/,$/g, "");
- ds_temp_srchinfo.setColumn( 0, "selkey" , sSelKey); //체크된 불출집계내역
- ds_temp_srchinfo.setColumn( 0, "selkeyall" , sSelKeyall); //체크된 불출집계내역
-
- fGetNarcData();
-
- //경북대병원 조회목록출력 변경 ==> 마약불출확인서
- var befrNacrFlag = ds_send_srchinfo.getColumn(0,"narcflag");
- dsf_createDs("ds_temp_setnarclist");
-
- //마약
- if (ds_main_narclist_narclist.getCaseCount("narcflag=='M' && sel=='Y'") > 0) {
- ds_send_srchinfo.setColumn(0,"narcflag", "M");
- var drugkind = ds_send_srchinfo.getColumn(0,"srchdrugkind");
- {//마약 주사
- ds_send_srchinfo.setColumn(0,"srchdrugkind", "I");
-
- call_TRADT30109();
- ds_prtinfo_sumlist_sumlist.copyData(ds_main_sumlist_sumlist);
- ds_prtinfo_hosp.setColumn(0,"hosp", "");
-
- if (ds_main_narclist_narclist.getCaseCount("narcflag=='M' && pastillyn != 'Y' && drugkind=='M' && sel=='Y'") > 0) {
- ds_prtinfo_hosp.setColumn(0,"narcflag" , "M");
- ds_prtinfo_hosp.setColumn(0,"pastillyn", "N");
-
- ds_temp_setnarclist.copyData(ds_main_narclist_narclist);
- ds_temp_setnarclist.filter("narcflag=='M' && pastillyn != 'Y' && drugkind=='M' && sel=='Y'");
-
- ds_prtinfo_narclist_narclist.copyData(ds_temp_setnarclist,true);
- lf_print_RFADT30108();
-
- ds_prtinfo_hosp.setColumn(0,"hosp", "Y");
- lf_print_RFADT30108();
-
- ds_temp_setnarclist.clear();
- }
- }
-
- {//마약 먹는약/외용약
- ds_send_srchinfo.setColumn(0,"srchdrugkind", "D");
-
- call_TRADT30109();
-
- ds_prtinfo_sumlist_sumlist.copyData(ds_main_sumlist_sumlist);
- ds_prtinfo_hosp.setColumn(0,"hosp", "");
-
- if (ds_main_narclist_narclist.getCaseCount("narcflag=='M' && pastillyn != 'Y' && sel=='Y' && (drugkind=='N' || drugkind=='Y')") > 0) {
- ds_prtinfo_hosp.setColumn(0,"narcflag", "M");
- ds_prtinfo_hosp.setColumn(0,"pastillyn", "N");
-
- ds_temp_setnarclist.copyData(ds_main_narclist_narclist);
- ds_temp_setnarclist.filter("narcflag=='M' && pastillyn != 'Y' && sel=='Y' && (drugkind=='N' || drugkind=='Y')");
-
- ds_prtinfo_narclist_narclist.copyData(ds_temp_setnarclist,true);
- lf_print_RFADT30108();
-
- ds_prtinfo_hosp.setColumn(0,"hosp", "Y");
- lf_print_RFADT30108();
-
- ds_temp_setnarclist.clear();
- }
- }
-
- {//마약이면서 향정수불인것
- ds_send_srchinfo.setColumn(0,"srchdrugkind", "P");
-
- call_TRADT30109();
-
- ds_prtinfo_sumlist_sumlist.copyData(ds_main_sumlist_sumlist);
- ds_prtinfo_hosp.setColumn(0,"hosp", "");
-
- if (ds_main_narclist_narclist.getCaseCount("narcflag=='M' && pastillyn == 'Y' && sel=='Y'") > 0) {
- ds_prtinfo_hosp.setColumn(0,"narcflag", "M");
- ds_prtinfo_hosp.setColumn(0,"pastillyn", "Y");
-
- ds_temp_setnarclist.copyData(ds_main_narclist_narclist);
- ds_temp_setnarclist.filter("narcflag=='M' && pastillyn == 'Y' && sel=='Y'");
-
- ds_prtinfo_narclist_narclist.copyData(ds_temp_setnarclist,true);
- lf_print_RFADT30108();
-
- ds_prtinfo_hosp.setColumn(0,"hosp", "Y");
- lf_print_RFADT30108();
-
- ds_temp_setnarclist.clear();
- }
- }
-
- ds_send_srchinfo.setColumn(0,"srchdrugkind", drugkind);
- }
-
- //향정
- if (ds_main_narclist_narclist.getCaseCount("narcflag=='H' && sel=='Y'") > 0) {
- ds_send_srchinfo.setColumn(0,"narcflag", "H");
-
- call_TRADT30109();
-
- ds_prtinfo_sumlist_sumlist.copyData(ds_main_sumlist_sumlist);
- ds_temp_setnarclist.copyData(ds_main_narclist_narclist);
- ds_temp_setnarclist.filter("narcflag=='H' && sel=='Y'");
- ds_prtinfo_narclist_narclist.copyData(ds_temp_setnarclist,true);
- ds_prtinfo_hosp.setColumn(0,"hosp" , "");
- ds_prtinfo_hosp.setColumn(0,"narcflag" , "H");
-
- lf_print_RFADT30108();
-
- ds_prtinfo_hosp.setColumn(0,"hosp", "Y");
- lf_print_RFADT30108();
-
- ds_temp_setnarclist.clear();
- }
-
- if (val1 != "8") { //재출력인 경우를 제외하고 출력일자 설정
- fSetNarcPrintDt(); //출력일자 설정
- }
-
- ds_send_srchinfo.setColumn(0,"narcflag", befrNacrFlag);
- } else {
- alert("불출구분(불출/실불출신청/재출력)중 하나를 선택해주세요");
- return false;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 잔류마약폐기장부 출력
- ****************************************************************************************/
- function button9_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_send_srchinfo.copyData(ds_temp_srchinfo);
- ds_send_srchinfo.setColumn( 0, "srchioflag" ,"");
- ds_send_srchinfo.setColumn( 0, "rtnflag" ,"Y");
- ds_send_srchinfo.setColumn( 0, "pid" ,"");
- ds_send_srchinfo.setColumn( 0, "srchdrugno" ,"");
- ds_send_srchinfo.setColumn( 0, "rtnstat" ,"2"); //잔량확인건만 -"2"
- ds_send_srchinfo.setColumn( 0, "cnclflag" ,"");
- ds_send_srchinfo.setColumn( 0, "cnclstat" ,"");
- ds_send_srchinfo.setColumn( 0, "narcstat" ,"");
-
- call_TRADT30102();
-
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "/root/main/narclist/narclist", ds_main_narclist_narclist); // 데이터셋 1
- rptf_setNodeListToDOM(objDOM, "/root/send/srchinfo" , ds_send_srchinfo); // 데이터셋 2
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
- var option = "directprint=1;printdialog=0;";
-
- rptf_exeReportPreview30(["RFADT30102"],[objParam], option);
- }
- /****************************************************************************************
- * Components : Button
- * Description : 반환반납장부 출력
- ****************************************************************************************/
- function button8_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_send_srchinfo.copyData(ds_temp_srchinfo);
- ds_send_srchinfo.setColumn( 0, "cnclflag" ,"Y");
- ds_send_srchinfo.setColumn( 0, "cnclstat" ,"T");
- ds_send_srchinfo.setColumn( 0, "rtnflag" ,"Y");
- ds_send_srchinfo.setColumn( 0, "rtnstat" ,"T");
- ds_send_srchinfo.setColumn( 0, "pid" ,"");
- ds_send_srchinfo.setColumn( 0, "srchdrugno" ,"");
- ds_send_srchinfo.setColumn( 0, "narcstat" ,"");
- dsf_makeValue( ds_send_srchinfo, "usernm", "string", sysf_getUserName());
-
- dsf_createDsRow("ds_req", [
- {col:"narcflag", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"narcflag")}
- , {col:"timeflag", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"timeflag")}
- , {col:"fst_dd", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"fst_dd")}
- , {col:"last_dd", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"last_dd")}
- , {col:"srchdrugkind", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"srchdrugkind")}
- , {col:"srchioflag", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"srchioflag")}
- , {col:"drugflag", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"drugflag")}
- , {col:"srchroot", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"srchroot")}
- , {col:"narcstat", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"narcstat")}
- , {col:"cnclstat", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"cnclstat")}
- , {col:"rtnstat", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"rtnstat")}
- , {col:"nodeliveflag", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"nodeliveflag")}
- , {col:"narctype", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"narctype")}
- , {col:"pid", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"pid")}
- , {col:"ward", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"ward")}
- , {col:"srchdrugno", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"srchdrugno")}
- , {col:"barcode", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"barcode")}
- , {col:"narccd", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"narccd")}
- , {col:"barcode_2", type:"STRING", size:256, val:""}
- , {col:"srchdeptcd", type:"STRING", size:256, val:ds_send_srchinfo.getColumn(0,"srchdeptcd")}
- ]);
- var oParam = {};
- oParam.id = "TRADT30108";
- oParam.service = "pharmacyprescriptionapp.Narcotics";
- oParam.method = "reqGetNarcRtnPrntList";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_main_rtnprntlist_prntlist=narclist";
- oParam.async = false;
- //oParam.callback = "cf_TRADT30108";
- tranf_submit(oParam);
-
- if(!utlf_isNull(ds_main_rtnprntlist_prntlist.getColumn(0,"pid"))) {
- if ( ds_temp_srchinfo.getColumn(0,"narcflag") == "H") { //향정
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "/root/main/rtnprntlist/prntlist", ds_main_rtnprntlist); // 데이터셋 1
- rptf_setNodeListToDOM(objDOM, "/root/send/srchinfo", ds_send_srchinfo); // 데이터셋 2
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
- var option = "directprint=1;printdialog=0;";
- rptf_exeReportPreview30(["RFADT30103"],[objParam], option);
- } else if ( ds_temp_srchinfo.getColumn(0,"narcflag") == "M"){//마약
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "/root/main/rtnprntlist/prntlist", ds_main_rtnprntlist); // 데이터셋 1
- rptf_setNodeListToDOM(objDOM, "/root/send/srchinfo", ds_send_srchinfo); // 데이터셋 2
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
- var option = "directprint=1;printdialog=0;";
- rptf_exeReportPreview30(["RFADT30101"],[objParam], option);
- }
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 엑셀저장
- ****************************************************************************************/
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- if( ds_main_narclist_narclist.rowcount > 0 ){
- grdf_exportExcel(switch1.case1.grd_narclist, "SheetName", "SheetName", false, "", "user", false);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- }
- }
- //
- // function switch1_case3_grd_outnarc_onheadclick(obj:Grid, e:GridClickEventInfo)
- // {
- // if(e.col == 1) fn_chkAll(obj);
- // }
- //
- // /******************************************************************
- // * Argument : fn_chkAll(obj)
- // * Description : head checkbox click event
- // ******************************************************************/
- // function fn_chkAll(obj){
- // if( obj.getCellProperty("Head", 1, "displaytype") == "checkbox"){
- // if( utlf_isNull(obj.getCellProperty("Head", 1, "text")) ){
- // obj.setCellProperty("Head", 1, "text","expr:1");
- // for( var i = 0; i < ds_main_narclist.rowcount; i++ ){
- // var narcstat = ds_main_narclist.getColumn(i, "narcstat");
- // if( narcstat == "1"){
- // ds_main_narclist.setColumn(i, "sel", "");
- // } else {
- // ds_main_narclist.setColumn(i, "sel", "1");
- // }
- // }
- // } else {
- // obj.setCellProperty("Head", 1, "text","");
- // for( var i = 0; i < ds_main_narclist.rowcount; i++ ){
- // ds_main_narclist.setColumn(i, "sel", "");
- // }
- // }
- // }
- // }
- //
- function switch1_case1_grd_narclist_onheadclick(obj:Grid, e:GridClickEventInfo)
- {
- obj.enableevent = false;
- if(e.col == 1) fn_chkAll(obj);
- obj.enableevent = true;
- }
- /******************************************************************
- * Argument : fn_chkAll(obj)
- * Description : head checkbox click event
- ******************************************************************/
- function fn_chkAll(obj){
- if( obj.getCellProperty("Head", 1, "displaytype") == "checkbox"){
- if( utlf_isNull(obj.getCellProperty("Head", 1, "text")) ){
- obj.setCellProperty("Head", 1, "text","expr:1");
- for( var i = 0; i < ds_main_narclist_narclist.rowcount; i++ ){
- var narcstat = ds_main_narclist_narclist.getColumn(i, "narcstat");
- if( narcstat == "1"){
- ds_main_narclist_narclist.setColumn(i, "sel", "N");
- } else {
- ds_main_narclist_narclist.setColumn(i, "sel", "Y");
- }
- }
- } else {
- obj.setCellProperty("Head", 1, "text", "");
- for( var i = 0; i < ds_main_narclist_narclist.rowcount; i++ ){
- ds_main_narclist_narclist.setColumn(i, "sel", "N");
- }
- }
- }
- }
- function switch1_case3_grd_outnarc_onheadclick(obj:Grid, e:GridClickEventInfo)
- {
- obj.enableevent = false;
- if(e.col == 1) fn_chkAll(obj);
- obj.enableevent = true;
- }
- function ds_temp_srchcond_narclist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid=="sel") {
- obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
- }
- }
- function Button00_onclick(obj:Button, e:ClickEventInfo)
- {
- //// 2018년 마약통합관리 정보 저장 데이타set copy 김치국
- /////2018년 3월 마약통합관리 dataset copy 김치국
- ds_sendnarcstoc.clear();
- dsf_copyColInfo(ds_sendnarcstoc,ds_main_narclist_narclist);
-
- for(var i = 0; i < ds_main_narclist_narclist.rowcount; i++) {
- var sel = ds_main_narclist_narclist.getColumn(i, "sel"); // 선택여부
- if(sel == "Y"){
- var sPrcpcd = ds_main_narclist_narclist.getColumn(i, "prcpcd"); // 약품코드
- ds_stocsend.setColumn(0,"drugcd" , sPrcpcd );
- var oParam = {};
- oParam.id = "TRADT12008";
- oParam.service = "pharmacydrugsumapp.NarcManagent";
- oParam.method = "reqGetNarcStocDataOk";
- oParam.inds = "req=ds_stocsend";
- oParam.outds = "ds_stocrece=stocdataok";
- oParam.async = false;
- tranf_submit(oParam);
- var cOkFlag = ds_stocrece.getColumn(0, "dataokflag");
- if (cOkFlag == 1 ) {
- var dRow = ds_sendnarcstoc.addRow();
- ds_sendnarcstoc.copyRow(dRow,ds_main_narclist_narclist,i);
- dsf_makeValue(ds_sendnarcstoc,"stocdeptcd","string", ds_temp_srchinfo.getColumn(0, "stocdeptcd") );
- ds_sendnarcstoc.setColumn(dRow,"stocdeptcd" , ds_temp_srchinfo.getColumn(0, "stocdeptcd") );
- }
- }
- }
- if ( ds_sendnarcstoc.rowcount > 0 ){
- var objArg = new Object(); //ds_sendnarcstoc
- objArg.arg_ds_sendnarcstoc = ds_sendnarcstoc;
- objArg.arg_flag = "Spre";
- frmf_modal("SMADT12003", "SMADT12003", objArg, null, null, null, null, null, null, null, null, null, "M");
- }
- //////
-
- }
- function Button02_onclick(obj:Button, e:ClickEventInfo)
- {
- //// 2018년 마약통합관리 정보 저장 데이타set copy 김치국
- /////2018년 3월 마약통합관리 dataset copy 김치국
- ds_sendnarcstoc.clear();
- dsf_copyColInfo(ds_sendnarcstoc,ds_main_narclist_narclist);
-
- for(var i = 0; i < ds_main_narclist_narclist.rowcount; i++) {
- var sel = ds_main_narclist_narclist.getColumn(i, "sel"); // 선택여부
- if(sel == "Y"){
- var sPrcpcd = ds_main_narclist_narclist.getColumn(i, "prcpcd"); // 약품코드
- ds_stocsend.setColumn(0,"drugcd" , sPrcpcd );
- var oParam = {};
- oParam.id = "TRADT12008";
- oParam.service = "pharmacydrugsumapp.NarcManagent";
- oParam.method = "reqGetNarcStocDataOk";
- oParam.inds = "req=ds_stocsend";
- oParam.outds = "ds_stocrece=stocdataok";
- oParam.async = false;
- tranf_submit(oParam);
- var cOkFlag = ds_stocrece.getColumn(0, "dataokflag");
- if (cOkFlag == 1 ) {
- var dRow = ds_sendnarcstoc.addRow();
- ds_sendnarcstoc.copyRow(dRow,ds_main_narclist_narclist,i);
- dsf_makeValue(ds_sendnarcstoc,"stocdeptcd","string", ds_temp_srchinfo.getColumn(0, "stocdeptcd") );
- ds_sendnarcstoc.setColumn(dRow,"stocdeptcd" , ds_temp_srchinfo.getColumn(0, "stocdeptcd") );
- }
- }
- }
- if ( ds_sendnarcstoc.rowcount > 0 ){
- var objArg = new Object(); //ds_sendnarcstoc
- objArg.arg_ds_sendnarcstoc = ds_sendnarcstoc;
- objArg.arg_flag = "Prcp";
- frmf_modal("SMADT12008", "SMADT12008", objArg, null, null, null, null, null, null, null, null, null, "M");
- }
-
- }
- ]]></Script>
- </Form>
- </FDL>
|