SMMMP00800_CPGMAIN.xfdl 381 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMMP00800" position="absolute 0 0 1213 957" titletext="M-GPS" oninit="SMMMP00800_oninit" onload="SMMMP00800_onload" onclose="SMMMP00800_onclose" ontimer="SMMMP00800_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1213 927" id="grp_biz" scrollbars="autoboth" anchor="all">
  8. <Layouts>
  9. <Layout>
  10. <Tab position="absolute 0 3 1206 107" id="swt_formatt" anchor="left top right" onchanged="grp_biz_swt_formatt_onchanged" style="border:1 solid #808080ff ;">
  11. <Tabpages>
  12. <Tabpage text="서식 / 첨부파일" id="att_tab" style="anchor:default;margin:0 0 0 0;">
  13. <Layouts>
  14. <Layout>
  15. <Grid position="absolute 87 0 600 77" id="grd_formlist" binddataset="ds_main_formlist_info" anchor="left top bottom" oncelldblclick="grp_biz_swt_formatt_att_tab_grd_formlist_oncelldblclick" autosizingtype="none" autofittype="col" cellsizingtype="col" extendsizetype="none">
  16. <Formats>
  17. <Format id="default">
  18. <Columns>
  19. <Column size="25"/>
  20. <Column size="0"/>
  21. <Column size="33"/>
  22. <Column size="59"/>
  23. <Column size="77"/>
  24. <Column size="267"/>
  25. <Column size="57"/>
  26. <Column size="0"/>
  27. <Column size="0"/>
  28. <Column size="0"/>
  29. </Columns>
  30. <Rows>
  31. <Row size="24" band="head"/>
  32. <Row size="24"/>
  33. </Rows>
  34. <Band id="head">
  35. <Cell/>
  36. <Cell col="1"/>
  37. <Cell col="2" text="Day"/>
  38. <Cell col="3" text="STEP"/>
  39. <Cell col="4" text="작성일"/>
  40. <Cell col="5" text="서식명"/>
  41. <Cell col="6" text="상태"/>
  42. <Cell col="7" text="서식코드"/>
  43. <Cell col="8" text="구분(동의서여부)"/>
  44. <Cell col="9" text="caption1"/>
  45. </Band>
  46. <Band id="body">
  47. <Cell style="background:URL('theme://images/bg_gridHead.png') stretch 3,3;background2:URL('theme://images/bg_gridHead.png') stretch 3,3;selectbackground:URL('theme://images/bg_gridHead.png') stretch 3,3;" text="expr:currow+1"/>
  48. <Cell col="1" displaytype="none" edittype="none" text="bind:formseq"/>
  49. <Cell col="2" displaytype="normal" edittype="none" text="bind:times"/>
  50. <Cell col="3" displaytype="normal" edittype="none" text="bind:stepnm"/>
  51. <Cell col="4" displaytype="date" edittype="none" text="bind:prcpdd"/>
  52. <Cell col="5" displaytype="normal" edittype="none" style="align:left;" text="bind:formnm"/>
  53. <Cell col="6" displaytype="combo" edittype="combo" text="bind:status" combodataset="ds_cmb_formlist_status" combocodecol="value" combodatacol="label"/>
  54. <Cell col="7" text="bind:formcd"/>
  55. <Cell col="8" text="bind:formprogflag"/>
  56. <Cell col="9" text="bind:formrecseq"/>
  57. </Band>
  58. </Format>
  59. </Formats>
  60. </Grid>
  61. <Static text="서식목록" position="absolute 1 1 86 77" id="cap_formlist" class="cell_1" anchor="left top bottom"/>
  62. <Static text="첨부파일" position="absolute 601 1 686 57" id="cap_attfile" class="cell_1" anchor="left top bottom"/>
  63. <Button position="absolute 602 58 686 77" id="brn_download" class="btn2" text="다운로드" anchor="left bottom" onclick="grp_biz_swt_formatt_att_tab_brn_download_onclick"/>
  64. <Grid position="absolute 687 0 1200 77" id="grd_inqr" visible="false" binddataset="ds_main_inqrinfo_inqrheader" anchor="all" oncelldblclick="grp_biz_swt_formatt_att_tab_grd_inqr_oncelldblclick">
  65. <Formats>
  66. <Format id="default">
  67. <Columns>
  68. <Column size="25"/>
  69. <Column size="112"/>
  70. <Column size="74"/>
  71. <Column size="225"/>
  72. <Column size="60"/>
  73. </Columns>
  74. <Rows>
  75. <Row size="24" band="head"/>
  76. <Row size="24"/>
  77. </Rows>
  78. <Band id="head">
  79. <Cell/>
  80. <Cell col="1" text="STEP"/>
  81. <Cell col="2" text="작성일"/>
  82. <Cell col="3" text="문진팝업명"/>
  83. <Cell col="4" text="상태"/>
  84. </Band>
  85. <Band id="body">
  86. <Cell style="background:URL('theme://images/bg_gridHead.png') stretch 3,3;background2:URL('theme://images/bg_gridHead.png') stretch 3,3;selectbackground:URL('theme://images/bg_gridHead.png') stretch 3,3;" text="expr:currow+1"/>
  87. <Cell col="1" displaytype="none" edittype="none" text="bind:stepnm"/>
  88. <Cell col="2" displaytype="date" edittype="none" text="bind:inqranswdd"/>
  89. <Cell col="3" displaytype="none" edittype="none" text="bind:title"/>
  90. <Cell col="4" displaytype="combo" edittype="combo" text="bind:inqrstatcd" combodataset="ds_cmb_inqr_status" combocodecol="value" combodatacol="label"/>
  91. </Band>
  92. </Format>
  93. </Formats>
  94. </Grid>
  95. <Grid position="absolute 687 0 1200 77" id="grd_attfile" binddataset="ds_main_attfileinfo_attach" anchor="all" cellsizingtype="col">
  96. <Formats>
  97. <Format id="default">
  98. <Columns>
  99. <Column size="25"/>
  100. <Column size="472"/>
  101. <Column size="0"/>
  102. <Column size="0"/>
  103. </Columns>
  104. <Rows>
  105. <Row size="24" band="head"/>
  106. <Row size="24"/>
  107. </Rows>
  108. <Band id="head">
  109. <Cell/>
  110. <Cell col="1" text="파일명"/>
  111. <Cell col="2" text="경로"/>
  112. <Cell col="3" text="caption1"/>
  113. </Band>
  114. <Band id="body">
  115. <Cell celltype="head" text="expr:currow + 1"/>
  116. <Cell col="1" style="align:left middle;" text="bind:attfilenm"/>
  117. <Cell col="2" text="bind:file"/>
  118. <Cell col="3" displaytype="checkbox" edittype="checkbox" text="bind:check"/>
  119. </Band>
  120. </Format>
  121. </Formats>
  122. </Grid>
  123. </Layout>
  124. </Layouts>
  125. </Tabpage>
  126. <Tabpage text=" 미완성처방 " position="absolute 0 0 1204 78" id="incompletion_tab" style="anchor:default;margin:0 0 0 0;">
  127. <Layouts>
  128. <Layout>
  129. <Grid position="absolute 0 0 1203 77" id="grd_errprcplist" visible="false" binddataset="ds_grd_errprcplist" anchor="top bottom">
  130. <Formats>
  131. <Format id="default">
  132. <Columns>
  133. <Column size="50"/>
  134. <Column size="60"/>
  135. <Column size="75"/>
  136. <Column size="115"/>
  137. <Column size="315"/>
  138. <Column size="45"/>
  139. <Column size="27"/>
  140. <Column size="37"/>
  141. <Column size="27"/>
  142. <Column size="40"/>
  143. <Column size="37"/>
  144. <Column size="56"/>
  145. <Column size="150"/>
  146. <Column size="38"/>
  147. <Column size="40"/>
  148. <Column size="50"/>
  149. <Column size="100"/>
  150. <Column size="80"/>
  151. <Column size="57"/>
  152. <Column size="0"/>
  153. <Column size="0"/>
  154. <Column size="0"/>
  155. </Columns>
  156. <Rows>
  157. <Row size="24" band="head"/>
  158. <Row size="24"/>
  159. </Rows>
  160. <Band id="head">
  161. <Cell text="완성"/>
  162. <Cell col="1" text="종류"/>
  163. <Cell col="2" text="처방일자"/>
  164. <Cell col="3" text="처방명"/>
  165. <Cell col="4" text="오류 메세지"/>
  166. <Cell col="5" text="총용량"/>
  167. <Cell col="6" text="총용량"/>
  168. <Cell col="7" text="수량"/>
  169. <Cell col="8" text="수량"/>
  170. <Cell col="9" text="횟수"/>
  171. <Cell col="10" text="일수"/>
  172. <Cell col="11" text="급비"/>
  173. <Cell col="12" text="용법/검체"/>
  174. <Cell col="13" text="MIX"/>
  175. <Cell col="14" text="전달"/>
  176. <Cell col="15" text="원내외"/>
  177. <Cell col="16" text="처치부서"/>
  178. <Cell col="17" text="희망일자"/>
  179. <Cell col="18" text="선택진료"/>
  180. <Cell col="19" text="등록일시"/>
  181. <Cell col="20" text="등록자"/>
  182. <Cell col="21" text="처방코드"/>
  183. </Band>
  184. <Band id="body">
  185. <Cell text="bind:valyn" edittype="text" displaytype="text"/>
  186. <Cell col="1" class="gridcombo" text="bind:prcpkindcd" edittype="combo" displaytype="combo"/>
  187. <Cell col="2" text="bind:prcpdd" mask="yyyy-mm-dd"/>
  188. <Cell col="3" text="bind:prcpnm"/>
  189. <Cell col="4" text="bind:incpltnresn"/>
  190. <Cell col="5" text="bind:prcpvol" edittype="text" displaytype="text" mask="#.#"/>
  191. <Cell col="6" text="bind:prcpvolunitnm" edittype="none" displaytype="none"/>
  192. <Cell col="7" text="bind:prcpqty" edittype="text" displaytype="text" mask="#.#"/>
  193. <Cell col="8" text="bind:prcpqtyunitnm"/>
  194. <Cell col="9" text="bind:prcptims" edittype="text" displaytype="text" mask="#"/>
  195. <Cell col="10" text="bind:prcpdayno" edittype="text" displaytype="text" mask="#"/>
  196. <Cell col="11" text="bind:payflagcd" edittype="combo" displaytype="combo"/>
  197. <Cell col="12" text="bind:drugmthdspccdnm" edittype="none" displaytype="none"/>
  198. <Cell col="13" text="bind:prcpmixno" edittype="text" displaytype="text"/>
  199. <Cell col="14" text="bind:prcpdelivefact"/>
  200. <Cell col="15" enable="false" text="bind:hosinhosoutflag" edittype="combo" displaytype="combo"/>
  201. <Cell col="16" class="gridcombo" text="bind:prcpexecdeptcd" edittype="combo" displaytype="combo"/>
  202. <Cell col="17" text="bind:prcphopedd" edittype="date" displaytype="date" mask="yyyy-mm-dd"/>
  203. <Cell col="18" text="bind:choiordflag" edittype="checkbox" displaytype="checkbox"/>
  204. <Cell col="19" text="bind:rgsttm" mask="yyyy-mm-dd"/>
  205. <Cell col="20" text="bind:rgstridnm"/>
  206. <Cell col="21" text="bind:prcpcd"/>
  207. </Band>
  208. </Format>
  209. </Formats>
  210. </Grid>
  211. <Div position="absolute 0 0 1203 77" id="ivw_invalprcp" anchor="all" scrollbars="none">
  212. <Layouts>
  213. <Layout width="1203" height="77"/>
  214. </Layouts>
  215. </Div>
  216. </Layout>
  217. </Layouts>
  218. </Tabpage>
  219. <!--
  220. <Tabpage text="모니터링" id="monitoring_tab" style="anchor:default;margin:0 0 0 0;">
  221. <Layouts>
  222. <Layout>
  223. <Grid position="absolute 0 0 695 77" id="grd_monitoringlist" binddataset="ds_main_mntrinfo_mntrlist" anchor="default" oncelldblclick="grp_biz_swt_formatt_monitoring_tab_grd_monitoringlist_oncelldblclick">
  224. <Formats>
  225. <Format id="default">
  226. <Columns>
  227. <Column size="170"/>
  228. <Column size="220"/>
  229. <Column size="70"/>
  230. <Column size="106"/>
  231. <Column size="55"/>
  232. <Column size="36"/>
  233. <Column size="0"/>
  234. <Column size="0"/>
  235. <Column size="0"/>
  236. <Column size="0"/>
  237. <Column size="0"/>
  238. <Column size="0"/>
  239. <Column size="0"/>
  240. <Column size="0"/>
  241. <Column size="0"/>
  242. <Column size="0"/>
  243. <Column size="0"/>
  244. <Column size="0"/>
  245. </Columns>
  246. <Rows>
  247. <Row size="24" band="head"/>
  248. <Row size="24"/>
  249. </Rows>
  250. <Band id="head">
  251. <Cell text="모니터링 제목"/>
  252. <Cell col="1" text="모니터링 조건 (IF)"/>
  253. <Cell col="2" text="충족건수"/>
  254. <Cell col="3" text="방법"/>
  255. <Cell col="4" text="진행상태"/>
  256. <Cell col="5" text="OFF"/>
  257. <Cell col="6" text="cpgappno"/>
  258. <Cell col="7" text="alertprecondyn"/>
  259. <Cell col="8" text="slipno"/>
  260. <Cell col="9" text="sliphistno"/>
  261. <Cell col="10" text="cpgno"/>
  262. <Cell col="11" text="cpghistseq"/>
  263. <Cell col="12" text="cpgmntrflag"/>
  264. <Cell col="13" text="guidedocucnts"/>
  265. <Cell col="14" text="stepno"/>
  266. <Cell col="15" text="stepnm"/>
  267. <Cell col="16" text="alertcondflag"/>
  268. <Cell col="17" text="orddrid"/>
  269. </Band>
  270. <Band id="body">
  271. <Cell displaytype="none" edittype="none" text="bind:slipnm"/>
  272. <Cell col="1" displaytype="none" edittype="none" text="bind:alertcnts"/>
  273. <Cell col="2" displaytype="none" edittype="none" text="bind:alertcondcnt"/>
  274. <Cell col="3" displaytype="combo" edittype="combo" text="bind:alertgrde" combodataset="ds_init_M0507" combocodecol="cdid" combodatacol="cdnm"/>
  275. <Cell col="4" displaytype="combo" edittype="combo" text="bind:alertstatcd" combodataset="ds_init_M0508" combocodecol="cdid" combodatacol="cdnm"/>
  276. <Cell col="5" displaytype="checkbox" edittype="checkbox" text="bind:alertoffyn"/>
  277. <Cell col="6" text="bind:cpgappno"/>
  278. <Cell col="7" text="bind:alertprecondyn"/>
  279. <Cell col="8" displaytype="none" edittype="none" text="bind:slipno"/>
  280. <Cell col="9" displaytype="none" edittype="none" text="bind:sliphistno"/>
  281. <Cell col="10" displaytype="none" edittype="none" text="bind:cpgno"/>
  282. <Cell col="11" displaytype="none" edittype="none" text="bind:cpghistseq"/>
  283. <Cell col="12" displaytype="none" edittype="none" text="bind:cpgmntrflag"/>
  284. <Cell col="13" displaytype="none" edittype="none" text="bind:guidedocucnts"/>
  285. <Cell col="14" displaytype="none" edittype="none" text="bind:stepno"/>
  286. <Cell col="15" displaytype="none" edittype="none" text="bind:stepnm"/>
  287. <Cell col="16" displaytype="none" edittype="none" text="bind:alertcondflag"/>
  288. <Cell col="17" displaytype="none" edittype="none" text="bind:orddrid"/>
  289. </Band>
  290. </Format>
  291. </Formats>
  292. </Grid>
  293. <Grid position="absolute 698 0 1203 75" id="grd_monitoringinfo" binddataset="ds_main_mntrdetlinfo_mntrdetllist" anchor="default" oncelldblclick="grp_biz_swt_formatt_monitoring_tab_grd_monitoringinfo_oncelldblclick">
  294. <Formats>
  295. <Format id="default">
  296. <Columns>
  297. <Column size="30"/>
  298. <Column size="30"/>
  299. <Column size="70"/>
  300. <Column size="140"/>
  301. <Column size="45"/>
  302. <Column size="32"/>
  303. <Column size="45"/>
  304. <Column size="32"/>
  305. <Column size="33"/>
  306. <Column size="25"/>
  307. </Columns>
  308. <Rows>
  309. <Row size="24" band="head"/>
  310. <Row size="24"/>
  311. </Rows>
  312. <Band id="head">
  313. <Cell text="구분"/>
  314. <Cell col="1" text="선행"/>
  315. <Cell col="2" text="코드"/>
  316. <Cell col="3" text="코드명"/>
  317. <Cell col="4" colspan="2" text="하한치"/>
  318. <Cell col="6" colspan="2" text="상한치"/>
  319. <Cell col="8" text="내용"/>
  320. <Cell col="9" text="단위"/>
  321. </Band>
  322. <Band id="body">
  323. <Cell displaytype="checkbox" edittype="checkbox" text="bind:checkyn"/>
  324. <Cell col="1" text="bind:alertprecondyn"/>
  325. <Cell col="2" displaytype="none" edittype="none" text="bind:testcd" mask="yyyy-mm-dd"/>
  326. <Cell col="3" displaytype="none" edittype="none" text="bind:testnm"/>
  327. <Cell col="4" displaytype="none" edittype="none" text="bind:reflval"/>
  328. <Cell col="5" displaytype="combo" edittype="combo" text="bind:lvalappflag" combodataset="ds_cmb_lvalappflag" combocodecol="value" combodatacol="label"/>
  329. <Cell col="6" displaytype="none" edittype="none" text="bind:refhval"/>
  330. <Cell col="7" displaytype="combo" edittype="combo" text="bind:hvalappflag" combodataset="ds_cmb_hvalappflag" combocodecol="value" combodatacol="label"/>
  331. <Cell col="8" displaytype="none" edittype="none" text="bind:refcnts"/>
  332. <Cell col="9" displaytype="none" edittype="none" text="bind:unitnm"/>
  333. </Band>
  334. </Format>
  335. </Formats>
  336. </Grid>
  337. </Layout>
  338. </Layouts>
  339. </Tabpage>
  340. -->
  341. </Tabpages>
  342. </Tab>
  343. <Static text="메모" position="absolute 711 108 731 131" id="caption9" class="cell_1" visible="false" anchor="default"/>
  344. <Edit position="absolute 696 111 721 130" id="ipt_cpgno" class="input_default" visible="false" anchor="default"/>
  345. <Edit position="absolute 721 111 746 130" id="ipt_cpghistseq" class="input_default" visible="false" anchor="default"/>
  346. <Combo position="absolute 716 111 741 130" id="cmb_cpglasthistyn" class="combo_default" visible="false" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
  347. <Dataset id="innerdataset">
  348. <ColumnInfo>
  349. <Column id="codecolumn"/>
  350. <Column id="datacolumn"/>
  351. </ColumnInfo>
  352. <Rows>
  353. <Row>
  354. <Col id="codecolumn">Y</Col>
  355. <Col id="datacolumn">Y</Col>
  356. </Row>
  357. <Row>
  358. <Col id="codecolumn">N</Col>
  359. <Col id="datacolumn">N</Col>
  360. </Row>
  361. </Rows>
  362. </Dataset>
  363. </Combo>
  364. <TextArea position="absolute 696 113 736 133" id="textarea1" taborder="17" visible="false" anchor="default"/>
  365. <Static text="CP 진료과" position="absolute 706 111 721 132" id="cap_cpgorddeptcd" class="cell_1" visible="false" anchor="default"/>
  366. <Edit position="absolute 780 110 803 129" id="ipt_cpgnm" class="input_essential" taborder="1" visible="false" anchor="default"/>
  367. <Combo position="absolute 691 114 719 133" id="cmb_cpgorddeptcd" class="combo_default" taborder="8" visible="false" innerdataset="ds_init_cmb_cpgorddeptcd" datacolumn="depthngnm" codecolumn="deptcd" anchor="default"/>
  368. <MaskEdit position="absolute 723 113 734 132" id="ipt_swimlineno" class="input_default" enable="false" taborder="10" visible="false" mask="999" anchor="default"/>
  369. <Static text="스윔라인 수" position="absolute 733 111 752 132" id="cap_swimlineno" class="cell_1" visible="false" anchor="default"/>
  370. <Static text="예상재원일수" position="absolute 795 110 815 133" id="cap_fcstinhospdayno" class="cell_1" visible="false" anchor="default"/>
  371. <MaskEdit position="absolute 815 110 830 129" id="ipt_fcstinhospdayno" class="input_default" taborder="9" visible="false" mask="999" anchor="default"/>
  372. <Static text="CP/CPG명" position="absolute 760 110 780 133" id="cap_cpgnm" class="cell_1" visible="false" anchor="default"/>
  373. <Static text="CP/CPG 구분" position="absolute 696 109 711 130" id="cap_cpgflagcd" class="cell_1" visible="false" anchor="default"/>
  374. <Radio position="absolute 711 111 761 129" id="rdo_cpgflagcd" taborder="2" visible="false" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
  375. <Dataset id="innerdataset">
  376. <ColumnInfo>
  377. <Column id="codecolumn"/>
  378. <Column id="datacolumn"/>
  379. </ColumnInfo>
  380. <Rows>
  381. <Row>
  382. <Col id="codecolumn">01</Col>
  383. <Col id="datacolumn">CP</Col>
  384. </Row>
  385. <Row>
  386. <Col id="codecolumn">02</Col>
  387. <Col id="datacolumn">CPG</Col>
  388. </Row>
  389. </Rows>
  390. </Dataset>
  391. </Radio>
  392. <Grid position="absolute 940 0 1105 25" id="grd_getindxlist" visible="false" binddataset="ds_grd_getindxlist" anchor="default">
  393. <Formats>
  394. <Format id="default">
  395. <Columns>
  396. <Column size="45"/>
  397. <Column size="51"/>
  398. <Column size="50"/>
  399. <Column size="66"/>
  400. <Column size="73"/>
  401. <Column size="49"/>
  402. <Column size="72"/>
  403. <Column size="41"/>
  404. <Column size="39"/>
  405. </Columns>
  406. <Rows>
  407. <Row size="24" band="head"/>
  408. <Row size="24"/>
  409. </Rows>
  410. <Band id="head">
  411. <Cell text="indxNO"/>
  412. <Cell col="1" text="indxSeq"/>
  413. <Cell col="2" text="indxNM"/>
  414. <Cell col="3" text="supIndxNO"/>
  415. <Cell col="4" text="indxRefSeq"/>
  416. <Cell col="5" text="cpgNo"/>
  417. <Cell col="6" text="cpgHistSeq"/>
  418. <Cell col="7" text="depth"/>
  419. <Cell col="8" text="status"/>
  420. </Band>
  421. <Band id="body">
  422. <Cell text="bind:indxno"/>
  423. <Cell col="1" text="bind:indxseq"/>
  424. <Cell col="2" text="bind:indxnm"/>
  425. <Cell col="3" text="bind:supindxno"/>
  426. <Cell col="4" text="bind:indxrefseq"/>
  427. <Cell col="5" text="bind:cpgno"/>
  428. <Cell col="6" text="bind:cpghistseq"/>
  429. <Cell col="7" text="bind:depth"/>
  430. <Cell col="8" text="bind:status"/>
  431. </Band>
  432. </Format>
  433. </Formats>
  434. </Grid>
  435. <Edit position="absolute 1149 34 1194 53" id="ipt_times_old" class="input_default" taborder="22" visible="false" anchor="default"/>
  436. <Combo position="absolute 696 111 716 130" id="ipt_times" taborder="22" visible="false" innerdataset="ds_init_ipt_times" datacolumn="nm" codecolumn="id" anchor="default"/>
  437. <Edit position="absolute 716 111 734 130" id="ipt_stepnm" class="input_default" taborder="22" visible="false" anchor="default"/>
  438. <TextArea position="absolute 695 111 718 128" id="tar_stepmemo" taborder="24" visible="false" anchor="default"/>
  439. <Static text="Outline 정보" position="absolute 716 119 731 132" id="cap_outlineinfo" class="tit_2" visible="false" anchor="default"/>
  440. <Button position="absolute 254 116 318 135" id="btn_detail_popup" class="btn5" text="상세보기" anchor="default" onclick="grp_biz_btn_detail_popup_onclick"/>
  441. <Button position="absolute 1164 4 1206 23" id="btn_savecomplprcp" class="btn2" visible="false" text="저장" anchor="default" onclick="grp_biz_btn_savecomplprcp_onclick" tooltiptext="완성된 미완성 처방을 저장합니다."/>
  442. <Button position="absolute 1108 4 1161 23" align="align:left middle;" id="importbutton1" class="btn2" visible="false" text="reset" anchor="default" onclick="grp_biz_importbutton1_onclick"/>
  443. <Button position="absolute 1120 108 1206 127" id="btn_calcqnt" class="btn2" visible="false" text="소아용량계산" anchor="default"/>
  444. <Button position="absolute 1108 4 1161 23" id="importbutton2" class="btn2" visible="false" text="alert" anchor="default" onclick="grp_biz_importbutton2_onclick"/>
  445. <Div position="absolute 885 5 975 25" id="ivw_ocr" visible="false" url="emr_formmngtxp::SSMRF03800_OCR뷰어.xfdl" anchor="default"/>
  446. <Static text="getAppStepStat(원무에서O-&gt;I전환시 호출하는 CP인터페이스에 입원일 변경에 따른 update)&#13;&#10; /*&#13;&#10; //바뀐 수진정보를 MMPSSTT에 update 해준다.&#13;&#10; var init_ordtype = model.getValue ( &quot;/root/patflag/list/prcpgenrflag&quot; );&#13;&#10; if ( init_ordtype == &quot;O&quot; ){ //외래일때&#13;&#10; var init_orddd = model.getValue ( &quot;/root/paminfo/list/orddd&quot; );&#13;&#10; } else {&#13;&#10; var init_orddd = model.getValue ( &quot;/root/paminfo/list/indd&quot; );&#13;&#10; }&#13;&#10; model.setValue(&quot;/root/temp1/getdata/appstepstatflag&quot;, &quot;U&quot;);&#13;&#10; model.makeValue(&quot;/root/temp1/getdata/orddd&quot;, init_orddd);&#13;&#10; model.makeValue(&quot;/root/temp1/getdata/prcpgenrflag&quot;, init_ordtype);&#13;&#10; model.makeValue(&quot;/root/temp1/getdata/cretno&quot;, model.getValue ( &quot;/root/paminfo/list/cretno&quot; ));&#13;&#10; submit(&quot;TRMMP00803&quot;);&#13;&#10; &#13;&#10; model.makeValue(&quot;/root/temp1/getdata/appstepstatflag&quot;, &quot;&quot;);&#13;&#10; */&#13;&#10; &#13;&#10; //model.makeValue(&quot;/root/send/batch/instcd&quot;, &quot;012&quot;);&#13;&#10; //submit(&quot;TRMMP00810&quot;);&#13;&#10; " position="absolute 750 5 840 25" id="importcaption1" visible="false" anchor="default"/>
  447. <Button position="absolute 198 116 251 135" id="btn_refresh" class="btn2" text="재조회" anchor="default" onclick="grp_biz_btn_refresh_onclick"/>
  448. <Div position="absolute 0 140 1208 924" id="ivw_outline" anchor="all" scrollbars="autoboth">
  449. <Layouts>
  450. <Layout width="1208" height="798"/>
  451. </Layouts>
  452. </Div>
  453. <Button position="absolute 389 116 453 135" id="importbutton5" class="btn2" visible="false" text="비우기" anchor="default"/>
  454. <Button position="absolute 388 116 496 135" id="btn_initcpgprcp" class="btn2" visible="false" text="적용범위 재설정" anchor="default" onclick="grp_biz_btn_initcpgprcp_onclick"/>
  455. <Combo position="absolute 830 110 860 129" id="cmb_stepnm" class="combo_search" enable="false" visible="false" innerdataset="ds_init_cmb_stepnm" datacolumn="nm" codecolumn="id" anchor="default"/>
  456. <Button position="absolute 705 5 758 24" id="btn_cpbatch" class="btn2" visible="false" text="batch" anchor="default" onclick="grp_biz_btn_cpbatch_onclick"/>
  457. <Button position="absolute 1182 100 1207 120" id="btn_inqr" visible="false" text="문진" anchor="default"/>
  458. <Static text="* 적용범위:" position="absolute 501 117 576 137" id="cap_appscop" visible="false" anchor="default"/>
  459. <Static position="absolute 576 117 1206 137" id="cap_appscoplist" visible="false" anchor="default"/>
  460. <Button position="absolute 321 116 385 135" id="btn_essprcpinfo" class="btn5" visible="false" text="필수처방" anchor="default" onclick="grp_biz_btn_essprcpinfo_onclick"/>
  461. <Div position="absolute 0 140 1207 924" id="grp_prcp" anchor="all" visible="true" style="border:0 solid #808080ff ;">
  462. <Layouts>
  463. <Layout>
  464. <Div id="imp_prcp" taborder="1" url="emr_prcpmngtxp::SMMMO00100_처방.xfdl" visible="false" position="absolute 0 0 1206 784" anchor="all" style="border:0 none #808080ff ;"/>
  465. <Div id="ivw_prcp2" anchor="left top bottom" taborder="2" visible="false" position="absolute 0 149 382 767"/>
  466. </Layout>
  467. </Layouts>
  468. </Div>
  469. <Div position="absolute 0 140 1204 924" id="ivw_detail" visible="false" anchor="all">
  470. <Layouts>
  471. <Layout width="1206" height="784"/>
  472. </Layouts>
  473. </Div>
  474. <Button id="btn_upviewmode" taborder="26" onclick="grp_biz_btn_upviewmode_onclick" class="icon_top" position="absolute 197 4 223 23" anchor="default" enable="true"/>
  475. <Button id="btn_downviewmode" taborder="27" onclick="grp_biz_btn_downviewmode_onclick" class="icon_bottom" position="absolute 226 4 252 23" anchor="default"/>
  476. <Shape position="absolute 0 135 1208 141" linetype="horizontal" id="line8" class="line_1" style="strokepen:3 solid #33bbbbff;" anchor="default"/>
  477. <Tab id="btn_detail_tab" taborder="28" onchanged="grp_biz_btn_detail_tab_onchanged" tabindex="0" scrollbars="autoboth" position="absolute 0 113 193 139" style="buttonpadding:4 10 4 10;" anchor="default">
  478. <Tabpages>
  479. <Tabpage id="btn_detail_tab" text="환자계획표"/>
  480. <Tabpage id="btn_action_tab" text="OCS"/>
  481. <Tabpage id="btn_outline_tab" text="OutLine"/>
  482. </Tabpages>
  483. </Tab>
  484. </Layout>
  485. </Layouts>
  486. </Div>
  487. <Div position="absolute 0 925 1208 952" id="grp_btn" anchor="left right bottom">
  488. <Layouts>
  489. <Layout>
  490. <Button position="absolute 1092 4 1148 26" id="btn_allInfoSave" class="btn4" text="적용" onclick="grp_btn_btn_allInfoSave_onclick" anchor="top right bottom"/>
  491. <Button position="absolute 331 4 411 26" id="button48" class="btn3" text="통합결과" onclick="grp_btn_button48_onclick" anchor="default"/>
  492. <Button position="absolute 413 4 529 26" id="button49" class="btn3" visible="false" text="FLOW SHEET" anchor="default"/>
  493. <Button position="absolute 1 4 105 26" id="button45" class="btn3" text="수술예약장부" onclick="grp_btn_button45_onclick" anchor="default"/>
  494. <Button position="absolute 1150 4 1206 26" id="btn_close" class="btn4" text="닫기" onclick="grp_btn_btn_close_onclick" anchor="top right bottom"/>
  495. <Button position="absolute 1034 4 1090 26" id="btn_drop" class="btn4" text="취소" onclick="grp_btn_btn_drop_onclick" anchor="top right bottom"/>
  496. <Button position="absolute 964 4 1020 26" id="btn_val" class="btn4" visible="false" text="평가" onclick="grp_btn_btn_val_onclick" anchor="top right bottom"/>
  497. <Button position="absolute 107 4 211 26" id="importbutton3" class="btn3" text="수술마취의뢰" onclick="grp_btn_importbutton3_onclick" anchor="default"/>
  498. <Button position="absolute 213 4 329 26" id="importbutton4" class="btn3" text="수술마취스케줄" onclick="grp_btn_importbutton4_onclick" anchor="default"/>
  499. </Layout>
  500. </Layouts>
  501. </Div>
  502. </Layout>
  503. </Layouts>
  504. <Objects>
  505. <Dataset id="ds_init_cmb_cpgorddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  506. <ColumnInfo>
  507. <Column id="depthngnm" type="STRING"/>
  508. <Column id="deptcd" type="STRING"/>
  509. </ColumnInfo>
  510. </Dataset>
  511. <Dataset id="ds_grd_getindxlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  512. <ColumnInfo>
  513. <Column id="indxno" type="STRING"/>
  514. <Column id="indxseq" type="STRING"/>
  515. <Column id="indxnm" type="STRING"/>
  516. <Column id="supindxno" type="STRING"/>
  517. <Column id="indxrefseq" type="STRING"/>
  518. <Column id="cpgno" type="STRING"/>
  519. <Column id="cpghistseq" type="STRING"/>
  520. <Column id="depth" type="STRING"/>
  521. <Column id="status" type="STRING"/>
  522. </ColumnInfo>
  523. </Dataset>
  524. <Dataset id="ds_init_ipt_times" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  525. <ColumnInfo>
  526. <Column id="nm" type="STRING"/>
  527. <Column id="id" type="STRING"/>
  528. </ColumnInfo>
  529. </Dataset>
  530. <Dataset id="ds_grd_errprcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  531. <ColumnInfo>
  532. <Column id="valyn" type="STRING"/>
  533. <Column id="prcpkindcd" type="STRING"/>
  534. <Column id="prcpdd" type="STRING"/>
  535. <Column id="prcpnm" type="STRING"/>
  536. <Column id="incpltnresn" type="STRING"/>
  537. <Column id="prcpvol" type="STRING"/>
  538. <Column id="prcpvolunitnm" type="STRING"/>
  539. <Column id="prcpqty" type="STRING"/>
  540. <Column id="prcpqtyunitnm" type="STRING"/>
  541. <Column id="prcptims" type="STRING"/>
  542. <Column id="prcpdayno" type="STRING"/>
  543. <Column id="payflagcd" type="STRING"/>
  544. <Column id="drugmthdspccdnm" type="STRING"/>
  545. <Column id="prcpmixno" type="STRING"/>
  546. <Column id="prcpdelivefact" type="STRING"/>
  547. <Column id="hosinhosoutflag" type="STRING"/>
  548. <Column id="prcpexecdeptcd" type="STRING"/>
  549. <Column id="prcphopedd" type="STRING"/>
  550. <Column id="choiordflag" type="STRING"/>
  551. <Column id="rgsttm" type="STRING"/>
  552. <Column id="rgstridnm" type="STRING"/>
  553. <Column id="prcpcd" type="STRING"/>
  554. </ColumnInfo>
  555. </Dataset>
  556. <Dataset id="ds_init_cmb_stepnm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  557. <ColumnInfo>
  558. <Column id="nm" type="STRING"/>
  559. <Column id="id" type="STRING"/>
  560. </ColumnInfo>
  561. </Dataset>
  562. <Dataset id="ds_temp1_getdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  563. <ColumnInfo>
  564. <Column id="getformyn" type="STRING" size="256"/>
  565. <Column id="appyn" type="STRING" size="256"/>
  566. </ColumnInfo>
  567. </Dataset>
  568. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_init_oncolumnchanged">
  569. <ColumnInfo>
  570. <Column id="detlivw" type="STRING" size="256"/>
  571. <Column id="fstopenflag" type="STRING" size="256"/>
  572. <Column id="addprcpflag" type="STRING" size="256"/>
  573. <Column id="prcpdd" type="STRING" size="256"/>
  574. </ColumnInfo>
  575. <Rows>
  576. <Row/>
  577. </Rows>
  578. </Dataset>
  579. <Dataset id="ds_root" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  580. <ColumnInfo>
  581. <Column id="issdept" type="STRING" size="256"/>
  582. <Column id="usge" type="STRING" size="256"/>
  583. <Column id="addprcp" type="STRING" size="256"/>
  584. <Column id="cp" type="STRING" size="256"/>
  585. <Column id="cpsaveflag" type="STRING" size="256"/>
  586. <Column id="bfinityn" type="STRING" size="256"/>
  587. <Column id="admininfo" type="STRING" size="256"/>
  588. </ColumnInfo>
  589. <Rows>
  590. <Row>
  591. <Col id="cp">Y</Col>
  592. </Row>
  593. </Rows>
  594. </Dataset>
  595. <Dataset id="ds_temp1_refresh_obj" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  596. <ColumnInfo>
  597. <Column id="change_outline" type="STRING" size="256"/>
  598. <Column id="change_ocs" type="STRING" size="256"/>
  599. <Column id="change_gps" type="STRING" size="256"/>
  600. <Column id="refreshyn" type="STRING" size="256"/>
  601. </ColumnInfo>
  602. <Rows>
  603. <Row>
  604. <Col id="change_outline"/>
  605. <Col id="change_ocs"/>
  606. <Col id="change_gps"/>
  607. <Col id="refreshyn">N</Col>
  608. </Row>
  609. </Rows>
  610. </Dataset>
  611. <Dataset id="ds_temp_getdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  612. <Dataset id="ds_temp1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  613. <ColumnInfo>
  614. <Column id="lastrowcnt" type="STRING" size="256"/>
  615. <Column id="getdata" type="STRING" size="256"/>
  616. <Column id="trmqp_rslt" type="STRING" size="256"/>
  617. <Column id="mstatus" type="STRING" size="256"/>
  618. <Column id="addprcp" type="STRING" size="256"/>
  619. <Column id="closeyn" type="STRING" size="256"/>
  620. <Column id="dummy" type="STRING" size="256"/>
  621. <Column id="authyn" type="STRING" size="256"/>
  622. <Column id="tmpprcplist" type="STRING" size="256"/>
  623. <Column id="oplist" type="STRING" size="256"/>
  624. </ColumnInfo>
  625. <Rows>
  626. <Row>
  627. <Col id="lastrowcnt"/>
  628. <Col id="getdata"/>
  629. <Col id="trmqp_rslt"/>
  630. <Col id="mstatus"/>
  631. <Col id="addprcp"/>
  632. <Col id="closeyn">N</Col>
  633. <Col id="dummy"/>
  634. <Col id="authyn">Y</Col>
  635. <Col id="tmpprcplist"/>
  636. <Col id="oplist"/>
  637. </Row>
  638. </Rows>
  639. </Dataset>
  640. <Dataset id="ds_temp1_trmqp_rslt_masterinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  641. <ColumnInfo>
  642. <Column id="cpgnm" type="STRING" size="256" sumtext="cp명"/>
  643. <Column id="cpgorddeptcd" type="STRING" size="256" sumtext="cp진료과"/>
  644. <Column id="cpaprvno" type="STRING" size="256" sumtext="cp승인번호"/>
  645. <Column id="swimlineno" type="STRING" size="256" sumtext="스윔라인수"/>
  646. <Column id="fcstinhospdayno" type="STRING" size="256" sumtext="예상재원일수"/>
  647. <Column id="appdd" type="STRING" size="256" sumtext="적용일"/>
  648. <Column id="todd" type="STRING" size="256" sumtext="종료일"/>
  649. <Column id="cretdd" type="STRING" size="256" sumtext="생성일"/>
  650. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일"/>
  651. <Column id="cpgmemo" type="STRING" size="256" sumtext="메모"/>
  652. <Column id="cpgflagcd" type="STRING" size="256" sumtext="CPG구분(01,02)"/>
  653. <Column id="cpgno" type="STRING" size="256" sumtext="CPG번호"/>
  654. <Column id="cpghistseq" type="STRING" size="256" sumtext="CPG이력순번"/>
  655. <Column id="rgstrid" type="STRING" size="256" sumtext="등록자ID"/>
  656. <Column id="rgstrnm" type="STRING" size="256" sumtext="등록자이름"/>
  657. <Column id="cpglasthistyn" type="STRING" size="256" sumtext="최종이력여부"/>
  658. <Column id="tmpyn" type="STRING" size="256" sumtext="임시여부"/>
  659. <Column id="m" type="STRING" size="256" sumtext="저장 flag"/>
  660. <Column id="ioflagcd" type="STRING" size="256" sumtext="입원/외래구분"/>
  661. <Column id="cpgtypecd" type="STRING" size="256" sumtext="CPG종류(과내공유/병원공유)"/>
  662. <Column id="valusgeyn" type="STRING" size="256" sumtext="평가용CPG여부"/>
  663. <Column id="valunm" type="STRING" size="256" sumtext="평가명"/>
  664. </ColumnInfo>
  665. </Dataset>
  666. <Dataset id="ds_temp1_trmqp_rslt_diaglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  667. <ColumnInfo>
  668. <Column id="termcd" type="STRING" size="256" sumtext="용어코드"/>
  669. <Column id="termnm" type="STRING" size="256" sumtext="용어한글명"/>
  670. <Column id="detlinfoflagcd" type="STRING" size="256" sumtext="용어구분(진단/주호소/수술)"/>
  671. <Column id="detlinfoseq" type="INT" size="256" sumtext="detlinfoseq"/>
  672. <Column id="m" type="STRING" size="256" sumtext="저장 flag"/>
  673. </ColumnInfo>
  674. </Dataset>
  675. <Dataset id="ds_temp1_trmqp_rslt_oplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  676. <ColumnInfo>
  677. <Column id="termcd" type="STRING" size="256" sumtext="용어코드"/>
  678. <Column id="termnm" type="STRING" size="256" sumtext="용어한글명"/>
  679. <Column id="detlinfoflagcd" type="STRING" size="256" sumtext="용어구분(진단/주호소/수술)"/>
  680. <Column id="detlinfoseq" type="INT" size="256" sumtext="detlinfoseq"/>
  681. <Column id="m" type="STRING" size="256" sumtext="저장 flag"/>
  682. </ColumnInfo>
  683. </Dataset>
  684. <Dataset id="ds_temp1_trmqp_rslt_cclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  685. <ColumnInfo>
  686. <Column id="termcd" type="STRING" size="256" sumtext="용어코드"/>
  687. <Column id="termnm" type="STRING" size="256" sumtext="용어한글명"/>
  688. <Column id="detlinfoflagcd" type="STRING" size="256" sumtext="용어구분(진단/주호소/수술)"/>
  689. <Column id="detlinfoseq" type="INT" size="256" sumtext="detlinfoseq"/>
  690. <Column id="m" type="STRING" size="256" sumtext="저장 flag"/>
  691. </ColumnInfo>
  692. </Dataset>
  693. <Dataset id="ds_temp1_trmqp_rslt_exclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  694. <ColumnInfo>
  695. <Column id="termcd" type="STRING" size="256" sumtext="사유코드"/>
  696. <Column id="userid" type="STRING" size="256" sumtext="이력순번"/>
  697. <Column id="termnm" type="STRING" size="256" sumtext="한글명"/>
  698. <Column id="detlinfoflagcd" type="STRING" size="256" sumtext="용어구분(Exclusion 사유)"/>
  699. <Column id="detlinfoseq" type="STRING" size="256" sumtext="detlinfoseq"/>
  700. <Column id="m" type="STRING" size="256" sumtext="저장 flag"/>
  701. </ColumnInfo>
  702. </Dataset>
  703. <Dataset id="ds_temp1_trmqp_rslt_droplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  704. <ColumnInfo>
  705. <Column id="termcd" type="STRING" size="256" sumtext="사유코드"/>
  706. <Column id="userid" type="STRING" size="256" sumtext="이력순번"/>
  707. <Column id="termnm" type="STRING" size="256" sumtext="한글명"/>
  708. <Column id="detlinfoflagcd" type="STRING" size="256" sumtext="용어구분(Drop 사유)"/>
  709. <Column id="detlinfoseq" type="STRING" size="256" sumtext="detlinfoseq"/>
  710. <Column id="m" type="STRING" size="256" sumtext="저장 flag"/>
  711. </ColumnInfo>
  712. </Dataset>
  713. <Dataset id="ds_temp1_trmqp_rslt_attach" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  714. <ColumnInfo>
  715. <Column id="attfilenm" type="STRING" size="256" sumtext="파일명"/>
  716. <Column id="file" type="STRING" size="256" sumtext="파일경로"/>
  717. <Column id="detlinfoseq" type="INT" size="256" sumtext="상세정보순번"/>
  718. <Column id="check" type="STRING" size="256" sumtext="체크여부"/>
  719. <Column id="path" type="STRING" size="256" sumtext="파일경로2"/>
  720. </ColumnInfo>
  721. </Dataset>
  722. <Dataset id="ds_temp1_trmqp_rslt_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  723. <ColumnInfo>
  724. <Column id="userid" type="STRING" size="256" sumtext="요청자"/>
  725. <Column id="usernm" type="STRING" size="256" sumtext="요청자"/>
  726. <Column id="detlinfoflagcd" type="STRING" size="256" sumtext="상세정보구분"/>
  727. <Column id="detlinfoseq" type="INT" size="256" sumtext="detlinfoseq"/>
  728. <Column id="m" type="STRING" size="256" sumtext="저장 flag"/>
  729. </ColumnInfo>
  730. </Dataset>
  731. <Dataset id="ds_temp1_trmqp_rslt_indexlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  732. <ColumnInfo>
  733. <Column id="indxno" type="INT" size="256" sumtext="색인번호"/>
  734. <Column id="indxnm" type="STRING" size="256" sumtext="색인명"/>
  735. <Column id="supindxno" type="INT" size="256" sumtext="상위색인번호"/>
  736. <Column id="indxrefseq" type="INT" size="256" sumtext="색인조회순서"/>
  737. <Column id="indxseq" type="STRING" size="256" sumtext="색인순번"/>
  738. <Column id="m" type="STRING" size="256" sumtext="저장 flag"/>
  739. </ColumnInfo>
  740. </Dataset>
  741. <Dataset id="ds_temp1_trmqp_rslt_steplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  742. <ColumnInfo>
  743. <Column id="stepno" type="STRING" size="256" sumtext="스텝번호"/>
  744. <Column id="stepflagcd" type="STRING" size="256" sumtext="스텝구분"/>
  745. <Column id="stepmemo" type="STRING" size="256" sumtext="스텝설명"/>
  746. <Column id="lnkstepno" type="STRING" size="256" sumtext="연결스텝번호"/>
  747. <Column id="times" type="STRING" size="256" sumtext="횟차"/>
  748. <Column id="startendflag" type="STRING" size="256" sumtext="시작종료스텝구분"/>
  749. <Column id="swimlineno" type="STRING" size="256" sumtext="스윔라인번호"/>
  750. <Column id="refseq" type="STRING" size="256" sumtext="순번"/>
  751. <Column id="decirflag" type="STRING" size="256" sumtext="결정자구분"/>
  752. <Column id="setno" type="STRING" size="256" sumtext="셋번호"/>
  753. <Column id="settypecd" type="STRING" size="256" sumtext="셋종류"/>
  754. <Column id="m" type="STRING" size="256" sumtext="저장 flag"/>
  755. <Column id="stepnm" type="STRING" size="256" sumtext="스텝명"/>
  756. <Column id="formexistyn" type="STRING" size="256" sumtext="서식존재여부"/>
  757. <Column id="dcsnstep" type="STRING" size="256" sumtext="적용시,결정된스텝번호"/>
  758. <Column id="orgstepno" type="STRING" size="256" sumtext="스텝번호(copy)"/>
  759. <Column id="fixedStCntl" type="STRING" size="256" sumtext="control id(화면에서만 사용 )"/>
  760. <!-- pymi 2008.07.31 추가 -->
  761. <Column id="tmpstepnm" type="STRING" size="256" sumtext="tmpstepnm"/>
  762. <!-- pymi 2008.07.31 추가 -->
  763. <Column id="stepattrflag" type="STRING" size="256" sumtext="CPG스텝에 속성존재여부 표현 flag(O/M/T/MO)"/>
  764. </ColumnInfo>
  765. </Dataset>
  766. <Dataset id="ds_temp1_trmqp_rslt_decisionlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  767. <ColumnInfo>
  768. <Column id="stepno" type="STRING" size="256" sumtext="스텝번호"/>
  769. <Column id="deciseq" type="STRING" size="256" sumtext="결정스텝순번"/>
  770. <Column id="lnkstepno" type="STRING" size="256" sumtext="연결스텝번호"/>
  771. <Column id="m" type="STRING" size="256" sumtext="저장 flag"/>
  772. </ColumnInfo>
  773. </Dataset>
  774. <Dataset id="ds_temp1_trmqp_rslt_formlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  775. <ColumnInfo>
  776. <Column id="formcd" type="STRING" size="256" sumtext="서식코드"/>
  777. <Column id="formnm" type="STRING" size="256" sumtext="서식명"/>
  778. <!-- 20130523 정창혁 -->
  779. <Column id="formseq" type="STRING" size="256" sumtext="서식순번"/>
  780. <Column id="formrecseq" type="STRING" size="256" sumtext="서식기록순번"/>
  781. <Column id="m" type="STRING" size="256" sumtext="상태"/>
  782. </ColumnInfo>
  783. </Dataset>
  784. <Dataset id="ds_temp1_trmqp_rslt_sortedsteplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  785. <ColumnInfo>
  786. <Column id="stepno" type="STRING" size="256" sumtext="스텝번호"/>
  787. <Column id="stepflagcd" type="STRING" size="256" sumtext="스텝구분"/>
  788. <Column id="stepmemo" type="STRING" size="256" sumtext="스텝설명"/>
  789. <Column id="lnkstepno" type="STRING" size="256" sumtext="연결스텝번호"/>
  790. <Column id="times" type="STRING" size="256" sumtext="횟차"/>
  791. <Column id="startendflag" type="STRING" size="256" sumtext="시작종료스텝구분"/>
  792. <Column id="swimlineno" type="STRING" size="256" sumtext="스윔라인번호"/>
  793. <Column id="refseq" type="STRING" size="256" sumtext="순번"/>
  794. <Column id="decirflag" type="STRING" size="256" sumtext="결정자구분"/>
  795. <Column id="setno" type="STRING" size="256" sumtext="셋번호"/>
  796. <Column id="settypecd" type="STRING" size="256" sumtext="셋종류"/>
  797. <Column id="m" type="STRING" size="256" sumtext="저장 flag"/>
  798. <Column id="stepnm" type="STRING" size="256" sumtext="스텝명"/>
  799. <Column id="formexistyn" type="STRING" size="256" sumtext="서식존재여부"/>
  800. <Column id="dcsnstep" type="STRING" size="256" sumtext="적용시,결정된스텝번호"/>
  801. <Column id="orgstepno" type="STRING" size="256" sumtext="스텝번호(copy)"/>
  802. </ColumnInfo>
  803. </Dataset>
  804. <Dataset id="ds_temp1_trmqp_rslt_mntrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  805. <ColumnInfo>
  806. <Column id="cpgno" type="STRING" size="256" sumtext="CPG번호"/>
  807. <Column id="cpghistseq" type="STRING" size="256" sumtext="CPG이력번호(일치하지 않을 수 있으니 참조하지 말것)"/>
  808. <Column id="slipno" type="STRING" size="256" sumtext="슬립번호"/>
  809. <Column id="sliphistno" type="STRING" size="256" sumtext="슬립이력번호"/>
  810. <Column id="slipnm" type="STRING" size="256" sumtext="슬립명"/>
  811. <Column id="cpgmntrflag" type="STRING" size="256" sumtext="CPG모니터링구분"/>
  812. <Column id="guidedocucnts" type="STRING" size="256" sumtext="가이드내용"/>
  813. <Column id="stepno" type="STRING" size="256" sumtext="stepno"/>
  814. <Column id="stepnm" type="STRING" size="256" sumtext="stepnm"/>
  815. <Column id="alertcondflag" type="STRING" size="256" sumtext="알람조건구분(전체/일부)"/>
  816. <Column id="ifcondcnt" type="STRING" size="256" sumtext="알람충족건수"/>
  817. <Column id="thencondcnt" type="STRING" size="256" sumtext="알람충족건수"/>
  818. <Column id="alertcondcnt" type="STRING" size="256" sumtext="알람충족건수"/>
  819. <Column id="alertgrde" type="STRING" size="256" sumtext="알람등급"/>
  820. <Column id="alertcnts" type="STRING" size="256" sumtext="IF조건내용"/>
  821. <Column id="orddrid" type="STRING" size="256" sumtext="순번"/>
  822. <Column id="useyn" type="STRING" size="256" sumtext="서식구분"/>
  823. <Column id="sliptypecd" type="STRING" size="256" sumtext="슬립형태"/>
  824. <Column id="slipkindcd" type="STRING" size="256" sumtext="슬립종류"/>
  825. <Column id="actcnts" type="STRING" size="256" sumtext="action 내용"/>
  826. <Column id="cpgappno" type="STRING" size="256" sumtext="cpgappno(M-GPS)"/>
  827. <Column id="alertstatcd" type="STRING" size="256" sumtext="alertstatcd(M-GPS)"/>
  828. <Column id="alertoffyn" type="STRING" size="256" sumtext="alertoffyn(M-GPS)"/>
  829. <Column id="alertstatyn" type="STRING" size="256" sumtext="alertstatcd(M-GPS)"/>
  830. <Column id="alertsatsfctcnt" type="STRING" size="256" sumtext="alertsatsfctcnt(M-GPS)"/>
  831. </ColumnInfo>
  832. </Dataset>
  833. <Dataset id="ds_temp1_trmqp_rslt_limheaderinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  834. <ColumnInfo>
  835. <Column id="cpgno" type="STRING" size="256" sumtext="cpg번호"/>
  836. <Column id="cpghistseq" type="STRING" size="256" sumtext="cpg이력번호(일치하지 않을 수 있으니 참조하지 말것)"/>
  837. <Column id="limno" type="STRING" size="256" sumtext="제한시간번호"/>
  838. <Column id="limhistno" type="STRING" size="256" sumtext="제한시간이력번호"/>
  839. <Column id="title" type="STRING" size="256" sumtext="제목"/>
  840. <Column id="stepno" type="STRING" size="256" sumtext="stepno"/>
  841. <Column id="stepnm" type="STRING" size="256" sumtext="step명"/>
  842. <Column id="setno" type="STRING" size="256" sumtext="setno"/>
  843. <Column id="settypecd" type="STRING" size="256" sumtext="settypecd"/>
  844. <Column id="stepsetupflag" type="STRING" size="256" sumtext="stepsetupflag"/>
  845. <Column id="stepsetupflag" type="STRING" size="256" sumtext="stepsetupflag"/>
  846. <Column id="alertstndpntnflag" type="STRING" size="256" sumtext="alertstndpntnflag"/>
  847. <Column id="limtm" type="STRING" size="256" sumtext="limtm"/>
  848. <Column id="limtmunitflag" type="STRING" size="256" sumtext="limtmunitflag"/>
  849. <Column id="alertcnt" type="STRING" size="256" sumtext="alertcnt"/>
  850. <Column id="alertgrde" type="STRING" size="256" sumtext="alertgrde"/>
  851. <Column id="limtermtm" type="STRING" size="256" sumtext="limtermtm"/>
  852. <Column id="prcpstatcd" type="STRING" size="256" sumtext="prcpstatcd"/>
  853. <Column id="alerttrgtno" type="STRING" size="256" sumtext="alerttrgtno"/>
  854. <Column id="alerttrgtdetlno" type="STRING" size="256" sumtext="alerttrgtdetlno"/>
  855. <Column id="alerttrgtdetlcnts" type="STRING" size="256" sumtext="alerttrgtdetlcnts"/>
  856. <Column id="cpgappno" type="STRING" size="256" sumtext="cpgappno(M-GPS)"/>
  857. <Column id="alertstatcd" type="STRING" size="256" sumtext="alertstatcd(M-GPS)"/>
  858. <Column id="alertoffyn" type="STRING" size="256" sumtext="alertoffyn(M-GPS)"/>
  859. </ColumnInfo>
  860. </Dataset>
  861. <Dataset id="ds_temp1_trmqp_rslt_inqrheader" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  862. <ColumnInfo>
  863. <Column id="inqrno" type="STRING" size="256" sumtext="문진번호"/>
  864. <Column id="inqrhistno" type="STRING" size="256" sumtext="문진이력번호"/>
  865. <Column id="cpgno" type="STRING" size="256" sumtext="cpg번호"/>
  866. <Column id="cpghistseq" type="STRING" size="256" sumtext="cpg이력번호"/>
  867. <Column id="title" type="STRING" size="256" sumtext="문진제목"/>
  868. <Column id="title" type="STRING" size="256" sumtext="문진제목"/>
  869. <Column id="guide" type="STRING" size="256" sumtext="가이드라인"/>
  870. <Column id="pntmflag" type="STRING" size="256" sumtext="팝업시점"/>
  871. <Column id="inqrflag" type="STRING" size="256" sumtext="문진용도"/>
  872. <Column id="stepno" type="STRING" size="256" sumtext="step번호"/>
  873. <Column id="stepnm" type="STRING" size="256" sumtext="step명"/>
  874. <Column id="qestcnts" type="STRING" size="256" sumtext="질문내용"/>
  875. <Column id="cpgappno" type="STRING" size="256" sumtext="cpgappno(M-GPS)"/>
  876. <Column id="inqrstatcd" type="STRING" size="256" sumtext="alertstatcd(M-GPS)"/>
  877. <Column id="inqroffyn" type="STRING" size="256" sumtext="inqroffyn"/>
  878. <Column id="inqranswdd" type="STRING" size="256" sumtext="inqranswdd"/>
  879. </ColumnInfo>
  880. </Dataset>
  881. <Dataset id="ds_temp1_trmqp_rslt_inqranswer" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  882. <ColumnInfo>
  883. <Column id="inqrno" type="STRING" size="256" sumtext="문진번호"/>
  884. <Column id="inqrhistno" type="STRING" size="256" sumtext="문진이력번호"/>
  885. <Column id="qestno" type="STRING" size="256" sumtext="질문번호"/>
  886. <Column id="qestcnts" type="STRING" size="256" sumtext="질문제목"/>
  887. <Column id="answflag" type="STRING" size="256" sumtext="답안구분"/>
  888. <Column id="answno" type="STRING" size="256" sumtext="답안번호"/>
  889. <Column id="answcnts" type="STRING" size="256" sumtext="답안내용"/>
  890. <Column id="answstatcd" type="STRING" size="256" sumtext="alertstatcd(M-GPS)"/>
  891. <Column id="cpgappno" type="STRING" size="256" sumtext="cpgappno(M-GPS)"/>
  892. </ColumnInfo>
  893. </Dataset>
  894. <Dataset id="ds_temp1_trmqp_rslt_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  895. <ColumnInfo>
  896. <Column id="termcd" type="STRING" size="256" sumtext="진료과코드"/>
  897. <Column id="termnm" type="STRING" size="256" sumtext="진료과명"/>
  898. </ColumnInfo>
  899. </Dataset>
  900. <Dataset id="ds_main_masterinfo_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  901. <Dataset id="ds_main_steplist_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  902. <Dataset id="ds_main_attfileinfo_attach" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  903. <ColumnInfo>
  904. <Column id="attfilenm" type="STRING"/>
  905. <Column id="file" type="STRING"/>
  906. <Column id="check" type="STRING"/>
  907. </ColumnInfo>
  908. </Dataset>
  909. <Dataset id="ds_main_decisionlist_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  910. <Dataset id="ds_main_mntrinfo_mntrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_mntrinfo_mntrlist_oncolumnchanged">
  911. <ColumnInfo>
  912. <Column id="slipnm" type="STRING"/>
  913. <Column id="alertcnts" type="STRING"/>
  914. <Column id="alertcondcnt" type="STRING"/>
  915. <Column id="alertgrde" type="STRING"/>
  916. <Column id="alertstatcd" type="STRING"/>
  917. <Column id="alertoffyn" type="STRING"/>
  918. <Column id="cpgappno" type="STRING"/>
  919. <Column id="alertprecondyn" type="STRING"/>
  920. <Column id="slipno" type="STRING"/>
  921. <Column id="sliphistno" type="STRING"/>
  922. <Column id="cpgno" type="STRING"/>
  923. <Column id="cpghistseq" type="STRING"/>
  924. <Column id="cpgmntrflag" type="STRING"/>
  925. <Column id="guidedocucnts" type="STRING"/>
  926. <Column id="stepno" type="STRING"/>
  927. <Column id="stepnm" type="STRING"/>
  928. <Column id="alertcondflag" type="STRING"/>
  929. <Column id="orddrid" type="STRING"/>
  930. </ColumnInfo>
  931. </Dataset>
  932. <Dataset id="ds_main_mntrdetlinfo_mntrdetllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  933. <ColumnInfo>
  934. <Column id="checkyn" type="STRING"/>
  935. <Column id="alertprecondyn" type="STRING"/>
  936. <Column id="testcd" type="STRING"/>
  937. <Column id="testnm" type="STRING"/>
  938. <Column id="reflval" type="STRING"/>
  939. <Column id="lvalappflag" type="STRING"/>
  940. <Column id="refhval" type="STRING"/>
  941. <Column id="hvalappflag" type="STRING"/>
  942. <Column id="refcnts" type="STRING"/>
  943. <Column id="unitnm" type="STRING"/>
  944. </ColumnInfo>
  945. </Dataset>
  946. <Dataset id="ds_main_inqrinfo_inqrheader" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  947. <ColumnInfo>
  948. <Column id="stepnm" type="STRING"/>
  949. <Column id="inqranswdd" type="STRING"/>
  950. <Column id="title" type="STRING"/>
  951. <Column id="inqrstatcd" type="STRING"/>
  952. </ColumnInfo>
  953. </Dataset>
  954. <Dataset id="ds_main_limtminfo_limheaderinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  955. <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  956. <Dataset id="ds_main_steppath_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  957. <Dataset id="ds_main_steppath_appinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  958. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  959. <ColumnInfo>
  960. <Column id="appscopmode" type="STRING" size="256"/>
  961. <Column id="appscoplist" type="STRING" size="256"/>
  962. </ColumnInfo>
  963. <Rows>
  964. <Row/>
  965. </Rows>
  966. </Dataset>
  967. <Dataset id="ds_main_sortedsteplist_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  968. <Dataset id="ds_main_sortedsteplist_appinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  969. <Dataset id="ds_main_steppath_mntrappinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  970. <Dataset id="ds_main_steppath_mntrappinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  971. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  972. <Dataset id="ds_main_formsrchcond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  973. <ColumnInfo>
  974. <Column id="fromdd" type="STRING" size="256"/>
  975. <Column id="todd" type="STRING" size="256"/>
  976. </ColumnInfo>
  977. </Dataset>
  978. <Dataset id="ds_main_formlist_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  979. <ColumnInfo>
  980. <Column id="formseq" type="STRING"/>
  981. <Column id="times" type="STRING"/>
  982. <Column id="stepnm" type="STRING"/>
  983. <Column id="prcpdd" type="STRING"/>
  984. <Column id="formnm" type="STRING"/>
  985. <Column id="status" type="STRING"/>
  986. <Column id="formcd" type="STRING"/>
  987. <Column id="formprogflag" type="STRING"/>
  988. <Column id="formrecseq" type="STRING"/>
  989. </ColumnInfo>
  990. </Dataset>
  991. <Dataset id="ds_main_formlist_prityinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  992. <Dataset id="ds_patflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  993. <Dataset id="ds_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  994. <Dataset id="ds_send_srchcond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  995. <Dataset id="ds_send_steplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  996. <Dataset id="ds_send_delprcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  997. <Dataset id="ds_send_errprcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  998. <Dataset id="ds_send_saveinvaliprcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  999. <Dataset id="ds_result_prcperrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1000. <Dataset id="ds_send_dessprcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1001. <Dataset id="ds_send_pessprcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1002. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1003. <Dataset id="ds_temp1_tmpprcplist_prcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1004. <Dataset id="ds_main_stepinfo_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1005. <ColumnInfo>
  1006. <Column id="stepno" type="STRING" size="256"/>
  1007. <Column id="times" type="STRING" size="256"/>
  1008. <Column id="stepmemo" type="STRING" size="256"/>
  1009. <Column id="stepnm" type="STRING" size="256"/>
  1010. <Column id="stepflagcd" type="STRING" size="256"/>
  1011. <Column id="setno" type="STRING" size="256"/>
  1012. <Column id="daynm" type="STRING" size="256"/>
  1013. </ColumnInfo>
  1014. <Rows>
  1015. <Row>
  1016. <Col id="stepno"/>
  1017. <Col id="times"/>
  1018. <Col id="stepmemo"/>
  1019. <Col id="stepnm"/>
  1020. <Col id="stepflagcd"/>
  1021. <Col id="setno"/>
  1022. <Col id="daynm"/>
  1023. </Row>
  1024. </Rows>
  1025. </Dataset>
  1026. <Dataset id="ds_temp1_exe" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1027. <ColumnInfo>
  1028. <Column id="bizabbr" type="STRING" size="256"/>
  1029. <Column id="modulenm" type="STRING" size="256"/>
  1030. <Column id="prgmid" type="STRING" size="256"/>
  1031. <Column id="prgmnm" type="STRING" size="256"/>
  1032. <Column id="useyn" type="STRING" size="256"/>
  1033. <Column id="fstrgstrid" type="STRING" size="256"/>
  1034. <Column id="fstrgstdt" type="STRING" size="256"/>
  1035. <Column id="lastupdtrid" type="STRING" size="256"/>
  1036. <Column id="lastupdtdt" type="STRING" size="256"/>
  1037. <Column id="paramcnts" type="STRING" size="256"/>
  1038. </ColumnInfo>
  1039. <Rows>
  1040. <Row>
  1041. <Col id="bizabbr">com</Col>
  1042. <Col id="modulenm">prcpmngtmgr</Col>
  1043. <Col id="prgmid">PrcpMngtBatch</Col>
  1044. <Col id="prgmnm">CP프로토콜배치_입원</Col>
  1045. <Col id="useyn">Y</Col>
  1046. <Col id="fstrgstrid">COM</Col>
  1047. <Col id="fstrgstdt">20070712154645164</Col>
  1048. <Col id="lastupdtrid">EMR</Col>
  1049. <Col id="lastupdtdt"/>
  1050. <Col id="paramcnts"/>
  1051. </Row>
  1052. </Rows>
  1053. </Dataset>
  1054. <Dataset id="ds_main_invalprcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1055. <Dataset id="ds_cmb_formlist_status" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1056. <ColumnInfo>
  1057. <Column id="label" type="STRING" size="256"/>
  1058. <Column id="value" type="STRING" size="256"/>
  1059. </ColumnInfo>
  1060. <Rows>
  1061. <Row>
  1062. <Col id="label">출력</Col>
  1063. <Col id="value">P</Col>
  1064. </Row>
  1065. <Row>
  1066. <Col id="label">반납</Col>
  1067. <Col id="value">R</Col>
  1068. </Row>
  1069. <Row>
  1070. <Col id="label">반납확인</Col>
  1071. <Col id="value">C</Col>
  1072. </Row>
  1073. <Row>
  1074. <Col id="label">삭제</Col>
  1075. <Col id="value">D</Col>
  1076. </Row>
  1077. <Row>
  1078. <Col id="label">출력취소</Col>
  1079. <Col id="value">CP</Col>
  1080. </Row>
  1081. <Row>
  1082. <Col id="label">반납취소</Col>
  1083. <Col id="value">CR</Col>
  1084. </Row>
  1085. <Row>
  1086. <Col id="label">반납확인취소</Col>
  1087. <Col id="value">CC</Col>
  1088. </Row>
  1089. <Row>
  1090. <Col id="label">삭제취소</Col>
  1091. <Col id="value">CD</Col>
  1092. </Row>
  1093. <Row>
  1094. <Col id="label">임시저장</Col>
  1095. <Col id="value">0T</Col>
  1096. </Row>
  1097. <Row>
  1098. <Col id="label">인증저장</Col>
  1099. <Col id="value">0S</Col>
  1100. </Row>
  1101. <Row>
  1102. <Col id="label">미작성</Col>
  1103. <Col id="value">0N</Col>
  1104. </Row>
  1105. <Row>
  1106. <Col id="label">미발행</Col>
  1107. <Col id="value">10</Col>
  1108. </Row>
  1109. <Row>
  1110. <Col id="label">발행</Col>
  1111. <Col id="value">20</Col>
  1112. </Row>
  1113. <Row>
  1114. <Col id="label">재발행</Col>
  1115. <Col id="value">30</Col>
  1116. </Row>
  1117. <Row>
  1118. <Col id="label">재출력</Col>
  1119. <Col id="value">40</Col>
  1120. </Row>
  1121. <Row>
  1122. <Col id="label">취소</Col>
  1123. <Col id="value">C04</Col>
  1124. </Row>
  1125. <Row>
  1126. <Col id="label">취소</Col>
  1127. <Col id="value">C05</Col>
  1128. </Row>
  1129. <Row>
  1130. <Col id="label">의뢰임시</Col>
  1131. <Col id="value">C11</Col>
  1132. </Row>
  1133. <Row>
  1134. <Col id="label">의뢰</Col>
  1135. <Col id="value">C12</Col>
  1136. </Row>
  1137. <Row>
  1138. <Col id="label">의뢰확정</Col>
  1139. <Col id="value">C20</Col>
  1140. </Row>
  1141. <Row>
  1142. <Col id="label">회신임시</Col>
  1143. <Col id="value">C21</Col>
  1144. </Row>
  1145. <Row>
  1146. <Col id="label">회신</Col>
  1147. <Col id="value">C22</Col>
  1148. </Row>
  1149. <Row>
  1150. <Col id="label">회신확정</Col>
  1151. <Col id="value">C30</Col>
  1152. </Row>
  1153. <Row>
  1154. <Col id="label">추가임시</Col>
  1155. <Col id="value">C31</Col>
  1156. </Row>
  1157. <Row>
  1158. <Col id="label">추가회신</Col>
  1159. <Col id="value">C32</Col>
  1160. </Row>
  1161. <Row>
  1162. <Col id="label">추가확정</Col>
  1163. <Col id="value">C40</Col>
  1164. </Row>
  1165. </Rows>
  1166. </Dataset>
  1167. <Dataset id="ds_cmb_inqr_status" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1168. <ColumnInfo>
  1169. <Column id="label" type="STRING" size="256"/>
  1170. <Column id="value" type="STRING" size="256"/>
  1171. </ColumnInfo>
  1172. <Rows>
  1173. <Row>
  1174. <Col id="label">작성</Col>
  1175. <Col id="value">E</Col>
  1176. </Row>
  1177. <Row>
  1178. <Col id="label">확인</Col>
  1179. <Col id="value">C</Col>
  1180. </Row>
  1181. <Row>
  1182. <Col id="label">미작성</Col>
  1183. <Col id="value">-</Col>
  1184. </Row>
  1185. <Row>
  1186. <Col id="label">미작성</Col>
  1187. <Col id="value">N</Col>
  1188. </Row>
  1189. </Rows>
  1190. </Dataset>
  1191. <Dataset id="ds_temp_popup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1192. <Dataset id="ds_temp1_oplist_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1193. <ColumnInfo>
  1194. <Column id="oproomnm" type="STRING" size="256" sumtext="수술방"/>
  1195. <Column id="opfromtmcd" type="STRING" size="256" sumtext="수술시작시간"/>
  1196. <Column id="opusetm" type="STRING" size="256" sumtext="수술소요시간"/>
  1197. <Column id="opnm" type="STRING" size="256" sumtext="수술명"/>
  1198. <Column id="anstmthdcd" type="STRING" size="256" sumtext="마취방법"/>
  1199. <Column id="opstatcd" type="STRING" size="256" sumtext="수술상태"/>
  1200. <Column id="perfdrnm" type="STRING" size="256" sumtext="주치의"/>
  1201. <Column id="opendtmcd" type="STRING" size="256" sumtext="수술종료시간"/>
  1202. <Column id="opflagcd" type="STRING" size="256" sumtext="수술구분"/>
  1203. <Column id="oprsrvno" type="STRING" size="256" sumtext="수술예약번호"/>
  1204. <Column id="diagnm" type="STRING" size="256" sumtext="진단명"/>
  1205. <Column id="opschedd" type="STRING" size="256" sumtext="수술예정일"/>
  1206. <Column id="opcnfmdd" type="STRING" size="256" sumtext="수술확정일"/>
  1207. <Column id="perfdeptcd" type="STRING" size="256" sumtext="수술확정일"/>
  1208. <Column id="perfdrid" type="STRING" size="256" sumtext="수술확정일"/>
  1209. <Column id="ophistno" type="STRING" size="256" sumtext="수술확정일"/>
  1210. </ColumnInfo>
  1211. </Dataset>
  1212. <Dataset id="ds_cmb_lvalappflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1213. <ColumnInfo>
  1214. <Column id="label" type="STRING" size="256"/>
  1215. <Column id="value" type="STRING" size="256"/>
  1216. </ColumnInfo>
  1217. <Rows>
  1218. <Row>
  1219. <Col id="label">이상</Col>
  1220. <Col id="value">U</Col>
  1221. </Row>
  1222. <Row>
  1223. <Col id="label">이하</Col>
  1224. <Col id="value">D</Col>
  1225. </Row>
  1226. <Row>
  1227. <Col id="label">-</Col>
  1228. <Col id="value">-</Col>
  1229. </Row>
  1230. </Rows>
  1231. </Dataset>
  1232. <Dataset id="ds_cmb_hvalappflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1233. <ColumnInfo>
  1234. <Column id="label" type="STRING" size="256"/>
  1235. <Column id="value" type="STRING" size="256"/>
  1236. </ColumnInfo>
  1237. <Rows>
  1238. <Row>
  1239. <Col id="label">이상</Col>
  1240. <Col id="value">U</Col>
  1241. </Row>
  1242. <Row>
  1243. <Col id="label">이하</Col>
  1244. <Col id="value">D</Col>
  1245. </Row>
  1246. <Row>
  1247. <Col id="label">-</Col>
  1248. <Col id="value">-</Col>
  1249. </Row>
  1250. </Rows>
  1251. </Dataset>
  1252. <Dataset id="ds_init_prcpkindcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1253. <Dataset id="ds_init_prcpclscd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1254. <Dataset id="ds_init_prcpstatcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1255. <Dataset id="ds_init_hosinprcpresncd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1256. <Dataset id="ds_init_payflagcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1257. <Dataset id="ds_main_prcpsrch_prcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1258. <ColumnInfo>
  1259. <Column id="status" type="STRING" size="256" sumtext="처리구분"/>
  1260. <Column id="prcpstatcd" type="STRING" size="256" sumtext="처방상태코드"/>
  1261. <Column id="prcpclscd" type="STRING" size="256" sumtext="처방분류코드"/>
  1262. <Column id="prcpkindcd" type="STRING" size="256" sumtext="처방종류코드"/>
  1263. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  1264. <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
  1265. <Column id="prcpvol" type="STRING" size="256" sumtext="처방용량"/>
  1266. <Column id="prcpvolunitnm" type="STRING" size="256" sumtext="처방용량단위명"/>
  1267. <Column id="prcpqty" type="STRING" size="256" sumtext="처방수량"/>
  1268. <Column id="prcpqtyunitnm" type="STRING" size="256" sumtext="처방수량단위명"/>
  1269. <Column id="prcptims" type="STRING" size="256" sumtext="처방횟수"/>
  1270. <Column id="prcpdayno" type="STRING" size="256" sumtext="처방일수"/>
  1271. <Column id="drugmthdspccdnm" type="STRING" size="256" sumtext="투여방법검체코드명"/>
  1272. <Column id="prcpmixno" type="STRING" size="256" sumtext="처방Mix번호"/>
  1273. <Column id="payflagcd" type="STRING" size="256" sumtext="급여구분코드"/>
  1274. <Column id="prcpdelivefact" type="STRING" size="256" sumtext="전달사항"/>
  1275. <Column id="hosinhosoutflag" type="STRING" size="256" sumtext="원내/원외구분"/>
  1276. <Column id="prcpexecdeptcd" type="STRING" size="256" sumtext="처방실시부서코드"/>
  1277. <Column id="prcphopedd" type="STRING" size="256" sumtext="처방희망일시"/>
  1278. <Column id="choiordflag" type="STRING" size="256" sumtext="선택진료구분"/>
  1279. <Column id="rgstdt" type="STRING" size="256" sumtext="등록일시"/>
  1280. <Column id="rgstridnm" type="STRING" size="256" sumtext="등록자명"/>
  1281. <Column id="testrsltunit" type="STRING" size="256" sumtext="검사결과단위"/>
  1282. <Column id="testrsltcnts" type="STRING" size="256" sumtext="검사결과"/>
  1283. <Column id="prcpgenrflag" type="STRING" size="256" sumtext="처방발생구분"/>
  1284. <Column id="prcphistcd" type="STRING" size="256" sumtext="처방이력코드"/>
  1285. <Column id="tempprcpflag" type="STRING" size="256" sumtext="임시처방구분"/>
  1286. <Column id="prcpsetcd" type="STRING" size="256" sumtext="처방SET코드"/>
  1287. <Column id="prcpvolunitflag" type="STRING" size="256" sumtext="처방용량단위구분"/>
  1288. <Column id="prcpqtyunitflag" type="STRING" size="256" sumtext="처방수량단위구분"/>
  1289. <Column id="orgprcpqty" type="STRING" size="256" sumtext="실제처방수량"/>
  1290. <Column id="drugspd" type="STRING" size="256" sumtext="투여속도"/>
  1291. <Column id="drugspdunitflag" type="STRING" size="256" sumtext="투여속도단위구분"/>
  1292. <Column id="powdflag" type="STRING" size="256" sumtext="파우더구분"/>
  1293. <Column id="prnprcpflag" type="STRING" size="256" sumtext="PRN처방구분"/>
  1294. <Column id="prepprcpflag" type="STRING" size="256" sumtext="Prep처방구분"/>
  1295. <Column id="selfprcpflag" type="STRING" size="256" sumtext="자가처방구분"/>
  1296. <Column id="selfdrugflag" type="STRING" size="256" sumtext="SELF약구분"/>
  1297. <Column id="drugpackflag" type="STRING" size="256" sumtext="투약포장구분"/>
  1298. <Column id="erprcpflag" type="STRING" size="256" sumtext="응급처방구분"/>
  1299. <Column id="precureprcpflag" type="STRING" size="256" sumtext="선처치처방구분"/>
  1300. <Column id="nigtprcpflag" type="STRING" size="256" sumtext="야간처방구분"/>
  1301. <Column id="portprcpflag" type="STRING" size="256" sumtext="포터블처방구분"/>
  1302. <Column id="fixprcpflag" type="STRING" size="256" sumtext="정액처방구분"/>
  1303. <Column id="anamneflag" type="STRING" size="256" sumtext="기왕증(력)구분"/>
  1304. <Column id="fastprcpflag" type="STRING" size="256" sumtext="금식처방구분"/>
  1305. <Column id="erreadflag" type="STRING" size="256" sumtext="응급판독구분"/>
  1306. <Column id="prcpdirecflag" type="STRING" size="256" sumtext="처방방향구분"/>
  1307. <Column id="tnsuseflag" type="STRING" size="256" sumtext="수혈사용구분"/>
  1308. <Column id="tnsfiltflag" type="STRING" size="256" sumtext="수혈필터구분"/>
  1309. <Column id="trnptbftestflag" type="STRING" size="256" sumtext="이식전검사구분"/>
  1310. <Column id="offictourhealexamflag" type="STRING" size="256" sumtext="출장건진구분"/>
  1311. <Column id="stemcellflag" type="STRING" size="256" sumtext="조혈모(줄기)세포구분"/>
  1312. <Column id="angioflagcd" type="STRING" size="256" sumtext="Angio구분"/>
  1313. <Column id="opansflagcd" type="STRING" size="256" sumtext="수술마취구분"/>
  1314. <Column id="ansttm" type="STRING" size="256" sumtext="마취시간"/>
  1315. <Column id="mealcalrcnts" type="STRING" size="256" sumtext="식이열량함량"/>
  1316. <Column id="mealprotcnts" type="STRING" size="256" sumtext="식이단백질함량"/>
  1317. <Column id="mealupdtflag" type="STRING" size="256" sumtext="식이수정구분"/>
  1318. <Column id="hosinprcpresncd" type="STRING" size="256" sumtext="원내처방사유코드"/>
  1319. <Column id="etcprcpresncd" type="STRING" size="256" sumtext="기타처방사유코드"/>
  1320. <Column id="drugmthdspccd" type="STRING" size="256" sumtext="투여방법검체코드"/>
  1321. <Column id="issdeptcd" type="STRING" size="256" sumtext="발행부서코드"/>
  1322. <Column id="prcpauthflag" type="STRING" size="256" sumtext="처방권한구분"/>
  1323. <Column id="prcpinptflag" type="STRING" size="256" sumtext="처방입력구분"/>
  1324. <Column id="prcpsignflag" type="STRING" size="256" sumtext="처방서명구분"/>
  1325. <Column id="rateprcpflag" type="STRING" size="256" sumtext="비율처방구분"/>
  1326. <Column id="prcprefseq" type="STRING" size="256" sumtext="처방조회순서"/>
  1327. <Column id="ordreqlnkno" type="STRING" size="256" sumtext="진료의뢰연결번호"/>
  1328. <Column id="testreqlnkno" type="STRING" size="256" sumtext="검사의뢰연결번호"/>
  1329. <Column id="prcplnkdd" type="STRING" size="256" sumtext="처방연계일자"/>
  1330. <Column id="prcplnkno" type="STRING" size="256" sumtext="처방연계번호"/>
  1331. <Column id="oprsrvno" type="STRING" size="256" sumtext="수술예약번호"/>
  1332. <Column id="tootfact" type="STRING" size="256" sumtext="치식사항"/>
  1333. <Column id="clinccmtcnts" type="STRING" size="256" sumtext="임상소견내용"/>
  1334. <Column id="prcpessninptflag" type="STRING" size="256" sumtext="처방필수입력구분"/>
  1335. <Column id="grupsnglflag" type="STRING" size="256" sumtext="그룹싱글구분"/>
  1336. <Column id="drugrateqty" type="STRING" size="256" sumtext="투약비율수랑"/>
  1337. <Column id="asttestflag" type="STRING" size="256" sumtext="AST검사구분"/>
  1338. <Column id="clincstdyflag" type="STRING" size="256" sumtext="임상연구구분"/>
  1339. <Column id="prtlno" type="STRING" size="256" sumtext="프로토콜번호"/>
  1340. <Column id="clincstdycd" type="STRING" size="256" sumtext="임상연구코드"/>
  1341. <Column id="optermcd" type="STRING" size="256" sumtext="수술용어"/>
  1342. <Column id="prcpflag" type="STRING" size="256" sumtext="처방구분"/>
  1343. <Column id="hscttempprcpflag" type="STRING" size="256" sumtext="HSCT임시처방구분"/>
  1344. <Column id="inclprcpcd" type="STRING" size="256" sumtext="종속처방코드"/>
  1345. <Column id="inclprcpno" type="STRING" size="256" sumtext="종속처방번호"/>
  1346. <Column id="pampkspec" type="STRING" size="256" sumtext="원무PK내역"/>
  1347. <Column id="prcppkspec" type="STRING" size="256" sumtext="처방PK내역"/>
  1348. <Column id="calcscormastspec" type="STRING" size="256" sumtext="수가마스터내역"/>
  1349. <Column id="drugmastspec" type="STRING" size="256" sumtext="약품마스터내역"/>
  1350. <Column id="rateprcpspec" type="STRING" size="256" sumtext="비율처방내역"/>
  1351. <Column id="matrsetprcpspec" type="STRING" size="256" sumtext="재료SET처방내역"/>
  1352. <Column id="suppdeptspec" type="STRING" size="256" sumtext="지원부서내역"/>
  1353. <Column id="contprcpspec" type="STRING" size="256" sumtext="연속처방내역"/>
  1354. <Column id="etclnkspec" type="STRING" size="256" sumtext="기타연계내역"/>
  1355. <Column id="srchcondcnts" type="STRING" size="256" sumtext="검색조건내용"/>
  1356. <Column id="orgprcpnm" type="STRING" size="256" sumtext="수가처방명"/>
  1357. <Column id="chkcol" type="STRING" size="256" sumtext="전처방check표시"/>
  1358. <Column id="hsctdelivepos" type="STRING" size="256" sumtext="hsct전달위치"/>
  1359. <Column id="hsctlnkno" type="STRING" size="256" sumtext="hsct연계번호"/>
  1360. <Column id="etcprcpflag" type="STRING" size="256" sumtext="기타처방구분"/>
  1361. <Column id="aftcertflag" type="STRING" size="256" sumtext="후인증 구분"/>
  1362. <Column id="aftcertdrid" type="STRING" size="256" sumtext="후인증 대상의사 ID"/>
  1363. <Column id="prcpvalidd" type="STRING" size="256" sumtext="처방유효일자"/>
  1364. <Column id="spynpy1" type="STRING" size="256" sumtext="환자급비유형"/>
  1365. <Column id="specdrid" type="STRING" size="256" sumtext="선택진료의ID"/>
  1366. <Column id="anticncrprtlno" type="STRING" size="256" sumtext="항암프로토콜에 대한 코드로 일련번호 형태로 관리"/>
  1367. <Column id="anticncrdayno" type="STRING" size="256" sumtext="항암프로토콜의 실시 차수"/>
  1368. <Column id="druglnkno" type="STRING" size="256" sumtext="항암프로토콜,TPN처방의 처방번호"/>
  1369. <Column id="rehbprcpcurefreqflag" type="STRING" size="256" sumtext="재활처방치료빈도"/>
  1370. <Column id="dietprcpgenrflag" type="STRING" size="256" sumtext="식이처방발생구분"/>
  1371. <Column id="irpayflag" type="STRING" size="256" sumtext="Irradiation급비구분"/>
  1372. <Column id="irflag" type="STRING" size="256" sumtext="Irradiation구분"/>
  1373. <Column id="procerdietflag" type="STRING" size="256" sumtext="보호자식이구분"/>
  1374. <Column id="diagtestconttestintvlflag" type="STRING" size="256" sumtext="진단검사연속검사기본시간"/>
  1375. <Column id="drugindependpackflag" type="STRING" size="256" sumtext="따로포장구분"/>
  1376. <Column id="diagtestconttestbasetm" type="STRING" size="256" sumtext="진단검사연속검사기본시간"/>
  1377. <Column id="diagtestconttestorgtims" type="STRING" size="256" sumtext="진단검사연속검사원횟수"/>
  1378. <Column id="ermediscmngtresncd" type="STRING" size="256" sumtext="응급의학관리료사유코드"/>
  1379. <Column id="rehbprcpenddd" type="STRING" size="256" sumtext="재활처방마감일자"/>
  1380. <Column id="matrallsizespecid" type="STRING" size="256" sumtext="재료AllSize규격ID"/>
  1381. <Column id="rehbprcpcurepartcd" type="STRING" size="256" sumtext="재활처방치료부위"/>
  1382. <Column id="lowdrugresncd" type="STRING" size="256" sumtext="저함량배수사유코드"/>
  1383. <Column id="tfdtlcd" type="STRING" size="256" sumtext="경장영양식세부코드"/>
  1384. <Column id="dnorreqlnkno" type="STRING" size="256" sumtext="HLA검사의뢰지"/>
  1385. <Column id="subcretno" type="STRING" size="256" sumtext="기왕증,임상연구보조유형"/>
  1386. <Column id="exptmthdfact" type="STRING" size="256" sumtext="예외용법설명"/>
  1387. <Column id="lowdrugresnetcfact" type="STRING" size="256" sumtext="기타저함량배수 상세사유"/>
  1388. <Column id="diagtestconttestcdspec" type="STRING" size="256" sumtext="진단검사 연속검사코드내역"/>
  1389. <Column id="drgacptflag" type="STRING" size="256" sumtext="DRG인정 Flag"/>
  1390. <Column id="drprcpetc1" type="STRING" size="256" sumtext="의사처방기타1"/>
  1391. <Column id="drprcpetc2" type="STRING" size="256" sumtext="의사처방기타2"/>
  1392. <Column id="drprcpetc3" type="STRING" size="256" sumtext="의사처방기타3"/>
  1393. <Column id="drprcpetc4" type="STRING" size="256" sumtext="의사처방기타4"/>
  1394. <Column id="drprcpetc5" type="STRING" size="256" sumtext="의사처방기타5"/>
  1395. <Column id="drprcpetc6" type="STRING" size="256" sumtext="의사처방기타6"/>
  1396. <Column id="drprcpetc7" type="STRING" size="256" sumtext="의사처방기타7"/>
  1397. <Column id="drprcpetc8" type="STRING" size="256" sumtext="의사처방기타8"/>
  1398. <Column id="drprcpetc9" type="STRING" size="256" sumtext="의사처방기타9"/>
  1399. <Column id="drprcpetc10" type="STRING" size="256" sumtext="의사처방기타10"/>
  1400. <Column id="tempcol1" type="STRING" size="256" sumtext="임시컬럼1"/>
  1401. <Column id="tempcol2" type="STRING" size="256" sumtext="임시컬럼2"/>
  1402. <Column id="tempcol3" type="STRING" size="256" sumtext="임시컬럼3"/>
  1403. <Column id="tempcol4" type="STRING" size="256" sumtext="임시컬럼4"/>
  1404. <Column id="tempcol5" type="STRING" size="256" sumtext="임시컬럼5"/>
  1405. <Column id="tempcol6" type="STRING" size="256" sumtext="임시컬럼6"/>
  1406. <Column id="tempcol7" type="STRING" size="256" sumtext="임시컬럼7"/>
  1407. <Column id="tempcol8" type="STRING" size="256" sumtext="임시컬럼8"/>
  1408. <Column id="tempcol9" type="STRING" size="256" sumtext="임시컬럼9"/>
  1409. <Column id="tempcol10" type="STRING" size="256" sumtext="임시컬럼10"/>
  1410. <Column id="tempcol11" type="STRING" size="256" sumtext="임시컬럼11"/>
  1411. <Column id="tempcol12" type="STRING" size="256" sumtext="임시컬럼12"/>
  1412. <Column id="tempcol13" type="STRING" size="256" sumtext="임시컬럼13"/>
  1413. <Column id="tempcol14" type="STRING" size="256" sumtext="임시컬럼14"/>
  1414. <Column id="tempcol15" type="STRING" size="256" sumtext="임시컬럼15"/>
  1415. <Column id="tempcol16" type="STRING" size="256" sumtext="임시컬럼16"/>
  1416. <Column id="tempcol17" type="STRING" size="256" sumtext="임시컬럼17"/>
  1417. <Column id="tempcol18" type="STRING" size="256" sumtext="임시컬럼18"/>
  1418. <Column id="tempcol19" type="STRING" size="256" sumtext="임시컬럼19"/>
  1419. <Column id="tempcol20" type="STRING" size="256" sumtext="임시컬럼20"/>
  1420. <Column id="tempcol21" type="STRING" size="256" sumtext="임시컬럼21"/>
  1421. <Column id="tempcol22" type="STRING" size="256" sumtext="임시컬럼22"/>
  1422. <Column id="tempcol23" type="STRING" size="256" sumtext="임시컬럼23"/>
  1423. <Column id="tempcol24" type="STRING" size="256" sumtext="임시컬럼24"/>
  1424. <Column id="tempcol25" type="STRING" size="256" sumtext="임시컬럼25"/>
  1425. <Column id="stepno" type="STRING" size="256" sumtext="CP스텝번호"/>
  1426. <Column id="prcpdd" type="STRING" size="256" sumtext="처방일자"/>
  1427. <Column id="anstcnfmneedyn" type="STRING" size="256" sumtext="수술마취확정필요여부"/>
  1428. <Column id="checkyn" type="STRING" size="256" sumtext="수술마취확정필요여부(CPG속성관리시 사용함)"/>
  1429. <Column id="setno" type="STRING" size="256" sumtext="셋번호(CPG속성관리시 사용함)"/>
  1430. <Column id="settypecd" type="STRING" size="256" sumtext="셋형태코드(CPG속성관리시 사용함)"/>
  1431. <Column id="setcdno" type="STRING" size="256" sumtext="셋코드번호(CPG속성관리시 사용함)"/>
  1432. <Column id="essnprcpyn" type="STRING" size="256" sumtext="스텝필수여부(CPG 스텝필수 속성번호)"/>
  1433. <Column id="limno" type="STRING" size="256" sumtext="제한시간번호(CPG 스텝필수 속성번호)"/>
  1434. <Column id="limhistno" type="STRING" size="256" sumtext="제한시간이력번호(CPG 스텝필수 속성번호)"/>
  1435. <Column id="rowkey" type="STRING" size="256" sumtext="rowid"/>
  1436. <Column id="instcd" type="STRING" size="256" sumtext="기관기호"/>
  1437. </ColumnInfo>
  1438. </Dataset>
  1439. <Dataset id="ds_main_prcpsrch_essprcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1440. <ColumnInfo>
  1441. <Column id="status" type="STRING" size="256" sumtext="처리구분"/>
  1442. <Column id="prcpstatcd" type="STRING" size="256" sumtext="처방상태코드"/>
  1443. <Column id="prcpclscd" type="STRING" size="256" sumtext="처방분류코드"/>
  1444. <Column id="prcpkindcd" type="STRING" size="256" sumtext="처방종류코드"/>
  1445. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  1446. <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
  1447. <Column id="prcpvol" type="STRING" size="256" sumtext="처방용량"/>
  1448. <Column id="prcpvolunitnm" type="STRING" size="256" sumtext="처방용량단위명"/>
  1449. <Column id="prcpqty" type="STRING" size="256" sumtext="처방수량"/>
  1450. <Column id="prcpqtyunitnm" type="STRING" size="256" sumtext="처방수량단위명"/>
  1451. <Column id="prcptims" type="STRING" size="256" sumtext="처방횟수"/>
  1452. <Column id="prcpdayno" type="STRING" size="256" sumtext="처방일수"/>
  1453. <Column id="drugmthdspccdnm" type="STRING" size="256" sumtext="투여방법검체코드명"/>
  1454. <Column id="prcpmixno" type="STRING" size="256" sumtext="처방Mix번호"/>
  1455. <Column id="payflagcd" type="STRING" size="256" sumtext="급여구분코드"/>
  1456. <Column id="prcpdelivefact" type="STRING" size="256" sumtext="전달사항"/>
  1457. <Column id="hosinhosoutflag" type="STRING" size="256" sumtext="원내/원외구분"/>
  1458. <Column id="prcpexecdeptcd" type="STRING" size="256" sumtext="처방실시부서코드"/>
  1459. <Column id="prcphopedd" type="STRING" size="256" sumtext="처방희망일시"/>
  1460. <Column id="choiordflag" type="STRING" size="256" sumtext="선택진료구분"/>
  1461. <Column id="rgstdt" type="STRING" size="256" sumtext="등록일시"/>
  1462. <Column id="rgstridnm" type="STRING" size="256" sumtext="등록자명"/>
  1463. <Column id="testrsltunit" type="STRING" size="256" sumtext="검사결과단위"/>
  1464. <Column id="testrsltcnts" type="STRING" size="256" sumtext="검사결과"/>
  1465. <Column id="prcpgenrflag" type="STRING" size="256" sumtext="처방발생구분"/>
  1466. <Column id="prcphistcd" type="STRING" size="256" sumtext="처방이력코드"/>
  1467. <Column id="tempprcpflag" type="STRING" size="256" sumtext="임시처방구분"/>
  1468. <Column id="prcpsetcd" type="STRING" size="256" sumtext="처방SET코드"/>
  1469. <Column id="prcpvolunitflag" type="STRING" size="256" sumtext="처방용량단위구분"/>
  1470. <Column id="prcpqtyunitflag" type="STRING" size="256" sumtext="처방수량단위구분"/>
  1471. <Column id="orgprcpqty" type="STRING" size="256" sumtext="실제처방수량"/>
  1472. <Column id="drugspd" type="STRING" size="256" sumtext="투여속도"/>
  1473. <Column id="drugspdunitflag" type="STRING" size="256" sumtext="투여속도단위구분"/>
  1474. <Column id="powdflag" type="STRING" size="256" sumtext="파우더구분"/>
  1475. <Column id="prnprcpflag" type="STRING" size="256" sumtext="PRN처방구분"/>
  1476. <Column id="prepprcpflag" type="STRING" size="256" sumtext="Prep처방구분"/>
  1477. <Column id="selfprcpflag" type="STRING" size="256" sumtext="자가처방구분"/>
  1478. <Column id="selfdrugflag" type="STRING" size="256" sumtext="SELF약구분"/>
  1479. <Column id="drugpackflag" type="STRING" size="256" sumtext="투약포장구분"/>
  1480. <Column id="erprcpflag" type="STRING" size="256" sumtext="응급처방구분"/>
  1481. <Column id="precureprcpflag" type="STRING" size="256" sumtext="선처치처방구분"/>
  1482. <Column id="nigtprcpflag" type="STRING" size="256" sumtext="야간처방구분"/>
  1483. <Column id="portprcpflag" type="STRING" size="256" sumtext="포터블처방구분"/>
  1484. <Column id="fixprcpflag" type="STRING" size="256" sumtext="정액처방구분"/>
  1485. <Column id="anamneflag" type="STRING" size="256" sumtext="기왕증(력)구분"/>
  1486. <Column id="fastprcpflag" type="STRING" size="256" sumtext="금식처방구분"/>
  1487. <Column id="erreadflag" type="STRING" size="256" sumtext="응급판독구분"/>
  1488. <Column id="prcpdirecflag" type="STRING" size="256" sumtext="처방방향구분"/>
  1489. <Column id="tnsuseflag" type="STRING" size="256" sumtext="수혈사용구분"/>
  1490. <Column id="tnsfiltflag" type="STRING" size="256" sumtext="수혈필터구분"/>
  1491. <Column id="trnptbftestflag" type="STRING" size="256" sumtext="이식전검사구분"/>
  1492. <Column id="offictourhealexamflag" type="STRING" size="256" sumtext="출장건진구분"/>
  1493. <Column id="stemcellflag" type="STRING" size="256" sumtext="조혈모(줄기)세포구분"/>
  1494. <Column id="angioflagcd" type="STRING" size="256" sumtext="Angio구분"/>
  1495. <Column id="opansflagcd" type="STRING" size="256" sumtext="수술마취구분"/>
  1496. <Column id="ansttm" type="STRING" size="256" sumtext="마취시간"/>
  1497. <Column id="mealcalrcnts" type="STRING" size="256" sumtext="식이열량함량"/>
  1498. <Column id="mealprotcnts" type="STRING" size="256" sumtext="식이단백질함량"/>
  1499. <Column id="mealupdtflag" type="STRING" size="256" sumtext="식이수정구분"/>
  1500. <Column id="hosinprcpresncd" type="STRING" size="256" sumtext="원내처방사유코드"/>
  1501. <Column id="etcprcpresncd" type="STRING" size="256" sumtext="기타처방사유코드"/>
  1502. <Column id="drugmthdspccd" type="STRING" size="256" sumtext="투여방법검체코드"/>
  1503. <Column id="issdeptcd" type="STRING" size="256" sumtext="발행부서코드"/>
  1504. <Column id="prcpauthflag" type="STRING" size="256" sumtext="처방권한구분"/>
  1505. <Column id="prcpinptflag" type="STRING" size="256" sumtext="처방입력구분"/>
  1506. <Column id="prcpsignflag" type="STRING" size="256" sumtext="처방서명구분"/>
  1507. <Column id="rateprcpflag" type="STRING" size="256" sumtext="비율처방구분"/>
  1508. <Column id="prcprefseq" type="STRING" size="256" sumtext="처방조회순서"/>
  1509. <Column id="ordreqlnkno" type="STRING" size="256" sumtext="진료의뢰연결번호"/>
  1510. <Column id="testreqlnkno" type="STRING" size="256" sumtext="검사의뢰연결번호"/>
  1511. <Column id="prcplnkdd" type="STRING" size="256" sumtext="처방연계일자"/>
  1512. <Column id="prcplnkno" type="STRING" size="256" sumtext="처방연계번호"/>
  1513. <Column id="oprsrvno" type="STRING" size="256" sumtext="수술예약번호"/>
  1514. <Column id="tootfact" type="STRING" size="256" sumtext="치식사항"/>
  1515. <Column id="clinccmtcnts" type="STRING" size="256" sumtext="임상소견내용"/>
  1516. <Column id="prcpessninptflag" type="STRING" size="256" sumtext="처방필수입력구분"/>
  1517. <Column id="grupsnglflag" type="STRING" size="256" sumtext="그룹싱글구분"/>
  1518. <Column id="drugrateqty" type="STRING" size="256" sumtext="투약비율수랑"/>
  1519. <Column id="asttestflag" type="STRING" size="256" sumtext="AST검사구분"/>
  1520. <Column id="clincstdyflag" type="STRING" size="256" sumtext="임상연구구분"/>
  1521. <Column id="prtlno" type="STRING" size="256" sumtext="프로토콜번호"/>
  1522. <Column id="clincstdycd" type="STRING" size="256" sumtext="임상연구코드"/>
  1523. <Column id="optermcd" type="STRING" size="256" sumtext="수술용어"/>
  1524. <Column id="prcpflag" type="STRING" size="256" sumtext="처방구분"/>
  1525. <Column id="hscttempprcpflag" type="STRING" size="256" sumtext="HSCT임시처방구분"/>
  1526. <Column id="inclprcpcd" type="STRING" size="256" sumtext="종속처방코드"/>
  1527. <Column id="inclprcpno" type="STRING" size="256" sumtext="종속처방번호"/>
  1528. <Column id="pampkspec" type="STRING" size="256" sumtext="원무PK내역"/>
  1529. <Column id="prcppkspec" type="STRING" size="256" sumtext="처방PK내역"/>
  1530. <Column id="calcscormastspec" type="STRING" size="256" sumtext="수가마스터내역"/>
  1531. <Column id="drugmastspec" type="STRING" size="256" sumtext="약품마스터내역"/>
  1532. <Column id="rateprcpspec" type="STRING" size="256" sumtext="비율처방내역"/>
  1533. <Column id="matrsetprcpspec" type="STRING" size="256" sumtext="재료SET처방내역"/>
  1534. <Column id="suppdeptspec" type="STRING" size="256" sumtext="지원부서내역"/>
  1535. <Column id="contprcpspec" type="STRING" size="256" sumtext="연속처방내역"/>
  1536. <Column id="etclnkspec" type="STRING" size="256" sumtext="기타연계내역"/>
  1537. <Column id="srchcondcnts" type="STRING" size="256" sumtext="검색조건내용"/>
  1538. <Column id="orgprcpnm" type="STRING" size="256" sumtext="수가처방명"/>
  1539. <Column id="chkcol" type="STRING" size="256" sumtext="전처방check표시"/>
  1540. <Column id="hsctdelivepos" type="STRING" size="256" sumtext="hsct전달위치"/>
  1541. <Column id="hsctlnkno" type="STRING" size="256" sumtext="hsct연계번호"/>
  1542. <Column id="etcprcpflag" type="STRING" size="256" sumtext="기타처방구분"/>
  1543. <Column id="aftcertflag" type="STRING" size="256" sumtext="후인증 구분"/>
  1544. <Column id="aftcertdrid" type="STRING" size="256" sumtext="후인증 대상의사 ID"/>
  1545. <Column id="prcpvalidd" type="STRING" size="256" sumtext="처방유효일자"/>
  1546. <Column id="spynpy1" type="STRING" size="256" sumtext="환자급비유형"/>
  1547. <Column id="specdrid" type="STRING" size="256" sumtext="선택진료의ID"/>
  1548. <Column id="anticncrprtlno" type="STRING" size="256" sumtext="항암프로토콜에 대한 코드로 일련번호 형태로 관리"/>
  1549. <Column id="anticncrdayno" type="STRING" size="256" sumtext="항암프로토콜의 실시 차수"/>
  1550. <Column id="druglnkno" type="STRING" size="256" sumtext="항암프로토콜,TPN처방의 처방번호"/>
  1551. <Column id="rehbprcpcurefreqflag" type="STRING" size="256" sumtext="재활처방치료빈도"/>
  1552. <Column id="dietprcpgenrflag" type="STRING" size="256" sumtext="식이처방발생구분"/>
  1553. <Column id="irpayflag" type="STRING" size="256" sumtext="Irradiation급비구분"/>
  1554. <Column id="irflag" type="STRING" size="256" sumtext="Irradiation구분"/>
  1555. <Column id="procerdietflag" type="STRING" size="256" sumtext="보호자식이구분"/>
  1556. <Column id="diagtestconttestintvlflag" type="STRING" size="256" sumtext="진단검사연속검사기본시간"/>
  1557. <Column id="drugindependpackflag" type="STRING" size="256" sumtext="따로포장구분"/>
  1558. <Column id="diagtestconttestbasetm" type="STRING" size="256" sumtext="진단검사연속검사기본시간"/>
  1559. <Column id="diagtestconttestorgtims" type="STRING" size="256" sumtext="진단검사연속검사원횟수"/>
  1560. <Column id="ermediscmngtresncd" type="STRING" size="256" sumtext="응급의학관리료사유코드"/>
  1561. <Column id="rehbprcpenddd" type="STRING" size="256" sumtext="재활처방마감일자"/>
  1562. <Column id="matrallsizespecid" type="STRING" size="256" sumtext="재료AllSize규격ID"/>
  1563. <Column id="rehbprcpcurepartcd" type="STRING" size="256" sumtext="재활처방치료부위"/>
  1564. <Column id="lowdrugresncd" type="STRING" size="256" sumtext="저함량배수사유코드"/>
  1565. <Column id="tfdtlcd" type="STRING" size="256" sumtext="경장영양식세부코드"/>
  1566. <Column id="dnorreqlnkno" type="STRING" size="256" sumtext="HLA검사의뢰지"/>
  1567. <Column id="subcretno" type="STRING" size="256" sumtext="기왕증,임상연구보조유형"/>
  1568. <Column id="exptmthdfact" type="STRING" size="256" sumtext="예외용법설명"/>
  1569. <Column id="lowdrugresnetcfact" type="STRING" size="256" sumtext="기타저함량배수 상세사유"/>
  1570. <Column id="diagtestconttestcdspec" type="STRING" size="256" sumtext="진단검사 연속검사코드내역"/>
  1571. <Column id="drgacptflag" type="STRING" size="256" sumtext="DRG인정 Flag"/>
  1572. <Column id="drprcpetc1" type="STRING" size="256" sumtext="의사처방기타1"/>
  1573. <Column id="drprcpetc2" type="STRING" size="256" sumtext="의사처방기타2"/>
  1574. <Column id="drprcpetc3" type="STRING" size="256" sumtext="의사처방기타3"/>
  1575. <Column id="drprcpetc4" type="STRING" size="256" sumtext="의사처방기타4"/>
  1576. <Column id="drprcpetc5" type="STRING" size="256" sumtext="의사처방기타5"/>
  1577. <Column id="drprcpetc6" type="STRING" size="256" sumtext="의사처방기타6"/>
  1578. <Column id="drprcpetc7" type="STRING" size="256" sumtext="의사처방기타7"/>
  1579. <Column id="drprcpetc8" type="STRING" size="256" sumtext="의사처방기타8"/>
  1580. <Column id="drprcpetc9" type="STRING" size="256" sumtext="의사처방기타9"/>
  1581. <Column id="drprcpetc10" type="STRING" size="256" sumtext="의사처방기타10"/>
  1582. <Column id="tempcol1" type="STRING" size="256" sumtext="임시컬럼1"/>
  1583. <Column id="tempcol2" type="STRING" size="256" sumtext="임시컬럼2"/>
  1584. <Column id="tempcol3" type="STRING" size="256" sumtext="임시컬럼3"/>
  1585. <Column id="tempcol4" type="STRING" size="256" sumtext="임시컬럼4"/>
  1586. <Column id="tempcol5" type="STRING" size="256" sumtext="임시컬럼5"/>
  1587. <Column id="tempcol6" type="STRING" size="256" sumtext="임시컬럼6"/>
  1588. <Column id="tempcol7" type="STRING" size="256" sumtext="임시컬럼7"/>
  1589. <Column id="tempcol8" type="STRING" size="256" sumtext="임시컬럼8"/>
  1590. <Column id="tempcol9" type="STRING" size="256" sumtext="임시컬럼9"/>
  1591. <Column id="tempcol10" type="STRING" size="256" sumtext="임시컬럼10"/>
  1592. <Column id="tempcol11" type="STRING" size="256" sumtext="임시컬럼11"/>
  1593. <Column id="tempcol12" type="STRING" size="256" sumtext="임시컬럼12"/>
  1594. <Column id="tempcol13" type="STRING" size="256" sumtext="임시컬럼13"/>
  1595. <Column id="tempcol14" type="STRING" size="256" sumtext="임시컬럼14"/>
  1596. <Column id="tempcol15" type="STRING" size="256" sumtext="임시컬럼15"/>
  1597. <Column id="tempcol16" type="STRING" size="256" sumtext="임시컬럼16"/>
  1598. <Column id="tempcol17" type="STRING" size="256" sumtext="임시컬럼17"/>
  1599. <Column id="tempcol18" type="STRING" size="256" sumtext="임시컬럼18"/>
  1600. <Column id="tempcol19" type="STRING" size="256" sumtext="임시컬럼19"/>
  1601. <Column id="tempcol20" type="STRING" size="256" sumtext="임시컬럼20"/>
  1602. <Column id="tempcol21" type="STRING" size="256" sumtext="임시컬럼21"/>
  1603. <Column id="tempcol22" type="STRING" size="256" sumtext="임시컬럼22"/>
  1604. <Column id="tempcol23" type="STRING" size="256" sumtext="임시컬럼23"/>
  1605. <Column id="tempcol24" type="STRING" size="256" sumtext="임시컬럼24"/>
  1606. <Column id="tempcol25" type="STRING" size="256" sumtext="임시컬럼25"/>
  1607. <Column id="stepno" type="STRING" size="256" sumtext="CP스텝번호"/>
  1608. <Column id="prcpdd" type="STRING" size="256" sumtext="처방일자"/>
  1609. <Column id="anstcnfmneedyn" type="STRING" size="256" sumtext="수술마취확정필요여부"/>
  1610. <Column id="checkyn" type="STRING" size="256" sumtext="수술마취확정필요여부(CPG속성관리시 사용함)"/>
  1611. <Column id="setno" type="STRING" size="256" sumtext="셋번호(CPG속성관리시 사용함)"/>
  1612. <Column id="settypecd" type="STRING" size="256" sumtext="셋형태코드(CPG속성관리시 사용함)"/>
  1613. <Column id="setcdno" type="STRING" size="256" sumtext="셋코드번호(CPG속성관리시 사용함)"/>
  1614. <Column id="essnprcpyn" type="STRING" size="256" sumtext="스텝필수여부(CPG 스텝필수 속성번호)"/>
  1615. <Column id="setnm" type="STRING" size="256" sumtext="셋명(선택필수처방인 경우 선택필수명)"/>
  1616. <Column id="setattrno" type="STRING" size="256" sumtext="셋속성번호"/>
  1617. <Column id="setattrhistno" type="STRING" size="256" sumtext="셋속성이력번호"/>
  1618. <Column id="rowkey" type="STRING" size="256" sumtext="rowid"/>
  1619. <Column id="instcd" type="STRING" size="256" sumtext="기관기호"/>
  1620. </ColumnInfo>
  1621. </Dataset>
  1622. <Dataset id="ds_main_prcp_prcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1623. <Dataset id="ds_main_prcp_essprcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1624. <Dataset id="ds_init_rsltgetdata_getdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1625. <Dataset id="ds_initsrch_envinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1626. <ColumnInfo>
  1627. <Column id="answcnt" type="STRING" size="256"/>
  1628. </ColumnInfo>
  1629. <Rows>
  1630. <Row/>
  1631. </Rows>
  1632. </Dataset>
  1633. <Dataset id="ds_M0003" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1634. <Dataset id="ds_M0005" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1635. <Dataset id="ds_M0011" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1636. <Dataset id="ds_M0029" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1637. <Dataset id="ds_P0034" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1638. <Dataset id="ds_temp1_rsltgetdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1639. <Dataset id="ds_inptdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1640. <Dataset id="ds_result_saveinvaliprcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1641. <Dataset id="ds_result_errprcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1642. <Dataset id="ds_temp1_addprcp_prcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1643. <Dataset id="ds_TRMMO00151" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1644. <ColumnInfo>
  1645. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  1646. <Column id="hardcdno" type="STRING" size="256" sumtext="하드코드번호"/>
  1647. <Column id="prcpdd" type="STRING" size="256" sumtext="적용일자"/>
  1648. </ColumnInfo>
  1649. <Rows>
  1650. <Row/>
  1651. </Rows>
  1652. </Dataset>
  1653. <Dataset id="ds_anst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1654. <ColumnInfo>
  1655. <Column id="paramyn" type="STRING" size="256"/>
  1656. <Column id="opansflagcd" type="STRING" size="256"/>
  1657. <Column id="ansttm" type="STRING" size="256"/>
  1658. <Column id="anstfromdt" type="STRING" size="256"/>
  1659. <Column id="ansttodt" type="STRING" size="256"/>
  1660. <Column id="anstrecno" type="STRING" size="256"/>
  1661. <Column id="anst_drid" type="STRING" size="256"/>
  1662. <Column id="anst_specordflag" type="STRING" size="256"/>
  1663. <Column id="anst_anstdrnm" type="STRING" size="256"/>
  1664. </ColumnInfo>
  1665. <Rows>
  1666. <Row/>
  1667. </Rows>
  1668. </Dataset>
  1669. <Dataset id="ds_operation" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1670. <Dataset id="ds_initsrch_raypopwndcheckyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1671. <Dataset id="ds_result_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1672. <Dataset id="ds_result_steplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1673. <Dataset id="ds_result_delprcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1674. <Dataset id="ds_drugcalc" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1675. <ColumnInfo>
  1676. <Column id="prcpvol" type="STRING" size="256"/>
  1677. <Column id="prcpqty" type="STRING" size="256"/>
  1678. <Column id="prcptims" type="STRING" size="256"/>
  1679. <Column id="drprcpetc7" type="STRING" size="256"/>
  1680. <Column id="drprcpetc8" type="STRING" size="256"/>
  1681. </ColumnInfo>
  1682. <Rows>
  1683. <Row/>
  1684. </Rows>
  1685. </Dataset>
  1686. <Dataset id="ds_hidden_selfhld" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1687. <ColumnInfo>
  1688. <Column id="cond1" type="STRING" size="256" sumtext="처방명"/>
  1689. <Column id="cond2" type="STRING" size="256" sumtext="외래,입원,응급"/>
  1690. <Column id="cond3" type="STRING" size="256" sumtext="처방일,처방권한구분(전처방)"/>
  1691. <Column id="cond99" type="STRING" size="256" sumtext="검색구분"/>
  1692. <Column id="selfopenyn" type="STRING" size="256"/>
  1693. </ColumnInfo>
  1694. </Dataset>
  1695. <Dataset id="ds_tempPrcpsrch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1696. <Dataset id="ds_main_prcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_prcplist_oncolumnchanged" canrowposchange="ds_main_prcplist_canrowposchange">
  1697. <ColumnInfo>
  1698. <Column id="status" type="STRING" size="256" sumtext="입력,수정,삭제,d/c"/>
  1699. <Column id="prcpstatcd" type="STRING" size="256" sumtext="처방상태코드"/>
  1700. <Column id="prcpclscd" type="STRING" size="256" sumtext="처방분류코드"/>
  1701. <Column id="prcpkindcd" type="STRING" size="256" sumtext="처방종류코드"/>
  1702. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  1703. <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
  1704. <Column id="prcpvol" type="BIGDECIMAL" size="256" sumtext="처방용량"/>
  1705. <Column id="prcpvolunitnm" type="STRING" size="256" sumtext="처방용량단위명"/>
  1706. <Column id="prcpqty" type="STRING" size="256" sumtext="처방수량"/>
  1707. <Column id="prcpqtyunitnm" type="STRING" size="256" sumtext="처방수량단위명"/>
  1708. <Column id="prcptims" type="STRING" size="256" sumtext="처방횟수"/>
  1709. <Column id="prcpdayno" type="STRING" size="256" sumtext="처방일수"/>
  1710. <Column id="drugmthdspccdnm" type="STRING" size="256" sumtext="투여방법검체코드명"/>
  1711. <Column id="prcpmixno" type="STRING" size="256" sumtext="처방mix번호"/>
  1712. <Column id="payflagcd" type="STRING" size="256" sumtext="급여구분코드"/>
  1713. <Column id="prcpdelivefact" type="STRING" size="256" sumtext="전달사항"/>
  1714. <Column id="hosinhosoutflag" type="STRING" size="256" sumtext="원내/원외구분"/>
  1715. <Column id="prcpexecdeptcd" type="STRING" size="256" sumtext="처방실시부서코드"/>
  1716. <Column id="prcphopedd" type="STRING" size="256" sumtext="처방희망일시"/>
  1717. <Column id="choiordflag" type="STRING" size="256" sumtext="선택진료구분"/>
  1718. <Column id="rgstdt" type="STRING" size="256" sumtext="등록일시"/>
  1719. <Column id="rgstridnm" type="STRING" size="256" sumtext="등록자명"/>
  1720. <Column id="testrsltunit" type="STRING" size="256" sumtext="검사결과단위"/>
  1721. <Column id="testrsltcnts" type="STRING" size="256" sumtext="검사결과"/>
  1722. <Column id="prcpgenrflag" type="STRING" size="256" sumtext="처방발생구분"/>
  1723. <Column id="prcphistcd" type="STRING" size="256" sumtext="처방이력코드"/>
  1724. <Column id="tempprcpflag" type="STRING" size="256" sumtext="임시처방구분"/>
  1725. <Column id="prcpsetcd" type="STRING" size="256" sumtext="처방set코드"/>
  1726. <Column id="prcpvolunitflag" type="STRING" size="256" sumtext="처방용량단위구분"/>
  1727. <Column id="prcpqtyunitflag" type="STRING" size="256" sumtext="처방수량단위구분"/>
  1728. <Column id="orgprcpqty" type="STRING" size="256" sumtext="실제처방수량"/>
  1729. <Column id="drugspd" type="STRING" size="256" sumtext="투여속도"/>
  1730. <Column id="drugspdunitflag" type="STRING" size="256" sumtext="투여속도단위구분"/>
  1731. <Column id="powdflag" type="STRING" size="256" sumtext="파우더구분"/>
  1732. <Column id="prnprcpflag" type="STRING" size="256" sumtext="prn처방구분"/>
  1733. <Column id="prepprcpflag" type="STRING" size="256" sumtext="prep처방구분"/>
  1734. <Column id="selfprcpflag" type="STRING" size="256" sumtext="자가처방구분"/>
  1735. <Column id="selfdrugflag" type="STRING" size="256" sumtext="self약구분"/>
  1736. <Column id="drugpackflag" type="STRING" size="256" sumtext="투약포장구분"/>
  1737. <Column id="erprcpflag" type="STRING" size="256" sumtext="응급처방구분"/>
  1738. <Column id="precureprcpflag" type="STRING" size="256" sumtext="선처치처방구분"/>
  1739. <Column id="nigtprcpflag" type="STRING" size="256" sumtext="야간처방구분"/>
  1740. <Column id="portprcpflag" type="STRING" size="256" sumtext="포터블처방구분"/>
  1741. <Column id="fixprcpflag" type="STRING" size="256" sumtext="정액처방구분"/>
  1742. <Column id="anamneflag" type="STRING" size="256" sumtext="기왕증(력)구분"/>
  1743. <Column id="fastprcpflag" type="STRING" size="256" sumtext="금식처방구분"/>
  1744. <Column id="erreadflag" type="STRING" size="256" sumtext="응급판독구분"/>
  1745. <Column id="prcpdirecflag" type="STRING" size="256" sumtext="처방방향구분"/>
  1746. <Column id="tnsuseflag" type="STRING" size="256" sumtext="수혈사용구분"/>
  1747. <Column id="tnsfiltflag" type="STRING" size="256" sumtext="수혈필터구분"/>
  1748. <Column id="trnptbftestflag" type="STRING" size="256" sumtext="이식전검사구분"/>
  1749. <Column id="offictourhealexamflag" type="STRING" size="256" sumtext="출장건진구분"/>
  1750. <Column id="stemcellflag" type="STRING" size="256" sumtext="조혈모(줄기)세포구분"/>
  1751. <Column id="angioflagcd" type="STRING" size="256" sumtext="angio구분"/>
  1752. <Column id="opansflagcd" type="STRING" size="256" sumtext="수술마취구분"/>
  1753. <Column id="ansttm" type="STRING" size="256" sumtext="마취시간"/>
  1754. <Column id="mealcalrcnts" type="STRING" size="256" sumtext="식이열량함량"/>
  1755. <Column id="mealprotcnts" type="STRING" size="256" sumtext="식이단백질함량"/>
  1756. <Column id="mealupdtflag" type="STRING" size="256" sumtext="식이수정구분"/>
  1757. <Column id="hosinprcpresncd" type="STRING" size="256" sumtext="원내처방사유코드"/>
  1758. <Column id="etcprcpresncd" type="STRING" size="256" sumtext="기타처방사유코드"/>
  1759. <Column id="drugmthdspccd" type="STRING" size="256" sumtext="투여방법검체코드"/>
  1760. <Column id="issdeptcd" type="STRING" size="256" sumtext="발행부서코드"/>
  1761. <Column id="prcpauthflag" type="STRING" size="256" sumtext="처방권한구분"/>
  1762. <Column id="prcpinptflag" type="STRING" size="256" sumtext="처방입력구분"/>
  1763. <Column id="prcpsignflag" type="STRING" size="256" sumtext="처방서명구분"/>
  1764. <Column id="rateprcpflag" type="STRING" size="256" sumtext="비율처방구분"/>
  1765. <Column id="prcprefseq" type="STRING" size="256" sumtext="처방조회순서"/>
  1766. <Column id="ordreqlnkno" type="STRING" size="256" sumtext="진료의뢰연결번호"/>
  1767. <Column id="testreqlnkno" type="STRING" size="256" sumtext="검사의뢰연결번호"/>
  1768. <Column id="prcplnkdd" type="STRING" size="256" sumtext="처방연계일자"/>
  1769. <Column id="prcplnkno" type="STRING" size="256" sumtext="처방연계번호"/>
  1770. <Column id="oprsrvno" type="STRING" size="256" sumtext="수술예약번호"/>
  1771. <Column id="tootfact" type="STRING" size="256" sumtext="치식사항"/>
  1772. <Column id="clinccmtcnts" type="STRING" size="256" sumtext="임상소견내용"/>
  1773. <Column id="prcpessninptflag" type="STRING" size="256" sumtext="처방필수입력구분"/>
  1774. <Column id="grupsnglflag" type="STRING" size="256" sumtext="그룹싱글구분"/>
  1775. <Column id="drugrateqty" type="STRING" size="256" sumtext="투약비율수랑"/>
  1776. <Column id="asttestflag" type="STRING" size="256" sumtext="ast검사구분"/>
  1777. <Column id="clincstdyflag" type="STRING" size="256" sumtext="임상연구구분"/>
  1778. <Column id="prtlno" type="STRING" size="256" sumtext="프로토콜번호"/>
  1779. <Column id="clincstdycd" type="STRING" size="256" sumtext="임상연구코드"/>
  1780. <Column id="optermcd" type="STRING" size="256" sumtext="수술용어"/>
  1781. <Column id="prcpflag" type="STRING" size="256" sumtext="처방구분"/>
  1782. <Column id="hscttempprcpflag" type="STRING" size="256" sumtext="hsct임시처방구분"/>
  1783. <Column id="inclprcpcd" type="STRING" size="256" sumtext="종속처방코드"/>
  1784. <Column id="inclprcpno" type="STRING" size="256" sumtext="종속처방번호"/>
  1785. <Column id="pampkspec" type="STRING" size="256" sumtext="원무pk내역"/>
  1786. <Column id="prcppkspec" type="STRING" size="256" sumtext="처방pk내역"/>
  1787. <Column id="calcscormastspec" type="STRING" size="256" sumtext="수가마스터내역"/>
  1788. <Column id="drugmastspec" type="STRING" size="256" sumtext="약품마스터내역"/>
  1789. <Column id="rateprcpspec" type="STRING" size="256" sumtext="비율처방내역"/>
  1790. <Column id="matrsetprcpspec" type="STRING" size="256" sumtext="재료set처방내역"/>
  1791. <Column id="suppdeptspec" type="STRING" size="256" sumtext="지원부서내역"/>
  1792. <Column id="contprcpspec" type="STRING" size="256" sumtext="연속처방내역"/>
  1793. <Column id="etclnkspec" type="STRING" size="256" sumtext="기타연계내역"/>
  1794. <Column id="srchcondcnts" type="STRING" size="256" sumtext="검색조건내용"/>
  1795. <Column id="orgprcpnm" type="STRING" size="256" sumtext="수가처방명"/>
  1796. <Column id="chkcol" type="STRING" size="256" sumtext="전처방check표시"/>
  1797. <Column id="hsctdelivepos" type="STRING" size="256" sumtext="hsct전달위치"/>
  1798. <Column id="hsctlnkno" type="STRING" size="256" sumtext="hsct연계번호"/>
  1799. <Column id="etcprcpflag" type="STRING" size="256" sumtext="기타처방구분"/>
  1800. <Column id="aftcertflag" type="STRING" size="256" sumtext="후인증구분"/>
  1801. <Column id="aftcertdrid" type="STRING" size="256" sumtext="후인증대상의사id"/>
  1802. <Column id="prcpvalidd" type="STRING" size="256" sumtext="처방유효일자"/>
  1803. <Column id="spynpy1" type="STRING" size="256" sumtext="환자급비유형"/>
  1804. <Column id="specdrid" type="STRING" size="256" sumtext="선택진료의id"/>
  1805. <Column id="specdrnm" type="STRING" size="256" sumtext="선택진료의명"/>
  1806. <Column id="anticncrprtlno" type="STRING" size="256" sumtext="항암프로토콜에대한코드로일련번호형태로관리"/>
  1807. <Column id="anticncrdayno" type="STRING" size="256" sumtext="항암프로토콜의실시차수"/>
  1808. <Column id="druglnkno" type="STRING" size="256" sumtext="항암프로토콜,tpn처방의처방번호"/>
  1809. <Column id="rehbprcpcurefreqflag" type="STRING" size="256" sumtext="재활처방치료빈도"/>
  1810. <Column id="dietprcpgenrflag" type="STRING" size="256" sumtext="식이처방발생구분"/>
  1811. <Column id="irpayflag" type="STRING" size="256" sumtext="irradiation급비구분"/>
  1812. <Column id="irflag" type="STRING" size="256" sumtext="irradiation구분"/>
  1813. <Column id="procerdietflag" type="STRING" size="256" sumtext="보호자식이구분"/>
  1814. <Column id="diagtestconttestintvlflag" type="STRING" size="256" sumtext="진단검사연속검사기본시간"/>
  1815. <Column id="drugindependpackflag" type="STRING" size="256" sumtext="따로포장구분"/>
  1816. <Column id="diagtestconttestbasetm" type="STRING" size="256" sumtext="진단검사연속검사기본시간"/>
  1817. <Column id="diagtestconttestorgtims" type="STRING" size="256" sumtext="진단검사연속검사원횟수"/>
  1818. <Column id="ermediscmngtresncd" type="STRING" size="256" sumtext="응급의학관리료사유코드"/>
  1819. <Column id="rehbprcpenddd" type="STRING" size="256" sumtext="재활처방마감일자"/>
  1820. <Column id="matrallsizespecid" type="STRING" size="256" sumtext="재료allsize규격id"/>
  1821. <Column id="rehbprcpcurepartcd" type="STRING" size="256" sumtext="재활처방치료부위"/>
  1822. <Column id="lowdrugresncd" type="STRING" size="256" sumtext="저함량배수사유코드"/>
  1823. <Column id="tfdtlcd" type="STRING" size="256" sumtext="경장영양식세부코드"/>
  1824. <Column id="dnorreqlnkno" type="STRING" size="256" sumtext="hla검사의뢰지"/>
  1825. <Column id="subcretno" type="STRING" size="256" sumtext="기왕증,임상연구보조유형"/>
  1826. <Column id="exptmthdfact" type="STRING" size="256" sumtext="예외용법설명"/>
  1827. <Column id="lowdrugresnetcfact" type="STRING" size="256" sumtext="기타저함량배수상세사유"/>
  1828. <Column id="diagtestconttestcdspec" type="STRING" size="256" sumtext="진단검사연속검사코드내역"/>
  1829. <Column id="drgacptflag" type="STRING" size="256" sumtext="drg인정flag"/>
  1830. <Column id="drprcpetc1" type="STRING" size="256" sumtext="의사처방기타1"/>
  1831. <Column id="drprcpetc2" type="STRING" size="256" sumtext="의사처방기타2"/>
  1832. <Column id="drprcpetc3" type="STRING" size="256" sumtext="의사처방기타3"/>
  1833. <Column id="drprcpetc4" type="STRING" size="256" sumtext="의사처방기타4"/>
  1834. <Column id="drprcpetc5" type="STRING" size="256" sumtext="의사처방기타5"/>
  1835. <Column id="drprcpetc6" type="STRING" size="256" sumtext="의사처방기타6"/>
  1836. <Column id="drprcpetc7" type="STRING" size="256" sumtext="의사처방기타7"/>
  1837. <Column id="drprcpetc8" type="STRING" size="256" sumtext="의사처방기타8"/>
  1838. <Column id="drprcpetc9" type="STRING" size="256" sumtext="의사처방기타9"/>
  1839. <Column id="drprcpetc10" type="STRING" size="256" sumtext="의사처방기타10"/>
  1840. <Column id="tempcol1" type="STRING" size="256" sumtext="임시컬럼1"/>
  1841. <Column id="tempcol2" type="STRING" size="256" sumtext="임시컬럼2"/>
  1842. <Column id="tempcol3" type="STRING" size="256" sumtext="임시컬럼3"/>
  1843. <Column id="tempcol4" type="STRING" size="256" sumtext="임시컬럼4"/>
  1844. <Column id="tempcol5" type="STRING" size="256" sumtext="임시컬럼5"/>
  1845. <Column id="tempcol6" type="STRING" size="256" sumtext="임시컬럼6"/>
  1846. <Column id="tempcol7" type="STRING" size="256" sumtext="임시컬럼7"/>
  1847. <Column id="tempcol8" type="STRING" size="256" sumtext="임시컬럼8"/>
  1848. <Column id="tempcol9" type="STRING" size="256" sumtext="임시컬럼9"/>
  1849. <Column id="tempcol10" type="STRING" size="256" sumtext="임시컬럼10"/>
  1850. <Column id="tempcol11" type="STRING" size="256" sumtext="임시컬럼11"/>
  1851. <Column id="tempcol12" type="STRING" size="256" sumtext="임시컬럼12"/>
  1852. <Column id="tempcol13" type="STRING" size="256" sumtext="임시컬럼13"/>
  1853. <Column id="tempcol14" type="STRING" size="256" sumtext="임시컬럼14"/>
  1854. <Column id="tempcol15" type="STRING" size="256" sumtext="임시컬럼15"/>
  1855. <Column id="tempcol16" type="STRING" size="256" sumtext="임시컬럼16"/>
  1856. <Column id="tempcol17" type="STRING" size="256" sumtext="임시컬럼17"/>
  1857. <Column id="tempcol18" type="STRING" size="256" sumtext="임시컬럼18"/>
  1858. <Column id="tempcol19" type="STRING" size="256" sumtext="임시컬럼19"/>
  1859. <Column id="tempcol20" type="STRING" size="256" sumtext="임시컬럼20"/>
  1860. <Column id="tempcol21" type="STRING" size="256" sumtext="임시컬럼21"/>
  1861. <Column id="tempcol22" type="STRING" size="256" sumtext="임시컬럼22"/>
  1862. <Column id="tempcol23" type="STRING" size="256" sumtext="임시컬럼23"/>
  1863. <Column id="tempcol24" type="STRING" size="256" sumtext="임시컬럼24"/>
  1864. <Column id="tempcol25" type="STRING" size="256" sumtext="임시컬럼25"/>
  1865. <Column id="rgstdeptcd" type="STRING" size="256" sumtext="최초등록부서(insert)"/>
  1866. <Column id="prcpclassnm" type="STRING" size="256" sumtext="처방분류명"/>
  1867. <Column id="rowkey" type="STRING" size="256" sumtext="rowid"/>
  1868. <Column id="instcd" type="STRING" size="256" sumtext="기관기호"/>
  1869. </ColumnInfo>
  1870. </Dataset>
  1871. <Dataset id="ds_prcpcodelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1872. <ColumnInfo>
  1873. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  1874. <Column id="prcpclscd" type="STRING" size="256" sumtext="처방코드분류"/>
  1875. <Column id="choiordflag" type="STRING" size="256" sumtext="선택진료구분"/>
  1876. <Column id="todayspcdrid" type="STRING" size="256" sumtext="수가정보오늘의선택진료의사"/>
  1877. <Column id="allspcdrid" type="STRING" size="256" sumtext="수가정보가능한선택진료의사"/>
  1878. <Column id="spcspifyn" type="STRING" size="256" sumtext="처방코드별선택진료위임여부"/>
  1879. <Column id="speccls" type="STRING" size="256" sumtext="선택진료분류"/>
  1880. <Column id="newlogicyn" type="STRING" size="256" sumtext="처방관련신규로직적용여부"/>
  1881. </ColumnInfo>
  1882. </Dataset>
  1883. <Dataset id="ds_main_hichartlist_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1884. </Objects>
  1885. <Bind>
  1886. <BindItem id="item0" compid="grp_biz.cap_appscoplist" propid="text" datasetid="ds_main" columnid="appscoplist"/>
  1887. </Bind>
  1888. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  1889. * System Name :
  1890. * Job Name :
  1891. * Creator :
  1892. * Make Date : 2015-03-30
  1893. * Description :
  1894. *---------------------------------------------------------------------------------------
  1895. * Modify Date Modifier Modify Description
  1896. *---------------------------------------------------------------------------------------
  1897. * 2015-03-30 Live Converter TF->XP
  1898. *
  1899. *---------------------------------------------------------------------------------------
  1900. ****************************************************************************************/
  1901. //=======================================================================================
  1902. // Lib Include
  1903. //---------------------------------------------------------------------------------------
  1904. include "com_commonxp::comm_main.xjs";
  1905. include "emr_prcpmngtxp::MMOCommon.xjs";
  1906. include "emr_prcpmngtxp::MMO001.xjs";
  1907. include "emr_prcpmngtxp::SMMMO00100.xjs";
  1908. include "emr_prcpmngtxp::SMMMO00110.xjs";
  1909. include "emr_prcpmngtxp::SMMMO04100.xjs";
  1910. include "emr_prcpmngtxp::SMMMO02100.xjs";
  1911. include "emr_commonxp::EMRCommon.xjs";
  1912. include "emr_formmngtxp::MRF03800.xjs";
  1913. //var appNo = ""; js에 있음
  1914. var loadFormTab = ""; //D:환자계획표,O:outline
  1915. var appendIndxBool = new Boolean(false);
  1916. var saveIndxlist = "";
  1917. var saveIndxHeader = "";
  1918. var preSelectedTab = "btn_outline_tab";
  1919. var OpenerKind = "GPS"; //outline, 환자계획표를 생성기와 같이 쓰므로, iviewer에서 구분하기위한 변수
  1920. var rgstno = "";
  1921. var rgstno2 = "";
  1922. var cpgFlagNm = "";
  1923. var appStat = "";
  1924. var cpgflagcd = ""; //프로토콜구분(01:CP,02:CPG)
  1925. var settypecd = ""; //프로토콜구분(W:CP,G:CPG)
  1926. var cpgno = "";
  1927. var cpghistseq = "";
  1928. var swimlineno = "";
  1929. var changedYN = "N";
  1930. var fcstinhospdayno = ""; //재원일수 ( CPG에서 적용 분기 시 필요)
  1931. var fcstinhospdayYN = "Y"; //재원일수 (존재) 여부
  1932. var closeYN = "N";
  1933. var changeStatusYN = "N";
  1934. var pamExistYN = "";
  1935. var dschAppYN = "N"; // 2008.08.02 pymi 퇴원예고 메시지 적용여부
  1936. var invalPrcpYN = "N";
  1937. var resetAppScopYN = "N";
  1938. var iPid = "";
  1939. var iCretno = "";
  1940. var iHngnm = "";
  1941. var iSex = "";
  1942. var iAge = "";
  1943. var iInsukind = "";
  1944. var iSuppkind = "";
  1945. var iIoflag = "";
  1946. var iPrcpgenrflag = "";
  1947. var iOrddd = "";
  1948. var iOrddeptcd = "";
  1949. var appstepstatflag = "";
  1950. var iAuthflag = "";
  1951. var iOrddeptnm = "";
  1952. var iRoomcd = "";
  1953. // 처방 import 화면 경로
  1954. var import_prcp = grp_biz.grp_prcp.imp_prcp;
  1955. //20180716 이돈희 : CP환자 여부
  1956. var bCPPatient = false;
  1957. // <Div id="div_all">
  1958. // <Tab id="Tab_prcp">
  1959. // <Tabpages>
  1960. // <Tabpage id="tp_patord" text="진료내역" url="emr_prcpmngtxp::SMMMO02400_진료내역.xfdl"/>
  1961. // <Tabpage id="tp_bfprcp" text="전처방" url="emr_prcpmngtxp::SMMMO02100_전회처방.xfdl"/>
  1962. // <Tabpage id="tp_prmsprcp" text="약속처방" url="emr_prcpmngtxp::SMMMO02300_약속처방.xfdl"/>
  1963. // <Tabpage id="tp_prcpsrch" text="처방검색" url="emr_prcpmngtxp::SMMMO02200_처방검색.xfdl"/>
  1964. // <Tabpage id="tp_patlist" text="대상자" url="emr_prcpmngtxp::SMMMO02900_처방진료대상자.xfdl"/>
  1965. // <Tabpage id="tp_prmsop" text="약속수술" url="emr_prcpmngtxp::SMMMO02600_약속수술.xfdl"/>
  1966. // <Tabpage id="tp_clinc" text="임상연구" url="emr_prcpmngtxp::SMMMO09500_임상시험프로토콜처방.xfdl"/>
  1967. // </Tabpages>
  1968. // </Tab>
  1969. // </Div>
  1970. var arErrorCode = new HashArray();
  1971. //=======================================================================================
  1972. // Event
  1973. //---------------------------------------------------------------------------------------
  1974. /****************************************************************************************
  1975. * Components : Form
  1976. * Components ID : SMMMP00800
  1977. * Event : oninit
  1978. * Argument : 01.obj : Object Event has occurred
  1979. * : 02.e : Event Object
  1980. * Description : 화면 처음 초기화시 폼초기화
  1981. ****************************************************************************************/
  1982. function SMMMP00800_oninit(obj:Form, e:InitEventInfo)
  1983. {
  1984. trace("SMMMP00800_oninit");
  1985. frmf_initForm(obj); // 폼 초기화
  1986. //초기화시 makeValue 해주는 노드는 지워준다
  1987. // model.removenode("/root/temp1/getdata/getformyn");
  1988. // model.removenode("/root/temp1/getdata/appyn");
  1989. ds_temp1_getdata.clear();
  1990. // model.setValue("/root/init/fstopenflag", "Y"); //20080905 임시!!
  1991. ds_init.setColumn(0,"fstopenflag","Y");
  1992. import_prcp.ds_root.setColumn(0,"cp","Y");
  1993. //진료대상자리스트에 값을 setting한다
  1994. var prcpWindow = frmf_findPopup("SMMMO04100");
  1995. if( !utlf_isNull(prcpWindow) ){
  1996. prcpWindow.ds_root.setColumn(0,"cpflag","Y");
  1997. }
  1998. // 15.12.02, start
  1999. try {
  2000. ds_temp1_getdata.copyData(arg_ds_temp1_getdata);
  2001. } catch(e) { sysf_catchTrace(e); }
  2002. appf_getCodeList([{dsNm: "ds_M0003", cdGrpId: "M0003"}
  2003. , {dsNm: "ds_M0005", cdGrpId: "M0005"}
  2004. , {dsNm: "ds_M0011", cdGrpId: "M0011"}
  2005. , {dsNm: "ds_P0034", cdGrpId: "P0034"}
  2006. , {dsNm: "ds_M0029", cdGrpId: "M0029"}], true);
  2007. // 15.12.02 end
  2008. }
  2009. /****************************************************************************************
  2010. * Components : Form
  2011. * Components ID : SMMMP00800
  2012. * Event : onload
  2013. * Argument : 01.obj : Object Event has occurred
  2014. * : 02.e : Event Object
  2015. * Description : 화면오픈시 폼load이후 실행
  2016. ****************************************************************************************/
  2017. function SMMMP00800_onload(obj:Form, e:LoadEventInfo)
  2018. {
  2019. trace("SMMMP00800_onload");
  2020. //grp_biz.btn_detail_tab.tabindex = 0;
  2021. // 20200401 김현석, 적용일자 세팅, 20200310998
  2022. //ds_init.setColumn(0, "prcpdd", utlf_getCurrentDate());
  2023. ds_init.setColumn(0, "prcpdd", fGetAppdd());
  2024. import_prcp.div_all.Tab_prcp.tp_bfprcp.fInitialize();
  2025. //20180716 이돈희 : CP 처방 환자인 경우 OCS로 오픈, 아닌 경우 환자계획표로 오픈
  2026. if(bCPPatient == true){
  2027. grp_biz.btn_detail_tab.tabindex = 1;
  2028. changeViewMode( "U" );
  2029. }
  2030. }
  2031. /****************************************************************************************
  2032. * Components : Tab
  2033. * Components ID : grp_biz.swt_formatt
  2034. * Event : onchanged
  2035. * Argument : 01.obj : Object Event has occurred
  2036. * : 02.e : Event Object
  2037. * Description : 서식/첨부파일 & 미완성처방 탭버튼 선택시 실행
  2038. ****************************************************************************************/
  2039. function grp_biz_swt_formatt_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  2040. {
  2041. if(e.postindex == 1) {
  2042. fGetErrPrcpList();
  2043. } else {
  2044. grp_biz.btn_savecomplprcp.visible = false;
  2045. }
  2046. }
  2047. /****************************************************************************************
  2048. * Components : Button
  2049. * Components ID : grp_biz.btn_upviewmode
  2050. * Event : onclick
  2051. * Argument : 01.obj : Object Event has occurred
  2052. * : 02.e : Event Object
  2053. * Description : 위 화살표 버튼 클릭시 실행
  2054. ****************************************************************************************/
  2055. function grp_biz_btn_upviewmode_onclick(obj:Button, e:ClickEventInfo)
  2056. {
  2057. changeViewMode("U");
  2058. }
  2059. /****************************************************************************************
  2060. * Components : Button
  2061. * Components ID : grp_biz.btn_downviewmode
  2062. * Event : onclick
  2063. * Argument : 01.obj : Object Event has occurred
  2064. * : 02.e : Event Object
  2065. * Description : 아래 화살표 버튼 클릭시 실행
  2066. ****************************************************************************************/
  2067. function grp_biz_btn_downviewmode_onclick(obj:Button, e:ClickEventInfo)
  2068. {
  2069. changeViewMode( "D" );
  2070. }
  2071. /****************************************************************************************
  2072. * Components : Button
  2073. * Components ID : grp_biz.importbutton2
  2074. * Event : onclick
  2075. * Argument : 01.obj : Object Event has occurred
  2076. * : 02.e : Event Object
  2077. * Description : alert 버튼 클릭
  2078. ****************************************************************************************/
  2079. function grp_biz_importbutton2_onclick(obj:Button, e:ClickEventInfo)
  2080. {
  2081. var errOjb = frmf_findPopup("SPMMP00200");
  2082. if(utlf_isNull(errOjb)){
  2083. // open("SPMMP00200", "2", "", "", "SPMMP00200", "", "", "width:900; height:455;", false );
  2084. frmf_open("SPMMP00200", "SPMMP00200", null, null, 2, null, null, null, null, null, null, null, "M");
  2085. }
  2086. }
  2087. /****************************************************************************************
  2088. * Components : Button
  2089. * Components ID : grp_biz.importbutton1
  2090. * Event : onclick
  2091. * Argument : 01.obj : Object Event has occurred
  2092. * : 02.e : Event Object
  2093. * Description : reset 버튼 클릭
  2094. ****************************************************************************************/
  2095. function grp_biz_importbutton1_onclick(obj:Button, e:ClickEventInfo)
  2096. {
  2097. fReconstruct();
  2098. }
  2099. /****************************************************************************************
  2100. * Components : Button
  2101. * Components ID : grp_biz.btn_savecomplprcp
  2102. * Event : onclick
  2103. * Argument : 01.obj : Object Event has occurred
  2104. * : 02.e : Event Object
  2105. * Description : 저장 버튼 클릭
  2106. ****************************************************************************************/
  2107. function grp_biz_btn_savecomplprcp_onclick(obj:Button, e:ClickEventInfo)
  2108. {
  2109. // grp_btn.btn_allInfoSave.selected = false;
  2110. frmf_setParameter("saveInvaPrcplYN", "Y");
  2111. if( grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.fSaveInvalPrcp(cpgflagcd) == true ){
  2112. //저장성공, 정상종료 => 처방 노드셋 및 그리드 초기화
  2113. clickBtnNm_SMMMO00110 = "";
  2114. fGetErrPrcpList(); //미완성처방을 다시 조회한다
  2115. dsf_makeValue(ds_temp1_getdata,"srchcond","string","2"); //조회조건 1:로딩 및 재조회, 2:적용 후 재조회, 3:퇴원예고시 문진조회 (20090.5.19 JJE)
  2116. // submit("TRMMP00803", false); //steppath 조회
  2117. dsf_setDefaultVal(ds_temp1_getdata, "appstepstatflag:s,checkyn:N,srchcond:1");
  2118. var oParam = {};
  2119. oParam.id = "TRMMP00803";
  2120. oParam.service = "prcpbaseapp.CpMngt";
  2121. oParam.method = "reqGetAppStepStat";
  2122. oParam.inds = "req=ds_temp1_getdata";
  2123. oParam.outds = "ds_main_steppath_info=info ds_main_steppath_appinfo=appinfo ds_main_steppath_mntrappinfo=mntrappinfo ds_main_steppath_inqrappinfo=inqrappinfo";
  2124. oParam.async = false;
  2125. oParam.callback = "cf_TRMMP00803";
  2126. tranf_submit(oParam);
  2127. if( !utlf_isNull(ds_main_steppath_appinfo.getColumn(0,"appstat")) ){
  2128. dsf_makeValue(ds_temp1_getdata,"appstat","string",ds_main_steppath_appinfo.getColumn(0,"appstat"));
  2129. appStat = ds_main_steppath_appinfo.getColumn(0,"appstat");
  2130. // model.removeNodeset("/root/main/steppath/appinfo");
  2131. // model.removeNodeset("/root/send/srchcond");
  2132. // model.removeNodeset("/root/send/steplist");
  2133. // model.removeNodeset("/root/send/delprcplist");
  2134. ds_main_steppath_appinfo.clear();
  2135. ds_send_srchcond.clear();
  2136. ds_send_steplist.clear();
  2137. ds_send_delprcplist.clear();
  2138. fRemoveSaveNodeList( 2 );
  2139. // grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.grp_contents.grd_prcplist.redraw();
  2140. tab_refresh();
  2141. fResetStepFlag(); //CPG의 경우 Step의 S/E flag 재설정
  2142. }
  2143. }
  2144. frmf_clearParameter("saveInvaPrcplYN");
  2145. // model.removeNodeset("/root/temp1/tmpprcplist/prcplist");
  2146. ds_temp1_tmpprcplist_prcplist.clear();
  2147. }
  2148. /****************************************************************************************
  2149. * Components : Tab
  2150. * Components ID : grp_biz.btn_detail_tab
  2151. * Event : onchanged
  2152. * Argument : 01.obj : Object Event has occurred
  2153. * : 02.e : Event Object
  2154. * Description : 환자계획표,OCS,OutLine 탭버튼 클릭
  2155. ****************************************************************************************/
  2156. function grp_biz_btn_detail_tab_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  2157. {
  2158. if(obj.tabindex == 0) {
  2159. //20180716 이돈희 : OCS일때는 적용 버튼을 인증저장으로 수정
  2160. grp_btn.btn_allInfoSave.text = "적용";
  2161. grp_btn.btn_allInfoSave.position.left = grp_btn.btn_close.position.left - 58;
  2162. grp_btn.btn_allInfoSave.position.width = 56;
  2163. //grp_btn.btn_drop.position.left = grp_btn.btn_close.position.left - 116;
  2164. //grp_btn.btn_drop.position.width = 56;
  2165. grp_btn.btn_drop.position.left = grp_btn.btn_allInfoSave.position.left - 58;
  2166. grp_btn.btn_drop.position.width = 56;
  2167. var tCase = 0;
  2168. if( grp_biz.ivw_detail.url != "emr_cpgxp::SPMMP02200_DetailView.xfdl" ){
  2169. ds_initsrch_envinfo.setColumn(0, "answcnt", "001");
  2170. grp_biz.ivw_detail.url = "emr_cpgxp::SPMMP02200_DetailView.xfdl";
  2171. }else{
  2172. if( grp_biz.line8.position.top == 24 ){
  2173. tCase = 1;
  2174. import_prcp.div_all.Tab_prcp.position.height = 643 + 111;
  2175. import_prcp.div_all.Splitter00.position.height = 623 + 111;
  2176. }else if( grp_biz.line8.position.top == 431 ){
  2177. tCase = 2;
  2178. import_prcp.div_all.Tab_prcp.position.height = 643 - 296;
  2179. import_prcp.div_all.Splitter00.position.height = 623 - 296;
  2180. }else{
  2181. tCase = 0;
  2182. import_prcp.div_all.Tab_prcp.position.height = 643;
  2183. import_prcp.div_all.Splitter00.position.height = 623;
  2184. }
  2185. fResizeControls();
  2186. // if( btn_detail_tab.selected == true && parseInt(ivw_detail.rct_border.attribute("height")) != 737 && tCase != 1 ){
  2187. if( grp_biz.ivw_detail.rct_border.position.height != 737 && tCase != 1 ){
  2188. // grp_biz.ivw_detail.fReSize("S"); //small
  2189. }else if( grp_biz.ivw_detail.rct_border.position.height == 737 && tCase == 1 ){
  2190. // grp_biz.ivw_detail.fReSize("L"); //large
  2191. }
  2192. if( ds_temp1_refresh_obj.getColumn(0,"change_gps") == "Y" ) {
  2193. fSendDetailValue();
  2194. grp_biz.ivw_detail.fInitGrigInfo();
  2195. //선택된 셀 색상, 다시 초기화
  2196. //grp_biz.ivw_detail.fInitGridStyle();
  2197. ds_temp1_refresh_obj.setColumn(0,"change_gps", "N");
  2198. }
  2199. }
  2200. //btn_detail_popup.disabled = true;
  2201. //ivw_outline.window.javascript.fViewDetailInfo("GPS");
  2202. grp_biz.ivw_outline.visible = false;
  2203. import_prcp.visible = false;
  2204. grp_biz.grp_prcp.ivw_prcp2.visible = false;
  2205. import_prcp.div_all.Tab_prcp.visible = false;
  2206. grp_biz.ivw_detail.visible = true;
  2207. preSelectedTab = "btn_detail_tab";
  2208. } else if(obj.tabindex == 1) {
  2209. //20180716 이돈희 : OCS일때는 적용 버튼을 인증저장으로 수정
  2210. grp_btn.btn_allInfoSave.text = "인증저장";
  2211. grp_btn.btn_allInfoSave.position.left = grp_btn.btn_close.position.left - 78;
  2212. grp_btn.btn_allInfoSave.position.width = 76;
  2213. //grp_btn.btn_drop.position.left = grp_btn.btn_close.position.left - 136;
  2214. grp_btn.btn_drop.position.left = grp_btn.btn_allInfoSave.position.left - 58;
  2215. grp_btn.btn_drop.position.width = 56;
  2216. ds_initsrch_envinfo.setColumn(0, "answcnt", "002");
  2217. // 처방화면 초기화
  2218. if ( import_prcp.btn_init.visible == true || import_prcp.btn_reinit.visible == true ){
  2219. import_prcp.fInitPrcpWnd("init");
  2220. }
  2221. // 처방화면 틀어지는거 억지로 맞춰준다.
  2222. // 라인기준으로 처방화면 화면 조정.
  2223. if( grp_biz.line8.position.top == 24 ){
  2224. import_prcp.div_all.Tab_prcp.position.height = 643 + 111;
  2225. import_prcp.div_all.Splitter00.position.height = 623 + 111;
  2226. }else if( grp_biz.line8.position.top == 431 ){
  2227. import_prcp.div_all.Tab_prcp.position.height = 643 - 296;
  2228. import_prcp.div_all.Splitter00.position.height = 623 - 296;
  2229. }else{
  2230. import_prcp.div_all.Tab_prcp.position.height = 643;
  2231. import_prcp.div_all.Splitter00.position.height = 623;
  2232. }
  2233. fResizeControls();
  2234. //btn_detail_popup.disabled = true;
  2235. import_prcp.visible = true;
  2236. if(import_prcp.div_all.Tab_prcp.tabindex == 1 ){
  2237. grp_biz.grp_prcp.ivw_prcp2.visible = false;
  2238. import_prcp.div_all.Tab_prcp.visible = true;
  2239. }else{
  2240. grp_biz.grp_prcp.ivw_prcp2.visible = true;
  2241. import_prcp.div_all.Tab_prcp.visible = false;
  2242. }
  2243. grp_biz.ivw_outline.visible = false;
  2244. grp_biz.ivw_detail.visible = false;
  2245. preSelectedTab = "btn_action_tab";
  2246. //인증저장 버튼 보이지 않도록 처리
  2247. import_prcp.div_all.btn_prcpsave.visible = false;
  2248. import_prcp.div_all.btn_tempsave.position.left = 1140;
  2249. import_prcp.div_all.btn_tempsave.position.width = 64;
  2250. import_prcp.div_all.btn_undo.position.left = 1073;
  2251. import_prcp.div_all.btn_undo.position.width = 64;
  2252. //처방이동 버튼 위치 이동
  2253. import_prcp.div_all.Button01.position.left = 937 + 79;
  2254. import_prcp.div_all.Button01.position.width = 26;
  2255. import_prcp.div_all.Button02.position.left = 965 + 79;
  2256. import_prcp.div_all.Button02.position.width = 26;
  2257. import_prcp.div_all.grd_prcplist.position.width = 820;
  2258. //20191101 이돈희 : 상급종합병원 기준 안내 추가로 처방창 top 위치 조정
  2259. //import_prcp.div_all.grd_prcplist.position.top = 143;
  2260. import_prcp.div_all.grd_prcplist.position.top = import_prcp.div_all.btn_durcheck.position.bottom + 2;
  2261. //import_prcp.div_all.grd_diaglist_fixrow.position.width = import_prcp.div_all.grd_diaglist.position.width;
  2262. import_prcp.div_all.grd_diaglist_fixrow.position.width = import_prcp.div_all.grd_diaglist.position.width
  2263. - (import_prcp.div_all.grd_diaglist.vscrollbar.visible ? import_prcp.div_all.grd_diaglist.vscrollbar.position.width : 0);
  2264. if( ds_temp1_refresh_obj.getColumn(0,"change_ocs") == "Y" ){
  2265. /*
  2266. // import 화면은 src 를 다시 셋팅해도 변화가 없으므로, 처방.xrw 의 초기화 function들 직접 호출 시작 ~
  2267. fInitializeConDone();
  2268. fBaseCdInit();
  2269. fInitBtnSet();
  2270. button106.attribute ( "background-color" ) = "#7cbbdd";
  2271. //fScrnInitialize();
  2272. zesfInitSign();
  2273. fInitializeReady();
  2274. fAnstPrcp();
  2275. model.setValue ( "/root/init/setprcpyn", "Y" );
  2276. model.setValue("/root/temp1/refresh_obj/change_ocs", "N");
  2277. // import 화면은 src 를 다시 셋팅해도 변화가 없으므로, 처방.xrw 의 초기화 function들 직접 호출 끝 !
  2278. */
  2279. import_prcp.fPatDiagSrch();
  2280. ds_temp1_refresh_obj.setColumn(0,"change_ocs", "N");
  2281. }
  2282. // sysf_trace("보이는거 확인"
  2283. // + " grp_biz : " + grp_biz.visible
  2284. // + " grp_prcp : " + grp_biz.grp_prcp.visible
  2285. // + " imp_prcp : " + grp_biz.grp_prcp.imp_prcp.visible
  2286. // + " div_all : " + grp_biz.grp_prcp.imp_prcp.div_all.visible
  2287. // + " import_prcp.div_all.Tab_prcp.tabindex : " + import_prcp.div_all.Tab_prcp.tabindex
  2288. // );
  2289. } else if(obj.tabindex == 2) {
  2290. //20180716 이돈희 : OCS일때는 적용 버튼을 인증저장으로 수정
  2291. grp_btn.btn_allInfoSave.text = "적용";
  2292. grp_btn.btn_allInfoSave.position.left = grp_btn.btn_close.position.left - 58;
  2293. grp_btn.btn_allInfoSave.position.width = 56;
  2294. grp_btn.btn_drop.position.left = grp_btn.btn_allInfoSave.position.left - 58;
  2295. grp_btn.btn_drop.position.width = 56;
  2296. //grp_btn.btn_drop.position.left = grp_btn.btn_close.position.left - 116;
  2297. //grp_btn.btn_drop.position.width = 56;
  2298. ds_initsrch_envinfo.setColumn(0, "answcnt", "002");
  2299. // if( grp_biz.line8.position.top == 24 ){
  2300. // import_prcp.div_all.Tab_prcp.position.height = 643 + 111;
  2301. // import_prcp.div_all.Splitter00.position.height = 623 + 111;
  2302. // }else if( grp_biz.line8.position.top == 431 ){
  2303. // import_prcp.div_all.Tab_prcp.position.height = 643 - 296;
  2304. // import_prcp.div_all.Splitter00.position.height = 623 - 296;
  2305. // }else{
  2306. // import_prcp.div_all.Tab_prcp.position.height = 643;
  2307. // import_prcp.div_all.Splitter00.position.height = 623;
  2308. // }
  2309. // fResizeControls();
  2310. //ivw_outline.window.javascript.fViewDetailInfo("GPS");
  2311. grp_biz.ivw_outline.visible = true;
  2312. grp_biz.ivw_outline.bringToFront();
  2313. grp_biz.ivw_detail.visible = false;
  2314. import_prcp.visible = false;
  2315. grp_biz.grp_prcp.ivw_prcp2.visible = false;
  2316. import_prcp.div_all.Tab_prcp.visible = false;
  2317. //btn_detail_popup.disabled = false;
  2318. preSelectedTab = "btn_outline_tab";
  2319. if( grp_biz.ivw_outline.url != "emr_cpgxp::SPMMP01900_OutlineView.xfdl"){
  2320. grp_biz.ivw_outline.url = "emr_cpgxp::SPMMP01900_OutlineView.xfdl";
  2321. return;
  2322. }
  2323. if( ds_temp1_refresh_obj.getColumn(0,"change_outline") == "Y" ){
  2324. fInitializeOutline();
  2325. ds_temp1_refresh_obj.setColumn(0,"change_outline", "N");
  2326. }
  2327. }
  2328. }
  2329. /****************************************************************************************
  2330. * Components : Button
  2331. * Components ID : grp_biz.btn_refresh
  2332. * Event : onclick
  2333. * Argument : 01.obj : Object Event has occurred
  2334. * : 02.e : Event Object
  2335. * Description : 재조회버튼 클릭
  2336. ****************************************************************************************/
  2337. function grp_biz_btn_refresh_onclick(obj:Button, e:ClickEventInfo)
  2338. {
  2339. // tab_refresh() 와 동일 기능...?
  2340. dsf_makeValue(ds_temp1_getdata,"appstepstatflag","string",""); //steppath 조회 시 update를 무조건 하지 않도록 값 셋팅 추가
  2341. dsf_makeValue(ds_temp1_getdata,"srchcond" ,"string","1"); //조회조건 1:로딩 및 재조회, 2:적용 후 재조회, 3:퇴원예고시 문진조회 (20090.5.19 JJE)
  2342. dsf_setDefaultVal(ds_temp1_getdata, "appstepstatflag:s,checkyn:N,srchcond:1");
  2343. var oParam = {};
  2344. oParam.id = "TRMMP00803";
  2345. oParam.service = "prcpbaseapp.CpMngt";
  2346. oParam.method = "reqGetAppStepStat";
  2347. oParam.inds = "req=ds_temp1_getdata";
  2348. oParam.outds = "ds_main_steppath_info=info ds_main_steppath_appinfo=appinfo ds_main_steppath_mntrappinfo=mntrappinfo ds_main_steppath_inqrappinfo=inqrappinfo";
  2349. oParam.async = false;
  2350. oParam.callback = "cf_TRMMP00803";
  2351. tranf_submit(oParam);
  2352. if( arErrorCode.pop("TRMMP00803") > -1 ){ //steppath 조회
  2353. if( !utlf_isNull(ds_main_steppath_appinfo.getColumn(0,"appstat")) ){
  2354. dsf_makeValue(ds_temp1_getdata,"appstat","string",ds_main_steppath_appinfo.getColumn(0,"appstat"));
  2355. appStat = ds_main_steppath_appinfo.getColumn(0,"appstat");
  2356. ds_main_steppath_appinfo.clearData();
  2357. ds_send_srchcond.clearData();
  2358. ds_send_steplist.clearData();
  2359. if( resetAppScopYN == "Y" ) fResetStepFlag(); //CPG의 경우 Step의 S/E flag 재설정
  2360. }
  2361. }
  2362. if( grp_biz.btn_detail_tab.tabindex == 1 ){
  2363. ds_temp1_refresh_obj.setColumn(0,"change_ocs", "N");
  2364. ds_temp1_refresh_obj.setColumn(0,"change_outline", "Y");
  2365. ds_temp1_refresh_obj.setColumn(0,"change_gps", "Y");
  2366. frmf_inputEnterKey("grp_biz.btn_detail_tab", "onchanged", new TabIndexChangeEventInfo );
  2367. return;
  2368. }else if( grp_biz.btn_detail_tab.tabindex == 0){
  2369. ds_temp1_refresh_obj.setColumn(0,"change_gps", "Y");
  2370. ds_temp1_refresh_obj.setColumn(0,"change_ocs", "Y");
  2371. ds_temp1_refresh_obj.setColumn(0,"change_outline", "Y");
  2372. frmf_inputEnterKey("grp_biz.btn_detail_tab", "onchanged", new TabIndexChangeEventInfo );
  2373. return;
  2374. }else{
  2375. ds_temp1_refresh_obj.setColumn(0,"change_outline", "Y");
  2376. //btn_outline_tab.dispatch("DOMActivate"); //바로 아웃라인을 재조회하는 func 호출!
  2377. ds_temp1_refresh_obj.setColumn(0,"change_ocs", "Y");
  2378. ds_temp1_refresh_obj.setColumn(0,"change_gps", "Y");
  2379. frmf_inputEnterKey("grp_biz.btn_detail_tab", "onchanged", new TabIndexChangeEventInfo );
  2380. return;
  2381. }
  2382. }
  2383. /****************************************************************************************
  2384. * Components : Button
  2385. * Components ID : grp_biz.btn_detail_popup
  2386. * Event : onclick
  2387. * Argument : 01.obj : Object Event has occurred
  2388. * : 02.e : Event Object
  2389. * Description : 상세보기 버튼클릭
  2390. ****************************************************************************************/
  2391. function grp_biz_btn_detail_popup_onclick(obj:Button, e:ClickEventInfo)
  2392. {
  2393. fOpenStepDetlInfo();
  2394. }
  2395. /****************************************************************************************
  2396. * Components : Button
  2397. * Components ID : grp_biz.btn_essprcpinfo
  2398. * Event : onclick
  2399. * Argument : 01.obj : Object Event has occurred
  2400. * : 02.e : Event Object
  2401. * Description : 필수처방 버튼 클릭
  2402. ****************************************************************************************/
  2403. function grp_biz_btn_essprcpinfo_onclick(obj:Button, e:ClickEventInfo)
  2404. {
  2405. // open("SPMMP04100");
  2406. frmf_open("SPMMP04100", "SPMMP04100", null, null, null, null, null, null, null, null, null, null, "M");
  2407. }
  2408. /****************************************************************************************
  2409. * Components : Button
  2410. * Components ID : grp_biz.btn_initcpgprcp
  2411. * Event : onclick
  2412. * Argument : 01.obj : Object Event has occurred
  2413. * : 02.e : Event Object
  2414. * Description : 적용범위 재설정 버튼 클릭
  2415. ****************************************************************************************/
  2416. function grp_biz_btn_initcpgprcp_onclick(obj:Button, e:ClickEventInfo)
  2417. {
  2418. resetAppScopYN = "Y";
  2419. // import_prcp = grp_biz.grp_prcp.imp_prcp
  2420. import_prcp.ds_main_prcplist.filter("status != 'S' && etclnkspec != '-' && etclnkspec != ''");
  2421. if( import_prcp.ds_main_prcplist.rowcount > 0 ){
  2422. var msgRtn = sysf_messageBox("OCS탭에 이전 적용범위의 CPG 처방이 존재합니다.\n\nOCS탭의 처방을 함께 삭제", "S001");
  2423. if( msgRtn == 6 ){
  2424. // model.removeNodeset("/root/main/prcp/prcplist[status!='S' and etclnkspec!='-' and etclnkspec!='']");
  2425. import_prcp.ds_main_prcplist.filter("");
  2426. for(var i = import_prcp.ds_main_prcplist.rowcount-1; i >= 0; i--) {
  2427. if( import_prcp.ds_main_prcplist.getColumn(i,"status") != "S"
  2428. && import_prcp.ds_main_prcplist.getColumn(i,"etclnkspec") != "-"
  2429. && import_prcp.ds_main_prcplist.getColumn(i,"etclnkspec") != "") {
  2430. import_prcp.ds_main_prcplist.deleteRow(i);
  2431. }
  2432. }
  2433. ds_temp1_tmpprcplist_prcplist.clear();
  2434. // model.recalculate();
  2435. // grd_prcplist.refresh();
  2436. }else if( msgRtn != 7 ){
  2437. resetAppScopYN = "N";
  2438. return;
  2439. }
  2440. } else {
  2441. import_prcp.ds_main_prcplist.filter("");
  2442. }
  2443. import_prcp.ds_main_prcplist.filter("");
  2444. //적용을 위한 global 변수 초기화하여 적용 로직을 재실행 가능하도록
  2445. fRemoveSaveNodeList( 1 );
  2446. stopSavePrcpYN_SMMMO00110 = "N";
  2447. clickBtnNm_SMMMO00110 = "";
  2448. prtlFlag_SMMMO00110 = "-";
  2449. ErrExistYN_SMMMO00110 = "N";
  2450. questionYN_SMMMO00110 = "N";
  2451. // btn_refresh.dispatch("DOMActivate");
  2452. var ev = new ClickEventInfo;
  2453. frmf_inputEnterKey("grp_biz.btn_refresh", "onclick", ev );
  2454. sysf_messageBox("적용범위가 초기화되었습니다.\n적용범위를 다시 선택", "I008");
  2455. resetAppScopYN = "N";
  2456. ds_main.setColumn(0,"appscopmode", "");
  2457. }
  2458. /****************************************************************************************
  2459. * Components : Button
  2460. * Components ID : grp_btn.button45
  2461. * Event : onclick
  2462. * Argument : 01.obj : Object Event has occurred
  2463. * : 02.e : Event Object
  2464. * Description : 수술예약장부 버튼 클릭
  2465. ****************************************************************************************/
  2466. function grp_btn_button45_onclick(obj:Button, e:ClickEventInfo)
  2467. {
  2468. var xpt = this.position.left + 10;
  2469. var ypt = this.position.top + 10;
  2470. var mon = sysf_getCurrentMonitorNumber();
  2471. // var coord = getRelativeCoordinate ( xpt, ypt );
  2472. // var mon = coord[0];
  2473. // xpt = coord[1];
  2474. // ypt = coord[2];
  2475. var param = iPid + "▦" +
  2476. iHngnm + "▦" +
  2477. iSex + "▦" +
  2478. iAge + "▦" +
  2479. iInsukind + "▦" +
  2480. iSuppkind + "▦" +
  2481. iOrddd + "▦" +
  2482. iOrddeptcd + "▦" +
  2483. iPrcpgenrflag;
  2484. frmf_setParameter("SMMMO05700_param", param);
  2485. // modal("SMMMO05700", mon, xpt, ypt, "SMMMO05700");
  2486. frmf_modal("SMMMO05700", "SMMMO05700", null, null, mon, xpt, ypt, null, null, null, null, null, "M");
  2487. }
  2488. /****************************************************************************************
  2489. * Components : Button
  2490. * Components ID : grp_btn.importbutton3
  2491. * Event : onclick
  2492. * Argument : 01.obj : Object Event has occurred
  2493. * : 02.e : Event Object
  2494. * Description : 수술마취의뢰 버튼 클릭
  2495. ****************************************************************************************/
  2496. function grp_btn_importbutton3_onclick(obj:Button, e:ClickEventInfo)
  2497. {
  2498. // fPrcpModal ("SPMMO00200", 0, 80);
  2499. frmf_modal("SPMMO00200", "SPMMO00200", null, null, null, 0, 80, null, null, null, null, null, "M");
  2500. }
  2501. /****************************************************************************************
  2502. * Components : Button
  2503. * Components ID : grp_btn.importbutton4
  2504. * Event : onclick
  2505. * Argument : 01.obj : Object Event has occurred
  2506. * : 02.e : Event Object
  2507. * Description : 수술마취스케줄 버튼 클릭
  2508. ****************************************************************************************/
  2509. function grp_btn_importbutton4_onclick(obj:Button, e:ClickEventInfo)
  2510. {
  2511. var xpt = this.position.left + 10;
  2512. var ypt = this.position.top + 10;
  2513. var mon = sysf_getCurrentMonitorNumber();
  2514. // var coord = getRelativeCoordinate ( xpt, ypt );
  2515. // var mon = coord[0];
  2516. // xpt = coord[1];
  2517. // ypt = coord[2];
  2518. //setParameter ( "SPMMO00200_pid", model.getValue ( "/root/paminfo/list/pid" ));
  2519. //setParameter ( "SPMMO00200_orddeptcd" , model.getValue ( "/root/paminfo/list/orddeptcd" ));
  2520. //setParameter ( "SPMMO00200_ioflag" , prcpgenrflag );
  2521. // open("SMMMO05100", mon, xpt, ypt, "SMMMO05100", "/root/paminfo/list/pid", "/root/main/cond/pid" );
  2522. var objArg = new Object();
  2523. objArg.arg_ds_main_cond = ds_paminfo;
  2524. frmf_open("SMMMO05100", "SMMMO05100", objArg, null, mon, xpt, ypt, null, null, null, null, null, "M");
  2525. }
  2526. /****************************************************************************************
  2527. * Components : Button
  2528. * Components ID : grp_btn.button48
  2529. * Event : onclick
  2530. * Argument : 01.obj : Object Event has occurred
  2531. * : 02.e : Event Object
  2532. * Description : 통합결과 버튼 클릭
  2533. ****************************************************************************************/
  2534. function grp_btn_button48_onclick(obj:Button, e:ClickEventInfo)
  2535. {
  2536. var xpt = this.position.left + 10;
  2537. var ypt = this.position.top + 10;
  2538. var mon = sysf_getCurrentMonitorNumber();
  2539. // var coord = getRelativeCoordinate ( xpt, ypt );
  2540. // var mon = coord[0];
  2541. // xpt = coord[1];
  2542. // ypt = coord[2];
  2543. // open("SMAER00800", mon, xpt, ypt, "SMAER00800", "/root/paminfo/list/pid", "/root/paminfo/list/pid" );
  2544. var objArg = new Object();
  2545. objArg.arg_ds_paminfo = ds_paminfo;
  2546. frmf_open("SMAER00800", "SMAER00800", objArg, null, mon, xpt, ypt, null, null, null, null, null, "M");
  2547. }
  2548. /****************************************************************************************
  2549. * Components : Button
  2550. * Components ID : grp_btn.btn_val
  2551. * Event : onclick
  2552. * Argument : 01.obj : Object Event has occurred
  2553. * : 02.e : Event Object
  2554. * Description : 평가 버튼 클릭
  2555. ****************************************************************************************/
  2556. function grp_btn_btn_val_onclick(obj:Button, e:ClickEventInfo)
  2557. {
  2558. frmf_setParameter("cpgappno", appNo_SMMMO00110);
  2559. var mainObj = frmf_getMainViewer();
  2560. // modal("SPMMP02500");
  2561. frmf_modal("SPMMP02500", "SPMMP02500", null, null, null, null, null, null, null, null, null, null, "M");
  2562. }
  2563. /****************************************************************************************
  2564. * Components : Button
  2565. * Components ID : grp_btn.btn_drop
  2566. * Event : onclick
  2567. * Argument : 01.obj : Object Event has occurred
  2568. * : 02.e : Event Object
  2569. * Description : 취소 버튼 클릭
  2570. ****************************************************************************************/
  2571. function grp_btn_btn_drop_onclick(obj:Button, e:ClickEventInfo)
  2572. {
  2573. //if(cpgflagcd == "02") fCnclApp();
  2574. var steppathCount = ds_main_steppath_info.getCaseCount("stepstat >= '20'");
  2575. if(ds_temp1_getdata.getColumn(0,"appstat") == "00" && steppathCount == 0 ){
  2576. if( sysf_messageBox( "", "Q007" ) == "6" ){
  2577. fCnclApp();
  2578. }
  2579. }else{
  2580. fDropApp(grp_btn.btn_drop.text);
  2581. }
  2582. }
  2583. /****************************************************************************************
  2584. * Components : Button
  2585. * Components ID : grp_btn.btn_allInfoSave
  2586. * Event : onclick
  2587. * Argument : 01.obj : Object Event has occurred
  2588. * : 02.e : Event Object
  2589. * Description : 적용 버튼 클릭
  2590. ****************************************************************************************/
  2591. function grp_btn_btn_allInfoSave_onclick(obj:Button, e:ClickEventInfo)
  2592. {
  2593. // btn_savecomplprcp.selected = false;
  2594. // 20200401 김현석, 적용일자 세팅, 20200310998
  2595. //var today = utlf_getCurrentDate();
  2596. var today = fGetAppdd();
  2597. var orgAppStat = appStat; //원래 적용상태
  2598. ds_temp1_exe.setColumn(0,"lastupdtrid", utlf_getCurrentDateTime());
  2599. if( stopSavePrcpYN_SMMMO00110 != "Y" && grp_biz.btn_detail_tab.tabindex == 2 ){
  2600. var currTab = "btn_outline_tab";
  2601. }else if( stopSavePrcpYN_SMMMO00110 != "Y" && grp_biz.btn_detail_tab.tabindex == 0 ){
  2602. var currTab = "btn_detail_tab";
  2603. }
  2604. var sCpBatchTime = lf_getHardCDList("Y", 599, 3); //배치 실행 시간 2018.01.25 엄영만
  2605. if(utlf_isNull(sCpBatchTime)) {
  2606. sCpBatchTime = "153000"; // 디폴트 6시 => 153000 으로 변경
  2607. }
  2608. fGuidDschDclrt(); //퇴원예고 유도
  2609. fSetupPrcpDD(); //CPG의 시작/종료스텝 설정에 따른 처방일자 조정
  2610. if( fBatSaveCpPrtlPrcp("", "6", cpgflagcd) == false && stopSavePrcpYN_SMMMO00110 == "N" ){
  2611. clickBtnNm_SMMMO00110 = "btn_allInfoSave";
  2612. stopSavePrcpYN_SMMMO00110 = "Y";
  2613. }
  2614. if( stopSavePrcpYN_SMMMO00110 != "Y" || import_prcp.SubmitTF_SMMMO00110 == true ){ //저장 성공 시,
  2615. stopSavePrcpYN_SMMMO00110 = "N";
  2616. /*-------------------------- 원래는 당일처방 저장종료 후 처리 -> 당일+미래처방 저장 종료 후 처리 ----------------------------*/
  2617. //중증등록, 법전전염병 팝업 (and 전처방 조회)
  2618. if( ds_root.getColumn(0,"addprcp") != "Y" && import_prcp.SubmitTF_SMMMO00110 == true ){
  2619. var aftdcyn = "N";
  2620. dsf_createDs("ds_temp_prcpdc_prcplist");
  2621. import_prcp.ds_prcpdc_prcplist.filter("tempcol21 == 'C'");
  2622. ds_temp_prcpdc_prcplist.copyData(import_prcp.ds_prcpdc_prcplist,true);
  2623. var aftdclist = ds_temp_prcpdc_prcplist; //model.instances(0).selectNodes( "/root/prcpdc/prcplist[tempcol21='C']" );
  2624. //청구후 d/c가 아닐 경우만 타도록 parameter 추가 (2008.11.30)
  2625. if( !utlf_isNull(aftdclist) ){
  2626. if( aftdclist.rowcount > 0 ) aftdcyn = "Y";
  2627. }
  2628. if( import_prcp.fGetPrcpSaveAftInfo(prcpsaveyn_SMMMO00110, aftdcyn) == false ){
  2629. sysf_messageBox( "전처방 조회를", "E009" ); //2008.09.29 추가
  2630. return;
  2631. }
  2632. prcpsaveyn_SMMMO00110 = "N";
  2633. import_prcp.ds_prcpdc_prcplist.filter("");
  2634. }
  2635. //OCR자동출력
  2636. //ocrcalcscorcd = ocrcalcscorcd_SMMMO00110 + ocrcalcscorcd; // 2016.04.14 동의서 출력 수정 엄영만 당일처방과 미래처방을 한번에 체크 하던것을 각각 따로 체크 하도록 수정 처방정보의 동의서 번호 때문, ocrcalcscorcd_SMMMO00110 : 당일 처방 동의서 출력 항목
  2637. if (!utlf_isNull(import_prcp.ocrcalcscorcd)){ //OCR 자동출력 ocrcalcscorcd 값은 MMO001에 global로 선언. 값은 fPrcpSaveChkaft에서 체크한다.
  2638. import_prcp.fOcrAutoPrint(import_prcp.ocrcalcscorcd);
  2639. import_prcp.ocrcalcscorcd = "";
  2640. import_prcp.ocrcalcscorcd_SMMMO00110 = "";
  2641. }
  2642. import_prcp.fInitializeConDone("save");
  2643. import_prcp.fTempPrcp("save");
  2644. /*-----------------------------------------------------------------------------------------------------------------------*/
  2645. clickBtnNm_SMMMO00110 = "";
  2646. prtlFlag_SMMMO00110 = "-";
  2647. //임시처방 없을 경우 remove
  2648. dsf_createDs("ds_temp_prcplist");
  2649. import_prcp.ds_main_prcplist.filter("prcphistcd != 'T'");
  2650. ds_temp_prcplist.copyData(import_prcp.ds_main_prcplist,true);
  2651. import_prcp.ds_main_prcplist.filter("");
  2652. var tmpPrcpNodeList = ds_temp_prcplist;
  2653. if( tmpPrcpNodeList.rowcount <= 0 ){
  2654. // model.removeNodeset("/root/main/prcp/prcplist");
  2655. import_prcp.ds_main_prcplist.clear();
  2656. import_prcp.lf_appendChildPrcp("ds_reset_prcplist", "ds_main_prcplist", "main" ); //검색라인추가
  2657. }
  2658. dsf_deleteDs("ds_temp_prcplist");
  2659. // grd_prcplist.refresh();
  2660. // model.recalculate();
  2661. dsf_makeValue(ds_temp1_getdata,"srchcond" ,"string","2"); //조회조건 1:로딩 및 재조회, 2:적용 후 재조회, 3:퇴원예고시 문진조회 (20090.5.19 JJE)
  2662. dsf_makeValue(ds_temp1_getdata,"appstepstatflag","string",""); //steppath 조회 시 update를 무조건 하지 않도록 값 셋팅 추가 (2010.03.10 JJE)
  2663. dsf_setDefaultVal(ds_temp1_getdata, "appstepstatflag:s,checkyn:N,srchcond:1");
  2664. var oParam = {};
  2665. oParam.id = "TRMMP00803";
  2666. oParam.service = "prcpbaseapp.CpMngt";
  2667. oParam.method = "reqGetAppStepStat";
  2668. oParam.inds = "req=ds_temp1_getdata";
  2669. oParam.outds = "ds_main_steppath_info=info ds_main_steppath_appinfo=appinfo ds_main_steppath_mntrappinfo=mntrappinfo ds_main_steppath_inqrappinfo=inqrappinfo";
  2670. oParam.async = false;
  2671. oParam.callback = "cf_TRMMP00803";
  2672. tranf_submit(oParam);
  2673. if( arErrorCode.pop("TRMMP00803") > -1 ){ //steppath 조회
  2674. fResetAppStat();
  2675. //미래처방 분에 대한 처방오류 메세지 -> 미완성처방 존재 여부를 ErrExistYN_SMMMO00110 아닌, /root/main/invalprcplist null 여부로 가리도록 변경 (2008.09.30)
  2676. var popYN = frmf_getParameter("SPMMP00200_popupYN");
  2677. if( ErrExistYN_SMMMO00110 == "Y" ){
  2678. if ( ds_main_invalprcplist.rowcount > 0 && popYN == "Y" ) { // 처방 ds_main_invalprcplist 을 사용
  2679. var mon = sysf_getCurrentMonitorNumber();
  2680. // var monSize = getMonitorSize(mon);
  2681. var monSize = system.getScreenResolution(mon);
  2682. var monSize_width = monSize.split(' ')[0];
  2683. var monSize_height = monSize.split(' ')[1];
  2684. var xpt = 10;
  2685. var ypt = monSize_width[1]/2 - 500;
  2686. frmf_setParameter("SMMMP00800_popupYN", "Y");
  2687. var errOjb = frmf_findPopup("SPMMP00200");
  2688. if(utlf_isNull(errOjb)){
  2689. // open ("SPMMP00200", mon, xpt, ypt, "SPMMP00200", "", "", "width:900; height:455;", false );
  2690. // 20200401 김현석, 적용일자 세팅, 20200414020 , 미완성 처방 팝업 안 하도록 수정
  2691. //frmf_open("SPMMP00200", "SPMMP00200", null, null, mon, xpt, ypt, 900, 455, null, null, null, "M");
  2692. sysf_messageBox( "미완성 처방이 존재합니다.", "E000" );
  2693. grp_biz.swt_formatt.tabindex = 1;
  2694. fGetErrPrcpList();
  2695. }
  2696. questionYN_SMMMO00110 = "N"; //초기화
  2697. }else{
  2698. // btn_saveincomplprcp.selected = true;
  2699. // model.toggle("incompletion_tab");
  2700. grp_biz.swt_formatt.tabindex = 1;
  2701. fGetErrPrcpList();
  2702. fCase2ViewMode();
  2703. }
  2704. ErrExistYN_SMMMO00110 = "N";
  2705. }
  2706. fRemoveSaveNodeList(1);
  2707. } //end steppath 조회
  2708. tab_refresh();
  2709. // 2008.07.21 외래 cp 마지막 차수 발행 -> 평가 popup (s)
  2710. if(cpgflagcd == "01") {
  2711. //일괄저장한 시간이 오후6시 이후라면, 익일처방을 실처방으로 저장하는 배치 프로그램을 호출해야 함 (2007.12.21 추가)
  2712. // 20200401 김현석, 적용일자 세팅, 20200310998
  2713. //var nextDay = utlf_getCurrentDate().toDate().getAddDate(1,"D").getDateFormat(); //다음날을 찾는다.
  2714. var nextDay = fGetAppdd().toDate().getAddDate(1,"D").getDateFormat(); //다음날을 찾는다.
  2715. // var NextStepNode = ds_main_steppath_info.getColumn() instance1.selectSingleNode("/root/main/steppath/info" + "[prcpdd='" + nextDay + "' and stepstat != '30']");
  2716. ds_main_steppath_info.filter("prcpdd == '" + nextDay + "' && stepstat != '30'");
  2717. if( ds_main_steppath_info.rowcount > 0 && utlf_getCurrentTime() >= sCpBatchTime ){ //인증저장 시에는 익일처방까지 풀리는 경우는 최초저장(첫째날)일 경우만 (2010.02.09 JJE)
  2718. ds_temp1_exe.setColumn(0,"lastupdtrid", sysf_getUserId());
  2719. ds_temp1_exe.setColumn(0,"lastupdtdt" , utlf_getCurrentDateTime() + "000");
  2720. // 2008.07.07 pymi 배치호출시 cpno 추가
  2721. ds_temp1_exe.setColumn(0,"paramcnts", "stat:1 " + "cpno:"+ ds_temp1_getdata.getColumn(0,"cpgappno"));
  2722. var oParam = {};
  2723. oParam.id = "TXMMP00807";
  2724. oParam.service = "batchinfoapp.BatchInfo";
  2725. oParam.method = "reqExeRunBatchProgram";
  2726. oParam.inds = "req=ds_temp1_exe";
  2727. oParam.outds = "";
  2728. oParam.async = false;
  2729. oParam.callback = "cf_TXMMP00807";
  2730. tranf_submit(oParam);
  2731. if( arErrorCode.pop("TXMMP00807") < 0 ){
  2732. sysf_messageBox ( "당일처방 및 미래처방 저장은 성공하였으나,\예외 상황으로 인해 익일처방을 실처방으로 저장", "E009" );
  2733. }
  2734. ds_temp1_exe.setColumn(0,"lastupdtrid" , "");
  2735. ds_temp1_exe.setColumn(0,"lastupdtdt" , "");
  2736. ds_temp1_exe.setColumn(0,"paramcnts" , "");
  2737. }
  2738. ds_main_steppath_info.filter("");
  2739. if ( ds_main_masterinfo_info.getColumn(0,"ioflagcd") == "O" ){
  2740. // 20200401 김현석, 적용일자 세팅, 20200310998
  2741. //if(utlf_getCurrentDate() == ds_main_steppath_info.getColumn(ds_main_steppath_info.findRow("startendflag == 'E'"),"prcpdd")) {
  2742. if(fGetAppdd() == ds_main_steppath_info.getColumn(ds_main_steppath_info.findRow("startendflag == 'E'"),"prcpdd")) {
  2743. frmf_setParameter("cpgappno", ds_temp1_getdata.getColumn(0,"cpgappno"));
  2744. // modal("SPMMP02500");
  2745. frmf_modal("SPMMP02500", "SPMMP02500", null, null, null, null, null, null, null, null, null, null, "M");
  2746. }
  2747. }
  2748. }else{ //CPG case
  2749. fResetStepFlag(); //CPG의 경우 Step의 S/E flag 재설정
  2750. if( !utlf_isNull(stepArray_SMMMO00110) ){
  2751. //범위 내의 서식 리스트 재조회 (2009.01.09)
  2752. // var startendNodeList = instance1.selectNodes("/root/main/steppath/info[stepstat!='10' and prcpdd!='']");
  2753. //스텝에 해당되는 문진 팝업 호출
  2754. // var stepInqrList = instance1.selectNodes("/root/main/inqrinfo/inqrheader[stepno!='0' and stepno!='' and inqrstatcd!='E' and inqroffyn!='Y']");
  2755. ds_main_inqrinfo_inqrheader.filter("stepno!='0' and stepno!='' and inqrstatcd!='E' and inqroffyn!='Y'")
  2756. var steps = stepArray_SMMMO00110.split("|");
  2757. var sNum = 0;
  2758. if(ds_main_inqrinfo_inqrheader.rowcount > 0 && steps.length > 0){
  2759. for( var s1 = 0; s1 < ds_main_inqrinfo_inqrheader.rowcount; s1++){
  2760. // var node = stepInqrList.item(s1);
  2761. var s1Node = ds_main_inqrinfo_inqrheader.getColumn(s1,"stepno"); //node.selectSingleNode("stepno");
  2762. for( var s2 = 0; s2 < steps.length; s2++){
  2763. if( s1Node == steps[s2] ){
  2764. sNum++;
  2765. }
  2766. }
  2767. }
  2768. if(sNum > 0 ) fLoadInqrPopup("APP"); //문진팝업호출
  2769. }
  2770. stepArray_SMMMO00110 = "";
  2771. ds_main_inqrinfo_inqrheader.filter("");
  2772. }
  2773. //CPG인 경우, outline에서 시작/종료를 재설정 및 결정이 가능하므로 temp/getdata/authflag 재생성 (저장 후 사라짐)
  2774. if( utlf_isNull(ds_temp_getdata.getColumn(0,"authflag")) ){
  2775. dsf_makeValue(ds_temp_getdata ,"authflag", "string", iAuthflag);
  2776. dsf_makeValue(ds_temp1_getdata,"authflag", "string", iAuthflag);
  2777. }
  2778. }
  2779. //2008..07.22 (e)
  2780. }else{ //저장 취소, 실패 시,
  2781. //환자계획표에서 추가/수정/삭제 할 경우, OCS탭 전환 안하고, 처방 instance reset함
  2782. if( grp_biz.ivw_detail.visible == true ){
  2783. if( ds_main_masterinfo_info.getColumn(0,"ioflagcd") == "O" ){
  2784. // var nodeList = instance1.selectNodes("/root/main/steppath/info" + "[prcpdd='" + today + "' and stepstat='10']");
  2785. ds_main_steppath_info.filter("prcpdd=='" + today + "' && stepstat=='10'");
  2786. }else{
  2787. if( iPrcpgenrflag == "O" )
  2788. // var nodeList = instance1.selectNodes("/root/main/steppath/info" + "[times='0' and stepstat='10']");
  2789. ds_main_steppath_info.filter("times=='0' && stepstat=='10'");
  2790. else
  2791. // var nodeList = instance1.selectNodes("/root/main/steppath/info" + "[stepstat='10']");
  2792. ds_main_steppath_info.filter("stepstat=='10'");
  2793. }
  2794. if( ds_main_steppath_info.rowcount > 0 ){
  2795. fCpInPrcpVisible();
  2796. return;
  2797. }
  2798. ds_main_steppath_info.filter("");
  2799. }else{
  2800. fCpInPrcpVisible();
  2801. }
  2802. }
  2803. if( import_prcp.SubmitTF_SMMMO00110 == true ){ //orgAppStat == "00" &&
  2804. if( cpgflagcd == "01" ) fsetCpInfo("save"); //상단CP여부 변경
  2805. fMssgInvalPrcp("2"); //퇴원예고를 하지 았았고, 당일~익일자 처방 중 퇴원처방이 존재하면 퇴원예고 유도 alert
  2806. }
  2807. }
  2808. /****************************************************************************************
  2809. * Components : Button
  2810. * Components ID : grp_btn.btn_close
  2811. * Event : onclick
  2812. * Argument : 01.obj : Object Event has occurred
  2813. * : 02.e : Event Object
  2814. * Description : 닫기 버튼 클릭
  2815. ****************************************************************************************/
  2816. function grp_btn_btn_close_onclick(obj:Button, e:ClickEventInfo)
  2817. {
  2818. this.close();
  2819. }
  2820. /****************************************************************************************
  2821. * Components : Grid
  2822. * Components ID : grp_biz.swt_formatt.att_tab.grd_formlist
  2823. * Event : oncelldblclick
  2824. * Argument : 01.obj : Object Event has occurred
  2825. * : 02.e : Event Object
  2826. * Description : 서식목록 그리드 더블 클릭
  2827. ****************************************************************************************/
  2828. function grp_biz_swt_formatt_att_tab_grd_formlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  2829. {
  2830. var sRow = ds_main_formlist_info.rowposition; //e.row; //환자계획표에서 서식을 띄울수도 있으므로
  2831. if( sRow > -1 ) {
  2832. var formProgFlag = ds_main_formlist_info.getColumn(sRow,"formprogflag");
  2833. var cnstYNflag = ds_main_formlist_info.getColumn(sRow,"recvdeptcd");
  2834. var mon = sysf_getCurrentMonitorNumber();
  2835. if( formProgFlag == "OCR" ){
  2836. //OCD(동의서)
  2837. var prcpgenrflag = ds_patflag.getColumn(0,"prcpgenrflag");
  2838. var formcd = ds_main_formlist_info.getColumn(sRow,"formcd");
  2839. if ( prcpgenrflag == "O" ) {
  2840. var orddd = ds_paminfo.getColumn(0,"orddd" );
  2841. } else {
  2842. var orddd = ds_paminfo.getColumn(0,"indd" );
  2843. }
  2844. var cretno = ds_paminfo.getColumn(0,"cretno");
  2845. var ordtype = ds_paminfo.getColumn(0,"ioflag");
  2846. var formtypecls = ds_main_formlist_info.getColumn(sRow,"formtypecls");
  2847. var ocrtagprntyn = ds_main_formlist_info.getColumn(sRow,"ocrtagprntyn");
  2848. // modal( "SMMRF02300" );
  2849. frmf_modal("SMMRF02300", "SMMRF02300", null, null, null, null, null, null, null, null, null, null, "M");
  2850. fGetFormList("R"); //서식목록을 조회한다(재조회)
  2851. }else if( formProgFlag == "PROF" ){
  2852. //제증명
  2853. var mainObj = frmf_getMainViewer();
  2854. var formcd = ds_main_formlist_info.getColumn(sRow,"formcd");
  2855. var formrecseq = ds_main_formlist_info.getColumn(sRow,"formrecseq");
  2856. var sortseq = ds_main_formlist_info.getColumn(sRow,"formseq");
  2857. dsf_createDs("ds_temp_popup");
  2858. dsf_makeValue(ds_temp_popup,"pid" ,"string", iPid);
  2859. dsf_makeValue(ds_temp_popup,"orddd" ,"string", iOrddd);
  2860. dsf_makeValue(ds_temp_popup,"cretno" ,"string", iCretno);
  2861. dsf_makeValue(ds_temp_popup,"ordtype" ,"string", iIoflag);
  2862. dsf_makeValue(ds_temp_popup,"disflag" ,"string", "popup");
  2863. // model.makeValue("/root/temp/popup/profcertseq/formrecseq", formrecseq);
  2864. dsf_makeValue(ds_temp_popup,"formrecseq","string", formrecseq);
  2865. // 같은화면을 open, modal 로 두번 연다??
  2866. // mainObj.window.javascript.open("SMMMR02900", mon, 0, 0, "SMMMR02900", "/root/temp/popup", "/root/temp/popup" );
  2867. // modal("SMMMR02900", mon, 0, 0, "SMMMR02900", "/root/temp/popup", "/root/temp/popup" );
  2868. var objArg = new Object();
  2869. objArg.arg_ds_temp_popup = ds_temp_popup;
  2870. mainObj.frmf_open("SMMMR02900", "SMMMR02900", objArg, null, mon, 0, 0, null, null, null, null, null, "M");
  2871. frmf_modal("SMMMR02900", "SMMMR02900", objArg, null, mon, 0, 0, null, null, null, null, null, "M");
  2872. fGetFormList("R"); //서식목록을 조회한다(재조회)
  2873. }else{
  2874. if (cnstYNflag =="-" ) { // 수신과가 없는 경우는 일반 서식임.
  2875. //서식 fOpenRec();
  2876. var formcd = ds_main_formlist_info.getColumn(sRow,"formcd");
  2877. var formrecseq = ds_main_formlist_info.getColumn(sRow,"formrecseq");
  2878. if (utlf_isNull(formrecseq) && !utlf_isNull(ds_main_formlist_info.getColumn(sRow,"formrecseq1")) ) { //20130524 정창혁
  2879. formrecseq = ds_main_formlist_info.getColumn(sRow,"formrecseq1");
  2880. }
  2881. var formprogflag = ds_main_formlist_info.getColumn(sRow, "formprogflag");
  2882. var seq = ds_main_formlist_info.getColumn(sRow,"formseq");
  2883. var prcpdd = ""; //조회일자
  2884. if (cpgflagcd=="02" && utlf_isNull(formrecseq)) prcpdd = utlf_getCurrentDate(); //CPG는 현재일자로 열어줌 (2010.06.03 JJE)
  2885. else prcpdd = ds_main_formlist_info.getColumn(sRow,"prcpdd");
  2886. var calledflag = "cpgmain|" + seq; // 서식프로그램에서 알 수 있도록 CP구분자 + 서식 seq (필요하면 값을 더 추가)
  2887. var mainObj = frmf_getMainViewer();
  2888. var OpenFormYN = mainObj.objects["ds_hidden"] == null ? null : mainObj.ds_hidden.getColumn(0,"choinewform" );
  2889. if( utlf_isNull(OpenFormYN) ){
  2890. //messageBox("진료기록 메인 화면을 여는 중입니다. \n조회할 서식을 다시 한번", "C002");
  2891. fGetFormList("O"); //서식목록을 조회한다(재조회)
  2892. return;
  2893. }else{
  2894. //서식로더에서 필료한 파라메터 설정 (2010.05.26 JJE)
  2895. mainObj.frmf_setParameter("disppatinfo", iPid + "▦" + iHngnm + "▦" + iSex+"/"+iAge + "▦" + iOrddeptnm + "▦" + iRoomcd );
  2896. //수술기록지/DSC기록지 선택 시, 환자의 예약수술이 1건인 경우, 수술예약번호를 던진다 (상단 수술예약번호 정보)
  2897. var srcformcd = ds_main_formlist_info.getColumn(sRow,"srcformcd");
  2898. if( srcformcd == "0000000676" || srcformcd == "0000003325" ){
  2899. dsf_createDs("ds_send_pamdata");
  2900. dsf_makeValue(ds_send_pamdata,"pid" ,"string" , ds_paminfo.getColumn(0,"pid") );
  2901. dsf_makeValue(ds_send_pamdata,"orddd" ,"string" , iOrddd );
  2902. var rsrvOpCnt = 0;
  2903. // submit("TRMMP02801", false);
  2904. var oParam = {};
  2905. oParam.id = "TRMMP02801";
  2906. oParam.service = "prcpmngtapp.CPPrcpMngt";
  2907. oParam.method = "reqGetOPList";
  2908. oParam.inds = "req=ds_send_pamdata";
  2909. oParam.outds = "ds_temp1_oplist_info=info";
  2910. oParam.async = false;
  2911. oParam.callback = "";
  2912. tranf_submit(oParam);
  2913. rsrvOpCnt = ds_temp1_oplist_info.rowcount; //instance1.selectNodes("/root/temp1/oplist/info").length;
  2914. if( rsrvOpCnt > 1 ){
  2915. frmf_setParameter ( "SMMMO00800_returnFlag", "OCR" );
  2916. // modal("SPMMP02800", 1, 0, 0, "SPMMP02800", "/root/paminfo/list", "/root/send/pamdata" );
  2917. var objArg = new Object();
  2918. objArg.arg_ds_send_pamdata = ds_paminfo;
  2919. frmf_modal("SPMMP02800", "SPMMP02800", objArg, null, 1, 0, 0, null, null, null, null, null, "M");
  2920. if( frmf_getParameter("SMMMO00800_returnFlag") == "OCR" ){
  2921. //리스트 팝업에서 선택하지 않고, 그냥 닫은 경우
  2922. rsrvOpCnt = 0;
  2923. }else{
  2924. //리스트에서 1건 선택하거나, 그외의 경우, 수술예약리스트에서 1건을 택했을 수 있으므로, 다시 카운트한다
  2925. rsrvOpCnt = ds_temp1_oplist_info.rowcount; //instance1.selectNodes("/root/temp1/oplist/info").length;
  2926. }
  2927. frmf_clearParameter( "SMMMO00800_returnFlag" );
  2928. }
  2929. if( rsrvOpCnt == 1 ){
  2930. var opstatcd = ds_temp1_oplist_info.getColumn(0,"opstatcd");
  2931. //확정된 수술이 1건 존재 시,
  2932. if(opstatcd != "00" && opstatcd != "10"){
  2933. //수술기록예정일 = 수술확정일
  2934. var ioflag = "T" // 수술일 경우 ioflag:T
  2935. var pid = iPid
  2936. var opcnfmdd = ds_temp1_oplist_info.getColumn(0,"opcnfmdd");
  2937. var cretno = "";
  2938. var instcd = ds_paminfo.getColumn(0,"instcd");
  2939. var perfdeptcd = ds_temp1_oplist_info.getColumn(0,"perfdeptcd"); //v
  2940. var perfdrid = ds_temp1_oplist_info.getColumn(0,"perfdrid"); //v
  2941. var patflag = iPrcpgenrflag
  2942. var procflag = "F"; // 최초조회:F , 재조회:R
  2943. var oprsrvno = ds_temp1_oplist_info.getColumn(0,"oprsrvno");
  2944. var ophistno = ds_temp1_oplist_info.getColumn(0,"ophistno"); //v
  2945. var srchdd = ""; //조회일자
  2946. if (cpgflagcd=="02" && utlf_isNull(formrecseq)) srchdd = utlf_getCurrentDate(); //CPG는 현재일자로 열어줌 (2010.06.03 JJE)
  2947. else srchdd = ds_main_formlist_info.getColumn(sRow,"prcpdd"); //조회일자
  2948. var param = ioflag + "▦" +
  2949. pid + "▦" +
  2950. opcnfmdd + "▦" +
  2951. cretno + "▦" +
  2952. instcd + "▦" +
  2953. perfdeptcd + "▦" +
  2954. perfdrid + "▦" +
  2955. patflag + "▦" +
  2956. procflag + "▦" +
  2957. oprsrvno + "▦" +
  2958. ophistno + "▦" +
  2959. srchdd;
  2960. //frmf_setParameter("condparam", param);
  2961. // modal("SPMMO08900", 1, 0, 0, "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  2962. //frmf_modal("SPMMO08900", "SPMMO08900", null, null, 1, 0, 0, 0, 0, null, null, null, "M");
  2963. appf_initPatientInfo(param);
  2964. }
  2965. } //end if( rsrvOpCnt == 1 )
  2966. // model.removeNodeset("/root/send/pamdata");
  2967. dsf_deleteDs("ds_send_pamdata");
  2968. }
  2969. }
  2970. mainObj.fOpenFormByOther(formcd, formrecseq, calledflag, prcpdd, formprogflag);
  2971. } else { // 컨설트를 오픈할 경우
  2972. var formcd = ds_main_formlist_info.getColumn(sRow,"formcd");
  2973. var cnstflag = ds_main_formlist_info.getColumn(sRow,"cnstflag");
  2974. var recvdeptcd = ds_main_formlist_info.getColumn(sRow,"recvdeptcd");
  2975. var recvuserid = ds_main_formlist_info.getColumn(sRow,"recvuserid");
  2976. var cnstclsnm = ds_main_formlist_info.getColumn(sRow,"cnstclsnm");
  2977. var cnstcnts = ds_main_formlist_info.getColumn(sRow,"cnstcnts");
  2978. var formrecseq = ds_main_formlist_info.getColumn(sRow,"formrecseq");
  2979. if (utlf_isNull(formrecseq)) {
  2980. frmf_setParameter("openmode" , "newcnstform"); //오픈모드
  2981. frmf_setParameter("formcd" , formcd); //서식코드
  2982. frmf_setParameter("SMMMR04900_cnstflag" , cnstflag); //의뢰구분(1:진료의뢰, 3:타과의뢰)
  2983. frmf_setParameter("SMMMR04900_cnstdeptcd" , recvdeptcd); //수신과코드
  2984. frmf_setParameter("SMMMR04900_drid" , recvuserid); //수신사용자
  2985. frmf_setParameter("SMMMR04900_formnm" , cnstclsnm); //서식명
  2986. frmf_setParameter("reqcnts" , cnstcnts); //자동입력내용
  2987. frmf_setParameter("reqoverwrite" , "false"); //기록 덮어쓰기여부
  2988. // modal("SSMMR01100", 1, 0, 0, "", "", "");
  2989. frmf_modal("SSMMR01100", "SSMMR01100", null, null, 1, 0, 0, null, null, null, null, null, "M");
  2990. frmf_clearParameter("openmode");
  2991. frmf_clearParameter("formcd");
  2992. frmf_clearParameter("SMMMR04900_cnstflag");
  2993. frmf_clearParameter("SMMMR04900_cnstdeptcd");
  2994. frmf_clearParameter("SMMMR04900_drid");
  2995. frmf_clearParameter("SMMMR04900_formnm");
  2996. frmf_clearParameter("reqcnts");
  2997. frmf_clearParameter("reqoverwrite");
  2998. } else {
  2999. frmf_setParameter("openmode" , "recform"); //오픈모드는 “recform”
  3000. frmf_setParameter("formrecseq" , formrecseq);
  3001. // modal("SSMMR01100", 1, 0, 0 ,"", "", "");
  3002. frmf_modal("SSMMR01100", "SSMMR01100", null, null, 1, 0, 0, null, null, null, null, null, "M");
  3003. frmf_clearParameter("openmode");
  3004. frmf_clearParameter("formrecseq");
  3005. }
  3006. }
  3007. }
  3008. }
  3009. }
  3010. /****************************************************************************************
  3011. * Components : Grid
  3012. * Components ID : grp_biz.swt_formatt.att_tab.grd_inqr
  3013. * Event : oncelldblclick
  3014. * Argument : 01.obj : Object Event has occurred
  3015. * : 02.e : Event Object
  3016. * Description : 문진목록 그리드 더블 클릭
  3017. ****************************************************************************************/
  3018. function grp_biz_swt_formatt_att_tab_grd_inqr_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  3019. {
  3020. fLoadInqrPopup("SEL"); //문진팝업호출
  3021. }
  3022. //=======================================================================================
  3023. // Function
  3024. //---------------------------------------------------------------------------------------
  3025. /****************************************************************************************
  3026. * Function : fReconstruct
  3027. * Description : 환자대상자리스트에서 다른 환자를 선택할 때, 화면을 reset한다
  3028. * Argument :
  3029. * return type :
  3030. * Creator :
  3031. ****************************************************************************************/
  3032. function fReconstruct(){
  3033. var paminfocsv = sysf_getGlobalVariable("paminfo");
  3034. var patflagcsv = sysf_getGlobalVariable("patflag");
  3035. if(!utlf_isNull(paminfocsv)){
  3036. ds_paminfo.clearData();
  3037. dsf_setCSVToDs("ds_paminfo", paminfocsv);
  3038. }
  3039. if(!utlf_isNull(patflagcsv)){
  3040. ds_patflag.clearData();
  3041. dsf_setCSVToDs("ds_patflag", patflagcsv);
  3042. }
  3043. sysf_trace("초기화 시작"
  3044. + "/ refreshyn : " + ds_temp1_refresh_obj.getColumn(0,"refreshyn")
  3045. + "/ pid : " + ds_paminfo.getColumn(0,"pid")
  3046. );
  3047. //MGPS 띄워진 상태에서, 진료대상자에서 환자 선택 시, OCR 초기화 (2008.09.05 JJE)
  3048. if( ds_temp1_refresh_obj.getColumn(0,"refreshyn") == "Y" ){
  3049. ds_init.setColumn(0,"bfprcpload","N"); //전처방을 초기화한다.
  3050. import_prcp.fInitializeConDone();
  3051. import_prcp.fInitializeReady();
  3052. ds_init.setColumn(0,"fstopenflag","N");
  3053. // ivw_prcp3 가 존재하지 않는다. tp_bfprcp 로 이름 변경된듯. 상목샘에게 확인해보자.
  3054. // group2 = div_all
  3055. if (import_prcp.div_all.Tab_prcp.tp_bfprcp.url == "emr_prcpmngtxp::SMMMO02100_전회처방.xfdl") {
  3056. import_prcp.div_all.Tab_prcp.tp_bfprcp.fInitialize(); //전처방 재조회
  3057. }
  3058. }
  3059. ds_temp1_refresh_obj.setColumn(0,"refreshyn","N"); //최초조회가 아닌경우, refresh 여부 "Y"
  3060. //초기화시 makeValue 해주는 노드는 지워준다
  3061. // model.removenode("/root/temp1/getdata/getformyn");
  3062. // model.removenode("/root/temp1/getdata/appyn");
  3063. ds_temp1_getdata.deleteColumn("getformyn"); //ds_temp1_getdata.clear();
  3064. ds_temp1_getdata.deleteColumn("appyn");
  3065. prtlFlag_SMMMO00110 = "-"; //일반 or 임상시험 일 때에는 "", cp에서 저장하는 처방 저장을 위해 "-"로 다시 셋팅
  3066. appNo_SMMMO00110 = ""; //적용번호
  3067. appstepstatflag = ""; //서식호출여부 변수 초기화
  3068. frmf_clearParameter("SPMMP00200_popupYN"); //적용시 미완성처방 있을때 오류팝업 띄울지 여부 (Y이면 팝업 호출)
  3069. if( utlf_isNull(ds_paminfo.getColumn(0,"pid")) ){ //환자정보가 없다면, 바로 return (닫음) (2008.10.06)
  3070. return;
  3071. }
  3072. //권한에 따른, 버튼 설정 (처방창에서는 111, CP검색창에서는 110, 대상자리스트에서는 110 각기 다르므로 권한설정에 어려움이 있어 직종으로 판단함)
  3073. var jobKindCd = sysf_getUserInfo("jobkindcd"); //직종코드(0330:의사, 0332:치과의사)
  3074. var userid = sysf_getUserInfo("userid");
  3075. frmf_setSpclScrnAuth("X", false);
  3076. //하드코드 테이블에 의사직종코를 참조하여 접속자의 직종코드와 비교를 통해 권한 체크 (2010.07.16 JJE)
  3077. // var trgtcd = model.getValue ( "/root/initsrch/drjobkindcd[trgtcd='" + jobKindCd + "']/trgtcd" );
  3078. // 추가처방 화면에 있는 인스턴스인데.. 불러오거나 하지 않음??? 처방화면에서 불러오는??
  3079. var trgtcd = import_prcp.ds_initsrch_drjobkindcd.getColumn(import_prcp.ds_initsrch_drjobkindcd.findRow("trgtcd",jobKindCd),"trgtcd");
  3080. //테스터를 위한 권한 쓰기권한 강제설정 (2009.02.27)
  3081. if( userid.substr(0,3) == "DEV" || userid.substr(0,3) == "EMR" ) trgtcd = userid;
  3082. //if( !(checkAuth("X") && (jobKindCd == "0330" || jobKindCd == "0332")) ){
  3083. if( !(frmf_checkAuth("X") && !utlf_isNull(trgtcd)) ){ // frmf_checkAuth("X") TF와 다르게 false를 반환한다
  3084. frmf_setSpclScrnAuth("R", false);
  3085. dsf_makeValue(ds_temp1_getdata,"authflag","string","S"); //사용하지는 않음...
  3086. dsf_makeValue(ds_temp_getdata, "authflag","string","S");
  3087. ds_temp1.setColumn(0,"authyn", "N");
  3088. grp_btn.btn_drop.visible = false;
  3089. grp_btn.btn_allInfoSave.visible = false;
  3090. import_prcp.div_all.btn_tempsave.enable = false;
  3091. }else{
  3092. frmf_setSpclScrnAuth("X", false);
  3093. dsf_makeValue(ds_temp1_getdata,"authflag","string","U"); //M-GPS의 Write 권한은 User(진료의)
  3094. dsf_makeValue(ds_temp_getdata, "authflag","string","U");
  3095. ds_temp1.setColumn(0,"authyn", "Y");
  3096. grp_btn.btn_drop.visible = true;
  3097. grp_btn.btn_allInfoSave.visible = true;
  3098. grp_btn.btn_drop.enable = true;
  3099. grp_btn.btn_allInfoSave.enable = true;
  3100. import_prcp.div_all.btn_tempsave.enable = true;
  3101. }
  3102. //나머지 부분은 xforms-ready 이벤트로 옮김...
  3103. if( !utlf_isNull(sysf_getGlobalVariable("paminfo")) ){
  3104. pamExistYN = "Y";
  3105. }else{
  3106. pamExistYN = "N";
  3107. }
  3108. if( pamExistYN == "Y" ){
  3109. dsf_createDs("ds_init_P0322" ,[{col:"cdid" , type:"string", size:256},{col:"cdnm" , type:"string", size:256}]);
  3110. dsf_createDs("ds_init_orddept",[{col:"deptcd", type:"string", size:256},{col:"depthngnm", type:"string", size:256}]);
  3111. dsf_createDs("ds_init_M0505");
  3112. dsf_createDs("ds_init_M0506");
  3113. dsf_createDs("ds_init_M0507");
  3114. dsf_createDs("ds_init_M0508");
  3115. dsf_createDs("ds_init_M0509");
  3116. dsf_createDs("ds_init_M0510");
  3117. dsf_createDs("ds_init_M0511");
  3118. dsf_createDs("ds_init_M0512");
  3119. dsf_createDs("ds_init_M0513");
  3120. dsf_createDs("ds_init_M0514");
  3121. dsf_createDs("ds_init_M0515");
  3122. dsf_createDs("ds_init_M0516");
  3123. dsf_createDs("ds_init_M0518");
  3124. dsf_createDs("ds_init_P0313");
  3125. // zbcfGetCodeList(new Array("M0505", "M0506", "M0507", "M0508", "M0509", "M0510", "M0511", "M0512", "M0513", "M0514", "M0515", "M0516", "M0518", "P0313")
  3126. // , new Array("/root/init/M0505", "/root/init/M0506", "/root/init/M0507", "/root/init/M0508", "/root/init/M0509", "/root/init/M0510", "/root/init/M0511", "/root/init/M0512", "/root/init/M0513", "/root/init/M0514", "/root/init/M0515", "/root/init/M0516", "/root/init/M0518", "/root/init/P0313"));
  3127. var arrParam = [{dsNm: "ds_init_M0505", cdGrpId: "M0505"}
  3128. ,{dsNm: "ds_init_M0506", cdGrpId: "M0506"}
  3129. ,{dsNm: "ds_init_M0507", cdGrpId: "M0507"}
  3130. ,{dsNm: "ds_init_M0508", cdGrpId: "M0508"}
  3131. ,{dsNm: "ds_init_M0509", cdGrpId: "M0509"}
  3132. ,{dsNm: "ds_init_M0510", cdGrpId: "M0510"}
  3133. ,{dsNm: "ds_init_M0511", cdGrpId: "M0511"}
  3134. ,{dsNm: "ds_init_M0512", cdGrpId: "M0512"}
  3135. ,{dsNm: "ds_init_M0513", cdGrpId: "M0513"}
  3136. ,{dsNm: "ds_init_M0514", cdGrpId: "M0514"}
  3137. ,{dsNm: "ds_init_M0515", cdGrpId: "M0515"}
  3138. ,{dsNm: "ds_init_M0516", cdGrpId: "M0516"}
  3139. ,{dsNm: "ds_init_M0518", cdGrpId: "M0518"}
  3140. ,{dsNm: "ds_init_P0313", cdGrpId: "P0313"}
  3141. ]
  3142. appf_getCodeList(arrParam);
  3143. //debugger;
  3144. fSizeControl(); //창 위치 및 사이즈 조정(위치이동)
  3145. fCpSetting();
  3146. //cp 마스터 정보 및 스텝 정보를 셋팅 (steppath 조회 후 수행되어야 함) -> ivw_outline의 초기화
  3147. fInitialize();
  3148. //스텝경로와 미완성처방 리스트를 조회
  3149. fGetStepPathList();
  3150. //cp명 및 재원일수를 출력한다
  3151. //20180521 이돈희 : var titleTxt = titleTxt + .... 으로 CP 처방 창 활성화 상태에서 환자를 선택 시 CP 처방창의 타이틀이
  3152. // : 누적되는 현상 발생으로 선택된 환자 정보만 뜰 수 있도록 수정
  3153. var scrnTitle = sysf_getUserInfo("systeminstnm") + " " ;
  3154. scrnTitle += "CP처방 " ;
  3155. scrnTitle += sysf_getUserInfo("dutplcenm") + " ";
  3156. scrnTitle += sysf_getUserName() + " ";
  3157. scrnTitle += sysf_getTitleLoginDate() + " ";
  3158. var titleTxt = scrnTitle + " [" + iHngnm + " (" + iPid + ") " + cpgFlagNm +"명 : " + ds_main_masterinfo_info.getColumn(0,"cpgnm");
  3159. if( cpgflagcd == "01" ) titleTxt = titleTxt + " 재원일수 : " + ds_main_masterinfo_info.getColumn(0,"fcstinhospdayno") + "일";
  3160. titleTxt = titleTxt + "]";
  3161. this.titletext = titleTxt;
  3162. fGetFormList("F"); //서식목록을 조회한다.(first)
  3163. fGetHichartList();//20180224 이돈희 : 설명처방 리스트를 조회한다.
  3164. //상단 서식/첨부파일, 미완성처방 영역 분기 처리 (2008.12.02)
  3165. fSetupSupScrn();
  3166. //SMMMO00100 초기화 때, skip 후, 지금 처리 (2008.07.07) //SMMMO00100.xjs
  3167. import_prcp.fDrugPrcpDc(); // 간호반납 처방
  3168. import_prcp.fTempPrcp();
  3169. import_prcp.fConfirmTellPrcp(); // 미확인 간호 구두 처방 15.05.29 현행화
  3170. import_prcp.fSaveRsrvPrcpCvrt();
  3171. //처방창 닫음
  3172. fClosePrcpWindow();
  3173. //인증저장 버튼 보이지 않도록 처리
  3174. import_prcp.div_all.btn_prcpsave.visible = false;
  3175. import_prcp.div_all.btn_tempsave.position.left = 1140;
  3176. import_prcp.div_all.btn_undo.position.left = 1073;
  3177. // 가셔야할 곳 + 인증저장 숨김 외래예약 + 인증저장 숨김
  3178. // line5.attribute("y1") = "143px";
  3179. // line5.attribute("y2") = "143px";
  3180. import_prcp.div_all.btn_prcpsave2.visible = false;
  3181. import_prcp.div_all.chk_patgolistprtyn.visible = false; // bool_patgolistprtyn ID 변경
  3182. // cap_patgolistprtyn.visible = false;
  3183. import_prcp.div_all.btn_prtpattogo.visible = false;
  3184. //처방이동 버튼 위치 이동
  3185. import_prcp.div_all.Button01.position.left = 937 + 79; // button24
  3186. import_prcp.div_all.Button02.position.left = 965 + 79; // button26
  3187. //2008.09.04 순서 변경
  3188. //start: 화면 호출 시, 의사별 개인설정에 의한 기본탭 달리 지정되도록 함 (2010.07.01 JJE)
  3189. var defaultTab = "";
  3190. var qestcd = "";
  3191. if( cpgflagcd == "01" ) {
  3192. qestcd = "027";
  3193. } else if( cpgflagcd == "02" ) {
  3194. qestcd = "028";
  3195. }
  3196. // var defaultTabNode = instance1.selectSingleNode("/root/initsrch/envinfo[qestcd='"+qestcd+"']/answcnt"); //001:환자계획표, 002:OCS, 003:Outline
  3197. var defaultTabNode = import_prcp.ds_initsrch_envinfo.getColumn(import_prcp.ds_initsrch_envinfo.findRow("qestcd",qestcd),"answcnt");
  3198. if( !utlf_isNull(defaultTabNode) ){
  3199. defaultTab = defaultTabNode;
  3200. }else{
  3201. if( cpgflagcd == "01" ) defaultTab = "001";
  3202. else if( cpgflagcd == "02" ) defaultTab = "003";
  3203. }
  3204. sysf_trace("초기화 중간"
  3205. + " / tabindex : " + grp_biz.btn_detail_tab.tabindex
  3206. + " / cpgflagcd : " + cpgflagcd
  3207. + " / defaultTab : " + defaultTab
  3208. );
  3209. //(1-1) 기존에 창이 열려 있는 경우는, 환경설정과 무관하게 지정된 탭 그대로 둠.
  3210. if( grp_biz.btn_detail_tab.tabindex == 0 ){
  3211. defaultTab = "001";
  3212. grp_biz.ivw_detail.visible = true;
  3213. } else if ( grp_biz.btn_detail_tab.tabindex == 2 ){
  3214. defaultTab = "003";
  3215. } else if ( grp_biz.btn_detail_tab.tabindex == 1 ){
  3216. defaultTab = "002";
  3217. } else { //(1-2) 창이 처음 열리는 경우에는, 환경설정의 답에 의해 기본 탭 지정해줌, 창별 visibility 속성 설정
  3218. if( defaultTab == "001" ){ //환자계획표
  3219. grp_biz.grp_prcp.ivw_prcp2.visible = false;
  3220. // import_prcp.div_all.Tab_prcp.visible = false; //ivw_prcp3.visible = false;
  3221. import_prcp.visible = false; //imp_prcp.visible = false;
  3222. grp_biz.btn_detail_tab.tabindex = 0; //btn_detail_tab.selected = true;
  3223. grp_biz.ivw_detail.visible = true;
  3224. grp_biz.ivw_outline.visible = false;
  3225. }else if( defaultTab == "003" ){ //outline
  3226. grp_biz.grp_prcp.ivw_prcp2.visible = false;
  3227. // import_prcp.div_all.Tab_prcp.visible = false; //ivw_prcp3.visible = false;
  3228. import_prcp.visible = false; //imp_prcp.visible = false;
  3229. grp_biz.btn_detail_tab.tabindex = 2; //btn_outline_tab.selected = true;
  3230. grp_biz.ivw_outline.visible = true;
  3231. grp_biz.ivw_detail.visible = false;
  3232. }else{ //002:OCS
  3233. grp_biz.btn_detail_tab.tabindex = 1; //btn_action_tab.selected = true;
  3234. grp_biz.ivw_outline.visible = false;
  3235. grp_biz.ivw_detail.visible = false;
  3236. import_prcp.visible = true; //imp_prcp.visible = true;
  3237. }
  3238. }
  3239. ds_temp1_refresh_obj.setColumn(0,"change_gps", "Y");
  3240. sysf_trace("초기화 중간2"
  3241. + " / defaultTabNode : " + defaultTabNode
  3242. );
  3243. //(2-1) 환경설정 정보에 의해 초기 탭 달리 지정/조회
  3244. if( !utlf_isNull(defaultTabNode) ){
  3245. if( defaultTab == "001" || (defaultTab == "002" && cpgflagcd == "01") ){
  3246. loadFormTab = "D";
  3247. if( grp_biz.ivw_detail.url != "emr_cpgxp::SPMMP02200_DetailView.xfdl" ){
  3248. grp_biz.ivw_detail.url = "emr_cpgxp::SPMMP02200_DetailView.xfdl";
  3249. }else{
  3250. grp_biz.ivw_detail.fInitialize(); //@맨 마지막에 기록지 로딩
  3251. }
  3252. if( grp_biz.ivw_outline.url == "emr_cpgxp::SPMMP01900_OutlineView.xfdl" ) {
  3253. ds_temp1_refresh_obj.setColumn(0,"change_outline", "Y");
  3254. }
  3255. } else if ( defaultTab == "003" || (defaultTab == "002" && cpgflagcd == "02") ){
  3256. loadFormTab = "O";
  3257. if( grp_biz.ivw_outline.url != "emr_cpgxp::SPMMP01900_OutlineView.xfdl" ){
  3258. grp_biz.ivw_outline.url = "emr_cpgxp::SPMMP01900_OutlineView.xfdl";
  3259. }else{
  3260. fInitializeOutline(); //@맨 마지막에 기록지 로딩
  3261. }
  3262. }
  3263. }else{ //(2-2) 환경설정 정보가 없으면, CP-환자계획표, CPG-outline으로 지정/조회
  3264. if( cpgflagcd == "01" ){ //(1) CP이면, 환자계획표(default)
  3265. loadFormTab = "D";
  3266. if( grp_biz.ivw_detail.url != "emr_cpgxp::SPMMP02200_DetailView.xfdl" ){
  3267. grp_biz.ivw_detail.url = "emr_cpgxp::SPMMP02200_DetailView.xfdl";
  3268. }else{
  3269. grp_biz.ivw_detail.fInitialize(); //@맨 마지막에 기록지 로딩
  3270. }
  3271. if( grp_biz.ivw_outline.url == "emr_cpgxp::SPMMP01900_OutlineView.xfdl" ) {
  3272. ds_temp1_refresh_obj.setColumn(0,"change_outline", "Y");
  3273. }
  3274. grp_biz.grp_prcp.ivw_prcp2.visible = false;
  3275. // import_prcp.div_all.Tab_prcp.visible = false; //ivw_prcp3.visible = false;
  3276. import_prcp.visible = false;
  3277. grp_biz.btn_detail_tab.tabindex = 0; //btn_detail_tab.selected = true;
  3278. grp_biz.ivw_detail.visible = true;
  3279. grp_biz.ivw_outline.visible = false;
  3280. }else{ //(2) CPG이면, outline(default)
  3281. loadFormTab = "O";
  3282. if( grp_biz.ivw_outline.url != "emr_cpgxp::SPMMP01900_OutlineView.xfdl" ){
  3283. grp_biz.ivw_outline.url = "emr_cpgxp::SPMMP01900_OutlineView.xfdl";
  3284. }else{
  3285. fInitializeOutline(); //@맨 마지막에 기록지 로딩
  3286. }
  3287. grp_biz.grp_prcp.ivw_prcp2.visible = false;
  3288. // import_prcp.div_all.Tab_prcp.visible = false; //ivw_prcp3.visible = false;
  3289. import_prcp.visible = false;
  3290. grp_biz.btn_detail_tab.tabindex = 2; //btn_outline_tab.selected = true;
  3291. grp_biz.ivw_outline.visible = true;
  3292. grp_biz.ivw_detail.visible = false;
  3293. }
  3294. }
  3295. //미완성처방이 존재하면 미완성처방 탭이 선택되어 조회 후 영역 넒어져야 함 (미완성 iviewer 초기화) (2008.11.08 JJE)
  3296. if( invalPrcpYN == "Y" ){
  3297. // model.toggle("incompletion_tab");
  3298. // btn_saveincomplprcp.selected = true;
  3299. grp_biz.swt_formatt.tabindex = 1;
  3300. fGetErrPrcpList();
  3301. fCase2ViewMode();
  3302. }else{
  3303. if( grp_biz.swt_formatt.tabindex != 0 ) {
  3304. // model.toggle("att_tab");
  3305. // btn_formatt.selected = true;
  3306. grp_biz.swt_formatt.tabindex = 0
  3307. grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.url = "";
  3308. grp_biz.btn_savecomplprcp.visible = false;
  3309. fNomalViewMode();
  3310. }
  3311. ds_send_reqdata.clear();
  3312. }
  3313. }
  3314. }
  3315. /****************************************************************************************
  3316. * Function : fSizeControl
  3317. * Description : Outline View 화면의 사이즈를 조정한다.
  3318. * Argument :
  3319. * return type :
  3320. * Creator :
  3321. ****************************************************************************************/
  3322. function fSizeControl(){
  3323. var mon = sysf_getCurrentMonitorNumber();
  3324. //뷰어 영역
  3325. //grp_biz.ivw_outline.position.width = 1280;
  3326. //grp_biz.ivw_outline.position.height = 766;
  3327. import_prcp.div_all.position.width = 1206;
  3328. //import한 처방 영역
  3329. import_prcp.div_all.grd_diaglist.position.width = 523-2;
  3330. import_prcp.div_all.Tab_prcp.visible = false;
  3331. import_prcp.div_all.Div00.position.width = 1207-2;
  3332. import_prcp.div_all.btn_undo.position.left = 1006-1;
  3333. import_prcp.div_all.btn_tempsave.position.left = 1074-1;
  3334. import_prcp.div_all.btn_prcpsave.position.left = 1141-1;
  3335. //처방이동 버튼 위치 이동
  3336. import_prcp.div_all.Button01.position.left = 937+79-1;
  3337. import_prcp.div_all.Button02.position.left = 965+79-1;
  3338. // line4.attribute("x2") = 1198 -2;
  3339. // line5.attribute("x2") = 1207 -2;
  3340. // ivw_prcp.attribute("height") = 0;
  3341. grp_biz.grp_prcp.ivw_prcp2.position.top = 142;
  3342. grp_biz.grp_prcp.ivw_prcp2.position.height = 623;
  3343. // ivw_prcp3.attribute("top") = 142;
  3344. // ivw_prcp3.attribute("height") = 623;
  3345. import_prcp.div_all.Tab_prcp.tabindex = 1; // 전처방탭
  3346. import_prcp.div_all.grd_prcplist.position.top = 148;
  3347. import_prcp.div_all.grd_prcplist.position.height= 617;
  3348. import_prcp.div_all.grd_prcplist.position.width = 822;
  3349. }
  3350. /****************************************************************************************
  3351. * Function : fCpSetting
  3352. * Description : 처방창 및 본 창을 닫는다
  3353. * Argument :
  3354. * return type :
  3355. * Creator :
  3356. ****************************************************************************************/
  3357. function fCpSetting(){
  3358. //처방 초기화 시 환자 session 정보 받으므로 중복 작업임, pid==nill일때만 처리하도록 수정 (2008.09.29)
  3359. var pamInfoCvs = sysf_getGlobalVariable("paminfo");
  3360. if( !utlf_isNull(pamInfoCvs) && utlf_isNull(ds_paminfo.getColumn(0,"pid")) ){ //cvs가 null이 아닌 경우에만 처리함.
  3361. ds_paminfo.clearData(); //상단화면 정보 초기화
  3362. var patFlagCvs = sysf_getGlobalVariable("patflag");
  3363. dsf_setCSVToDs("ds_paminfo",pamInfoCvs);
  3364. if(patFlagCvs.length != 0 ){ //cvs가 null이 아닌 경우에만 처리함.
  3365. ds_patflag.clearData(); //상단화면 정보 초기화
  3366. dsf_setCSVToDs("ds_patflag",patFlagCvs);
  3367. }else{
  3368. return false;
  3369. }
  3370. }
  3371. // 전역 변수로 사용
  3372. iAuthflag = ds_temp_getdata.getColumn(0, "authflag");
  3373. iPid = ds_paminfo.getColumn(0, "pid");
  3374. iCretno = ds_paminfo.getColumn(0, "cretno");
  3375. iHngnm = ds_paminfo.getColumn(0, "hngnm");
  3376. iSex = ds_paminfo.getColumn(0, "sex");
  3377. iAge = ds_paminfo.getColumn(0, "age");
  3378. iInsukind = ds_paminfo.getColumn(0, "insukind");
  3379. iSuppkind = ds_paminfo.getColumn(0, "suppkind");
  3380. iIoflag = ds_paminfo.getColumn(0, "ioflag");
  3381. iOrddeptcd = ds_paminfo.getColumn(0, "orddeptcd");
  3382. iPrcpgenrflag = ds_patflag.getColumn(0, "prcpgenrflag");
  3383. if(iPrcpgenrflag == "O"){
  3384. iOrddd = ds_paminfo.getColumn(0, "orddd");
  3385. }else{
  3386. iOrddd = ds_paminfo.getColumn(0, "indd");
  3387. }
  3388. iOrddeptnm = ds_paminfo.getColumn(0, "orddeptnm");
  3389. iRoomcd = ds_paminfo.getColumn(0, "roomcd");
  3390. var appstepstat = ds_temp1_getdata.getColumn(0, "appstepstatflag"); //instance1.selectSingleNode("/root/temp1/getdata/appstepstatflag");
  3391. if( !utlf_isNull(appstepstat) && appstepstat == "i"){
  3392. // 20200319 김현석, 미래 CP 인 경우 날짜 확인, 20200310998
  3393. //dsf_makeValue(ds_temp1_getdata, "appdd", "string", utlf_getCurrentDate()); //model.makeValue("/root/temp1/getdata/appdd", getCurrentDate());
  3394. dsf_makeValue(ds_temp1_getdata, "appdd", "string", fGetAppdd()); //model.makeValue("/root/temp1/getdata/appdd", getCurrentDate());
  3395. return true; //선택(신규)
  3396. }else{ //기존 진행중인 CP
  3397. //cp가 drop되지 않고, 진행중이거나 정상종료 상태이면서, 퇴원 이전 상태이면 유효한 CP.
  3398. //퇴원한 상태이거나 drop한 경우 무효 CP
  3399. ds_send_reqdata.clear();
  3400. bCPPatient = false;
  3401. ds_temp1_rsltgetdata.clear();
  3402. dsf_makeValue(ds_send_reqdata, "pid", "string", iPid); // model.makeValue("/root/send/reqdata/pid", iPid);
  3403. dsf_makeValue(ds_send_reqdata, "cretno", "string", iCretno); // model.makeValue("/root/send/reqdata/cretno",iCretno);
  3404. dsf_makeValue(ds_send_reqdata, "orddd", "string", iOrddd); // model.makeValue("/root/send/reqdata/orddd", iOrddd);
  3405. dsf_makeValue(ds_send_reqdata, "prcpgenrflag", "string", iIoflag); // model.makeValue("/root/send/reqdata/prcpgenrflag",iIoflag);
  3406. //CP가 유효한지를 조회한다 (최초 선택 시(appstat=0), 조회된 데이터 없음!)
  3407. var oParam = {};
  3408. oParam.id = "TRMMP00807";
  3409. oParam.service = "prcpbaseapp.CpMngt";
  3410. oParam.method = "reqGePattValidity";
  3411. oParam.inds = "req=ds_send_reqdata";
  3412. oParam.outds = "ds_temp1_rsltgetdata=getdata ds_inptdata=inptdata";
  3413. oParam.async = false;
  3414. oParam.callback = "cf_TRMMP00807";
  3415. tranf_submit(oParam);
  3416. }
  3417. }
  3418. /****************************************************************************************
  3419. * Function : fInitialize
  3420. * Description : 처방창 및 본 창을 닫는다
  3421. * Argument :
  3422. * return type :
  3423. * Creator :
  3424. ****************************************************************************************/
  3425. function fInitialize() {
  3426. //검색창에 의해 화면이 로딩되었다면, CPG 정보를 조회한다.
  3427. var saveflag = ds_temp1_getdata.getColumn(0,"saveasflag");
  3428. // var node = instance1.selectSingleNode("/root/temp1/getdata");
  3429. // var nodeList = node.childNodes;
  3430. var node = ds_temp1_getdata;
  3431. var nodeList = ds_temp1_getdata;
  3432. // if(nodeList.length > 0){
  3433. if(nodeList.rowcount > 0){
  3434. var initCpgAppNo = ds_temp1_getdata.getColumn(0,"cpgappno");
  3435. dsf_makeValue(ds_temp1_getdata,"getformyn","string","Y");
  3436. dsf_makeValue(ds_temp1_getdata,"appyn" ,"string","Y");
  3437. if( utlf_isNull(initCpgAppNo) || initCpgAppNo == "0" ){
  3438. dsf_makeValue(ds_temp1_getdata,"histjoinyn","string","N");
  3439. }else{
  3440. dsf_makeValue(ds_temp1_getdata,"histjoinyn","string","Y");
  3441. }
  3442. dsf_setDefaultVal(ds_temp1_getdata, "appyn:N,histjoinyn:Y");
  3443. var oParam = {};
  3444. oParam.id = "TRMQP00602";
  3445. oParam.service = "prcpbaseapp.CpMngt";
  3446. oParam.method = "reqGetCpgAllInfo";
  3447. oParam.inds = "req=ds_temp1_getdata";
  3448. oParam.outds = "ds_temp1_trmqp_rslt_masterinfo=masterinfo "
  3449. + "ds_temp1_trmqp_rslt_diaglist=diaglist "
  3450. + "ds_temp1_trmqp_rslt_oplist=oplist "
  3451. + "ds_temp1_trmqp_rslt_cclist=cclist "
  3452. + "ds_temp1_trmqp_rslt_exclist=exclist "
  3453. + "ds_temp1_trmqp_rslt_droplist=droplist "
  3454. + "ds_temp1_trmqp_rslt_attach=attach "
  3455. + "ds_temp1_trmqp_rslt_list=list "
  3456. + "ds_temp1_trmqp_rslt_indexlist=indexlist "
  3457. + "ds_temp1_trmqp_rslt_steplist=steplist "
  3458. + "ds_temp1_trmqp_rslt_decisionlist=decisionlist "
  3459. + "ds_temp1_trmqp_rslt_formlist=formlist "
  3460. + "ds_temp1_trmqp_rslt_sortedsteplist=sortedsteplist "
  3461. + "ds_temp1_trmqp_rslt_mntrlist=mntrlist "
  3462. + "ds_temp1_trmqp_rslt_limheaderinfo=limheaderinfo "
  3463. + "ds_temp1_trmqp_rslt_inqrheader=inqrheader "
  3464. + "ds_temp1_trmqp_rslt_inqranswer=inqranswer "
  3465. + "ds_temp1_trmqp_rslt_deptlist=deptlist";
  3466. oParam.async = false;
  3467. oParam.callback = "cf_TRMQP00602";
  3468. tranf_submit(oParam);
  3469. // 포맷 맞추기
  3470. dsf_setTypeFormat(ds_temp1_trmqp_rslt_diaglist, "detlinfoseq:INT");
  3471. dsf_setTypeFormat(ds_temp1_trmqp_rslt_oplist, "detlinfoseq:INT");
  3472. dsf_setTypeFormat(ds_temp1_trmqp_rslt_cclist, "detlinfoseq:INT");
  3473. dsf_setTypeFormat(ds_temp1_trmqp_rslt_attach, "detlinfoseq:INT");
  3474. dsf_setTypeFormat(ds_temp1_trmqp_rslt_list, "detlinfoseq:INT");
  3475. dsf_setTypeFormat(ds_temp1_trmqp_rslt_indexlist, "indxno:INT^supindxno:INT^indxrefseq:INT");
  3476. // 디폴트 설정
  3477. dsf_setDefaultVal(ds_temp1_trmqp_rslt_masterinfo, "cpgtypecd:D,valusgeyn:N");
  3478. dsf_setDefaultVal(ds_temp1_trmqp_rslt_inqrheader, "inqrstatcd:-");
  3479. if(arErrorCode.pop("TRMQP00602") > -1){ //master 조회
  3480. //master copy
  3481. ds_main_masterinfo_info.copyData(ds_temp1_trmqp_rslt_masterinfo);
  3482. //step 정보를 셋팅한다.
  3483. nodeList = ds_temp1_trmqp_rslt_steplist;
  3484. if(nodeList.rowcount > 0){
  3485. // model.removeNodeset("/root/main/steplist/info");
  3486. // model.removeNodeset("/root/main/decisionlist/info");
  3487. //??? outlineview 의 인스턴스?
  3488. ds_main_steplist_info.clear();
  3489. ds_main_decisionlist_info.clear();
  3490. //action step
  3491. // var stepCSV = getNodeListCSV(nodeList);
  3492. // setCSVToNode("/root/main/steplist", stepCSV, "info");
  3493. var stepCSV = dsf_getDsCSV(nodeList);
  3494. dsf_setCSVToDs("ds_main_steplist_info", stepCSV);
  3495. //decision step
  3496. //nodeList = instance1.selectNodes("/root/temp1/trmqp_rslt/decisionlist");
  3497. nodeList = ds_temp1_trmqp_rslt_decisionlist;
  3498. if(nodeList.rowcount > 0){
  3499. // var dcsCSV = getNodeListCSV(nodeList);
  3500. // setCSVToNode("/root/main/decisionlist", dcsCSV, "info");
  3501. var dcsCSV = dsf_getDsCSV(nodeList);
  3502. dsf_setCSVToDs("ds_main_decisionlist_info", dcsCSV);
  3503. }
  3504. //ivw_outline 초기화 -> 분리
  3505. }
  3506. //전역변s수 셋팅..
  3507. cpgno = ds_main_masterinfo_info.getColumn(0,"cpgno");
  3508. cpghistseq = ds_main_masterinfo_info.getColumn(0,"cpghistseq");
  3509. cpgflagcd = ds_main_masterinfo_info.getColumn(0,"cpgflagcd");
  3510. swimlineno = ds_main_masterinfo_info.getColumn(0,"swimlineno");
  3511. if(cpgflagcd == "01"){
  3512. cpgFlagNm = "CP";
  3513. settypecd = "W";
  3514. //속성 copy
  3515. ds_main_attfileinfo_attach.copyData(ds_temp1_trmqp_rslt_attach);
  3516. }else if(cpgflagcd == "02"){
  3517. cpgFlagNm = "CPG";
  3518. settypecd = "G";
  3519. //속성 copy
  3520. ds_temp1_trmqp_rslt_mntrlist.filter("cpgmntrflag=='M'");
  3521. dsf_createDs("ds_temp_mntrlist");
  3522. ds_temp_mntrlist.copyData(ds_temp1_trmqp_rslt_mntrlist,true);
  3523. var mntrNodes = ds_temp_mntrlist;
  3524. ds_temp1_trmqp_rslt_mntrlist.filter("");
  3525. var slipNo = "";
  3526. var alertCnts = "";
  3527. ds_main_mntrinfo_mntrlist.clear();
  3528. ds_main_mntrdetlinfo_mntrdetllist.clear();
  3529. ds_main_inqrinfo_inqrheader.clear();
  3530. ds_main_limtminfo_limheaderinfo.clear();
  3531. if( mntrNodes.rowcount > 0 ){
  3532. for(var m = 0 ; m < mntrNodes.rowcount ; m++){
  3533. // var node = mntrNodes.item(m);
  3534. // if( node.selectSingleNode("slipno").text != slipNo ){
  3535. if( mntrNodes.getColumn(m,"slipno") != slipNo ){
  3536. var mSlipNo = mntrNodes.getColumn(m,"slipno");
  3537. var mAlertCnts = mntrNodes.getColumn(m,"alertcnts");
  3538. // copyNodeListType("/root/main/mntrinfo" , "/root/temp1/trmqp_rslt/mntrlist[slipno='"+mSlipNo.text+"' and alertcnts='"+mAlertCnts.text+"']", "after", model, model);
  3539. ds_temp1_trmqp_rslt_mntrlist.filter("slipno=='"+mSlipNo+"' && alertcnts=='"+mAlertCnts+"'");
  3540. dsf_createDs("ds_temp_mntrlist2");
  3541. ds_temp_mntrlist2.copyData(ds_temp1_trmqp_rslt_mntrlist,true);
  3542. dsf_copyDs(ds_main_mntrinfo_mntrlist,ds_temp_mntrlist2,"after");
  3543. ds_temp1_trmqp_rslt_mntrlist.filter("");
  3544. dsf_deleteDs("ds_temp_mntrlist2");
  3545. }else{
  3546. // model.setValue(mAlertCnts, mAlertCnts.text + "\n" + node.selectSingleNode("alertcnts").text);
  3547. mntrNodes.setColumn(m,"alertcnts",mAlertCnts + "\n" + mntrNodes.getColumn(m,"alertcnts"));
  3548. }
  3549. slipNo = mSlipNo;
  3550. alertCnts = mAlertCnts;
  3551. }
  3552. }
  3553. dsf_copyDs(ds_main_inqrinfo_inqrheader ,ds_temp1_trmqp_rslt_inqrheader ,"replace");
  3554. dsf_copyDs(ds_main_limtminfo_limheaderinfo ,ds_temp1_trmqp_rslt_limheaderinfo ,"replace");
  3555. // grd_monitoringlist.refresh(); //적용 모니터링 정보를 저장하기 위해, 인스턴스에 반영한다.
  3556. // grd_monitoringinfo.refresh();
  3557. // grd_inqr.refresh();
  3558. dsf_deleteDs("ds_temp_mntrlist");
  3559. }
  3560. fcstinhospdayno = ds_main_masterinfo_info.getColumn(0,"fcstinhospdayno");
  3561. if( utlf_isNull(fcstinhospdayno) ) fcstinhospdayYN = "N";
  3562. }
  3563. }
  3564. }
  3565. /****************************************************************************************
  3566. * Function : cf_TRMQP00602
  3567. * Description : TRMQP00602 콜백함수
  3568. * Argument :
  3569. * return type :
  3570. * Creator :
  3571. ****************************************************************************************/
  3572. function cf_TRMQP00602(sSvcId, nErrorCode, sErrorMsg) {
  3573. arErrorCode.push(sSvcId, nErrorCode);
  3574. // ds_temp1_trmqp_rslt_masterinfo.updateColID("m","status");
  3575. //
  3576. // ds_temp1_trmqp_rslt_diaglist.updateColID("termnm","termengnm");
  3577. // ds_temp1_trmqp_rslt_diaglist.updateColID("detlinfoflagcd","termflag");
  3578. //
  3579. // ds_temp1_trmqp_rslt_oplist.updateColID("termnm","termengnm");
  3580. // ds_temp1_trmqp_rslt_oplist.updateColID("detlinfoflagcd","termflag");
  3581. //
  3582. // ds_temp1_trmqp_rslt_cclist.updateColID("termnm","termengnm");
  3583. // ds_temp1_trmqp_rslt_cclist.updateColID("detlinfoflagcd","termflag");
  3584. //
  3585. // ds_temp1_trmqp_rslt_exclist.updateColID("termcd","valuno");
  3586. // ds_temp1_trmqp_rslt_exclist.updateColID("userid","histseq");
  3587. // ds_temp1_trmqp_rslt_exclist.updateColID("valunm","termnm");
  3588. // ds_temp1_trmqp_rslt_exclist.updateColID("flag" ,"detlinfoflagcd");
  3589. //
  3590. // ds_temp1_trmqp_rslt_droplist.updateColID("termcd","valuno");
  3591. // ds_temp1_trmqp_rslt_droplist.updateColID("userid","histseq");
  3592. // ds_temp1_trmqp_rslt_droplist.updateColID("valunm","termnm");
  3593. // ds_temp1_trmqp_rslt_droplist.updateColID("flag" ,"detlinfoflagcd");
  3594. //
  3595. // ds_temp1_trmqp_rslt_list.updateColID("detlinfoflagcd","flag");
  3596. //
  3597. // fMakeCopyColumn(ds_temp1_trmqp_rslt_inqrheader,"title","inqrnm");
  3598. //
  3599. // ds_temp1_trmqp_rslt_deptlist.updateColID("termcd","deptcd");
  3600. // ds_temp1_trmqp_rslt_deptlist.updateColID("termnm","deptnm");
  3601. }
  3602. /****************************************************************************************
  3603. * Function : fGetStepPathList
  3604. * Description : 스텝경로 정보를 조회한다.
  3605. * Argument :
  3606. * return type :
  3607. * Creator :
  3608. ****************************************************************************************/
  3609. function fGetStepPathList(){
  3610. //steppath 저장 or 조회
  3611. if( ds_temp1_getdata.getColumn(0,"appstepstatflag") != null ){ // !utlf_isNull(ds_temp1_getdata.getColumn(0,"appstepstatflag")) TF도 빈값이지만 != null 걸리지 않음
  3612. if( ds_temp1_getdata.getColumn(0,"appstepstatflag") == "i" ){
  3613. appstepstatflag = "i"; //서식 로딩을 막기 위한 처리( 최초 적용의 경우 처방창에서 먼저 호출해주었으므로 재호출 막음)
  3614. fSaveAppStepStus(); //cp적용(최초)일 경우, 적용cp스텝상태관리 테이블에 저장이 필요.
  3615. //fPrcpCallPatList(); //진료대상자리스트의 cp여부를 Y로 한다.
  3616. ds_temp1_getdata.setColumn(0,"appstepstatflag", ""); //다른 cp환자를 선택할 경우를 위해 값 초기화
  3617. }else{
  3618. //적용 시 or 적용 후... 스텝별 처방일자가 잘못 셋팅되는 경우가 있어 appstepstatflag "u"->"" 로 변경 (2010.03.09 JJE)
  3619. ds_temp1_getdata.setColumn(0,"appstepstatflag", ""); //처음, 로딩시, 수진정보 및 처방기준일이 달라졌는지 체크 후, update할 수 있도록, flag를 보낸다.
  3620. dsf_makeValue(ds_temp1_getdata,"orddd" ,"string", iOrddd);
  3621. dsf_makeValue(ds_temp1_getdata,"prcpgenrflag" ,"string", iPrcpgenrflag);
  3622. dsf_makeValue(ds_temp1_getdata,"cretno" ,"string", iCretno);
  3623. dsf_makeValue(ds_temp1_getdata,"checkyn" ,"string", "Y"); //step path만 조회하고, MMPHSSTT(prcpdd,수진정보) update 로직 Skip하는 flag
  3624. //미완성처방 존재 유무 조회를 위해, 환자내원정보 추가 (2008.11.08)
  3625. dsf_makeValue(ds_temp1_getdata,"pid" ,"string", iPid);
  3626. dsf_makeValue(ds_temp1_getdata,"srchcond" ,"string", "1"); //조회조건 1:로딩 및 재조회, 2:적용 후 재조회, 3:퇴원예고시 문진조회 (20090.5.19 JJE)
  3627. dsf_setDefaultVal(ds_temp1_getdata, "appstepstatflag:s,checkyn:N,srchcond:1");
  3628. var oParam = {};
  3629. oParam.id = "TRMMP00803";
  3630. oParam.service = "prcpbaseapp.CpMngt";
  3631. oParam.method = "reqGetAppStepStat";
  3632. oParam.inds = "req=ds_temp1_getdata";
  3633. oParam.outds = "ds_main_steppath_info=info ds_main_steppath_appinfo=appinfo ds_main_steppath_mntrappinfo=mntrappinfo ds_main_steppath_inqrappinfo=inqrappinfo";
  3634. oParam.async = false;
  3635. oParam.callback = "cf_TRMMP00803";
  3636. tranf_submit(oParam);
  3637. // submit("TRMMP00803", false); //steppath 조회
  3638. //초기 적용 시, appstat=0 이므로, 이전에 수행한 TRMMP00807 에서는 cpgappno(appstat) 0건 조회, 여기(TRMMP00803)에서 상태값을 받아옴.
  3639. if( !utlf_isNull(ds_main_steppath_appinfo.getColumn(0,"appstat")) ){
  3640. dsf_makeValue(ds_temp1_getdata,"appstat","string",ds_main_steppath_appinfo.getColumn(0,"appstat"));
  3641. invalPrcpYN = ds_main_steppath_appinfo.getColumn(0,"invalprcpyn"); //2008.11.08
  3642. ds_main_steppath_appinfo.clear();
  3643. }
  3644. fResetStepFlag(); //cpg는 s/e 지점을 진행상태에 따라 재정의한다. (2009.02.17)
  3645. // model.copyNode("/root/main/sortedsteplist", "/root/main/steppath");
  3646. ds_main_sortedsteplist_info.copyData(ds_main_steppath_info)
  3647. ds_main_sortedsteplist_appinfo.copyData(ds_main_steppath_appinfo);
  3648. }
  3649. }
  3650. //CP 적용상태는 10(진행중) 이지만, step1의 적용상태가 10(초기) 상태이면, 아직 최초 처방발행이 안된 CP 이므로, appStat 의 값을 00(적용초기) 상태로 바꿔준다
  3651. //외래에서 입원 전환시, D0 CP 발행 안한 상태에서
  3652. appStat = ds_temp1_getdata.getColumn(0,"appstat");
  3653. appNo_SMMMO00110 = ds_temp1_getdata.getColumn(0,"cpgappno");
  3654. var node = ds_main_steppath_info;
  3655. if( !utlf_isNull(node) ){
  3656. //퇴원예정일 파라메터로 설정해줌 (퇴원예고 버튼 클릭 시, 파라메터 값 참조함)
  3657. var dshPrcpNode = ds_main_steppath_info.getColumn(ds_main_steppath_info.findRow("decirflag","D"),"prcpdd");
  3658. // if( dshPrcpNode != null && !isNull(model.getValue(dshPrcpNode)) ) {
  3659. if( !utlf_isNull(dshPrcpNode) ) {
  3660. frmf_setParameter("SMMMP00800_dclrdd", dshPrcpNode);
  3661. }
  3662. }
  3663. //취소/Drop버튼
  3664. if( cpgflagcd == "02" ){
  3665. //grp_btn.btn_drop.position.left = 1034;
  3666. //grp_btn.btn_drop.position.width = 56;
  3667. //grp_btn.btn_drop.position.left = grp_btn.btn_close.position.left - 116;
  3668. //grp_btn.btn_drop.position.width = 56;
  3669. grp_btn.btn_drop.position.left = grp_btn.btn_allInfoSave.position.left - 58;
  3670. grp_btn.btn_drop.position.width = 56;
  3671. grp_btn.btn_drop.text = "종료";
  3672. }else if( cpgflagcd == "01" && appStat != "00" ){
  3673. //grp_btn.btn_drop.class = "btn4";
  3674. //grp_btn.btn_drop.position.left = 1022;
  3675. //grp_btn.btn_drop.position.width = 68;
  3676. //grp_btn.btn_drop.position.left = grp_btn.btn_close.position.left - 116;
  3677. //grp_btn.btn_drop.position.width = 56;
  3678. grp_btn.btn_drop.position.left = grp_btn.btn_allInfoSave.position.left - 58;
  3679. grp_btn.btn_drop.position.width = 56;
  3680. grp_btn.btn_drop.text = "Drop";
  3681. }
  3682. }
  3683. /****************************************************************************************
  3684. * Function : fSaveAppStepStus
  3685. * Description : 스텝정보를 저장한다.
  3686. * Argument :
  3687. * return type :
  3688. * Creator :
  3689. ****************************************************************************************/
  3690. function fSaveAppStepStus(){
  3691. //스텝 영역의 정보들을 구성한다.
  3692. ds_send_savedata.clear();
  3693. ds_send_savedata.copyData(ds_temp1_getdata);
  3694. dsf_makeValue(ds_send_savedata,"decistepyn" ,"string", "");
  3695. dsf_makeValue(ds_send_savedata,"m" ,"string", "i");
  3696. dsf_makeValue(ds_send_savedata,"cpgflagcd" ,"string", ds_send_savedata.getColumn(0,"prtlflagcd"));
  3697. dsf_makeValue(ds_send_savedata,"orddeptcd" ,"string", ds_paminfo.getColumn(0,"orddeptcd")); //iOrddeptcd
  3698. var initCpgAppNo = ds_temp1_getdata.getColumn(0,"cpgappno");
  3699. if( utlf_isNull(initCpgAppNo) || initCpgAppNo == "0" ){
  3700. dsf_makeValue(ds_temp1_getdata,"histjoinyn","string","N");
  3701. }else{
  3702. dsf_makeValue(ds_temp1_getdata,"histjoinyn","string","Y");
  3703. }
  3704. ds_send_savedata.updateColID("ioflag","ordtype");
  3705. dsf_setDefaultVal(ds_send_savedata, "appyn:N,histjoinyn:Y");
  3706. var oParam = {};
  3707. oParam.id = "TXMMP00802";
  3708. oParam.service = "prcpmngtapp.CPPrcpMngt";
  3709. oParam.method = "reqExeAppStepStat";
  3710. oParam.inds = "steplist=ds_main_steplist_info decisionlist=ds_main_decisionlist_info req=ds_send_savedata";
  3711. oParam.outds = "ds_main_steppath_info=info ds_main_steppath_appinfo=appinfo";
  3712. oParam.async = false;
  3713. oParam.callback = "cf_TXMMP00802";
  3714. tranf_submit(oParam);
  3715. if( arErrorCode.pop("TXMMP00802") > -1 ){
  3716. if( !utlf_isNull(ds_main_steppath_appinfo.getColumn(0,"cpgappno")) ){
  3717. dsf_makeValue(ds_temp1_getdata,"cpgappno","string",ds_main_steppath_appinfo.getColumn(0,"cpgappno"));
  3718. dsf_makeValue(ds_temp1_getdata,"appstat" ,"string",ds_main_steppath_appinfo.getColumn(0,"appstat"));
  3719. ds_main_steppath_appinfo.clear();
  3720. }
  3721. fGetAppScopList();
  3722. }
  3723. // model.copyNode("/root/main/sortedsteplist", "/root/main/steppath");
  3724. // model.removeNodeset("/root/send/savedata");
  3725. ds_main_sortedsteplist_info.copyData(ds_main_steppath_info);
  3726. ds_main_sortedsteplist_appinfo.copyData(ds_main_steppath_appinfo);
  3727. ds_send_savedata.clear();
  3728. }
  3729. /****************************************************************************************
  3730. * Function : cf_TXMMP00802
  3731. * Description : TXMMP00802 콜백함수
  3732. * Argument :
  3733. * return type :
  3734. * Creator :
  3735. ****************************************************************************************/
  3736. function cf_TXMMP00802(sSvcId, nErrorCode, sErrorMsg) {
  3737. arErrorCode.push(sSvcId, nErrorCode);
  3738. fMakeCopyColumn(ds_main_steppath_info,"prcpdd","orgprcpdd");
  3739. dsf_setDefaultVal(ds_main_steppath_info, "stepstat:10,savestatus:-,m:-");
  3740. }
  3741. /****************************************************************************************
  3742. * Function : fGetAppScopList
  3743. * Description : CPG인 경우 적용범위 나열
  3744. * Argument : flag - CP만 적용하려고 할 경우 W 를 받
  3745. * return type :
  3746. * Creator :
  3747. ****************************************************************************************/
  3748. function fGetAppScopList( flag ){
  3749. if( utlf_isNull(flag) ) flag = "G";
  3750. ds_main.setColumn(0,"appscopmode",flag);
  3751. if( cpgflagcd == "02" ){
  3752. var pathScopList = null;
  3753. dsf_createDs("ds_temp_steppath_info");
  3754. if ( flag != "W" ) {
  3755. ds_main_steppath_info.filter("settypecd!='W'");
  3756. }else{
  3757. ds_main_steppath_info.filter("settypecd!='G'");
  3758. }
  3759. ds_temp_steppath_info.copyData(ds_main_steppath_info,true);
  3760. pathScopList = ds_temp_steppath_info;
  3761. ds_main_steppath_info.filter("");
  3762. var prtnYN ="N"; //출력여부
  3763. var prtnCnts = ""; //출력내용
  3764. for (var i = 0 ; i < pathScopList.rowcount ; i++) {
  3765. // var node = pathScopList.item(i);
  3766. var startendflagNode = pathScopList.getColumn(i,"startendflag");
  3767. var stepnmNode = pathScopList.getColumn(i,"stepnm");
  3768. var settypecdNode = pathScopList.getColumn(i,"settypecd");
  3769. if ( flag != "W" && settypecdNode == "W" ){ //CP영역은 자동 범위 지정에서 제외 (2010.06.26 JJE)
  3770. break;
  3771. }else if ( flag == "W" && settypecdNode == "G" ){
  3772. break;
  3773. }
  3774. if ( startendflagNode == "S" ) prtnYN = "Y";
  3775. if( prtnYN == "Y" ){
  3776. if ( !utlf_isNull(prtnCnts) ) prtnCnts = prtnCnts + " -> ";
  3777. prtnCnts = prtnCnts + stepnmNode;
  3778. }
  3779. if ( startendflagNode == "E" ){
  3780. if( prtnYN != "Y" ) prtnCnts = prtnCnts + stepnmNode;
  3781. break;
  3782. }
  3783. }
  3784. dsf_deleteDs("ds_temp_steppath_info");
  3785. //if( isNull(prtnCnts) ) prtnCnts = "적용범위 없음 (CPG 프로토콜 발행을 하시려면 Outline View에서 범위를 지정하십시오.)";
  3786. ds_main.setColumn("appscoplist", prtnCnts);
  3787. // cap_appscoplist.refresh();
  3788. }
  3789. }
  3790. /****************************************************************************************
  3791. * Function : cf_TRMMP00803
  3792. * Description : TRMMP00803 콜백함수
  3793. * Argument :
  3794. * return type :
  3795. * Creator :
  3796. ****************************************************************************************/
  3797. function cf_TRMMP00803(sSvcId, nErrorCode, sErrorMsg) {
  3798. arErrorCode.push(sSvcId, nErrorCode);
  3799. fMakeCopyColumn(ds_main_steppath_info,"prcpdd","orgprcpdd");
  3800. dsf_setDefaultVal(ds_main_steppath_info, "stepstat:10,savestatus:-,m:-");
  3801. }
  3802. /****************************************************************************************
  3803. * Function : fMakeCopyColumn
  3804. * Description : 데이터셋 특정컬럼 카피하여 새컬럼 생성
  3805. * Argument : objDs - 대상 Dataset
  3806. * : sColSrc - copy할 column명
  3807. * : sColTgt - make할 column명
  3808. * return type :
  3809. * Creator :
  3810. ****************************************************************************************/
  3811. function fMakeCopyColumn(objDs,sColSrc,sColTgt) {
  3812. for(var i = 0 ; i < objDs.rowcount ; i++) {
  3813. dsf_makeValue(objDs,sColTgt,"string",objDs.getColumn(i,sColSrc),i);
  3814. }
  3815. }
  3816. /****************************************************************************************
  3817. * Function : fResetStepFlag
  3818. * Description : cpg는 s/e 지점을 진행상태에 따라 재정의한다. (2009.02.17)
  3819. * Argument :
  3820. * return type :
  3821. * Creator :
  3822. ****************************************************************************************/
  3823. function fResetStepFlag(){
  3824. if( cpgflagcd == "02" ){
  3825. // var appStatNode = instance1.selectSingleNode("/root/temp1/getdata/appstat");
  3826. if( !utlf_isNull(ds_temp1_getdata.getColumn(0,"appstat")) ) { //cpgflagcd == "02"
  3827. var appStatNo = parseInt(ds_temp1_getdata.getColumn(0,"appstat"));
  3828. ds_main_steppath_info.filter("stepstat=='30'");
  3829. dsf_createDs("ds_temp_steppath_info");
  3830. ds_temp_steppath_info.copyData(ds_main_steppath_info,true);
  3831. ds_main_steppath_info.filter("");
  3832. var allSteps = ds_temp_steppath_info; //instance1.selectNodes("/root/main/steppath/info[stepstat='30']");
  3833. var orgStartStep = ds_main_steppath_info.getColumn(ds_main_steppath_info.findRow("startendflag","S"),"startendflag"); //instance1.selectSingleNode("/root/main/steppath/info[startendflag='S']/startendflag");
  3834. var orgEndStep = ds_main_steppath_info.getColumn(ds_main_steppath_info.findRow("startendflag","E"),"startendflag"); //instance1.selectSingleNode("/root/main/steppath/info[startendflag='E']/startendflag");
  3835. //## 아웃라인에서 StartEndFlag 해제 인스턴스 2010.05.04 KHJ
  3836. var StartStepNode = ds_main_steplist_info.getColumn(ds_main_steplist_info.findRow("startendflag","S"),"startendflag"); //instance1.selectSingleNode("/root/main/steplist/info[startendflag='S']/startendflag");
  3837. ds_main_steplist_info.filter("startendflag=='E'");
  3838. dsf_createDs("ds_temp_steplist_info");
  3839. ds_temp_steplist_info.copyData(ds_main_steplist_info,true);
  3840. ds_main_steplist_info.filter("");
  3841. var EndNodeList = ds_temp_steplist_info;
  3842. //자동으로 Start/End를 지정해주게 되면, OCS에서 추가처방 발행 및 DC 처방 저장 시 함께 저장되므로 무조건 범위를 해제해줌 (2010.04.13)
  3843. if( allSteps.rowcount > 0 || resetAppScopYN == "Y" ){ //시작 안한 경우는 초기 s는 그대로 설정 (2010.05.12 JJE)
  3844. if( !utlf_isNull(orgStartStep) ) ds_main_steppath_info.setColumn(ds_main_steppath_info.findRow("startendflag","S"),"startendflag","");
  3845. if( !utlf_isNull(StartStepNode) ) ds_main_steplist_info.setColumn(ds_main_steplist_info.findRow("startendflag","S"),"startendflag","");
  3846. }
  3847. if( !utlf_isNull(orgEndStep) ) ds_main_steppath_info.setColumn(ds_main_steppath_info.findRow("startendflag","E"),"startendflag","");
  3848. for (var i = 0 ; i < EndNodeList.rowcount ; i++) {
  3849. // 아웃라인에서 StartEndFlag 해제 2010.05.04 KHJ
  3850. // var EndNode = EndNodeList.item(i);
  3851. // var EndFlagNode = EndNode.selectSingleNode("startendflag");
  3852. // if (EndFlagNode != null) model.setValue(EndFlagNode, "");
  3853. if( !utlf_isNull(EndNodeList.getColumn(i,"startendflag")) ) EndNodeList.setColumn(i,"startendflag","");
  3854. }
  3855. fGetAppScopList();
  3856. dsf_deleteDs("ds_temp_steplist_info");
  3857. dsf_deleteDs("ds_temp_steppath_info");
  3858. }
  3859. } //end cpg case
  3860. }
  3861. /****************************************************************************************
  3862. * Function : fGetFormList
  3863. * Description : 서식코드를 조회한다
  3864. * Argument : flag - 서식구분
  3865. * : no - 서식번호
  3866. * return type :
  3867. * Creator :
  3868. ****************************************************************************************/
  3869. function fGetFormList(flag, no){
  3870. var prcpgenrflag = ds_patflag.getColumn(0,"prcpgenrflag");
  3871. var req_pid = ds_paminfo.getColumn(0,"pid");
  3872. ds_send_reqdata.clear();
  3873. dsf_makeValue(ds_send_reqdata,"cpgno" ,"string", ds_main_masterinfo_info.getColumn(0,"cpgno"));
  3874. dsf_makeValue(ds_send_reqdata,"cpghistseq" ,"string", ds_main_masterinfo_info.getColumn(0,"cpghistseq"));
  3875. dsf_makeValue(ds_send_reqdata,"flag" ,"string", flag);
  3876. dsf_makeValue(ds_send_reqdata,"no" ,"string", utlf_transNullToEmpty(no));
  3877. dsf_makeValue(ds_send_reqdata,"cpgappno" ,"string", ds_temp1_getdata.getColumn(0,"cpgappno"));
  3878. dsf_makeValue(ds_send_reqdata,"pid" ,"string", iPid);
  3879. dsf_makeValue(ds_send_reqdata,"cretno" ,"string", iCretno);
  3880. dsf_makeValue(ds_send_reqdata,"ordtype" ,"string", iPrcpgenrflag);
  3881. dsf_makeValue(ds_send_reqdata,"orddd" ,"string", iOrddd);
  3882. //서식 조회 시작-종료일
  3883. var stepCnt = ds_main_steppath_info.rowcount-1;
  3884. var frddNode = ds_main_steppath_info.getColumn(ds_main_steppath_info.findRow("startendflag","S"),"prcpdd");
  3885. var toddNode = ds_main_steppath_info.getColumn(ds_main_steppath_info.findRow("startendflag","E"),"prcpdd");
  3886. if( cpgflagcd == "01" && !utlf_isNull(frddNode) && !utlf_isNull(toddNode) ){
  3887. var frdd = frddNode;
  3888. var todd = toddNode;
  3889. }else{
  3890. if( cpgflagcd == "01" ){
  3891. var frdd = ds_main_steppath_info.getColumn(0,"prcpdd");
  3892. var todd = ds_main_steppath_info.getColumn(stepCnt,"prcpdd");
  3893. }else{
  3894. var frdd = ds_temp1_getdata.getColumn(0,"appdd"); //서식 목록 조회 기간을 CPG 선택일자부터로 수정 2010.05.04 KHJ
  3895. var todd = utlf_getCurrentDate();
  3896. }
  3897. }
  3898. dsf_makeValue(ds_main_formsrchcond,"fromdd" ,"string", frdd);
  3899. dsf_makeValue(ds_main_formsrchcond,"todd" ,"string", todd);
  3900. dsf_makeValue(ds_send_reqdata,"fromdd" ,"string", frdd);
  3901. dsf_makeValue(ds_send_reqdata,"todd" ,"string", todd);
  3902. //CP서식 리스트 및 서식 자동호출 우선순위 조회
  3903. var formcd = "";
  3904. var formrecseq = "";
  3905. var formrecdd = "";
  3906. var oParam = {};
  3907. oParam.id = "TRMMP00801";
  3908. oParam.service = "prcpbaseapp.CpMngt";
  3909. oParam.method = "reqGetAppCpgFormInfo";
  3910. oParam.inds = "req=ds_send_reqdata";
  3911. oParam.outds = "ds_main_formlist_info=info ds_main_formlist_prityinfo=prityinfo";
  3912. oParam.async = false;
  3913. oParam.callback = "cf_TRMMP00801";
  3914. tranf_submit(oParam);
  3915. if(arErrorCode.pop("TRMMP00801") > -1){
  3916. var prityinfoNode = ds_main_formlist_prityinfo;
  3917. if( flag != "R" && prityinfoNode.rowcount > 0 ){ //F:초기화시setting, O:진료기록open, R:서식목록재조회(저장상태refresh)
  3918. //CP 서식 우선순위에 따른, 1순위 서식
  3919. formcd = ds_main_formlist_prityinfo.getColumn(0,"formcd");
  3920. formrecseq = ds_main_formlist_prityinfo.getColumn(0,"formrecseq");
  3921. formrecdd = ds_main_formlist_prityinfo.getColumn(0,"prcpdd");
  3922. sysf_setGlobalVariable("linked_cpformcd" , formcd , "emr");
  3923. sysf_setGlobalVariable("linked_cpformrecseq", formrecseq, "emr");
  3924. if( cpgflagcd == "01" ) sysf_setGlobalVariable("linked_cpformrecdd", formrecdd, "emr");
  3925. else sysf_setGlobalVariable("linked_cpformrecdd", utlf_getCurrentDate(), "emr");
  3926. }
  3927. //서식로더에서 필료한 파라메터 설정 (2010.05.26 JJE)
  3928. //alert("setParam..disppatinfo");
  3929. //if( flag != "O" ) setParameter("disppatinfo", iPid + "▦" + iHngnm + "▦" + iSex+"/"+iAge + "▦" + iOrddeptnm + "▦" + iRoomcd );
  3930. }
  3931. if( flag == "O" ){
  3932. //기록main이 열려있지 않을 경우, 기록main open
  3933. //if( formcd=="" && formrecseq=="" )
  3934. //messageBox("진료기록 메인 화면을 여는 중입니다. \n조회할 서식을 다시 한번", "C002");
  3935. fOpenRecMainWnd();
  3936. }
  3937. }
  3938. /****************************************************************************************
  3939. * Function : cf_TRMMP00801
  3940. * Description : TRMMP00801 콜백함수
  3941. * Argument :
  3942. * return type :
  3943. * Creator :
  3944. ****************************************************************************************/
  3945. function cf_TRMMP00801(sSvcId, nErrorCode, sErrorMsg) {
  3946. arErrorCode.push(sSvcId, nErrorCode);
  3947. }
  3948. /****************************************************************************************
  3949. * Description : 결정스텝을 선택하면 cpg적용환자 테이블 및 이력테이블에 insert 한다.
  3950. * Argument : flag - 서식구분
  3951. * : stepno
  3952. * return type :
  3953. ****************************************************************************************/
  3954. function fInsCPGAppPatInfo(flag, setpno, lnkstepno, swimlineno){
  3955. var nFindRow = ds_main_steppath_info.findRow("startendflag", "S");
  3956. var start = ds_main_steppath_info.getColumn(nFindRow, "stepno");
  3957. nFindRow = ds_main_steppath_info.findRow("startendflag", "E");
  3958. var end = ds_main_steppath_info.getColumn(nFindRow, "stepno");
  3959. var startNo = "";
  3960. var endNo = "";
  3961. if(!utlf_isNull(start)) startNo = start;
  3962. if(!utlf_isNull(end)) endNo = end;
  3963. //스텝 영역의 정보들을 구성한다.
  3964. dsf_createDs("ds_send_savedata_steplist");
  3965. dsf_createDsRow("ds_send_savedata_decisionlist", [{col:"stepno", type:"BIGDECIMAL", size:256, val:""}
  3966. , {col:"deciseq", type:"BIGDECIMAL", size:256, val:""}
  3967. , {col:"lnkstepno", type:"BIGDECIMAL", size:256, val:""}
  3968. , {col:"m", type:"STRING", size:256, val:""}]);
  3969. dsf_createDsRow("ds_send_savedata", [{col:"cpgappno", type:"BIGDECIMAL", size:256, val:ds_temp1_getdata.getColumn(0, "cpgappno")}
  3970. , {col:"cpgflagcd", type:"STRING", size:256, val:""}
  3971. , {col:"appstepstatflag", type:"STRING", size:256, val:"u"}//i: 최초 신규 insert, u10:decision스텝결정 시 update, u20:프로토콜 처방 혹은 실처방 저장 이후(사용안함-,java(basemgr)삭제할것)...
  3972. , {col:"changestartend", type:"STRING", size:256, val:""}
  3973. , {col:"pid", type:"STRING", size:256, val:""}
  3974. , {col:"cretno", type:"STRING", size:256, val:""}
  3975. , {col:"ordtype", type:"STRING", size:256, val:""}
  3976. , {col:"orddd", type:"STRING", size:256, val:""}
  3977. , {col:"orddeptcd", type:"STRING", size:256, val:""}
  3978. , {col:"cpgno", type:"BIGDECIMAL", size:256, val:""}
  3979. , {col:"cpghistseq", type:"BIGDECIMAL", size:256, val:""}
  3980. , {col:"prtlflagcd", type:"STRING", size:256, val:""}
  3981. , {col:"decistepyn", type:"STRING", size:256, val:""}
  3982. , {col:"m", type:"STRING", size:256, val:""}
  3983. , {col:"appyn", type:"STRING", size:256, val:"N"}
  3984. , {col:"histjoinyn", type:"STRING", size:256, val:"Y"}]);
  3985. var header = "stepno▦stepflagcd▦stepmemo▦lnkstepno▦times▦startendflag▦swimlineno▦refseq▦setno▦settypecd▦m▩";
  3986. var data = "";
  3987. if( flag == "D" ){
  3988. ds_send_savedata.setColumn(0, "changestartend", "D"); //Decision
  3989. data = setpno + "▦D▦▦" + lnkstepno + "▦▦▦" + swimlineno + "▦▦▦▦▩"; //현재 decision스탭의 대답 스텝 설정.
  3990. }else if( flag == "A" ){
  3991. ds_send_savedata.setColumn(0, "changestartend", "A"); //Auto Decision
  3992. data = setpno + "▦A▦▦▦▦▦" + swimlineno + "▦▦▦▦▩"; //역으로 ckecking해서 자동결정하기 위함.
  3993. }else{ //"S" or "E"
  3994. ds_send_savedata.setColumn(0, "changestartend", "S"); //start/end setup
  3995. if( !utlf_isNull(setpno) ){ //설정취소해야 하는 스텝
  3996. data = setpno + "▦A▦▦▦▦▦▦▦▦▦▩";
  3997. }
  3998. if( !utlf_isNull(lnkstepno) ){ //설정해야하는 스텝
  3999. data += lnkstepno + "▦A▦▦▦▦" + flag + "▦" + swimlineno + "▦▦▦▦▩";
  4000. }
  4001. }
  4002. dsf_setCSVToDs("ds_send_savedata_steplist", header + data);
  4003. ds_main_steppath_info.clearData();
  4004. ds_main_steppath_appinfo.clearData();
  4005. var oParam = {};
  4006. oParam.id = "TXMMP00802";
  4007. oParam.service = "prcpmngtapp.CPPrcpMngt";
  4008. oParam.method = "reqExeAppStepStat";
  4009. oParam.inds = "steplist=ds_send_savedata_steplist decisionlist=ds_send_savedata_decisionlist req=ds_send_savedata";
  4010. oParam.outds = "ds_main_steppath_info=info ds_main_steppath_appinfo=appinfo";
  4011. oParam.async = false;
  4012. oParam.callback = "cf_TXMMP00802";
  4013. tranf_submit(oParam);
  4014. if( arErrorCode.pop("TXMMP00802") > -1 ){ //Decision 스텝 결정 시에는 MMPHAPPT에도 insert
  4015. dsf_setDefaultVal(ds_main_steppath_info, "stepstat:10,savestatus:-,m:-");
  4016. if( flag == "S"){
  4017. return true;
  4018. }
  4019. nFindRow = ds_main_steppath_info.findRow("startendflag", "S");
  4020. if (!utlf_isNull(ds_main_steppath_info.getColumn(nFindRow, "startendflag")))
  4021. ds_main_steppath_info.setColumn(nFindRow, "startendflag" , "");
  4022. nFindRow = grp_biz.ivw_outline.ds_main_steplist_info.findRow("startendflag", "S");
  4023. if (!utlf_isNull(grp_biz.ivw_outline.ds_main_steplist_info.getColumn(nFindRow, "startendflag")))
  4024. grp_biz.ivw_outline.ds_main_steplist_info.setColumn(nFindRow, "startendflag" , "");
  4025. nFindRow = ds_main_steppath_info.findRow("stepno", startNo);
  4026. if (!utlf_isNull(ds_main_steppath_info.getColumn(nFindRow, "startendflag"))) { //S/E 설정 시에만 S/E setvalue
  4027. ds_main_steppath_info.setColumn(nFindRow, "startendflag" , "S");
  4028. nFindRow = grp_biz.ivw_outline.ds_main_steplist_info.findRow("stepno", startNo);
  4029. grp_biz.ivw_outline.ds_main_steplist_info.setColumn(nFindRow, "startendflag" , "S");
  4030. }else if(flag == "D"){ //기존 start 스텝이 없을 때 outline view에서 Decision 한 경우 S를 Decision으로 잡음 (2010.05.14 JJE)
  4031. nFindRow = ds_main_steppath_info.findRow("stepno", setpno);
  4032. ds_main_steppath_info.setColumn(nFindRow, "startendflag", "S");
  4033. nFindRow = grp_biz.ivw_outline.ds_main_steplist_info.findRow("stepno", setpno);
  4034. grp_biz.ivw_outline.ds_main_steplist_info.setColumn(nFindRow, "startendflag" , "S");
  4035. }
  4036. nFindRow = ds_main_steppath_info.findRow("startendflag", "E");
  4037. if (!utlf_isNull(ds_main_steppath_info.getColumn(nFindRow, "startendflag")))
  4038. ds_main_steppath_info.setColumn(nFindRow, "startendflag" , "");
  4039. nFindRow = grp_biz.ivw_outline.ds_main_steplist_info.findRow("startendflag", "E");
  4040. if (!utlf_isNull(grp_biz.ivw_outline.ds_main_steplist_info.getColumn(nFindRow, "startendflag")))
  4041. grp_biz.ivw_outline.ds_main_steplist_info.setColumn(nFindRow, "startendflag" , "");
  4042. nFindRow = ds_main_steppath_info.findRow("stepno", endNo);
  4043. if (flag != "D" && !utlf_isNull(ds_main_steppath_info.getColumn(nFindRow, "startendflag"))) { //S/E 설정 시에만 S/E setvalue
  4044. ds_main_steppath_info.setColumn(nFindRow, "startendflag" , "E");
  4045. nFindRow = grp_biz.ivw_outline.ds_main_steplist_info.findRow("stepno", endNo);
  4046. grp_biz.ivw_outline.ds_main_steplist_info.setColumn(nFindRow, "startendflag" , "E");
  4047. }
  4048. //steppath 노드셋이 정렬 됐다면, issendstep 을 정해서 적용스텝 테이블을 update한다.
  4049. dsf_createDsRow("ds_send_savedata", [{col:"cpgno", type:"BIGDECIMAL", size:256, val:ds_main_masterinfo_info.getColumn(0, "cpgno")}
  4050. , {col:"cpghistseq", type:"BIGDECIMAL", size:256, val:ds_main_masterinfo_info.getColumn(0, "cpghistseq")}
  4051. , {col:"prtlflagcd", type:"STRING", size:256, val:settypecd}
  4052. , {col:"pid", type:"STRING", size:256, val:ds_temp1_getdata.getColumn(0, "pid")}
  4053. , {col:"cretno", type:"BIGDECIMAL", size:256, val:ds_temp1_getdata.getColumn(0, "cretno")}
  4054. , {col:"orddd", type:"STRING", size:256, val:ds_temp1_getdata.getColumn(0, "orddd")}
  4055. , {col:"ordtype", type:"STRING", size:256, val:ds_temp1_getdata.getColumn(0, "ordtype")}
  4056. , {col:"cpgappno", type:"BIGDECIMAL", size:256, val:ds_temp1_getdata.getColumn(0, "cpgappno")}
  4057. , {col:"decistepyn", type:"STRING", size:256, val:"Y"}
  4058. , {col:"answstepno", type:"BIGDECIMAL", size:256, val:lnkstepno}
  4059. , {col:"issstartstepno", type:"BIGDECIMAL", size:256, val:""}
  4060. , {col:"issendstepno", type:"BIGDECIMAL", size:256, val:""}
  4061. , {col:"issstarttimes", type:"STRING", size:256, val:""}
  4062. , {col:"issendtimes", type:"STRING", size:256, val:""}
  4063. , {col:"m", type:"STRING", size:256, val:"u"}
  4064. , {col:"appstat", type:"STRING", size:256, val:""}]);
  4065. //다음 decision 스텝이 어디까지인지 확인해서, 그 전 스텝까지 지정해야 함...
  4066. var node = ds_main_steppath_info.findRow("stepstat", "10");
  4067. if( node > -1 ){
  4068. var firstNo = ds_main_steppath_info.getColumn(node, "stepno");
  4069. var firstTm = ds_main_steppath_info.getColumn(node, "times");
  4070. ds_send_savedata.setColumn(0, "issstartstepno", firstNo);
  4071. ds_send_savedata.setColumn(0, "issstarttimes", firstTm);
  4072. }
  4073. var nRow = ds_main_steppath_info.rowcount -1;
  4074. var lastNo = ds_main_steppath_info.getColumn(nRow, "stepno");
  4075. var lastTm = ds_main_steppath_info.getColumn(nRow, "times");
  4076. ds_send_savedata.setColumn(0, "issendstepno", lastNo);
  4077. ds_send_savedata.setColumn(0, "issendtimes", lastTm);
  4078. var oParam = {};
  4079. oParam.id = "TXMMP00801";
  4080. oParam.service = "prcpmngtapp.CPPrcpMngt";
  4081. oParam.method = "reqExeCPGAppPatInfo";
  4082. oParam.inds = "req=ds_send_savedata";
  4083. oParam.async = false;
  4084. oParam.callback = "cf_TXMMP00801";
  4085. tranf_submit(oParam);
  4086. if( arErrorCode.pop("TXMMP00801") > -1 ){
  4087. if( lnkstepno != "0" )
  4088. sysf_messageBox ( "스텝이 결정됐습니다.\n\n스텝을 적용하시려면 적용버튼을 클릭", "I008" );
  4089. return true;
  4090. }
  4091. }
  4092. //성공시 위에서 바로 true 리턴함, 실패시 여기에서 false 리턴
  4093. return false;
  4094. }
  4095. /****************************************************************************************
  4096. * Function : fOpenRecMainWnd
  4097. * Description : 기록지 navigate
  4098. * Argument :
  4099. * return type :
  4100. * Creator :
  4101. ****************************************************************************************/
  4102. function fOpenRecMainWnd(){
  4103. var mainObj = frmf_getMainViewer();
  4104. //var scrnID = mainObj.javascript.getScreenID();
  4105. mainObj.frmf_openForm("SMMMR00100");
  4106. }
  4107. /****************************************************************************************
  4108. * Function : fSetupSupScrn
  4109. * Description : CP/CPG별 상위화면 설정 변경
  4110. * Argument :
  4111. * return type :
  4112. * Creator :
  4113. ****************************************************************************************/
  4114. function fSetupSupScrn(){
  4115. if( cpgflagcd == "01" ){
  4116. grp_biz.swt_formatt.att_tab.text = "서식/첨부파일";
  4117. grp_biz.swt_formatt.att_tab.cap_attfile.text = "첨부파일";
  4118. grp_biz.swt_formatt.att_tab.cap_attfile.position.height = 75;
  4119. grp_biz.swt_formatt.att_tab.brn_download.visible = true;
  4120. grp_biz.swt_formatt.att_tab.grd_inqr.visible = false;
  4121. grp_biz.swt_formatt.att_tab.grd_attfile.setFormatRowProperty(0,"size",0);
  4122. grp_biz.swt_formatt.att_tab.grd_attfile.visible = true;
  4123. //grp_biz.swt_formatt.monitoring_tab.enable = false; //btn_monitoring.visible = false;
  4124. //grp_biz.Static00.visible = true; //탭버튼 하나만 숨기는것이 안되어 Static으로 가림
  4125. grp_biz.btn_initcpgprcp.visible = false;
  4126. grp_biz.cap_appscop.visible = false;
  4127. grp_biz.cap_appscoplist.visible = false;
  4128. grp_biz.btn_essprcpinfo.visible = false;
  4129. // grp_biz.btn_upviewmode.position.left = 182;
  4130. // grp_biz.btn_downviewmode.position.left = 211;
  4131. // grd_formlist.colHidden(grd_formlist.colRef("times")) = false;
  4132. // grd_formlist.colHidden(grd_formlist.colRef("stepnm")) = true;
  4133. //grp_biz.swt_formatt.att_tab.grd_formlist.setFormatColProperty(grp_biz.swt_formatt.att_tab.grd_formlist.getBindCellIndex("body","times"),"size",0);
  4134. //grp_biz.swt_formatt.att_tab.grd_formlist.setFormatColProperty(grp_biz.swt_formatt.att_tab.grd_formlist.getBindCellIndex("body","stepnm"),"size",70);
  4135. }else{
  4136. grp_biz.swt_formatt.att_tab.text = "서식/문진팝업";
  4137. grp_biz.swt_formatt.att_tab.cap_attfile.text = "문진목록";
  4138. grp_biz.swt_formatt.att_tab.cap_attfile.position.height = 75;
  4139. grp_biz.swt_formatt.att_tab.brn_download.visible = false;
  4140. grp_biz.swt_formatt.att_tab.grd_inqr.visible = true;
  4141. grp_biz.swt_formatt.att_tab.grd_attfile.visible = false;
  4142. /* CPG는 경대병원에서 쓰지 않는다 하여 아예 탭을 source에서 주석처리함 */
  4143. //grp_biz.swt_formatt.monitoring_tab.enable = true; // btn_monitoring.visible = true;
  4144. //grp_biz.Static00.visible = false; //탭버튼 하나만 숨기는것이 안되어 Static으로 가림
  4145. grp_biz.btn_initcpgprcp.visible = true;
  4146. grp_biz.cap_appscop.visible = true;
  4147. grp_biz.cap_appscoplist.visible = true;
  4148. grp_biz.btn_essprcpinfo.visible = true;
  4149. // grp_biz.btn_upviewmode.position.left = 249;
  4150. // grp_biz.btn_downviewmode.position.left = 278;
  4151. // grd_formlist.colHidden(grd_formlist.colRef("times")) = true;
  4152. // grd_formlist.colHidden(grd_formlist.colRef("stepnm")) = false;
  4153. //grp_biz.swt_formatt.att_tab.grd_formlist.setFormatColProperty(grp_biz.swt_formatt.att_tab.grd_formlist.getBindCellIndex("body","times"),"size",33);
  4154. //grp_biz.swt_formatt.att_tab.grd_formlist.setFormatColProperty(grp_biz.swt_formatt.att_tab.grd_formlist.getBindCellIndex("body","stepnm"),"size",0);
  4155. }
  4156. }
  4157. /****************************************************************************************
  4158. * Function : fClosePrcpWindow
  4159. * Description : 처방창 및 본 창을 닫는다
  4160. * Argument :
  4161. * return type :
  4162. * Creator :
  4163. ****************************************************************************************/
  4164. function fClosePrcpWindow(){
  4165. //위치 바꿔야 한다... appNo_SMMMO00110 값받기 전에 수행되므로 실핼안함
  4166. appNo_SMMMO00110 = ds_temp1_getdata.getColumn(0,"cpgappno");
  4167. if( !utlf_isNull(appNo_SMMMO00110) ){
  4168. fsetCpInfo(); //상단 CP여부 변경
  4169. //처방창 닫기
  4170. var prcpWindow = frmf_findPopup("SMMMO00100");
  4171. if( !utlf_isNull(prcpWindow) ){
  4172. prcpWindow.close(); //prcpWindow.fClose_SMMMO00100();
  4173. }
  4174. //CP검색창 닫기
  4175. var srchWindow = frmf_findPopup("SPMMP01200");
  4176. if( !utlf_isNull(srchWindow) ){
  4177. srchWindow.fCpSrchWndClose();
  4178. }
  4179. //CPG대상자알림창 닫기
  4180. var srchWindow = frmf_findPopup("SPMMP03200");
  4181. if( !utlf_isNull(srchWindow) ){
  4182. srchWindow.fCpSrchWndClose();
  4183. }
  4184. }
  4185. }
  4186. /****************************************************************************************
  4187. * Function : fsetCpInfo
  4188. * Description : 진료대상자리스트의 CP여부, 상단 CP 여부 변경
  4189. * Argument : flag
  4190. * return type :
  4191. * Creator :
  4192. ****************************************************************************************/
  4193. function fsetCpInfo( flag ){
  4194. appStat = ds_temp1_getdata.getColumn(0,"appstat");
  4195. if( cpgflagcd == "01" && appStat != "00" ){
  4196. //진료대상자리스트에 값을 setting한다
  4197. var prcpWindow = frmf_findPopup("SMMMO04100");
  4198. if( !utlf_isNull(prcpWindow) ){
  4199. prcpWindow.ds_root.setColumn(0,"cpflag","Y");
  4200. }
  4201. //상단에 cp여부를 Y로 셋팅(외래일때에는 셋팅이 되지 않아서, 다시 셋팅)
  4202. if( appf_getPatientInfo("cp") == "N" ){
  4203. appf_setPatientInfo("cp", ds_paminfo.getColumn(0,"pid") + "|" + "Y"); //상단 cp Y로 셋팅
  4204. }
  4205. }
  4206. if( flag == "save" ){
  4207. //진료대상자 재조회
  4208. fPrcpCallPatList();
  4209. }
  4210. }
  4211. /****************************************************************************************
  4212. * Function : fPrcpCallPatList
  4213. * Description : 진료대상자리스트를 다시 조회한다
  4214. * Argument : flag
  4215. * return type :
  4216. * Creator :
  4217. ****************************************************************************************/
  4218. function fPrcpCallPatList(){
  4219. //진료대상자리스트의 cp여부를 Y로 한다.
  4220. var mainObj = frmf_getMainViewer();
  4221. var ordPatObj = mainObj.frmf_findPopup("SMMMO04100"); //현재 활성화된 진료대상자 화면 객체
  4222. if(!utlf_isNull(ordPatObj)){
  4223. ordPatObj.fPrcpCallPatList();
  4224. }
  4225. var ordMiniPatObj = mainObj.frmf_findPopup("SPMMO04200");
  4226. if(!utlf_isNull(ordMiniPatObj)){ //두 객체값이 다른 경우 새로운 진료대상자 화면을 open함
  4227. ordMiniPatObj.fChkGetData();
  4228. }
  4229. }
  4230. /****************************************************************************************
  4231. * Function : fInitializeOutline
  4232. * Description : outline 정보 초기화
  4233. * Argument :
  4234. * return type :
  4235. * Creator :
  4236. ****************************************************************************************/
  4237. function fInitializeOutline(){
  4238. fCreateOutLineView();
  4239. grp_biz.ivw_outline.dsf_createDs("ds_main_steplist_info"); //ivw_outline.model.makeNode("/root/main/steplist");
  4240. grp_biz.ivw_outline.ds_main_steplist_info.copyData(ds_main_steplist_info);
  4241. grp_biz.ivw_outline.ds_main_decisionlist_info.copyData(ds_main_decisionlist_info);
  4242. var stepCnt = grp_biz.ivw_outline.ds_main_steplist_info.rowcount; //instance1.selectNodes("/root/main/steplist/info").length;
  4243. var agr1 = stepCnt; //그려야 할 컨트롤 갯수
  4244. var agr2 = (parseInt(ds_main_masterinfo_info.getColumn(0,"swimlineno")) * 3) + 1; //아웃라인을 구성하는 라인 컨트롤 갯수
  4245. grp_biz.ivw_outline.initGlobalVariant(agr1, agr2);
  4246. grp_biz.ivw_outline.fAdjustLine("allEx", "392", "16");
  4247. }
  4248. /****************************************************************************************
  4249. * Function : fCreateOutLineView
  4250. * Description : 아웃라인뷰어에 스윔라인 구조를 생성한다.
  4251. * Argument :
  4252. * return type :
  4253. * Creator :
  4254. ****************************************************************************************/
  4255. function fCreateOutLineView(){
  4256. var lineNo = ds_main_masterinfo_info.getColumn(0,"swimlineno");
  4257. //아웃라인을 셋팅한다.
  4258. if(!utlf_isNull(grp_biz.ivw_outline.ds_main_outlineinfo_info.getColumn(0,"swimlineno")) || grp_biz.ivw_outline.ds_main_outlineinfo_info.getColumn(0,"swimlineno") != 0){
  4259. grp_biz.ivw_outline.fOutlineCntlInit();
  4260. }
  4261. grp_biz.ivw_outline.ds_main_outlineinfo_info.setColumn(0,"swimlineno" , lineNo);
  4262. grp_biz.ivw_outline.ds_main_outlineinfo_info.setColumn(0,"cpgflagcd" , ds_main_masterinfo_info.getColumn(0,"cpgflagcd"));
  4263. grp_biz.ivw_outline.ds_main_outlineinfo_info.setColumn(0,"cpgorddeptcd" , ds_main_masterinfo_info.getColumn(0,"cpgorddeptcd"));
  4264. grp_biz.ivw_outline.ds_main_outlineinfo_info.setColumn(0,"cpgno" , ds_main_masterinfo_info.getColumn(0,"cpgno"));
  4265. grp_biz.ivw_outline.ds_main_outlineinfo_info.setColumn(0,"cpghistseq" , ds_main_masterinfo_info.getColumn(0,"cpghistseq"));
  4266. grp_biz.ivw_outline.fInitialize();
  4267. }
  4268. /****************************************************************************************
  4269. * Function : fGetErrPrcpList
  4270. * Description : 미완성 처방 리스트를 조회한다.
  4271. * Argument :
  4272. * return type :
  4273. * Creator :
  4274. ****************************************************************************************/
  4275. function fGetErrPrcpList(){
  4276. ds_main_steppath_info.filter("stepstat>='20'");
  4277. dsf_createDs("ds_temp_steppath_info");
  4278. ds_temp_steppath_info.copyData(ds_main_steppath_info,true);
  4279. var nodelist = ds_temp_steppath_info;
  4280. ds_main_steppath_info.filter("");
  4281. var cpgappno = ds_temp1_getdata.getColumn(0,"cpgappno");
  4282. var orddrid = ds_paminfo.getColumn(0,"orddrid" );
  4283. var stepno = "";
  4284. var prcpdd = "";
  4285. var stepnoList = "";
  4286. if(nodelist.rowcount > 0){
  4287. for(var i = 0; i < nodelist.rowcount; i++){
  4288. // var node = nodelist.item(i);
  4289. var stepflag = nodelist.getColumn(i,"stepflagcd");
  4290. if(stepflag != "D"){
  4291. var stepnoNode = nodelist.getColumn(i,"stepno");
  4292. var prcpddNode = nodelist.getColumn(i,"prcpdd");
  4293. var setnoNode = nodelist.getColumn(i,"setno");
  4294. stepnoList = stepnoList + stepnoNode + ",";
  4295. }
  4296. }
  4297. stepnoList = stepnoList.substr(0, stepnoList.length-1);
  4298. dsf_makeValue(ds_send_reqdata,"cpgappno" ,"string", cpgappno);
  4299. dsf_makeValue(ds_send_reqdata,"pid" ,"string", iPid);
  4300. dsf_makeValue(ds_send_reqdata,"cretno" ,"string", iCretno);
  4301. dsf_makeValue(ds_send_reqdata,"prcpgenrflag","string", iPrcpgenrflag);
  4302. dsf_makeValue(ds_send_reqdata,"orddrid" ,"string", orddrid);
  4303. dsf_makeValue(ds_send_reqdata,"stepnocond" ,"string", stepnoList);
  4304. }
  4305. if( grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.url != "emr_cpgxp::SPMMP00200_미완성처방관리.xfdl" ){
  4306. grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.url = "emr_cpgxp::SPMMP00200_미완성처방관리.xfdl";
  4307. //grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.redraw();
  4308. }else{
  4309. try {
  4310. //var tempPopObj = frmf_findPopup("SPMMP00200");
  4311. //tempPopObj.fGetInalPrcpList();
  4312. grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.fGetInalPrcpList();
  4313. } catch(e) {
  4314. sysf_trace(e);
  4315. }
  4316. }
  4317. if( frmf_checkAuth("X") ){ // TF와 다르게 false 떨어짐.
  4318. grp_biz.btn_savecomplprcp.visible = true;
  4319. }
  4320. dsf_deleteDs("ds_temp_steppath_info");
  4321. }
  4322. /****************************************************************************************
  4323. * Function : fCase2ViewMode
  4324. * Description : 화면 보이는 설정3 (상단 그리드 영역 사이즈 최대)
  4325. * Argument :
  4326. * return type :
  4327. * Creator :
  4328. ****************************************************************************************/
  4329. function fCase2ViewMode_old(){
  4330. grp_biz.grp_prcp.position.top = 446;
  4331. grp_biz.grp_prcp.position.height = 480;
  4332. import_prcp.position.top = 0;
  4333. import_prcp.position.height = 480; //766 2008.09.23
  4334. if ( import_prcp.btn_init.visible == false && import_prcp.btn_reinit.visible == false ){
  4335. grp_biz.grp_prcp.ivw_prcp2.position.top = 142;
  4336. grp_biz.grp_prcp.ivw_prcp2.position.height = 320;
  4337. import_prcp.div_all.Tab_prcp.position.top = 142;
  4338. import_prcp.div_all.Tab_prcp.position.height = 320;
  4339. if( import_prcp.div_all.Tab_prcp.tabindex == 1 ){
  4340. import_prcp.div_all.Tab_prcp.tp_bfprcp.grd_bfprcplist.position.height = 265;
  4341. }
  4342. import_prcp.div_all.grd_prcplist.position.top = 148;
  4343. import_prcp.div_all.grd_prcplist.position.height = 315;
  4344. import_prcp.div_all.position.height = 784-5;
  4345. }
  4346. fResizeControls();
  4347. grp_biz.ivw_outline.position.top = 446;
  4348. grp_biz.ivw_outline.position.height = 461; //합926.. -19
  4349. if( grp_biz.ivw_outline.url != "" ){
  4350. grp_biz.ivw_outline.grp_swimline.position.height = 764; //★487
  4351. }
  4352. grp_biz.ivw_detail.position.top = 446;
  4353. grp_biz.ivw_detail.position.height = 461;
  4354. // line8.attribute("y1") = 441;
  4355. // line8.attribute("y2") = 441;
  4356. grp_biz.line8.position.top = 441;
  4357. grp_biz.btn_calcqnt.position.top = 420;
  4358. // btn_outline_tab.attribute("top") = 419;
  4359. // btn_action_tab.attribute("top") = 419;
  4360. grp_biz.btn_detail_tab.position.y = 417;
  4361. grp_biz.btn_detail_popup.position.top = 420;
  4362. grp_biz.btn_refresh.position.top = 420;
  4363. grp_biz.btn_initcpgprcp.position.top = 420;
  4364. grp_biz.cap_appscop.position.top = 420;
  4365. grp_biz.cap_appscoplist.position.top = 420;
  4366. grp_biz.btn_essprcpinfo.position.top = 420;
  4367. grp_biz.swt_formatt.position.height = 380;
  4368. // att_tab.attribute("height") = 379;
  4369. // incompletion_tab.attribute("height") = 379;
  4370. grp_biz.swt_formatt.att_tab.cap_formlist.position.height = 376;
  4371. grp_biz.swt_formatt.att_tab.grd_formlist.position.height = 377;
  4372. grp_biz.swt_formatt.att_tab.grd_attfile.position.height = 377;
  4373. grp_biz.swt_formatt.att_tab.grd_inqr.position.height = 377;
  4374. if( cpgflagcd == "01" ){
  4375. grp_biz.swt_formatt.att_tab.cap_attfile.position.height = 357;
  4376. grp_biz.swt_formatt.att_tab.brn_download.position.top = 358;
  4377. }else{
  4378. grp_biz.swt_formatt.att_tab.cap_attfile.position.height = 376;
  4379. grp_biz.swt_formatt.monitoring_tab.grd_monitoringlist.position.height = 376;
  4380. grp_biz.swt_formatt.monitoring_tab.grd_monitoringinfo.position.height = 376;
  4381. }
  4382. //grd_errprcplist.attribute("height") = 377;
  4383. grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.position.height = 377;
  4384. if(grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.url != "" ){
  4385. grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.div_all.grd_prcplist.position.height = 375;
  4386. }
  4387. }
  4388. function fCase2ViewMode(){
  4389. // div 변경
  4390. grp_biz.grp_prcp.position.top = 436;
  4391. // grp_biz.grp_prcp.position.height = 488;
  4392. if ( import_prcp.btn_init.visible == false && import_prcp.btn_reinit.visible == false ){
  4393. // grp_biz.grp_prcp.ivw_prcp2.position.top = 142;
  4394. // import_prcp.div_all.Tab_prcp.position.top = 142;
  4395. // import_prcp.div_all.Tab_prcp.position.height = 320;
  4396. //
  4397. // if( import_prcp.div_all.Tab_prcp.tabindex == 1 ){
  4398. // import_prcp.div_all.Tab_prcp.tp_bfprcp.grd_bfprcplist.position.height = 265;
  4399. // }
  4400. //
  4401. // import_prcp.div_all.grd_prcplist.position.top = 148;
  4402. // import_prcp.div_all.grd_prcplist.position.height = 315;
  4403. // import_prcp.div_all.position.height = 784-5;
  4404. }
  4405. fResizeControls();
  4406. grp_biz.ivw_outline.position.top = 436;
  4407. // grp_biz.ivw_outline.position.height = 488;
  4408. if( !utlf_isNull(grp_biz.ivw_outline.url) ){
  4409. grp_biz.ivw_outline.grp_swimline.position.height = 764; //★487
  4410. }
  4411. grp_biz.ivw_detail.position.top = 436;
  4412. // grp_biz.ivw_detail.position.height = 488;
  4413. // 버튼 위치는 높이까지 같이 조절 필요.
  4414. grp_biz.line8.position.top = 431;
  4415. grp_biz.line8.position.height = 6;
  4416. grp_biz.btn_detail_tab.position.y = 409;
  4417. //grp_biz.btn_detail_tab.position.height = 24;
  4418. grp_biz.btn_detail_popup.position.top = 412;
  4419. grp_biz.btn_detail_popup.position.height= 19;
  4420. grp_biz.btn_refresh.position.top = 412;
  4421. grp_biz.btn_refresh.position.height = 19;
  4422. grp_biz.btn_initcpgprcp.position.top = 412;
  4423. grp_biz.btn_initcpgprcp.position.height = 19;
  4424. grp_biz.cap_appscop.position.top = 412;
  4425. grp_biz.cap_appscop.position.height = 19;
  4426. grp_biz.cap_appscoplist.position.top = 412;
  4427. grp_biz.cap_appscoplist.position.height = 19;
  4428. grp_biz.btn_essprcpinfo.position.top = 412;
  4429. grp_biz.btn_essprcpinfo.position.height = 19;
  4430. grp_biz.btn_calcqnt.position.top = 412;
  4431. grp_biz.btn_calcqnt.position.height = 19;
  4432. // 상단 탭은 bottom만 조정
  4433. grp_biz.swt_formatt.position.height = 395;
  4434. // 16.03.21 추가
  4435. grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.position.height = 367; // 미완성처방
  4436. grp_biz.swt_formatt.att_tab.cap_formlist.position.height = 366;
  4437. grp_biz.swt_formatt.att_tab.grd_formlist.position.height = 367; // 서식목록
  4438. grp_biz.swt_formatt.att_tab.grd_attfile.position.height = 367; // 첨부파일
  4439. grp_biz.swt_formatt.att_tab.grd_inqr.position.height = 367;
  4440. if( cpgflagcd == "01" ){
  4441. grp_biz.swt_formatt.att_tab.cap_attfile.position.height = 357;
  4442. grp_biz.swt_formatt.att_tab.brn_download.position.top = 349;
  4443. grp_biz.swt_formatt.att_tab.brn_download.position.height = 19;
  4444. }else{
  4445. grp_biz.swt_formatt.att_tab.cap_attfile.position.height = 366;
  4446. // grd_monitoringlist.attribute("height") = 376;
  4447. // grd_monitoringinfo.attribute("height") = 376;
  4448. }
  4449. // if(grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.url != "" ){
  4450. // grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.div_all.grd_prcplist.position.height = 375;
  4451. // }
  4452. }
  4453. /****************************************************************************************
  4454. * Function : fResizeControls
  4455. * Description : ivw_prcp2(iviewer)의 현재 sise에 따라 그안의 컨트롤 사이즈를 변경
  4456. * Argument :
  4457. * return type :
  4458. * Creator :
  4459. ****************************************************************************************/
  4460. function fResizeControls(){
  4461. if ( import_prcp.btn_init.visible == true || import_prcp.btn_reinit.visible == true ){
  4462. return;
  4463. }
  4464. var grp_prcp_top = grp_biz.grp_prcp.position.top;
  4465. if( grp_prcp_top == 29 ){
  4466. if( import_prcp.div_all.Tab_prcp.tabindex == 0 ){
  4467. import_prcp.div_all.Tab_prcp.tp_patord.grd_prcpdd.position.height = 666; //-42 (org+99)
  4468. import_prcp.div_all.Tab_prcp.tp_patord.grd_bfprcplist.position.height = 666;
  4469. import_prcp.div_all.Tab_prcp.tp_patord.grd_patchosinfo.position.height = 666;
  4470. }else if( import_prcp.div_all.Tab_prcp.tabindex == 1 || import_prcp.div_all.Tab_prcp.visible == true){
  4471. import_prcp.div_all.Tab_prcp.tp_bfprcp.grd_bfprcplist.position.height = 666; //71,567px
  4472. // import_prcp.div_all.Tab_prcp.tp_bfprcp.grd_bfprcplist.redraw();
  4473. }else if( import_prcp.div_all.Tab_prcp.tabindex == 2 ){
  4474. import_prcp.div_all.Tab_prcp.tp_prmsprcp.trv_promprcpset.position.height = 628; //121,529px
  4475. import_prcp.div_all.Tab_prcp.tp_prmsprcp.grd_promprcplist.position.height = 652; //97,553px
  4476. }else if( import_prcp.div_all.Tab_prcp.tabindex == 3 ){
  4477. import_prcp.div_all.Tab_prcp.tp_prcpsrch.trv_prcpclscdlist.position.height = 678; //58,579px
  4478. }else if( import_prcp.div_all.Tab_prcp.tabindex == 5 ){
  4479. import_prcp.div_all.Tab_prcp.tp_prmsop.trv_deptindxcdlist.position.height = 401; //89,302px
  4480. import_prcp.div_all.Tab_prcp.tp_prmsop.trv_promprcpset.position.height = 401; //89,302px
  4481. import_prcp.div_all.Tab_prcp.tp_prmsop.grd_prmsoplist.position.height = 425; //65,326px
  4482. import_prcp.div_all.Tab_prcp.tp_prmsop.grd_promprcpset.position.height = 425;
  4483. import_prcp.div_all.Tab_prcp.tp_prmsop.grd_prcpsrchlist.position.top = 516;
  4484. import_prcp.div_all.Tab_prcp.tp_prmsop.grd_opprcp.position.top = 516;
  4485. }
  4486. // grp_prcp.attribute("overflow") = "hidden";
  4487. // imp_prcp.attribute("overflow") = "hidden";
  4488. // grp_biz.attribute("overflow") = "hidden";
  4489. grp_biz.grp_prcp.scrollbars = "none";
  4490. grp_biz.grp_prcp.imp_prcp.scrollbars = "none";
  4491. grp_biz.scrollbars = "none";
  4492. return;
  4493. }else if( grp_prcp_top == 140 ){ //default (org-15)
  4494. if( import_prcp.div_all.Tab_prcp.tabindex == 0 ){
  4495. import_prcp.div_all.Tab_prcp.tp_patord.grd_prcpdd.position.height = 552; //71,567px // grp_biz.grp_prcp.ivw_prcp2.grd_prcpdd.position.height
  4496. import_prcp.div_all.Tab_prcp.tp_patord.grd_bfprcplist.position.height = 552; //71,567px
  4497. import_prcp.div_all.Tab_prcp.tp_patord.grd_patchosinfo.position.height = 552; //71,567px
  4498. }else if( import_prcp.div_all.Tab_prcp.tabindex == 1 || import_prcp.div_all.Tab_prcp.visible == true){
  4499. import_prcp.div_all.Tab_prcp.tp_bfprcp.grd_bfprcplist.position.height = 552; //71,567px
  4500. // import_prcp.div_all.Tab_prcp.tp_bfprcp.grd_bfprcplist.redraw();
  4501. }else if( import_prcp.div_all.Tab_prcp.tabindex == 2 ){
  4502. import_prcp.div_all.Tab_prcp.tp_prmsprcp.trv_promprcpset.position.height = 514; //121,529px
  4503. import_prcp.div_all.Tab_prcp.tp_prmsprcp.grd_promprcplist.position.height = 538; //97,553px
  4504. }else if( import_prcp.div_all.Tab_prcp.tabindex == 3 ){
  4505. import_prcp.div_all.Tab_prcp.tp_prcpsrch.trv_prcpclscdlist.position.height = 564; //58,579px => err
  4506. }else if( import_prcp.div_all.Tab_prcp.tabindex == 5 ){
  4507. import_prcp.div_all.Tab_prcp.tp_prmsop.trv_deptindxcdlist.position.height = 302; //89,302px
  4508. import_prcp.div_all.Tab_prcp.tp_prmsop.trv_promprcpset.position.height = 302; //89,302px
  4509. import_prcp.div_all.Tab_prcp.tp_prmsop.grd_prmsoplist.position.height = 326; //65,326px
  4510. import_prcp.div_all.Tab_prcp.tp_prmsop.grd_promprcpset.position.height = 326;
  4511. import_prcp.div_all.Tab_prcp.tp_prmsop.grd_prcpsrchlist.position.top = 417;
  4512. import_prcp.div_all.Tab_prcp.tp_prmsop.grd_opprcp.position.top = 417;
  4513. }
  4514. // grp_prcp.attribute("overflow") = "hidden";
  4515. // imp_prcp.attribute("overflow") = "hidden";
  4516. // grp_biz.attribute("overflow") = "scroll";
  4517. grp_biz.grp_prcp.scrollbars = "none";
  4518. grp_biz.grp_prcp.imp_prcp.scrollbars = "none";
  4519. grp_biz.scrollbars = "autoboth";
  4520. return;
  4521. }else if( grp_prcp_top == 436 ){ //142 (org-317-2)
  4522. if( import_prcp.div_all.Tab_prcp.tabindex == 0 ){
  4523. import_prcp.div_all.Tab_prcp.tp_patord.grd_prcpdd.position.height = 248; //71,567px
  4524. import_prcp.div_all.Tab_prcp.tp_patord.grd_bfprcplist.position.height = 248; //71,567px
  4525. import_prcp.div_all.Tab_prcp.tp_patord.grd_patchosinfo.position.height = 248; //71,567px
  4526. }else if( import_prcp.div_all.Tab_prcp.tabindex == 1 || import_prcp.div_all.Tab_prcp.visible == true){
  4527. import_prcp.div_all.Tab_prcp.tp_bfprcp.grd_bfprcplist.position.height = 248; //71,567px
  4528. // import_prcp.div_all.Tab_prcp.tp_bfprcp.grd_bfprcplist.redraw();
  4529. }else if( import_prcp.div_all.Tab_prcp.tabindex == 2 ){
  4530. import_prcp.div_all.Tab_prcp.tp_prmsprcp.trv_promprcpset.position.height = 210; //121,529px
  4531. import_prcp.div_all.Tab_prcp.tp_prmsprcp.grd_promprcplist.position.height = 234; //97,553px
  4532. }else if( import_prcp.div_all.Tab_prcp.tabindex == 3 ){
  4533. import_prcp.div_all.Tab_prcp.tp_prcpsrch.trv_prcpclscdlist.position.height = 262; //58,579px
  4534. }else if( import_prcp.div_all.Tab_prcp.tabindex == 5 ){
  4535. import_prcp.div_all.Tab_prcp.tp_prmsop.trv_deptindxcdlist.position.height = 140;
  4536. import_prcp.div_all.Tab_prcp.tp_prmsop.trv_promprcpset.position.height = 140; //89,302px
  4537. import_prcp.div_all.Tab_prcp.tp_prmsop.grd_prmsoplist.position.height = 164; //65,326px
  4538. import_prcp.div_all.Tab_prcp.tp_prmsop.grd_promprcpset.position.height = 164;
  4539. import_prcp.div_all.Tab_prcp.tp_prmsop.grd_prcpsrchlist.position.top = 255;
  4540. import_prcp.div_all.Tab_prcp.tp_prmsop.grd_opprcp.position.top = 255;
  4541. import_prcp.div_all.Tab_prcp.tp_prmsop.grd_prcpsrchlist.position.height = 65;
  4542. import_prcp.div_all.Tab_prcp.tp_prmsop.grd_opprcp.position.height = 65;
  4543. }
  4544. // grp_prcp.attribute("overflow") = "hidden";
  4545. // imp_prcp.attribute("overflow") = "hidden";
  4546. // grp_biz.attribute("overflow") = "hidden";
  4547. grp_biz.grp_prcp.scrollbars = "none";
  4548. grp_biz.grp_prcp.imp_prcp.scrollbars = "none";
  4549. grp_biz.scrollbars = "none";
  4550. return;
  4551. }
  4552. }
  4553. /****************************************************************************************
  4554. * Function : fNomalViewMode
  4555. * Description : 화면 보이는 설정1
  4556. * Argument :
  4557. * return type :
  4558. * Creator :
  4559. ****************************************************************************************/
  4560. function fNomalViewMode_old(){
  4561. import_prcp.position.top = 0;
  4562. import_prcp.position.height = 766;
  4563. if ( import_prcp.btn_init.visible == false && import_prcp.btn_reinit.visible == false ){
  4564. grp_biz.grp_prcp.position.top = 142;
  4565. grp_biz.grp_prcp.position.height = 766;
  4566. //grp_prcp.attribute("height") = 760;
  4567. grp_biz.grp_prcp.ivw_prcp2.position.top = 142;
  4568. grp_biz.grp_prcp.ivw_prcp2.position.height = 623;
  4569. import_prcp.div_all.Tab_prcp.position.top = 142;
  4570. import_prcp.div_all.Tab_prcp.position.height = 623;
  4571. import_prcp.div_all.grd_prcplist.position.top = 148;
  4572. import_prcp.div_all.grd_prcplist.position.height = 617;
  4573. import_prcp.div_all.position.height = 784-5;
  4574. }
  4575. fResizeControls();
  4576. grp_biz.ivw_outline.position.top = 142;
  4577. grp_biz.ivw_outline.position.height = 766;
  4578. if( grp_biz.ivw_outline.url != "" ){
  4579. grp_biz.ivw_outline.grp_swimline.position.height = 764;
  4580. }
  4581. grp_biz.ivw_detail.position.top = 142;
  4582. grp_biz.ivw_detail.position.height = 766;
  4583. // line8.attribute("y1") = 137;
  4584. // line8.attribute("y2") = 137;
  4585. grp_biz.line8.position.top = 135;
  4586. grp_biz.btn_calcqnt.position.top = 117;
  4587. // btn_outline_tab.attribute("top") = 115;
  4588. // btn_detail_tab.attribute("top") = 115;
  4589. // btn_action_tab.attribute("top") = 115;
  4590. grp_biz.btn_detail_tab.position.top = 115;
  4591. grp_biz.btn_detail_popup.position.left = 254;
  4592. grp_biz.btn_refresh.position.top = 117;
  4593. grp_biz.btn_initcpgprcp.position.top = 117;
  4594. grp_biz.cap_appscop.position.top = 117;
  4595. grp_biz.cap_appscoplist.position.top = 117;
  4596. grp_biz.btn_essprcpinfo.position.top = 117;
  4597. grp_biz.btn_refresh.position.left = 198;
  4598. grp_biz.btn_initcpgprcp.position.left = 388;
  4599. grp_biz.cap_appscop.position.left = 501;
  4600. grp_biz.cap_appscoplist.position.left = 576;
  4601. grp_biz.btn_essprcpinfo.position.left = 321;
  4602. grp_biz.swt_formatt.position.height = 104; //80;
  4603. // att_tab.attribute("height") = 79;
  4604. // incompletion_tab.attribute("height") = 79;
  4605. grp_biz.swt_formatt.att_tab.cap_formlist.position.height = 37;
  4606. grp_biz.swt_formatt.att_tab.grd_formlist.position.height = 77;
  4607. grp_biz.swt_formatt.att_tab.grd_attfile.position.height = 77;
  4608. grp_biz.swt_formatt.att_tab.grd_inqr.position.height = 77;
  4609. if( cpgflagcd == "01" ){
  4610. grp_biz.swt_formatt.att_tab.cap_attfile.position.height = 56;
  4611. grp_biz.swt_formatt.att_tab.brn_download.position.top = 58;
  4612. grp_biz.swt_formatt.att_tab.brn_download.position.height = 18; // 15.12.09
  4613. }else{
  4614. grp_biz.swt_formatt.att_tab.cap_attfile.position.height = 75;
  4615. grp_biz.swt_formatt.monitoring_tab.grd_monitoringlist.position.height = 75;
  4616. grp_biz.swt_formatt.monitoring_tab.grd_monitoringinfo.position.height = 75;
  4617. }
  4618. //grd_errprcplist.attribute("height") = 77;
  4619. grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.position.height = 77;
  4620. if(grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.url != "" ){
  4621. grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.div_all.grd_prcplist.position.height = 75;
  4622. }
  4623. if( grp_biz.btn_detail_tab.tabindex == 0 && grp_biz.ivw_detail.rct_border.position.height != 737 ) {
  4624. grp_biz.ivw_detail.fReSize("S"); //small
  4625. }
  4626. }
  4627. function fNomalViewMode(){
  4628. // div 변경
  4629. grp_biz.grp_prcp.position.top = 140;
  4630. // grp_biz.grp_prcp.position.height = 784;
  4631. if ( import_prcp.btn_init.visible == false && import_prcp.btn_reinit.visible == false ){
  4632. // grp_biz.grp_prcp.position.top = 140;
  4633. // grp_biz.grp_prcp.position.height = 766;
  4634. //grp_prcp.attribute("height") = 760;
  4635. // grp_biz.grp_prcp.ivw_prcp2.position.top = 142;
  4636. // grp_biz.grp_prcp.ivw_prcp2.position.height = 623;
  4637. // import_prcp.div_all.Tab_prcp.position.top = 142;
  4638. // import_prcp.div_all.Tab_prcp.position.height = 623;
  4639. // import_prcp.div_all.grd_prcplist.position.top = 148;
  4640. // import_prcp.div_all.grd_prcplist.position.height = 617;
  4641. // import_prcp.div_all.position.height = 784-5;
  4642. }
  4643. fResizeControls();
  4644. grp_biz.ivw_outline.position.top = 140;
  4645. // grp_biz.ivw_outline.position.height = 784;
  4646. if( grp_biz.ivw_outline.url != "" ){
  4647. grp_biz.ivw_outline.grp_swimline.position.height = 764;
  4648. }
  4649. grp_biz.ivw_detail.position.top = 140;
  4650. // grp_biz.ivw_detail.position.height = 784;
  4651. var ivw_top = grp_biz.line8.position.top; // 라인을 기준으로
  4652. var vDistance = 0;
  4653. if(ivw_top == 24) vDistance = 57;
  4654. // 버튼 위치는 높이까지 같이 조절 필요.
  4655. grp_biz.line8.position.top = 135;
  4656. grp_biz.line8.position.height = 6;
  4657. grp_biz.btn_detail_tab.position.y = 113;
  4658. //grp_biz.btn_detail_tab.position.height = 24;
  4659. grp_biz.btn_calcqnt.position.top = 116;
  4660. grp_biz.btn_calcqnt.position.height = 19;
  4661. // 이동이 필요한 버튼
  4662. grp_biz.btn_detail_popup.position.top = 116;
  4663. grp_biz.btn_detail_popup.position.height= 19;
  4664. grp_biz.btn_detail_popup.position.left = grp_biz.btn_detail_popup.position.left - vDistance;
  4665. grp_biz.btn_detail_popup.position.right = grp_biz.btn_detail_popup.position.right - vDistance;
  4666. grp_biz.btn_refresh.position.top = 116;
  4667. grp_biz.btn_refresh.position.height = 19;
  4668. grp_biz.btn_refresh.position.left = grp_biz.btn_refresh.position.left - vDistance;
  4669. grp_biz.btn_refresh.position.right = grp_biz.btn_refresh.position.right - vDistance;
  4670. grp_biz.btn_initcpgprcp.position.top = 116;
  4671. grp_biz.btn_initcpgprcp.position.height = 19;
  4672. grp_biz.btn_initcpgprcp.position.left = grp_biz.btn_initcpgprcp.position.left - vDistance;
  4673. grp_biz.btn_initcpgprcp.position.right = grp_biz.btn_initcpgprcp.position.right - vDistance;
  4674. grp_biz.cap_appscop.position.top = 117;
  4675. grp_biz.cap_appscop.position.height = 19;
  4676. grp_biz.cap_appscop.position.left = grp_biz.cap_appscop.position.left - vDistance;
  4677. grp_biz.cap_appscop.position.right = grp_biz.cap_appscop.position.right - vDistance;
  4678. grp_biz.cap_appscoplist.position.top = 117;
  4679. grp_biz.cap_appscoplist.position.height = 19;
  4680. grp_biz.cap_appscoplist.position.left = grp_biz.cap_appscoplist.position.left - vDistance;
  4681. grp_biz.cap_appscoplist.position.right = grp_biz.cap_appscoplist.position.right - vDistance;
  4682. grp_biz.btn_essprcpinfo.position.top = 116;
  4683. grp_biz.btn_essprcpinfo.position.height = 19;
  4684. grp_biz.btn_essprcpinfo.position.left = grp_biz.btn_essprcpinfo.position.left - vDistance;
  4685. grp_biz.btn_essprcpinfo.position.right = grp_biz.btn_essprcpinfo.position.right - vDistance;
  4686. // 상단 탭은 bottom만 조정
  4687. grp_biz.swt_formatt.position.height = 107;
  4688. grp_biz.swt_formatt.visible = true;
  4689. }
  4690. /****************************************************************************************
  4691. * Function : changeViewMode
  4692. * Description : 서식/첨부파일/미완성처방, 환자계획표/OCS/Outline 영역 사이즈 변경
  4693. * Argument : btn_kind - 선택한 위, 아래 버튼 종류
  4694. * return type :
  4695. * Creator :
  4696. ****************************************************************************************/
  4697. function changeViewMode(btn_kind){
  4698. //var ivw_top = grp_biz.ivw_outline.position.top;
  4699. var ivw_top = grp_biz.line8.position.top; // 라인을 기준으로
  4700. switch( ivw_top ){
  4701. case 135 :
  4702. if(btn_kind == "U"){
  4703. // sysf_trace("135 U 디폴트에서 위로 올리기");
  4704. grp_biz.btn_upviewmode.enable = false;
  4705. grp_biz.btn_downviewmode.enable = true;
  4706. fCase1ViewMode();
  4707. }else{
  4708. // sysf_trace("135 else 디폴트에서 내리기");
  4709. grp_biz.btn_downviewmode.enable = false;
  4710. grp_biz.btn_upviewmode.enable = true;
  4711. fCase2ViewMode();
  4712. }
  4713. break;
  4714. case 24 :
  4715. if(btn_kind == "D"){
  4716. // sysf_trace("27 D 올린상태에서 디폴트로 만들기");
  4717. grp_biz.btn_upviewmode.enable = true;
  4718. grp_biz.btn_downviewmode.enable = true;
  4719. fNomalViewMode();
  4720. }
  4721. break;
  4722. case 431 :
  4723. if(btn_kind == "U"){
  4724. // sysf_trace("446 U 내린상태에서 디폴트로 만들기");
  4725. grp_biz.btn_upviewmode.enable = true;
  4726. grp_biz.btn_downviewmode.enable = true;
  4727. fNomalViewMode();
  4728. }
  4729. break;
  4730. }
  4731. }
  4732. /****************************************************************************************
  4733. * Function : fCase1ViewMode
  4734. * Description : 화면 보이는 설정2 (import창 사이즈 최대)
  4735. * Argument :
  4736. * return type :
  4737. * Creator :
  4738. ****************************************************************************************/
  4739. function fCase1ViewMode_old(){
  4740. grp_biz.btn_calcqnt.position.top = 4;
  4741. grp_biz.grp_prcp.position.top = 27;
  4742. grp_biz.grp_prcp.position.height = 907; //910
  4743. grp_biz.grp_prcp.imp_prcp.position.top = 0;
  4744. grp_biz.grp_prcp.imp_prcp.position.height = 907;
  4745. if ( import_prcp.btn_init.visible == false && import_prcp.btn_reinit.visible == false ){
  4746. grp_biz.grp_prcp.ivw_prcp2.position.top = 142;
  4747. grp_biz.grp_prcp.ivw_prcp2.position.height = 741;
  4748. import_prcp.div_all.Tab_prcp.position.top = 142;
  4749. import_prcp.div_all.Tab_prcp.position.height = 741;
  4750. import_prcp.div_all.grd_prcplist.position.height = 732;
  4751. import_prcp.div_all.position.height = 883; //★883
  4752. }
  4753. fResizeControls();
  4754. grp_biz.ivw_outline.position.top = 27;
  4755. grp_biz.ivw_outline.position.height = 880; //883-3
  4756. if( !utlf_isNull(grp_biz.ivw_outline.url) ){
  4757. grp_biz.ivw_outline.grp_swimline.position.height = 881;
  4758. }
  4759. grp_biz.ivw_detail.position.top = 27;
  4760. grp_biz.ivw_detail.position.height = 880; //883-3
  4761. grp_biz.btn_detail_tab.position.top = 2;
  4762. // btn_detail_tab.attribute("top") = 4;
  4763. // btn_action_tab.attribute("top") = 4;
  4764. grp_biz.btn_detail_popup.position.top = 5;
  4765. grp_biz.btn_refresh.position.top = 5;
  4766. grp_biz.btn_initcpgprcp.position.top = 5;
  4767. grp_biz.cap_appscop.position.top = 5;
  4768. grp_biz.cap_appscoplist.position.top = 5;
  4769. grp_biz.btn_essprcpinfo.position.top = 5;
  4770. if( cpgflagcd == "01" ){
  4771. grp_biz.btn_detail_popup.position.left = 313;
  4772. grp_biz.btn_refresh.position.left = 257;
  4773. }else{
  4774. grp_biz.btn_detail_popup.position.left = 388;
  4775. grp_biz.btn_refresh.position.left = 332;
  4776. }
  4777. grp_biz.btn_initcpgprcp.position.left = 523;
  4778. grp_biz.cap_appscop.position.left = 637;
  4779. grp_biz.cap_appscoplist.position.left = 705;
  4780. grp_biz.btn_essprcpinfo.position.left = 455;
  4781. if(!utlf_isNull(grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.url)){
  4782. grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.position.height = 0;
  4783. grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.div_all.grd_prcplist.position.height = 0;
  4784. }
  4785. // line8.attribute("y1") = 26;
  4786. // line8.attribute("y2") = 26;
  4787. grp_biz.line8.position.top = 26;
  4788. if( grp_biz.btn_detail_tab.tabindex == 0 && grp_biz.ivw_detail.rct_border.position.height == 737 ){ //737
  4789. grp_biz.ivw_detail.fReSize("L"); //large
  4790. }
  4791. }
  4792. function fCase1ViewMode(){
  4793. // div 변경
  4794. grp_biz.grp_prcp.position.top = 29;
  4795. // grp_biz.grp_prcp.position.height = 895;
  4796. if ( import_prcp.btn_init.visible == false && import_prcp.btn_reinit.visible == false ){
  4797. // grp_biz.grp_prcp.ivw_prcp2.position.top = 122;
  4798. // grp_biz.grp_prcp.ivw_prcp2.position.height = 741;
  4799. // import_prcp.div_all.Tab_prcp.position.top = 122;
  4800. // import_prcp.div_all.Tab_prcp.position.height = 741;
  4801. // import_prcp.div_all.grd_prcplist.position.height = 732;
  4802. // import_prcp.div_all.position.height = 883; //★883
  4803. }
  4804. fResizeControls();
  4805. grp_biz.ivw_outline.position.top = 29;
  4806. // grp_biz.ivw_outline.position.height = 895;
  4807. if( !utlf_isNull(grp_biz.ivw_outline.url) ){
  4808. grp_biz.ivw_outline.grp_swimline.position.height = 881;
  4809. }
  4810. grp_biz.ivw_detail.position.top = 29;
  4811. // grp_biz.ivw_detail.position.height = 895;
  4812. // 버튼 위치는 높이까지 같이 조절 필요.
  4813. grp_biz.line8.position.top = 24;
  4814. grp_biz.line8.position.height = 6;
  4815. grp_biz.btn_detail_tab.position.y = 2;
  4816. //grp_biz.btn_detail_tab.position.height = 24;
  4817. grp_biz.btn_calcqnt.position.top = 5;
  4818. grp_biz.btn_calcqnt.position.height = 19;
  4819. // 이동이 필요한 버튼 *순서에 주의 우측이동시엔 right먼저. left가 right보다 더 우측으론 이동할수 없기 때문
  4820. var vDistance = 57;
  4821. grp_biz.btn_detail_popup.position.top = 5;
  4822. grp_biz.btn_detail_popup.position.height= 19;
  4823. grp_biz.btn_detail_popup.position.right = grp_biz.btn_detail_popup.position.right + vDistance;
  4824. grp_biz.btn_detail_popup.position.left = grp_biz.btn_detail_popup.position.left + vDistance;
  4825. grp_biz.btn_refresh.position.top = 5;
  4826. grp_biz.btn_refresh.position.height = 19;
  4827. grp_biz.btn_refresh.position.right = grp_biz.btn_refresh.position.right + vDistance;
  4828. grp_biz.btn_refresh.position.left = grp_biz.btn_refresh.position.left + vDistance;
  4829. grp_biz.btn_initcpgprcp.position.top = 5;
  4830. grp_biz.btn_initcpgprcp.position.height = 19;
  4831. grp_biz.btn_initcpgprcp.position.right = grp_biz.btn_initcpgprcp.position.right + vDistance;
  4832. grp_biz.btn_initcpgprcp.position.left = grp_biz.btn_initcpgprcp.position.left + vDistance;
  4833. grp_biz.cap_appscop.position.top = 6;
  4834. grp_biz.cap_appscop.position.height = 19;
  4835. grp_biz.cap_appscop.position.right = grp_biz.cap_appscop.position.right + vDistance;
  4836. grp_biz.cap_appscop.position.left = grp_biz.cap_appscop.position.left + vDistance;
  4837. grp_biz.cap_appscoplist.position.top = 6;
  4838. grp_biz.cap_appscoplist.position.height = 19;
  4839. grp_biz.cap_appscoplist.position.right = grp_biz.cap_appscoplist.position.right + vDistance;
  4840. grp_biz.cap_appscoplist.position.left = grp_biz.cap_appscoplist.position.left + vDistance;
  4841. grp_biz.btn_essprcpinfo.position.top = 5;
  4842. grp_biz.btn_essprcpinfo.position.height = 19;
  4843. grp_biz.btn_essprcpinfo.position.right = grp_biz.btn_essprcpinfo.position.right + vDistance;
  4844. grp_biz.btn_essprcpinfo.position.left = grp_biz.btn_essprcpinfo.position.left + vDistance;
  4845. // 상단 탭은 bottom만 조정
  4846. //grp_biz.swt_formatt.position.height = 0;
  4847. grp_biz.swt_formatt.visible = false;
  4848. }
  4849. /****************************************************************************************
  4850. * Function : fRemoveSaveNodeList
  4851. * Description : 환자의 세션 정보를 setting
  4852. * Argument : viwFlag - 저장주체화면 1:main, 2:미완성처방 iviewer
  4853. * return type : true, false
  4854. * Creator :
  4855. ****************************************************************************************/
  4856. function fRemoveSaveNodeList(viwFlag){
  4857. if( viwFlag == 1 ){
  4858. dsf_createDs("ds_result");
  4859. ds_send_errprcplist.clear();
  4860. ds_send_saveinvaliprcplist.clear();
  4861. ds_send_reqdata.clear();
  4862. dsf_createDs("ds_result_copy");
  4863. //clearParameter("SMMMP00800_popupYN");
  4864. ds_result_prcperrlist.clear();
  4865. dsf_createDs("ds_send_cond2");
  4866. ds_send_dessprcplist.clear(); //선택필수저장 정보 reset
  4867. ds_send_pessprcplist.clear(); //스텝필수저장 정보 reset
  4868. //저장 후, 인스턴스 셋팅... 전처방 조회 시 send 값임....
  4869. // 20200401 김현석, 적용일자 세팅, 20200310998
  4870. //var today = utlf_getCurrentDate();
  4871. var today = fGetAppdd();
  4872. var orddrid = ds_paminfo.getColumn(0,"orddrid");
  4873. dsf_makeValue(ds_send,"cond1" ,"string", iPid); //환자ID
  4874. dsf_makeValue(ds_send,"cond2" ,"string", iOrddd ); //외래:진료일, 입원:입원일
  4875. dsf_makeValue(ds_send,"cond3" ,"string", "0" ); //처방권한 구분
  4876. dsf_makeValue(ds_send,"cond4" ,"string", today ); //처방일자
  4877. dsf_makeValue(ds_send,"cond5" ,"string", "" ); //전처방 where 조건 구분자
  4878. dsf_makeValue(ds_send,"cond6" ,"string", "" ); //최초구분
  4879. dsf_makeValue(ds_send,"cond7" ,"string", orddrid); //의사ID,외래에서만 필요하다.
  4880. dsf_makeValue(ds_send,"cond8" ,"string", today); //todd
  4881. dsf_makeValue(ds_send,"cond9" ,"string", iPrcpgenrflag ); //외래입원구분
  4882. dsf_makeValue(ds_send,"cond10","string", iOrddeptcd ); //부서코드
  4883. dsf_makeValue(ds_send,"cond11","string", iCretno ); //생성번호
  4884. dsf_makeValue(ds_send,"cond14","string", utlf_getCurrentDate() );
  4885. curSavePrcpFlag_SMMMO00110 = "";
  4886. cpTmpPrcpSaveYN_SMMMO00110 = "";
  4887. if( grp_biz.ivw_outline.url != "" ){
  4888. grp_biz.ivw_outline.ds_temp.setColumn(0,"startstepno", ""); //적용 전 시작.종료 설정했던 정보 reset 2008.12.15
  4889. grp_biz.ivw_outline.ds_temp.setColumn(0,"endstepno" , ""); //적용 전 시작.종료 설정했던 정보 reset 2008.12.15
  4890. }
  4891. }else{
  4892. grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.dsf_createDs("ds_result");
  4893. grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.ds_send_errprcplist.clear();
  4894. grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.ds_send_saveinvaliprcplist.clear();
  4895. grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.ds_send_reqdata.clear();
  4896. grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.dsf_createDs("ds_result_copy");
  4897. //clearParameter("SMMMP00800_popupYN");
  4898. grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.ds_result_prcperrlist.clear();
  4899. // ivw_invalprcp.model.removeNodeset("/root/send/cond2");
  4900. // ivw_invalprcp.model.makeNode("/root/send/cond2");
  4901. grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.dsf_createDs("ds_send_cond2");
  4902. grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.ds_send_dessprcplist.clear(); //선택필수저장 정보 reset
  4903. grp_biz.swt_formatt.incompletion_tab.ivw_invalprcp.ds_send_pessprcplist.clear(); //스텝필수저장 정보 reset
  4904. /*
  4905. //저장 후, 인스턴스 셋팅... 전처방 조회 시 send 값임....
  4906. var today = getCurrentDate();
  4907. var orddrid = model.getValue ( "/root/paminfo/list/orddrid" );
  4908. ivw_invalprcp.model.makeValue ( "/root/send/cond1", iPid); //환자ID
  4909. ivw_invalprcp.model.makeValue ( "/root/send/cond2", iOrddd ); //외래:진료일, 입원:입원일
  4910. ivw_invalprcp.model.makeValue ( "/root/send/cond3", "0" ); //처방권한 구분
  4911. ivw_invalprcp.model.makeValue ( "/root/send/cond4", today ); //처방일자
  4912. ivw_invalprcp.model.makeValue ( "/root/send/cond5", "" ); //전처방 where 조건 구분자
  4913. ivw_invalprcp.model.makeValue ( "/root/send/cond6", "" ); //최초구분
  4914. ivw_invalprcp.model.makeValue ( "/root/send/cond7", orddrid); //의사ID,외래에서만 필요하다.
  4915. ivw_invalprcp.model.makeValue ( "/root/send/cond8", today); //todd
  4916. ivw_invalprcp.model.makeValue ( "/root/send/cond9", iPrcpgenrflag ); //외래입원구분
  4917. ivw_invalprcp.model.makeValue ( "/root/send/cond10", iOrddeptcd ); //부서코드
  4918. ivw_invalprcp.model.makeValue ( "/root/send/cond11", iCretno ); //생성번호
  4919. ivw_invalprcp.model.makeValue( "/root/send/cond14", getCurrentDate() );
  4920. //curSavePrcpFlag_SMMMO00110 = "";
  4921. //cpTmpPrcpSaveYN_SMMMO00110 = "";
  4922. */
  4923. }
  4924. if( cpgflagcd == "02" ){
  4925. frmf_clearParameter("SPMMP00200_popupYN");
  4926. }
  4927. }
  4928. /****************************************************************************************
  4929. * Function : fRemoveSaveNodeList
  4930. * Description : 탭 선택시, 해당 화면 재조회 여부를 결정한다.
  4931. * Argument : flag
  4932. * return type :
  4933. * Creator :
  4934. ****************************************************************************************/
  4935. function tab_refresh( flag ){
  4936. if( flag != "src" ){
  4937. flag = "ctl";
  4938. }
  4939. // var import_prcp = grp_biz.grp_prcp.imp_prcp;
  4940. if(grp_biz.btn_detail_tab.tabindex == 1){
  4941. ds_temp1_refresh_obj.setColumn(0,"change_ocs","N");
  4942. if( import_prcp.div_all.Tab_prcp.tabindex == 1 ){
  4943. // btn_ivbfprcp.dispatch("onclick"); //전처방 조회
  4944. var ev = new TabIndexChangeEventInfo;
  4945. frmf_inputEnterKey("import_prcp.div_all.Tab_prcp", "canchange", ev );
  4946. import_prcp.div_all.Tab_prcp.tp_bfprcp.fInitialize(); // 전처방 재조회
  4947. // 저장 후 전처방 재조회하고 탭 맞추기 위함
  4948. import_prcp.div_all.Tab_prcp.tabindex = 1;
  4949. import_prcp.div_all.Tab_prcp_btn.tabindex = 1;
  4950. }else if( import_prcp.div_all.Tab_prcp.tabindex == 0 ){
  4951. // btn_ivpatord.dispatch("DOMActivate"); //진료내역 조회
  4952. frmf_inputEnterKey("import_prcp.div_all.Tab_prcp", "canchange", new TabIndexChangeEventInfo );
  4953. }
  4954. ds_temp1_refresh_obj.setColumn(0,"change_outline", "Y");
  4955. ds_temp1_refresh_obj.setColumn(0,"change_gps", "Y");
  4956. }else if(grp_biz.btn_detail_tab.tabindex == 0){
  4957. ds_temp1_refresh_obj.setColumn(0,"change_gps", "Y");
  4958. frmf_inputEnterKey("grp_biz.btn_detail_tab", "onchanged", new TabIndexChangeEventInfo );
  4959. ds_temp1_refresh_obj.setColumn(0,"change_ocs", "Y");
  4960. ds_temp1_refresh_obj.setColumn(0,"change_outline", "Y");
  4961. }else{
  4962. ds_temp1_refresh_obj.setColumn(0,"change_outline", "Y");
  4963. frmf_inputEnterKey("grp_biz.btn_detail_tab", "onchanged", new TabIndexChangeEventInfo );
  4964. ds_temp1_refresh_obj.setColumn(0,"change_ocs", "Y");
  4965. ds_temp1_refresh_obj.setColumn(0,"change_gps", "Y");
  4966. }
  4967. if( flag == "src" ){
  4968. ds_temp1_refresh_obj.setColumn(0,"change_ocs", "Y");
  4969. }
  4970. }
  4971. /****************************************************************************************
  4972. * Function : fSendDetailValue
  4973. * Description : 환자계획표 전체 조회를 위해 필요한 값을 iviewer로 보낸다
  4974. * Argument :
  4975. * return type :
  4976. * Creator :
  4977. ****************************************************************************************/
  4978. function fSendDetailValue(){
  4979. var stepno = "";
  4980. var timesArray = "";
  4981. var setArray = "";
  4982. var prcpddArray = "";
  4983. var tms = "";
  4984. var prcpdd = "";
  4985. var aSettypecd = "";
  4986. var D0TmsYN = "N";
  4987. // var ref = "/root/main/steppath/info"; //"/root/main/sortedsteplist/info";
  4988. //var nodeList = ds_main_steppath_info; //instance1.selectNodes(ref);
  4989. var pNode = null;
  4990. var tNode = null;
  4991. //var t2Node = null;
  4992. var sNode = null;
  4993. var appCPYN = "N";
  4994. var ioflag = ds_main_masterinfo_info.getColumn(0,"ioflagcd");
  4995. var iAppStat = parseInt(ds_temp1_getdata.getColumn(0,"appstat"));
  4996. utlf_addLog("cpgflagcd : " + cpgflagcd + " || iAppStat : " + iAppStat);
  4997. if( ioflag != "O" && cpgflagcd == "01" && (iAppStat == 10 || iAppStat >= 30) ){
  4998. var notActStepNodes = ds_main_steppath_info.getCaseCount("swimlineno == '1' && stepstat == '10'");
  4999. if( notActStepNodes > 0 ) appCPYN = "Y";
  5000. }
  5001. utlf_addLog("appCPYN : " + appCPYN );
  5002. for(var i = 0; i < ds_main_steppath_info.rowcount; i++) {
  5003. stepno = ds_main_steppath_info.getColumn(i,"stepno");
  5004. aSettypecd = ds_main_steppath_info.getColumn(i,"settypecd");
  5005. pNode = ds_main_steppath_info.getColumn(i,"prcpdd");
  5006. if( !utlf_isNull(pNode) && prcpdd != pNode && cpgflagcd == "01" ){ // D0=D1 처리 시-> && D0TmsYN == "N" (2009.04.09 test, baseapp에 블록킹 막음, getAppSetDetailInfo에 sstt.prcpdd as rpcpdd)
  5007. if( appCPYN == "N" || ds_main_steppath_info.getColumn(i,"stepstat") != "10" ){
  5008. prcpddArray = prcpddArray + pNode + ",";
  5009. }else continue;
  5010. }
  5011. tNode = ds_main_steppath_info.getColumn(i,"times");
  5012. /*t2Node = instance1.selectSingleNode(ref + "[" + i + "]/orgtimes");
  5013. if( !isNull(t2Node.text) && tms != t2Node.text && !isNull(pNode.text) ){ //중간타기 CP 기능 추가하면서 처방 나가지 않은 건너뛴 회차는 skip(2009.02.19)
  5014. timesArray = timesArray + t2Node.text + ",";
  5015. } else*/
  5016. if( !utlf_isNull(tNode) && tms != tNode && !utlf_isNull(pNode) ){ //중간타기 CP 기능 추가하면서 처방 나가지 않은 건너뛴 회차는 skip(2009.02.19)
  5017. timesArray = timesArray + tNode + ",";
  5018. }
  5019. sNode = ds_main_steppath_info.getColumn(i,"setno");
  5020. if( !utlf_isNull(sNode) && !utlf_isNull(pNode) ){ //중간타기 CP 기능 추가하면서 처방 나가지 않은 건너뛴 회차는 skip(2009.02.19)
  5021. setArray = setArray + sNode + ",";
  5022. }
  5023. if( !utlf_isNull(pNode) ) prcpdd = pNode;
  5024. /*if( !isNull(t2Node.text) && !isNull(pNode.text) ) tms = t2Node.text;
  5025. else*/
  5026. if( !utlf_isNull(tNode) && !utlf_isNull(pNode) ) tms = tNode;
  5027. }
  5028. if( cpgflagcd == "02" ){
  5029. //var today = utlf_getCurrentDate();
  5030. var today = fGetAppdd();
  5031. var aPrcpDD = ds_temp1_getdata.getColumn(0,"appdd");
  5032. var aPrcpddArray = prcpddArray.split(",");
  5033. //var fstPrcpdd = "";
  5034. //if( aPrcpddArray.length > 0 ) fstPrcpdd = aPrcpddArray[0];
  5035. var appendYN = "Y";
  5036. while( aPrcpDD <= today ){
  5037. appendYN = "Y";
  5038. for(var i = 0; i < aPrcpddArray.length; i++){
  5039. if(aPrcpddArray[i] == aPrcpDD){
  5040. appendYN = "N";
  5041. }
  5042. }
  5043. if( appendYN == "N" ) continue;
  5044. /*if( !isNull(fstPrcpdd) && fstPrcpdd > aPrcpDD ){
  5045. prcpddArray = aPrcpDD + "," + prcpddArray;
  5046. }else*/
  5047. prcpddArray = prcpddArray + aPrcpDD + ",";
  5048. aPrcpDD = aPrcpDD.toDate().getAddDate(1,"D").getDateFormat();
  5049. }
  5050. }
  5051. //timesArray = timesArray.getTrimRight();
  5052. timesArray = timesArray.substr(0, timesArray.length-1);
  5053. setArray = setArray.substr(0 , setArray.length-1);
  5054. prcpddArray = prcpddArray.substr(0, prcpddArray.length-1);
  5055. cpgno = ds_main_masterinfo_info.getColumn(0,"cpgno");
  5056. cpghistseq = ds_main_masterinfo_info.getColumn(0,"cpghistseq");
  5057. var cpgappno = ds_temp1_getdata.getColumn(0,"cpgappno");
  5058. //child에서 호출하기때문에, opener의 전역변수를 사용 못함??
  5059. var prcpgenrflag = ds_temp1_getdata.getColumn(0,"cpgappno");
  5060. var pid = ds_paminfo.getColumn(0,"pid");
  5061. var cretno = ds_paminfo.getColumn(0,"cretno");
  5062. if( prcpgenrflag == "O" ){
  5063. var orddd = ds_paminfo.getColumn(0,"orddd");
  5064. }else{
  5065. var orddd = ds_paminfo.getColumn(0,"indd");
  5066. }
  5067. var pamInfo = pid + "," + orddd + "," + cretno + "," + prcpgenrflag;
  5068. var returnText = cpgno + "|" + cpghistseq + "|" + settypecd + "|" + timesArray + "|" + "GPS" + "|" + cpgappno + "|" + setArray + "|" + prcpddArray + "|" + pamInfo;
  5069. utlf_addLog("stepinfo setParameter : " + returnText);
  5070. frmf_setParameter("stepinfo", returnText);
  5071. }
  5072. /****************************************************************************************
  5073. * Function : fOpenStepDetlInfo
  5074. * Description : CPG 속성관리창을 오픈하기 위한 함수
  5075. * Argument :
  5076. * return type :
  5077. * Creator :
  5078. ****************************************************************************************/
  5079. function fOpenStepDetlInfo(){
  5080. var no = ds_main_stepinfo_info.getColumn(0,"stepno");
  5081. var stepflag = ds_main_stepinfo_info.getColumn(0,"stepflagcd");
  5082. if( utlf_isNull(no) ){
  5083. no = ds_main_sortedsteplist_info.getColumn(0,"stepno");
  5084. stepflag = ds_main_sortedsteplist_info.getColumn(0,"stepflagcd");
  5085. ds_main_stepinfo_info.setColumn(0,"stepno" ,ds_main_sortedsteplist_info.getColumn(0,"stepno"));
  5086. ds_main_stepinfo_info.setColumn(0,"setno" ,ds_main_sortedsteplist_info.getColumn(0,"setno"));
  5087. ds_main_stepinfo_info.setColumn(0,"stepmemo" ,ds_main_sortedsteplist_info.getColumn(0,"stepmemo"));
  5088. ds_main_stepinfo_info.setColumn(0,"times" ,ds_main_sortedsteplist_info.getColumn(0,"times"));
  5089. ds_main_stepinfo_info.setColumn(0,"stepnm" ,ds_main_sortedsteplist_info.getColumn(0,"stepnm"));
  5090. ds_main_stepinfo_info.setColumn(0,"stepflagcd" ,ds_main_sortedsteplist_info.getColumn(0,"stepflagcd"));
  5091. }
  5092. if(stepflag == "A" || stepflag == "B"){
  5093. var iSettypecd = ds_main_steppath_info.getColumn(ds_main_steppath_info.findRow("stepno",no),"settypecd");
  5094. if( utlf_isNull(iSettypecd) ) iSettypecd = settypecd;
  5095. var returnText = no + "|" +
  5096. ds_main_masterinfo_info.getColumn(0,"cpgno") + "|" +
  5097. ds_main_masterinfo_info.getColumn(0,"cpghistseq") + "|" +
  5098. iSettypecd + "|" + //CPG+CP에서 CP스텝이어도 G로 보내야 하므로, settypecd -> cpgflagcd (2010.07.02)
  5099. ds_main_stepinfo_info.getColumn(0,"setno") + "|" +
  5100. ds_main_stepinfo_info.getColumn(0,"stepmemo") + "|" +
  5101. ds_main_stepinfo_info.getColumn(0,"times") + "|" +
  5102. "generater"+ "|" +
  5103. ds_main_stepinfo_info.getColumn(0,"stepnm");
  5104. //var sortedStepNode = instance1.selectNodes("/root/main/sortedsteplist/info");
  5105. var sortedStepNode = ds_main_steppath_info; //instance1.selectNodes("/root/main/steppath/info");
  5106. var returnTextList = "";
  5107. var num = 0;
  5108. for(var i = 0 ; i < sortedStepNode.rowcount; i++){
  5109. // num++;
  5110. returnTextList = returnTextList + ds_main_steppath_info.getColumn(i,"stepno") + "|" +
  5111. ds_main_masterinfo_info.getColumn(0,"cpgno") + "|" +
  5112. ds_main_masterinfo_info.getColumn(0,"cpghistseq") + "|" +
  5113. ds_main_steppath_info.getColumn(i,"settypecd") + "|" +
  5114. ds_main_steppath_info.getColumn(i,"setno") + "|" +
  5115. ds_main_steppath_info.getColumn(i,"stepmemo") + "|" +
  5116. ds_main_steppath_info.getColumn(i,"times") + "|" +
  5117. "generater"+ "|" +
  5118. ds_main_steppath_info.getColumn(i,"stepnm") + "▦";
  5119. }
  5120. frmf_setParameter("stepinfo", returnText);
  5121. frmf_setParameter("steplist", returnTextList);
  5122. var popObj = frmf_findPopup("SPMMP01100");
  5123. if( utlf_isNull(popObj) ){
  5124. // open("SPMMP01100");
  5125. frmf_open("SPMMP01100", "SPMMP01100", null, null, null, null, null, null, null, null, null, null, "M");
  5126. }else{
  5127. popObj.fInitialize();
  5128. }
  5129. } else if(stepflag == "D"){
  5130. var returnText = ds_main_stepinfo_info.getColumn(0,"stepnm") + "|" +
  5131. ds_main_stepinfo_info.getColumn(0,"stepmemo") + "|" +
  5132. ds_main_stepinfo_info.getColumn(0,"times");
  5133. frmf_setParameter("stepinfo", returnText);
  5134. var popObj = frmf_findPopup("SPMMP02100");
  5135. if( utlf_isNull(popObj) ){
  5136. // open("SPMMP02100");
  5137. frmf_open("SPMMP02100", "SPMMP02100", null, null, null, null, null, null, null, null, null, null, "M");
  5138. }else{
  5139. popObj.fInitialize();
  5140. }
  5141. }
  5142. }
  5143. /****************************************************************************************
  5144. * Function : fCnclApp
  5145. * Description : CP를 취소한다
  5146. * Argument :
  5147. * return type :
  5148. * Creator :
  5149. ****************************************************************************************/
  5150. function fCnclApp(){
  5151. ds_send_savedata.clear();
  5152. dsf_makeValue(ds_send_savedata,"cpgappno" ,"string", ds_temp1_getdata.getColumn(0, "cpgappno")); // model.getValue("/root/temp1/getdata/cpgappno")
  5153. dsf_makeValue(ds_send_savedata,"cpgno" ,"string", ds_main_masterinfo_info.getColumn(0, "cpgno")); // model.getValue("/root/main/masterinfo/info/cpgno")
  5154. dsf_makeValue(ds_send_savedata,"cpghistseq" ,"string", ds_main_masterinfo_info.getColumn(0, "cpghistseq")); // model.getValue("/root/main/masterinfo/info/cpghistseq")
  5155. dsf_makeValue(ds_send_savedata,"appstat" ,"string", "41");
  5156. dsf_makeValue(ds_send_savedata,"m" ,"string", "u");
  5157. var oParam = {};
  5158. oParam.id = "TXMMP00801";
  5159. oParam.service = "prcpmngtapp.CPPrcpMngt";
  5160. oParam.method = "reqExeCPGAppPatInfo";
  5161. oParam.inds = "req=ds_send_savedata";
  5162. // oParam.outds = "ds_=info";
  5163. oParam.async = false;
  5164. oParam.callback = "cf_TXMMP00801";
  5165. tranf_submit(oParam);
  5166. if( arErrorCode.pop("TXMMP00801") > -1 ){ //himed.his.emr.prcpbaseapp.cpmngt.CpMngt reqExeCPGAppPatInfo
  5167. ds_temp1_getdata.setColumn(0,"appstat", "41");
  5168. //CPG인 경우 창 닫기 전에, 상단에 평가 아이콘 설정을 위해 CPG 평가명 말고, 다른 평가명이 있는지 조회
  5169. if(cpgflagcd == "02" ){
  5170. dsf_createDs("ds_send_valudata"); //req
  5171. dsf_createDs("ds_main_valuinfo_valulist"); //get, valulist
  5172. // dsf_makeValue(ds_main_valuinfo,"pid" ,"string", iPid);
  5173. // dsf_makeValue(ds_main_valuinfo,"orddd" ,"string", iOrddd);
  5174. // dsf_makeValue(ds_main_valuinfo,"cretno" ,"string", iCretno); //send랑 main이 바뀐거.. 같다..
  5175. dsf_makeValue(ds_send_valudata,"pid" ,"string", iPid);
  5176. dsf_makeValue(ds_send_valudata,"orddd" ,"string", iOrddd);
  5177. dsf_makeValue(ds_send_valudata,"cretno" ,"string", iCretno);
  5178. var oParam = {};
  5179. oParam.id = "TRMMP03501";
  5180. oParam.service = "prcpbaseapp.CpMngt";
  5181. oParam.method = "reqGetCpgValuInfo";
  5182. oParam.inds = "req=ds_send_valudata";
  5183. oParam.outds = "ds_main_valuinfo_valulist=valulist";
  5184. oParam.async = false;
  5185. oParam.callback = "";
  5186. tranf_submit(oParam);
  5187. // submit("TRMMP03501", false);
  5188. // model.removeNodeset("/root/send/valudata");
  5189. ds_send_valudata.clear();
  5190. }
  5191. fOpenPrcpWindow();
  5192. return true;
  5193. }
  5194. }
  5195. /****************************************************************************************
  5196. * Function : cf_TXMMP00801
  5197. * Description : TXMMP00801 콜백함수
  5198. * Argument :
  5199. * return type :
  5200. * Creator :
  5201. ****************************************************************************************/
  5202. function cf_TXMMP00801(sSvcId, nErrorCode, sErrorMsg) {
  5203. arErrorCode.push(sSvcId, nErrorCode);
  5204. }
  5205. /****************************************************************************************
  5206. * Function : fOpenPrcpWindow
  5207. * Description : 처방창 및 본 창을 닫는다
  5208. * Argument :
  5209. * return type :
  5210. * Creator :
  5211. ****************************************************************************************/
  5212. function fOpenPrcpWindow(){
  5213. var mainObj = frmf_getMainViewer();
  5214. appStat = ds_temp1_getdata.getColumn(0,"appstat");
  5215. // 2008.07.18 pymi (51 상태값 추가)
  5216. if( appStat == "50" || appStat == "41" || appStat == "51"){
  5217. appf_setPatientInfo("cp", ds_paminfo.getColumn(0,"pid") + "|" + "N"); //main view cp여부 불 끄기
  5218. //진료대상자리스트에 값을 setting한다
  5219. var prcpWindow = mainObj.frmf_findPopup("SMMMO04100");
  5220. if( !utlf_isNull(prcpWindow) ){
  5221. prcpWindow.ds_root.setColumn(0, "cpflag", "N");
  5222. //prcpWindow.ds_root.setColumn(0, "cpflag", "N");
  5223. }
  5224. if( cpgflagcd == "02" ){ //CPG 종료 시, 평가명이 없으면 상단 평가 아이콘 설정 변경 (2010.06.03)
  5225. var valunmNode = ds_main_valuinfo_valulist.getColumn(0,"valunm");
  5226. if( utlf_isNull(valunmNode) ){
  5227. appf_setPatientInfo("valuation", ds_paminfo.getColumn(0,"pid") + "|" + "N"); //main view 평가여부 불 끄기
  5228. }
  5229. }
  5230. fPrcpCallPatList(); //진료대상자리스트 재조회
  5231. //mainObj.window.javascript.open("SMMMO00100"); //처방창 open
  5232. if( !utlf_isNull(prcpWindow) ){
  5233. prcpWindow.fOpenPrcpMainWnd();
  5234. }
  5235. this.setTimer(0, 3000);
  5236. //this.close(); //cp창 닫기
  5237. }
  5238. }
  5239. function SMMMP00800_ontimer(obj:Form, e:TimerEventInfo)
  5240. {
  5241. this.killTimer(0);
  5242. this.close();
  5243. }
  5244. /****************************************************************************************
  5245. * Function : fDropApp
  5246. * Description : CP를 Drop한다
  5247. * Argument : msg
  5248. * return type :
  5249. * Creator :
  5250. ****************************************************************************************/
  5251. function fDropApp( msg ){
  5252. //btn_drop.dispatch("DOMActivate")
  5253. if( utlf_isNull(msg) ){
  5254. rtnVal = 6;
  5255. }else{
  5256. var rtnVal = sysf_messageBox ( msg, "S001" );
  5257. }
  5258. if( rtnVal == 6 ){
  5259. //setParameter("cpgappno", appNo_SMMMO00110);
  5260. frmf_setParameter("cpgappno" , ds_temp1_getdata.getColumn(0,"cpgappno")); // 2008.08.31 pymi appNo_SMMMO00110에 값을 받지 못하는 문제때문에 임시 처리함
  5261. frmf_setParameter("cpgno" , ds_main_masterinfo_info.getColumn(0,"cpgno")); //2008.07.01 LWS
  5262. frmf_setParameter("cpghistseq" , ds_main_masterinfo_info.getColumn(0,"cpghistseq")); //2008.07.01 LWS
  5263. var mainObj = frmf_getMainViewer();
  5264. //mainObj.window.javascript.modal("SPMMP02300");
  5265. //CP는 Drop창, CPG는 문진창
  5266. if(cpgflagcd == "01" ){
  5267. // modal("SPMMP02300"); //himed.his.emr.prcpmngtapp.cpprcpmngt.CPPrcpMngt reqExeValuDropExcl;
  5268. frmf_modal("SPMMP02300", "SPMMP02300", null, null, null, null, null, null, null, null, null, null, "M");
  5269. //fOpenPrcpWindow(); drop 화면으로 이동
  5270. }
  5271. else{
  5272. frmf_setParameter("SMMMO034_pntmflag", "2"); //M0515 1:퇴원예고, 2:CPG종료, 3:특정스텝종료
  5273. // btn_inqr.dispatch("DOMActivate"); //CPG면 문진팝업 호출 (2010.04.16 JJE)
  5274. var ev = new ClickEventInfo;
  5275. frmf_inputEnterKey("grp_biz.btn_inqr", "onclick", ev );
  5276. fCnclApp();
  5277. }
  5278. }
  5279. }
  5280. /****************************************************************************************
  5281. * Function : fGuidDschDclrt
  5282. * Description : 퇴원예고 유도
  5283. * Argument :
  5284. * return type :
  5285. * Creator :
  5286. ****************************************************************************************/
  5287. function fGuidDschDclrt(){
  5288. if(dschAppYN != "Y") {
  5289. if( frmf_getParameter("SPMMO00400_rtn_useyn") != "Y") { //퇴원예고 popup을 두번 뜨는 것을 막기위함
  5290. var curDate = utlf_getCurrentDate();
  5291. // var nxtDate = new Date().getAddDate(1, "D").getDateFormat();
  5292. var nDate = new Date();
  5293. var nxtDate = nDate.getAddDate(1, "D").getDateFormat();
  5294. var stepLth = ds_main_steppath_info.rowcount;
  5295. var cstepPt = "";
  5296. var dshPrcpdd = "";
  5297. var dschRet = "";
  5298. for( var i = 0; i < stepLth; i++) {
  5299. if( curDate == ds_main_steppath_info.getColumn(i,"prcpdd")
  5300. // 20200401 김현석, 적용일자 세팅, 20200310998
  5301. || fGetAppdd() == ds_main_steppath_info.getColumn(i,"prcpdd")
  5302. )
  5303. {
  5304. cstepPt = i;
  5305. break;
  5306. }
  5307. }
  5308. if( !utlf_isNull(cstepPt) )
  5309. {
  5310. for(var i = cstepPt ; i < stepLth ; i++) {
  5311. if( ( ds_main_steppath_info.getColumn(i,"decirflag") == "D" )
  5312. || ( ds_main_masterinfo_info.getColumn(0,"ioflagcd") == "O" && ds_main_steppath_info.getColumn(i,"decirflag") == "C") ){ // 외래- DSC cp 2008.08.06
  5313. dshPrcpdd = ds_main_steppath_info.getColumn(i,"prcpdd");
  5314. }
  5315. if( (curDate == dshPrcpdd) || (nxtDate == dshPrcpdd) ) {
  5316. var dschdclrtyn = appf_getPatientInfoDetail("dschdclrtyn");
  5317. if( dschdclrtyn == "N" ) {
  5318. var objFontArg = new Object();
  5319. objFontArg.linespace = 2;
  5320. //dschRet = messageBox( dshPrcpdd.substr(0, 4) + "년 " + dshPrcpdd.substr(4, 2) + "월 " + dshPrcpdd.substr(6, 2) + "일 " + "퇴원예정환자입니다. 퇴원예고를", "Q009");
  5321. if(curDate == dshPrcpdd) {
  5322. dschRet = sysf_messageBox( "당일 퇴원예정환자입니다.\n\n퇴원예고를 하시려면 예(Yes),\n퇴원예고 없이 CP를 진행하시려면 아니오(No)를 선택하십시오.\n\n(본원 : 5463, 칠곡 : 2422)", "Q000", "", objFontArg);
  5323. /*
  5324. if( iPrcpgenrflag != "E" ){
  5325. //dschRet = messageBox( "당일 퇴원예정환자입니다. \n\n입퇴원요약기록 작성 후 퇴원예고를", "S004");
  5326. dschRet = sysf_messageBox( "당일 퇴원예정환자입니다. \n\n입퇴원요약기록 작성 후 퇴원예고를", "S006", "퇴원예고 없이 진행|CP를 취소");
  5327. }else{
  5328. dschRet = sysf_messageBox( "당일 퇴원예정환자입니다. \n\n퇴원예고를", "S006", "퇴원예고 없이 진행|CP를 취소");
  5329. }
  5330. */
  5331. } else if(nxtDate == dshPrcpdd) {
  5332. dschRet = sysf_messageBox( "내일 퇴원예정환자입니다.\n\n퇴원예고를 하시려면 예(Yes),\n퇴원예고 없이 CP를 진행하시려면 아니오(No)를 선택하십시오.\n\n(본원 : 5463, 칠곡 : 2422)", "Q000", "", objFontArg);
  5333. /*
  5334. if( iPrcpgenrflag != "E" ){
  5335. //dschRet = messageBox( "내일 퇴원예정환자입니다. \n\n입퇴원요약기록 작성 후 퇴원예고를", "S004");
  5336. dschRet = sysf_messageBox( "내일 퇴원예정환자입니다. \n\n입퇴원요약기록 작성 후 퇴원예고를", "S006", "퇴원예고 없이 진행|CP를 취소");
  5337. }else{
  5338. dschRet = sysf_messageBox( "내일 퇴원예정환자입니다. \n\n퇴원예고를", "S006", "퇴원예고 없이 진행|CP를 취소");
  5339. }
  5340. */
  5341. }
  5342. break;
  5343. }
  5344. }
  5345. }
  5346. if( dschRet == "6") {
  5347. //첫번째 처방일 + 재원일
  5348. var fstdd = ds_main_steppath_info.getColumn(0,"prcpdd");
  5349. fstdd = new Date(eval(fstdd.substr(0, 4)), eval(fstdd.substr(4, 2)) -1, eval(fstdd.substr(6, 2)));
  5350. var hddd = ds_main_masterinfo_info.getColumn(0,"fcstinhospdayno");
  5351. var hd = fstdd.getAddDate(hddd-1);
  5352. //퇴원예고 window open
  5353. frmf_setParameter("SMMMP00800_dclrdd", dshPrcpdd);
  5354. //20200220 이돈희 : CP 적용전에 퇴원예고 여부
  5355. frmf_setParameter("SMMMP00800_beforecpapply", "Y");
  5356. // modal("SPMMO00400");
  5357. frmf_modal("SPMMO00400", "SPMMO00400", null, null, null, null, null, null, null, null, null, null, "M");
  5358. //alert(getParameter("SPMMO00400_rtn_useyn"));
  5359. if( frmf_getParameter("SPMMO00400_rtn_useyn") == "Y") {
  5360. fSetupDschInfo(); //상단정보 재설정
  5361. ds_paminfo.setColumn(0,"dschdclrtyn", "Y");
  5362. ds_paminfo.setColumn(0,"dschdclrdt", frmf_getParameter("SPMMO00400_dclrdd"));
  5363. //(퇴원예고일 != 재원일) cp 취소
  5364. if( frmf_getParameter("SPMMO00400_dclrdd") != dshPrcpdd ) {
  5365. if( sysf_messageBox ( "퇴원예고일이 재원일과 일치하지 않습니다.", "Q007" ) == "6" ){
  5366. fCnclApp();
  5367. } else {
  5368. sysf_messageBox("퇴원예고일이 재원일과 일치하지 않습니다. \n현재 CP를 취소하고 새로운 CP를 ", "C002");
  5369. }
  5370. frmf_clearParameter("SPMMO00400_rtn_useyn");
  5371. return;
  5372. }
  5373. dschAppYN = "Y";
  5374. } else if(frmf_getParameter("SPMMO00400_rtn_useyn") == "N") { //실패
  5375. frmf_clearParameter("SPMMO00400_rtn_useyn");
  5376. return;
  5377. } else{ //퇴원예고 창을 그냥 close 했을때
  5378. // 계속 진행
  5379. dschAppYN = "Y";
  5380. }
  5381. }else if( dschRet == "7") {
  5382. //퇴원예고 지연 --> '60', '70' 제외하고 처방발행
  5383. frmf_clearParameter("SPMMO00400_rtn_useyn");
  5384. dsch = "Y";
  5385. }else if ( dschRet == "2") {
  5386. ds_main_steppath_info.filter("stepstat >= '20'");
  5387. if( ds_temp1_getdata.getColumn(0,"appstat") == "00" && ds_main_steppath_info.rowcount > 0 ){
  5388. if( sysf_messageBox ( "", "Q007" ) == "6" ){
  5389. fCnclApp();
  5390. }
  5391. frmf_clearParameter("SPMMO00400_rtn_useyn");
  5392. return;
  5393. }
  5394. ds_main_steppath_info.filter("");
  5395. }
  5396. }
  5397. }
  5398. }
  5399. }
  5400. /****************************************************************************************
  5401. * Function : fSetupDschInfo
  5402. * Description : 퇴원예고를 하지 않아서 미완성 처방인 건이 있을 경우, 미완성리스트에서 처리하라고 알림 (2008.09.19 JJE)
  5403. * Argument : msgFlag
  5404. * return type :
  5405. * Creator :
  5406. ****************************************************************************************/
  5407. function fSetupDschInfo( msgFlag ){
  5408. //상단올리기
  5409. if( frmf_getParameter("SPMMO00400_rtn_useyn") == "Y" ){
  5410. import_prcp.fDschNotiInit();
  5411. var pamInfoCvs = sysf_getGlobalVariable("paminfo");
  5412. if(!utlf_isNull(pamInfoCvs)){ //cvs가 null이 아닌 경우에만 처리함.
  5413. ds_paminfo.clear(); // model.removeNodeSet ( "/root/paminfo/list" ); //상단화면 정보 초기화
  5414. dsf_setCSVToDs("ds_paminfo", pamInfoCvs);
  5415. ds_init.setColumn(0,"pid",ds_paminfo.getColumn(0,"pid"));
  5416. var vopt_patinfo = ds_paminfo.getColumn(0,"hngnm") + " " + ds_paminfo.getColumn(0,"sex") + "/" + ds_paminfo.getColumn(0,"age" );
  5417. if( !utlf_isNull(ds_paminfo.getColumn(0,"roomcd")) ){
  5418. vopt_patinfo = vopt_patinfo + " " + ds_paminfo.getColumn(0,"roomcd" ) + "호";
  5419. }
  5420. ds_init.setColumn(0,"patinfo", vopt_patinfo );
  5421. }
  5422. var patFlagCvs = sysf_getGlobalVariable("patflag");
  5423. if(patFlagCvs.length != 0 ){ //cvs가 null이 아닌 경우에만 처리함.
  5424. ds_patflag.clear(); //model.removeNodeSet ( "/root/patflag/list" ); //상단화면 정보 초기화
  5425. dsf_setCSVToDs("ds_patflag", patFlagCvs);
  5426. prcpgenrflag = ds_patflag.getColumn(0,"prcpgenrflag");
  5427. }
  5428. }
  5429. frmf_clearParameter("SPMMO00400_rtn_useyn");
  5430. }
  5431. /****************************************************************************************
  5432. * Function : fSetupPrcpDD
  5433. * Description : CPG의 경우 시작/종료스텝 설정에 따른 처방일자 변경 처리
  5434. * Argument : msgFlag
  5435. * return type :
  5436. * Creator :
  5437. ****************************************************************************************/
  5438. function fSetupPrcpDD(){
  5439. var stepPathRef = ds_main_steppath_info; //"/root/main/steppath/info";
  5440. var StartStepDD = "";
  5441. var StartStep = "";
  5442. var EndStep = "";
  5443. var stepPathLen = stepPathRef.rowcount; //instance1.selectNodes(stepPathRef).length;
  5444. if(stepPathLen == 1) {
  5445. StartStepDD = stepPathRef.getColumn(0,"prcpdd");
  5446. StartStep = stepPathRef.getColumn(0,"stepno");
  5447. EndStep = stepPathRef.getColumn(0,"stepno");
  5448. } else {
  5449. StartStepDD = stepPathRef.getColumn(stepPathRef.findRow("startendflag","S"),"prcpdd"); //instance1.selectSingleNode(stepPathRef + "[startendflag = 'S']/prcpdd");
  5450. StartStep = stepPathRef.getColumn(stepPathRef.findRow("startendflag","S"),"stepno"); //instance1.selectSingleNode(stepPathRef + "[startendflag = 'S']/stepno");
  5451. EndStep = stepPathRef.getColumn(stepPathRef.findRow("startendflag","E"),"stepno"); //instance1.selectSingleNode(stepPathRef + "[startendflag = 'E']/stepno");
  5452. }
  5453. // 20200401 김현석, 적용일자 세팅, 20200310998
  5454. //var today = utlf_getCurrentDate();
  5455. var today = fGetAppdd();
  5456. var StartPrcpDD = "";
  5457. var StartStepNo = "";
  5458. var EndStepNo = "";
  5459. var interval = 0;
  5460. var startyn = "N";
  5461. var endyn = "N";
  5462. var iStepNo = "";
  5463. var iPrcpDD = "";
  5464. var iTimes = 0;
  5465. var jTimes = 0;
  5466. var kTimes = 0;
  5467. var iStepStat = 0;
  5468. var iLnkStepno = 0;
  5469. var reAppQstYN = "N"; //적용 스텝 재적용 질문 여부 //appStepYN
  5470. var reAppYN = "N"; //적용 스텝 재발행 여부 //appStepFlag
  5471. var dschStepFlag= "";
  5472. var iAnswstepno = "0";
  5473. var iStepflagcd = "";
  5474. var iSettypecd = "";
  5475. if( utlf_isNull(StartStep) && utlf_isNull(EndStep) ){
  5476. sysf_messageBox ( "설정된 시작/종료 스텝이", "I004" );
  5477. return;
  5478. }
  5479. if(!utlf_isNull(StartStep)){
  5480. StartPrcpDD = StartStepDD;
  5481. StartStepNo = StartStep;
  5482. }
  5483. if(!utlf_isNull(EndStep)){
  5484. EndStepNo = EndStep;
  5485. }
  5486. if( cpgflagcd == "02" ){ //CPG
  5487. if( !utlf_isNull(StartStep) && utlf_isNull(EndStep) ){
  5488. EndStep = stepPathRef.getColumn(stepPathLen-1,"stepno"); //instance1.selectSingleNode(stepPathRef + "["+ stepPathLen +"]/stepno");
  5489. EndStepNo = EndStep;
  5490. }
  5491. interval = 0;
  5492. for( var i = 0; i < stepPathLen; i++ ){
  5493. iStepNo = stepPathRef.getColumn(i,"stepno");
  5494. iStepStat = parseInt(stepPathRef.getColumn(i,"stepstat"));
  5495. iStepflagcd = stepPathRef.getColumn(i,"stepflagcd");
  5496. iAnswstepno = stepPathRef.getColumn(i,"answstepno");
  5497. iSettypecd = stepPathRef.getColumn(i,"settypecd");
  5498. if( ds_main.getColumn(0,"appscopmode") != "W" && iSettypecd == "W" ) break; //CPG+CP에서 CPG스텝 적용할 때에는 CP는 범위에서 제외
  5499. if( startyn == "N" && (iStepNo == StartStepNo || iStepNo == EndStepNo) ) startyn = "Y"; //1step짜리 CP도 처방발행 되도록 오류 수정 (2009.12.22 JJE)
  5500. if( startyn == "N" && iStepStat <= 10 ){
  5501. if( iStepflagcd == "D" ){ //&& iAnswstepno == StartStepNo
  5502. //startyn = "Y"; // 결정 후, action 스텝을 시작스텝으로 재설정 한 경우, start를 Decision으로 잡아줌 (2010.05.18 JJE)
  5503. stepPathRef.setColumn(i,"prcpdd" , today);
  5504. stepPathRef.setColumn(i,"savestatus", "I");
  5505. stepPathRef.setColumn(i,"stepstat" , "10");
  5506. }else{
  5507. stepPathRef.setColumn(i,"prcpdd" , "");
  5508. stepPathRef.setColumn(i,"savestatus", "D");
  5509. }
  5510. }else if( startyn == "Y" ){
  5511. if(endyn == "N"){
  5512. //Decision 스텝인 경우, 미결정 시 I로 하지 않음!
  5513. if( iStepflagcd == "A" || (iStepflagcd == "D" && iAnswstepno != "0") ){
  5514. stepPathRef.setColumn(i,"prcpdd", today);
  5515. stepPathRef.setColumn(i,"savestatus", "I");
  5516. if( iStepStat>10 ){
  5517. stepPathRef.setColumn(i,"stepstat", "10");
  5518. }
  5519. } //A이거나 결정된 D인 경우만 적용대상에 포함
  5520. }else if( endyn == "Y" && iStepStat <= 10 ){
  5521. stepPathRef.setColumn(i,"prcpdd", "");
  5522. }
  5523. }
  5524. if( endyn == "N" && iStepNo == EndStepNo ) endyn = "Y";
  5525. }
  5526. }else{ //CP
  5527. interval = 0;
  5528. kTimes = 1;
  5529. dsf_createDs("ds_temp_steppath_info1");
  5530. ds_main_steppath_info.filter("times=='0' && stepstat=='10' && prcpdd=='"+today+"'");
  5531. ds_temp_steppath_info1.copyData(ds_main_steppath_info,true);
  5532. dsf_createDs("ds_temp_steppath_info2");
  5533. ds_main_steppath_info.filter("times=='0' && stepstat=='30'");
  5534. ds_temp_steppath_info2.copyData(ds_main_steppath_info,true);
  5535. dsf_createDs("ds_temp_steppath_info3");
  5536. ds_main_steppath_info.filter("times=='0'");
  5537. ds_temp_steppath_info3.copyData(ds_main_steppath_info,true);
  5538. var D0StepNodes = ds_temp_steppath_info1;
  5539. var bfD0StepNodes = ds_temp_steppath_info2;
  5540. var chkD0StepNodes = ds_temp_steppath_info3;
  5541. ds_main_steppath_info.filter("");
  5542. //## 중간타기 적용 여부 변수 (첫번째 스텝의 처방일과 시작지정된 스텝의 처방일이 다르면 중간타기로 인식
  5543. var midAppYN = "N";
  5544. var OrgStartPrcpDD = ds_main_steppath_info.getColumn(ds_main_steppath_info.findRow("swimlineno","1"),"prcpdd");
  5545. if( OrgStartPrcpDD != StartPrcpDD ) midAppYN = "Y";
  5546. //D0 CP 외래 진료일(적용 당일)은 해당 일자만 발행 flag로 설정하고 return (2010.05.25 JJE)
  5547. var ioflag = ds_main_masterinfo_info.getColumn(0,"ioflagcd");
  5548. var iAppStat = parseInt(ds_temp1_getdata.getColumn(0,"appstat"));
  5549. if(ioflag != "O" && appStat == "00" && D0StepNodes.rowcount > 0){
  5550. for(var i = 0; i < D0StepNodes.rowcount; i++){
  5551. // var node = D0StepNodes.item(i);
  5552. // var savestatus = node.selectSingleNode("savestatus");
  5553. var times = D0StepNodes.getColumn(i,"times");
  5554. if( times == "0" ) D0StepNodes.setColumn(i,"savestatus","I"); //model.setValue(savestatus, "I");
  5555. }
  5556. return;
  5557. }
  5558. //20180417 이돈희 : CP 처방에서 오늘 날짜 추가 처방을 내는 경우 필터가 해제 안되는 현상 발 생으로 수정
  5559. //이미 적용된 CP도 더이상 저장할 프로토콜이 없음, 중간타기 CP인 경우 미발행된게 추가처방 내면서 같이 나가는 것을 방지 (2010.06.04 JJE)
  5560. if( ioflag != "O" && (iAppStat == 10 || iAppStat >= 30) && bfD0StepNodes.rowcount <= 0 ){ //과거 D0가 있을땐 모두 적용, 그렇지 않은 경우는 건너뛴 중간부터 적용인지 체크
  5561. var notActStepCnt = ds_main_steppath_info.getCaseCount("swimlineno == '1' && stepstat == '10'"); //이미 적용 시 발행X 스텝
  5562. if( notActStepCnt > 0 ){
  5563. return;
  5564. }
  5565. }
  5566. //중간타기 CP가 어떤 문제로 인해 당일 step만 발행된 경우, 미래 step 적용을 위해.. start step을 지정해줌 (2010.07.15)
  5567. var fstStepStat = stepPathRef.getColumn(0,"stepstat");
  5568. var midAppStepNoNode = stepPathRef.getColumn(stepPathRef.findRow("stepstat","30"),"stepno");
  5569. if( ioflag != "O" && chkD0StepNodes.rowcount <= 0 && fstStepStat <= 10 && !utlf_isNull(midAppStepNoNode) ){
  5570. StartStepNo = midAppStepNoNode;
  5571. }
  5572. //steppath에 처방일자 조정
  5573. var iDay = "";
  5574. var iOrgPrcpDD = "";
  5575. var changeDate = "";
  5576. var changeStat = "";
  5577. for( var i = 0; i < stepPathLen; i++ ){
  5578. iStepNo = stepPathRef.getColumn(i,"stepno");
  5579. iPrcpDD = stepPathRef.getColumn(i,"prcpdd");
  5580. iOrgPrcpDD = stepPathRef.getColumn(i,"orgprcpdd");
  5581. iTimes = parseInt(stepPathRef.getColumn(i,"times"));
  5582. iStepStat = parseInt(stepPathRef.getColumn(i,"stepstat"));
  5583. dschStepFlag = stepPathRef.getColumn(i,"decirflag");
  5584. iLnkStepno = stepPathRef.getColumn(i,"lnkstepno");
  5585. changeDate = "";
  5586. changeStat = "";
  5587. if( startyn == "N" && (iStepNo == StartStepNo || utlf_isNull(StartStepNo)) ) { //1step짜리 CP도 처방발행 되도록 오류 수정 (2009.12.22 JJE), D0CP 입원처방 발행 시 날짜가 +1 되는 오루 수정 (2010.04.22)
  5588. if( iTimes == "0" ){
  5589. StartStepNo = iLnkStepno;
  5590. }else{
  5591. startyn = "Y";
  5592. jTimes = iTimes;
  5593. }
  5594. }
  5595. if( startyn == "N" && iStepStat <= 10 ){
  5596. stepPathRef.setColumn(i,"prcpdd", "");
  5597. stepPathRef.setColumn(i,"savestatus", "D");
  5598. }else if( startyn == "Y" ){
  5599. if(endyn == "N" && iStepStat <= 10 ){
  5600. interval = iTimes - jTimes;
  5601. iDay = today.toDate("YYYYMMDD");
  5602. changeDate = iDay.getAddDate(interval, "D").getDateFormat("YYYYMMDD");
  5603. changeStat = "I";
  5604. //어떤 문제로 인해 당일스텝(1day step)만 발행된 경우, 미래 step 적용을 위해 기준 처방일자를 오늘에서 발행된 스텝의 처방일로 지정해줌 (2010.07.15)
  5605. //## 중간타기 적용 시 처방일자가 원래 미래일자 그대로 발행되는 문제 수정 (2010.12.21 JJE)
  5606. if( !utlf_isNull(iOrgPrcpDD) && changeDate != iOrgPrcpDD && midAppYN == "N" ){ //## midAppYN == "N" 조건 추가
  5607. if(today > iOrgPrcpDD){
  5608. changeDate = "";
  5609. changeStat = "D";
  5610. }else{
  5611. changeDate = iOrgPrcpDD; //## 이 부분때문에 중간타기 적용의 경우까지 원래 처방일자로 한번 더 바꿨음 (원래 취지는 시스템의 문제로 적용시 미래처방이 발행 안된경우, 과거 일자가 된 2회차 이후의 스텝을 원래 일자로 설정해주는 부분임)
  5612. }
  5613. }
  5614. stepPathRef.setColumn(i,"prcpdd" , changeDate);
  5615. stepPathRef.setColumn(i,"savestatus", changeStat);
  5616. }else if( endyn == "Y" && iStepStat <= 10 ){
  5617. stepPathRef.getColumn(i,"prcpdd" , "");
  5618. }
  5619. }
  5620. if( endyn == "N" && iStepNo == EndStepNo ) endyn = "Y";
  5621. //퇴원일이 미뤄지므로, 퇴원예정일 변경 - 퇴원예고 시 바뀐 퇴원일로 셋팅되도록 (2009.02.26)
  5622. if( dschStepFlag == "D" ) frmf_setParameter("SMMMP00800_dclrdd", changeDate);
  5623. }
  5624. dsf_deleteDs("ds_temp_steppath_info1");
  5625. dsf_deleteDs("ds_temp_steppath_info2");
  5626. dsf_deleteDs("ds_temp_steppath_info3");
  5627. }
  5628. }
  5629. /****************************************************************************************
  5630. * Function : fResetAppStat
  5631. * Description : 진료대상자리스트의 CP여부, 상단 CP 여부 변경
  5632. * Argument :
  5633. * return type :
  5634. * Creator :
  5635. ****************************************************************************************/
  5636. function fResetAppStat(){
  5637. if( !utlf_isNull(ds_main_steppath_appinfo.getColumn(0,"appstat")) ){
  5638. dsf_makeValue(ds_temp1_getdata,"appstat","string",ds_main_steppath_appinfo.getColumn(0,"appstat"));
  5639. appStat = ds_main_steppath_appinfo.getColumn(0,"appstat");
  5640. ds_main_steppath_appinfo.clear();
  5641. ds_send_srchcond.clear();
  5642. ds_send_steplist.clear();
  5643. ds_send_delprcplist.clear();
  5644. if( cpgflagcd == "01" && appStat != "00" && grp_btn.btn_drop.position.width == 56 ){
  5645. // grp_btn.btn_drop.class = "btn4_letter3";
  5646. //grp_btn.btn_drop.position.left = 1022;
  5647. //grp_btn.btn_drop.position.width = 68;
  5648. grp_btn.btn_drop.position.left = grp_btn.btn_allInfoSave.position.left - 58;
  5649. grp_btn.btn_drop.position.width = 56;
  5650. grp_btn.btn_drop.text = "Drop";
  5651. // grp_btn.btn_drop.redraw();
  5652. }
  5653. //fsetCpInfo("save"); //상단CP여부 변경
  5654. }
  5655. }
  5656. /****************************************************************************************
  5657. * Function : cf_TXMMP00807
  5658. * Description : TXMMP00807 콜백함수
  5659. * Argument :
  5660. * return type :
  5661. * Creator :
  5662. ****************************************************************************************/
  5663. function cf_TXMMP00807(sSvcId, nErrorCode, sErrorMsg) {
  5664. arErrorCode.push(sSvcId, nErrorCode);
  5665. }
  5666. /****************************************************************************************
  5667. * Function : fLoadInqrPopup
  5668. * Description : cpg는 s/e 지점을 진행상태에 따라 재정의한다. (2009.02.17)
  5669. * Argument : inqrPopFlag - SEL: 문진리스트 클릭, APP: 스텝 프로토콜 적용, END:CPG 종료
  5670. * return type :
  5671. * Creator :
  5672. ****************************************************************************************/
  5673. function fLoadInqrPopup( inqrPopFlag ){
  5674. if( utlf_isNull(inqrPopFlag) ) inqrPopFlag = "end";
  5675. frmf_setParameter("SMMMO034_pid" , iPid);
  5676. frmf_setParameter("SMMMO034_cretno" , iCretno);
  5677. frmf_setParameter("SMMMO034_orddd" , iOrddd);
  5678. frmf_setParameter("SMMMO034_ordtype", iIoflag);
  5679. if( inqrPopFlag == "SEL" ) {
  5680. var iRow = objects[grp_biz.swt_formatt.att_tab.grd_inqr.binddataset].rowposition;
  5681. var inqr_path = ds_main_inqrinfo_inqrheader; //"/root/main/inqrinfo/inqrheader";
  5682. frmf_setParameter("SMMMO034_lastcallyn" , "N"); //문진팝업 최종 호출 여부:N
  5683. frmf_setParameter("SMMMO034_cpgappno" , ds_temp1_getdata.getColumn(0,"cpgappno"));
  5684. frmf_setParameter("SMMMO034_cpgno" , cpgno);
  5685. frmf_setParameter("SMMMO034_cpghistseq" , cpghistseq);
  5686. frmf_setParameter("SMMMO034_inqrno" , inqr_path.getColumn(iRow,"inqrno") );
  5687. frmf_setParameter("SMMMO034_inqrhistno" , inqr_path.getColumn(iRow,"inqrhistno") );
  5688. frmf_setParameter("SMMMO034_inqrnm" , inqr_path.getColumn(iRow,"inqrnm") );
  5689. frmf_setParameter("SMMMO034_inqrflag" , inqr_path.getColumn(iRow,"inqrflag") );
  5690. frmf_setParameter("SMMMO034_pntmflag" , "3");
  5691. }else if( inqrPopFlag == "APP" ){
  5692. frmf_setParameter("SMMMO034_lastcallyn" , "N"); //문진팝업 최종 호출 여부:N
  5693. frmf_setParameter("SMMMO034_cpgappno" , appNo_SMMMO00110);
  5694. frmf_setParameter("SMMMO034_cpgno" , cpgno);
  5695. frmf_setParameter("SMMMO034_cpghistseq" , cpghistseq);
  5696. frmf_setParameter("SMMMO034_appyn" , "Y");
  5697. frmf_setParameter("SMMMO034_steplistno" , stepArray_SMMMO00110); //적용구간 내 스텝 리스트
  5698. frmf_setParameter("SMMMO034_pntmflag" , "3");
  5699. }else if( inqrPopFlag == "END" ){
  5700. frmf_setParameter("SMMMO034_lastcallyn" , "Y"); //문진팝업 최종 호출 여부:Y(퇴원예고시점에 필수처방사유 문진까지 함께 조회하기 위해)
  5701. frmf_setParameter("SMMMO034_cpgappno" , appNo_SMMMO00110);
  5702. frmf_setParameter("SMMMO034_cpgno" , cpgno);
  5703. frmf_setParameter("SMMMO034_cpghistseq" , cpghistseq);
  5704. frmf_setParameter("SMMMO034_appyn" , "Y");
  5705. }
  5706. // modal("SPMMP03400"); //문진팝업
  5707. frmf_modal("SPMMP03400", "SPMMP03400", null, null, null, null, null, null, null, null, null, null, "M");
  5708. frmf_clearParameter("SMMMO034_lastcallyn");
  5709. frmf_clearParameter("SMMMO034_cpgappno");
  5710. frmf_clearParameter("SMMMO034_cpgno");
  5711. frmf_clearParameter("SMMMO034_cpghistseq");
  5712. frmf_clearParameter("SMMMO034_pid");
  5713. frmf_clearParameter("SMMMO034_cretno");
  5714. frmf_clearParameter("SMMMO034_orddd");
  5715. frmf_clearParameter("SMMMO034_ordtype");
  5716. frmf_clearParameter("SMMMO034_inqrno");
  5717. frmf_clearParameter("SMMMO034_inqrhistno");
  5718. frmf_clearParameter("SMMMO034_inqrnm");
  5719. frmf_clearParameter("SMMMO034_inqrflag");
  5720. frmf_clearParameter("SMMMO034_appyn");
  5721. frmf_clearParameter("SMMMO034_steplistno");
  5722. frmf_clearParameter("SMMMO034_pntmflag");
  5723. }
  5724. /****************************************************************************************
  5725. * Function : fMssgInvalPrcp
  5726. * Description : 퇴원예고를 하지 않아서 미완성 처방인 건이 있을 경우, 미완성리스트에서 처리하라고 알림 (2008.09.19 JJE)
  5727. * Argument : msgFlag - 메세지 구분
  5728. * return type :
  5729. * Creator :
  5730. ****************************************************************************************/
  5731. function fMssgInvalPrcp( msgFlag ){
  5732. // 20200401 김현석, 적용일자 세팅, 20200310998
  5733. //var today = utlf_getCurrentDate();
  5734. var today = fGetAppdd();
  5735. var nDate = new Date();
  5736. var nxtDate = nDate.getAddDate(1, "D").getDateFormat();
  5737. var curInvalNodeList = new Dataset;
  5738. var tmrInvalNodeList = new Dataset;
  5739. var curInvalNodeListCnt = 0;
  5740. var tmrInvalNodeListCnt = 0;
  5741. var dschdclrtyn = appf_getPatientInfoDetail("dschdclrtyn");
  5742. if( msgFlag == "1" ){
  5743. if( grp_biz.ivw_detail.url != "emr_cpgxp::SPMMP02200_DetailView.xfdl" ){
  5744. // ivw_detail.instance1.selectNodes("/root/main/prcp/prcplist[prtlstat='12' and (prcpkindcd='60' or prcpkindcd = '70') and (prcpdd = '"+today+"' or prcpdd = '"+nxtDate+"')]");
  5745. curInvalNodeListCnt = grp_biz.ivw_detail.ds_main_prcp_prcplist.getCaseCount("prtlstat == '12' && (prcpkindcd == '60' || prcpkindcd == '70') && (prcpdd == '"+today+"' || prcpdd == '"+nxtDate+"')");
  5746. }
  5747. }else if( msgFlag == "2" ){
  5748. // curInvalNodeList = instance1.selectNodes("/root/main/steppath/info[(stepstat = '20' or stepstat='30') and decirflag = 'D' and (prcpdd = '"+today+"')]");
  5749. // tmrInvalNodeList = instance1.selectNodes("/root/main/steppath/info[(stepstat = '20' or stepstat='30') and decirflag = 'D' and (prcpdd = '"+nxtDate+"')]");
  5750. curInvalNodeListCnt = ds_main_steppath_info.getCaseCount("(stepstat == '20' || stepstat=='30') && decirflag == 'D' && (prcpdd == '"+today+"')");
  5751. tmrInvalNodeListCnt = ds_main_steppath_info.getCaseCount("(stepstat == '20' || stepstat=='30') && decirflag == 'D' && (prcpdd == '"+nxtDate+"')");
  5752. if( curInvalNodeListCnt > 0 && dschdclrtyn == "N" ){
  5753. sysf_messageBox ( "미완성 처방 중 발행되지 않은 퇴원처방이 존재합니다. \n\n퇴원예고 후 미완성처방을 저장", "I008" );
  5754. grp_biz.swt_formatt.tabindex = 1; //btn_saveincomplprcp.dispatch("DOMActivate"); //미완성처방 영역 활성화
  5755. fGetErrPrcpList();
  5756. fCase2ViewMode();
  5757. }
  5758. if( tmrInvalNodeListCnt > 0 && dschdclrtyn == "N" ){
  5759. var objFontArg = new Object();
  5760. objFontArg.linespace = 2;
  5761. //sysf_messageBox ( "실처방으로 발행되지 않은 퇴원처방이 존재합니다. \n이 처방들은 퇴원예고를 하시면 자동 발행됩니다. \n\n퇴원예고를 진행", "I008" );
  5762. sysf_messageBox ( "미발행된 퇴원처방이 존재합니다.\n미발행 처방은 퇴원예고 후 약 1분 뒤 자동 발행됩니다.\n\n(본원 : 5463, 칠곡 : 2422)", "I000" , "", objFontArg);
  5763. }
  5764. }
  5765. }
  5766. function grp_biz_swt_formatt_att_tab_brn_download_onclick(obj:Button, e:ClickEventInfo)
  5767. {
  5768. //저장한 파일을 다운로드한다.
  5769. var attLength = ds_main_attfileinfo_attach.rowcount;
  5770. var iRow = -1;
  5771. if( attLength <= 0 ){
  5772. iRow = -1;
  5773. var msg = sysf_messageBox("다운로드 할 파일이", "E014");
  5774. return;
  5775. }else{
  5776. if( ds_main_attfileinfo_attach.rowposition > -1 ){
  5777. iRow = ds_main_attfileinfo_attach.rowposition;
  5778. }
  5779. // else{
  5780. // if( attLength == 1 ) iRow = 0;
  5781. // }
  5782. }
  5783. if( iRow < 0 ) {
  5784. var msg = sysf_messageBox("다운로드 할 파일을", "C002");
  5785. return;
  5786. } else {
  5787. fDownLoadFile( iRow );
  5788. }
  5789. }
  5790. /****************************************************************************************
  5791. * Function : fDownLoadFile
  5792. * Description : FPT 서버에 저장한 파일을 다운로드 한다.
  5793. * Argument : idx - 선택한 Row
  5794. * return type :
  5795. * Creator :
  5796. ****************************************************************************************/
  5797. function fDownLoadFile( idx ){
  5798. dsf_createDs("ds_temp1_attachfile_filedata");
  5799. var filepath = ds_main_attfileinfo_attach.getColumn(idx,"file");
  5800. var filenm = ds_main_attfileinfo_attach.getColumn(idx,"attfilenm");
  5801. ds_send_reqdata.clear();
  5802. dsf_makeValue(ds_send_reqdata,"filepath","string",filepath);
  5803. // var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
  5804. var fd = new FileDialog;
  5805. var sFileName = ds_main_attfileinfo_attach.getColumn(idx,"attfilenm");; //ds_download.getColumn(0,"attfilenm");
  5806. var objVFile = fd.open("FileSave", FileDialog.SAVE, "%MYDOCUMENT%", sFileName); // 단일 파일 선택
  5807. if (objVFile != "") {
  5808. // model.download(getActionURL("TRMQP00605")+"&filepath="+filepath,localfile);
  5809. var oParam = {};
  5810. oParam.id = "TRMQP00605";
  5811. oParam.service = "prcpbaseapp.CpMngt";
  5812. oParam.method = "reqGetAttFileData";
  5813. oParam.inds = "req=ds_send_reqdata";
  5814. oParam.outds = "ds_temp1_attachfile_filedata=attachfile";
  5815. oParam.async = false;
  5816. oParam.callback = "";
  5817. tranf_submit(oParam);
  5818. var rtn = sysf_messageBox("파일을", "Q004");
  5819. if( rtn == 6 ) {
  5820. // window.exec(localfile);
  5821. dsf_readFileFromDs(objVFile.fullpath, ds_temp1_attachfile_filedata, 0, "filedata"); // 파일저장
  5822. }
  5823. }
  5824. }
  5825. function grp_biz_swt_formatt_monitoring_tab_grd_monitoringlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  5826. {
  5827. var sRow = e.row;
  5828. if ( sRow > -1 ) {
  5829. var slipno = ds_main_mntrinfo_mntrlist.getColumn(sRow,"slipno");
  5830. var sliphistno = ds_main_mntrinfo_mntrlist.getColumn(sRow,"sliphistno");
  5831. ds_send_reqdata.clear();
  5832. dsf_makeValue(ds_send_reqdata,"cpgappno" ,"string", appNo_SMMMO00110);
  5833. dsf_makeValue(ds_send_reqdata,"slipno" ,"string", slipno);
  5834. dsf_makeValue(ds_send_reqdata,"sliphistno" ,"string", sliphistno);
  5835. dsf_makeValue(ds_send_reqdata,"appyn" ,"string", "Y");
  5836. dsf_makeValue(ds_send_reqdata,"histjoinyn" ,"string", "Y");
  5837. var oParam = {};
  5838. oParam.id = "TRMMP00810";
  5839. oParam.service = "cdssmngtapp.ClinicalRuleMngt";
  5840. oParam.method = "reqGetSlipCondList";
  5841. oParam.inds = "req=ds_send_reqdata";
  5842. oParam.outds = "ds_main_mntrdetlinfo_mntrdetllist=mntrdetllist";
  5843. oParam.async = false;
  5844. oParam.callback = "";
  5845. tranf_submit(oParam);
  5846. ds_send_reqdata.clear();
  5847. }
  5848. }
  5849. function ds_main_mntrinfo_mntrlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  5850. {
  5851. var sRow = e.row;
  5852. // var sCol = e.col;
  5853. var slipno = obj.getColumn(sRow,"slipno");
  5854. var sliphistno = obj.getColumn(sRow,"sliphistno");
  5855. if ( sRow > -1 ) {
  5856. if( e.columnid == "alertoffyn" ){
  5857. if( sysf_messageBox( "모니터링 알람 ON/OFF 여부를", "Q012" ) == 7 ){
  5858. return;
  5859. }
  5860. ds_send_reqdata.clear();
  5861. //model.copyNode("/root/send/reqdata", "/root/main/mntrinfo/mntrlist[slipno='"+slipno+"' and sliphistno='"+sliphistno+"']");
  5862. ds_send_reqdata.copyRow(ds_send_reqdata.addRow(),obj,sRow);
  5863. dsf_makeValue(ds_send_reqdata,"cpgappno" ,"string", appNo_SMMMO00110);
  5864. dsf_makeValue(ds_send_reqdata,"attrflagcd" ,"string", "1"); //모니터링
  5865. dsf_makeValue(ds_send_reqdata,"status" ,"string", "U");
  5866. // submit( "TXMMP00810", false );
  5867. var oParam = {};
  5868. oParam.id = "TXMMP00810";
  5869. oParam.service = "prcpmngtapp.CPPrcpMngt";
  5870. oParam.method = "reqSetCpgAttrHistInfo";
  5871. oParam.inds = "req=ds_send_reqdata";
  5872. oParam.async = false;
  5873. oParam.callback = "";
  5874. tranf_submit(oParam);
  5875. }
  5876. }
  5877. }
  5878. function grp_biz_swt_formatt_monitoring_tab_grd_monitoringinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  5879. {
  5880. var sRow = ds_main_formlist_info.rowposition; //환자계획표에서 서식을 띄울수도 있으므로
  5881. if( sRow > -1 ) {
  5882. var formProgFlag = ds_main_formlist_info.getColumn(sRow,"formprogflag");
  5883. var mon = sysf_getCurrentMonitorNumber();
  5884. if( formProgFlag == "OCR" ){
  5885. //OCD(동의서)
  5886. //mainObj.window.javascript.open("SMMRF02300");
  5887. var prcpgenrflag = ds_patflag.getColumn(0,"prcpgenrflag");
  5888. var formcd = ds_main_formlist_info.getColumn(sRow,"formcd");
  5889. if ( prcpgenrflag == "O" ) {
  5890. var orddd = ds_paminfo.getColumn(0,"orddd" );
  5891. } else {
  5892. var orddd = ds_paminfo.getColumn(0,"indd" );
  5893. }
  5894. var cretno = ds_paminfo.getColumn(0,"cretno");
  5895. var ordtype = ds_paminfo.getColumn(0,"ioflag");
  5896. var formtypecls = ds_main_formlist_info.getColumn(sRow,"formtypecls");
  5897. var ocrtagprntyn = ds_main_formlist_info.getColumn(sRow,"ocrtagprntyn");
  5898. // modal( "SMMRF02300" );
  5899. frmf_modal("SMMRF02300", "SMMRF02300", null, null, null, null, null, null, null, null, null, null, "M");
  5900. fGetFormList("R"); //서식목록을 조회한다(재조회)
  5901. }else if( formProgFlag == "PROF" ){
  5902. //제증명
  5903. var mainObj = frmf_getMainViewer();
  5904. var formcd = ds_main_formlist_info.getColumn(sRow,"formcd");
  5905. var formrecseq = ds_main_formlist_info.getColumn(sRow,"formrecseq");
  5906. var sortseq = ds_main_formlist_info.getColumn(sRow,"formseq");
  5907. dsf_makeValue(ds_temp_popup,"pid" ,"string", iPid);
  5908. dsf_makeValue(ds_temp_popup,"orddd" ,"string", iOrddd);
  5909. dsf_makeValue(ds_temp_popup,"cretno" ,"string", iCretno);
  5910. dsf_makeValue(ds_temp_popup,"ordtype" ,"string", iIoflag);
  5911. dsf_makeValue(ds_temp_popup,"disflag" ,"string", "popup");
  5912. // model.makeValue("/root/temp/popup/profcertseq/formrecseq", formrecseq);
  5913. dsf_makeValue(ds_temp_popup,"formrecseq","string", formrecseq);
  5914. // 같은화면을 open, modal 로 두번 연다??
  5915. // mainObj.window.javascript.open("SMMMR02900", mon, 0, 0, "SMMMR02900", "/root/temp/popup", "/root/temp/popup" );
  5916. // modal("SMMMR02900", mon, 0, 0, "SMMMR02900", "/root/temp/popup", "/root/temp/popup" );
  5917. var objArg = new Object();
  5918. objArg.arg_ds_temp_popup = ds_temp_popup;
  5919. mainObj.frmf_open("SMMMR02900", "SMMMR02900", objArg, null, mon, 0, 0, null, null, null, null, null, "M");
  5920. frmf_modal("SMMMR02900", "SMMMR02900", objArg, null, mon, 0, 0, null, null, null, null, null, "M");
  5921. fGetFormList("R"); //서식목록을 조회한다(재조회)
  5922. }else{
  5923. //서식 fOpenRec();
  5924. var mainObj = frmf_getMainViewer();
  5925. var OpenFormYN = mainObj.ds_hidden.getColumn(0,"choinewform" );
  5926. if( utlf_isNull(OpenFormYN) ){
  5927. //messageBox("진료기록 메인 화면을 여는 중입니다. \n조회할 서식을 다시 한번", "C002");
  5928. fGetFormList("O"); //서식목록을 조회한다(재조회)
  5929. return;
  5930. }else{
  5931. //수술기록지/DSC기록지 선택 시, 환자의 예약수술이 1건인 경우, 수술예약번호를 던진다 (상단 수술예약번호 정보)
  5932. var srcformcd = ds_main_formlist_info.getColumn(sRow,"srcformcd");
  5933. if( srcformcd == "0000000676" || srcformcd == "0000003325" ){
  5934. dsf_createDs("ds_send_pamdata");
  5935. dsf_makeValue(ds_send_pamdata,"pid" ,"string" , ds_paminfo.getColumn(0,"pid") );
  5936. dsf_makeValue(ds_send_pamdata,"orddd" ,"string" , iOrddd );
  5937. var rsrvOpCnt = 0;
  5938. // submit("TRMMP02801", false);
  5939. var oParam = {};
  5940. oParam.id = "TRMMP02801";
  5941. oParam.service = "prcpmngtapp.CPPrcpMngt";
  5942. oParam.method = "reqGetOPList";
  5943. oParam.inds = "req=ds_send_pamdata";
  5944. oParam.outds = "ds_temp1_oplist_info=info";
  5945. oParam.async = false;
  5946. oParam.callback = "";
  5947. tranf_submit(oParam);
  5948. rsrvOpCnt = ds_temp1_oplist_info.rowcount; //instance1.selectNodes("/root/temp1/oplist/info").length;
  5949. if( rsrvOpCnt > 1 ){
  5950. frmf_setParameter ( "SMMMO00800_returnFlag", "OCR" );
  5951. // modal("SPMMP02800", 1, 0, 0, "SPMMP02800", "/root/paminfo/list", "/root/send/pamdata" );
  5952. var objArg = new Object();
  5953. objArg.arg_ds_paminfo = ds_paminfo;
  5954. frmf_modal("SPMMP02800", "SPMMP02800", objArg, null, 1, 0, 0, null, null, null, null, null, "M");
  5955. if( frmf_getParameter("SMMMO00800_returnFlag") == "OCR" ){
  5956. //리스트 팝업에서 선택하지 않고, 그냥 닫은 경우
  5957. rsrvOpCnt = 0;
  5958. }else{
  5959. //리스트에서 1건 선택하거나, 그외의 경우, 수술예약리스트에서 1건을 택했을 수 있으므로, 다시 카운트한다
  5960. rsrvOpCnt = ds_temp1_oplist_info.rowcount; //instance1.selectNodes("/root/temp1/oplist/info").length;
  5961. }
  5962. frmf_clearParameter( "SMMMO00800_returnFlag" );
  5963. }
  5964. if( rsrvOpCnt == 1 ){
  5965. var opstatcd = ds_temp1_oplist_info.getColumn(0,"opstatcd");
  5966. //확정된 수술이 1건 존재 시,
  5967. if(opstatcd != "00" && opstatcd != "10"){
  5968. //수술기록예정일 = 수술확정일
  5969. var ioflag = "T" // 수술일 경우 ioflag:T
  5970. var pid = iPid
  5971. var opcnfmdd = ds_temp1_oplist_info.getColumn(0,"opcnfmdd");
  5972. var cretno = "";
  5973. var instcd = ds_paminfo.getColumn(0,"instcd");
  5974. var perfdeptcd = ds_temp1_oplist_info.getColumn(0,"perfdeptcd"); //v
  5975. var perfdrid = ds_temp1_oplist_info.getColumn(0,"perfdrid"); //v
  5976. var patflag = iPrcpgenrflag
  5977. var procflag = "F"; // 최초조회:F , 재조회:R
  5978. var oprsrvno = ds_temp1_oplist_info.getColumn(0,"oprsrvno");
  5979. var ophistno = ds_temp1_oplist_info.getColumn(0,"ophistno"); //v
  5980. var srchdd = ds_main_formlist_info.getColumn(sRow,"prcpdd"); //조회일자
  5981. var param = ioflag + "▦" +
  5982. pid + "▦" +
  5983. opcnfmdd + "▦" +
  5984. cretno + "▦" +
  5985. instcd + "▦" +
  5986. perfdeptcd + "▦" +
  5987. perfdrid + "▦" +
  5988. patflag + "▦" +
  5989. procflag + "▦" +
  5990. oprsrvno + "▦" +
  5991. ophistno + "▦" +
  5992. srchdd;
  5993. //frmf_setParameter("condparam", param);
  5994. // modal("SPMMO08900", 1, 0, 0, "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  5995. //frmf_modal("SPMMO08900", "SPMMO08900", null, null, 1, 0, 0, 0, 0, null, null, null, "M");
  5996. appf_initPatientInfo(param);
  5997. }
  5998. } //end if( rsrvOpCnt == 1 )
  5999. dsf_deleteDs("ds_send_pamdata");
  6000. }
  6001. }
  6002. var formcd = ds_main_formlist_info.getColumn(sRow,"formcd");
  6003. var formrecseq = ds_main_formlist_info.getColumn(sRow,"formrecseq");
  6004. var seq = ds_main_formlist_info.getColumn(sRow,"formseq");
  6005. var prcpdd = ds_main_formlist_info.getColumn(sRow,"prcpdd"); //조회일자
  6006. var calledflag = "cpgmain|" + seq; // 서식프로그램에서 알 수 있도록 CP구분자 + 서식 seq (필요하면 값을 더 추가)
  6007. var formprogflag = ds_main_formlist_info.getColumn(sRow, "formprogflag");
  6008. mainObj.fOpenFormByOther(formcd, formrecseq, calledflag, prcpdd, formprogflag);
  6009. }
  6010. }
  6011. }
  6012. /****************************************************************************************
  6013. * Function : fMssg
  6014. * Description : drop, 평가 메세지 출력
  6015. * Argument :
  6016. * return type :
  6017. * Creator :
  6018. ****************************************************************************************/
  6019. function fMssg(){
  6020. if( !frmf_checkAuth("X") ){
  6021. return true; //조회모드일 경우, Drop 유도, CP진행여부 Msg 필요 없음
  6022. }
  6023. var prcpgenrflag = ds_patflag.getColumn(0,"prcpgenrflag");
  6024. var indd = ds_paminfo.getColumn(0,"indd");
  6025. var D0stepNode = ds_main_steppath_info.getColumn(ds_main_steppath_info.findRowExpr("times == '0' && stepstat == '10'"),"stepno");
  6026. var prcpddNode = ds_main_steppath_info.getColumn(ds_main_steppath_info.findRow("times","0"),"prcpdd");
  6027. var ioflag = ds_main_masterinfo_info.getColumn(0,"ioflagcd"); //pymi 2008.08.07
  6028. if( cpgflagcd == "01" ){
  6029. //CP check =>
  6030. //D0 CP일 경우, D0처방을 OCS에 미리 setting한다. (2008.11.28)
  6031. if( appStat == "00" ){
  6032. if( prcpgenrflag != "O" ){
  6033. ds_init.setColumn(0,"prcpkindcd", "20");
  6034. // 20200401 김현석, 적용일자 세팅, 20200310998
  6035. //ds_init.setColumn(0,"prcpdd" , utlf_getCurrentDate()); //2009.03.14
  6036. ds_init.setColumn(0,"prcpdd" , fGetAppdd());
  6037. }
  6038. if( ioflag != "O" && !utlf_isNull(D0stepNode) ){
  6039. var setcond = ds_main_steppath_info.getColumn(ds_main_steppath_info.findRow("times","0"),"setno");
  6040. var etcLnkSpec = "0" + "|" + appNo_SMMMO00110;
  6041. dsf_makeValue(ds_send_reqdata,"cpgno" , ds_main_masterinfo_info.getColumn(0,"cpgno") );
  6042. dsf_makeValue(ds_send_reqdata,"cpghistseq" , ds_main_masterinfo_info.getColumn(0,"cpghistseq") );
  6043. dsf_makeValue(ds_send_reqdata,"cpgappno" , appNo_SMMMO00110 );
  6044. dsf_makeValue(ds_send_reqdata,"dayno" , "0" );
  6045. dsf_makeValue(ds_send_reqdata,"setcond" , setcond );
  6046. dsf_makeValue(ds_send_reqdata,"cpgflagcd" , settypecd );
  6047. dsf_makeValue(ds_send_reqdata,"etclnkspec" , etcLnkSpec ); //submit 수행 시 조회된 etcLnkSpec가 addPrcpSetValue() 수행으로 다시 reset되므로 etcLnkSpec는 보내고/받을 필요가 없음.
  6048. dsf_makeValue(ds_send_reqdata,"prcpgenrflag", ds_patflag.getColumn(0,"prcpgenrflag") );
  6049. dsf_makeValue(ds_send_reqdata,"prcpddcond" , utlf_getCurrentDate() ); //2009.03.10 추가
  6050. dsf_setDefaultVal(ds_send_reqdata, "srchcondflag:G");
  6051. var oParam = {};
  6052. oParam.id = "TRMMP02202";
  6053. oParam.service = "prcpbaseapp.CpMngt";
  6054. oParam.method = "reqGetPrcpSetList";
  6055. oParam.inds = "req=ds_send_reqdata";
  6056. oParam.outds = "ds_main_prcpsrch_prcplist=prcplist ds_main_prcpsrch_essprcplist=essprcplist";
  6057. oParam.async = false;
  6058. oParam.callback = "cf_TRMMP02202";
  6059. tranf_submit(oParam);
  6060. if( arErrorCode.pop("TRMMP02202") > -1 ){
  6061. cpTmpPrcpSaveYN_SMMMO00110 = "Y";
  6062. // copyNodesetType("/root/main/prcp", "/root/main/prcpsrch", "replace", model, model);
  6063. import_prcp.ds_main_prcplist.copyData(ds_main_prcpsrch_prcplist);
  6064. // ds_main_prcp_essprcplist.copyData(ds_main_prcpsrch_essprcplist);
  6065. // model.removeNodeset ( "/root/main/prcpsrch/prcplist" );
  6066. ds_main_prcpsrch_prcplist.clear();
  6067. var prcpNodeList = import_prcp.ds_main_prcplist; //instance1.selectNodes("/root/main/prcp/prcplist");
  6068. var prcpNodeListCnt = prcpNodeList.rowcount;
  6069. var srchRow = -1;
  6070. for(var i = 0; i < prcpNodeListCnt; i++){
  6071. srchRow++;
  6072. import_prcp.lf_addPrcpSetValue( "main", ds_main_prcplist, srchRow, cpgflagcd);
  6073. import_prcp.ds_main_prcplist.setColumn(srchRow,"etclnkspec", etcLnkSpec);
  6074. }
  6075. // appendChildPrcp( "/root/reset/prcplist", "/root/main/prcp", "main" ); //검색라인추가
  6076. import_prcp.lf_appendChildPrcp("ds_reset_prcplist", "ds_main_prcplist", "main" ); //검색라인추가
  6077. // import_prcp.div_all.grd_prcplist.redraw();
  6078. // model.recalculate();
  6079. }
  6080. ds_send_reqdata.clear();
  6081. }
  6082. }else if( appStat == "12" && prcpgenrflag != "O" && ioflag != "O"){ // ioflag != "O" 조건 추가 pymi 2008.08.07 (외래 -dsc cp 일 경우는 발생하지 않도록)
  6083. var appstat = ds_init_rsltgetdata_getdata.getColumn(0,"appstat");
  6084. var cpgnm = ds_main_masterinfo_info.getColumn(0,"cpgnm");
  6085. var hngnm = ds_paminfo.getColumn(0,"hngnm");
  6086. //외래(D0) 진행 후, 입원전환 즉시일 경우, 바로 CP Main Open
  6087. //var rtnval = messageBox("[" + hngnm + "]환자의 [" + cpgnm + "] CP를", "Q003");
  6088. var rtnval = sysf_messageBox("[" + hngnm + "]환자의 [" + cpgnm + "] CP를 \n\n계속 진행", "S004");
  6089. // 2008.07.18 pymi 취소(51) 일때 appstat update
  6090. if(rtnval == 2){ //취소
  6091. ds_send_savedata.clear();
  6092. dsf_makeValue(ds_send_savedata,"cpgappno" ,"string",ds_temp1_getdata.getColumn(0,"cpgappno"));
  6093. dsf_makeValue(ds_send_savedata,"appstat" ,"string","51");
  6094. dsf_makeValue(ds_send_savedata,"prcpgenrflag","string","O");
  6095. var oParam = {};
  6096. oParam.id = "TXMMP00808";
  6097. oParam.service = "prcpmngtapp.CPPrcpMngt";
  6098. oParam.method = "reqSetCPPatStatVal";
  6099. oParam.inds = "req=ds_send_savedata";
  6100. oParam.outds = "";
  6101. oParam.async = false;
  6102. oParam.callback = "cf_TXMMP00808";
  6103. tranf_submit(oParam);
  6104. if(arErrorCode.pop("TXMMP00808") > -1) {
  6105. ds_temp1_getdata.setColumn(0,"appstat", "51");
  6106. fOpenPrcpWindow();
  6107. }
  6108. return true;
  6109. }else if(rtnval == 6){
  6110. //상태 update? Y" N"
  6111. ds_temp1_getdata.setColumn(0,"appstat", "10");
  6112. appStat = ds_temp1_getdata.getColumn(0,"appstat");
  6113. //바로 적용 처리한다 (2008.09.29 JJE)
  6114. // btn_allInfoSave.dispatch("DOMActivate");
  6115. var ev = new ClickEventInfo;
  6116. frmf_inputEnterKey("grp_btn.btn_allInfoSave", "onclick", ev );
  6117. return;
  6118. }else{
  6119. //dop 창 띄움
  6120. //btn_drop.dispatch("DOMActivate"); //질문 없이 Drop창 띄우도록 수정(2008.07.31 JJE)
  6121. fDropApp("");
  6122. return true;
  6123. }
  6124. }
  6125. }else{
  6126. //CPG check =>
  6127. //CPG는 무조건 당일/추가처방으로 세팅..
  6128. ds_init.setColumn(0,"prcpkindcd", "20");
  6129. // 20200401 김현석, 적용일자 세팅, 20200310998
  6130. //ds_init.setColumn(0,"prcpdd" , utlf_getCurrentDate());
  6131. ds_init.setColumn(0,"prcpdd" , fGetAppdd());
  6132. alert("CPG는 무조건 당일/추가처방으로 세팅");
  6133. var mntrList = ds_main_mntrinfo_mntrlist; //instance1.selectNodes("/root/main/mntrinfo/mntrlist");
  6134. ds_main_limtminfo_limheaderinfo.filter("alertstatcd=='I' || alertstatcd=='T'"); //E는 완전히 끝난상태, W는 알람횟수가 더 남았을때 팝업 확인, I/T는 알람횟수가 더 남았을때 미확인(I:잔여 알람횟수 존재, T:마지막 알람)
  6135. var limtList = ds_main_limtminfo_limheaderinfo; //instance1.selectNodes("/root/main/limtminfo/limheaderinfo[alertstatcd='I' or alertstatcd='T']");
  6136. var mntrNode = null;
  6137. var limNode = null;
  6138. var mntrData = "";
  6139. var mAlertstatcd = null;
  6140. var mCpgmntrflag = null;
  6141. var mSlipnm = null;
  6142. var mGuidedocucnts = null;
  6143. var mAlertoffyn = null;
  6144. var mSlipno = null;
  6145. var mAlertGrde = null;
  6146. var limtData = "";
  6147. var lAlertstatcd = "";
  6148. var lLimno = null;
  6149. var lLimhistno = null;
  6150. var lAlertoffyn = null;
  6151. var lAlertGrde = null;
  6152. var lTitle = null;
  6153. var lStepno = null;
  6154. var lStepnm = null;
  6155. //모니터링 알람 (팝업)
  6156. if( mntrList.rowcount > 0 ){
  6157. for( var i = 0; i < mntrList.rowcount; i++ ){
  6158. // mntrNode = mntrList.item(i);
  6159. mAlertstatcd = mntrList.getColumn(i,"alertstatcd");
  6160. mCpgmntrflag = mntrList.getColumn(i,"cpgmntrflag");
  6161. mSlipnm = mntrList.getColumn(i,"slipnm");
  6162. mGuidedocucnts = mntrList.getColumn(i,"guidedocucnts");
  6163. mAlertoffyn = mntrList.getColumn(i,"alertoffyn");
  6164. mSlipno = mntrList.getColumn(i,"slipno");
  6165. mAlertGrde = mntrList.getColumn(i,"alertgrde");
  6166. if( utlf_isNull(mAlertstatcd) || utlf_isNull(mAlertGrde) ) continue;
  6167. // pid ▦ cretno ▦ orddd ▦ ordtype ▦ slipno ▦ cpgappno ▦ alertstatcd ▦ cpgmntrflag ▦ slipnm ▦ guidedocucnts ▦ alertoffyn
  6168. if( (mAlertstatcd == "W") && mAlertGrde != "C01" ){
  6169. mntrData = iPid + "▦" + iCretno + "▦" + iPrcpgenrflag + "▦" + iOrddd + "▦" + mSlipno + "▦" + appNo_SMMMO00110 + "▦" + mAlertstatcd + "▦" + mCpgmntrflag + "▦" + mSlipnm + "▦" + mGuidedocucnts + "▦" + mAlertoffyn;
  6170. frmf_setParameter( "alertdata_SMMMP00800", mntrData );
  6171. // modal("SPMMP03200", "", "", "", "SPMMP03200");
  6172. frmf_modal("SPMMP03200", "SPMMP03200", null, null, null, null, null, null, null, null, null, null, "M");
  6173. if( !utlf_isNull(frmf_getParameter("alertstatcd_TRMMP03200")) ){
  6174. // model.setValue(mAlertstatcd, getParameter("alertstatcd_TRMMP03200"));
  6175. mntrList.setColumn(i,"alertstatcd",frmf_getParameter("alertstatcd_TRMMP03200"));
  6176. }
  6177. if( !utlf_isNull(frmf_getParameter("alertoffyn_TRMMP03200")) ){
  6178. // model.setValue(mAlertoffyn, getParameter("alertoffyn_TRMMP03200"));
  6179. mntrList.setColumn(i,"alertoffyn",frmf_getParameter("alertoffyn_TRMMP03200"));
  6180. }
  6181. frmf_clearParameter("alertdata_SMMMP00800");
  6182. frmf_clearParameter("alertstatcd_TRMMP03200");
  6183. frmf_clearParameter("alertoffyn_TRMMP03200");
  6184. }
  6185. }
  6186. // grd_monitoringlist.refresh();
  6187. }
  6188. //제한시간 알람 (팝업)
  6189. if( limtList.rowcount > 0 ){
  6190. for( var i = 0; i < limtList.rowcount; i++ ){
  6191. // limNode = limtList.item(i);
  6192. lAlertstatcd = limtList.getColumn(i,"alertstatcd");
  6193. lLimno = limtList.getColumn(i,"limno");
  6194. lLimhistno = limtList.getColumn(i,"limhistno");
  6195. lAlertoffyn = limtList.getColumn(i,"alertoffyn");
  6196. lAlertGrde = limtList.getColumn(i,"alertgrde");
  6197. lTitle = limtList.getColumn(i,"title");
  6198. lStepno = limtList.getColumn(i,"stepno");
  6199. lStepnm = limtList.getColumn(i,"stepnm");
  6200. if( utlf_isNull(lAlertstatcd) || utlf_isNull(lAlertGrde) ) continue;
  6201. // pid ▦ cretno ▦ orddd ▦ ordtype ▦ limno ▦ limhistno ▦ cpgappno ▦ alertstatcd ▦ title ▦ alertoffyn ▦ stepno ▦ stepnm
  6202. if( lAlertstatcd == "T" || lAlertstatcd == "I" ){
  6203. limtData = limtData + iPid + "▦" + iCretno + "▦" + iPrcpgenrflag + "▦" + iOrddd + "▦" + lLimno + "▦" + lLimhistno + "▦" + appNo_SMMMO00110 + "▦" + lAlertstatcd + "▦" + lTitle + "▦" + lAlertoffyn + "▦" + lStepno + "▦" + lStepnm + "▩";
  6204. }
  6205. }
  6206. if( !utlf_isNull(limtData) ){
  6207. frmf_setParameter( "alertdata_SMMMP00800", limtData );
  6208. // modal("SPMMP03300", "", "", "", "SPMMP03300");
  6209. frmf_modal("SPMMP03300", "SPMMP03300", null, null, null, null, null, null, null, null, null, null, "M");
  6210. }
  6211. frmf_clearParameter("alertdata_SMMMP00800");
  6212. }
  6213. ds_main_limtminfo_limheaderinfo.filter("");
  6214. //결정하지 않은 Decision Step 존재 시, 알람 (2009.04.08)
  6215. ds_main_steppath_info.filter("stepflagcd == 'D' && answstepno == '0'");
  6216. dsf_createDs("ds_temp_deciStepNodes");
  6217. ds_temp_deciStepNodes.copyData(ds_main_steppath_info,true);
  6218. ds_main_steppath_info.filter("");
  6219. var deciStepNodes = ds_temp_deciStepNodes; //instance1.selectNodes("/root/main/steppath/info" + "[stepflagcd = 'D' and answstepno='0']");
  6220. var deciStepNoNode = null;
  6221. var deciStepNmNode = null;
  6222. var preStepsStatNode = null;
  6223. if( deciStepNodes.rowcount > 0 ){
  6224. for( var i = 0; i < deciStepNodes.rowcount; i++ ){
  6225. // var node = deciStepNodes.item(i);
  6226. deciStepNoNode = deciStepNodes.getColumn(i,"stepno");
  6227. deciStepNmNode = deciStepNodes.getColumn(i,"stepnm");
  6228. // preStepsStatNode = instance1.selectSingleNode("/root/main/steppath/info" + "[lnkstepno = '" + deciStepNoNode.text + "' and stepflagcd = 'A' and stepstat='30']");
  6229. // if( !utlf_isNull(preStepsStatNode) ){
  6230. preStepsStatNode = ds_main_steppath_info.findRowExpr("lnkstepno == '" + deciStepNoNode + "' && stepflagcd == 'A' && stepstat == '30'");
  6231. if( preStepsStatNode > -1 ){
  6232. //message 출력
  6233. if( utlf_isNull(deciStepNmNode) ) var deciStepNm = "";
  6234. else deciStepNm = deciStepNmNode;
  6235. sysf_messageBox( "Decision Step [" + deciStepNm + "] 이 미결정 상태입니다.\n\nDecision Step을 우클릭하여 결정 메뉴를 선택한 후 연결된 Step들 중 하나를 선택", "I008"); //선택하십시오!
  6236. //이전 스텝의 검사결과 보여달라는 요청 있었지만 요청서가 없어 보류 상태임..
  6237. }
  6238. }
  6239. }
  6240. dsf_deleteDs("ds_temp_deciStepNodes");
  6241. }
  6242. //공통 message
  6243. if( appStat == "50" ){
  6244. sysf_messageBox ( "이미 Drop된 "+cpgFlagNm, "E008" );
  6245. grp_btn.btn_allInfoSave.enable = false;
  6246. grp_btn.btn_drop.enable = false;
  6247. //btn_val.disabled = true;
  6248. return true;
  6249. }else if( appStat == "41" ){
  6250. sysf_messageBox ( "이미 취소된 "+cpgFlagNm, "E008" );
  6251. grp_btn.btn_allInfoSave.enable = false;
  6252. grp_btn.btn_drop.enable = false;
  6253. //btn_val.disabled = true;
  6254. return;
  6255. }
  6256. // 퇴원예고 2008.06.27 pymi(s)
  6257. if(dschAppYN != "Y") {
  6258. if( (ds_temp1_getdata.getColumn(0,"appstat") != "00" && ds_main_steppath_info.findRowExpr("stepstat >= '20'") > -1 )
  6259. || (ds_main_masterinfo_info.getColumn(0,"ioflagcd") == "O" && ds_main_steppath_info.findRowExpr("decirflag == 'C'") > -1) ){ // 외래- DSC cp 2008.08.08
  6260. var curDate = utlf_getCurrentDate();
  6261. // var nxtDate = new Date().getAddDate(1, "D").getDateFormat();
  6262. var nDate = new Date();
  6263. var nxtDate = nDate.getAddDate(1, "D").getDateFormat();
  6264. var stepLth = ds_main_steppath_info.rowcount;
  6265. var cstepPt = "";
  6266. var dshPrcpdd = "";
  6267. var dschRet = "";
  6268. for( var i = 0; i < stepLth; i++) {
  6269. if( curDate == ds_main_steppath_info.getColumn(i, "prcpdd") ) { // model.getValue("/root/main/steppath/info[" + i + "]/prcpdd")
  6270. cstepPt = i;
  6271. break;
  6272. }
  6273. }
  6274. if( !utlf_isNull(cstepPt) ) {
  6275. for(var i = cstepPt ; i <= stepLth ; i++) {
  6276. if( ds_main_steppath_info.getColumn(i,"decirflag") == "D"
  6277. || (ds_main_steppath_info.getColumn(i,"decirflag") == "C" && ds_main_steppath_info.getColumn(i,"stepstat") == "30") ) { // 외래- DSC cp 2008.08.08
  6278. dshPrcpdd = ds_main_steppath_info.getColumn(i,"prcpdd");
  6279. }
  6280. if( (curDate == dshPrcpdd) || (nxtDate == dshPrcpdd) ) {
  6281. if( ds_paminfo.getColumn(0,"dschdclrtyn") == "N" ) {
  6282. var objFontArg = new Object();
  6283. objFontArg.linespace = 2;
  6284. //dschRet = messageBox( dshPrcpdd.substr(0, 4) + "년 " + dshPrcpdd.substr(4, 2) + "월 " + dshPrcpdd.substr(6, 2) + "일 " + "퇴원예정환자입니다. 퇴원예고를", "Q009");
  6285. if( curDate == dshPrcpdd ) {
  6286. dschRet = sysf_messageBox( "당일 퇴원예정환자입니다.\n\n퇴원예고를 하시려면 예(Yes),\n퇴원예고 없이 CP를 진행하시려면 아니오(No)를 선택하십시오.\n\n(본원 : 5463, 칠곡 : 2422)", "Q000", "", objFontArg);
  6287. /*
  6288. if( iPrcpgenrflag != "E" ){
  6289. dschRet = sysf_messageBox( "당일 퇴원예정환자입니다. \n\n입퇴원요약기록 작성 후 퇴원예고를", "S006", "퇴원예고 없이 진행|CP를 취소");
  6290. }else{
  6291. dschRet = sysf_messageBox( "당일 퇴원예정환자입니다. \n\n퇴원예고를", "S006", "퇴원예고 없이 진행|CP를 취소");
  6292. }
  6293. */
  6294. } else if( nxtDate == dshPrcpdd ) {
  6295. dschRet = sysf_messageBox( "내일 퇴원예정환자입니다.\n\n퇴원예고를 하시려면 예(Yes),\n퇴원예고 없이 CP를 진행하시려면 아니오(No)를 선택하십시오.\n\n(본원 : 5463, 칠곡 : 2422)", "Q000", "", objFontArg);
  6296. /*
  6297. if( iPrcpgenrflag != "E" ){
  6298. dschRet = sysf_messageBox( "내일 퇴원예정환자입니다. \n\n입퇴원요약기록 작성 후 퇴원예고를", "S006", "퇴원예고 없이 진행|CP를 취소");
  6299. }else{
  6300. dschRet = sysf_messageBox( "내일 퇴원예정환자입니다. \n\n퇴원예고를", "S006", "퇴원예고 없이 진행|CP를 취소");
  6301. }
  6302. */
  6303. }
  6304. break;
  6305. }
  6306. }
  6307. }
  6308. if( dschRet == "6") {
  6309. //첫번째 처방일 + 재원일
  6310. var fstdd = ds_main_steppath_info.getColumn(0,"prcpdd");
  6311. fstdd = new Date(eval(fstdd.substr(0, 4)), eval(fstdd.substr(4, 2)) -1, eval(fstdd.substr(6, 2)));
  6312. var hddd = parseInt(ds_main_masterinfo_info.getColumn(0,"fcstinhospdayno"));
  6313. var hd = fstdd.getAddDate(hddd-1);
  6314. //퇴원예고 window open
  6315. frmf_setParameter("SMMMP00800_dclrdd", dshPrcpdd);
  6316. // modal("SPMMO00400");
  6317. frmf_modal("SPMMO00400", "SPMMO00400", null, null, null, null, null, null, null, null, null, null, "M");
  6318. if( frmf_getParameter("SPMMO00400_rtn_useyn") == "Y") {
  6319. // 상단정보를 그대로 받아오므로 강제 설정해야 함 2008.08.01
  6320. fSetupDschInfo(); //상단정보 재설정
  6321. ds_paminfo.setColumn(0,"dschdclrtyn", "Y");
  6322. ds_paminfo.setColumn(0,"dschdclrdt" , frmf_getParameter("SPMMO00400_dclrdd"));
  6323. // (퇴원예고일 != 퇴원예정일(dshPrcpdd)) cp drop
  6324. if( frmf_getParameter("SPMMO00400_dclrdd") != dshPrcpdd ) { //if( getParameter("SPMMO00400_dclrdd") != hd.getDateFormat()) {
  6325. frmf_setParameter("cpgappno" , ds_temp1_getdata.getColumn(0,"cpgappno"));
  6326. frmf_setParameter("cpgno" , ds_main_masterinfo_info.getColumn(0,"cpgno"));
  6327. frmf_setParameter("cpghistseq" , ds_main_masterinfo_info.getColumn(0,"cpghistseq"));
  6328. // modal("SPMMP02300");
  6329. frmf_modal("SPMMP02300", "SPMMP02300", null, null, null, null, null, null, null, null, null, null, "M");
  6330. fOpenPrcpWindow();
  6331. }
  6332. //퇴원예고일이 익일이고 18:00 이후이면 실처방 발행하도록
  6333. if( frmf_getParameter("SPMMO00400_dclrdd") == nxtDate ){ // && (getCurrentTime() > "180000")
  6334. // btn_cpbatch.dispatch("DOMActivate");
  6335. var ev = new ClickEventInfo;
  6336. frmf_inputEnterKey("grp_biz.btn_cpbatch", "onclick", ev );
  6337. // (퇴원예고일 == 재원일) cp 평가
  6338. if( frmf_getParameter("SPMMO00400_dclrdd") == dshPrcpdd ) { //if( getParameter("SPMMO00400_dclrdd") == hd.getDateFormat()) {
  6339. frmf_setParameter("cpgappno", ds_temp1_getdata.getColumn(0,"cpgappno"));
  6340. // modal("SPMMP02500");
  6341. frmf_modal("SPMMP02500", "SPMMP02500", null, null, null, null, null, null, null, null, null, null, "M");
  6342. }
  6343. }
  6344. //퇴원예고일이 당일이면 실처방
  6345. if( frmf_getParameter("SPMMO00400_dclrdd") == curDate) {
  6346. // btn_cpbatch.dispatch("DOMActivate");
  6347. var ev = new ClickEventInfo;
  6348. frmf_inputEnterKey("grp_biz.btn_cpbatch", "onclick", ev );
  6349. // (퇴원예고일 == 재원일) cp 평가
  6350. if( cpgflagcd == "01" && frmf_getParameter("SPMMO00400_dclrdd") == dshPrcpdd) {
  6351. if( ioflag == "I" ) {
  6352. frmf_setParameter("cpgappno", ds_temp1_getdata.getColumn(0,"cpgappno"));
  6353. // modal("SPMMP02500");
  6354. frmf_modal("SPMMP02500", "SPMMP02500", null, null, null, null, null, null, null, null, null, null, "M");
  6355. } else if( ioflag == "O" ) { // 외래- dsc cp 2008.08.08 pymi
  6356. ds_main_steppath_info.filter("prcpdd == '"+ frmf_getParameter("SPMMO00400_dclrdd") +"' && startendflag == 'E'");
  6357. if( ds_main_steppath_info.rowcount > 0 ) {
  6358. frmf_setParameter("cpgappno", ds_temp1_getdata.getColumn(0,"cpgappno"));
  6359. // modal("SPMMP02500");
  6360. frmf_modal("SPMMP02500", "SPMMP02500", null, null, null, null, null, null, null, null, null, null, "M");
  6361. }
  6362. ds_main_steppath_info.filter("");
  6363. }
  6364. }
  6365. }
  6366. frmf_clearParameter("SPMMO00400_rtn_useyn");
  6367. return true;
  6368. } else if( frmf_getParameter("SPMMO00400_rtn_useyn") == "N") { //실패
  6369. frmf_clearParameter("SPMMO00400_rtn_useyn");
  6370. } else{ //퇴원예고 창을 그냥 close 했을때
  6371. // 계속 진행
  6372. frmf_clearParameter("SPMMO00400_rtn_useyn");
  6373. dschAppYN = "Y";
  6374. }
  6375. return true;
  6376. }else if( dschRet == "7") {
  6377. //퇴원예고 지연 2008.08.01 '60', '70' 제외하고 처방발행
  6378. dschAppYN = "Y";
  6379. }
  6380. //20200224 이돈희 : 퇴원예고 확인 창에서 취소를 없앰 따라서 "2"에 대한 처리를 주석 처리
  6381. /*
  6382. else if( dschRet == "2" ) {
  6383. //Drop
  6384. frmf_setParameter("cpgappno" , ds_temp1_getdata.getColumn(0,"cpgappno"));
  6385. frmf_setParameter("cpgno" , ds_main_masterinfo_info.getColumn(0,"cpgno"));
  6386. frmf_setParameter("cpghistseq" , ds_main_masterinfo_info.getColumn(0,"cpghistseq"));
  6387. // modal("SPMMP02300");
  6388. frmf_modal("SPMMP02300", "SPMMP02300", null, null, null, null, null, null, null, null, null, null, "M");
  6389. fOpenPrcpWindow();
  6390. return true;
  6391. }
  6392. */
  6393. }
  6394. }
  6395. }
  6396. return true;
  6397. // 2008.06.27 pymi(e)
  6398. }
  6399. /****************************************************************************************
  6400. * Function : cf_TRMMP02202
  6401. * Description : TRMMP02202 콜백함수
  6402. * Argument :
  6403. * return type :
  6404. * Creator :
  6405. ****************************************************************************************/
  6406. function cf_TRMMP02202(sSvcId, nErrorCode, sErrorMsg) {
  6407. arErrorCode.push(sSvcId, nErrorCode);
  6408. dsf_setDefaultVal(ds_main_prcpsrch_prcplist, "prcpvol:0,prcpqty:0,prcptims:0,prcpdayno:0,hosinhosoutflag:-,drugspd:0,mealcalrcnts:0,mealprotcnts:0,hosinprcpresncd:00,prcprefseq:0,ordreqlnkno:0,testreqlnkno:0,prcplnkno:0,prtlno:0,inclprcpno:0,hsctdelivepos:0,hsctlnkno:0,etcprcpflag:-,aftcertflag:-,aftcertdrid:-,prcpvalidd:00000000,specdrid:-,anticncrprtlno:0,anticncrdayno:0,druglnkno:0,rehbprcpcurefreqflag:0,dietprcpgenrflag:-,irpayflag:N,irflag:N,procerdietflag:N,diagtestconttestintvlflag:N,drugindependpackflag:N,diagtestconttestbasetm:0,diagtestconttestorgtims:0,ermediscmngtresncd:-,rehbprcpenddd:-,matrallsizespecid:-,rehbprcpcurepartcd:-,lowdrugresncd:N,tfdtlcd:-,dnorreqlnkno:0,subcretno:0,exptmthdfact:-,lowdrugresnetcfact:-,diagtestconttestcdspec:-,drgacptflag:-,anstcnfmneedyn:'',essnprcpyn:N");
  6409. dsf_setDefaultVal(ds_main_prcpsrch_essprcplist, "prcpvol:0,prcpqty:0,prcptims:0,prcpdayno:0,hosinhosoutflag:-,drugspd:0,mealcalrcnts:0,mealprotcnts:0,hosinprcpresncd:00,prcprefseq:0,ordreqlnkno:0,testreqlnkno:0,prcplnkno:0,prtlno:0,inclprcpno:0,hsctdelivepos:0,hsctlnkno:0,etcprcpflag:-,aftcertflag:-,aftcertdrid:-,prcpvalidd:00000000,specdrid:-,anticncrprtlno:0,anticncrdayno:0,druglnkno:0,rehbprcpcurefreqflag:0,dietprcpgenrflag:-,irpayflag:N,irflag:N,procerdietflag:N,diagtestconttestintvlflag:N,drugindependpackflag:N,diagtestconttestbasetm:0,diagtestconttestorgtims:0,ermediscmngtresncd:-,rehbprcpenddd:-,matrallsizespecid:-,rehbprcpcurepartcd:-,lowdrugresncd:N,tfdtlcd:-,dnorreqlnkno:0,subcretno:0,exptmthdfact:-,lowdrugresnetcfact:-,diagtestconttestcdspec:-,drgacptflag:-,anstcnfmneedyn:'',essnprcpyn:N");
  6410. }
  6411. /****************************************************************************************
  6412. * Function : cf_TXMMP00808
  6413. * Description : TXMMP00808 콜백함수
  6414. * Argument :
  6415. * return type :
  6416. * Creator :
  6417. ****************************************************************************************/
  6418. function cf_TXMMP00808(sSvcId, nErrorCode, sErrorMsg) {
  6419. arErrorCode.push(sSvcId, nErrorCode);
  6420. }
  6421. /**
  6422. * @group :
  6423. * @ver : 2007.08
  6424. * @by : 전지은
  6425. * @---------------------------------------------------
  6426. * @type : function
  6427. * @access : public
  6428. * @desc : 환자대상자리스트에서 다른 환자를 선택할 때, 화면을 reset한다
  6429. * @param :
  6430. * @return :
  6431. * @---------------------------------------------------
  6432. */
  6433. function fCloseGPS(){
  6434. sysf_trace("fCloseGPS");
  6435. this.close();
  6436. }
  6437. /**
  6438. * @desc : 처방Main 화면 Open, CP환자인 경우 CP Main 화면 Open 또는 CP검색화면 Open (CP업무 추가 2007.09.27)
  6439. * @
  6440. * @param :
  6441. * @return :
  6442. * @---------------------------------------------------
  6443. */
  6444. function fOpenPrcpMainWnd(sRecFlag){
  6445. utlf_addLog("진료기록, 처방화면 동시 시작, fOpenPrcpMainWnd()");
  6446. var cpflag = ds_root.getColumn(0, "cpflag");
  6447. var pid = ds_source.getColumn(0, "pid");
  6448. var ordrecflag = ds_main_cond.getColumn(0, "ordrecflag");
  6449. var ordtype = utlf_isNull(this.objects["ds_paminfo"]) ? "" : ds_paminfo.getColumn(0, "ordtype");
  6450. fReloadOrdWnd(pid, ordtype); //활성화된 진료관련 화면 재조회
  6451. var monitorNumber = sysf_getCurrentMonitorNumber();
  6452. var consulyn = ds_source.getColumn(0, "consulyn");
  6453. var mainObj = frmf_getMainViewer();
  6454. var curCpObj = mainObj.frmf_findPopup("SMMMP00800"); //활성화된 CP Main 화면 object loading
  6455. var curPrcpObj = mainObj.frmf_findPopup("SMMMO00100"); //활성화된 처방Main 화면 object loading
  6456. var curCpSrchObj = mainObj.frmf_findPopup("SPMMP01200"); //활성화된 CP 검색 화면 object loading
  6457. if(sRecFlag == "Y") { // EMR에 클릭 된경우
  6458. if(!utlf_isNull(curPrcpObj)) { curPrcpObj.fPrcpWndClose(); } //활성화된 처방Main 화면이 있는 경우 close
  6459. if(!utlf_isNull(curCpObj)) { curCpObj.fCloseGPS(); } //활성화된 CP Main화면이 있는 경우 close
  6460. if(!utlf_isNull(curCpSrchObj)){ curCpSrchObj.fCpSrchWndClose(); } //활성화된 CP검색화면이 있는 경우 close
  6461. frmf_setParameter("SMMMO04100_ANSWCNT");
  6462. fChngEMRScrn();// 진료기록 Open
  6463. mainObj.frmf_setFocus();
  6464. } else { // EMR에 체크 되지 않은경우
  6465. var objArg = {};
  6466. objArg.plgv_scrnId = "SMMMO04100";
  6467. var answcnt = interfaceAnswcnt; // 환경설정의 질문값을 가져온다.
  6468. frmf_setParameter("SMMMO04100_ANSWCNT", answcnt);
  6469. if(cpflag == "N"){ //처방 Main Open
  6470. if(!utlf_isNull(curCpObj)){curCpObj.fCloseGPS();} //활성화된 CP Main화면이 있는 경우 close
  6471. if(!utlf_isNull(curCpSrchObj)){curCpSrchObj.fCpSrchWndClose();} //활성화된 CP검색화면이 있는 경우 close
  6472. if(utlf_isNull(curPrcpObj)){ //활성화된 처방화면이 없는 경우, 신규화면을 오픈
  6473. mainObj.frmf_setParameter("SMMMO00100_ordrecflag", ordrecflag);
  6474. mainObj.frmf_setParameter("SMMMO00100_callvisityn", frmf_getParameter("SMMMO04100_callvisityn"));// 응급실 콜비짓 여부
  6475. var sysMessageobj = frmf_getViewer("sysMessage");
  6476. if (answcnt == "004"|| utlf_isNull(answcnt)) { // 처방창과 기록창 모두 오픈
  6477. // 2015.03.25 기록과 처방창을 동시에 열기 위해 추가함(기존의 전처방에서 기록 띄우던 로직 제거)
  6478. //20150717
  6479. utlf_addLog("처방 화면 없을 때 진료메인 시작(창오픈), fOpenPrcpMainWnd(), fChngMainEMRScrn()");
  6480. fChngMainEMRScrn();
  6481. utlf_addLog("처방 화면 없을 때 진료메인 종료(창오픈), fOpenPrcpMainWnd(), fChngMainEMRScrn()");
  6482. //20150717
  6483. utlf_addLog("처방 화면 없을 때 처방 화면 시작(창오픈), fOpenPrcpMainWnd(), frmf_open(SMMMO00100)");
  6484. sysMessageobj.frmf_setParameter("SMMMO04100_ANSWCNT", answcnt);
  6485. sysMessageobj.frmf_open("SMMMO00100", "SMMMO00100", objArg, false, 2, null, null, 1195, 784, null, null, null, "M");
  6486. utlf_addLog("처방 화면 없을 때 처방 화면 종료(창오픈), fOpenPrcpMainWnd(), frmf_open(SMMMO00100)");
  6487. } else { // 기록창만 블라인드
  6488. //20150717
  6489. fChngMainEMRScrn();// 진료기록 Open
  6490. //20150717
  6491. if (ordrecflag =="Y") {
  6492. frmf_clearParameter("SMMMO04100_ANSWCNT");
  6493. }
  6494. sysMessageobj.frmf_open("SMMMO00100", "SMMMO00100", objArg, false, 2, null, null, 1195, 784, null, null, null, "M");
  6495. }
  6496. mainObj.frmf_setFocus();
  6497. }else{
  6498. if(curPrcpObj.fPrcpSavePatList()){}
  6499. // 2015.03.25 기록과 처방창을 동시에 열기 위해 순서변경함, 여기서부터 (기존의 전처방에서 기록 띄우던 로직 제거)
  6500. if (consulyn=="T"){
  6501. ordrecflag = "N";
  6502. }
  6503. if (ordrecflag =="Y") {
  6504. frmf_clearParameter("SMMMO04100_ANSWCNT");
  6505. }
  6506. if (consulyn !="T"){
  6507. //20150717
  6508. utlf_addLog("처방 화면 있을 때 진료메인 시작, fOpenPrcpMainWnd(), fChngMainEMRScrn()");
  6509. fChngMainEMRScrn();
  6510. utlf_addLog("처방 화면 있을 때 진료메인 종료, fOpenPrcpMainWnd(), fChngMainEMRScrn()");
  6511. //20150717
  6512. }
  6513. utlf_addLog("처방 화면 있을 때 처방 화면 재시작, fOpenPrcpMainWnd(), fXReReady()");
  6514. curPrcpObj.ds_init.setColumn(0, "bfprcpload" , "N"); //전처방을 초기화한다.
  6515. //20150717
  6516. curPrcpObj.fXReReady(consulyn);
  6517. // curPrcpObj.lf_onInitOrdListPopup();
  6518. //20150717
  6519. utlf_addLog("처방 화면 있을 때 처방 화면 재종료, fOpenPrcpMainWnd(), fXReReady()");
  6520. //자가보유처방 조회 (최초 처방창을 열때만 호출한다.) 20100210 by LYJ
  6521. if (!utlf_isNull(curPrcpObj)){
  6522. curPrcpObj.fSelfHldPrcpModal();
  6523. }
  6524. //kimsj 처방시 미비기록 유무 확인(message) -- SMMMO00100.js, SMMMO02100.js에서 submit 실행
  6525. if (!utlf_isNull(curPrcpObj)){
  6526. curPrcpObj.fValidRecInfoMsg();
  6527. }
  6528. // 2015.03.25 기록과 처방창을 동시에 열기 위해 순서변경함, 여기까지 (기존의 전처방에서 기록 띄우던 로직 제거)
  6529. // if (consulyn=="T"){
  6530. // ordrecflag = "N";
  6531. // }
  6532. // if (ordrecflag =="Y") {
  6533. // frmf_clearParameter("SMMMO04100_ANSWCNT");
  6534. // }
  6535. //
  6536. // if (consulyn !="T"){
  6537. // fChngMainEMRScrn();
  6538. // }
  6539. if(ordrecflag == "Y")
  6540. curPrcpObj.frmf_setFocus();
  6541. mainObj.frmf_setFocus();
  6542. }
  6543. } else if(cpflag =="Y"){ //CP Main Open
  6544. if(!utlf_isNull(curPrcpObj)){curPrcpObj.fPrcpWndClose();} //활성화된 처방Main화면이 있는 경우 close
  6545. if(!utlf_isNull(curCpSrchObj)){curCpSrchObj.fCpSrchWndClose();} //활성화된 CP검색화면이 있는 경우 close
  6546. if(utlf_isNull(curCpObj)){ //활성화된 CP화면이 없는 경우, 신규화면을 오픈
  6547. mainObj.frmf_setParameter("SMMMO00100_ordrecflag", ordrecflag);
  6548. var sysMessageobj = frmf_getViewer("sysMessage");
  6549. mainObj.frmf_open("SMMMP00800", "SMMMP00800", objArg, false, 2, 0, 0, 1228, 942, null, null, null, "M");
  6550. } else{
  6551. curCpObj.fReconstruct();
  6552. }
  6553. }else if(cpflag =="X"){ //CP 검색 Open
  6554. if(!utlf_isNull(curCpObj)){curCpObj.fCloseGPS();} //활성화된 CP Main화면이 있는 경우 close
  6555. if(!utlf_isNull(curPrcpObj)){curPrcpObj.fPrcpWndClose();} //활성화된 처방Main화면이 있는 경우 close
  6556. if(utlf_isNull(curCpSrchObj)){
  6557. mainObj.frmf_open("SPMMP01200", "SPMMP01200", objArg, false, monitorNumber, null, null, 1195, 775, null, null, null, "M");
  6558. }
  6559. }
  6560. if (consulyn !="T"){ //kskim 중증체류시간 화면(SPMMO21300) 닫기
  6561. fCloseSPMMO21300Wnd();
  6562. }
  6563. }
  6564. utlf_addLog("진료기록, 처방화면 동시 종료, fOpenPrcpMainWnd()");
  6565. }
  6566. /****************************************************************************************
  6567. * Function : cf_TRMMP00807
  6568. * Description : TRMMP00807 콜백함수
  6569. * Argument :
  6570. * return type :
  6571. * Creator :
  6572. ****************************************************************************************/
  6573. function cf_TRMMP00807(sSvcId, nErrorCode, sErrorMsg) {
  6574. if(nErrorCode < 0) return;
  6575. if( !utlf_isNull(ds_temp1_rsltgetdata.getColumn(0, "cpgappno")) ){ // instance1.selectSingleNode("/root/temp1/rsltgetdata/getdata/cpgappno") != null
  6576. ds_temp1_getdata.copyData(ds_temp1_rsltgetdata); //model.copyNode("/root/temp1/getdata", "/root/temp1/rsltgetdata/getdata"); //동일화
  6577. dsf_makeValue(ds_temp1_rsltgetdata, "appstepstatflag", "string", ""); //model.makeValue("/root/temp1/rsltgetdata/getdata/appstepstatflag", "");
  6578. dsf_makeValue(ds_temp1_getdata, "appstepstatflag", "string", ""); //model.makeValue("/root/temp1/getdata/appstepstatflag", "");
  6579. ds_temp1_rsltgetdata.clearData(); //model.removeNodeSet ( "/root/temp1/rsltgetdata/getdata" );
  6580. bCPPatient = true;
  6581. return true;
  6582. }else{
  6583. //CP 아닌 환자
  6584. return false;
  6585. }
  6586. }
  6587. /**
  6588. * @group :
  6589. * @ver : 2008.08
  6590. * @by : 전지은
  6591. * @---------------------------------------------------
  6592. * @type : function
  6593. * @access : public
  6594. * @desc : 미완성처방 팝업에서 처방 저장 후, 처리비용
  6595. * @param :
  6596. * @return :
  6597. * @---------------------------------------------------
  6598. */
  6599. function fAfterInvalPrcpSave(){
  6600. clickBtnNm_SMMMO00110 = "";
  6601. dsf_makeValue(ds_temp1_getdata, "srchcond", "string", "2"); //조회조건 1:로딩 및 재조회, 2:적용 후 재조회, 3:퇴원예고시 문진조회 (20090.5.19 JJE)
  6602. //submit("TRMMP00803", false); //steppath 조회
  6603. var oParam = {};
  6604. oParam.id = "TRMMP00803";
  6605. oParam.service = "prcpbaseapp.CpMngt";
  6606. oParam.method = "reqGetAppStepStat";
  6607. oParam.inds = "req=ds_temp1_getdata";
  6608. oParam.outds = "ds_main_steppath_info=info ds_main_steppath_appinfo=appinfo ds_main_steppath_mntrappinfo=mntrappinfo ds_main_steppath_inqrappinfo=inqrappinfo";
  6609. oParam.async = false;
  6610. oParam.callback = "cf_TRMMP00803";
  6611. tranf_submit(oParam);
  6612. if( !utlf_isNull(ds_main_steppath_appinfo.getColumn(0, "appstat")) ) { // instance1.selectSingleNode("/root/main/steppath/appinfo/appstat") != null
  6613. //model.makeValue( "/root/temp1/getdata/appstat", model.getValue("/root/main/steppath/appinfo/appstat") );
  6614. ds_temp1_getdata.addColumn("appstat", "string");
  6615. ds_temp1_getdata.setColumn(0, "appstat", ds_main_steppath_appinfo.getColumn(0, "appstat"));
  6616. appStat = ds_main_steppath_appinfo.getColumn(0, "appstat"); //model.getValue("/root/main/steppath/appinfo/appstat");
  6617. ds_main_steppath_appinfo.clearData(); // model.removeNodeset("/root/main/steppath/appinfo");
  6618. ds_send_srchcond.clearData(); // model.removeNodeset("/root/send/srchcond");
  6619. ds_send_steplist.clearData(); // model.removeNodeset("/root/send/steplist");
  6620. ds_send_delprcplist.clearData(); // model.removeNodeset("/root/send/delprcplist");
  6621. fRemoveSaveNodeList( 1 );
  6622. }
  6623. tab_refresh();
  6624. }
  6625. //20180224 이돈희 추가 : 설명처방 리스트를 조회
  6626. function fGetHichartList(){
  6627. ds_send_reqdata.clear();
  6628. dsf_makeValue(ds_send_reqdata,"cpgno" ,"string", ds_main_masterinfo_info.getColumn(0,"cpgno"));
  6629. dsf_makeValue(ds_send_reqdata,"cpghistseq" ,"string", ds_main_masterinfo_info.getColumn(0,"cpghistseq"));
  6630. dsf_makeValue(ds_send_reqdata,"cpgappno" ,"string", ds_temp1_getdata.getColumn(0,"cpgappno"));
  6631. var oParam = {};
  6632. oParam.id = "TRMMP00802";
  6633. oParam.service = "prcpbaseapp.CpMngt";
  6634. oParam.method = "reqGetAppCpgHichartList";
  6635. oParam.inds = "req=ds_send_reqdata";
  6636. oParam.outds = "ds_main_hichartlist_info=hichartlist";
  6637. oParam.async = false;
  6638. //oParam.callback = "cf_TRMMP00802";
  6639. tranf_submit(oParam);
  6640. }
  6641. // 20200401 김현석, 예약 CP인 경우 적용일자를 가져오기, 20200310998
  6642. function fGetAppdd()
  6643. {
  6644. var sAppdd = utlf_getCurrentDate();
  6645. var sIndd = utlf_transNullToEmpty(ds_paminfo.getColumn(0, "indd"));
  6646. var sIoflag = utlf_transNullToEmpty(ds_paminfo.getColumn(0, "ioflag"));
  6647. var cphrcd = lf_getHardCDList("Y", "1800000001", 3);
  6648. if (cphrcd == "Y")
  6649. {
  6650. if (sAppdd < sIndd && !utlf_isNull(sIndd))
  6651. {
  6652. sAppdd = sIndd;
  6653. }
  6654. }
  6655. dsf_makeValue(ds_temp1_getdata, "appdd", "string", sAppdd); //model.makeValue("/root/temp1/getdata/appdd", getCurrentDate());
  6656. return sAppdd;
  6657. }]]></Script>
  6658. </Form>
  6659. </FDL>