SMPID20300_입원사후심사관리.xrw 311 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SMPID20300_입원사후심사관리.xrw
  4. * 수정이력
  5. * - 2007.03.22 / 최초작성 / 정주미
  6. * - 2008.06.03 / Modify / 김상진
  7. * - 재개발 및 로직튜닝
  8. * - 화면속도개선
  9. * - 화면상단 인적사항 수정
  10. * - 상병로직 수정
  11. * - 처방 및 특정내역 EDI줄번호로직 수정
  12. * - 수가계산로직 개발
  13. * - 청구금액계산로직 개발
  14. * - 처방그리드 수가단가,1회량,일수,금액 및 edi 단가, 1회량, 일수, 금액 분리
  15. * - 원외처방 특정내역 수정
  16. ******************************************************************************************************
  17. * - TRPID20301 // 심사대상자조회
  18. * - TRPID20302 // 조합기호
  19. * - TRPID20303 // 그룹,싱글,EDI코드 입력에 따라 조회 / 또는 SMPIC00200_수가조회 검색 결과
  20. * - TRPID20304 // 이전명세서목록
  21. * - TRPID20305 // 삭제 처방 조회용
  22. * - TRPID20306 // 입력된 상병코드로 emr.mrtmicd10 테이블을 조회한다.
  23. * - TRPID20307 // 다음 명세서 조회
  24. * - TRPID20308 // SMPMC01300_특이환자관리 팝업에서 특이내역을 추가,삭제한 경우 결과를 표시하기 위해
  25. * - TRPID20308 // 진료과 / 의사명 Combo item을 가져온다. pamcomnapp.PamComn 사용
  26. * - TRPID21602 // 환경조회 : 처방item 순서 셋팅
  27. ******************************************************************************************************
  28. * - TXPID20301 // 사후심사 저장
  29. * - TXPID20302 // "심사중" 상태를 해제한다.
  30. * - TXPID20303 // 생성삭제 : 청구생성/root/main/item1/clbs/insukindnm 자료 삭제
  31. * - TXPID21601 // 환경저장 : 처방item 순서저장
  32. ******************************************************************************************************
  33. * 수가조회
  34. 조정사유 adjtresncd
  35. 처방시작일 ordfromdd
  36. 처방종료일 ordtodd
  37. 그룹수가 grupcalcscorcd
  38. 싱글수가 snglcalcscorcd
  39. edi코드 basecd
  40. 한글명칭 hngnm/root/main/item1/clbs/insukindnm
  41. - fSetSrchCalcScorCd
  42. - fSetNewCalcScorCd //신규추가후 표시
  43. - fSetCalcScorAmt //조회수가 금액표시
  44. 변경일자 updtdd
  45. 수량 drugqty
  46. 횟수 tims
  47. 일수 dayno
  48. - fSetTotDrugQtyAmt
  49. - fSetCalcScorAmt
  50. * - fSetAftJudgTrgtManSrchData ; 대상자 이후 로직
  51. -->
  52. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  53. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  54. <xhtml:head>
  55. <xhtml:title>입원사후심사관리</xhtml:title>
  56. <model id="model1">
  57. <instance id="instance1">
  58. <root xmlns="">
  59. <main>
  60. <item1>
  61. <!-- 인적사항 -->
  62. <clbs>
  63. <clamkey/>
  64. <clamym/>
  65. <clamdg/>
  66. <pid/>
  67. <pidsn/>
  68. <patnm/>
  69. <patrrgstno/>
  70. <judgendyn/>
  71. <clamendyn/>
  72. <clamno/>
  73. <acptno/>
  74. <docuseqno/>
  75. <adjtresncd/>
  76. <docudelresncd/>
  77. <abdresncd/>
  78. <rowstat/>
  79. <workflag/>
  80. <clbtworkflag/>
  81. <ioflag/>
  82. <sdoamsg/>
  83. <rooamsg/>
  84. <undersixageyn/>
  85. <dethyn/>
  86. <opyn/>
  87. <insukindcd/>
  88. <insukindnm/>
  89. <suppkindcd/>
  90. <suppkindnm/>
  91. <payownbrate/>
  92. <ordfildcd/>
  93. <clamdeptcd/>
  94. <orddeptcd/>
  95. <orddrid/>
  96. <arvpathcd/>
  97. <inpathcd/>
  98. <ordrsltcd/>
  99. <insdnm/>
  100. <insuno/>
  101. <insunm/>
  102. <certno/>
  103. <ordfromdd/>
  104. <ordtodd/>
  105. <indd/>
  106. <dschdd/>
  107. <patage/>
  108. <mechage/>
  109. <gender/>
  110. <clamflagcd/>
  111. <chosindayno/>
  112. <medcaredayno/>
  113. <cretno/>
  114. <wardcd/>
  115. <roomcd/>
  116. <indschacptstat/>
  117. <bornbaby/>
  118. <memohist/>
  119. <diaghist/>
  120. <oprcp/>
  121. <patspcfyn/>
  122. <acptamt/>
  123. <bfclamamt/>
  124. <clamamt/>
  125. <bfclamdifamt/>
  126. <bfowndifamt/>
  127. <judgdifamt/>
  128. <ownbamt/>
  129. <insuclamamt/>
  130. <ownbmaxexamt/>
  131. <handcaprfund/>
  132. <subtamt/>
  133. <suppamt/>
  134. <paylimamt/>
  135. <instcd/>
  136. <recalcyn/>
  137. <lastupdtrid/>
  138. <cretfromdd/>
  139. <crettodd/>
  140. <iphsfromdd/>
  141. <iphstodd/>
  142. <rsvordgubn/>
  143. <ownbflag/>
  144. <oprcpdayno/>
  145. <direcprcptims/>
  146. <ordtims/>
  147. <prockindflag/>
  148. <offcharm/>
  149. <mskind/>
  150. <stsioflag/>
  151. <lockyn/>
  152. <cpyn/>
  153. <drgcd/>
  154. <proccorpcd/>
  155. <bdwt/>
  156. <samedateyn/>
  157. <samedocuyn/>
  158. <ordym/>
  159. <clamtypecd/>
  160. <sumtypecd/>
  161. <mig/>
  162. <maxseqno/>
  163. <dispclsp/>
  164. <kstage/>
  165. <kmdc/>
  166. <kdrgnm/>
  167. <suppkindchgresn/>
  168. <totlimitdiffamt/>
  169. <adjtresndesc/>
  170. <rareobstflag/>
  171. <paygrntno/>
  172. <etcordflag/>
  173. </clbs>
  174. <memo>
  175. <judgmemo/>
  176. <judgmemorepeat/>
  177. <edimemo/>
  178. <edimemorepeat/>
  179. </memo>
  180. </item1>
  181. <item2>
  182. <!-- [TRPID20302] 조합기호 입력에 따라 검색한 조합명칭 -->
  183. <incd>
  184. <insucd/>
  185. <insucdnm/>
  186. </incd>
  187. </item2>
  188. <item3>
  189. <!-- 심사대상자의 보험유형에 따라 선택가능한 보조/요율 Combo 설정 -->
  190. <supp>
  191. <suppratenm/>
  192. <supprateid/>
  193. </supp>
  194. </item3>
  195. <list1>
  196. <!-- 상병 -->
  197. <cldi>
  198. <rowstat/>
  199. <workflag/>
  200. <diagkindcd/>
  201. <diagseq/>
  202. <diagcd/>
  203. <diagnm/>
  204. <!-- R/O 를 의미함-->
  205. <clamdeptcd/>
  206. <ordfromdd/>
  207. <toot/>
  208. <toot1/>
  209. <estmspclcd/>
  210. <wundresncd/>
  211. <diagengnm/>
  212. <seqno/>
  213. <vcode/>
  214. <kcd6chk/>
  215. </cldi>
  216. </list1>
  217. <list2>
  218. <!-- 처방 -->
  219. <clod>
  220. <spcljudgyn/>
  221. <workflag/>
  222. <seqno/>
  223. <grupsnglflag/>
  224. <grupseqno/>
  225. <rowstat/>
  226. <initlnno/>
  227. <edilnno/>
  228. <ediitem1/>
  229. <ediitem2/>
  230. <ordfromdd/>
  231. <grupcalcscorcd/>
  232. <matractflag/>
  233. <snglcalcscorcd/>
  234. <basecd/>
  235. <estmcls/>
  236. <estmmncd/>
  237. <estmcd/>
  238. <hngnm/>
  239. <payflag/>
  240. <unitcost/>
  241. <ediunitcost/>
  242. <drugqty/>
  243. <tims/>
  244. <daydrugqty/>
  245. <edidrugqty/>
  246. <dayno/>
  247. <edidayno/>
  248. <amt/>
  249. <ediamt/>
  250. <cnfmcd/>
  251. <lnunitspclspecyn/>
  252. <toot/>
  253. <ordtodd/>
  254. <updtdd/>
  255. <edihospaddamt/>
  256. <ediaddamt/>
  257. <paytotamt/>
  258. <ownbamt/>
  259. <clamamt/>
  260. <choiordamt/>
  261. <edihospaddtotamt/>
  262. <ediaddtotamt/>
  263. <choiordtotamt/>
  264. <totordamt/>
  265. <ownbtotamt/>
  266. <ordnm/>
  267. <edicdflag/>
  268. <adjtresncd/>
  269. <orddeptcd/>
  270. <orddrid/>
  271. <item/>
  272. <item1/>
  273. <item2/>
  274. <totdrugqty/>
  275. <baserlapnt/>
  276. <baseaddrlapnt/>
  277. <pntunitcost/>
  278. <hosinresncd/>
  279. <orddd/>
  280. <ediitem/>
  281. <edicd/>
  282. <rcptunitcost/>
  283. <prcpflag/>
  284. <rcptcalcamt/>
  285. <reductamt/>
  286. <estmcdnm/>
  287. <pynpy1/>
  288. <earncls1/>
  289. <earncls2/>
  290. <earncls3/>
  291. <mechfromdd/>
  292. <mechtodd/>
  293. <unit/>
  294. <calcappyn/>
  295. <erroramtyn/>
  296. <druglimitamt/>
  297. <limitdiffamt/>
  298. <edidruglimitamt/>
  299. <edilimitdiffamt/>
  300. <payownbrate/>
  301. <cpflag/>
  302. </clod>
  303. </list2>
  304. <list3>
  305. <!-- 특정내역 -->
  306. <clsp>
  307. <rowstat/>
  308. <seqno/>
  309. <clodseqno/>
  310. <workflag/>
  311. <unitflag/>
  312. <edilnno/>
  313. <snglcalcscorcd/>
  314. <spclcd/>
  315. <cdnm/>
  316. <spclspec/>
  317. <spclformat/>
  318. <detldesc/>
  319. <oldedilnno/>
  320. <initedilnno/>
  321. <oldspclcd/>
  322. </clsp>
  323. </list3>
  324. <item5>
  325. <!-- [TRPID20303] 그룹,싱글,EDI코드 입력에 따라 조회 / 또는 SMPIC00200_수가조회 검색 결과 -->
  326. <mech>
  327. <spcljudgyn/>
  328. <seqno/>
  329. <grupsnglflag/>
  330. <grupseqno/>
  331. <rowstat/>
  332. <initlnno/>
  333. <edilnno/>
  334. <ediitem1/>
  335. <ediitem2/>
  336. <ordfromdd/>
  337. <ordtodd/>
  338. <orddd/>
  339. <grupcalcscorcd/>
  340. <snglcalcscorcd/>
  341. <basecd/>
  342. <estmcls/>
  343. <estmmncd/>
  344. <estmcd/>
  345. <hngnm/>
  346. <payflag/>
  347. <ediunitcost/>
  348. <edidrugqty/>
  349. <tims/>
  350. <daydrugqty/>
  351. <dayno/>
  352. <edidayno/>
  353. <ediamt/>
  354. <cnfmcd/>
  355. <lnunitspclspecyn/>
  356. <toot/>
  357. <updtdd/>
  358. <adjtresncd/>
  359. <edihospaddamt/>
  360. <ediaddamt/>
  361. <paytotamt/>
  362. <ownbamt/>
  363. <clamamt/>
  364. <choiordamt/>
  365. <edihospaddtotamt/>
  366. <ediaddtotamt/>
  367. <choiordtotamt/>
  368. <totordamt/>
  369. <ownbtotamt/>
  370. <matractflag/>
  371. <ordnm/>
  372. <edicdflag/>
  373. <orddeptcd/>
  374. <orddrid/>
  375. <item/>
  376. <unitcost/>
  377. <drugqty/>
  378. <totdrugqty/>
  379. <amt/>
  380. <baserlapnt/>
  381. <baseaddrlapnt/>
  382. <pntunitcost/>
  383. <hosinresncd/>
  384. <ediitem/>
  385. <edicd/>
  386. <rcptunitcost/>
  387. <prcpflag/>
  388. <rcptcalcamt/>
  389. <estmcdnm/>
  390. <mechfromdd/>
  391. <mechtodd/>
  392. <execdt/>
  393. <cnfmcd/>
  394. <clamspclcd/>
  395. <trustinstno/>
  396. <calcappyn/>
  397. <hgaddyn/>
  398. </mech>
  399. </item5>
  400. <list4>
  401. <!-- [TRPID20304] 이전 명세서 목록 -->
  402. <clbs>
  403. <clamym/>
  404. <clamdg/>
  405. <pid/>
  406. <pidsn/>
  407. <ioflag/>
  408. <ordfromdd/>
  409. <ordfildcd/>
  410. <orddeptcd/>
  411. <orddrid/>
  412. <insukind/>
  413. <suppkind/>
  414. <judgendyn/>
  415. <clamstat/>
  416. <delresn/>
  417. <docuseqno/>
  418. <clamkey/>
  419. <diagcd/>
  420. </clbs>
  421. </list4>
  422. <list5>
  423. <clod>
  424. <!-- [TRPID20305] 삭제 처방 조회용 -->
  425. <update/>
  426. <rowstat/>
  427. <spcljudgyn/>
  428. <matractflag/>
  429. <payflag/>
  430. <seqno/>
  431. <adjtresncd/>
  432. <edilnno/>
  433. <ediitem1/>
  434. <ediitem2/>
  435. <ordfromdd/>
  436. <grupcalcscorcd/>
  437. <snglcalcscorcd/>
  438. <edicd/>
  439. <hngnm/>
  440. <edicdflag/>
  441. <ediunitcost/>
  442. <edidrugqty/>
  443. <tims/>
  444. <dayno/>
  445. <ediamt/>
  446. <cnfmcd/>
  447. <lnunitspclspecyn/>
  448. <ordtodd/>
  449. <ordnm/>
  450. <lastupdtdt/>
  451. </clod>
  452. </list5>
  453. <list6>
  454. <delclod>
  455. <!-- 처방휴지통: 삭제된 처방 -->
  456. <spcljudgyn/>
  457. <seqno/>
  458. <grupsnglflag/>
  459. <grupseqno/>
  460. <rowstat/>
  461. <initlnno/>
  462. <edilnno/>
  463. <ediitem1/>
  464. <ediitem2/>
  465. <ordfromdd/>
  466. <grupcalcscorcd/>
  467. <matractflag/>
  468. <snglcalcscorcd/>
  469. <basecd/>
  470. <estmcls/>
  471. <estmmncd/>
  472. <estmcd/>
  473. <hngnm/>
  474. <payflag/>
  475. <ediunitcost/>
  476. <edidrugqty/>
  477. <tims/>
  478. <daydrugqty/>
  479. <dayno/>
  480. <ediamt/>
  481. <cnfmcd/>
  482. <lnunitspclspecyn/>
  483. <toot/>
  484. <ordtodd/>
  485. <updtdd/>
  486. <edihospaddamt/>
  487. <ediaddamt/>
  488. <paytotamt/>
  489. <ownbamt/>
  490. <clamamt/>
  491. <choiordamt/>
  492. <edihospaddtotamt/>
  493. <ediaddtotamt/>
  494. <choiordtotamt/>
  495. <totordamt/>
  496. <ownbtotamt/>
  497. <ordnm/>
  498. <edicdflag/>
  499. <adjtresncd/>
  500. <orddeptcd/>
  501. <orddrid/>
  502. <item/>
  503. <unitcost/>
  504. <drugqty/>
  505. <totdrugqty/>
  506. <amt/>
  507. <baserlapnt/>
  508. <baseaddrlapnt/>
  509. <pntunitcost/>
  510. <hosinresncd/>
  511. <orddd/>
  512. <ediitem/>
  513. <edicd/>
  514. <rcptunitcost/>
  515. <prcpflag/>
  516. <rcptcalcamt/>
  517. <estmcdnm/>
  518. <pynpy1/>
  519. <earncls1/>
  520. <earncls2/>
  521. <earncls3/>
  522. <mechfromdd/>
  523. <mechtodd/>
  524. </delclod>
  525. </list6>
  526. <list8>
  527. <!-- 급여구분별 전체조회시 사용 : 조회용도 -->
  528. <clod/>
  529. </list8>
  530. <list9>
  531. <trnpt>
  532. <!-- 수혜자 정보를 출력해주기 위해 20091020 박창원 -->
  533. <trnptcnt/>
  534. <rsvname/>
  535. <rsvrrgstno/>
  536. </trnpt>
  537. </list9>
  538. <!-- SPPMC02500_환자조회 화면에서 선택된 검색결과를 받는 경로임 -->
  539. <patinfo>
  540. <patinfolist/>
  541. </patinfo>
  542. <popupendflag/>
  543. <prtlhislist/>
  544. </main>
  545. <send>
  546. <item1>
  547. <clbs>
  548. <clamkey/>
  549. <clamym/>
  550. <clamdg/>
  551. <pid/>
  552. <pidsn/>
  553. <judgno/>
  554. <workflag/>
  555. <docudelresncd/>
  556. <adjtresndesc/>
  557. </clbs>
  558. </item1>
  559. <item2>
  560. <!-- [TRPID20302] 조합명칭을 검색하려는 조합기호 조건 -->
  561. <incd>
  562. <insucd/>
  563. <ordfromdd/>
  564. </incd>
  565. </item2>
  566. <item3>
  567. <!-- CLSP 테이블에 특정내역 MX999로 저장되는 심사자메모, EDI청구메모를 설정 -->
  568. <judgmemo/>
  569. <edimemo/>
  570. <lnunitmemo/>
  571. <delclsp>
  572. <delmemo/>
  573. </delclsp>
  574. </item3>
  575. <item4>
  576. <clbs>
  577. <clamym/>
  578. <clamdg/>
  579. <pid/>
  580. <pidsn/>
  581. <instcd/>
  582. <kdrgno/>
  583. </clbs>
  584. <endclbs>
  585. <clamym/>
  586. <clamdg/>
  587. <pid/>
  588. <pidsn/>
  589. <judgendyn/>
  590. <rowstat/>
  591. </endclbs>
  592. <nextclbs>
  593. <clamym/>
  594. <clamdg/>
  595. <judgno/>
  596. </nextclbs>
  597. </item4>
  598. <list1>
  599. <cldi/>
  600. </list1>
  601. <list2>
  602. <clod/>
  603. </list2>
  604. <list3>
  605. <clsp/>
  606. </list3>
  607. <list4>
  608. <pid/>
  609. <clamym/>
  610. <allordfild/>
  611. <ordfildcd/>
  612. <ioflag/>
  613. <refterm/>
  614. <fromdd/>
  615. <todd/>
  616. <clamdg/>
  617. <pidsn/>
  618. </list4>
  619. <item5>
  620. <!-- [TRPID20303] 처방 내역으로 조회하려는 그룹,싱글,EDI코드 조건 -->
  621. <mech>
  622. <mode/>
  623. <insukind/>
  624. <suppkind/>
  625. <orddeptcd/>
  626. <orddrid/>
  627. <indd/>
  628. <ordfromdd/>
  629. <ordtodd/>
  630. <grupcalcscorcd/>
  631. <snglcalcscorcd/>
  632. <basecd/>
  633. <estmmncd/>
  634. <drugqty/>
  635. <tims/>
  636. <dayno/>
  637. <adjtresncd/>
  638. <undersixageyn/>
  639. <hosinresncd/>
  640. <mechage/>
  641. <payflag/>
  642. <clbsordfromdd/>
  643. <ioflag/>
  644. <clamflagcd/>
  645. <unitcost/>
  646. <unitcostupdateyn/>
  647. <edidrugqty/>
  648. <edidayno/>
  649. <ediupdateyn/>
  650. </mech>
  651. </item5>
  652. <item8>
  653. <pifhiunc>
  654. <!-- 재청구 반송부제기사유-->
  655. <abdrresncd/>
  656. <!-- 재청구 차액발생사유-->
  657. <chgamtresncd/>
  658. </pifhiunc>
  659. </item8>
  660. <listval>
  661. <uuee>
  662. <flag/>
  663. <scrnid/>
  664. <compsnm/>
  665. <compscnts/>
  666. <compsrefcnts/>
  667. <compssizecnts/>
  668. </uuee>
  669. </listval>
  670. <srchdata>
  671. <pid/>
  672. </srchdata>
  673. <chksuppkindflag>
  674. <cond>
  675. <diagcd/>
  676. <spclcd/>
  677. <ioflag/>
  678. <ordfromdd/>
  679. <clamym/>
  680. <clamdg/>
  681. <pidsn/>
  682. <insukindcd/>
  683. <pid/>
  684. </cond>
  685. </chksuppkindflag>
  686. </send>
  687. <init>
  688. <!--<P0008list/>환자보험유형(사용x)-->
  689. <!--<P0010list/>보조유형코드(사용x)-->
  690. <!--진료결과(보험)-->
  691. <P0110list/>
  692. <!--진료결과(산재)-->
  693. <P0297list/>
  694. <!--청구 입원경로-->
  695. <P0111list/>
  696. <!--청구 도착경로-->
  697. <P0112list/>
  698. <!-- 특정코드 -->
  699. <P0117list/>
  700. <!--조정사유코드 -->
  701. <P0127list>
  702. <P0127>
  703. <cdid/>
  704. <cdnm>조정사유</cdnm>
  705. </P0127>
  706. </P0127list>
  707. <!--표준코드구분(처방Grid사용x)-->
  708. <P0131list/>
  709. <!-- 심사완료여부 -->
  710. <P0151list/>
  711. <!--진료분야코드-->
  712. <P0291list/>
  713. <!-- 진료과목(의과)청구용 -->
  714. <P0287list/>
  715. <!-- 진료과목(치과)청구용 -->
  716. <P0288list/>
  717. <!-- 진료과목별 코드 -->
  718. <P0322list/>
  719. <!--공상구분코드-->
  720. <P0236list/>
  721. <!-- 명세서삭제사유코드 -->
  722. <P0465list>
  723. <P0465>
  724. <cdid/>
  725. <cdnm>삭제사유</cdnm>
  726. </P0465>
  727. </P0465list>
  728. <!-- 반송부제기사유코드 -->
  729. <P0466list>
  730. <P0466>
  731. <cdid/>
  732. <cdnm>부제기사유</cdnm>
  733. </P0466>
  734. </P0466list>
  735. <!--청구구분코드-->
  736. <P0155list/>
  737. <orddeptcd>
  738. <orddeptcdlist>
  739. <cd/>
  740. <nm/>
  741. </orddeptcdlist>
  742. </orddeptcd>
  743. <!-- 주치의 -->
  744. <orddrid>
  745. <orddridlist>
  746. <cd/>
  747. <nm/>
  748. <dp/>
  749. <sp/>
  750. </orddridlist>
  751. </orddrid>
  752. <item3>
  753. <judgidyn/>
  754. </item3>
  755. <PK043list>
  756. <PK043>
  757. <cdid/>
  758. <cdnm/>
  759. </PK043>
  760. </PK043list>
  761. <P0261list>
  762. <P0261>
  763. <cdid/>
  764. <cdnm/>
  765. </P0261>
  766. </P0261list>
  767. <PK221list>
  768. <PK221>
  769. <cdid/>
  770. <cdnm/>
  771. </PK221>
  772. </PK221list>
  773. </init>
  774. <hidden>
  775. <listval>
  776. <uuee>
  777. <scrnid/>
  778. <compsnm/>
  779. <compscnts/>
  780. <compsrefcnts/>
  781. <compssizecnts/>
  782. </uuee>
  783. </listval>
  784. <item1>
  785. <!-- 인적사항 중 조회 후 계산하여 보여지는 output 및 combo -->
  786. <clbs>
  787. <srchrslt/>
  788. <patsupprate/>
  789. <prockindflag/>
  790. </clbs>
  791. <initclbs>
  792. <clbs/>
  793. </initclbs>
  794. <initmemo>
  795. <memo/>
  796. </initmemo>
  797. </item1>
  798. <list1>
  799. <cldi>
  800. <oldseq/>
  801. <olddiagcd/>
  802. <olddiagnm/>
  803. <oldengnm/>
  804. <oldrowstat/>
  805. <oldordfromdd/>
  806. </cldi>
  807. </list1>
  808. <list2>
  809. <clodsrch>
  810. <!-- 처방 조회부 Radio 선택 또는 Input 입력값 -->
  811. <selectedRdoMatrAct/>
  812. <inpCalcScorCd/>
  813. <inpEDICd/>
  814. <selectedRdoPay/>
  815. <selectedRdoItem/>
  816. </clodsrch>
  817. <cloditem1>
  818. <!-- 처방 목록에 해당하는 항목이 있는 경우 Radio item을 굵게 표시 -->
  819. <ediitem1_all/>
  820. <ediitem1_01/>
  821. <ediitem1_02/>
  822. <ediitem1_03/>
  823. <ediitem1_04/>
  824. <ediitem1_05/>
  825. <ediitem1_06/>
  826. <ediitem1_07/>
  827. <ediitem1_08/>
  828. <ediitem1_09/>
  829. <ediitem1_10/>
  830. <ediitem1_SS/>
  831. </cloditem1>
  832. <clodstat>
  833. <cmbAdjtresncd/>
  834. </clodstat>
  835. </list2>
  836. <list3>
  837. <!-- 특정내역 선택에 따라 보여지는 기재형식 Output -->
  838. <msgspclformat/>
  839. <prespclcd/>
  840. <prespclformat/>
  841. <prerowstatus/>
  842. <selectedUnitFlag/>
  843. </list3>
  844. <item5>
  845. <clod>
  846. <adjtresncd/>
  847. <ordfromdd/>
  848. <ordtodd/>
  849. <orddd/>
  850. <updtdd/>
  851. <!-- 처방에서 그룹, 싱글, EDI코드 입력이 변경되었는지 비교하기 위한 값 -->
  852. <grupcalcscorcd/>
  853. <snglcalcscorcd/>
  854. <basecd/>
  855. <hngnm/>
  856. <!-- 처방에서 투여량, 횟수, 일수 입력이 변경되었는지 비교하기 위한 값 -->
  857. <estmmncd/>
  858. <drugqty/>
  859. <tims/>
  860. <dayno/>
  861. <edidrugqty/>
  862. <edidayno/>
  863. <unitcost/>
  864. <rowstatus/>
  865. </clod>
  866. </item5>
  867. <item6/>
  868. <item7/>
  869. <initclodlist>
  870. <list2>
  871. <clod/>
  872. </list2>
  873. </initclodlist>
  874. <popupmenu>
  875. <gridcldi>
  876. <item>
  877. <name>상병순서 위로</name>
  878. <func>fDiagSeqUp</func>
  879. </item>
  880. <item>
  881. <name>상병순서 아래로</name>
  882. <func>fDiagSeqDown</func>
  883. </item>
  884. <item>
  885. <name>-</name>
  886. <func/>
  887. </item>
  888. <item>
  889. <name>행 삽입</name>
  890. <func>fDiagGridInsertRow</func>
  891. </item>
  892. <item>
  893. <name>행 추가(5줄)</name>
  894. <func>fDiagGridInsertRowMulti</func>
  895. </item>
  896. <item>
  897. <name>행 삭제</name>
  898. <func>fDiagGridDeleteRow</func>
  899. </item>
  900. <!-- 2008-12-10 행 삭제시 rowHidden하므로 삭제취소 불필요하여 주석처리함.
  901. <delitem>
  902. <name>삭제 취소</name>
  903. <func>fDiagGridDeleteCancel</func>
  904. </delitem>
  905. -->
  906. </gridcldi>
  907. <gridclod>
  908. <item>
  909. <name>행 추가</name>
  910. <func>fOrderGridInsertRow</func>
  911. </item>
  912. <!-- 20100209 삭제 (버튼기능 추가)
  913. <item>
  914. <name>행 복사</name>
  915. <func>fOrderGridCopyRow</func>
  916. </item>
  917. -->
  918. <item>
  919. <name>행 삭제</name>
  920. <func>fOrderGridDeleteRow</func>
  921. </item>
  922. <item>
  923. <name>-</name>
  924. <func/>
  925. </item>
  926. <item>
  927. <name>1회량 일괄수정</name>
  928. <func>fAllSetDrugqtyCol</func>
  929. </item>
  930. <item>
  931. <name>횟수 일괄수정</name>
  932. <func>fAllSetTimsCol</func>
  933. </item>
  934. <item>
  935. <name>일수 일괄수정</name>
  936. <func>fAllSetDaynoCol</func>
  937. </item>
  938. <item>
  939. <name>-</name>
  940. <func/>
  941. </item>
  942. <!-- 20100209 삭제
  943. < item>
  944. <name>수가코드 복사</name>
  945. <func>fSnglGridCopyCol</func>
  946. </item>
  947. <item>
  948. <name>EDI코드 복사</name>
  949. <func>fEdiGridCopyCol</func>
  950. </item>
  951. <item>
  952. <name>처방명 복사</name>
  953. <func>fHngnmGridCopyCol</func>
  954. </item>
  955. <item>
  956. <name>-</name>
  957. <func/>
  958. </item>
  959. -->
  960. <item>
  961. <name>처방주석입력</name>
  962. <func>fOrderGridInsertCmt</func>
  963. </item>
  964. <item>
  965. <name>확인코드입력</name>
  966. <func>fOrderGridInsertCnfmCd</func>
  967. </item>
  968. <item>
  969. <name>일괄처방주석입력</name>
  970. <func>fOrderGridInsertAllCmt</func>
  971. </item>
  972. <item>
  973. <name>-</name>
  974. <func/>
  975. </item>
  976. <item>
  977. <name>결과조회</name>
  978. <func>fOrderRsltSrch</func>
  979. </item>
  980. <item>
  981. <name>진료정보</name>
  982. <func>fGetEmrInformation</func>
  983. </item>
  984. <item>
  985. <name>보험인정기준</name>
  986. <func>fOrderInsuRcogBase</func>
  987. </item>
  988. <item>
  989. <name>수가조회</name>
  990. <func>fOrderCalcScorSrch</func>
  991. </item>
  992. <item>
  993. <name>약품편람</name>
  994. <func>fOrderDrugHBook</func>
  995. </item>
  996. <item>
  997. <name>상세계산내역(수가)</name>
  998. <func>fOrderCalcDetail</func>
  999. </item>
  1000. <item>
  1001. <name>상세계산내역(EDI)</name>
  1002. <func>fOrderCalcDetailEDI</func>
  1003. </item>
  1004. <item>
  1005. <name>-</name>
  1006. <func/>
  1007. </item>
  1008. <item>
  1009. <name>급비변경</name>
  1010. <func>fSetPayflag</func>
  1011. </item>
  1012. <item>
  1013. <name>-</name>
  1014. <func/>
  1015. </item>
  1016. <item>
  1017. <name>처방별환자조회(계산)_수가코드</name>
  1018. <func>fOpenSMPIS00500DetailSnglCD</func>
  1019. </item>
  1020. <item>
  1021. <name>처방별환자조회(계산)_EDI코드</name>
  1022. <func>fOpenSMPIS00500DetailEdicd</func>
  1023. </item>
  1024. <item>
  1025. <name>처방별환자조회(청구/삭감)</name>
  1026. <func>fOpenSMPIS00600Detail</func>
  1027. </item>
  1028. <item>
  1029. <name>-</name>
  1030. <func/>
  1031. </item>
  1032. <item>
  1033. <name>CD복사의뢰</name>
  1034. <func>fOrderCDCopy</func>
  1035. </item>
  1036. <item>
  1037. <name>처방사유조회</name>
  1038. <func>fPrcpResnRef</func>
  1039. </item>
  1040. <item>
  1041. <name>-</name>
  1042. <func/>
  1043. </item>
  1044. <item>
  1045. <name>환자기준 메세지작성</name>
  1046. <func>fPatJudgPatMsgTrsm</func>
  1047. </item>
  1048. <item>
  1049. <name>처방기준 메세지작성</name>
  1050. <func>fOrderJudgPatMsgTrsm</func>
  1051. </item>
  1052. <delitem>
  1053. <name>삭제 취소</name>
  1054. <func>fOrderGridDeleteCancel</func>
  1055. </delitem>
  1056. <inititem>
  1057. <name>처방 추가</name>
  1058. <func>fOrderGridAddRow</func>
  1059. </inititem>
  1060. </gridclod>
  1061. <gridclsp>
  1062. <item>
  1063. <name>행 추가</name>
  1064. <func>fSpclGridInsertRow</func>
  1065. </item>
  1066. <item>
  1067. <name>행 삭제</name>
  1068. <func>fSpclGridDeleteRow</func>
  1069. </item>
  1070. <item>
  1071. <name>-</name>
  1072. <func/>
  1073. </item>
  1074. <!-- <item>
  1075. <name>특정내역 반복</name>
  1076. <func>fRepeatSpclSpec</func>
  1077. </item>
  1078. -->
  1079. </gridclsp>
  1080. </popupmenu>
  1081. <smpic00200>
  1082. <judgsrch>
  1083. <con1_dd/>
  1084. <con2_gsflag/>
  1085. <con3_search1/>
  1086. <con4_search2/>
  1087. <con5_insu/>
  1088. <con6_calcscorcd/>
  1089. <con7_todd/>
  1090. <con8_instcd/>
  1091. <con9_lastupdtdt/>
  1092. <con10_preord_chk/>
  1093. <con11_edicd/>
  1094. <con_ordinptflag/>
  1095. </judgsrch>
  1096. <rslt>
  1097. <ediitem1/>
  1098. <ediitem2/>
  1099. <grupcalcscorcd/>
  1100. <snglcalcscorcd/>
  1101. <basecd/>
  1102. <hngnm/>
  1103. <edicdflag/>
  1104. <ediunitcost/>
  1105. <ordnm/>
  1106. </rslt>
  1107. </smpic00200>
  1108. <smpid20200>
  1109. <cond>
  1110. <!-- "대상조회" Btn SMPID20200_입원사후심사대상자조회 에 전달하기 위한 조건 값 -->
  1111. <pid/>
  1112. </cond>
  1113. <rslt>
  1114. <selectedRow/>
  1115. <clamkey/>
  1116. <clamym/>
  1117. <clamdg/>
  1118. <pid/>
  1119. <pidsn/>
  1120. <workflag/>
  1121. <oldPid/>
  1122. <popupcallyn/>
  1123. <cutprcpyn/>
  1124. <judgenddd/>
  1125. <cretno/>
  1126. </rslt>
  1127. </smpid20200>
  1128. <smpid20300>
  1129. <cond>
  1130. <!-- "이전 명세서 목록" Grid에서 선택한 명세서의 청구키를 SMPID20300_입원사후심사관리 에 전달하기 위한 조건 값 -->
  1131. <clamym/>
  1132. <clamdg/>
  1133. <pid/>
  1134. <pidsn/>
  1135. <ioflag/>
  1136. <workflag/>
  1137. </cond>
  1138. </smpid20300>
  1139. <smpid20500>
  1140. <cond>
  1141. <!-- "이전 명세서 목록" Grid에서 선택한 명세서의 청구키를 SMPID20500_외래사후심사관리 에 전달하기 위한 조건 값 -->
  1142. <clamym/>
  1143. <clamdg/>
  1144. <pid/>
  1145. <pidsn/>
  1146. <ioflag/>
  1147. <workflag/>
  1148. </cond>
  1149. </smpid20500>
  1150. <sppid21300>
  1151. <cond>
  1152. <clamym/>
  1153. <clamdg/>
  1154. <pid/>
  1155. <pidsn/>
  1156. <insukind/>
  1157. <suppkind/>
  1158. <ordfromdd/>
  1159. </cond>
  1160. </sppid21300>
  1161. <sppid21600>
  1162. <cond>
  1163. <pid/>
  1164. <indd/>
  1165. <cretno/>
  1166. <fromdd/>
  1167. <todd/>
  1168. <calcscorcd/>
  1169. <grupsnglflag/>
  1170. <insukindcd/>
  1171. <insukind/>
  1172. <suppkindcd/>
  1173. <suppkind/>
  1174. <ownbrate/>
  1175. </cond>
  1176. </sppid21600>
  1177. <sppid21700>
  1178. <cond>
  1179. <clamym/>
  1180. <clamdg/>
  1181. <pid/>
  1182. <pidsn/>
  1183. <clamkey/>
  1184. <workflag/>
  1185. <ioflag/>
  1186. <maxclopseqno/>
  1187. <maxseqno/>
  1188. <ordfromdd/>
  1189. <indd/>
  1190. <insukindcd/>
  1191. <suppkindcd/>
  1192. <orddeptcd/>
  1193. <orddrid/>
  1194. <undersixageyn/>
  1195. <mechage/>
  1196. <payflag/>
  1197. <clamflagcd/>
  1198. <clamkey/>
  1199. <patnm/>
  1200. <gender/>
  1201. <stsioflag/>
  1202. <ordtodd/>
  1203. <instcd/>
  1204. <clamtypecd/>
  1205. <fixrateyn/>
  1206. </cond>
  1207. </sppid21700>
  1208. <sppid22100>
  1209. <cond>
  1210. <pid/>
  1211. <instcd/>
  1212. <clamkey/>
  1213. <clamcretdd/>
  1214. <patnm/>
  1215. <gender/>
  1216. <ioflag/>
  1217. <grupcd/>
  1218. <snglcd/>
  1219. <hngnm/>
  1220. </cond>
  1221. </sppid22100>
  1222. <smpiz00100>
  1223. <cond>
  1224. <!-- "상병이력" Btn에 따라 SMPIZ00100_외래입원상병이력조회 에 전달하기 위한 조건 값 -->
  1225. <pid/>
  1226. <ordfromdd/>
  1227. <ordtodd/>
  1228. <orddd/>
  1229. <ioflag/>
  1230. <deptcd/>
  1231. </cond>
  1232. </smpiz00100>
  1233. <sppiz00200>
  1234. <cond>
  1235. <clsp>
  1236. <spclcd/>
  1237. <seqno/>
  1238. <spclspec/>
  1239. <rowstat/>
  1240. </clsp>
  1241. </cond>
  1242. <rslt>
  1243. <clsp>
  1244. <unitflag/>
  1245. <spclcd/>
  1246. <seqno/>
  1247. <calcscorcd/>
  1248. <spclspec/>
  1249. <rowstat/>
  1250. </clsp>
  1251. </rslt>
  1252. </sppiz00200>
  1253. <sppiz00300>
  1254. <cond>
  1255. <pid/>
  1256. <orddeptcd/>
  1257. <ioflag/>
  1258. <refterm/>
  1259. <anofildinclyn/>
  1260. <fromdd/>
  1261. <todd/>
  1262. <clamkey/>
  1263. </cond>
  1264. <rslt>
  1265. <choimemo/>
  1266. <destRef/>
  1267. <edicd/>
  1268. </rslt>
  1269. </sppiz00300>
  1270. <sppiz00400>
  1271. <cond>
  1272. <!-- 상병코드 Grid '상병코드' 컬럼 에서 SPPIZ00400_상병코드조회 에 전달하기 위한 조건 값 -->
  1273. <basedd/>
  1274. <diagcd/>
  1275. <diagnm/>
  1276. <selectedrdodiagkind/>
  1277. </cond>
  1278. <rslt>
  1279. <diagcd/>
  1280. <diaghngnm/>
  1281. <diagengnm/>
  1282. </rslt>
  1283. </sppiz00400>
  1284. <sppiz00500>
  1285. <cond>
  1286. <!-- 처방 Grid 'T' 컬럼 / 특정내역 Grid '특정코드' 컬럼 에서 SPPIZ00500_특정내역상세관리 에 전달하기 위한 조건 값 -->
  1287. <flag/>
  1288. <snglcalcscorcd/>
  1289. <clodseqno/>
  1290. <edilnno/>
  1291. <spclcd/>
  1292. <detldesc/>
  1293. <spclspec/>
  1294. <spclformat/>
  1295. <rownum/>
  1296. <cdnm/>
  1297. <unitflag/>
  1298. </cond>
  1299. <rslt>
  1300. <list>
  1301. <flag/>
  1302. <rownum/>
  1303. <clodseqno/>
  1304. <edilnno/>
  1305. <spclcd/>
  1306. <cdnm/>
  1307. <spclspec/>
  1308. <spclformat/>
  1309. <detldesc/>
  1310. <snglcalcscorcd/>
  1311. <oldspclcd/>
  1312. <oldspclspec/>
  1313. </list>
  1314. </rslt>
  1315. </sppiz00500>
  1316. <sppiz00600>
  1317. <cond>
  1318. <!-- 상병 Grid '치식' 컬럼 에서 SPPIZ00600_상병및처방별치식 에 전달하기 위한 조건 값 -->
  1319. <clamym/>
  1320. <clamdg/>
  1321. <pid/>
  1322. <pidsn/>
  1323. <indd/>
  1324. <cretno/>
  1325. <toot/>
  1326. <flag/>
  1327. <list/>
  1328. </cond>
  1329. <rslt>
  1330. <list/>
  1331. </rslt>
  1332. </sppiz00600>
  1333. <sppiz00700>
  1334. <cond>
  1335. <judgrid/>
  1336. <memoflag/>
  1337. <memocls/>
  1338. <ediitem1/>
  1339. </cond>
  1340. <rslt>
  1341. <memocd/>
  1342. <memo/>
  1343. </rslt>
  1344. </sppiz00700>
  1345. <sppiz00800>
  1346. <cond>
  1347. <!-- 처방 Grid '산정의미/산정코드' 컬럼 에서 SPPIZ00800_산정코드조회.xrw에 전달하기 위한 조건 값
  1348. <estmcls/>
  1349. <estmmncd/>
  1350. -->
  1351. <insukind/>
  1352. <estmcls/>
  1353. <estmmncd/>
  1354. <todd/>
  1355. </cond>
  1356. <rslt>
  1357. <clcd>
  1358. <estmcls/>
  1359. <estmmncd/>
  1360. <estmcd/>
  1361. <estmcdnm/>
  1362. <addmthd/>
  1363. <pnt/>
  1364. <amt/>
  1365. <rate/>
  1366. <todd/>
  1367. </clcd>
  1368. </rslt>
  1369. </sppiz00800>
  1370. <sppiz01000>
  1371. <cond>
  1372. <cdcls/>
  1373. <cdid/>
  1374. </cond>
  1375. <rslt>
  1376. <cdid/>
  1377. </rslt>
  1378. </sppiz01000>
  1379. <sppiz01100>
  1380. <cond>
  1381. <code/>
  1382. </cond>
  1383. <rslt>
  1384. <code/>
  1385. </rslt>
  1386. </sppiz01100>
  1387. <sppiz01300>
  1388. <cond>
  1389. <pid/>
  1390. <indd/>
  1391. <cretno/>
  1392. </cond>
  1393. </sppiz01300>
  1394. <sppiz01400>
  1395. <cond>
  1396. <srchcond/>
  1397. </cond>
  1398. <rslt>
  1399. <spclcd/>
  1400. <cdnm/>
  1401. <spclspec/>
  1402. <spclformat/>
  1403. <detldesc/>
  1404. </rslt>
  1405. </sppiz01400>
  1406. <smpmc01300>
  1407. <!-- SMPMC01300_특이환자관리 -->
  1408. <cond>
  1409. <srchcond/>
  1410. <autoflag/>
  1411. <pid/>
  1412. <hngnm/>
  1413. <rrgstno1/>
  1414. <rrgstno2/>
  1415. <acptdd/>
  1416. <checkfnexam/>
  1417. </cond>
  1418. <rslt>
  1419. <patspcfyn/>
  1420. </rslt>
  1421. </smpmc01300>
  1422. <!-- pam\pamcomnweb\xrw\SPPMB01500_보험자기호조회
  1423. <sppmb01500>
  1424. <cond>
  1425. <srchcond/>
  1426. <srchcnts/>
  1427. <insuflag/>
  1428. </cond>
  1429. </sppmb01500> -->
  1430. <sppmc02500>
  1431. <cond>
  1432. <!-- SPPMC02500_환자조회 화면으로 검색조건을 보내는 경로임 -->
  1433. <srchcond/>
  1434. <pid/>
  1435. <hngnm/>
  1436. <rrgstno1/>
  1437. <rrgstno2/>
  1438. </cond>
  1439. </sppmc02500>
  1440. <smmnn00700>
  1441. <!-- emr/partrtnnbabyweb/xrw/SMMNN00700_분만간호기록.xrw -->
  1442. <!-- SPPIZ01200_분만신생아정보관리 -->
  1443. <cond>
  1444. <pid/>
  1445. <indd/>
  1446. <hngnm/>
  1447. <cretno/>
  1448. <wardcd/>
  1449. <roomcd/>
  1450. <indschacptstat/>
  1451. </cond>
  1452. </smmnn00700>
  1453. <sppij00400>
  1454. <cond>
  1455. <pid/>
  1456. <indd/>
  1457. <cretno/>
  1458. <mskind/>
  1459. <insukind/>
  1460. <insukindnm/>
  1461. <suppkind/>
  1462. <suppkindnm/>
  1463. <ownbrate/>
  1464. <ordfromdd/>
  1465. <ordtodd/>
  1466. <ordtype/>
  1467. <brateflag/>
  1468. <calcscorcd/>
  1469. <grupsnglflag/>
  1470. <mig/>
  1471. <insufromdd/>
  1472. <insutodd/>
  1473. <selectedRdoItem/>
  1474. <srchflag/>
  1475. <selyn/>
  1476. <cpyn/>
  1477. <ediflag/>
  1478. <edicd/>
  1479. </cond>
  1480. </sppij00400>
  1481. <!-- SPPID22800_재청구차액발생사유관리.xrw -->
  1482. <sppid22800>
  1483. <cond>
  1484. <cdid/>
  1485. </cond>
  1486. <rslt>
  1487. <cdid/>
  1488. </rslt>
  1489. </sppid22800>
  1490. <!-- SPPID23100_급비변경관리.xrw -->
  1491. <sppid23100>
  1492. <cond>
  1493. <cdid/>
  1494. </cond>
  1495. <rslt>
  1496. <cdid/>
  1497. </rslt>
  1498. </sppid23100>
  1499. <sppmc04500>
  1500. <cond>
  1501. <pid/>
  1502. </cond>
  1503. </sppmc04500>
  1504. <smpid23300>
  1505. <cond>
  1506. <clamym/>
  1507. <clamdg/>
  1508. <pid/>
  1509. <pidsn/>
  1510. <patnm/>
  1511. <insukind/>
  1512. <suppkind/>
  1513. <orddeptcd/>
  1514. <indd/>
  1515. </cond>
  1516. <rslt>
  1517. </rslt>
  1518. </smpid23300>
  1519. <smpir31000>
  1520. <cond>
  1521. <srchflag/>
  1522. <acptno/>
  1523. <judgdg/>
  1524. <docuseqno/>
  1525. <clamno/>
  1526. </cond>
  1527. </smpir31000>
  1528. <rarecancermsg>
  1529. <msg/>
  1530. </rarecancermsg>
  1531. <edicheck/>
  1532. <reselect/>
  1533. <orgjudgendyn/>
  1534. <devinfor/>
  1535. <chksuppkindflag/>
  1536. <getvcode>
  1537. <cond>
  1538. <diagcd/>
  1539. <ioflag/>
  1540. <insukind/>
  1541. <suppkind/>
  1542. <ordfromdd/>
  1543. </cond>
  1544. <rslt>
  1545. <vcode/>
  1546. </rslt>
  1547. </getvcode>
  1548. <sppid29000>
  1549. <cond>
  1550. <clamym/>
  1551. <clamdg/>
  1552. <pid/>
  1553. <pidsn/>
  1554. <orddeptcd/>
  1555. <orddrid/>
  1556. <insukindcd/>
  1557. </cond>
  1558. </sppid29000>
  1559. <sppiz01600>
  1560. <cond>
  1561. <calcscorcd/>
  1562. </cond>
  1563. </sppiz01600>
  1564. </hidden>
  1565. <chkJT001>Y</chkJT001>
  1566. </root>
  1567. </instance>
  1568. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  1569. <submission id="TRPID20301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  1570. <submission id="TRPID20302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item2" resultref="/root/main/item2"/>
  1571. <submission id="TRPID20303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item5" resultref="/root/main/item5"/>
  1572. <submission id="TRPID20304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/list4" resultref="/root/main/list4"/>
  1573. <submission id="TRPID20305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/item1/clbs" resultref="/root/main/list5"/>
  1574. <submission id="TRPID20306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/sppiz00400/cond" resultref="/root/hidden/sppiz00400"/>
  1575. <submission id="TRPID20307" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main" resultref="/root/send/item4"/>
  1576. <submission id="TRPID20308" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/smpmc01300/cond" resultref="/root/hidden/smpmc01300"/>
  1577. <submission id="TRPID20309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/item1/clbs/ioflag" resultref="root/hidden/tmp"/>
  1578. <submission id="TRPID20310" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1/clbs" resultref="/root/hidden/grdselectclod"/>
  1579. <submission id="TRPID21602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/listval" resultref="/root/hidden/listval"/>
  1580. <submission id="TXPID20301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/tmp"/>
  1581. <submission id="TXPID20302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item4/endclbs"/>
  1582. <submission id="TXPID20303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/item1/clbs"/>
  1583. <submission id="TXPID20304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/item1/clbs"/>
  1584. <submission id="TXPID21601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/listval" resultref="/root/hidden/listval"/>
  1585. <submission id="TRPID20313" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/getvcode/cond" resultref="/root/hidden/getvcode"/>
  1586. <submission id="TXPID20305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item4/clbs" resultref="/root/hidden/item6"/>
  1587. <submission id="TXPID20306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item4/clbs" resultref="/root/hidden/item7"/>
  1588. <submission id="TXPID20307" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  1589. <script type="javascript" ev:event="xforms-model-construct-done">
  1590. <![CDATA[
  1591. setCloseChildWindow(); // (common.js) open()으로 열려진 상태의 자식창을 닫는다.
  1592. delPatientInfos(); // (common.js) 상단의 환자정보 삭제
  1593. fInitialize(); // 화면을 초기화한다.
  1594. ]]>
  1595. </script>
  1596. <!-- <script type="javascript" ev:event="xforms-close">-->
  1597. <script type="javascript" ev:event="xforms-model-destruct">
  1598. <![CDATA[
  1599. ]]>
  1600. </script>
  1601. <submission id="TRPIJ00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main"/>
  1602. <submission id="TRADB01007" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/prtlhislist"/>
  1603. <submission id="TRPID21701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/sppid21700/cond" resultref="/root/main/list7/clop"/>
  1604. <submission id="TRPID20314" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/chksuppkindflag/cond" resultref="/root/hidden/chksuppkindflag"/>
  1605. <submission id="TXPID20315" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list3"/>
  1606. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  1607. </model>
  1608. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  1609. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  1610. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  1611. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  1612. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  1613. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  1614. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  1615. <script type="javascript" src="../../../pam/insucomweb/js/PAM.js"/>
  1616. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  1617. <script type="javascript" src="../../../pam/aftjudgweb/js/SMPID20000.js"/>
  1618. <script type="javascript" src="../../../pam/aftjudgweb/js/SMPID20300.js"/>
  1619. <script type="javascript">
  1620. <![CDATA[
  1621. ]]>
  1622. </script>
  1623. </xhtml:head>
  1624. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1194;" style="vertical-align:bottom; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  1625. <group id="grp_biz" style="left:0px; top:13px; width:1195px; height:771px; ">
  1626. <line id="line21" class="line_3" style="x1:0px; y1:96px; x2:1194px; y2:96px; "/>
  1627. <line id="line2" class="line_3" style="x1:0px; y1:121px; x2:1194px; y2:121px; "/>
  1628. <select1 id="cmb_prockindflag" ref="/root/main/item1/clbs/prockindflag" class="combo_default" disabled="false" appearance="minimal" style="left:58px; top:100px; width:227px; height:19px; ">
  1629. <choices>
  1630. <itemset nodeset="/root/init/P0261list/P0261">
  1631. <label ref="cdnm"/>
  1632. <value ref="cdid"/>
  1633. </itemset>
  1634. </choices>
  1635. </select1>
  1636. <caption id="caption47" class="cell_1" style="left:0px; top:98px; width:55px; height:23px; ">급여종별</caption>
  1637. <input id="ipt_rareobstflag" ref="/root/main/item1/clbs/rareobstflag" class="input_default" appearance="input" style="left:217px; top:74px; width:18px; height:19px; "/>
  1638. <select1 id="cmb_etcordflag" ref="/root/main/item1/clbs/etcordflag" class="combo_default" disabled="false" appearance="minimal" style="left:235px; top:74px; width:50px; height:19px; ">
  1639. <choices>
  1640. <itemset nodeset="/root/init/PK043list/PK043">
  1641. <label ref="cdnm"/>
  1642. <value ref="cdid"/>
  1643. </itemset>
  1644. </choices>
  1645. <script type="javascript" ev:event="xforms-value-changed">
  1646. <![CDATA[
  1647. // 보조유형 및 요율 combo의 선택 값이 변경된 경우 각각을 해당 output에 설정한다.
  1648. fSetPatSuppRate();
  1649. ]]>
  1650. </script>
  1651. </select1>
  1652. <input id="ipt_paygrntno" ref="/root/main/item1/clbs/paygrntno" class="input_default" navindex="11" maxlength="30" _auth="R" style="left:1121px; top:74px; width:73px; height:19px; "/>
  1653. <input id="input1" ref="/root/main/item1/clbs/insdnm" class="input_default" navindex="5" imemode="disabled" _auth="R" style="left:850px; top:50px; width:67px; height:19px; text-align:right; "/>
  1654. <input id="ipt_indd" ref="/root/main/item1/clbs/indd" class="input_default" navindex="5" imemode="disabled" format="yyyy-mm-dd" _auth="R" style="left:850px; top:74px; width:67px; height:19px; text-align:right; "/>
  1655. <caption id="caption22" class="cell_1" style="left:788px; top:73px; width:61px; height:23px; ">입원일자</caption>
  1656. <input id="ipt_ordtodd" ref="/root/main/item1/clbs/ordtodd" class="input_default" navindex="5" imemode="disabled" format="yyyy-mm-dd" _auth="R" style="left:552px; top:74px; width:67px; height:19px; text-align:right; "/>
  1657. <input id="ipt_ordfromdd" ref="/root/main/item1/clbs/ordfromdd" class="input_default" navindex="5" imemode="disabled" format="yyyy-mm-dd" _auth="R" style="left:552px; top:50px; width:67px; height:19px; text-align:right; "/>
  1658. <select1 id="cmb_offcharm" ref="/root/main/item1/clbs/offcharm" class="combo_default" navindex="4" appearance="minimal" showvalue="true" _auth="R" style="left:217px; top:26px; width:68px; height:19px; ">
  1659. <choices>
  1660. <itemset nodeset="/root/init/P0236list/P0236">
  1661. <label ref="cdnm"/>
  1662. <value ref="cdid"/>
  1663. </itemset>
  1664. </choices>
  1665. </select1>
  1666. <input id="ipt_clamym" ref="/root/main/item1/clbs/clamym" class="input_default" navindex="1" inputtype="date" format="yyyy-mm" style="left:58px; top:26px; width:70px; height:19px; "/>
  1667. <output id="ipt_pidsn" ref="/root/main/item1/clbs/pidsn" class="output_fix" format="####" style="left:125px; top:50px; width:15px; height:19px; ">
  1668. <hint>
  1669. <![CDATA[일련번호순번]]>
  1670. </hint>
  1671. </output>
  1672. <line id="line9" class="line_2" style="x1:0px; y1:76px; x2:1194px; y2:76px; "/>
  1673. <line id="line45" class="line_2" style="x1:0px; y1:52px; x2:1194px; y2:52px; "/>
  1674. <caption id="cap_judgendyn" class="cell_1" style="left:1063px; top:73px; width:55px; height:23px; ">지급보증</caption>
  1675. <caption id="caption7" class="tit_2" style="left:5px; top:6px; width:69px; height:13px; ">인적사항</caption>
  1676. <output id="opt_srchrslt" ref="/root/hidden/item1/clbs/srchrslt" style="left:94px; top:1px; width:318px; height:19px; "/>
  1677. <line id="line1" class="line_1" style="x1:0px; y1:21px; x2:1194px; y2:21px; "/>
  1678. <group id="grp_clodhist" style="left:0px; top:122px; width:1194px; height:623px; ">
  1679. <group id="grp_delorderlist" style="left:635px; top:266px; width:479px; height:356px; ">
  1680. <!-- 심사변경 조회 -->
  1681. <line id="line4" class="line_1" style="x1:0px; y1:0px; x2:479px; y2:0px; "/>
  1682. <datagrid id="grd_delorder" nodeset="/root/main/list5/clod" class="datagrid2" caption="^X^선별^재행^급여^Seq&#xA;no^조정&#xA;사유^줄^항^목^처방&#xA;시작일자^그룹코드^수가코드^EDI코드^한글명^코드&#xA;구분^단가^1회량^횟수^일수&#xA;(총투)^금액^확인&#xA;코드^T^처방&#xA;종료일자^처방명^삭제일자" colsep="^" colwidth="20, 14, 20, 20, 20, 30, 30, 18, 28, 22, 68, 97, 97, 80, 210, 30, 58, 40, 30, 40, 60, 37, 14, 68, 200, 68" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:5px; width:479px; height:328px; ">
  1683. <col class="update_n" ref="update"/>
  1684. <col ref="rowstat" style="background-color:#c0c0c0; "/>
  1685. <col ref="spcljudgyn" visibility="hidden" style="background-color:#c0c0c0; "/>
  1686. <col ref="matractflag" visibility="hidden" style="background-color:#c0c0c0; "/>
  1687. <col ref="payflag" visibility="hidden" style="background-color:#c0c0c0; "/>
  1688. <!-- <col ref="seqno" visibility="hidden" style="background-color:#c0c0c0; "/>-->
  1689. <col ref="seqno" visibility="hidden" style="background-color:#c0c0c0; "/>
  1690. <col ref="adjtresncd"/>
  1691. <col ref="edilnno"/>
  1692. <col ref="ediitem1"/>
  1693. <col ref="ediitem2"/>
  1694. <col ref="ordfromdd" format="yyyy-mm-dd"/>
  1695. <col ref="grupcalcscorcd"/>
  1696. <col ref="snglcalcscorcd"/>
  1697. <col ref="edicd"/>
  1698. <col ref="hngnm"/>
  1699. <col ref="edicdflag"/>
  1700. <col ref="ediunitcost" format="#,###" style="text-align:right; "/>
  1701. <col ref="edidrugqty" format="#,###.00" style="text-align:right; "/>
  1702. <col ref="tims"/>
  1703. <col ref="dayno"/>
  1704. <col ref="ediamt" format="#,###" style="text-align:right; "/>
  1705. <col ref="cnfmcd"/>
  1706. <col ref="lnunitspclspecyn" style="text-align:center; "/>
  1707. <col ref="ordtodd" format="yyyy-mm-dd"/>
  1708. <col ref="ordnm"/>
  1709. <col ref="lastupdtdt" format="yyyy-mm-dd"/>
  1710. <script type="javascript" ev:event="onaftersort">
  1711. <![CDATA[
  1712. grd_delorder.gridToInstance();
  1713. ]]>
  1714. </script>
  1715. </datagrid>
  1716. <button id="btn_closedelorderlist" class="btn4_letter2" style="left:423px; top:334px; width:56px; height:22px; ">
  1717. <caption>닫기</caption>
  1718. <script type="javascript" ev:event="DOMActivate">
  1719. <![CDATA[
  1720. grd_clodhist.attribute("width") = "1114";
  1721. ln_clodhist.attribute("x2") = "1114";
  1722. cap_grptemp.visible = false;
  1723. grp_delorderlist.visible = false;
  1724. ]]>
  1725. </script>
  1726. </button>
  1727. </group>
  1728. <group id="grp_delclodlist" style="left:635px; top:266px; width:479px; height:356px; ">
  1729. <!-- 처방휴지통 -->
  1730. <line id="line5" class="line_1" style="x1:0px; y1:0px; x2:479px; y2:0px; "/>
  1731. <datagrid id="grd_delclod" nodeset="/root/main/list6/delclod" class="datagrid2" caption="선별^Seq&#xA;no^grupseqno^X^init&#xA;lnno^조정&#xA;사유^줄^항^목^처방시작일^G^그룹코드^행위&#xA;재료^수가코드^EDI코드^산정&#xA;분류^산정&#xA;의미^산정&#xA;코드^한글명^급&#xA;비^단가^1회량^횟수^1일량&#xA;(일투)^일수&#xA;(총투)^금액^확인&#xA;코드^T^치식^처방종료일^변경일자^병원가산&#xA;단가^가산단가^급여총액^본인&#xA;부담금^청구액^선택단가^병원가산&#xA;SUM^가산&#xA;SUM^선택진료&#xA;SUM^진료비&#xA;총액^본인부담&#xA;총액^처방명^코드&#xA;구분^조정&#xA;사유^orddeptcd^orddrid^item^unitcost^drugqty^totdrugqty^amt^baserlapnt^baseaddrlapnt^pntunitcost^hosinresncd^orddd^ediitem^edicd^rcptunitcost^prcpflag^rcptcalcamt^estmcdnm^pynpy1^earncls1^earncls2^earncls3^mechfromdd^mechtodd" colsep="^" colwidth="20, 30, 30, 14, 30, 30, 18, 28, 22, 68, 18, 97, 30, 97, 80, 30, 30, 30, 200, 26, 58, 40, 30, 40, 40, 58, 37, 14, 30, 68, 68, 58, 66, 58, 58, 58, 58, 58, 66, 58, 58, 58, 200, 30, 30, 40, 40, 40, 50, 40, 40, 50, 50, 50, 40, 40, 40, 40, 60, 50, 40, 50, 40, 40, 40, 40, 40, 100, 100" dataheight="23" ellipsis="true" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:5px; width:479px; height:328px; ">
  1732. <col ref="spcljudgyn" visibility="hidden" style="background-color:#c0c0c0; "/>
  1733. <col ref="seqno" visibility="hidden" style="background-color:#c0c0c0; "/>
  1734. <col ref="grupseqno" visibility="hidden" style="background-color:#c0c0c0; "/>
  1735. <col ref="rowstat" visibility="hidden" style="background-color:#c0c0c0; "/>
  1736. <col ref="initlnno" visibility="hidden" style="background-color:#c0c0c0; "/>
  1737. <col ref="adjtresncd"/>
  1738. <col ref="edilnno"/>
  1739. <col ref="ediitem1"/>
  1740. <col ref="ediitem2"/>
  1741. <col ref="ordfromdd" format="yyyy-mm-dd"/>
  1742. <col ref="grupsnglflag"/>
  1743. <col ref="grupcalcscorcd"/>
  1744. <col disabled="true" ref="matractflag" type="combo">
  1745. <choices>
  1746. <item>
  1747. <label>재</label>
  1748. <value>1</value>
  1749. </item>
  1750. <item>
  1751. <label>가O</label>
  1752. <value>2</value>
  1753. </item>
  1754. <item>
  1755. <label>가X</label>
  1756. <value>3</value>
  1757. </item>
  1758. <item>
  1759. <label>약</label>
  1760. <value>4</value>
  1761. </item>
  1762. </choices>
  1763. </col>
  1764. <col ref="snglcalcscorcd"/>
  1765. <col ref="basecd"/>
  1766. <col ref="estmcls" visibility="hidden" style="background-color:#c0c0c0; "/>
  1767. <col ref="estmmncd"/>
  1768. <col ref="estmcd"/>
  1769. <col ref="hngnm"/>
  1770. <col disabled="true" ref="payflag" type="combo">
  1771. <choices>
  1772. <item>
  1773. <label>급</label>
  1774. <value>0</value>
  1775. </item>
  1776. <item>
  1777. <label>100</label>
  1778. <value>1</value>
  1779. </item>
  1780. <item>
  1781. <label>비</label>
  1782. <value>2</value>
  1783. </item>
  1784. <item>
  1785. <label>선</label>
  1786. <value>8</value>
  1787. </item>
  1788. <item>
  1789. <label>선</label>
  1790. <value>9</value>
  1791. </item>
  1792. </choices>
  1793. </col>
  1794. <col ref="ediunitcost" format="#,###" style="text-align:right; "/>
  1795. <col ref="edidrugqty" format="#,###.00" style="text-align:right; "/>
  1796. <col ref="tims" format="##" style="text-align:right; "/>
  1797. <col ref="daydrugqty" format="#,###.00" style="text-align:right; "/>
  1798. <col ref="dayno" format="##" style="text-align:right; "/>
  1799. <col ref="ediamt" format="#,###" style="text-align:right; "/>
  1800. <col ref="cnfmcd"/>
  1801. <col ref="lnunitspclspecyn" style="text-align:center; "/>
  1802. <col ref="toot"/>
  1803. <col ref="ordtodd" format="yyyy-mm-dd"/>
  1804. <col ref="updtdd" format="yyyy/mm/dd"/>
  1805. <col ref="edihospaddamt" format="#,###" style="text-align:right; "/>
  1806. <col ref="ediaddamt" format="(-)#,###" style="text-align:right; "/>
  1807. <col ref="paytotamt" format="#,###" style="text-align:right; "/>
  1808. <col ref="ownbamt" format="#,###" style="text-align:right; "/>
  1809. <col ref="clamamt" format="#,###" style="text-align:right; "/>
  1810. <col ref="choiordamt" format="#,###" style="text-align:right; "/>
  1811. <col ref="edihospaddtotamt" format="#,###" style="text-align:right; "/>
  1812. <col ref="ediaddtotamt" format="(-)#,###" style="text-align:right; "/>
  1813. <col ref="choiordtotamt" format="#,###" style="text-align:right; "/>
  1814. <col ref="totordamt" format="#,###" style="text-align:right; "/>
  1815. <col ref="ownbtotamt" format="#,###" style="text-align:right; "/>
  1816. <col ref="ordnm"/>
  1817. <col ref="edicdflag"/>
  1818. <col ref="adjtresncd"/>
  1819. <col ref="orddeptcd" visibility="hidden" style="background-color:#c0c0c0; "/>
  1820. <col ref="orddrid" visibility="hidden" style="background-color:#c0c0c0; "/>
  1821. <col ref="item" visibility="hidden" style="background-color:#c0c0c0; "/>
  1822. <col ref="unitcost" visibility="hidden" format="#,###" style="text-align:right; background-color:#c0c0c0; "/>
  1823. <col ref="drugqty" visibility="hidden" format="#,###.00" style="text-align:right; background-color:#c0c0c0; "/>
  1824. <col ref="totdrugqty" visibility="hidden" format="#,###.00" style="text-align:right; background-color:#c0c0c0; "/>
  1825. <col ref="amt" visibility="hidden" format="#,###" style="text-align:right; background-color:#c0c0c0; "/>
  1826. <col ref="baserlapnt" visibility="hidden" style="background-color:#c0c0c0; "/>
  1827. <col ref="baseaddrlapnt" visibility="hidden" style="background-color:#c0c0c0; "/>
  1828. <col ref="pntunitcost" visibility="hidden" style="background-color:#c0c0c0; "/>
  1829. <col ref="hosinresncd" visibility="hidden" style="background-color:#c0c0c0; "/>
  1830. <col ref="orddd" visibility="hidden" style="background-color:#c0c0c0; "/>
  1831. <col ref="ediitem" visibility="hidden" style="background-color:#c0c0c0; "/>
  1832. <col ref="edicd" visibility="hidden" style="background-color:#c0c0c0; "/>
  1833. <col ref="rcptunitcost" visibility="hidden" format="#,###" style="text-align:right; background-color:#c0c0c0; "/>
  1834. <col ref="prcpflag" visibility="hidden" style="background-color:#c0c0c0; "/>
  1835. <col ref="rcptcalcamt" visibility="hidden" format="#,###" style="text-align:right; background-color:#c0c0c0; "/>
  1836. <col ref="estmcdnm" visibility="hidden" style="background-color:#c0c0c0; "/>
  1837. <col ref="pynpy1" visibility="hidden" style="background-color:#c0c0c0; "/>
  1838. <col ref="earncls1" visibility="hidden" style="background-color:#c0c0c0; "/>
  1839. <col ref="earncls2" visibility="hidden" style="background-color:#c0c0c0; "/>
  1840. <col ref="earncls3" visibility="hidden" style="background-color:#c0c0c0; "/>
  1841. <col ref="mechfromdd" visibility="hidden" style="background-color:#c0c0c0; "/>
  1842. <col ref="mechtodd" visibility="hidden" style="background-color:#c0c0c0; "/>
  1843. <script type="javascript" ev:event="onmousedown">
  1844. <![CDATA[
  1845. setPopupMenu("grd_delclod", false, "/root/hidden/popupmenu/gridclod/delitem", "name", "func"); // (tfHelper.js) 컨트롤에서 사용자 팝업 설정 함수
  1846. ]]>
  1847. </script>
  1848. <script type="javascript" ev:event="DOMFocusOut">
  1849. <![CDATA[
  1850. initPopupMenu(); // (tfHelper.js) 사용자 팝업 설정 초기화
  1851. ]]>
  1852. </script>
  1853. <script type="javascript" ev:event="onaftersort">
  1854. <![CDATA[
  1855. grd_delclod.gridToInstance();
  1856. ]]>
  1857. </script>
  1858. <script type="javascript" ev:event="ondblclick">
  1859. <![CDATA[
  1860. var oldcd = model.getValue("/root/main/list6/delclod["+ grd_delclod.row +"]/adjtresncd");
  1861. model.resetInstanceNode("/root/hidden/sppiz01000");
  1862. model.setValue("/root/hidden/sppiz01000/cond/cdcls", "aftin");
  1863. model.setValue("/root/hidden/sppiz01000/cond/cdid", oldcd);
  1864. modal("SPPIZ01000", "1", "550", "450", "SPPIZ01000", "/root/hidden/sppiz01000/cond", "/root/hidden/sppiz01000/cond", "", ""); // SPPIZ01000_심사수정사유관리.xrw
  1865. var newcd = model.getValue("/root/hidden/sppiz01000/rslt/cdid");
  1866. if (newcd) {
  1867. for (var i = 0; i < grd_delclod.selectedRows; i++) {
  1868. var row = grd_delclod.selectedrow(i);
  1869. model.setValue("/root/main/list6/delclod["+ row +"]/adjtresncd", newcd);
  1870. }
  1871. //model.refresh();
  1872. grd_delclod.refresh();
  1873. }
  1874. ]]>
  1875. </script>
  1876. </datagrid>
  1877. <button id="btn_closedelclodlist" class="btn4_letter2" style="left:423px; top:334px; width:56px; height:22px; ">
  1878. <caption>닫기</caption>
  1879. <script type="javascript" ev:event="DOMActivate">
  1880. <![CDATA[
  1881. grd_clodhist.attribute("width") = "1114";
  1882. ln_clodhist.attribute("x2") = "1114";
  1883. cap_grptemp.visible = false;
  1884. grp_delclodlist.visible = false;
  1885. ]]>
  1886. </script>
  1887. </button>
  1888. </group>
  1889. <datagrid id="grd_clodhist" nodeset="/root/main/list2/clod" class="datagrid2" backcoloralternate="transparent" caption="선별^Seq&#xA;no^grupseqno^X^init&#xA;lnno^줄^항^목^실시&#xA;시작일자^G^그룹코드^행위&#xA;재료^수가코드^EDI&#xA;기본코드^EDI&#xA;확장코드^산정&#xA;분류^산정&#xA;의미^산정&#xA;코드^한글명^급&#xA;비^퇴^단가^EDI&#xA;단가^1회량^EDI&#xA;1회량^횟수^1일량^일수^EDI&#xA;일수^금액^EDI금액^확인&#xA;코드^T^치식EDI^치식^실시&#xA;종료일자^변경일자^상한가^EDI&#xA;상한가^약제&#xA;상한차액^EDI&#xA;상한차액^병원가산&#xA;단가^가산단가^급여총액^본인&#xA;부담금^청구액^선택단가^병원가산&#xA;SUM^가산&#xA;SUM^선택진료&#xA;SUM^진료비&#xA;총액^본인부담&#xA;총액^처방명^코드&#xA;구분^조정&#xA;사유^처방과^처방의^항목^item1^item2^totdrugqty^baserlapnt^baseaddrlapnt^pntunitcost^hosinresncd^처방일자^계산&#xA;적용^ediitem^rcptunitcost^prcpflag^rcptcalcamt^estmcdnm^pynpy1^earncls1^earncls2^earncls3^mechfromdd^mechtodd^workflag^삭제사유상세내역^면허종류^면허번호^본인&#xA;부담율^본인부담&#xA;구분" colsep="^" colwidth="20, 30, 30, 14, 30, 26, 28, 22, 68, 18, 71, 30, 74, 68, 70, 30, 30, 30, 230, 25, 18, 58, 58, 40, 40, 30, 40, 40, 40, 58, 58, 37, 14, 30, 30, 68, 68, 50, 50, 56, 56, 58, 66, 58, 58, 58, 58, 58, 66, 58, 58, 58, 200, 30, 30, 80, 60, 50, 45, 35, 40, 50, 50, 40, 40, 68, 33, 40, 50, 40, 50, 40, 40, 40, 40, 40, 68, 68, 80, 100, 100, 100, 50, 81" dataheight="23" ellipsis="true" explorerbar="sortmove" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:271px; width:1114px; height:351px; ">
  1890. <col ref="spcljudgyn" visibility="hidden" style="background-color:#c0c0c0; "/>
  1891. <col ref="seqno" visibility="hidden" style="background-color:#c0c0c0; "/>
  1892. <col ref="grupseqno" visibility="hidden" style="background-color:#c0c0c0; "/>
  1893. <col ref="rowstat"/>
  1894. <col ref="initlnno" visibility="hidden" style="background-color:#c0c0c0; "/>
  1895. <col ref="edilnno"/>
  1896. <col ref="ediitem1"/>
  1897. <col ref="ediitem2"/>
  1898. <col id="cal_01" ref="ordfromdd" type="input" format="yyyy-mm-dd"/>
  1899. <col ref="grupsnglflag"/>
  1900. <col imemode="disabled" ref="grupcalcscorcd" type="input" _chartype="upper"/>
  1901. <col disabled="true" ref="matractflag" type="combo">
  1902. <choices>
  1903. <item>
  1904. <label>재</label>
  1905. <value>1</value>
  1906. </item>
  1907. <item>
  1908. <label>가O</label>
  1909. <value>2</value>
  1910. </item>
  1911. <item>
  1912. <label>가X</label>
  1913. <value>3</value>
  1914. </item>
  1915. <item>
  1916. <label>약</label>
  1917. <value>4</value>
  1918. </item>
  1919. </choices>
  1920. </col>
  1921. <col imemode="disabled" ref="snglcalcscorcd" type="input" _chartype="upper"/>
  1922. <col imemode="disabled" ref="basecd" type="input" _chartype="upper"/>
  1923. <col imemode="disabled" ref="edicd" _chartype="upper"/>
  1924. <col ref="estmcls" visibility="hidden" style="background-color:#c0c0c0; "/>
  1925. <!-- <col ref="estmmncd" type="input" imemode="disabled" maxlength="5"/>-->
  1926. <col ref="estmmncd" style="text-align:center; "/>
  1927. <col ref="estmcd" style="text-align:center; "/>
  1928. <col imemode="hangul" ref="hngnm" type="input"/>
  1929. <col disabled="true" ref="payflag" type="combo" style="text-align:center; ">
  1930. <choices>
  1931. <item>
  1932. <label>급</label>
  1933. <value>0</value>
  1934. </item>
  1935. <item>
  1936. <label>100</label>
  1937. <value>1</value>
  1938. </item>
  1939. <item>
  1940. <label>비</label>
  1941. <value>2</value>
  1942. </item>
  1943. <item>
  1944. <label>선</label>
  1945. <value>8</value>
  1946. </item>
  1947. <item>
  1948. <label>선</label>
  1949. <value>9</value>
  1950. </item>
  1951. </choices>
  1952. </col>
  1953. <col ref="prcpflagyn" style="text-align:center; "/>
  1954. <col ref="unitcost" type="input" format="#,###" style="text-align:right; "/>
  1955. <col ref="ediunitcost" format="#,###" style="text-align:right; "/>
  1956. <col ref="drugqty" type="input" format="###.00" maxlength="5.4" style="text-align:right; "/>
  1957. <col ref="edidrugqty" type="input" format="###.00" maxlength="5.4" style="left:1182px; top:32px; width:57px; height:23px; text-align:right; "/>
  1958. <col ref="tims" type="input" format="##" maxlength="2" style="text-align:right; "/>
  1959. <col ref="daydrugqty" format="###.00" maxlength="5.4" style="text-align:right; "/>
  1960. <col ref="dayno" type="input" format="##" maxlength="4" style="text-align:right; "/>
  1961. <col ref="edidayno" type="input" format="##" maxlength="4" style="text-align:right; "/>
  1962. <col ref="amt" format="#,###" style="text-align:right; "/>
  1963. <col ref="ediamt" format="#,###" style="text-align:right; "/>
  1964. <col ref="cnfmcd" type="inputbutton"/>
  1965. <col ref="lnunitspclspecyn" style="text-align:center; "/>
  1966. <col ref="toot" visibility="hidden"/>
  1967. <col ref="toot1"/>
  1968. <col ref="ordtodd" type="input" format="yyyy-mm-dd"/>
  1969. <col ref="updtdd" type="input" format="yyyy/mm/dd"/>
  1970. <col ref="druglimitamt" format="#,###" style="text-align:right; "/>
  1971. <col ref="edidruglimitamt" format="#,###" style="text-align:right; "/>
  1972. <col ref="limitdiffamt" format="#,###" style="text-align:right; "/>
  1973. <col ref="edilimitdiffamt" format="#,###" style="text-align:right; "/>
  1974. <col ref="edihospaddamt" format="#,###" style="text-align:right; "/>
  1975. <col ref="ediaddamt" format="(-)#,###" style="text-align:right; "/>
  1976. <col ref="paytotamt" format="#,###" style="text-align:right; "/>
  1977. <col ref="ownbamt" format="#,###" style="text-align:right; "/>
  1978. <col ref="clamamt" format="#,###" style="text-align:right; "/>
  1979. <col ref="choiordamt" format="#,###" style="text-align:right; "/>
  1980. <col ref="edihospaddtotamt" format="#,###" style="text-align:right; "/>
  1981. <col ref="ediaddtotamt" format="(-)#,###" style="text-align:right; "/>
  1982. <col ref="choiordtotamt" format="#,###" style="text-align:right; "/>
  1983. <col ref="totordamt" format="#,###" style="text-align:right; "/>
  1984. <col ref="ownbtotamt" format="#,###" style="text-align:right; "/>
  1985. <col ref="ordnm"/>
  1986. <col ref="edicdflag" style="text-align:center; "/>
  1987. <col ref="adjtresncd" style="text-align:center; "/>
  1988. <col disabled="true" ref="orddeptcd" type="combo" style="text-align:center; ">
  1989. <choices>
  1990. <itemset nodeset="/root/init/orddeptcd2/orddeptcdlist">
  1991. <label ref="nm"/>
  1992. <value ref="cd"/>
  1993. </itemset>
  1994. </choices>
  1995. </col>
  1996. <col disabled="true" ref="orddrid" type="combo" style="text-align:center; ">
  1997. <choices>
  1998. <itemset nodeset="/root/init/orddrid2/orddridlist">
  1999. <label ref="nm"/>
  2000. <value ref="cd"/>
  2001. </itemset>
  2002. </choices>
  2003. </col>
  2004. <col ref="item" style="text-align:center; "/>
  2005. <col ref="item1" style="background-color:#c0c0c0; "/>
  2006. <col ref="item2" style="background-color:#c0c0c0; "/>
  2007. <col ref="totdrugqty" format="#,###.00" style="left:2776px; top:32px; width:40px; height:23px; text-align:right; background-color:#c0c0c0; "/>
  2008. <col ref="baserlapnt" style="background-color:#c0c0c0; "/>
  2009. <col ref="baseaddrlapnt" style="background-color:#c0c0c0; "/>
  2010. <col ref="pntunitcost" style="background-color:#c0c0c0; "/>
  2011. <col ref="hosinresncd" style="background-color:#c0c0c0; "/>
  2012. <col ref="orddd" format="yyyy-mm-dd"/>
  2013. <col ref="calcappyn" style="text-align:center; "/>
  2014. <col ref="ediitem" style="background-color:#c0c0c0; "/>
  2015. <col ref="rcptunitcost" format="#,###" style="text-align:right; background-color:#c0c0c0; "/>
  2016. <col ref="prcpflag" style="background-color:#c0c0c0; "/>
  2017. <col ref="rcptcalcamt" format="#,###" style="text-align:right; background-color:#c0c0c0; "/>
  2018. <col ref="estmcdnm" style="background-color:#c0c0c0; "/>
  2019. <col ref="pynpy1" style="background-color:#c0c0c0; "/>
  2020. <col ref="earncls1" style="background-color:#c0c0c0; "/>
  2021. <col ref="earncls2" style="background-color:#c0c0c0; "/>
  2022. <col ref="earncls3" style="background-color:#c0c0c0; "/>
  2023. <col ref="mechfromdd" format="yyyy-mm-dd" style="background-color:#c0c0c0; "/>
  2024. <col ref="mechtodd" format="yyyy-mm-dd" style="background-color:#c0c0c0; "/>
  2025. <col ref="workflag" style="background-color:#c0c0c0; "/>
  2026. <col ref="adjtresndesc" visible="hidden" style="text-align:center; "/>
  2027. <col ref="licnsflag" type="input"/>
  2028. <col ref="licnsno" type="input"/>
  2029. <col ref="payownbrate" type="input" visibility="hidden" format="#,##0" style="text-align:center; vertical-align:bottom; "/>
  2030. <col ref="cpflag" type="combo">
  2031. <choices>
  2032. <itemset nodeset="/root/init/PK221list/PK221">
  2033. <label ref="cdnm"/>
  2034. <value ref="cdid"/>
  2035. </itemset>
  2036. </choices>
  2037. </col>
  2038. <script type="javascript" ev:event="onmousedown">
  2039. <![CDATA[
  2040. var row = grd_clodhist.mouseRow;
  2041. var col = grd_clodhist.mouseCol;
  2042. if (col != grd_clodhist.colRef("cpflag")) { // cpflag : 본인부담구분인 경우 이벤트 적용 안되도록 함(2017.02.01 LEJ)
  2043. setPopupMenu("grd_clodhist", false, "/root/hidden/popupmenu/gridclod/item", "name", "func"); // (tfHelper.js) 컨트롤에서 사용자 팝업 설정 함수
  2044. if (isDataCell() == false) { // (tfHelper.js) datagrid click or dbclick 시점에 현재 click target이 data 영역인지 check
  2045. if (event.button == 3 && model.getValue("/root/main/item1/clbs/clamkey")) { // 3 : 오른쪽 버튼 // 조회된 심사대상자가 있으면
  2046. // 처방이 한줄도 없는 경우에도 "행 추가"를 하기 위해 사용함
  2047. window.showPopupMenu(true);
  2048. window.setPopupMenu(true, "/root/hidden/popupmenu/gridclod/inititem", "name", "func", false);
  2049. }
  2050. }
  2051. }
  2052. ]]>
  2053. </script>
  2054. <script type="javascript" ev:event="onmouseup">
  2055. <![CDATA[
  2056. var row = grd_clodhist.mouseRow;
  2057. var col = grd_clodhist.mouseCol;
  2058. if (grd_clodhist.isCell(event.target) && grd_clodhist.mouseRow >= grd_clodhist.fixedRows) {
  2059. if (col == grd_clodhist.colRef("estmmncd") || col == grd_clodhist.colRef("estmcd")) { // '산정의미' / '산정코드' 필드
  2060. // Message 표시
  2061. var estmcls = model.getValue("/root/main/list2/clod["+ row +"]/estmcls");
  2062. var estmmncd = model.getValue("/root/main/list2/clod["+ row +"]/estmmncd");
  2063. var estmcd = model.getValue("/root/main/list2/clod["+ row +"]/estmcd");
  2064. var estmcdnm = model.getValue("/root/main/list2/clod["+ row +"]/estmcdnm");
  2065. if (estmcls == "-") { // 해당사항없음
  2066. // 마이그레이션 데이터인 경우 estmcls="-", estmmncd="0000", basecd=edicd 형태임
  2067. model.setValue("/root/hidden/list3/msgspclformat", "조회된 산정코드가 없습니다.");
  2068. } else if (estmcls) {
  2069. var msg = "산정코드 ["+ estmcls +"] ";
  2070. if (estmmncd != "" && estmmncd != "-") {
  2071. msg += "산정의미코드: "+ estmmncd;
  2072. }
  2073. else {
  2074. model.setValue("/root/hidden/list3/msgspclformat", msg +" 입력된 산정의미코드가 없습니다.");
  2075. //model.refresh();
  2076. model.refreshpart("/root/hidden/list3/msgspclformat");
  2077. return;
  2078. }
  2079. if (estmcd) {
  2080. msg += " / 산정코드: "+ estmcd;
  2081. }
  2082. if (estmcdnm) {
  2083. msg += " / 명칭: "+ estmcdnm;
  2084. }
  2085. model.setValue("/root/hidden/list3/msgspclformat", msg);
  2086. } else {
  2087. model.setValue("/root/hidden/list3/msgspclformat", "조회된 산정코드가 없습니다.");
  2088. }
  2089. //model.refresh();
  2090. model.refreshpart("/root/hidden/list3/msgspclformat");
  2091. }
  2092. else if (col == grd_clodhist.colRef("cnfmcd")) { // '확인코드' 필드
  2093. // Message 표시
  2094. var seqno = model.getValue("/root/main/list2/clod["+ row +"]/seqno");
  2095. var clspindex = "";
  2096. for (var j = 1; j < grd_clsphist.rows; j++) {
  2097. var spcClodseqno = model.getValue("/root/main/list3/clsp["+ j +"]/clodseqno");
  2098. var unitflag = model.getValue("/root/main/list3/clsp["+ j +"]/unitflag");
  2099. if (unitflag == "J" && seqno == spcClodseqno && model.getValue("/root/main/list3/clsp["+ j +"]/spclcd") == "JT001" && grd_clsphist.rowstatus(j) != 4) {
  2100. clspindex = j;
  2101. j = grd_clsphist.rows;
  2102. }
  2103. }
  2104. if (clspindex) {
  2105. var spclcd = model.getValue("/root/main/list3/clsp["+ clspindex +"]/spclcd");
  2106. var spclspec = model.getValue("/root/main/list3/clsp["+ clspindex +"]/spclspec");
  2107. var spclformat = model.getValue("/root/main/list3/clsp["+ clspindex +"]/spclformat");
  2108. model.setValue("/root/hidden/list3/msgspclformat", "확인코드 - "+ spclcd +" / 입력코드내역 : "+ spclspec +" / 기재형식 : "+ spclformat);
  2109. } else {
  2110. model.setValue("/root/hidden/list3/msgspclformat", "입력된 확인코드 내역이 없습니다.");
  2111. }
  2112. //model.refresh();
  2113. model.refreshpart("/root/hidden/list3/msgspclformat");
  2114. }
  2115. else if (col == grd_clodhist.colRef("lnunitspclspecyn")) { // 'T' 필드
  2116. // Message 표시
  2117. var seqno = model.getValue("/root/main/list2/clod["+ row +"]/seqno");
  2118. var clspindex = "";
  2119. for (var j = 1; j < grd_clsphist.rows; j++) {
  2120. var spcClodseqno = model.getValue("/root/main/list3/clsp["+ j +"]/seqno");
  2121. var unitflag = model.getValue("/root/main/list3/clsp["+ j +"]/unitflag");
  2122. if (unitflag == "J" && seqno == spcClodseqno && model.getValue("/root/main/list3/clsp["+ j +"]/spclcd") != "JT001" && grd_clsphist.rowstatus(j) != 4) {
  2123. clspindex = j;
  2124. j = grd_clsphist.rows;
  2125. }
  2126. }
  2127. if (clspindex) {
  2128. var spclcd = model.getValue("/root/main/list3/clsp["+ clspindex +"]/spclcd");
  2129. var cdnm = model.getValue("/root/main/list3/clsp["+ clspindex +"]/cdnm");
  2130. var spclspec = model.getValue("/root/main/list3/clsp["+ clspindex +"]/spclspec");
  2131. var spclformat = model.getValue("/root/main/list3/clsp["+ clspindex +"]/spclformat");
  2132. model.setValue("/root/hidden/list3/msgspclformat", "특정내역코드: "+ spclcd +" / 특정내역명칭: "+ cdnm +" / 기재내역: "+ spclspec +" / 기재형식: "+ spclformat);
  2133. } else {
  2134. model.setValue("/root/hidden/list3/msgspclformat", "입력된 줄단위 특정내역이 없습니다.");
  2135. }
  2136. //model.refresh();
  2137. model.refreshpart("/root/hidden/list3/msgspclformat");
  2138. }
  2139. else if (col == grd_clodhist.colRef("adjtresncd")) { // '심사사유' 필드
  2140. fSetAdjtResnCd();
  2141. }
  2142. }
  2143. ]]>
  2144. </script>
  2145. <!-- <script type="javascript" ev:event="onendedit">-->
  2146. <script type="javascript" ev:event="xforms-value-changed">
  2147. <![CDATA[
  2148. var row = grd_clodhist.row;
  2149. var col = grd_clodhist.col;
  2150. var adjtresncd = model.getValue("/root/main/list2/clod["+ row +"]/adjtresncd");
  2151. var cmbAdjtresncd = "";
  2152. var newcd = "";
  2153. if (adjtresncd == "" || adjtresncd == "-") { // 심사(조정)사유가 입력되지 않은 경우
  2154. cmbAdjtresncd = model.getValue("/root/hidden/list2/clodstat/cmbAdjtresncd");
  2155. if (cmbAdjtresncd) {
  2156. // model.setValue("/root/main/list2/clod["+ row +"]/adjtresncd", adjtresncd);
  2157. // grd_clodhist.cellStyle("background-color", row, 1, row, grd_clodhist.colRef("basecd")) = "#ffff9c"; // ffff9c=연한노랑
  2158. } else {
  2159. model.resetInstanceNode("/root/hidden/sppiz01000");
  2160. model.setValue("/root/hidden/sppiz01000/cond/cdcls", "aftin");
  2161. model.setValue("/root/hidden/sppiz01000/cond/cdid", adjtresncd);
  2162. modal("SPPIZ01000", "1", "550", "450", "SPPIZ01000", "/root/hidden/sppiz01000/cond", "/root/hidden/sppiz01000/cond", "", ""); // SPPIZ01000_심사수정사유관리.xrw
  2163. newcd = model.getValue("/root/hidden/sppiz01000/rslt/cdid");
  2164. // var newcd = fSetAdjtResnCd();
  2165. if (newcd == "" || newcd == "-") {
  2166. // 처방 data 및 row status를 변경 이전 상태로 복구한다.
  2167. fCancelClodStatusChng();
  2168. //model.refresh();
  2169. grd_clodhist.refresh();
  2170. return;
  2171. }
  2172. }
  2173. }
  2174. if (col == grd_clodhist.colRef("ordfromdd")) { // 처방시작일이 변경된 경우
  2175. var ordfromdd = model.getValue("/root/main/list2/clod["+ row +"]/ordfromdd");
  2176. var ordtodd = model.getValue("/root/main/list2/clod["+ row +"]/ordtodd");
  2177. var item1 = model.getValue("/root/main/list2/clod["+ row +"]/item1");
  2178. if (model.getValue("/root/hidden/item5/clod/ordfromdd") == ordfromdd) {
  2179. return;
  2180. }
  2181. if (isValidDateTime(ordfromdd) == false) { // (dateHelper.js) 유효한 날짜, 시간 인지 점검
  2182. // 처방 data 및 row status를 변경 이전 상태로 복구한다.
  2183. fCancelClodStatusChng();
  2184. //model.refresh();
  2185. grd_clodhist.refresh();
  2186. return;
  2187. }
  2188. // 진료개시일과 진료종료일 사이의 일자인지 체크
  2189. var clbsordfromdd = model.getValue("/root/main/item1/clbs/ordfromdd");
  2190. var clbsordtodd = model.getValue("/root/main/item1/clbs/ordtodd");
  2191. if (item1 != "03" && clbsordfromdd && clbsordtodd) {
  2192. if (ordfromdd < clbsordfromdd || ordfromdd > clbsordtodd) {
  2193. messageBox("진료 개시일자~종료일자를 벗어난 처방 시작일자가", "E005"); ///입원 개시일자~종료일자를 벗어난 처방 시작일자가 선택되었습니다.
  2194. // 처방 data 및 row status를 변경 이전 상태로 복구한다.
  2195. fCancelClodStatusChng();
  2196. grd_clodhist.refresh();
  2197. return;
  2198. }
  2199. }
  2200. var mechfromdd = model.getValue("/root/main/list2/clod["+ row +"]/mechfromdd");
  2201. var mechtodd = model.getValue("/root/main/list2/clod["+ row +"]/mechtodd");
  2202. // 2009-01-30
  2203. /*
  2204. if (mechfromdd && mechtodd) { // 신규 추가된 row를 제외한다.
  2205. if (mechfromdd > ordfromdd || mechtodd < ordfromdd) { // 입력된 처방일자가 수가적용~종료일자를 벗어난 경우
  2206. messageBox("수가코드의 적용일자~종료일자를 벗어난 처방 시작일자가", "E005"); ///수가코드의 적용일자~종료일자를 벗어난 처방 시작일자가 선택되었습니다.
  2207. // 처방 data 및 row status를 변경 이전 상태로 복구한다.
  2208. fCancelClodStatusChng();
  2209. grd_clodhist.refresh();
  2210. return;
  2211. fSetTotDrugQtyAmt();
  2212. grd_clodhist.refresh();
  2213. }
  2214. }
  2215. */
  2216. // 신규입력된 처방만 처방일수를 변경한다.
  2217. var rowstatus = grd_clodhist.rowstatus(row);
  2218. if (rowstatus == 1 || rowstatus == 3) { // 1 : insert, 3 : insert & new
  2219. model.setValue("/root/main/list2/clod["+ row +"]/orddd", ordfromdd);
  2220. }
  2221. var dayno = model.getValue("/root/main/list2/clod["+ row +"]/dayno");
  2222. if (dayno) { // 일수를 기준으로 날짜를 구한다.
  2223. dayno = parseInt(dayno);
  2224. if (dayno >= 0) {
  2225. var fromDate = ordfromdd.toDate();
  2226. var toDate = fromDate.getAddDate(dayno - 1, "D"); // (dateHelper.js) 특정일자의 상대일자(+/-)를 계산
  2227. ordtodd = toDate.getDateFormat("YYYY") + toDate.getDateFormat("MM") + toDate.getDateFormat("DD");
  2228. if (item1 != "03" && clbsordfromdd && clbsordtodd) {
  2229. if (ordtodd < clbsordfromdd || ordtodd > clbsordtodd) {
  2230. messageBox("일수(총투)를 기준으로 계산된 처방 종료일자가 진료 개시일자~종료일자를 벗어나", "E016"); ///일수(총투)를 기준으로 계산된 처방 종료일자가 입원 개시일자~종료일자를 벗어나 유효하지 않습니다.
  2231. // 처방 data 및 row status를 변경 이전 상태로 복구한다.
  2232. fCancelClodStatusChng();
  2233. grd_clodhist.refresh();
  2234. return;
  2235. }
  2236. }
  2237. // 2009-01-30
  2238. /*
  2239. if (mechfromdd && mechtodd) { // 신규 추가된 row를 제외한다.
  2240. if (mechfromdd > ordtodd || mechtodd < ordtodd) { // 입력된 처방일자가 수가적용~종료일자를 벗어난 경우
  2241. messageBox("일수(총투)를 기준으로 계산된 처방 종료일자가 선택된 수가코드의 적용일자~종료일자를 벗어나", "E016"); ///일수(총투)를 기준으로 계산된 처방 종료일자가 선택된 수가코드의 적용일자~종료일자를 벗어나 유효하지 않습니다.
  2242. // 처방 data 및 row status를 변경 이전 상태로 복구한다.
  2243. fCancelClodStatusChng();
  2244. grd_clodhist.refresh();
  2245. return;
  2246. }
  2247. }
  2248. */
  2249. model.setValue("/root/main/list2/clod["+ row +"]/ordtodd", ordtodd);
  2250. } else {
  2251. // 처방 data 및 row status를 변경 이전 상태로 복구한다.
  2252. fCancelClodStatusChng();
  2253. grd_clodhist.refresh();
  2254. return;
  2255. }
  2256. } else { // 입력된 일수가 없는 경우
  2257. if (ordtodd) { // 처방종료일자를 기준으로 날짜를 구한다.
  2258. var dayno = getDateInterval(ordfromdd, ordtodd); // (dateHelper.js) 두 일자사이의 차를 일단위로 반환
  2259. if (dayno >= 0) {
  2260. model.setValue("/root/main/list2/clod["+ row +"]/dayno", dayno + 1);
  2261. // 기존에 줄번호가 부여안된 경우
  2262. if (model.getValue("/root/main/list2/clod["+ row +"]/edilnno") == "") {
  2263. var snglcalcscorcd = model.getValue("/root/main/list2/clod["+ row +"]/snglcalcscorcd");
  2264. if (snglcalcscorcd) {
  2265. //event.keyCode = "13";
  2266. grd_clodhist.col = grd_clodhist.colRef("snglcalcscorcd");
  2267. // 수가코드를 조회한 후 처방으로 행 추가를 한다.
  2268. fSetSrchCalcScorCd(); // 처방 시작일자를 입력했는데 일수가 자동계산된 경우
  2269. }
  2270. } else {
  2271. // 변경된 투여량, 횟수, 일수에 따라 총투여량, 금액을 재계산한다.
  2272. grd_clodhist.col = grd_clodhist.colRef("dayno"); // 일수
  2273. fSetTotDrugQtyAmt();
  2274. // 처방의 수정된 row 상태를 표시한다.
  2275. fSetOrderChangeRowStat(row);
  2276. }
  2277. } else {
  2278. model.setValue("/root/main/list2/clod["+ row +"]/ordtodd", ordfromdd);
  2279. }
  2280. } else {
  2281. model.setValue("/root/main/list2/clod["+ row +"]/ordtodd", ordfromdd);
  2282. }
  2283. } // if (dayno == "")
  2284. // 변경일자가 입력된 줄이 삭제되었는지 여부를 확인하기 위해
  2285. var updtdd = model.getValue("/root/main/list2/clod["+ grd_clodhist.row +"]/updtdd");
  2286. // 변경일자를 갱신한다.
  2287. if (updtdd) {
  2288. fChkUpdtdd();
  2289. }
  2290. // 2009-01-30 실시일자를 변경한 경우 현재 수가의 적용일자를 벗어나면 수가를 다시 조회한다.
  2291. if (mechfromdd && mechtodd) { // 신규 추가된 row를 제외한다.
  2292. if (mechfromdd > ordfromdd || mechtodd < ordfromdd) { // 입력된 처방일자가 수가적용~종료일자를 벗어난 경우
  2293. fSetTotDrugQtyAmt();
  2294. grd_clodhist.refresh();
  2295. } else {
  2296. grd_clodhist.refresh();
  2297. }
  2298. }
  2299. } // if (col == grd_clodhist.colRef("ordfromdd"))
  2300. else if (col == grd_clodhist.colRef("ordtodd")) { // 처방종료일이 변경된 경우
  2301. var ordfromdd = model.getValue("/root/main/list2/clod["+ row +"]/ordfromdd");
  2302. var ordtodd = model.getValue("/root/main/list2/clod["+ row +"]/ordtodd");
  2303. var item1 = model.getValue("/root/main/list2/clod["+ row +"]/item1");
  2304. if (model.getValue("/root/hidden/item5/clod/ordtodd") == ordtodd) {
  2305. return;
  2306. }
  2307. if (isValidDateTime(ordtodd) == false) { // (dateHelper.js) 유효한 날짜, 시간 인지 점검
  2308. // 처방 data 및 row status를 변경 이전 상태로 복구한다.
  2309. fCancelClodStatusChng();
  2310. grd_clodhist.refresh();
  2311. return;
  2312. }
  2313. // 진료개시일, 종료일 사이의 일자인지 체크
  2314. var clbsordfromdd = model.getValue("/root/main/item1/clbs/ordfromdd");
  2315. var clbsordtodd = model.getValue("/root/main/item1/clbs/ordtodd");
  2316. if (item1 != "03" && clbsordfromdd && clbsordtodd) {
  2317. if (ordtodd < clbsordfromdd || ordtodd > clbsordtodd) {
  2318. messageBox("진료 개시일자~종료일자를 벗어난 처방 종료일자가", "E005"); ///진료 개시일자~종료일자를 벗어난 처방 종료일자가 선택되었습니다.
  2319. // 처방 data 및 row status를 변경 이전 상태로 복구한다.
  2320. fCancelClodStatusChng();
  2321. //model.refresh();
  2322. grd_clodhist.refresh();
  2323. return;
  2324. }
  2325. }
  2326. var mechfromdd = model.getValue("/root/main/list2/clod["+ row +"]/mechfromdd");
  2327. var mechtodd = model.getValue("/root/main/list2/clod["+ row +"]/mechtodd");
  2328. // 2009-01-30
  2329. /*
  2330. if (mechfromdd && mechtodd) { // 신규 추가된 row를 제외한다.
  2331. if (mechfromdd > ordtodd || mechtodd < ordtodd) { // 입력된 처방일자가 수가적용~종료일자를 벗어난 경우
  2332. messageBox("수가코드의 적용일자~종료일자를 벗어난 처방 종료일자가", "E005"); ///수가코드의 적용일자~종료일자를 벗어난 처방 종료일자가 선택되었습니다.
  2333. // 처방 data 및 row status를 변경 이전 상태로 복구한다.
  2334. fCancelClodStatusChng();
  2335. //model.refresh();
  2336. grd_clodhist.refresh();
  2337. return;
  2338. }
  2339. }
  2340. */
  2341. if (ordfromdd) {
  2342. var dayno = getDateInterval(ordfromdd, ordtodd); // (dateHelper.js) 두 일자사이의 차를 일단위로 반환
  2343. // if (dayno >= 0 && dayno <= 365) {
  2344. if (dayno >= 0) {
  2345. model.setValue("/root/main/list2/clod["+ row +"]/dayno", dayno + 1);
  2346. // 기존에 줄번호가 부여안된 경우
  2347. if (model.getValue("/root/main/list2/clod["+ row +"]/edilnno") == "") {
  2348. var snglcalcscorcd = model.getValue("/root/main/list2/clod["+ row +"]/snglcalcscorcd");
  2349. if (snglcalcscorcd) {
  2350. grd_clodhist.col = grd_clodhist.colRef("snglcalcscorcd");
  2351. fSetSrchCalcScorCd(); // 처방 종료일자를 입력했는데 일수가 자동계산된 경우
  2352. }
  2353. } else {
  2354. // 변경된 투여량, 횟수, 일수에 따라 총투여량, 금액을 재계산한다.
  2355. grd_clodhist.col = grd_clodhist.colRef("dayno");
  2356. fSetTotDrugQtyAmt();
  2357. // 처방의 수정된 row 상태를 표시한다.
  2358. fSetOrderChangeRowStat(row);
  2359. }
  2360. // } else if (dayno < 0) {
  2361. } else {
  2362. messageBox("처방 시작일자가 처방 종료일자 보다 이후", "E008"); //처방 시작일자가 처방 종료일자 보다 이후 입니다.
  2363. // 처방 data 및 row status를 변경 이전 상태로 복구한다.
  2364. fCancelClodStatusChng();
  2365. // model.resetInstanceNode("/root/main/list2/clod["+ row +"]/dayno");
  2366. }
  2367. } else { // 처방 시작일자가 없는 경우
  2368. var dayno = model.getValue("/root/main/list2/clod["+ row +"]/dayno");
  2369. if (dayno) { // 일수를 기준으로 날짜를 구한다.
  2370. dayno = parseInt(dayno);
  2371. // if (dayno >= 0 && dayno <= 365) {
  2372. if (dayno >= 0) {
  2373. var toDate = ordtodd.toDate();
  2374. var fromDate = toDate.getAddDate((dayno - 1) * -1, "D"); // (dateHelper.js) 특정일자의 상대일자(+/-)를 계산
  2375. ordfromdd = fromDate.getDateFormat("YYYY") + fromDate.getDateFormat("MM") + fromDate.getDateFormat("DD");
  2376. if (item1 != "03" && clbsordfromdd && clbsordtodd) {
  2377. if (ordfromdd < clbsordfromdd || ordfromdd > clbsordtodd) {
  2378. // messageBox("일수를 기준으로 계산된 처방시작일자가 [진료 개시일자~종료일자]를 벗어나", "E016"); ///일수(총투)를 기준으로 계산된 처방 시작일자가 입원 개시일자~종료일자를 벗어나 유효하지 않습니다.
  2379. // // 처방 data 및 row status를 변경 이전 상태로 복구한다.
  2380. // fCancelClodStatusChng();
  2381. //// model.resetInstanceNode("/root/main/list2/clod["+ row +"]/dayno");
  2382. // //model.refresh();
  2383. // grd_clodhist.refresh();
  2384. // return;
  2385. }
  2386. }
  2387. // 2009-01-30
  2388. /*
  2389. if (mechfromdd && mechtodd) { // 신규 추가된 row를 제외한다.
  2390. if (mechfromdd > ordfromdd || mechtodd < ordfromdd) { // 입력된 처방일자가 수가적용~종료일자를 벗어난 경우
  2391. messageBox("일수를 기준으로 계산된 처방시작일자가 선택된 [수가코드의 적용일자~종료일자]를 벗어나", "E016"); ///일수(총투)를 기준으로 계산된 처방 시작일자가 선택된 수가코드의 적용일자~종료일자를 벗어나 유효하지 않습니다.
  2392. // 처방 data 및 row status를 변경 이전 상태로 복구한다.
  2393. fCancelClodStatusChng();
  2394. // model.resetInstanceNode("/root/main/list2/clod["+ row +"]/dayno");
  2395. //model.refresh();
  2396. grd_clodhist.refresh();
  2397. return;
  2398. }
  2399. }
  2400. */
  2401. // 일수를 기준으로 구한 날짜가 올바른 경우
  2402. model.setValue("/root/main/list2/clod["+ row +"]/ordfromdd", ordfromdd);
  2403. model.setValue("/root/main/list2/clod["+ row +"]/orddd", ordfromdd);
  2404. // 기존에 줄번호가 부여안된 경우
  2405. if (model.getValue("/root/main/list2/clod["+ row +"]/edilnno") == "") {
  2406. var snglcalcscorcd = model.getValue("/root/main/list2/clod["+ row +"]/snglcalcscorcd");
  2407. if (snglcalcscorcd) {
  2408. grd_clodhist.col = grd_clodhist.colRef("snglcalcscorcd");
  2409. fSetSrchCalcScorCd(); // 처방 종료일자를 입력했는데 처방 시작일자가 자동계산된 경우
  2410. }
  2411. } else {
  2412. // 변경된 투여량, 횟수, 일수에 따라 총투여량, 금액을 재계산한다.
  2413. grd_clodhist.col = grd_clodhist.colRef("dayno"); // 일수
  2414. fSetTotDrugQtyAmt();
  2415. // 처방의 수정된 row 상태를 표시한다.
  2416. fSetOrderChangeRowStat(row);
  2417. }
  2418. } else {
  2419. // 처방 data 및 row status를 변경 이전 상태로 복구한다.
  2420. fCancelClodStatusChng();
  2421. // model.resetInstanceNode("/root/main/list2/clod["+ row +"]/dayno");
  2422. }
  2423. } else {
  2424. model.setValue("/root/main/list2/clod["+ row +"]/ordfromdd", ordtodd);
  2425. model.setValue("/root/main/list2/clod["+ row +"]/orddd", ordtodd);
  2426. }
  2427. }
  2428. grd_clodhist.refresh();
  2429. }
  2430. else if (col == grd_clodhist.colRef("grupcalcscorcd") || col == grd_clodhist.colRef("snglcalcscorcd") || col == grd_clodhist.colRef("basecd") || col == grd_clodhist.colRef("hngnm")) { // 그룹/수가/EDI코드를 입력한 경우이면
  2431. fSetSrchCalcScorCd();
  2432. //grd_clodhist.refresh();
  2433. }
  2434. else if (col == grd_clodhist.colRef("updtdd")) { // 변경일자가 변경된 경우
  2435. var updtdd = model.getValue("/root/main/list2/clod["+ row +"]/updtdd");
  2436. if (model.getValue("/root/hidden/item5/clod/updtdd") == updtdd) {
  2437. return;
  2438. }
  2439. if (isValidDateTime(updtdd) == false) { // (dateHelper.js) 유효한 날짜, 시간 인지 점검
  2440. // 처방 data 및 row status를 변경 이전 상태로 복구한다.
  2441. fCancelClodStatusChng();
  2442. grd_clodhist.refresh();
  2443. return;
  2444. }
  2445. }
  2446. else if (col == grd_clodhist.colRef("unitcost")) { // 단가가 변경된 경우(추가청구인경우만 해당됨)
  2447. if (model.getValue("/root/main/list2/clod["+ row +"]/unitcost") != model.getValue("/root/hidden/item5/clod/unitcost")) {
  2448. fSetTotDrugQtyAmt();
  2449. grd_clodhist.refresh();
  2450. }
  2451. }
  2452. else if (col == grd_clodhist.colRef("drugqty")) { // 1회투여량이 변경된 경우
  2453. if (model.getValue("/root/main/list2/clod["+ row +"]/drugqty") != model.getValue("/root/hidden/item5/clod/drugqty")) {
  2454. fSetTotDrugQtyAmt();
  2455. grd_clodhist.refresh();
  2456. }
  2457. }
  2458. else if (col == grd_clodhist.colRef("tims")) { // 횟수가 변경된 경우
  2459. if (model.getValue("/root/main/list2/clod["+ row +"]/tims") != model.getValue("/root/hidden/item5/clod/tims")) {
  2460. fSetTotDrugQtyAmt();
  2461. grd_clodhist.refresh();
  2462. }
  2463. }
  2464. else if (col == grd_clodhist.colRef("dayno")) { // 일수가 변경된 경우
  2465. if (model.getValue("/root/main/list2/clod["+ row +"]/dayno") != model.getValue("/root/hidden/item5/clod/dayno")) {
  2466. var Sdayno = model.getValue("/root/main/list2/clod["+ row +"]/dayno");
  2467. var dayno = parseInt(Sdayno);
  2468. var ordfromdd = model.getValue("/root/main/list2/clod["+ row +"]/ordfromdd");
  2469. var ordtodd = model.getValue("/root/main/list2/clod["+ row +"]/ordtodd");
  2470. var item1 = model.getValue("/root/main/list2/clod["+ row +"]/item1");
  2471. // 진료개시일과 종료일 사이의 일자인지 체크
  2472. var clbsordfromdd = model.getValue("/root/main/item1/clbs/ordfromdd");
  2473. var clbsordtodd = model.getValue("/root/main/item1/clbs/ordtodd");
  2474. // 수가코드의 적용일자~종료일자 사이의 일자인지 체크
  2475. var mechfromdd = model.getValue("/root/main/list2/clod["+ row +"]/mechfromdd");
  2476. var mechtodd = model.getValue("/root/main/list2/clod["+ row +"]/mechtodd");
  2477. var insukind = model.getValue("/root/main/item1/clbs/insukindcd");
  2478. if (Sdayno == "" || dayno <= 0) {
  2479. }
  2480. else if (ordfromdd) {
  2481. var fromDate = ordfromdd.toDate();
  2482. var toDate = fromDate.getAddDate(dayno - 1, "D"); // (dateHelper.js) 특정일자의 상대일자(+/-)를 계산
  2483. ordtodd = toDate.getDateFormat("YYYY") + toDate.getDateFormat("MM") + toDate.getDateFormat("DD");
  2484. if (item1 != "03" && clbsordfromdd && clbsordtodd) {
  2485. if (ordtodd < clbsordfromdd || ordtodd > clbsordtodd) {
  2486. // messageBox("일수를 기준으로 계산된 처방종료일자가 [진료 개시일자~종료일자]를 벗어나", "E016"); ///일수(총투)를 기준으로 계산된 처방 종료일자가 입원 개시일자~종료일자를 벗어나 유효하지 않습니다.
  2487. // // 처방 data 및 row status를 변경 이전 상태로 복구한다.
  2488. // fCancelClodStatusChng();
  2489. // //model.refresh();
  2490. // grd_clodhist.refresh();
  2491. // return;
  2492. }
  2493. }
  2494. // 2009-01-30
  2495. /*
  2496. if (mechfromdd && mechtodd) { // 신규 추가된 row를 제외한다.
  2497. if (mechfromdd > ordtodd || mechtodd < ordtodd) { // 입력된 처방일자가 수가적용~종료일자를 벗어난 경우
  2498. messageBox("일수를 기준으로 계산된 처방종료일자가 선택된 [수가코드의 적용일자~종료일자]를 벗어나", "E016"); ///일수(총투)를 기준으로 계산된 처방 종료일자가 선택된 수가코드의 적용일자~종료일자를 벗어나 유효하지 않습니다.
  2499. // 처방 data 및 row status를 변경 이전 상태로 복구한다.
  2500. fCancelClodStatusChng();
  2501. //model.refresh();
  2502. grd_clodhist.refresh();
  2503. return;
  2504. }
  2505. }
  2506. */
  2507. model.setValue("/root/main/list2/clod["+ row +"]/ordtodd", ordtodd);
  2508. }
  2509. else if (ordtodd) {
  2510. var toDate = ordtodd.toDate();
  2511. var fromDate = toDate.getAddDate((dayno - 1) * -1, "D"); // (dateHelper.js) 특정일자의 상대일자(+/-)를 계산
  2512. ordfromdd = fromDate.getDateFormat("YYYY") + fromDate.getDateFormat("MM") + fromDate.getDateFormat("DD");
  2513. if (item1 != "03" && clbsordfromdd && clbsordtodd) {
  2514. // if (ordfromdd < clbsordfromdd || ordfromdd > clbsordtodd) {
  2515. // messageBox("일수를 기준으로 계산된 처방시작일자가 [진료 개시일자~종료일자]를 벗어나", "E016"); ///일수(총투)를 기준으로 계산된 처방 시작일자가 입원 개시일자~종료일자를 벗어나 유효하지 않습니다.
  2516. // // 처방 data 및 row status를 변경 이전 상태로 복구한다.
  2517. // fCancelClodStatusChng();
  2518. // //model.refresh();
  2519. // grd_clodhist.refresh();
  2520. // return;
  2521. // }
  2522. }
  2523. // 2009-01-30
  2524. /*
  2525. if (mechfromdd && mechtodd) { // 신규 추가된 row를 제외한다.
  2526. if (mechfromdd > ordfromdd || mechtodd < ordfromdd) { // 입력된 처방일자가 수가적용~종료일자를 벗어난 경우
  2527. messageBox("일수를 기준으로 계산된 처방시작일자가 선택된 [수가코드의 적용일자~종료일자]를 벗어나", "E016"); ///일수(총투)를 기준으로 계산된 처방 시작일자가 선택된 수가코드의 적용일자~종료일자를 벗어나 유효하지 않습니다.
  2528. // 처방 data 및 row status를 변경 이전 상태로 복구한다.
  2529. fCancelClodStatusChng();
  2530. //model.refresh();
  2531. grd_clodhist.refresh();
  2532. return;
  2533. }
  2534. }
  2535. */
  2536. // 일수를 기준으로 구한 날짜가 올바른 경우
  2537. model.setValue("/root/main/list2/clod["+ row +"]/ordfromdd", ordfromdd);
  2538. }
  2539. // 기존에 줄번호가 부여안된 경우
  2540. if (model.getValue("/root/main/list2/clod["+ row +"]/edilnno") == "") {
  2541. var snglcalcscorcd = model.getValue("/root/main/list2/clod["+ row +"]/snglcalcscorcd");
  2542. if (snglcalcscorcd) {
  2543. grd_clodhist.col = grd_clodhist.colRef("snglcalcscorcd");
  2544. fSetSrchCalcScorCd(); // 처방 종료일자를 입력했는데 일수가 자동계산된 경우
  2545. }
  2546. } else {
  2547. fSetTotDrugQtyAmt();
  2548. }
  2549. grd_clodhist.refresh();
  2550. }
  2551. }
  2552. else if (col == grd_clodhist.colRef("edidrugqty")) { // edi1회투여량이 변경된 경우
  2553. if (model.getValue("/root/main/list2/clod["+ row +"]/edidrugqty") != model.getValue("/root/hidden/item5/clod/edidrugqty")) {
  2554. fSetTotDrugQtyAmt();
  2555. grd_clodhist.refresh();
  2556. }
  2557. }
  2558. else if (col == grd_clodhist.colRef("edidayno")) { // edi일수가 변경된 경우
  2559. if (model.getValue("/root/main/list2/clod["+ row +"]/edidayno") != model.getValue("/root/hidden/item5/clod/edidayno")) {
  2560. var Sdayno = model.getValue("/root/main/list2/clod["+ row +"]/edidayno");
  2561. var dayno = parseInt(Sdayno);
  2562. var ordfromdd = model.getValue("/root/main/list2/clod["+ row +"]/ordfromdd");
  2563. var ordtodd = model.getValue("/root/main/list2/clod["+ row +"]/ordtodd");
  2564. var item1 = model.getValue("/root/main/list2/clod["+ row +"]/item1");
  2565. // 진료개시일과 종료일 사이의 일자인지 체크
  2566. var clbsordfromdd = model.getValue("/root/main/item1/clbs/ordfromdd");
  2567. var clbsordtodd = model.getValue("/root/main/item1/clbs/ordtodd");
  2568. // 수가코드의 적용일자~종료일자 사이의 일자인지 체크
  2569. var mechfromdd = model.getValue("/root/main/list2/clod["+ row +"]/mechfromdd");
  2570. var mechtodd = model.getValue("/root/main/list2/clod["+ row +"]/mechtodd");
  2571. if (Sdayno == "" || dayno <= 0) {
  2572. }
  2573. else if (ordfromdd) {
  2574. var fromDate = ordfromdd.toDate();
  2575. var toDate = fromDate.getAddDate(dayno - 1, "D"); // (dateHelper.js) 특정일자의 상대일자(+/-)를 계산
  2576. ordtodd = toDate.getDateFormat("YYYY") + toDate.getDateFormat("MM") + toDate.getDateFormat("DD");
  2577. if (item1 != "03" && clbsordfromdd && clbsordtodd) {
  2578. if (ordtodd < clbsordfromdd || ordtodd > clbsordtodd) {
  2579. // messageBox("일수를 기준으로 계산된 처방종료일자가 [진료 개시일자~종료일자]를 벗어나", "E016"); ///일수(총투)를 기준으로 계산된 처방 종료일자가 입원 개시일자~종료일자를 벗어나 유효하지 않습니다.
  2580. // // 처방 data 및 row status를 변경 이전 상태로 복구한다.
  2581. // fCancelClodStatusChng();
  2582. // grd_clodhist.refresh();
  2583. // return;
  2584. }
  2585. }
  2586. // 2009-01-30
  2587. /*
  2588. if (mechfromdd && mechtodd) { // 신규 추가된 row를 제외한다.
  2589. if (mechfromdd > ordtodd || mechtodd < ordtodd) { // 입력된 처방일자가 수가적용~종료일자를 벗어난 경우
  2590. messageBox("일수를 기준으로 계산된 처방종료일자가 선택된 [수가코드의 적용일자~종료일자]를 벗어나", "E016"); ///일수(총투)를 기준으로 계산된 처방 종료일자가 선택된 수가코드의 적용일자~종료일자를 벗어나 유효하지 않습니다.
  2591. // 처방 data 및 row status를 변경 이전 상태로 복구한다.
  2592. fCancelClodStatusChng();
  2593. grd_clodhist.refresh();
  2594. return;
  2595. }
  2596. }
  2597. */
  2598. model.setValue("/root/main/list2/clod["+ row +"]/ordtodd", ordtodd);
  2599. }
  2600. else if (ordtodd) {
  2601. var toDate = ordtodd.toDate();
  2602. var fromDate = toDate.getAddDate((dayno - 1) * -1, "D"); // (dateHelper.js) 특정일자의 상대일자(+/-)를 계산
  2603. ordfromdd = fromDate.getDateFormat("YYYY") + fromDate.getDateFormat("MM") + fromDate.getDateFormat("DD");
  2604. if (item1 != "03" && clbsordfromdd && clbsordtodd) {
  2605. if (ordfromdd < clbsordfromdd || ordfromdd > clbsordtodd) {
  2606. // messageBox("일수를 기준으로 계산된 처방시작일자가 [진료 개시일자~종료일자]를 벗어나", "E016"); ///일수(총투)를 기준으로 계산된 처방 시작일자가 입원 개시일자~종료일자를 벗어나 유효하지 않습니다.
  2607. // // 처방 data 및 row status를 변경 이전 상태로 복구한다.
  2608. // fCancelClodStatusChng();
  2609. // grd_clodhist.refresh();
  2610. // return;
  2611. }
  2612. }
  2613. // 2009-01-30
  2614. /*
  2615. if (mechfromdd && mechtodd) { // 신규 추가된 row를 제외한다.
  2616. if (mechfromdd > ordfromdd || mechtodd < ordfromdd) { // 입력된 처방일자가 수가적용~종료일자를 벗어난 경우
  2617. messageBox("일수를 기준으로 계산된 처방시작일자가 선택된 [수가코드의 적용일자~종료일자]를 벗어나", "E016"); ///일수(총투)를 기준으로 계산된 처방 시작일자가 선택된 수가코드의 적용일자~종료일자를 벗어나 유효하지 않습니다.
  2618. // 처방 data 및 row status를 변경 이전 상태로 복구한다.
  2619. fCancelClodStatusChng();
  2620. grd_clodhist.refresh();
  2621. return;
  2622. }
  2623. }
  2624. */
  2625. // 일수를 기준으로 구한 날짜가 올바른 경우
  2626. model.setValue("/root/main/list2/clod["+ row +"]/ordfromdd", ordfromdd);
  2627. }
  2628. // 기존에 줄번호가 부여안된 경우
  2629. if (model.getValue("/root/main/list2/clod["+ row +"]/edilnno") == "") {
  2630. var snglcalcscorcd = model.getValue("/root/main/list2/clod["+ row +"]/snglcalcscorcd");
  2631. if (snglcalcscorcd) {
  2632. grd_clodhist.col = grd_clodhist.colRef("snglcalcscorcd");
  2633. fSetSrchCalcScorCd(); // 처방 종료일자를 입력했는데 일수가 자동계산된 경우
  2634. }
  2635. } else {
  2636. fSetTotDrugQtyAmt();
  2637. }
  2638. grd_clodhist.refresh();
  2639. }
  2640. }
  2641. row = grd_clodhist.row;
  2642. if (row != -1 && grd_clodhist.rowStatus(row) == 2) { // sort 이후에 선택된 row가 있고 0 : new, 2 : update
  2643. if (cmbAdjtresncd) {
  2644. model.setValue("/root/main/list2/clod["+ row +"]/adjtresncd", cmbAdjtresncd);
  2645. }
  2646. else if (newcd) {
  2647. model.setValue("/root/main/list2/clod["+ row +"]/adjtresncd", newcd);
  2648. }
  2649. // 처방 Grid 배경색을 설정한다. - 추가/수정된 row
  2650. fOrderBkColorNew(row);
  2651. }
  2652. ]]>
  2653. </script>
  2654. <script type="javascript" ev:event="onstartedit">
  2655. <![CDATA[
  2656. // 잘못된 입력을 취소하고 복구할 경우를 위해 수정전 상태를 기억해둔다.
  2657. var row = grd_clodhist.row;
  2658. model.setValue("/root/hidden/item5/clod/adjtresncd", model.getValue("/root/main/list2/clod["+ row +"]/adjtresncd"));
  2659. model.setValue("/root/hidden/item5/clod/ordfromdd", model.getValue("/root/main/list2/clod["+ row +"]/ordfromdd"));
  2660. model.setValue("/root/hidden/item5/clod/ordtodd", model.getValue("/root/main/list2/clod["+ row +"]/ordtodd"));
  2661. model.setValue("/root/hidden/item5/clod/orddd", model.getValue("/root/main/list2/clod["+ row +"]/orddd"));
  2662. model.setValue("/root/hidden/item5/clod/updtdd", model.getValue("/root/main/list2/clod["+ row +"]/updtdd"));
  2663. model.setValue("/root/hidden/item5/clod/grupcalcscorcd", model.getValue("/root/main/list2/clod["+ row +"]/grupcalcscorcd"));
  2664. model.setValue("/root/hidden/item5/clod/snglcalcscorcd", model.getValue("/root/main/list2/clod["+ row +"]/snglcalcscorcd"));
  2665. model.setValue("/root/hidden/item5/clod/basecd", model.getValue("/root/main/list2/clod["+ row +"]/basecd"));
  2666. model.setValue("/root/hidden/item5/clod/hngnm", model.getValue("/root/main/list2/clod["+ row +"]/hngnm"));
  2667. model.setValue("/root/hidden/item5/clod/drugqty", model.getValue("/root/main/list2/clod["+ row +"]/drugqty"));
  2668. model.setValue("/root/hidden/item5/clod/tims", model.getValue("/root/main/list2/clod["+ row +"]/tims"));
  2669. model.setValue("/root/hidden/item5/clod/dayno", model.getValue("/root/main/list2/clod["+ row +"]/dayno"));
  2670. model.setValue("/root/hidden/item5/clod/edidrugqty", model.getValue("/root/main/list2/clod["+ row +"]/edidrugqty"));
  2671. model.setValue("/root/hidden/item5/clod/edidayno", model.getValue("/root/main/list2/clod["+ row +"]/edidayno"));
  2672. model.setValue("/root/hidden/item5/clod/unitcost", model.getValue("/root/main/list2/clod["+ row +"]/unitcost"));
  2673. model.setValue("/root/hidden/item5/clod/rowstatus", grd_clodhist.rowstatus(row));
  2674. ]]>
  2675. </script>
  2676. <script type="javascript" ev:event="ondblclick">
  2677. <![CDATA[
  2678. if (grd_clodhist.isCell(event.target) && grd_clodhist.mouseRow >= grd_clodhist.fixedrows) {
  2679. var col = grd_clodhist.col;
  2680. if (col == grd_clodhist.colRef("estmmncd") || col == grd_clodhist.colRef("estmcd")) { // '산정의미' / '산정코드' 필드
  2681. var row = grd_clodhist.row;
  2682. var estmcls = model.getValue("/root/main/list2/clod["+ row +"]/estmcls");
  2683. if (estmcls == "-") { // 해당사항없음
  2684. // 마이그레이션 데이터인 경우 estmcls="-", estmmncd="0000", basecd=edicd 형태임
  2685. return;
  2686. }
  2687. var isEstm = false;
  2688. var matractflag = model.getValue("/root/main/list2/clod["+ row +"]/matractflag");
  2689. var edicdflag = model.getValue("/root/main/list2/clod["+ row +"]/edicdflag");
  2690. if (matractflag == "2" ) { // (P0137) 1 : 재료, 2 : 가산있는 행위, 3 : 가산없는 행위, 4:약제, - : 해당없음
  2691. isEstm = true;
  2692. } else {
  2693. // 검체코드 별로 EDI코드가 존재하는 경우 가X행위로 코드길이는 8자리이고 산정붙은 EDI코드와 basecd가 동일함.
  2694. // 산정코드 바꾸려면 처방 삭제후 신규추가해야하므로 코드 길이를 체크함 (picmediu 예:C4722616)
  2695. var basecd = model.getValue("/root/main/list2/clod["+ row +"]/basecd");
  2696. if (basecd.length == 5) {
  2697. // var estmmncd = model.getValue("/root/main/list2/clod["+ row +"]/estmmncd");
  2698. // if (estmmncd != "" && estmmncd != "-") {
  2699. isEstm = true;
  2700. } else {
  2701. var ediitem = model.getValue("/root/main/list2/clod["+ row +"]/item");
  2702. if (ediitem == "0101" || ediitem == "0102" || ediitem == "0103"
  2703. || ediitem == "0201" || ediitem == "0202" || ediitem == "0203" || ediitem == "0204" || ediitem == "0299") {
  2704. isEstm = true;
  2705. }
  2706. }
  2707. }
  2708. if (isEstm == false) {
  2709. return;
  2710. }
  2711. fSrchEstmCd();
  2712. grd_clodhist.refresh();
  2713. }
  2714. else if (col == grd_clodhist.colRef("cnfmcd")) { // '확인코드' 필드
  2715. // 팝업을 이용하지 않고 직접 Edit하는 것을 막기 위해
  2716. grd_clodhist.colDisabled(grd_clodhist.colRef("cnfmcd")) = true;
  2717. }
  2718. else if (col == grd_clodhist.colRef("lnunitspclspecyn")) { // 'T' 필드
  2719. fSetLnUnitSpclSpec();
  2720. }
  2721. else if (col == grd_clodhist.colRef("toot1")) { // '치식' 필드
  2722. fDiagOrderToothInput("Order");
  2723. }
  2724. else if (col == grd_clodhist.colRef("grupcalcscorcd") || col == grd_clodhist.colRef("snglcalcscorcd") || col == grd_clodhist.colRef("basecd") || col == grd_clodhist.colRef("ediecd") || col == grd_clodhist.colRef("hngnm")) {
  2725. var clamkey = model.getValue("/root/main/item1/clbs/clamkey");
  2726. var row = grd_clodhist.row;
  2727. var value = grd_clodhist.valueMatrix(row, col);
  2728. var rowstatus = grd_clodhist.rowstatus(row);
  2729. if (clamkey && value != "" && rowstatus != 1) {
  2730. fOrderCalcDetail(); // 입원상세계산내역조회 : SPPIJ00400_입원세부계산내역.xrw
  2731. }
  2732. }
  2733. }
  2734. ]]>
  2735. </script>
  2736. <script type="javascript" ev:event="onaftersort">
  2737. <![CDATA[
  2738. grd_clodhist.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
  2739. //fGetSelectedOrderData(); // 처방 조회부 - 재행/급여/항목구분 Radio 선택에 따라 처방 내역을 보여준다.
  2740. ]]>
  2741. </script>
  2742. <!--
  2743. <script type="javascript" ev:event="xforms-value-changed">
  2744. <![CDATA[
  2745. var row = grd_clodhist.row;
  2746. var col = grd_clodhist.col;
  2747. if (col == grd_clodhist.colRef("ordfromdd")) { // 처방시작일이 변경된 경우
  2748. var ordfromdd = model.getValue("/root/main/list2/clod["+ row +"]/ordfromdd");
  2749. var ordtodd = model.getValue("/root/main/list2/clod["+ row +"]/ordtodd");
  2750. if (isValidDateTime(ordfromdd)) { // (dateHelper.js) 유효한 날짜, 시간 인지 점검
  2751. if (ordtodd == "") {
  2752. model.setValue("/root/main/list2/clod["+ row +"]/ordtodd", ordfromdd);
  2753. }
  2754. var dayno = getDateInterval(ordfromdd, model.getValue("/root/main/list2/clod["+ row +"]/ordtodd")); // (dateHelper.js) 두 일자사이의 차를 일단위로 반환
  2755. if (dayno >= 0 && dayno <= 365) {
  2756. model.setValue("/root/main/list2/clod["+ row +"]/dayno", dayno + 1);
  2757. // 변경된 투여량, 횟수, 일수에 따라 총투여량, 금액을 재계산한다.
  2758. grd_clodhist.col = grd_clodhist.colRef("dayno"); // 일수
  2759. fSetTotDrugQtyAmt();
  2760. } else if (dayno < 0) {
  2761. model.resetInstanceNode("/root/main/list2/clod["+ row +"]/dayno");
  2762. }
  2763. } else {
  2764. model.resetInstanceNode("/root/main/list2/clod["+ row +"]/ordfromdd");
  2765. model.resetInstanceNode("/root/main/list2/clod["+ row +"]/dayno");
  2766. }
  2767. // 처방의 수정된 row 상태를 표시한다.
  2768. fSetOrderChangeRowStat(row);
  2769. model.refresh();
  2770. }
  2771. else if (col == grd_clodhist.colRef("ordtodd")) { // 처방종료일이 변경된 경우
  2772. var ordfromdd = model.getValue("/root/main/list2/clod["+ row +"]/ordfromdd");
  2773. var ordtodd = model.getValue("/root/main/list2/clod["+ row +"]/ordtodd");
  2774. if (isValidDateTime(ordtodd)) { // (dateHelper.js) 유효한 날짜, 시간 인지 점검
  2775. if (ordfromdd == "") {
  2776. model.setValue("/root/main/list2/clod["+ row +"]/ordfromdd", ordtodd);
  2777. }
  2778. var dayno = getDateInterval(model.getValue("/root/main/list2/clod["+ row +"]/ordfromdd"), ordtodd); // (dateHelper.js) 두 일자사이의 차를 일단위로 반환
  2779. if (dayno >= 0 && dayno <= 365) {
  2780. model.setValue("/root/main/list2/clod["+ row +"]/dayno", dayno + 1);
  2781. // 변경된 투여량, 횟수, 일수에 따라 총투여량, 금액을 재계산한다.
  2782. grd_clodhist.col = grd_clodhist.colRef("dayno");
  2783. fSetTotDrugQtyAmt();
  2784. } else if (dayno < 0) {
  2785. model.resetInstanceNode("/root/main/list2/clod["+ row +"]/dayno");
  2786. }
  2787. } else {
  2788. model.resetInstanceNode("/root/main/list2/clod["+ row +"]/ordtodd");
  2789. model.resetInstanceNode("/root/main/list2/clod["+ row +"]/dayno");
  2790. }
  2791. // 처방의 수정된 row 상태를 표시한다.
  2792. fSetOrderChangeRowStat(row);
  2793. model.refresh();
  2794. }
  2795. ]]>
  2796. </script>-->
  2797. <script type="javascript" ev:event="onentercell">
  2798. <![CDATA[
  2799. // col@type = "input" 일 경우 onentercell시점에 EditMode 상태 만들기
  2800. if (grd_clodhist.colType(grd_clodhist.col) == "input") {
  2801. // if (grd_clodhist.colType(grd_clodhist.col) == "input" || grd_clodhist.colType(grd_clodhist.col) == "inputdate") {
  2802. if (event.button != 3 && grd_clodhist.colDisabled(grd_clodhist.col) == false) {
  2803. // var row = grd_clodhist.row;
  2804. // var adjtresncd = model.getValue("/root/main/list2/clod["+ row +"]/adjtresncd");
  2805. // if (adjtresncd == "" || adjtresncd == "-") { // 심사(조정)사유가 입력되지 않은 경우
  2806. // adjtresncd = model.getValue("/root/hidden/list2/clodstat/cmbAdjtresncd");
  2807. // if (adjtresncd) {
  2808. // model.setValue("/root/main/list2/clod["+ row +"]/adjtresncd", adjtresncd);
  2809. // grd_clodhist.cellStyle("background-color", row, 1, row, grd_clodhist.colRef("basecd")) = "#ffff9c"; // ffff9c=연한노랑
  2810. // if (grd_clodhist.rowStatus(row) == 0) { // 0 : new, 2 : update
  2811. // grd_clodhist.rowStatus(row) = 2;
  2812. // }
  2813. // } else {
  2814. // var newcd = fSetAdjtResnCd();
  2815. // if (newcd == "" || newcd == "-") {
  2816. // grd_clodhist.row = 0;
  2817. // return;
  2818. // }
  2819. // }
  2820. // }
  2821. // if (grd_clodhist.colType(grd_clodhist.col) == "input") {
  2822. // grd_clodhist.editCell();
  2823. // }
  2824. if (grd_clodhist.col != grd_clodhist.colRef("cnfmcd")) { // '확인코드' 필드
  2825. grd_clodhist.editCell();
  2826. } else {
  2827. // 팝업을 이용하지 않고 직접 Edit하는 것을 막기 위해
  2828. grd_clodhist.colDisabled(grd_clodhist.colRef("cnfmcd")) = true;
  2829. return;
  2830. }
  2831. }
  2832. // grd_clodhist.editCell();
  2833. } else {
  2834. if (grd_clodhist.colAttribute(grd_clodhist.col,"disabled") == "true") {
  2835. if ((grd_clodhist.cols - 1)> grd_clodhist.col) {
  2836. grd_clodhist.col = grd_clodhist.col + 1;
  2837. grd_clodhist.dispatch("onentercell");
  2838. }
  2839. }
  2840. }
  2841. ]]>
  2842. </script>
  2843. <script type="javascript" ev:event="onmouseover">
  2844. <![CDATA[
  2845. if (grd_clodhist.isCell(event.target) && grd_clodhist.mouseRow >= grd_clodhist.fixedrows) {
  2846. var clodstatus = grd_clodhist.rowstatus(grd_clodhist.mouseRow);
  2847. if (clodstatus == 0 || clodstatus == 2) { // 0 : new, 2 : update
  2848. // 조회된 처방에 대해서는 그룹/수가/EDI코드 입력을 제한한다.
  2849. grd_clodhist.colDisabled(grd_clodhist.colRef("grupcalcscorcd")) = true;
  2850. grd_clodhist.colDisabled(grd_clodhist.colRef("snglcalcscorcd")) = true;
  2851. grd_clodhist.colDisabled(grd_clodhist.colRef("basecd")) = true;
  2852. grd_clodhist.colDisabled(grd_clodhist.colRef("hngnm")) = true;
  2853. //var payflag = model.getValue("/root/main/list2/clod["+ grd_clodhist.mouseRow +"]/payflag");
  2854. var payflag = grd_clodhist.valueMatrix(grd_clodhist.mouseRow, grd_clodhist.colRef("payflag"));
  2855. if (payflag == "0" || payflag == "9") {
  2856. // 급여 처방의 경우 1회투여량, 횟수, 일수 등 수정 가능
  2857. // edi1회투여량, edi일수 수정가능 2008-12-03
  2858. grd_clodhist.colDisabled(grd_clodhist.colRef("ordfromdd")) = false;
  2859. grd_clodhist.colDisabled(grd_clodhist.colRef("drugqty")) = false;
  2860. grd_clodhist.colDisabled(grd_clodhist.colRef("tims")) = false;
  2861. grd_clodhist.colDisabled(grd_clodhist.colRef("dayno")) = false;
  2862. grd_clodhist.colDisabled(grd_clodhist.colRef("edidrugqty")) = false;
  2863. grd_clodhist.colDisabled(grd_clodhist.colRef("edidayno")) = false;
  2864. grd_clodhist.colDisabled(grd_clodhist.colRef("cnfmcd")) = false;
  2865. grd_clodhist.colDisabled(grd_clodhist.colRef("ordtodd")) = false;
  2866. } else {
  2867. // 비급여, 0원 처방은 조회만 가능하다.
  2868. grd_clodhist.colDisabled(grd_clodhist.colRef("ordfromdd")) = true;
  2869. grd_clodhist.colDisabled(grd_clodhist.colRef("drugqty")) = true;
  2870. grd_clodhist.colDisabled(grd_clodhist.colRef("tims")) = true;
  2871. grd_clodhist.colDisabled(grd_clodhist.colRef("dayno")) = true;
  2872. grd_clodhist.colDisabled(grd_clodhist.colRef("edidrugqty")) = true;
  2873. grd_clodhist.colDisabled(grd_clodhist.colRef("edidayno")) = true;
  2874. grd_clodhist.colDisabled(grd_clodhist.colRef("cnfmcd")) = true;
  2875. grd_clodhist.colDisabled(grd_clodhist.colRef("ordtodd")) = true;
  2876. }
  2877. } else {
  2878. grd_clodhist.colDisabled(grd_clodhist.colRef("grupcalcscorcd")) = false;
  2879. grd_clodhist.colDisabled(grd_clodhist.colRef("snglcalcscorcd")) = false;
  2880. grd_clodhist.colDisabled(grd_clodhist.colRef("basecd")) = false;
  2881. grd_clodhist.colDisabled(grd_clodhist.colRef("hngnm")) = false;
  2882. grd_clodhist.colDisabled(grd_clodhist.colRef("ordfromdd")) = false;
  2883. grd_clodhist.colDisabled(grd_clodhist.colRef("drugqty")) = false;
  2884. grd_clodhist.colDisabled(grd_clodhist.colRef("tims")) = false;
  2885. grd_clodhist.colDisabled(grd_clodhist.colRef("dayno")) = false;
  2886. grd_clodhist.colDisabled(grd_clodhist.colRef("edidrugqty")) = false;
  2887. grd_clodhist.colDisabled(grd_clodhist.colRef("edidayno")) = false;
  2888. grd_clodhist.colDisabled(grd_clodhist.colRef("cnfmcd")) = false;
  2889. grd_clodhist.colDisabled(grd_clodhist.colRef("ordtodd")) = false;
  2890. }
  2891. var row = grd_clodhist.mouseRow;
  2892. var col = grd_clodhist.mouseCol;
  2893. if (col == grd_clodhist.colRef("estmmncd") || col == grd_clodhist.colRef("estmcd")) {
  2894. var estmcls = model.getValue("/root/main/list2/clod["+ row +"]/estmcls");
  2895. var estmmncd = model.getValue("/root/main/list2/clod["+ row +"]/estmmncd");
  2896. var estmcd = model.getValue("/root/main/list2/clod["+ row +"]/estmcd");
  2897. var estmcdnm = model.getValue("/root/main/list2/clod["+ row +"]/estmcdnm");
  2898. if (estmcls == "-") { // 해당사항없음
  2899. grd_clodhist.tooltipText(row, col) = "";
  2900. } else if (estmcls && estmmncd && estmcdnm) {
  2901. grd_clodhist.tooltipText(row, col) = "[산정의미코드: " + estmmncd + "] " + estmcdnm;
  2902. } else {
  2903. grd_clodhist.tooltipText(row, col) = "";
  2904. }
  2905. }
  2906. //T컬럼의 툴팁에 특정내역 보여주기
  2907. if (col == grd_clodhist.colRef("lnunitspclspecyn")) {
  2908. var lnunitspclspec = model.getValue("/root/main/list2/clod["+ row +"]/lnunitspclspec");
  2909. grd_clodhist.tooltipText(row, col) = lnunitspclspec;
  2910. }
  2911. // 청구구분이 "추가청구" 일 경우에는 단가를 수정할 수 있다.
  2912. if (col == grd_clodhist.colRef("unitcost") && model.getValue("/root/main/item1/clbs/clamflagcd") == "2") {
  2913. grd_clodhist.colDisabled(grd_clodhist.colRef("unitcost")) = false;
  2914. } else {
  2915. grd_clodhist.colDisabled(grd_clodhist.colRef("unitcost")) = true;
  2916. }
  2917. }
  2918. ]]>
  2919. </script>
  2920. <script type="javascript" ev:event="DOMFocusOut">
  2921. <![CDATA[
  2922. initPopupMenu(); // (tfHelper.js) 사용자 팝업 설정 초기화
  2923. ]]>
  2924. </script>
  2925. <script type="javascript" ev:event="onbuttonclick">
  2926. <![CDATA[
  2927. var col = grd_clodhist.col;
  2928. var row = grd_clodhist.row;
  2929. if (col == grd_clodhist.colRef("ordfromdd")) { // 처방시작일 달력을 클릭한 경우
  2930. var adjtresncd = model.getValue("/root/main/list2/clod["+ row +"]/adjtresncd");
  2931. if (adjtresncd == "" || adjtresncd == "-") { // 심사(조정)사유가 입력되지 않은 경우
  2932. var newcd = fSetAdjtResnCd();
  2933. if (newcd == "" || newcd == "-") {
  2934. cal_01.calendar.attribute("height") = 0;
  2935. //grd_clodhist.row = 0;
  2936. return;
  2937. }
  2938. }
  2939. cal_01.calendar.attribute("height") = 150;
  2940. model.setFocus("body");
  2941. model.setFocus("grd_clodhist");
  2942. grd_clodhist.dispatch("onentercell");
  2943. }
  2944. else if (col == grd_clodhist.colRef("cnfmcd")) {
  2945. fOrderGridInsertCnfmCd();
  2946. }
  2947. ]]>
  2948. </script>
  2949. <script type="javascript" ev:event="oncopy">
  2950. <![CDATA[
  2951. // 그리드 내용 복사
  2952. if (grd_clodhist.selectedRows == 1) { // 한줄
  2953. var row = grd_clodhist.row;
  2954. var col = grd_clodhist.col;
  2955. if (col == grd_clodhist.colRef("grupcalcscorcd") || col == grd_clodhist.colRef("snglcalcscorcd") || col == grd_clodhist.colRef("basecd") || col == grd_clodhist.colRef("hngnm")) {
  2956. // 그룹/수가/EDI코드/한글명
  2957. // var clip = grd_clodhist.valueMatrix(row, col);
  2958. var clip = grd_clodhist.labelMatrix(row, col);
  2959. // var clip = grd_clodhist.labelMatrix(grd_clodhist.mouseRow, grd_clodhist.mouseCol);
  2960. window.clipBoardData = clip;
  2961. } else {
  2962. grid_oncopy(); // (tfHelper.js) window.clipBoardData 복사 기능
  2963. }
  2964. }
  2965. else if (grd_clodhist.selectedRows > 1) { // 여러줄
  2966. grid_oncopy(); // (tfHelper.js) window.clipBoardData 복사 기능
  2967. }
  2968. ]]>
  2969. </script>
  2970. <script type="javascript" ev:event="onkeypress">
  2971. <![CDATA[
  2972. var col = grd_clodhist.col;
  2973. var currow = grd_clodhist.row;
  2974. if (event.keyCode == 13) { //엔터
  2975. if (col == grd_clodhist.colRef("edidrugqty")) {
  2976. grd_clodhist.col = grd_clodhist.colRef("tims");
  2977. grd_clodhist.editCell();
  2978. } else if (col == grd_clodhist.colRef("tims")) {
  2979. grd_clodhist.col = grd_clodhist.colRef("edidayno");
  2980. grd_clodhist.editCell();
  2981. } else if (col == grd_clodhist.colRef("edidayno")) {
  2982. grd_clodhist.row = currow + 1;
  2983. grd_clodhist.col = grd_clodhist.colRef("edidrugqty");
  2984. grd_clodhist.editCell();
  2985. }
  2986. }
  2987. ]]>
  2988. </script>
  2989. </datagrid>
  2990. <group id="grp_ordsrch" style="left:0px; top:195px; width:1194px; height:49px; ">
  2991. <shape id="roundrect3" appearance="roundrect" style="left:0px; top:2px; width:1194px; height:46px; "/>
  2992. <caption id="caption3" class="search_name" style="left:15px; top:6px; width:86px; height:17px; ">재행구분 :</caption>
  2993. <select1 id="rdo_matractflag" ref="/root/hidden/list2/clodsrch/selectedRdoMatrAct" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:104px; top:5px; width:145px; height:19px; ">
  2994. <choices>
  2995. <item>
  2996. <label>전체</label>
  2997. <value>-</value>
  2998. </item>
  2999. <item>
  3000. <label>행위</label>
  3001. <value>0</value>
  3002. </item>
  3003. <item>
  3004. <label>재료</label>
  3005. <value>1</value>
  3006. </item>
  3007. </choices>
  3008. <script type="javascript" ev:event="xforms-select">
  3009. <![CDATA[
  3010. // 수가코드, EDI코드 input 컨트롤을 초기화한다.
  3011. model.resetInstanceNode("/root/hidden/list2/clodsrch/inpCalcScorCd");
  3012. model.resetInstanceNode("/root/hidden/list2/clodsrch/inpEDICd");
  3013. model.refreshpart("/root/hidden/list2/clodsrch/inpCalcScorCd");
  3014. model.refreshpart("/root/hidden/list2/clodsrch/inpEDICd");
  3015. fGetSelectedOrderData(); // 처방 조회부 - 재행/급여/항목구분 Radio 선택에 따라 처방 내역을 보여준다.
  3016. ]]>
  3017. </script>
  3018. </select1>
  3019. <caption id="caption107" class="search_name" style="left:254px; top:6px; width:86px; height:17px; ">수가코드 :</caption>
  3020. <input id="ipt_calcscorcd" ref="/root/hidden/list2/clodsrch/inpCalcScorCd" class="input_default" navindex="12" imemode="disabled" style="left:343px; top:5px; width:100px; height:19px; ">
  3021. <script type="javascript" ev:event="onkeypress">
  3022. <![CDATA[
  3023. if (event.keyCode == "13") { // Enter 입력 시에
  3024. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  3025. if (model.getValue("/root/hidden/list2/clodsrch/inpCalcScorCd") == "") {
  3026. model.setValue("/root/hidden/list2/clodsrch/selectedRdoPay", "0");
  3027. } else {
  3028. model.setValue("/root/hidden/list2/clodsrch/selectedRdoPay", "-");
  3029. }
  3030. model.setValue("/root/hidden/list2/clodsrch/selectedRdoMatrAct", "-");
  3031. model.setValue("/root/hidden/list2/clodsrch/selectedRdoItem", "-");
  3032. model.refreshpart("/root/hidden/list2/clodsrch/selectedRdoMatrAct");
  3033. model.refreshpart("/root/hidden/list2/clodsrch/selectedRdoItem");
  3034. fGetSelectedOrderData();
  3035. }
  3036. ]]>
  3037. </script>
  3038. <script type="javascript" ev:event="xforms-value-changed">
  3039. <![CDATA[
  3040. if (model.getValue("/root/hidden/list2/clodsrch/inpCalcScorCd") == "") {
  3041. model.setValue("/root/hidden/list2/clodsrch/selectedRdoPay", "0");
  3042. } else {
  3043. model.setValue("/root/hidden/list2/clodsrch/selectedRdoPay", "-");
  3044. }
  3045. model.setValue("/root/hidden/list2/clodsrch/selectedRdoMatrAct", "-");
  3046. model.setValue("/root/hidden/list2/clodsrch/selectedRdoItem", "-");
  3047. model.refreshpart("/root/hidden/list2/clodsrch/selectedRdoMatrAct");
  3048. model.refreshpart("/root/hidden/list2/clodsrch/selectedRdoPay");
  3049. model.refreshpart("/root/hidden/list2/clodsrch/selectedRdoItem");
  3050. fGetSelectedOrderData();
  3051. ]]>
  3052. </script>
  3053. </input>
  3054. <caption id="caption113" class="search_name" style="left:454px; top:6px; width:83px; height:17px; ">EDI코드 :</caption>
  3055. <input id="ipt_edicd" ref="/root/hidden/list2/clodsrch/inpEDICd" class="input_default" navindex="13" imemode="disabled" style="left:540px; top:5px; width:100px; height:19px; ">
  3056. <script type="javascript" ev:event="onkeypress">
  3057. <![CDATA[
  3058. if (event.keyCode == "13") { // Enter 입력 시에
  3059. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  3060. if (model.getValue("/root/hidden/list2/clodsrch/inpEDICd") == "") {
  3061. model.setValue("/root/hidden/list2/clodsrch/selectedRdoPay", "0");
  3062. } else {
  3063. model.setValue("/root/hidden/list2/clodsrch/selectedRdoPay", "-");
  3064. }
  3065. model.setValue("/root/hidden/list2/clodsrch/selectedRdoMatrAct", "-");
  3066. model.setValue("/root/hidden/list2/clodsrch/selectedRdoItem", "-");
  3067. model.refreshpart("/root/hidden/list2/clodsrch/selectedRdoMatrAct");
  3068. model.refreshpart("/root/hidden/list2/clodsrch/selectedRdoItem");
  3069. model.refreshpart("/root/hidden/list2/clodsrch/selectedRdoPay");
  3070. fGetSelectedOrderData();
  3071. }
  3072. ]]>
  3073. </script>
  3074. <script type="javascript" ev:event="xforms-value-changed">
  3075. <![CDATA[
  3076. if (model.getValue("/root/hidden/list2/clodsrch/inpEDICd") == "") {
  3077. model.setValue("/root/hidden/list2/clodsrch/selectedRdoPay", "0");
  3078. } else {
  3079. model.setValue("/root/hidden/list2/clodsrch/selectedRdoPay", "-");
  3080. }
  3081. model.setValue("/root/hidden/list2/clodsrch/selectedRdoMatrAct", "-");
  3082. model.setValue("/root/hidden/list2/clodsrch/selectedRdoItem", "-");
  3083. model.refreshpart("/root/hidden/list2/clodsrch/selectedRdoMatrAct");
  3084. model.refreshpart("/root/hidden/list2/clodsrch/selectedRdoItem");
  3085. model.refreshpart("/root/hidden/list2/clodsrch/selectedRdoPay");
  3086. fGetSelectedOrderData();
  3087. ]]>
  3088. </script>
  3089. </input>
  3090. <caption id="caption97" class="search_name" style="left:15px; top:27px; width:86px; height:17px; ">
  3091. <![CDATA[급여구분 :]]>
  3092. <script type="javascript" ev:event="onclick">
  3093. <![CDATA[
  3094. var updtdata = getGridUpdateData(grd_clodhist); // (tfHelper.js) 그리드 업데이트 데이터 반환, 업데이트 정보가 없을경우 "" 반환
  3095. alert(updtdata);
  3096. ]]>
  3097. </script>
  3098. </caption>
  3099. <select1 id="rdo_payflag" ref="/root/hidden/list2/clodsrch/selectedRdoPay" appearance="full" cellspacing="2" cols="5" overflow="visible" style="left:104px; top:26px; width:266px; height:19px; ">
  3100. <choices>
  3101. <item>
  3102. <label>전체</label>
  3103. <value>-</value>
  3104. </item>
  3105. <item>
  3106. <label>급여</label>
  3107. <value>0</value>
  3108. </item>
  3109. <item>
  3110. <label>전액본인</label>
  3111. <value>1</value>
  3112. </item>
  3113. <item>
  3114. <label>비급여</label>
  3115. <value>2</value>
  3116. </item>
  3117. <item>
  3118. <label>선택</label>
  3119. <value>8</value>
  3120. </item>
  3121. </choices>
  3122. <script type="javascript" ev:event="xforms-value-changed">
  3123. <![CDATA[
  3124. // 급여구분별 처방조회
  3125. fClodSelectByPayflag();
  3126. ]]>
  3127. </script>
  3128. </select1>
  3129. <caption id="caption119" class="search_name" style="left:369px; top:27px; width:86px; height:17px; ">항목구분 :</caption>
  3130. <select1 id="rdo_item1" ref="/root/hidden/list2/clodsrch/selectedRdoItem" appearance="full" cellspacing="5" cols="13" overflow="visible" style="left:458px; top:26px; width:597px; height:20px; ">
  3131. <choices>
  3132. <item>
  3133. <label>전체</label>
  3134. <value>-</value>
  3135. </item>
  3136. <item>
  3137. <label>진찰</label>
  3138. <value>01</value>
  3139. </item>
  3140. <item>
  3141. <label>입원</label>
  3142. <value>02</value>
  3143. </item>
  3144. <item>
  3145. <label>투약</label>
  3146. <value>03</value>
  3147. </item>
  3148. <item>
  3149. <label>주사</label>
  3150. <value>04</value>
  3151. </item>
  3152. <item>
  3153. <label>마취</label>
  3154. <value>05</value>
  3155. </item>
  3156. <item>
  3157. <label>이학</label>
  3158. <value>06</value>
  3159. </item>
  3160. <item>
  3161. <label>정신</label>
  3162. <value>07</value>
  3163. </item>
  3164. <item>
  3165. <label>수술</label>
  3166. <value>08</value>
  3167. </item>
  3168. <item>
  3169. <label>검사</label>
  3170. <value>09</value>
  3171. </item>
  3172. <item>
  3173. <label>방사</label>
  3174. <value>10</value>
  3175. </item>
  3176. <item>
  3177. <label>특수</label>
  3178. <value>SS</value>
  3179. </item>
  3180. </choices>
  3181. <script type="javascript" ev:event="xforms-select">
  3182. <![CDATA[
  3183. // 수가코드, EDI코드 input 컨트롤을 초기화한다.
  3184. model.resetInstanceNode("/root/hidden/list2/clodsrch/inpCalcScorCd");
  3185. model.resetInstanceNode("/root/hidden/list2/clodsrch/inpEDICd");
  3186. model.refreshpart("/root/hidden/list2/clodsrch/inpCalcScorCd");
  3187. model.refreshpart("/root/hidden/list2/clodsrch/inpEDICd");
  3188. fGetSelectedOrderData(); // 처방 조회부 - 재행/급여/항목구분 Radio 선택에 따라 처방 내역을 보여준다.
  3189. ]]>
  3190. </script>
  3191. </select1>
  3192. <button id="btn_rdoItemPre" class="icon_pre" style="left:1069px; top:28px; width:13px; height:15px; ">
  3193. <caption/>
  3194. <script type="javascript" ev:event="DOMActivate">
  3195. <![CDATA[
  3196. /*
  3197. var selectedIndex = rdo_item1.selectedIndex; // 아이템의 인덱스를 반환한다.
  3198. var itemRadioList = instance1.selectSingleNode("/root/hidden/list2/cloditem1");
  3199. var itemNode = itemRadioList.childNodes;
  3200. var isFind = false;
  3201. var preIndex = itemNode.length - 1; // itemNode.length = 12
  3202. if (selectedIndex > 0) {
  3203. preIndex = parseInt(selectedIndex) - 1;
  3204. }
  3205. for (var i = preIndex; i > 0; i--) {
  3206. if (rdo_item1.item(i).attribute("font-weight") == "bold") {
  3207. preIndex = i;
  3208. i = 0;
  3209. isFind = true;
  3210. }
  3211. }
  3212. if (isFind) {
  3213. rdo_item1.selectedIndex = preIndex;
  3214. } else {
  3215. rdo_item1.selectedIndex = 0;
  3216. }
  3217. */
  3218. var selectedIndex = rdo_item1.selectedIndex; // 아이템의 인덱스를 반환한다.
  3219. var itemRadioList = instance1.selectSingleNode("/root/hidden/list2/cloditem1");
  3220. var itemNode = itemRadioList.childNodes;
  3221. var preIndex = itemNode.length - 1; // itemNode.length = 12
  3222. if (selectedIndex > 0) {
  3223. preIndex = parseInt(selectedIndex) - 1;
  3224. }
  3225. rdo_item1.selectedIndex = preIndex;
  3226. fGetSelectedOrderData(); // 처방 조회부 - 재행/급여/항목구분 Radio 선택에 따라 처방 내역을 보여준다.
  3227. ]]>
  3228. </script>
  3229. </button>
  3230. <button id="btn_rdoItemNext" class="icon_next" style="left:1082px; top:28px; width:13px; height:15px; ">
  3231. <caption/>
  3232. <script type="javascript" ev:event="DOMActivate">
  3233. <![CDATA[
  3234. /*
  3235. var selectedIndex = rdo_item1.selectedIndex;
  3236. var itemRadioList = instance1.selectSingleNode("/root/hidden/list2/cloditem1");
  3237. var itemNode = itemRadioList.childNodes;
  3238. var isFind = false;
  3239. var nextIndex = 0;
  3240. if (selectedIndex < (itemNode.length - 1)) { // 전체~특수 12개의 Radio Item
  3241. nextIndex = parseInt(selectedIndex) + 1;
  3242. }
  3243. for (var i = nextIndex; i < itemNode.length; i++) {
  3244. if (rdo_item1.item(i).attribute("font-weight") == "bold") {
  3245. nextIndex = i;
  3246. i = itemNode.length;
  3247. isFind = true;
  3248. }
  3249. }
  3250. if (isFind) {
  3251. rdo_item1.selectedIndex = nextIndex;
  3252. } else {
  3253. rdo_item1.selectedIndex = 0; // 0 = 가장 첫번째 item 항목임
  3254. }
  3255. */
  3256. var selectedIndex = rdo_item1.selectedIndex;
  3257. var itemRadioList = instance1.selectSingleNode("/root/hidden/list2/cloditem1");
  3258. var itemNode = itemRadioList.childNodes;
  3259. var nextIndex = 0;
  3260. if (selectedIndex < (itemNode.length - 1)) { // 전체~특수 12개의 Radio Item
  3261. nextIndex = parseInt(selectedIndex) + 1;
  3262. }
  3263. rdo_item1.selectedIndex = nextIndex;
  3264. fGetSelectedOrderData(); // 처방 조회부 - 재행/급여/항목구분 Radio 선택에 따라 처방 내역을 보여준다.
  3265. ]]>
  3266. </script>
  3267. </button>
  3268. <button id="btn_initfilter" class="btn2_letter5" style="left:928px; top:5px; width:75px; height:19px; ">
  3269. <caption>필터초기화</caption>
  3270. <script type="javascript" ev:event="DOMActivate">
  3271. <![CDATA[
  3272. // 처방 Grid 필터용 조회조건을 초기화한다.
  3273. fInitOrderFilter();
  3274. fGetSelectedOrderData();
  3275. // 필터초기화버튼 클릭시 급여구분이 "급여"가 아니면 급여로 처방을 다시 조회한다.
  3276. if (model.getValue("/root/hidden/list2/clodsrch/selectedRdoPay") != "0") {
  3277. fClodSelectByPayflag();
  3278. }
  3279. ]]>
  3280. </script>
  3281. </button>
  3282. <select id="chk_ediunitcost" ref="/root/hidden/edicheck" class="checkbox_search" overflow="visible" appearance="full" style="left:1009px; top:6px; width:71px; height:19px; ">
  3283. <choices>
  3284. <item>
  3285. <label>재원비교</label>
  3286. <value>Y</value>
  3287. </item>
  3288. </choices>
  3289. <script type="javascript" ev:event="xforms-select">
  3290. <![CDATA[
  3291. fEdiCheck();
  3292. ]]>
  3293. </script>
  3294. <script type="javascript" ev:event="xforms-deselect">
  3295. <![CDATA[
  3296. fEdiCheck();
  3297. ]]>
  3298. </script>
  3299. </select>
  3300. <button id="button2" class="btn2_letter5" style="left:1117px; top:5px; width:75px; height:19px; ">
  3301. <caption>환경저장</caption>
  3302. <script type="javascript" ev:event="DOMActivate">
  3303. <![CDATA[
  3304. fSaveSetInfo();
  3305. ]]>
  3306. </script>
  3307. </button>
  3308. <button id="button3" class="btn2_letter5" style="left:1117px; top:26px; width:75px; height:19px; ">
  3309. <caption>환경초기화</caption>
  3310. <script type="javascript" ev:event="DOMActivate">
  3311. <![CDATA[
  3312. fClearSetInfo();
  3313. ]]>
  3314. </script>
  3315. </button>
  3316. <button id="button8" class="btn2_letter3" visibility="visible" style="left:873px; top:5px; width:53px; height:19px; ">
  3317. <caption>KDRG</caption>
  3318. <script type="javascript" ev:event="DOMActivate">
  3319. <![CDATA[
  3320. fGetKDrgOpenPopup();
  3321. ]]>
  3322. </script>
  3323. </button>
  3324. </group>
  3325. <button id="btn_delordlist" class="btn2_letter3" _auth="R" style="left:57px; top:246px; width:53px; height:19px; ">
  3326. <caption>휴지통</caption>
  3327. <script type="javascript" ev:event="DOMActivate">
  3328. <![CDATA[
  3329. if (grp_delclodlist.visible == true) {
  3330. // 처방휴지통목록
  3331. cap_grptemp.visible = false;
  3332. grp_delclodlist.visible = false;
  3333. grd_clodhist.attribute("width") = "1114";
  3334. ln_clodhist.attribute("x2") = "1114";
  3335. } else {
  3336. grp_delclodlist.visible = true;
  3337. grp_predoculist.visible = false; // 이전 명세서 목록
  3338. grp_delorderlist.visible = false; // 심사변경 목록
  3339. fSetDelOrdPreDocuSize();
  3340. }
  3341. ]]>
  3342. </script>
  3343. <script type="javascript" ev:event="onmousemove">
  3344. <![CDATA[
  3345. var delClodNode = instance1.selectSingleNode("/root/main/list6/delclod");
  3346. if (delClodNode != null) {
  3347. grp_delclodlist.visible = true;
  3348. grp_predoculist.visible = false; // 이전 명세서 목록
  3349. grp_delorderlist.visible = false; // 심사변경 목록
  3350. fSetDelOrdPreDocuSize();
  3351. }
  3352. ]]>
  3353. </script>
  3354. </button>
  3355. <button id="btn_delordsrch" class="btn2_letter4" _auth="R" style="left:112px; top:246px; width:64px; height:19px; ">
  3356. <caption>심사변경</caption>
  3357. <script type="javascript" ev:event="DOMActivate">
  3358. <![CDATA[
  3359. var clamym = model.getValue("/root/main/item1/clbs/clamym");
  3360. var clamdg = model.getValue("/root/main/item1/clbs/clamdg");
  3361. var pid = model.getValue("/root/main/item1/clbs/pid");
  3362. var pidsn = model.getValue("/root/main/item1/clbs/pidsn");
  3363. if (clamym && clamdg && pid && pidsn) { // 조회된 심사대상자가 있음
  3364. open("SPPID21800", "1", "10", "10", "SPPID21800", "/root/main/list2", "/root/init/list2", "", ""); // SPPID21800_처방심사변경조회.xrw
  3365. }
  3366. /**
  3367. if (grp_delorderlist.visible == true) {
  3368. // 심사변경 목록
  3369. cap_grptemp.visible = false;
  3370. grp_delorderlist.visible = false;
  3371. grd_clodhist.attribute("width") = "1114";
  3372. ln_clodhist.attribute("x2") = "1114";
  3373. } else {
  3374. grp_delorderlist.visible = true;
  3375. grp_predoculist.visible = false; // 이전 명세서 목록
  3376. grp_delclodlist.visible = false; // 처방 휴지통
  3377. fSetDelOrdPreDocuSize();
  3378. // var delOrderNode = instance1.selectSingleNode("/root/main/list5");
  3379. // if (delOrderNode == null) { // 이전에 조회된 내용이 없음
  3380. var clamkey = model.getValue("/root/main/item1/clbs/clamkey");
  3381. if (clamkey) { // 조회된 심사대상자가 있음
  3382. submit("TRPID20305");
  3383. for (var i = grd_delorder.fixedRows; i < grd_delorder.rows; i++) {
  3384. grd_delorder.cellStyle("background-image", i, grd_delorder.colRef("update")) = "../../../com/commonweb/images/icon_d.gif";
  3385. }
  3386. for (var i = grd_clodhist.fixedRows; i < grd_clodhist.rows; i++) {
  3387. var adjtresncd = model.getValue("/root/main/list2/clod["+ i +"]/adjtresncd");
  3388. if (adjtresncd) {
  3389. grd_delorder.addRow();
  3390. model.copyNode("/root/main/list5/clod["+ grd_delorder.row +"]", "/root/main/list2/clod["+ i +"]"); // desc, sorce
  3391. var rowstatus = grd_clodhist.rowstatus(i);
  3392. if (rowstatus == 1 || rowstatus == 3) { // 1 : insert, 3 : insert & new
  3393. grd_delorder.cellStyle("background-image", grd_delorder.row, grd_delorder.colRef("update")) = "../../../com/commonweb/images/icon_i.gif";
  3394. }
  3395. else if (rowstatus == 2) { // 2 : update
  3396. grd_delorder.cellStyle("background-image", grd_delorder.row, grd_delorder.colRef("update")) = "../../../com/commonweb/images/icon_u.gif";
  3397. }
  3398. }
  3399. }
  3400. model.refresh();
  3401. }
  3402. // }
  3403. }
  3404. */
  3405. ]]>
  3406. </script>
  3407. <script type="javascript" ev:event="onmousemove">
  3408. <![CDATA[
  3409. // var preDocuNode = instance1.selectSingleNode("/root/main/list5/clod");
  3410. // if (preDocuNode != null) {
  3411. // grp_delorderlist.visible = true;
  3412. // grp_predoculist.visible = false; // 이전 명세서 목록
  3413. // grp_delclodlist.visible = false; // 처방 휴지통
  3414. // fSetDelOrdPreDocuSize();
  3415. // }
  3416. ]]>
  3417. </script>
  3418. </button>
  3419. <caption id="cap_clod" class="tit_2" style="left:5px; top:251px; width:55px; height:13px; ">
  3420. <![CDATA[처방]]>
  3421. <script type="javascript" ev:event="onclick">
  3422. <![CDATA[
  3423. // 처방조회부, 처방 Grid용 Group의 컨트롤 크기를 설정한다.
  3424. fSetOrderControlSize();
  3425. // 이전명세서, 처방휴지통, 삭제처방 Group의 컨트롤 크기를 설정한다.
  3426. fSetDelOrdPreDocuSize();
  3427. ]]>
  3428. </script>
  3429. </caption>
  3430. <line id="ln_clodhist" class="line_1" style="x1:0px; y1:266px; x2:1114px; y2:266px; "/>
  3431. <button id="btn_bfjudgdocu" class="btn2_letter3" _auth="X" style="left:178px; top:246px; width:53px; height:19px; ">
  3432. <caption>심사전</caption>
  3433. <script type="javascript" ev:event="DOMActivate">
  3434. <![CDATA[
  3435. var clamym = model.getValue("/root/main/item1/clbs/clamym");
  3436. var clamdg = model.getValue("/root/main/item1/clbs/clamdg");
  3437. var pid = model.getValue("/root/main/item1/clbs/pid");
  3438. var pidsn = model.getValue("/root/main/item1/clbs/pidsn");
  3439. var clamkey = model.getValue("/root/main/item1/clbs/clamkey");
  3440. if (clamym) {
  3441. var preDocuWindow = getChildWindow("SMPID20500"); // SMPID20500_외래사후심사관리.xrw
  3442. if (preDocuWindow != null) {
  3443. var rslt = preDocuWindow.javascript.fInitSrchData(); // 화면을 초기화한다.
  3444. if (rslt == false) { // 수정사항 저장이 완료되지 않아 초기화할 수 없는 경우
  3445. activateChild("SMPID20500");
  3446. return false;
  3447. }
  3448. preDocuWindow.close();
  3449. }
  3450. preDocuWindow = getChildWindow("SMPID20300");
  3451. if (preDocuWindow == null) {
  3452. // open("SMPID20300", "2", "10", "10", "SMPID20300", "/root/main/list4/clbs["+ row +"]/clamkey", "/root/send/item1/clbs/clamkey", "", "");
  3453. model.setValue("/root/send/item1/clbs/workflag", "11");
  3454. model.setValue("/root/send/item1/clbs/clamym", clamym);
  3455. model.setValue("/root/send/item1/clbs/clamdg", clamdg);
  3456. model.setValue("/root/send/item1/clbs/pid", pid);
  3457. model.setValue("/root/send/item1/clbs/pidsn", pidsn);
  3458. model.setValue("/root/send/item1/clbs/ioflag", "I");
  3459. open("SMPID20300", "2", "10", "10", "SMPID20300", "/root/send/item1/clbs", "/root/send/item1/clbs", "", ""); // SMPID20300_입원사후심사관리.xrw
  3460. } else { // 이전명세서 용도의 SMPID20300_입원사후심사관리 Popup 화면이 이미 열려있는 경우
  3461. model.setValue("/root/hidden/smpid20300/cond/workflag", "11");
  3462. model.setValue("/root/hidden/smpid20300/cond/clamym", clamym);
  3463. model.setValue("/root/hidden/smpid20300/cond/clamdg", clamdg);
  3464. model.setValue("/root/hidden/smpid20300/cond/pid", pid);
  3465. model.setValue("/root/hidden/smpid20300/cond/pidsn", pidsn);
  3466. model.setValue("/root/hidden/smpid20300/cond/ioflag", "I");
  3467. preDocuWindow.javascript.fActivatePreDocuWindow();
  3468. activateChild("SMPID20300");
  3469. }
  3470. }
  3471. ]]>
  3472. </script>
  3473. </button>
  3474. <button id="btn_oprcp" class="btn2_letter4" _auth="R" style="left:233px; top:246px; width:64px; height:19px; ">
  3475. <caption>원외처방</caption>
  3476. <script type="javascript" ev:event="DOMActivate">
  3477. <![CDATA[
  3478. var clamkey = model.getValue("/root/main/item1/clbs/clamkey");
  3479. if (clamkey) { // 조회된 심사대상자가 있으면
  3480. model.resetInstanceNode("/root/hidden/sppid21700/cond");
  3481. model.setValue("/root/hidden/sppid21700/cond/clamym", model.getValue("/root/main/item1/clbs/clamym"));
  3482. model.setValue("/root/hidden/sppid21700/cond/clamdg", model.getValue("/root/main/item1/clbs/clamdg"));
  3483. model.setValue("/root/hidden/sppid21700/cond/pid", model.getValue("/root/main/item1/clbs/pid"));
  3484. model.setValue("/root/hidden/sppid21700/cond/pidsn", model.getValue("/root/main/item1/clbs/pidsn"));
  3485. model.setValue("/root/hidden/sppid21700/cond/clamkey", model.getValue("/root/main/item1/clbs/clamkey"));
  3486. model.setValue("/root/hidden/sppid21700/cond/workflag", model.getValue("/root/main/item1/clbs/workflag"));
  3487. model.setValue("/root/hidden/sppid21700/cond/ioflag", "I");
  3488. model.setValue("/root/hidden/sppid21700/cond/maxclopseqno", model.getValue("/root/main/item1/clbs/maxclopseqno"));
  3489. model.setValue("/root/hidden/sppid21700/cond/maxseqno", model.getValue("/root/main/item1/clbs/maxseqno"));
  3490. model.setValue("/root/hidden/sppid21700/cond/ordfromdd", model.getValue("/root/main/item1/clbs/ordfromdd"));
  3491. model.setValue("/root/hidden/sppid21700/cond/indd", model.getValue("/root/main/item1/clbs/indd"));
  3492. model.setValue("/root/hidden/sppid21700/cond/insukindcd", model.getValue("/root/main/item1/clbs/insukindcd"));
  3493. model.setValue("/root/hidden/sppid21700/cond/suppkindcd", model.getValue("/root/main/item1/clbs/suppkindcd"));
  3494. model.setValue("/root/hidden/sppid21700/cond/orddeptcd", model.getValue("/root/main/item1/clbs/orddeptcd"));
  3495. model.setValue("/root/hidden/sppid21700/cond/orddrid", model.getValue("/root/main/item1/clbs/orddrid"));
  3496. model.setValue("/root/hidden/sppid21700/cond/undersixageyn", model.getValue("/root/main/item1/clbs/undersixageyn"));
  3497. model.setValue("/root/hidden/sppid21700/cond/mechage", model.getValue("/root/main/item1/clbs/mechage"));
  3498. model.setValue("/root/hidden/sppid21700/cond/payflag", model.getValue("/root/main/item1/clbs/payflag"));
  3499. model.setValue("/root/hidden/sppid21700/cond/clamflagcd", model.getValue("/root/main/item1/clbs/clamflagcd"));
  3500. model.setValue("/root/hidden/sppid21700/cond/clamkey", model.getValue("/root/main/item1/clbs/clamkey"));
  3501. model.setValue("/root/hidden/sppid21700/cond/patnm", model.getValue("/root/main/item1/clbs/patnm"));
  3502. model.setValue("/root/hidden/sppid21700/cond/gender", model.getValue("/root/main/item1/clbs/gender"));
  3503. model.setValue("/root/hidden/sppid21700/cond/stsioflag", model.getValue("/root/main/item1/clbs/stsioflag"));
  3504. model.setValue("/root/hidden/sppid21700/cond/ordtodd", model.getValue("/root/main/item1/clbs/ordtodd"));
  3505. model.setValue("/root/hidden/sppid21700/cond/instcd", model.getValue("/root/main/item1/clbs/instcd"));
  3506. model.setValue("/root/hidden/sppid21700/cond/clamtypecd", model.getValue("/root/main/item1/clbs/clamtypecd"));
  3507. model.setValue("/root/hidden/sppid21700/cond/fixrateyn", model.getValue("/root/main/item1/clbs/fixrateyn"));
  3508. // if (document.title == "심사전 명세서 조회") {
  3509. // model.setValue("/root/hidden/sppid21700/cond/workflag", "11");
  3510. // } else {
  3511. // alert(document.title);
  3512. // }
  3513. modal("SPPID21700", "1", "10", "10", "SPPID21700", "/root/hidden/sppid21700/cond", "/root/init", "", ""); // SPPID21700_원외처방조회.xrw
  3514. }
  3515. ]]>
  3516. </script>
  3517. </button>
  3518. <select1 id="cmb_adjtresncd" ref="/root/hidden/list2/clodstat/cmbAdjtresncd" class="combo_default" appearance="minimal" showvalue="true" _auth="R" style="left:376px; top:246px; width:125px; height:19px; ">
  3519. <choices>
  3520. <itemset nodeset="/root/init/P0127list/P0127">
  3521. <label ref="cdnm"/>
  3522. <value ref="cdid"/>
  3523. </itemset>
  3524. </choices>
  3525. </select1>
  3526. <button id="btn_detlspec" class="btn2_letter5" _auth="R" style="left:1117px; top:491px; width:75px; height:19px; ">
  3527. <caption>상세내역</caption>
  3528. <script type="javascript" ev:event="DOMActivate">
  3529. <![CDATA[
  3530. var clamkey = model.getValue("/root/main/item1/clbs/clamkey");
  3531. if (clamkey) {
  3532. fOrderCalcDetail(true);
  3533. }
  3534. ]]>
  3535. </script>
  3536. </button>
  3537. <select1 id="cmb_docudelresncd" ref="/root/main/item1/clbs/docudelresncd" class="combo_default" appearance="minimal" editmode="input" showvalue="false" _auth="R" style="left:634px; top:246px; width:131px; height:19px; ">
  3538. <choices>
  3539. <itemset nodeset="/root/init/P0465list/P0465">
  3540. <label ref="cdnm"/>
  3541. <value ref="cdid"/>
  3542. </itemset>
  3543. </choices>
  3544. <hint>
  3545. <![CDATA[명세서삭제사유]]>
  3546. </hint>
  3547. <script type="javascript" ev:event="onclick">
  3548. <![CDATA[
  3549. //삭제사유 선택시 삭세상세사유 group 보이기
  3550. grp_desc.visible = true;
  3551. ]]>
  3552. </script>
  3553. </select1>
  3554. <select1 id="cmb_abdresncd" ref="/root/main/item1/clbs/abdresncd" class="combo_default" appearance="minimal" showvalue="false" _auth="R" style="left:505px; top:246px; width:125px; height:19px; ">
  3555. <choices>
  3556. <itemset nodeset="/root/init/P0466list/P0466">
  3557. <label ref="cdnm"/>
  3558. <value ref="cdid"/>
  3559. </itemset>
  3560. </choices>
  3561. <hint>
  3562. <![CDATA[반송부제기사유]]>
  3563. </hint>
  3564. </select1>
  3565. <output id="opt_drgcd" ref="/root/main/item1/clbs/drgcd" class="output_fix" style="left:770px; top:246px; width:50px; height:19px; text-align:center; ">
  3566. <hint>
  3567. <![CDATA[KDRG분류번호]]>
  3568. </hint>
  3569. <script type="javascript" ev:event="ondblclick">
  3570. <![CDATA[
  3571. /*
  3572. var ans = messageBox("DRG 화일을 생성", "S001"); // 예(Yes)\n아니면 아니오(No)
  3573. if (ans == 6) { // 6: yes, 7:no, 2:cancel
  3574. //--------------------------
  3575. // KDRG 3.2 DRG분류번호 조회
  3576. //--------------------------
  3577. pidfGetKDRGCode();
  3578. }
  3579. */
  3580. // 등록번호 있는 경우만.
  3581. if ( model.getValue("/root/main/item1/clbs/pid") != "" ) {
  3582. if ( model.getValue("/root/main/item1/clbs/drgcd") == "-" ) {
  3583. fSetKDRGpid();
  3584. } else {
  3585. fDocuKdrgViewPid();
  3586. }
  3587. }
  3588. ]]>
  3589. </script>
  3590. </output>
  3591. <button id="btn_clodinsert" class="btn2_letter3" _auth="R" style="left:950px; top:246px; width:53px; height:19px; ">
  3592. <caption>행추가</caption>
  3593. <script type="javascript" ev:event="DOMActivate">
  3594. <![CDATA[
  3595. fOrderGridInsertRow(); // 행추가
  3596. ]]>
  3597. </script>
  3598. </button>
  3599. <button id="btn_clodcopy" class="btn2_letter3" _auth="R" style="left:1005px; top:246px; width:53px; height:19px; ">
  3600. <caption>행복사</caption>
  3601. <script type="javascript" ev:event="DOMActivate">
  3602. <![CDATA[
  3603. fOrderGridCopyRow(); // 행복사
  3604. ]]>
  3605. </script>
  3606. </button>
  3607. <button id="btn_cloddelete" class="btn2_letter3" _auth="R" style="left:1060px; top:246px; width:53px; height:19px; ">
  3608. <caption>행삭제</caption>
  3609. <script type="javascript" ev:event="DOMActivate">
  3610. <![CDATA[
  3611. fOrderGridDeleteRow(); // 행삭제
  3612. ]]>
  3613. </script>
  3614. </button>
  3615. <group id="grp_predoculist" scroll="none" style="left:630px; top:270px; width:479px; height:349px; border-style:solid; ">
  3616. <line id="line6" class="line_1" style="x1:0px; y1:45px; x2:479px; y2:45px; "/>
  3617. <datagrid id="grd_predocu" nodeset="/root/main/list4/clbs" class="datagrid2" caption="청구년월^차수^내&#xA;원^개시일^주상병^분야^과^전문의^유&#xA;형^보&#xA;조^심사&#xA;상태^청구&#xA;상태^명일련^삭제&#xA;사유^clamkey" colsep="^" colwidth="60, 40, 20, 67, 54, 44, 31, 42, 18, 18, 46, 54, 43, 30, 150" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:50px; width:479px; height:264px; ">
  3618. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  3619. <col ref="clamdg" style="text-align:center; "/>
  3620. <col ref="ioflag" style="text-align:center; "/>
  3621. <col ref="ordfromdd" format="yyyy-mm-dd"/>
  3622. <col ref="diagcd" style="text-align:left; "/>
  3623. <col disabled="true" ref="ordfildcd" type="combo" style="text-align:center; ">
  3624. <choices>
  3625. <itemset nodeset="/root/init/P0291list/P0291">
  3626. <label ref="cdnm"/>
  3627. <value ref="cdid"/>
  3628. </itemset>
  3629. </choices>
  3630. </col>
  3631. <col ref="orddeptcd"/>
  3632. <col disabled="true" ref="orddrid" type="combo">
  3633. <choices>
  3634. <itemset nodeset="/root/init/orddrid/orddridlist">
  3635. <label ref="nm"/>
  3636. <value ref="cd"/>
  3637. </itemset>
  3638. </choices>
  3639. </col>
  3640. <col ref="insukind"/>
  3641. <col ref="suppkind"/>
  3642. <col disabled="true" ref="judgendyn" type="combo" style="text-align:center; ">
  3643. <choices>
  3644. <itemset nodeset="/root/init/P0151list/P0151">
  3645. <label ref="cdengabbrnm"/>
  3646. <value ref="cdid"/>
  3647. </itemset>
  3648. </choices>
  3649. </col>
  3650. <col ref="clamstat"/>
  3651. <col ref="docuseqno" style="text-align:right; "/>
  3652. <col ref="delresn"/>
  3653. <col ref="clamkey" visibility="hidden" style="background-color:#c0c0c0; "/>
  3654. <script type="javascript" ev:event="ondblclick">
  3655. <![CDATA[
  3656. if (grd_predocu.isCell(event.target) && grd_predocu.mouseRow >= grd_predocu.fixedrows) {
  3657. var row = grd_predocu.row;
  3658. var clamkey = model.getValue("/root/main/list4/clbs["+ row +"]/clamkey");
  3659. var clamym = model.getValue("/root/main/list4/clbs["+ row +"]/clamym");
  3660. var clamdg = model.getValue("/root/main/list4/clbs["+ row +"]/clamdg");
  3661. var pid = model.getValue("/root/main/list4/clbs["+ row +"]/pid");
  3662. var pidsn = model.getValue("/root/main/list4/clbs["+ row +"]/pidsn");
  3663. //var judgendyn = model.getValue("/root/main/list4/clbs["+ row +"]/judgendyn");
  3664. if (clamkey == model.getValue("/root/main/item1/clbs/clamkey")) {
  3665. messageBox("현재 심사중인 명세서와 동일한 명세서가", "E005"); ///현재 심사중인 명세서와 동일한 명세서가 선택되었습니다.
  3666. return;
  3667. }
  3668. if (clamkey) {
  3669. var ioflag = model.getValue("/root/main/list4/clbs["+ row +"]/ioflag");
  3670. if (ioflag == "O") {
  3671. var preDocuWindow = getChildWindow("SMPID20300");
  3672. if (preDocuWindow != null) {
  3673. var rslt = preDocuWindow.javascript.fInitSrchData(); // 화면을 초기화한다.
  3674. if (rslt == false) { // 수정사항 저장이 완료되지 않아 초기화할 수 없는 경우
  3675. activateChild("SMPID20300");
  3676. return false;
  3677. }
  3678. preDocuWindow.close();
  3679. }
  3680. preDocuWindow = getChildWindow("SMPID20500"); // SMPID20500_외래사후심사관리.xrw
  3681. if (preDocuWindow == null) {
  3682. // open("SMPID20500", "2", "10", "10", "SMPID20500", "/root/main/list4/clbs["+ row +"]/clamkey", "/root/send/item1/clbs/clamkey", "", "");
  3683. model.setValue("/root/send/item1/clbs/workflag", "12");
  3684. model.setValue("/root/send/item1/clbs/clamym", clamym);
  3685. model.setValue("/root/send/item1/clbs/clamdg", clamdg);
  3686. model.setValue("/root/send/item1/clbs/pid", pid);
  3687. model.setValue("/root/send/item1/clbs/pidsn", pidsn);
  3688. model.setValue("/root/send/item1/clbs/ioflag", "O");
  3689. open("SMPID20500", "2", "10", "10", "SMPID20500", "/root/send/item1/clbs", "/root/send/item1/clbs", "", ""); // SMPID20500_외래사후심사관리.xrw
  3690. } else {
  3691. model.setValue("/root/hidden/smpid20500/cond/workflag", "12");
  3692. model.setValue("/root/hidden/smpid20500/cond/clamym", clamym);
  3693. model.setValue("/root/hidden/smpid20500/cond/clamdg", clamdg);
  3694. model.setValue("/root/hidden/smpid20500/cond/pid", pid);
  3695. model.setValue("/root/hidden/smpid20500/cond/pidsn", pidsn);
  3696. preDocuWindow.javascript.fActivatePreDocuWindow();
  3697. activateChild("SMPID20500");
  3698. }
  3699. } else {
  3700. var preDocuWindow = getChildWindow("SMPID20500");
  3701. if (preDocuWindow != null) {
  3702. var rslt = preDocuWindow.javascript.fInitSrchData(); // 화면을 초기화한다.
  3703. if (rslt == false) { // 수정사항 저장이 완료되지 않아 초기화할 수 없는 경우
  3704. activateChild("SMPID20500");
  3705. return false;
  3706. }
  3707. preDocuWindow.close();
  3708. }
  3709. preDocuWindow = getChildWindow("SMPID20300"); // SMPID20300_입원사후심사관리.xrw
  3710. if (preDocuWindow == null) {
  3711. // open("SMPID20300", "2", "10", "10", "SMPID20300", "/root/main/list4/clbs["+ row +"]/clamkey", "/root/send/item1/clbs/clamkey", "", "");
  3712. model.setValue("/root/send/item1/clbs/workflag", "12");
  3713. model.setValue("/root/send/item1/clbs/clamym", clamym);
  3714. model.setValue("/root/send/item1/clbs/clamdg", clamdg);
  3715. model.setValue("/root/send/item1/clbs/pid", pid);
  3716. model.setValue("/root/send/item1/clbs/pidsn", pidsn);
  3717. model.setValue("/root/send/item1/clbs/ioflag", "I");
  3718. open("SMPID20300", "2", "10", "10", "SMPID20300", "/root/send/item1/clbs", "/root/send/item1/clbs", "", ""); // SMPID20300_입원사후심사관리.xrw
  3719. } else { // 이전명세서 용도의 SMPID20300_입원사후심사관리 Popup 화면이 이미 열려있는 경우
  3720. model.setValue("/root/hidden/smpid20300/cond/workflag", "12");
  3721. model.setValue("/root/hidden/smpid20300/cond/clamym", clamym);
  3722. model.setValue("/root/hidden/smpid20300/cond/clamdg", clamdg);
  3723. model.setValue("/root/hidden/smpid20300/cond/pid", pid);
  3724. model.setValue("/root/hidden/smpid20300/cond/pidsn", pidsn);
  3725. preDocuWindow.javascript.fActivatePreDocuWindow();
  3726. activateChild("SMPID20300");
  3727. }
  3728. }
  3729. }
  3730. /*
  3731. //if (judgendyn == "Y" || judgendyn == "E" || judgendyn == "T" || judgendyn == "J" || judgendyn == "Z" ) {
  3732. // Y = 심사완료, E = 심사마감, T = 송신완료 , J = 심결도착, Z = 지급통보도착
  3733. if (judgendyn == "E" || judgendyn == "T" || judgendyn == "J" || judgendyn == "Z" ) {
  3734. // E = 심사마감, T = 송신완료 , J = 심결도착, Z = 지급통보도착
  3735. }
  3736. */
  3737. // modal("SMPID20300", "1", "10", "10", "SMPID20300", "/root/main/list4/clbs["+ row +"]/clamkey", "/root/send/item1/clbs/clamkey", "", "");
  3738. }
  3739. ]]>
  3740. </script>
  3741. <script type="javascript" ev:event="onaftersort">
  3742. <![CDATA[
  3743. grd_predocu.gridToInstance();
  3744. ]]>
  3745. </script>
  3746. </datagrid>
  3747. <button id="btn_closepredoculist" class="btn4_letter2" style="left:403px; top:318px; width:56px; height:22px; ">
  3748. <caption>닫기</caption>
  3749. <script type="javascript" ev:event="DOMActivate">
  3750. <![CDATA[
  3751. grd_clodhist.attribute("width") = "1114";
  3752. ln_clodhist.attribute("x2") = "1114";
  3753. cap_grptemp.visible = false;
  3754. grp_predoculist.visible = false;
  3755. ]]>
  3756. </script>
  3757. </button>
  3758. <select1 id="rdo_ioflag" ref="/root/send/list4/ioflag" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:295px; top:7px; width:140px; height:17px; border-style:none; ">
  3759. <choices>
  3760. <item>
  3761. <label>전체</label>
  3762. <value>-</value>
  3763. </item>
  3764. <item>
  3765. <label>입원</label>
  3766. <value>I</value>
  3767. </item>
  3768. <item>
  3769. <label>외래</label>
  3770. <value>O</value>
  3771. </item>
  3772. </choices>
  3773. <script type="javascript" ev:event="xforms-select">
  3774. <![CDATA[
  3775. fSrchPreDocuList();
  3776. ]]>
  3777. </script>
  3778. </select1>
  3779. <select1 id="rdo_refterm" ref="/root/send/list4/refterm" appearance="full" cellspacing="5" cols="5" overflow="visible" style="left:63px; top:27px; width:230px; height:17px; border-style:none; ">
  3780. <choices>
  3781. <item>
  3782. <label>전체</label>
  3783. <value>-</value>
  3784. </item>
  3785. <item>
  3786. <label>1개월</label>
  3787. <value>1</value>
  3788. </item>
  3789. <item>
  3790. <label>3개월</label>
  3791. <value>3</value>
  3792. </item>
  3793. <item>
  3794. <label>6개월</label>
  3795. <value>6</value>
  3796. </item>
  3797. <item>
  3798. <label/>
  3799. <value>0</value>
  3800. </item>
  3801. </choices>
  3802. <script type="javascript" ev:event="xforms-value-changed">
  3803. <![CDATA[
  3804. var refterm = model.getValue("/root/send/list4/refterm");
  3805. if (refterm == "0") {
  3806. ipt_fromdd.disabled = false;
  3807. ipt_todd.disabled = false;
  3808. } else {
  3809. ipt_fromdd.disabled = true;
  3810. ipt_todd.disabled = true;
  3811. }
  3812. fSrchPreDocuList();
  3813. ]]>
  3814. </script>
  3815. </select1>
  3816. <input id="ipt_fromdd" ref="/root/send/list4/fromdd" class="input_default" disabled="true" inputtype="date" format="yyyy-mm" style="left:296px; top:25px; width:72px; height:19px; ">
  3817. <script type="javascript" ev:event="xforms-value-changed">
  3818. <![CDATA[
  3819. fSrchPreDocuList();
  3820. // var fromdd = model.getValue("/root/send/list4/fromdd");
  3821. // var todd = model.getValue("/root/send/list4/todd");
  3822. // if (isValidDateTime(fromdd)) { // (dateHelper.js) 유효한 날짜, 시간 인지 점검
  3823. // if (isValidDateTime(todd)) {
  3824. // var dateDif = getDateInterval(fromdd, todd); // (dateHelper.js) 두 일자사이의 차를 일단위로 반환
  3825. // if (dateDif < 0) {
  3826. // messageBox("검색 시작일자가 종료일자 보다 이후", "E008"); ///검색 시작일자가 종료일자 보다 이후 입니다.
  3827. // } else {
  3828. // fSrchPreDocuList();
  3829. // }
  3830. // }
  3831. // }
  3832. ]]>
  3833. </script>
  3834. </input>
  3835. <input id="ipt_todd" ref="/root/send/list4/todd" class="input_default" disabled="true" inputtype="date" format="yyyy-mm" style="left:379px; top:25px; width:72px; height:19px; ">
  3836. <script type="javascript" ev:event="xforms-value-changed">
  3837. <![CDATA[
  3838. fSrchPreDocuList();
  3839. // var fromdd = model.getValue("/root/send/list4/fromdd");
  3840. // var todd = model.getValue("/root/send/list4/todd");
  3841. // if (isValidDateTime(todd)) { // (dateHelper.js) 유효한 날짜, 시간 인지 점검
  3842. // if (isValidDateTime(fromdd)) {
  3843. // var dateDif = getDateInterval(fromdd, todd); // (dateHelper.js) 두 일자사이의 차를 일단위로 반환
  3844. // if (dateDif < 0) {
  3845. // messageBox("검색 시작일자가 종료일자 보다 이후", "E008"); ///검색 시작일자가 종료일자 보다 이후 입니다.
  3846. // } else {
  3847. // fSrchPreDocuList();
  3848. // }
  3849. // }
  3850. // }
  3851. ]]>
  3852. </script>
  3853. </input>
  3854. <caption id="caption11" style="left:367px; top:27px; width:11px; height:17px; ">~</caption>
  3855. <select id="chk_allordfild" ref="/root/send/list4/allordfild" class="check_fSetDelOrdPreDocuSizesearch" overflow="visible" appearance="full" style="left:191px; top:7px; width:87px; height:17px; border-style:none; ">
  3856. <choices>
  3857. <item>
  3858. <label>타 분야 포함</label>
  3859. <value>Y</value>
  3860. </item>
  3861. </choices>
  3862. <script type="javascript" ev:event="xforms-value-changed">
  3863. <![CDATA[
  3864. fSrchPreDocuList();
  3865. ]]>
  3866. </script>
  3867. </select>
  3868. <caption id="caption35" class="search_name" style="left:1px; top:25px; width:60px; height:17px; ">기간 :</caption>
  3869. <caption id="cap_grptemp" class="tit_2" style="left:6px; top:8px; width:118px; height:13px; ">이전 명세서 목록</caption>
  3870. </group>
  3871. <output id="opt_kstage" ref="/root/main/item1/clbs/kstage" class="output_fix" style="left:823px; top:246px; width:20px; height:19px; text-align:center; "/>
  3872. <output id="opt_kdrgnm" ref="/root/main/item1/clbs/kdrgnm" class="output_fix" style="left:846px; top:246px; width:98px; height:19px; text-align:center; ">
  3873. <script type="javascript" ev:event="onmouseover">
  3874. <![CDATA[
  3875. opt_kdrgnm.hint = model.getValue("/root/main/item1/clbs/kdrgnm");
  3876. ]]>
  3877. </script>
  3878. </output>
  3879. <button id="button4" class="btn2_letter5" _auth="R" style="left:1117px; top:512px; width:75px; height:19px; ">
  3880. <caption>정산의뢰</caption>
  3881. <script type="javascript" ev:event="DOMActivate">
  3882. <![CDATA[
  3883. var clamkey = model.getValue("/root/main/item1/clbs/clamkey");
  3884. if (clamkey) {
  3885. fCallReCharge(true);
  3886. }
  3887. ]]>
  3888. </script>
  3889. </button>
  3890. <group id="grp_desc" visibility="hidden" style="left:635px; top:270px; width:255px; height:190px; border-color:#c7a3cf; border-style:solid; ">
  3891. <line id="line18" class="line_1" style="x1:0px; y1:64px; x2:250px; y2:64px; "/>
  3892. <caption id="caption20" class="tit_2" style="left:6px; top:49px; width:129px; height:13px; ">삭제상세사유</caption>
  3893. <textarea id="txtr_adjtresndesc" ref="/root/main/item1/clbs/adjtresndesc" style="left:0px; top:69px; width:250px; height:85px; text-align:left; vertical-align:top; "/>
  3894. <button id="button7" class="btn4_letter2" style="left:191px; top:159px; width:56px; height:22px; ">
  3895. <caption>확인</caption>
  3896. <script type="javascript" ev:event="DOMActivate">
  3897. <![CDATA[
  3898. var judgendyn = model.getValue("/root/main/item1/clbs/judgendyn");
  3899. if(judgendyn == "D") {
  3900. model.setValue("/root/send/item1/clbs/docudelresncd", model.getValue("/root/main/item1/clbs/docudelresncd"));
  3901. model.setValue("/root/send/item1/clbs/adjtresndesc", model.getValue("/root/main/item1/clbs/adjtresndesc"));
  3902. submit("TXPID20307");
  3903. messageBox("","I001");
  3904. }
  3905. grp_desc.visible = false;
  3906. ]]>
  3907. </script>
  3908. </button>
  3909. <button id="button6" class="btn4_letter2" visibility="hidden" style="left:74px; top:159px; width:56px; height:22px; ">
  3910. <caption>닫기</caption>
  3911. <script type="javascript" ev:event="DOMActivate">
  3912. <![CDATA[
  3913. model.makeValue("/root/main/item1/clbs/adjtresndesc", "");
  3914. grp_desc.visible = false;
  3915. ]]>
  3916. </script>
  3917. </button>
  3918. <caption id="caption44" class="tit_2" style="left:6px; top:4px; width:129px; height:13px; ">삭제사유</caption>
  3919. <line id="line20" class="line_1" style="x1:0px; y1:19px; x2:250px; y2:19px; "/>
  3920. <select1 id="combo1" ref="/root/main/item1/clbs/docudelresncd" class="combo_default" appearance="minimal" showvalue="false" _auth="R" style="left:0px; top:24px; width:250px; height:19px; ">
  3921. <choices>
  3922. <itemset nodeset="/root/init/P0465list/P0465">
  3923. <label ref="cdnm"/>
  3924. <value ref="cdid"/>
  3925. </itemset>
  3926. </choices>
  3927. <hint>
  3928. <![CDATA[명세서삭제사유]]>
  3929. </hint>
  3930. </select1>
  3931. </group>
  3932. <button id="button5" class="btn2_letter5" _auth="R" style="left:299px; top:246px; width:75px; height:19px; ">
  3933. <caption>타병원처방</caption>
  3934. <script type="javascript" ev:event="DOMActivate">
  3935. <![CDATA[
  3936. var pid = model.getValue("/root/main/item1/clbs/pid");
  3937. if (pid) { // 조회된 심사대상자가 있으면
  3938. model.resetInstanceNode("/root/hidden/sppid29000/cond");
  3939. model.setValue("/root/hidden/sppid29000/cond/clamym", model.getValue("/root/main/item1/clbs/clamym"));
  3940. model.setValue("/root/hidden/sppid29000/cond/clamdg", model.getValue("/root/main/item1/clbs/clamdg"));
  3941. model.setValue("/root/hidden/sppid29000/cond/pid", model.getValue("/root/main/item1/clbs/pid"));
  3942. model.setValue("/root/hidden/sppid29000/cond/pidsn", model.getValue("/root/main/item1/clbs/pidsn"));
  3943. model.setValue("/root/hidden/sppid29000/cond/insukindcd", model.getValue("/root/main/item1/clbs/insukindcd"));
  3944. model.setValue("/root/hidden/sppid29000/cond/orddeptcd", model.getValue("/root/main/item1/clbs/orddeptcd"));
  3945. model.setValue("/root/hidden/sppid29000/cond/orddrid", model.getValue("/root/main/item1/clbs/orddrid"));
  3946. // if (document.title == "심사전 명세서 조회") {
  3947. // model.setValue("/root/hidden/sppid21700/cond/workflag", "11");
  3948. // } else {
  3949. // alert(document.title);
  3950. // }
  3951. modal("SPPID29000", "1", "10", "10", "SPPID29000", "/root/hidden/sppid29000/cond", "/root/send", "", ""); // SPPID21700_원외처방조회.xrw
  3952. }
  3953. ]]>
  3954. </script>
  3955. </button>
  3956. </group>
  3957. <button id="btn_save" class="btn5_letter5" _auth="X" style="left:1117px; top:436px; width:75px; height:19px; ">
  3958. <caption>저장</caption>
  3959. <script type="javascript" ev:event="DOMActivate">
  3960. <![CDATA[
  3961. fSaveInAftJudg("B");
  3962. ]]>
  3963. </script>
  3964. </button>
  3965. <button id="btn_end" accesskey="F7" class="btn5_letter5" _auth="X" style="left:1117px; top:458px; width:75px; height:19px; ">
  3966. <caption>완료</caption>
  3967. <script type="javascript" ev:event="DOMActivate">
  3968. <![CDATA[
  3969. if (btn_end.disabled == false ){
  3970. fGetNextAftJudgTrgtMan("C"); // P0151 (사후심사-심사완료여부) C: 심사완료
  3971. } else {
  3972. messageBox("비활성 상태입니다. 진행","E001");
  3973. }
  3974. ]]>
  3975. </script>
  3976. <hint>
  3977. <![CDATA[F7&F8]]>
  3978. </hint>
  3979. </button>
  3980. <button id="btn_unjudg" accesskey="F6" class="btn5_letter5" _auth="X" style="left:1117px; top:480px; width:75px; height:19px; ">
  3981. <caption>미심</caption>
  3982. <script type="javascript" ev:event="DOMActivate">
  3983. <![CDATA[
  3984. if (btn_unjudg.disabled == false ){
  3985. fGetNextAftJudgTrgtMan("A"); // P0151 (사후심사-심사완료여부) A: 미심사
  3986. } else {
  3987. messageBox("비활성 상태입니다. 진행","E001");
  3988. }
  3989. ]]>
  3990. </script>
  3991. <hint>
  3992. <![CDATA[F6]]>
  3993. </hint>
  3994. </button>
  3995. <button id="btn_rete" accesskey="F9" class="btn5_letter5" _auth="X" style="left:1117px; top:502px; width:75px; height:19px; ">
  3996. <caption>보류</caption>
  3997. <script type="javascript" ev:event="DOMActivate">
  3998. <![CDATA[
  3999. if (btn_rete.disabled == false ){
  4000. fGetNextAftJudgTrgtMan("N"); // P0151 (사후심사-심사완료여부) N: 심사보류
  4001. } else {
  4002. messageBox("비활성 상태입니다. 진행","E001");
  4003. }
  4004. ]]>
  4005. </script>
  4006. <hint>
  4007. <![CDATA[F9]]>
  4008. </hint>
  4009. </button>
  4010. <button id="btn_del" class="btn5_letter5" _auth="X" style="left:1117px; top:524px; width:75px; height:19px; ">
  4011. <caption>삭제</caption>
  4012. <script type="javascript" ev:event="DOMActivate">
  4013. <![CDATA[
  4014. // 1. 재청구삭제일 경우 : (1). 반송부제기사유 체크
  4015. // (2). 반송부제기사유 UPDATE
  4016. if ( messageBox("","Q001")==6 ) {
  4017. var clamflagcd = model.getValue("/root/main/item1/clbs/clamflagcd");
  4018. if (clamflagcd == "1") {
  4019. if (pidfChkAbdResncd()) {
  4020. fGetNextAftJudgTrgtMan("D"); // P0151 (사후심사-심사완료여부) D: 삭제
  4021. }
  4022. }
  4023. // 2. 명세서삭제일 경우 : (1). 명세서삭제사유 체크
  4024. // (2). 기타일경우 심사자메모에 기타사유 추가
  4025. else {
  4026. if (pidfChkDocuDelResncd()) {
  4027. fGetNextAftJudgTrgtMan("D"); // P0151 (사후심사-심사완료여부) D: 삭제
  4028. }
  4029. }
  4030. }
  4031. ]]>
  4032. </script>
  4033. <hint>
  4034. <![CDATA[심사상태 삭제처리]]>
  4035. </hint>
  4036. </button>
  4037. <button id="btn_amtsum" class="btn2_letter5" _auth="R" style="left:1117px; top:568px; width:75px; height:19px; ">
  4038. <caption>진료비누적</caption>
  4039. <script type="javascript" ev:event="DOMActivate">
  4040. <![CDATA[
  4041. var clamym = model.getValue("/root/main/item1/clbs/clamym");
  4042. if (clamym) {
  4043. // 심사전후 차액이 얼마 이상이면 심사전후차액조회 Popup을 표시한다.
  4044. // 그 화면에서 "심사완료" 처리를 한다던건 보류.
  4045. model.setValue("/root/hidden/sppid21300/cond/clamym", clamym);
  4046. model.setValue("/root/hidden/sppid21300/cond/clamdg", model.getValue("/root/main/item1/clbs/clamdg"));
  4047. model.setValue("/root/hidden/sppid21300/cond/pid", model.getValue("/root/main/item1/clbs/pid"));
  4048. model.setValue("/root/hidden/sppid21300/cond/pidsn", model.getValue("/root/main/item1/clbs/pidsn"));
  4049. model.setValue("/root/hidden/sppid21300/cond/insukind", model.getValue("/root/main/item1/clbs/insukindcd"));
  4050. model.setValue("/root/hidden/sppid21300/cond/suppkind", model.getValue("/root/main/item1/clbs/suppkindcd"));
  4051. model.setValue("/root/hidden/sppid21300/cond/ordfromdd", model.getValue("/root/main/item1/clbs/ordfromdd"));
  4052. //modal("SPPID21300", "1", "10", "10", "SPPID21300", "/root/hidden/sppid21300/cond", "/root/send/data1", "", ""); // SPPID21300_심사전후차액조회.xrw
  4053. open("SPPID21300", "1", "10", "10", "SPPID21300", "/root/hidden/sppid21300/cond", "/root/send/data1", "", ""); // SPPID21300_심사전후차액조회.xrw
  4054. }
  4055. ]]>
  4056. </script>
  4057. <hint>
  4058. <![CDATA[심사전후 차액조회]]>
  4059. </hint>
  4060. </button>
  4061. <button id="btn_predocu" class="btn2_letter5" _auth="X" style="left:1117px; top:590px; width:75px; height:19px; ">
  4062. <caption>이전명세서</caption>
  4063. <script type="javascript" ev:event="DOMActivate">
  4064. <![CDATA[
  4065. if (grp_predoculist.visible == true) {
  4066. // 이전 명세서 목록
  4067. cap_grptemp.visible = false;
  4068. grp_predoculist.visible = false;
  4069. grd_clodhist.attribute("width") = "1114";
  4070. ln_clodhist.attribute("x2") = "1114";
  4071. } else {
  4072. // pid로 검색한 명세서 목록을 보여주고, 해당 목록에서 고른 건에 대하여 이전명세서 조회 화면을 호출한다.
  4073. var preDocuNode = instance1.selectSingleNode("/root/main/list4");
  4074. if (preDocuNode == null) { // 이전에 조회된 내용이 없음
  4075. var clamym = model.getValue("/root/main/item1/clbs/clamym");
  4076. if (clamym) { // 조회된 심사대상자가 있음
  4077. model.resetInstanceNode("/root/send/list4");
  4078. model.setValue("/root/send/list4/pid", model.getValue("/root/main/item1/clbs/pid"));
  4079. model.setValue("/root/send/list4/clamym", model.getValue("/root/main/item1/clbs/clamym"));
  4080. model.setValue("/root/send/list4/allordfild", "Y");
  4081. // model.setValue("/root/send/list4/ordfildcd", model.getValue("/root/main/item1/clbs/ordfildcd"));
  4082. model.setValue("/root/send/list4/ioflag", "-"); // 20091016 기본 옵션 전체로 수정함 - 박창원
  4083. model.setValue("/root/send/list4/refterm", "3");
  4084. // 20091205 김용민 clamdg, pidsn추가
  4085. model.setValue("/root/send/list4/clamdg", model.getValue("/root/main/item1/clbs/clamdg"));
  4086. model.setValue("/root/send/list4/pidsn", model.getValue("/root/main/item1/clbs/pidsn"));
  4087. ipt_fromdd.disabled = true;
  4088. ipt_todd.disabled = true;
  4089. submit("TRPID20304");
  4090. grd_predocu.rebuildStyle();
  4091. for (var i = 1; i < grd_predocu.rows; i++) {
  4092. if (clamym == model.getValue("/root/main/list4/clbs["+ i +"]/clamym")) {
  4093. grd_predocu.rowStyle(i, "data", "background-color") = "#4d4d4d"; // common.css (input)
  4094. grd_predocu.rowStyle(i, "data", "background-image") = "../../../com/commonweb/images/grid_bg.gif";
  4095. grd_predocu.rowStyle(i, "data", "background-repeat") = "repeat-x";
  4096. i = grd_predocu.rows;
  4097. }
  4098. }
  4099. // grd_predocu.resizeCells();
  4100. // model.refresh();
  4101. }
  4102. }
  4103. grp_predoculist.visible = true;
  4104. grp_delclodlist.visible = false; // 처방 휴지통
  4105. grp_delorderlist.visible = false; // 심사변경 목록
  4106. fSetDelOrdPreDocuSize();
  4107. }
  4108. ]]>
  4109. </script>
  4110. <script type="javascript" ev:event="onmousemove">
  4111. <![CDATA[
  4112. //var preDocuNode = instance1.selectSingleNode("/root/main/list4/clbs");
  4113. //if (preDocuNode != null) {
  4114. // grp_predoculist.visible = true;
  4115. // grp_delclodlist.visible = false; // 처방 휴지통
  4116. // grp_delorderlist.visible = false; // 심사변경 목록
  4117. // fSetDelOrdPreDocuSize();
  4118. //}
  4119. ]]>
  4120. </script>
  4121. </button>
  4122. <output id="opt_patage" ref="/root/main/item1/clbs/patage" class="output_fix" style="left:445px; top:26px; width:37px; height:19px; text-align:right; ">
  4123. <hint>
  4124. <![CDATA[나이]]>
  4125. </hint>
  4126. </output>
  4127. <output id="opt_insunm" ref="/root/main/item1/clbs/insunm" class="output_fix" style="left:975px; top:50px; width:85px; height:19px; "/>
  4128. <caption id="caption51" class="cell_1" style="left:287px; top:73px; width:61px; height:23px; ">보조/요율</caption>
  4129. <output id="opt_payownbrate" ref="/root/main/item1/clbs/payownbrate" class="output_fix" style="left:458px; top:74px; width:24px; height:19px; text-align:right; ">
  4130. <hint>
  4131. <![CDATA[요율]]>
  4132. </hint>
  4133. </output>
  4134. <caption id="cap_certno" class="cell_1" style="left:919px; top:73px; width:55px; height:23px; ">증번호</caption>
  4135. <input id="ipt_certno" ref="/root/main/item1/clbs/certno" class="input_default" navindex="11" maxlength="30" _auth="R" style="left:975px; top:74px; width:85px; height:19px; "/>
  4136. <caption id="caption30" class="cell_1" style="left:160px; top:25px; width:55px; height:23px; text-align:center; ">공상구분</caption>
  4137. <caption id="caption32" class="cell_1" style="left:287px; top:49px; width:61px; height:23px; ">보험유형</caption>
  4138. <output id="opt_insukindnm" ref="/root/main/item1/clbs/insukindnm" class="output_fix" style="left:370px; top:50px; width:112px; height:19px; "/>
  4139. <select1 id="cmb_inpathcd" ref="/root/main/item1/clbs/inpathcd" class="combo_search" navindex="8" appearance="minimal" _auth="R" style="left:735px; top:50px; width:51px; height:19px; ">
  4140. <choices>
  4141. <itemset nodeset="/root/init/P0111list/P0111">
  4142. <label ref="cdnm"/>
  4143. <value ref="cdid"/>
  4144. </itemset>
  4145. </choices>
  4146. <hint>
  4147. <![CDATA[입원경로]]>
  4148. </hint>
  4149. </select1>
  4150. <input id="opt_acptno" ref="/root/main/item1/clbs/acptno" style="left:58px; top:74px; width:66px; height:19px; "/>
  4151. <caption id="cap_ordfildcd" class="cell_1" style="left:484px; top:25px; width:67px; height:23px; ">
  4152. <![CDATA[진료분야]]>
  4153. <script type="javascript" ev:event="onmouseover">
  4154. <![CDATA[
  4155. cap_ordfildcd.hint = model.getValue("/root/main/item1/clbs/ordfildcd");
  4156. ]]>
  4157. </script>
  4158. </caption>
  4159. <select1 id="cmb_ordfildcd" ref="/root/main/item1/clbs/ordfildcd" class="combo_default" disabled="false" appearance="minimal" style="left:552px; top:26px; width:67px; height:19px; ">
  4160. <choices>
  4161. <itemset nodeset="/root/init/P0291list/P0291">
  4162. <label ref="cdnm"/>
  4163. <value ref="cdid"/>
  4164. </itemset>
  4165. </choices>
  4166. <script type="javascript" ev:event="onmouseover">
  4167. <![CDATA[
  4168. cmb_ordfildcd.hint = model.getValue("/root/main/item1/clbs/ordfildcd");
  4169. cmb_ordfildcd.refresh();
  4170. ]]>
  4171. </script>
  4172. <script type="javascript" ev:event="xforms-value-changed">
  4173. <![CDATA[
  4174. var ordfildcd = model.getValue("/root/main/item1/clbs/ordfildcd");
  4175. var clamtypecd = model.getValue("/root/main/item1/clbs/clamtypecd");
  4176. // 집계형태(sumtypecd) 업데이트
  4177. // 건강보험, 의료급여 => 진료분야그대로...
  4178. //if (clamtypecd == "1") {
  4179. // model.setValue("/root/main/item1/clbs/sumtypecd", ordfildcd); // 집계형태 : 진료분야
  4180. //}
  4181. // 자보 => 의과,치과,한방
  4182. //else
  4183. if (clamtypecd == "8") {
  4184. if (ordfildcd == "6") {
  4185. model.setValue("/root/main/item1/clbs/sumtypecd", "6"); // 집계형태 : 치과분야
  4186. }
  4187. else if (ordfildcd == "8") {
  4188. model.setValue("/root/main/item1/clbs/sumtypecd", "8"); // 집계형태 : 한방분야
  4189. }
  4190. else {
  4191. model.setValue("/root/main/item1/clbs/sumtypecd", "0"); // 집계형태 : 의과분야
  4192. }
  4193. }
  4194. ]]>
  4195. </script>
  4196. </select1>
  4197. <output id="opt_insukindcd" ref="/root/main/item1/clbs/insukindcd" class="output_fix" style="left:350px; top:50px; width:17px; height:19px; "/>
  4198. <select1 id="cmb_orddeptcd" ref="/root/main/item1/clbs/orddeptcd" class="combo_default" disabled="false" appearance="minimal" style="left:621px; top:26px; width:94px; height:19px; ">
  4199. <choices>
  4200. <itemset nodeset="/root/init/orddeptcd2/orddeptcdlist">
  4201. <label ref="nm"/>
  4202. <value ref="cd"/>
  4203. </itemset>
  4204. </choices>
  4205. <script type="javascript" ev:event="xforms-value-changed">
  4206. <![CDATA[
  4207. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '"+ model.getValue("/root/main/item1/clbs/orddeptcd") +"']";
  4208. model.resetInstanceNode("/root/main/item1/clbs/orddrid"); // 진료과가 변경되었으므로 주치의를 초기화한다.
  4209. cmb_orddrid.refresh();
  4210. // 변경된 진료과의 청구과를 다시 셋팅한다.
  4211. var orddeptcd = model.getValue("/root/main/item1/clbs/orddeptcd");
  4212. var nodeList = instance1.selectNodes("/root/init/orddeptcd2/orddeptcdlist");
  4213. var i=1;
  4214. for (i=1; i < nodeList.length; i++) {
  4215. if (orddeptcd == model.getValue("/root/init/orddeptcd2/orddeptcdlist[" + i + "]/cd")) {
  4216. var clamdeptcd = model.getValue("/root/init/orddeptcd2/orddeptcdlist[" + i + "]/reqdeptno");
  4217. model.setValue("/root/main/item1/clbs/clamdeptcd", clamdeptcd);
  4218. break;
  4219. }
  4220. }
  4221. ]]>
  4222. </script>
  4223. <script type="javascript" ev:event="onmousedown">
  4224. <![CDATA[
  4225. cmb_orddeptcd.choices.itemset.attribute("nodeset") = "/root/init/orddeptcd/orddeptcdlist[reqfild = '"+ model.getValue("/root/main/item1/clbs/ordfildcd") +"']";
  4226. cmb_orddeptcd.refresh();
  4227. ]]>
  4228. </script>
  4229. </select1>
  4230. <select1 id="cmb_orddrid" ref="/root/main/item1/clbs/orddrid" class="combo_default" disabled="false" appearance="minimal" style="left:716px; top:26px; width:70px; height:19px; ">
  4231. <choices>
  4232. <itemset nodeset="/root/init/orddrid2/orddridlist">
  4233. <label ref="nm"/>
  4234. <value ref="cd"/>
  4235. </itemset>
  4236. </choices>
  4237. <script type="javascript" ev:event="onmousedown">
  4238. <![CDATA[
  4239. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '"+ model.getValue("/root/main/item1/clbs/orddeptcd") +"']";
  4240. cmb_orddrid.refresh();
  4241. // [2008-01-16] 주치의 Combo disabled 상태이므로 아래 구현을 주석처리함
  4242. /*
  4243. if (model.getValue("/root/main/item1/clbs/orddeptcd") == "") {
  4244. messageBox("진료과를 먼저", "C002"); ///진료과를 먼저 선택하십시오.
  4245. cmb_orddrid.disabled = true;
  4246. }
  4247. */
  4248. ]]>
  4249. </script>
  4250. <script type="javascript" ev:event="xforms-value-changed">
  4251. <![CDATA[
  4252. var orddrid = model.getValue("/root/main/item1/clbs/orddrid");
  4253. if (orddrid == "") {
  4254. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid2/orddridlist";
  4255. cmb_orddrid.refresh();
  4256. }
  4257. ]]>
  4258. </script>
  4259. </select1>
  4260. <select1 id="cmb_arvpathcd" ref="/root/main/item1/clbs/arvpathcd" class="combo_search" navindex="7" appearance="minimal" _auth="R" style="left:683px; top:50px; width:51px; height:19px; ">
  4261. <choices>
  4262. <itemset nodeset="/root/init/P0112list/P0112">
  4263. <label ref="cdnm"/>
  4264. <value ref="cdid"/>
  4265. </itemset>
  4266. </choices>
  4267. <hint>
  4268. <![CDATA[도착경로]]>
  4269. </hint>
  4270. </select1>
  4271. <caption id="caption4" class="cell_1" style="left:0px; top:25px; width:55px; height:23px; ">청구년월</caption>
  4272. <caption id="caption5" class="cell_1" style="left:160px; top:73px; width:55px; height:23px; ">결핵정보</caption>
  4273. <input id="opt_patnm" ref="/root/main/item1/clbs/patnm" class="input_default" appearance="input" style="left:217px; top:50px; width:47px; height:19px; "/>
  4274. <caption id="caption25" class="cell_1" style="left:788px; top:25px; width:61px; height:23px; ">진료결과</caption>
  4275. <select1 id="cmb_ordrsltcd" ref="/root/main/item1/clbs/ordrsltcd" class="combo_default" navindex="9" appearance="minimal" _auth="R" style="left:850px; top:26px; width:67px; height:19px; ">
  4276. <choices>
  4277. <itemset nodeset="/root/init/P0110list/P0110">
  4278. <label ref="cdnm"/>
  4279. <value ref="cdid"/>
  4280. </itemset>
  4281. </choices>
  4282. </select1>
  4283. <caption id="caption26" class="cell_1" style="left:0px; top:49px; width:55px; height:23px; ">
  4284. <![CDATA[등록번호]]>
  4285. <script type="javascript" ev:event="ondblclick">
  4286. <![CDATA[
  4287. var sWhere="";
  4288. sWhere += " select *";
  4289. sWhere += " from pam.pidmclbs a ";
  4290. sWhere += " where instcd = " + "'" + model.getValue("/root/main/item1/clbs/instcd") + "'";
  4291. sWhere += " and clamym = " + "'" + model.getValue("/root/main/item1/clbs/clamym") + "'";
  4292. sWhere += " and clamdg = " + "'" + model.getValue("/root/main/item1/clbs/clamdg") + "'";
  4293. sWhere += " and pid = " + "'" + model.getValue("/root/main/item1/clbs/pid") + "'";
  4294. sWhere += " and pidsn = " + "'" + model.getValue("/root/main/item1/clbs/pidsn") + "'";
  4295. sWhere += " and indd = " + "'" + model.getValue("/root/main/item1/clbs/indd") + "'";
  4296. sWhere += " and ordfromdd = " + "'" + model.getValue("/root/main/item1/clbs/ordfromdd") + "'";
  4297. sWhere += " and ordtodd = " + "'" + model.getValue("/root/main/item1/clbs/ordtodd") + "'";
  4298. model.makeNode("/root/hidden/devinfor");
  4299. model.setValue("/root/hidden/devinfor", sWhere);
  4300. ipt_information.refresh();
  4301. ipt_information.visible= true;
  4302. ]]>
  4303. </script>
  4304. </caption>
  4305. <caption id="caption6" class="cell_1" style="left:160px; top:49px; width:55px; height:23px; text-align:center; ">환자이름</caption>
  4306. <input id="opt_docuseqno" ref="/root/main/item1/clbs/docuseqno" style="left:125px; top:74px; width:35px; height:19px; "/>
  4307. <caption id="cap_insuno" class="cell_1" style="left:919px; top:25px; width:55px; height:23px; ">조합기호</caption>
  4308. <caption id="caption48" class="cell_1" style="left:621px; top:48px; width:61px; height:23px; ">도착/입원</caption>
  4309. <caption id="caption37" class="cell_1" style="left:287px; top:25px; width:61px; height:23px; ">주민번호</caption>
  4310. <caption id="caption16" class="cell_1" style="left:919px; top:49px; width:55px; height:23px; ">조합명칭</caption>
  4311. <input id="ipt_pid" ref="/root/main/item1/clbs/pid" class="input_default" navindex="3" imemode="disabled" maxlength="10" _auth="R" style="left:58px; top:50px; width:66px; height:19px; ">
  4312. <script type="javascript" ev:event="onkeypress">
  4313. <![CDATA[
  4314. if (event.keyCode == "13") {
  4315. var clamym = model.getValue("/root/main/item1/clbs/clamym"); // 청구년월
  4316. var oldpid = model.getValue("/root/main/item1/clbs/pid");
  4317. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  4318. var newpid = model.getValue("/root/main/item1/clbs/pid");
  4319. if (newpid == model.getValue("/root/hidden/item1/initclbs/clbs/pid")) {
  4320. return;
  4321. }
  4322. var rslt = fInitSrchData(); // 화면을 초기화한다.
  4323. if (rslt == false) { // 수정사항 저장이 완료되지 않아 초기화할 수 없는 경우
  4324. model.setValue("/root/main/item1/clbs/pid", oldpid);
  4325. //model.refresh();
  4326. model.refreshpart("/root/main/item1/clbs/pid");
  4327. } else {
  4328. model.setValue("/root/main/item1/clbs/clamym", clamym);
  4329. model.setValue("/root/main/item1/clbs/pid", newpid);
  4330. //model.refresh();
  4331. model.refreshpart("/root/main/item1/clbs/pid");
  4332. fGetInAftJudgTrgtManPidSrch();
  4333. }
  4334. /*
  4335. if (ipt_pid.currentText.length > 0) {
  4336. model.setValue("/root/main/item1/clbs/pid", ipt_pid.currentText);
  4337. //[2007.03.27] 직접 조회해 오는 방법에서 대상자리스트를 보여주는 것으로 변경함
  4338. fGetInAftJudgTrgtMan_v1();
  4339. }
  4340. */
  4341. }
  4342. ]]>
  4343. </script>
  4344. <script type="javascript" ev:event="xforms-value-changed">
  4345. <![CDATA[
  4346. var clamym = model.getValue("/root/main/item1/clbs/clamym"); // 청구년월
  4347. var clamdg = model.getValue("/root/main/item1/clbs/clamdg"); // 청구차수
  4348. var newpid = model.getValue("/root/main/item1/clbs/pid");
  4349. var oldpid = model.getValue("/root/hidden/item1/initclbs/clbs/pid");
  4350. var rslt = fInitSrchData(); // 화면을 초기화한다.
  4351. if (rslt == false) { // 수정사항 저장이 완료되지 않아 초기화할 수 없는 경우
  4352. model.setValue("/root/main/item1/clbs/pid", oldpid);
  4353. //model.refresh();
  4354. model.refreshpart("/root/main/item1/clbs/pid");
  4355. } else {
  4356. model.setValue("/root/main/item1/clbs/clamym", clamym);
  4357. model.setValue("/root/main/item1/clbs/clamdg", clamdg);
  4358. model.setValue("/root/main/item1/clbs/pid", newpid);
  4359. //model.refresh();
  4360. model.refreshpart("/root/main/item1/clbs/pid");
  4361. }
  4362. ]]>
  4363. </script>
  4364. </input>
  4365. <button id="btn_srchpid" class="icon_search" _auth="R" style="left:141px; top:50px; width:16px; height:16px; ">
  4366. <caption/>
  4367. <script type="javascript" ev:event="DOMActivate">
  4368. <![CDATA[
  4369. // pam/commonweb/xrw/SPPMC02500_환자조회.xrw
  4370. var ipt_pid = model.getValue("/root/main/item1/clbs/pid");
  4371. if (ipt_pid) {
  4372. // if (ipt_pid.length < 8) {
  4373. // ipt_pid = ipt_pid.getLeftPad(8, "0"); // (stringHelper.js) 저장된 숫자 값에 원하는 길이만큼 '0'을 붙여 표현
  4374. // }
  4375. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
  4376. model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
  4377. } else {
  4378. model.resetInstanceNode("/root/hidden/sppmc02500/cond");
  4379. }
  4380. modal("SPPMC02500", "1", "10", "10", "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", ""); // SPPMC02500_환자조회.xrw
  4381. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  4382. if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
  4383. var rslt = fInitSrchData(); // 화면을 초기화한다.
  4384. if (rslt == false) { // 수정사항 저장이 완료되지 않아 초기화할 수 없는 경우
  4385. } else {
  4386. model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
  4387. model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
  4388. model.setValue("/root/main/item1/clbs/pid", srch_pid);
  4389. //model.refresh();
  4390. model.refreshpart("/root/main/item1/clbs/pid");
  4391. }
  4392. }
  4393. ]]>
  4394. </script>
  4395. </button>
  4396. <input id="ipt_insuno" ref="/root/main/item1/clbs/insuno" class="input_default" navindex="10" inputtype="button" _auth="R" style="left:975px; top:26px; width:85px; height:19px; ">
  4397. <script type="javascript" ev:event="onkeypress">
  4398. <![CDATA[
  4399. if (event.keyCode == "13") {
  4400. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  4401. fGetInAftJudgTrgtManInsunm();
  4402. }
  4403. ]]>
  4404. </script>
  4405. <script type="javascript" ev:event="onbuttonclick">
  4406. <![CDATA[
  4407. var pid = model.getValue("/root/main/item1/clbs/pid");
  4408. if (pid) { // 조회된 심사대상자가 있으면
  4409. /*
  4410. // pam\pamcomnweb\xrw\SPPMC03700_자격조회
  4411. // 보험증번호 조회(보험자격조회)
  4412. var rrgstno = model.getValue("/root/main/item1/clbs/patrrgstno");
  4413. rrgstno = rrgstno.replace("-", "");
  4414. var patnm = model.getValue("/root/main/item1/clbs/patnm");
  4415. var orddd = model.getValue("/root/main/item1/clbs/indd");
  4416. var parm = rrgstno + "▦" + patnm + "▦" + orddd + "▦"; // 주민번호▦이름▦진료일자
  4417. setParameter("SPPMC03700_PARM", parm);
  4418. setParameter("SPPMC03700_RTN", "");
  4419. modal("SPPMC03700", "1", "10", "10", "SPPMC03700", "", "", "", ""); // SPPMC03700_자격조회.xrw
  4420. if (getParameter("SPPMC03700_RTN") == "Y") {
  4421. var ptin_insdnm = getParameter("SPPMC03700_insdnm"); // 세대주성명
  4422. var ptin_insucd = getParameter("SPPMC03700_insucd"); // 보장기관기호(사업장기호)
  4423. var ptin_insuno = getParameter("SPPMC03700_insuno"); // 시설기호(증번호)
  4424. if (ptin_insdnm == "") {
  4425. ptin_insdnm = "-";
  4426. }
  4427. if (ptin_insucd == "") {
  4428. ptin_insucd = "-";
  4429. }
  4430. if (ptin_insuno == "") {
  4431. ptin_insuno = "-";
  4432. }
  4433. model.setValue("/root/main/item1/clbs/insdnm", ptin_insdnm); //가입자
  4434. model.setValue("/root/main/item1/clbs/insuno", ptin_insucd); //조합기호
  4435. model.setValue("/root/main/item1/clbs/certno", ptin_insuno); //증번호
  4436. model.refreshpart("/root/main/item1/clbs/insdnm");
  4437. model.refreshpart("/root/main/item1/clbs/insuno");
  4438. model.refreshpart("/root/main/item1/clbs/certno");
  4439. // 조합기호에 해당하는 조합명칭을 조회한다.
  4440. model.makeValue("/root/send/item2/incd/insucd", model.getValue("/root/main/item1/clbs/insuno"));
  4441. model.makeValue("/root/send/item2/incd/ordfromdd", model.getValue("/root/main/item1/clbs/ordfromdd"));
  4442. submit("TRPID20302");
  4443. var insucdnm = model.getValue("/root/main/item2/incd/insucdnm");
  4444. model.setValue("/root/main/item1/clbs/insunm", insucdnm);
  4445. model.refreshpart("/root/main/item1/clbs/insunm");
  4446. }
  4447. */
  4448. var ordtype = model.getValue("/root/main/item1/clbs/stsioflag");
  4449. if (ordtype == "-") {
  4450. ordtype = "O";
  4451. }
  4452. var parm = model.getValue("/root/main/item1/clbs/patrrgstno").substr(0,6) +
  4453. model.getValue("/root/main/item1/clbs/patrrgstno").substr(6,7) + "▦" + //주민번호
  4454. model.getValue("/root/main/item1/clbs/patnm") + "▦" + //이름
  4455. model.getValue("/root/main/item1/clbs/indd") + "▦" + //입원일
  4456. model.getValue("/root/main/item1/clbs/cretno") + "▦" + //생성번호
  4457. ordtype + "▦" + //진료형태
  4458. model.getValue("/root/main/item1/clbs/dschdd") + "▦" + //퇴원일자
  4459. "" + "▦" + //본인일부부담금
  4460. "" + "▦" + //기관부담금
  4461. model.getValue("/root/main/item1/clbs/pid") + "▦" + //등록번호
  4462. model.getValue("/root/main/item1/clbs/orddeptcd") + "▦" ; //진료과
  4463. setParameter("SPPMC03900_PARM",parm);
  4464. modal("SPPMC03900", "1","50", "50", "SPPMC03900", "", "");
  4465. if (getParameter("SPPMC03900_RTN") == "Y") {
  4466. var ptin_insdnm = getParameter("SPPMC03900_insdnm"); // 세대주성명
  4467. var ptin_insucd = getParameter("SPPMC03900_insucd"); // 보장기관기호(사업장기호)
  4468. var ptin_insuno = getParameter("SPPMC03900_insuno"); // 시설기호(증번호)
  4469. if (ptin_insdnm == "") {
  4470. ptin_insdnm = "-";
  4471. }
  4472. if (ptin_insucd == "") {
  4473. ptin_insucd = "-";
  4474. }
  4475. if (ptin_insuno == "") {
  4476. ptin_insuno = "-";
  4477. }
  4478. model.setValue("/root/main/item1/clbs/insdnm", ptin_insdnm); //가입자
  4479. model.setValue("/root/main/item1/clbs/insuno", ptin_insucd); //조합기호
  4480. model.setValue("/root/main/item1/clbs/certno", ptin_insuno); //증번호
  4481. model.refreshpart("/root/main/item1/clbs/insdnm");
  4482. model.refreshpart("/root/main/item1/clbs/insuno");
  4483. model.refreshpart("/root/main/item1/clbs/certno");
  4484. // 조합기호에 해당하는 조합명칭을 조회한다.
  4485. model.makeValue("/root/send/item2/incd/insucd", model.getValue("/root/main/item1/clbs/insuno"));
  4486. model.makeValue("/root/send/item2/incd/ordfromdd", model.getValue("/root/main/item1/clbs/ordfromdd"));
  4487. submit("TRPID20302");
  4488. var insucdnm = model.getValue("/root/main/item2/incd/insucdnm");
  4489. model.setValue("/root/main/item1/clbs/insunm", insucdnm);
  4490. model.refreshpart("/root/main/item1/clbs/insunm");
  4491. }
  4492. }
  4493. ]]>
  4494. </script>
  4495. </input>
  4496. <output id="ipt_clamdg" ref="/root/main/item1/clbs/clamdg" class="output_fix" format="####" style="left:129px; top:26px; width:30px; height:19px; text-align:center; ">
  4497. <hint>
  4498. <![CDATA[차수]]>
  4499. </hint>
  4500. </output>
  4501. <caption id="caption29" class="cell_1" style="left:0px; top:73px; width:55px; height:23px; ">접수번호</caption>
  4502. <caption id="cap_insdnm" class="cell_1" style="left:788px; top:49px; width:61px; height:23px; ">가입자</caption>
  4503. <input id="ipt_patrrgstno" ref="/root/main/item1/clbs/patrrgstno" class="input_default" navindex="4" imemode="disabled" format="999999-9999999" style="left:350px; top:26px; width:92px; height:19px; ">
  4504. <script type="javascript" ev:event="xforms-value-changed">
  4505. <![CDATA[
  4506. // var clamkey = model.getValue("/root/main/item1/clbs/clamkey");
  4507. // if (clamkey) { // 조회된 심사대상자가 있으면
  4508. // model.setValue("/root/main/item1/clbs/patage", getFullAge(getBirthDate(model.getValue("/root/main/item1/clbs/patrrgstno")))); // (utilHelper.js) 현재일자를 기준으로 나이계산
  4509. // model.setValue("/root/main/item1/clbs/gender", getGender(model.getValue("/root/main/item1/clbs/patrrgstno"))); // (utilHelper.js) 성별을 Return
  4510. // model.refresh();
  4511. // }
  4512. ]]>
  4513. </script>
  4514. </input>
  4515. <output id="opt_gender" ref="/root/main/item1/clbs/gender" class="output_fix" style="left:267px; top:50px; width:18px; height:19px; ">
  4516. <hint>
  4517. <![CDATA[성별]]>
  4518. </hint>
  4519. </output>
  4520. <select1 id="cmb_supprate" ref="/root/hidden/item1/clbs/patsupprate" class="combo_default" disabled="false" appearance="minimal" style="left:370px; top:74px; width:85px; height:19px; ">
  4521. <choices>
  4522. <itemset nodeset="/root/main/item3/supp">
  4523. <label ref="suppratenm"/>
  4524. <value ref="supprateid"/>
  4525. </itemset>
  4526. </choices>
  4527. <script type="javascript" ev:event="xforms-value-changed">
  4528. <![CDATA[
  4529. // 보조유형 및 요율 combo의 선택 값이 변경된 경우 각각을 해당 output에 설정한다.
  4530. fSetPatSuppRate();
  4531. ]]>
  4532. </script>
  4533. </select1>
  4534. <output id="opt_suppkind" ref="/root/main/item1/clbs/suppkindcd" class="output_fix" style="left:350px; top:74px; width:17px; height:19px; "/>
  4535. <output id="opt_msgspclformat" ref="/root/hidden/list3/msgspclformat" class="output_fix" style="left:95px; top:297px; width:1099px; height:19px; "/>
  4536. <caption id="cap_message" class="tit_2" style="left:5px; top:301px; width:87px; height:13px; ">Message :</caption>
  4537. <group id="grp_cldihist" style="left:0px; top:126px; width:482px; height:170px; ">
  4538. <button id="btn_babymom" class="btn2_letter6" _auth="R" style="left:193px; top:0px; width:86px; height:19px; ">
  4539. <caption>분만간호기록</caption>
  4540. <script type="javascript" ev:event="DOMActivate">
  4541. <![CDATA[
  4542. // ../../../emr/partrtnnbabyweb/xrw/SMMNN00700
  4543. var clamkey = model.getValue("/root/main/item1/clbs/clamkey");
  4544. if (clamkey) { // 조회된 심사대상자가 있으면
  4545. model.resetInstanceNode("/root/hidden/smmnn00700/cond");
  4546. model.setValue("/root/hidden/smmnn00700/cond/pid", model.getValue("/root/main/item1/clbs/pid"));
  4547. model.setValue("/root/hidden/smmnn00700/cond/indd", model.getValue("/root/main/item1/clbs/indd"));
  4548. model.setValue("/root/hidden/smmnn00700/cond/hngnm", model.getValue("/root/main/item1/clbs/patnm"));
  4549. model.setValue("/root/hidden/smmnn00700/cond/cretno", model.getValue("/root/main/item1/clbs/cretno"));
  4550. model.setValue("/root/hidden/smmnn00700/cond/wardcd", model.getValue("/root/main/item1/clbs/wardcd"));
  4551. model.setValue("/root/hidden/smmnn00700/cond/roomcd", model.getValue("/root/main/item1/clbs/roomcd"));
  4552. model.setValue("/root/hidden/smmnn00700/cond/indschacptstat", model.getValue("/root/main/item1/clbs/indschacptstat"));
  4553. var reqnode = instance1.selectNodes("/root/hidden/smmnn00700/cond");
  4554. var csv = getNodeListCSV(reqnode);
  4555. setGlobalVariable("paminfo", csv);
  4556. modal("SMMNN00700", "1", "10", "10", "SMMNN00700", "", "", "", ""); // SPPIZ01200_분만신생아정보관리.xrw
  4557. //modal("SMMNN00700", "1", "10", "10", "SMMNN00700", "/root/hidden/smmnn00700/cond", "/root/init/paminfo/list", "", ""); // SPPIZ01200_분만신생아정보관리.xrw
  4558. }
  4559. ]]>
  4560. </script>
  4561. </button>
  4562. <button id="btn_diagHist" class="btn2_letter4" _auth="X" style="left:349px; top:0px; width:64px; height:19px; ">
  4563. <caption>상병이력</caption>
  4564. <script type="javascript" ev:event="DOMActivate">
  4565. <![CDATA[
  4566. fGetDiagHistList(); // 특정 환자에 대한 상병이력을 조회한다.
  4567. ]]>
  4568. </script>
  4569. </button>
  4570. <button id="btn_diagSrch" class="btn2_letter4" _auth="X" style="left:416px; top:0px; width:64px; height:19px; ">
  4571. <caption>상병조회</caption>
  4572. <script type="javascript" ev:event="DOMActivate">
  4573. <![CDATA[
  4574. fSearchSPPIZ00400();
  4575. var clamkey = model.getValue("/root/main/item1/clbs/clamkey");
  4576. if (clamkey) { // 조회된 심사대상자가 있음
  4577. fSortDiagNo(true);
  4578. }
  4579. ]]>
  4580. </script>
  4581. </button>
  4582. <caption id="cap_diag" class="tit_2" style="left:5px; top:5px; width:43px; height:13px; ">
  4583. <![CDATA[상병]]>
  4584. <script type="javascript" ev:event="onclick">
  4585. <![CDATA[
  4586. if (grd_cldihist.attribute("height") == "142") { // 기존 크기를 세로로 확대시킨다.
  4587. grp_cldihist.attribute("height") = "555";
  4588. grd_cldihist.attribute("height") = "530";
  4589. cap_message.attribute("left") = "485";
  4590. opt_msgspclformat.attribute("left") = parseInt(cap_message.attribute("left")) + 90;
  4591. opt_msgspclformat.attribute("width") = 1099 - parseInt(cap_message.attribute("left")) + 5; // "469";
  4592. } else {
  4593. grp_cldihist.attribute("height") = "170";
  4594. grd_cldihist.attribute("height") = "142";
  4595. cap_message.attribute("left") = "5";
  4596. opt_msgspclformat.attribute("left") = parseInt(cap_message.attribute("left")) + 90;
  4597. opt_msgspclformat.attribute("width") = 1099 - parseInt(cap_message.attribute("left")) + 5; //"1099";
  4598. }
  4599. ]]>
  4600. </script>
  4601. </caption>
  4602. <line id="line3" class="line_1" style="width:480px; x1:0px; y1:20px; x2:480px; y2:20px; "/>
  4603. <datagrid id="grd_cldihist" nodeset="/root/main/list1/cldi" caption="X^R/O^no^상병코드^상병명^청구과^MT002^치식EDI^치식^진료일자^특정기호^상해외인^면허종류^면허번호^diagengnm^seqno^workflag" colsep="^" colwidth="14, 30, 20, 56, 169, 67, 49, 30, 53, 85, 74, 68, 55, 65, 40, 60, 100" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:25px; width:480px; height:142px; ">
  4604. <col ref="rowstat"/>
  4605. <col checkvalue="R,C" ref="diagkindcd" type="checkbox"/>
  4606. <col imemode="disabled" ref="diagseq" type="input" format="##"/>
  4607. <col imemode="disabled" ref="diagcd" type="input" _chartype="upper"/>
  4608. <col ref="diagnm"/>
  4609. <col disabled="true" ref="clamdeptcd" type="combo">
  4610. <choices>
  4611. <itemset nodeset="/root/init/P0322list/P0322">
  4612. <label ref="cdnm"/>
  4613. <value ref="cdid"/>
  4614. </itemset>
  4615. </choices>
  4616. </col>
  4617. <col ref="vcode" style="text-align:center; "/>
  4618. <col ref="toot" visibility="hidden"/>
  4619. <col ref="toot1"/>
  4620. <col ref="ordfromdd" type="inputdate" format="yyyy/mm/dd"/>
  4621. <col ref="estmspclcd" visibility="hidden"/>
  4622. <col ref="wundresncd" visibility="hidden"/>
  4623. <col ref="licnsflag" type="input"/>
  4624. <col ref="licnsno" type="input"/>
  4625. <col ref="diagengnm" visibility="hidden"/>
  4626. <col ref="seqno" visibility="hidden"/>
  4627. <col ref="workflag" visibility="hidden"/>
  4628. <script type="javascript" ev:event="onkeypress">
  4629. <![CDATA[
  4630. if (event.keyCode == "13") {
  4631. var col = grd_cldihist.col;
  4632. if (col == grd_cldihist.colRef("ordfromdd")) { // 진료개시일이 변경된 경우
  4633. var row = grd_cldihist.row;
  4634. var ordfromdd = model.getValue("/root/main/list1/cldi["+ row +"]/ordfromdd");
  4635. if (!isValidDateTime(ordfromdd)) { // (dateHelper.js) 유효한 날짜, 시간 인지 점검
  4636. model.setValue("/root/main/list1/cldi["+ row +"]/ordfromdd", model.getValue("/root/hidden/list1/cldi/oldordfromdd"));
  4637. grd_cldihist.rowstatus(row) = model.getValue("/root/hidden/list1/cldi/oldrowstat");
  4638. //model.refresh();
  4639. grd_clidhist.refresh();
  4640. }
  4641. }
  4642. else if (col == grd_cldihist.colRef("diagcd")) { // '상병코드'
  4643. if (model.getValue("/root/main/list1/cldi["+ grd_cldihist.row +"]/diagcd") != model.getValue("/root/hidden/list1/cldi/olddiagcd")) {
  4644. model.resetInstanceNode("/root/main/list1/cldi["+ grd_cldihist.row +"]/diagnm");
  4645. model.resetInstanceNode("/root/main/list1/cldi["+ grd_cldihist.row +"]/diagengnm");
  4646. fSearchDiageCode();
  4647. }
  4648. }
  4649. }
  4650. ]]>
  4651. </script>
  4652. <script type="javascript" ev:event="onentercell">
  4653. <![CDATA[
  4654. // col@type = "input" 일 경우 onentercell시점에 EditMode 상태 만들기
  4655. if (grd_cldihist.colType(grd_cldihist.col) == "input") {
  4656. grd_cldihist.editCell();
  4657. }
  4658. ]]>
  4659. </script>
  4660. <script type="javascript" ev:event="onstartedit">
  4661. <![CDATA[
  4662. var row = grd_cldihist.row;
  4663. model.setValue("/root/hidden/list1/cldi/oldseq", model.getValue("/root/main/list1/cldi["+ row +"]/diagseq"));
  4664. model.setValue("/root/hidden/list1/cldi/olddiagcd", model.getValue("/root/main/list1/cldi["+ row +"]/diagcd"));
  4665. model.setValue("/root/hidden/list1/cldi/olddiagnm", model.getValue("/root/main/list1/cldi["+ row +"]/diagnm"));
  4666. model.setValue("/root/hidden/list1/cldi/oldengnm", model.getValue("/root/main/list1/cldi["+ row +"]/diagengnm"));
  4667. model.setValue("/root/hidden/list1/cldi/oldrowstat", grd_cldihist.rowstatus(row));
  4668. model.setValue("/root/hidden/list1/cldi/oldordfromdd", model.getValue("/root/main/list1/cldi["+ row +"]/ordfromdd"));
  4669. ]]>
  4670. </script>
  4671. <script type="javascript" ev:event="onendedit">
  4672. <![CDATA[
  4673. // event="xforms-value-changed" 사용시에는 오류 발생한다.
  4674. // 숫자 입력 후 마우스 커서 위치를 바꾸거나 Enter 입력 시에 호출된다.
  4675. var col = grd_cldihist.col;
  4676. if (col == grd_cldihist.colRef("diagseq")) { // no (상병순서)
  4677. if (model.getValue("/root/main/list1/cldi["+ grd_cldihist.row +"]/diagseq") != model.getValue("/root/hidden/list1/cldi/oldseq")) {
  4678. // 사용자가 입력한 숫자를 기준으로 상병순서 부여
  4679. fChangeDiagNo();
  4680. }
  4681. }
  4682. /*
  4683. else if (col == grd_cldihist.colRef("diagcd")) { // '상병코드'
  4684. if (model.getValue("/root/main/list1/cldi["+ grd_cldihist.row +"]/diagcd") != model.getValue("/root/hidden/list1/cldi/olddiagcd")) {
  4685. model.resetInstanceNode("/root/main/list1/cldi["+ grd_cldihist.row +"]/diagnm");
  4686. model.resetInstanceNode("/root/main/list1/cldi["+ grd_cldihist.row +"]/diagengnm");
  4687. fSearchDiageCode();
  4688. }
  4689. }
  4690. */
  4691. ]]>
  4692. </script>
  4693. <script type="javascript" ev:event="onmousedown">
  4694. <![CDATA[
  4695. if (event.button == 3) { // 3 : 오른쪽 버튼
  4696. if (grd_cldihist.isCell(event.target) && grd_cldihist.mouseRow >= grd_cldihist.fixedrows) {
  4697. var rowstatus = grd_cldihist.rowstatus(grd_cldihist.mouseRow);
  4698. if (rowstatus == 4) { // 4 : delete
  4699. setPopupMenu("grd_cldihist", false, "/root/hidden/popupmenu/gridcldi/delitem", "name", "func"); // (tfHelper.js) 컨트롤에서 사용자 팝업 설정 함수
  4700. } else {
  4701. setPopupMenu("grd_cldihist", false, "/root/hidden/popupmenu/gridcldi/item", "name", "func"); // (tfHelper.js) 컨트롤에서 사용자 팝업 설정 함수
  4702. }
  4703. }
  4704. else {
  4705. // 상병이 한줄도 없는 경우에도 "행 추가"를 하기 위해 사용함
  4706. //window.showPopupMenu(true);
  4707. //window.setPopupMenu(true, "/root/hidden/popupmenu/gridcldi/inititem", "name", "func", false);
  4708. }
  4709. } else {
  4710. // if (grd_cldihist.isCell(event.target) && grd_cldihist.mouseRow >= grd_cldihist.fixedrows) {
  4711. // // 해당 상병의 한글상병명과 영문상병명이 Message 용 output 컨트롤에 표시된다.
  4712. // var diagcd = model.getValue("/root/main/list1/cldi["+ grd_cldihist.mouseRow +"]/diagcd");
  4713. // var diagnm = model.getValue("/root/main/list1/cldi["+ grd_cldihist.mouseRow +"]/diagnm");
  4714. // var diagengnm = model.getValue("/root/main/list1/cldi["+ grd_cldihist.mouseRow +"]/diagengnm");
  4715. // model.setValue("/root/hidden/list3/msgspclformat", "상병코드 - "+ diagcd +" / "+ diagnm +" / "+ diagengnm);
  4716. // model.refresh();
  4717. // }
  4718. }
  4719. ]]>
  4720. </script>
  4721. <script type="javascript" ev:event="DOMFocusOut">
  4722. <![CDATA[
  4723. initPopupMenu(); // (tfHelper.js) 사용자 팝업 설정 초기화
  4724. ]]>
  4725. </script>
  4726. <script type="javascript" ev:event="ondblclick">
  4727. <![CDATA[
  4728. var row = grd_cldihist.mouseRow;
  4729. if (grd_cldihist.isCell(event.target) && row >= grd_cldihist.fixedrows) {
  4730. var col = grd_cldihist.mouseCol;
  4731. if (col == grd_cldihist.colRef("diagnm")) { // '상병명'
  4732. // 상병코드 조회를 위해 SPPIZ00400_상병코드조회.xrw 를 호출한다.
  4733. fSearchSPPIZ00400();
  4734. fSortDiagNo(true);
  4735. }
  4736. else if (col == grd_cldihist.colRef("toot1")) { // 상병 - 치식여부 (Y/N)
  4737. fDiagOrderToothInput("Diag");
  4738. }
  4739. }
  4740. ]]>
  4741. </script>
  4742. <!-- <script type="javascript" ev:event="onclick">
  4743. <![CDATA[
  4744. if (grd_cldihist.colType(grd_cldihist.col) == "input") {
  4745. grd_cldihist.editCell();
  4746. }
  4747. ]]>
  4748. </script>-->
  4749. <!--
  4750. <script type="javascript" ev:event="onmouseup">
  4751. <![CDATA[
  4752. if (grd_cldihist.isCell(event.target) && grd_cldihist.mouseRow >= grd_cldihist.fixedrows) {
  4753. // 해당 상병의 한글상병명과 영문상병명이 Message 용 output 컨트롤에 표시된다.
  4754. var diagcd = model.getValue("/root/main/list1/cldi["+ grd_cldihist.mouseRow +"]/diagcd");
  4755. var diagnm = model.getValue("/root/main/list1/cldi["+ grd_cldihist.mouseRow +"]/diagnm");
  4756. var diagengnm = model.getValue("/root/main/list1/cldi["+ grd_cldihist.mouseRow +"]/diagengnm");
  4757. model.setValue("/root/hidden/list3/msgspclformat", "상병코드 - "+ diagcd +" / "+ diagnm +" / "+ diagengnm);
  4758. model.refresh();
  4759. }
  4760. ]]>
  4761. </script>
  4762. -->
  4763. <script type="javascript" ev:event="oncopy">
  4764. <![CDATA[
  4765. // 그리드 내용 복사
  4766. if (grd_cldihist.selectedRows == 1) { // 한줄
  4767. var row = grd_cldihist.row;
  4768. var col = grd_cldihist.col;
  4769. if (col == grd_cldihist.colRef("diagcd") || col == grd_cldihist.colRef("diagnm")) {
  4770. // 상병코드/상병명
  4771. // var clip = grd_cldihist.valueMatrix(row, col);
  4772. var clip = grd_cldihist.labelMatrix(row, col);
  4773. // var clip = grd_cldihist.labelMatrix(grd_cldihist.mouseRow, grd_cldihist.mouseCol);
  4774. window.clipBoardData = clip;
  4775. } else {
  4776. grid_oncopy(); // (tfHelper.js) window.clipBoardData 복사 기능
  4777. }
  4778. }
  4779. else if (grd_cldihist.selectedRows > 1) { // 여러줄
  4780. grid_oncopy(); // (tfHelper.js) window.clipBoardData 복사 기능
  4781. }
  4782. ]]>
  4783. </script>
  4784. <script type="javascript" ev:event="onclick">
  4785. <![CDATA[
  4786. if (grd_cldihist.isCell(event.target) && grd_cldihist.mouseRow >= grd_cldihist.fixedrows) {
  4787. var row = grd_cldihist.mouseRow;
  4788. // 해당 상병의 한글상병명과 영문상병명이 Message 용 output 컨트롤에 표시된다.
  4789. var diagcd = model.getValue("/root/main/list1/cldi["+ row +"]/diagcd");
  4790. var diagnm = model.getValue("/root/main/list1/cldi["+ row +"]/diagnm");
  4791. var diagengnm = model.getValue("/root/main/list1/cldi["+ row +"]/diagengnm");
  4792. model.setValue("/root/hidden/list3/msgspclformat", "상병코드 - "+ diagcd +" / "+ diagnm +" / "+ diagengnm);
  4793. opt_msgspclformat.refresh();
  4794. }
  4795. ]]>
  4796. </script>
  4797. <!--
  4798. <script type="javascript" ev:event="onmouseover">
  4799. <![CDATA[
  4800. if (grd_cldihist.isCell(event.target) && grd_cldihist.mouseRow >= grd_cldihist.fixedrows) {
  4801. var row = grd_cldihist.mouseRow;
  4802. if (model.getValue("/root/main/item1/clbs/ordfildcd") == "6") { // 진료분야 (6: 치과)
  4803. grd_cldihist.cellComboNodeset(row, grd_cldihist.colRef("clamdeptcd")) = "/root/init/P0322list/P0322[minval = 'D']";
  4804. } else {
  4805. grd_cldihist.cellComboNodeset(row, grd_cldihist.colRef("clamdeptcd")) = "/root/init/P0322list/P0322[minval != 'D']";
  4806. }
  4807. model.refresh();
  4808. }
  4809. ]]>
  4810. </script>
  4811. -->
  4812. </datagrid>
  4813. <button id="btn_opyn" class="btn2_letter4" _auth="R" style="left:282px; top:0px; width:64px; height:19px; ">
  4814. <caption>수술</caption>
  4815. <script type="javascript" ev:event="DOMActivate">
  4816. <![CDATA[
  4817. var clamkey = model.getValue("/root/main/item1/clbs/clamkey");
  4818. if (clamkey) { // 조회된 심사대상자가 있으면
  4819. var judgOpenWindow = getChildWindow("SPPIZ01300"); // SPPIZ01300_수술정보조회
  4820. if (judgOpenWindow == null) {
  4821. model.resetInstanceNode("/root/hidden/sppiz01300/cond");
  4822. model.setValue("/root/hidden/sppiz01300/cond/pid", model.getValue("/root/main/item1/clbs/pid"));
  4823. model.setValue("/root/hidden/sppiz01300/cond/indd", model.getValue("/root/main/item1/clbs/indd"));
  4824. model.setValue("/root/hidden/sppiz01300/cond/cretno", model.getValue("/root/main/item1/clbs/cretno"));
  4825. // alert("opyn = "+ model.getValue("/root/main/item1/clbs/opyn"));
  4826. open("SPPIZ01300", "2", "10", "10", "SPPIZ01300","/root/hidden/sppiz01300/cond", "/root/send/data1", "", ""); // SPPIZ01300_수술정보조회.xrw
  4827. } else {
  4828. judgOpenWindow.javascript.fSrchInfo();
  4829. activateChild("SPPIZ01300");
  4830. // model.refresh();
  4831. }
  4832. }
  4833. ]]>
  4834. </script>
  4835. </button>
  4836. <caption id="pm_flag" visibility="hidden" style="left:53px; top:3px; width:25px; height:15px; font-size:10pt; font-weight:bold; color:#993366; ">PM</caption>
  4837. </group>
  4838. <caption id="caption8" class="cell_1" style="left:1063px; top:25px; width:55px; height:23px; ">청구구분</caption>
  4839. <select1 id="cmb_clamflagcd" ref="/root/main/item1/clbs/clamflagcd" class="combo_default" disabled="true" appearance="minimal" style="left:1121px; top:26px; width:73px; height:19px; ">
  4840. <choices>
  4841. <itemset nodeset="/root/init/P0155list/P0155">
  4842. <label ref="cdnm"/>
  4843. <value ref="cdid"/>
  4844. </itemset>
  4845. </choices>
  4846. </select1>
  4847. <caption id="caption9" class="cell_1" style="left:1063px; top:49px; width:55px; height:23px; ">청구번호</caption>
  4848. <output id="opt_clamno" ref="/root/main/item1/clbs/clamno" class="output_fix" style="left:1121px; top:50px; width:73px; height:19px; "/>
  4849. <select1 id="cmb_judgendstat" ref="/root/main/item1/clbs/judgendyn" class="combo_default" disabled="true" visibility="hidden" appearance="minimal" style="left:1121px; top:74px; width:73px; height:19px; ">
  4850. <choices>
  4851. <itemset nodeset="/root/init/P0151list/P0151">
  4852. <label ref="cdnm"/>
  4853. <value ref="cdid"/>
  4854. </itemset>
  4855. </choices>
  4856. </select1>
  4857. <group id="grp_aftamt" style="left:0px; top:744px; width:1194px; height:27px; ">
  4858. <line id="line11" class="line_3" style="x1:0px; y1:2px; x2:1191px; y2:2px; "/>
  4859. <caption id="caption12" style="left:0px; top:3px; width:26px; height:23px; text-align:center; background-color:#ffe79d; ">인수</caption>
  4860. <output id="opt_acptamt" ref="/root/main/item1/clbs/acptamt" class="output_fix" format="#,###" appearance="output" style="left:25px; top:5px; width:60px; height:19px; text-align:right; "/>
  4861. <caption id="caption13" style="left:85px; top:3px; width:26px; height:23px; text-align:center; background-color:#ffe79d; ">사전</caption>
  4862. <output id="opt_clamamt" ref="/root/main/item1/clbs/bfclamamt" class="output_fix" format="#,###" appearance="output" style="left:111px; top:5px; width:60px; height:19px; text-align:right; "/>
  4863. <caption id="caption14" style="left:452px; top:3px; width:38px; height:23px; font-size:10; text-align:center; background-color:#f7a08b; ">심사수정차액</caption>
  4864. <output id="opt_judgdifamt" ref="/root/main/item1/clbs/judgdifamt" class="output_fix" format="(-)#,###" appearance="output" style="left:490px; top:5px; width:60px; height:19px; text-align:right; "/>
  4865. <caption id="caption17" class="cell_1" style="left:550px; top:3px; width:31px; height:23px; ">본인</caption>
  4866. <output id="opt_ownbamt" ref="/root/main/item1/clbs/ownbamt" class="output_fix" format="#,###" appearance="output" style="left:581px; top:5px; width:60px; height:19px; text-align:right; "/>
  4867. <caption id="caption19" class="cell_1" style="left:641px; top:3px; width:31px; height:23px; ">청구</caption>
  4868. <output id="opt_insuclamamt" ref="/root/main/item1/clbs/insuclamamt" class="output_fix" format="#,###" appearance="output" style="left:671px; top:5px; width:63px; height:19px; text-align:right; "/>
  4869. <caption id="caption21" class="cell_1" style="left:734px; top:3px; width:31px; height:23px; ">상한</caption>
  4870. <output id="opt_ownbmaxexamt" ref="/root/main/item1/clbs/ownbmaxexamt" class="output_fix" format="#,###" appearance="output" style="left:765px; top:5px; width:60px; height:19px; text-align:right; "/>
  4871. <caption id="caption23" class="cell_1" style="left:916px; top:3px; width:31px; height:23px; ">장애</caption>
  4872. <output id="opt_handcaprfund" ref="/root/main/item1/clbs/handcaprfund" class="output_fix" format="#,###" appearance="output" style="left:947px; top:5px; width:60px; height:19px; text-align:right; "/>
  4873. <caption id="caption27" class="cell_1" style="left:1103px; top:3px; width:31px; height:23px; ">대불</caption>
  4874. <output id="opt_subtamt" ref="/root/main/item1/clbs/subtamt" class="output_fix" format="#,###" appearance="output" style="left:1134px; top:5px; width:59px; height:19px; text-align:right; "/>
  4875. <line id="line12" class="line_3" style="x1:0px; y1:26px; x2:1191px; y2:26px; "/>
  4876. <output id="opt_suppamt" ref="/root/main/item1/clbs/suppamt" class="output_fix" format="#,###" appearance="output" style="left:856px; top:5px; width:60px; height:19px; text-align:right; "/>
  4877. <caption id="caption2" class="cell_1" style="left:825px; top:3px; width:31px; height:23px; ">지원</caption>
  4878. <output id="output1" ref="/root/main/item1/clbs/clamamt" class="output_fix" format="#,###" appearance="output" style="left:197px; top:5px; width:60px; height:19px; text-align:right; "/>
  4879. <caption id="caption24" style="left:171px; top:3px; width:26px; height:23px; text-align:center; background-color:#ffe79d; ">사후</caption>
  4880. <caption id="caption31" style="left:257px; top:3px; width:38px; height:23px; font-size:10; text-align:center; background-color:#ffcc99; ">인수차액총액</caption>
  4881. <output id="output2" ref="/root/main/item1/clbs/bfclamdifamt" class="output_fix" format="(-)#,###" appearance="output" style="left:294px; top:5px; width:60px; height:19px; text-align:right; "/>
  4882. <caption id="caption15" style="left:354px; top:3px; width:38px; height:23px; font-size:10; text-align:center; background-color:#ffcc99; ">인수차액본인부담</caption>
  4883. <output id="output3" ref="/root/main/item1/clbs/bfowndifamt" class="output_fix" format="(-)#,###" appearance="output" style="left:392px; top:5px; width:60px; height:19px; text-align:right; "/>
  4884. <caption id="caption18" class="cell_1" style="left:1007px; top:3px; width:43px; height:23px; font-size:10; ">약제상한차액총액</caption>
  4885. <output id="output4" ref="/root/main/item1/clbs/totlimitdiffamt" class="output_fix" format="#,###" appearance="output" style="left:1050px; top:5px; width:53px; height:19px; text-align:right; "/>
  4886. </group>
  4887. <caption id="caption28" class="cell_1" style="left:484px; top:73px; width:67px; height:23px; ">진료종료일</caption>
  4888. <caption id="caption33" class="cell_1" style="left:484px; top:49px; width:67px; height:23px; ">진료개시일</caption>
  4889. <caption id="caption34" class="cell_1" style="left:621px; top:73px; width:61px; height:23px; ">재원/요양</caption>
  4890. <input id="ipt_chosindayno" ref="/root/main/item1/clbs/chosindayno" class="input_default" navindex="5" imemode="disabled" format="####" _auth="R" style="left:683px; top:74px; width:51px; height:19px; text-align:right; ">
  4891. <hint>
  4892. <![CDATA[재원일수]]>
  4893. </hint>
  4894. </input>
  4895. <input id="ipt_medcaredayno" ref="/root/main/item1/clbs/medcaredayno" class="input_default" navindex="6" imemode="disabled" format="####" _auth="R" style="left:735px; top:74px; width:51px; height:19px; text-align:right; ">
  4896. <hint>
  4897. <![CDATA[요양일수]]>
  4898. </hint>
  4899. </input>
  4900. <button id="btn_trgtsrch" class="btn2_letter5" _auth="R" style="left:1117px; top:392px; width:75px; height:19px; ">
  4901. <caption>대상자조회</caption>
  4902. <script type="javascript" ev:event="DOMActivate">
  4903. <![CDATA[
  4904. // pid를 입력하고 (엔터 입력없이) 바로 "대상조회" 버튼을 누르면 새로 입력된 pid가 인스턴스에 적용되기 전이라 조회가 되지 않는다.
  4905. fGetInAftJudgTrgtManPidSrch();
  4906. ]]>
  4907. </script>
  4908. </button>
  4909. <button id="btn_pretrgtman" class="icon_left" _auth="R" style="left:1124px; top:414px; width:26px; height:19px; ">
  4910. <caption/>
  4911. <script type="javascript" ev:event="DOMActivate">
  4912. <![CDATA[
  4913. var trgtManWindow = getChildWindow("SMPID20200"); // SMPID20200_입원사후심사대상자조회.xrw
  4914. if (trgtManWindow != null) {
  4915. // var selectedRow = trgtManWindow.grd_clbsmast.row;
  4916. var selectedRow = trgtManWindow.grd_clbsmast.selectedRow(0); // row 선택 후 타이틀 부분 조정시 row = 0으로 바뀌므로 selectedRow로 체크함
  4917. // var selectedRow = model.getValue("/root/hidden/smpid20200/rslt/selectedRow");
  4918. // alert("selectedRow = " + selectedRow);
  4919. if (selectedRow && selectedRow != -1) {
  4920. if (selectedRow > 1) {
  4921. if (btn_save.disabled == false || btn_unjudg.disabled == false) {
  4922. // "심사중" 상태를 해제한다.
  4923. // "심사저장" 상태로 대상자 화면 갱신
  4924. var judgendyn = model.getValue("/root/main/item1/clbs/judgendyn");
  4925. fSetJudgSaveState(judgendyn);
  4926. }
  4927. selectedRow = parseInt(selectedRow) - 1;
  4928. model.setValue("/root/hidden/smpid20200/rslt/selectedRow", selectedRow);
  4929. var trgtmanclamkey = trgtManWindow.model.getValue("/root/main/list1/clbs["+ selectedRow +"]/clamkey");
  4930. var trgtmanclamym = trgtManWindow.model.getValue("/root/main/list1/clbs["+ selectedRow +"]/clamym");
  4931. var trgtmanclamdg = trgtManWindow.model.getValue("/root/main/list1/clbs["+ selectedRow +"]/clamdg");
  4932. var trgtmanpid = trgtManWindow.model.getValue("/root/main/list1/clbs["+ selectedRow +"]/pid");
  4933. var trgtmanpidsn = trgtManWindow.model.getValue("/root/main/list1/clbs["+ selectedRow +"]/pidsn");
  4934. var trgtmanworkflag = trgtManWindow.model.getValue("/root/main/list1/clbs["+ selectedRow +"]/workflag");
  4935. if (trgtmanclamkey) {
  4936. model.setValue("/root/hidden/smpid20200/rslt/clamkey", trgtmanclamkey);
  4937. model.setValue("/root/hidden/smpid20200/rslt/clamym", trgtmanclamym);
  4938. model.setValue("/root/hidden/smpid20200/rslt/clamdg", trgtmanclamdg);
  4939. model.setValue("/root/hidden/smpid20200/rslt/pid", trgtmanpid);
  4940. model.setValue("/root/hidden/smpid20200/rslt/pidsn", trgtmanpidsn);
  4941. model.setValue("/root/hidden/smpid20200/rslt/workflag", trgtmanworkflag);
  4942. model.setValue("/root/hidden/smpid20200/rslt/popupcallyn", "Y");
  4943. trgtManWindow.grd_clbsmast.row = selectedRow;
  4944. trgtManWindow.model.refresh();
  4945. fGetInAftJudgMngt();
  4946. trgtManWindow.javascript.setPopupRefresh(trgtmanpid);
  4947. }
  4948. return;
  4949. } else { // 첫번째 줄인 경우 이전 대상자가 없다.
  4950. messageBox("조회된 첫번째 심사대상자 입니다. 이전 심사 대상자가", "I004"); ///조회된 첫번째 심사대상자 입니다. 이전 심사 대상자가 없습니다.
  4951. return;
  4952. }
  4953. }
  4954. /*
  4955. var row = trgtManWindow.grd_clbsmast.row;
  4956. if (row > 0) {
  4957. var trgtmanclamkey = trgtManWindow.model.getValue("/root/main/list1/clbs["+ row +"]/clamkey");
  4958. }
  4959. */
  4960. }
  4961. messageBox("입원사후심사대상자 조회에서 선택된 심사 대상자가", "I004"); ///입원사후심사대상자 조회에서 선택된 심사 대상자가 없습니다.
  4962. ]]>
  4963. </script>
  4964. </button>
  4965. <button id="btn_nexttrgtman" class="icon_right" _auth="R" style="left:1159px; top:414px; width:26px; height:19px; ">
  4966. <caption/>
  4967. <script type="javascript" ev:event="DOMActivate">
  4968. <![CDATA[
  4969. var trgtManWindow = getChildWindow("SMPID20200"); // SMPID20200_입원사후심사대상자조회.xrw
  4970. if (trgtManWindow != null) {
  4971. // var selectedRow = trgtManWindow.grd_clbsmast.row;
  4972. var selectedRow = trgtManWindow.grd_clbsmast.selectedRow(0); // row 선택 후 타이틀 부분 조정시 row = 0으로 바뀌므로 selectedRow로 체크함
  4973. // var selectedRow = model.getValue("/root/hidden/smpid20200/rslt/selectedRow");
  4974. // alert("selectedRow = " + selectedRow);
  4975. if (selectedRow && selectedRow != -1) {
  4976. var trgtmanlist = trgtManWindow.instance1.selectSingleNode("/root/main/list1");
  4977. var maxRow = trgtmanlist.childNodes.length;
  4978. if (selectedRow < maxRow) {
  4979. if (btn_save.disabled == false || btn_unjudg.disabled == false) {
  4980. // "심사중" 상태를 해제한다.
  4981. // "심사저장" 상태로 대상자 화면 갱신
  4982. var judgendyn = model.getValue("/root/main/item1/clbs/judgendyn");
  4983. fSetJudgSaveState(judgendyn);
  4984. }
  4985. selectedRow = parseInt(selectedRow) + 1;
  4986. model.setValue("/root/hidden/smpid20200/rslt/selectedRow", selectedRow);
  4987. var trgtmanclamkey = trgtManWindow.model.getValue("/root/main/list1/clbs["+ selectedRow +"]/clamkey");
  4988. var trgtmanclamym = trgtManWindow.model.getValue("/root/main/list1/clbs["+ selectedRow +"]/clamym");
  4989. var trgtmanclamdg = trgtManWindow.model.getValue("/root/main/list1/clbs["+ selectedRow +"]/clamdg");
  4990. var trgtmanpid = trgtManWindow.model.getValue("/root/main/list1/clbs["+ selectedRow +"]/pid");
  4991. var trgtmanpidsn = trgtManWindow.model.getValue("/root/main/list1/clbs["+ selectedRow +"]/pidsn");
  4992. var trgtmanworkflag = trgtManWindow.model.getValue("/root/main/list1/clbs["+ selectedRow +"]/workflag");
  4993. var trgtmancutprcpyn = trgtManWindow.model.getValue("/root/send/item1/cutprcpsel");
  4994. if (trgtmanclamkey) {
  4995. model.setValue("/root/hidden/smpid20200/rslt/clamkey", trgtmanclamkey);
  4996. model.setValue("/root/hidden/smpid20200/rslt/clamym", trgtmanclamym);
  4997. model.setValue("/root/hidden/smpid20200/rslt/clamdg", trgtmanclamdg);
  4998. model.setValue("/root/hidden/smpid20200/rslt/pid", trgtmanpid);
  4999. model.setValue("/root/hidden/smpid20200/rslt/pidsn", trgtmanpidsn);
  5000. model.setValue("/root/hidden/smpid20200/rslt/workflag", trgtmanworkflag);
  5001. model.setValue("/root/hidden/smpid20200/rslt/popupcallyn", "Y");
  5002. model.setValue("/root/hidden/smpid20200/rslt/cutprcpyn", trgtmancutprcpyn);
  5003. trgtManWindow.grd_clbsmast.row = selectedRow;
  5004. trgtManWindow.model.refresh();
  5005. fGetInAftJudgMngt();
  5006. trgtManWindow.javascript.setPopupRefresh(trgtmanpid);
  5007. }
  5008. return;
  5009. } else { // 마지막 줄인 경우 이후 대상자가 없다.
  5010. messageBox("조회된 마지막 심사대상자 입니다. 이후 심사 대상자가", "I004"); ///조회된 마지막 심사대상자 입니다. 이후 심사 대상자가 없습니다.
  5011. return;
  5012. }
  5013. }
  5014. }
  5015. messageBox("입원사후심사대상자 조회에서 선택된 심사 대상자가", "I004"); ///입원사후심사대상자 조회에서 선택된 심사 대상자가 없습니다.
  5016. ]]>
  5017. </script>
  5018. </button>
  5019. <button id="btn_excelsave" class="btn2_letter5" _auth="P" style="left:1117px; top:655px; width:75px; height:19px; ">
  5020. <caption>
  5021. <![CDATA[엑셀&출력]]>
  5022. </caption>
  5023. <script type="javascript" ev:event="DOMActivate">
  5024. <![CDATA[
  5025. var message = "2. 출력|3. 취 소";
  5026. var ans = messageBox("1. 엑셀저장 ", "S006", message); ///하시려면 예(Yes)\n아니면 아니오(No)
  5027. if (ans == 6) { // 6: yes, 7:no, 2:cancel
  5028. fExportExcel(); // 엑셀저장
  5029. } else if (ans == 7) {
  5030. fExportPrint(); // 출력
  5031. }
  5032. ]]>
  5033. </script>
  5034. </button>
  5035. <caption id="caption46" class="cell_1" style="left:1117px; top:700px; width:75px; height:23px; ">자보한도</caption>
  5036. <button id="btn_autolimit" style="left:1174px; top:704px; width:14px; height:14px; background-image:../../../com/commonweb/images/icon_btn.gif; ">
  5037. <caption/>
  5038. <script type="javascript" ev:event="onclick">
  5039. <![CDATA[
  5040. var insukind = model.getValue("/root/main/item1/clbs/insukindcd");
  5041. var suppkind = model.getValue("/root/main/item1/clbs/suppkindcd");
  5042. if (insukind != "31" && suppkind != "18") {
  5043. messageBox("자보환자중 자손/책임/무보험만 한도잔액조회","I006");
  5044. return;
  5045. }
  5046. model.resetInstanceNode("/root/hidden/sppmc04500/cond");
  5047. model.setValue("/root/hidden/sppmc04500/cond/pid", model.getValue("/root/main/item1/clbs/pid"));
  5048. modal("SPPMC04500", "1", "", "", "SPPMC04500", "/root/hidden/sppmc04500/cond", "/root/send");
  5049. ]]>
  5050. </script>
  5051. </button>
  5052. <output id="opt_paylimamt" ref="/root/main/item1/clbs/paylimamt" class="output_fix" format="#,###" appearance="output" style="left:1117px; top:723px; width:75px; height:19px; text-align:right; "/>
  5053. <button id="btn_maininit" class="btn5_letter5" _auth="R" style="left:1117px; top:546px; width:75px; height:19px; ">
  5054. <caption>종료</caption>
  5055. <script type="javascript" ev:event="DOMActivate">
  5056. <![CDATA[
  5057. fInitSrchData(); // 화면을 초기화한다.
  5058. model.refresh();
  5059. ]]>
  5060. </script>
  5061. <hint>
  5062. <![CDATA[화면초기화]]>
  5063. </hint>
  5064. </button>
  5065. <button id="btn_EnvSetup" class="btn2_letter5" visibility="hidden" _auth="P" style="left:1117px; top:370px; width:75px; height:19px; ">
  5066. <caption>환경저장</caption>
  5067. <script type="javascript" ev:event="DOMActivate">
  5068. <![CDATA[
  5069. // getOrderInfoOfCol("grd_clodhist");
  5070. var captiondata = ""; // caption
  5071. var refdata = ""; // ref
  5072. var sizedata = ""; // size
  5073. var grdobj = document.controls.item("grd_clodhist");
  5074. for (var i = 0; i < grdobj.cols; i++) {
  5075. var refval = grdobj.colAttribute(i, "ref");
  5076. refdata += refval + "^";
  5077. var sizeval = grdobj.colWidth(i);
  5078. sizedata += sizeval + "^";
  5079. }
  5080. refdata = refdata.substring(0, refdata.length-1);
  5081. sizedata = sizedata.substring(0, sizedata.length-1);
  5082. var compscnts = model.getValue("/root/hidden/listval/uuee/compscnts"); // Grid의 칼럼명
  5083. var compssizecnts = model.getValue("/root/hidden/listval/uuee/compssizecnts"); // Grid의 칼럼Size
  5084. if (refdata == compscnts && sizedata == compssizecnts) {
  5085. messageBox("변경된 데이터가", "I004"); ///변경된 데이터가 없습니다.
  5086. return;
  5087. }
  5088. var scrnid = model.getValue("/root/hidden/listval/uuee/scrnid"); // 화면(xrw)의 ID
  5089. if (scrnid == "") {
  5090. model.setValue("/root/send/listval/uuee/flag", "I");
  5091. } else {
  5092. model.setValue("/root/send/listval/uuee/flag", "U");
  5093. }
  5094. model.setValue("/root/send/listval/uuee/scrnid", "SMPID20300"); // 화면(xrw)의 ID - SMPID20300_입원사후심사관리
  5095. model.setValue("/root/send/listval/uuee/compsnm", "grd_clodhist"); // Grid ID 정보
  5096. model.setValue("/root/send/listval/uuee/compscnts", refdata); // Grid의 칼럼명
  5097. model.setValue("/root/send/listval/uuee/compsrefcnts", ""); // Grid의 reference명
  5098. model.setValue("/root/send/listval/uuee/compssizecnts", sizedata); // Grid의 칼럼Size
  5099. if (submit("TXPID21601")) {
  5100. messageBox("사용자 환경 저장이", "I002"); ///사용자 환경 저장이 완료되었습니다.
  5101. //그리드 caption 재지정
  5102. var caption = ""
  5103. for( var i = 1; i < grdobj.cols ; i++ ){
  5104. if (caption == "") {
  5105. caption = grdobj.textMatrix(0,i);
  5106. } else {
  5107. caption += "^" + grdobj.textMatrix(0,i);
  5108. }
  5109. }
  5110. grdobj.caption = caption;
  5111. }
  5112. ]]>
  5113. </script>
  5114. <hint>
  5115. <![CDATA[처방item 순서저장]]>
  5116. </hint>
  5117. </button>
  5118. <group id="grp_clsphist" style="left:485px; top:125px; width:709px; height:170px; ">
  5119. <switch id="swt_spclmemo" class="sw_box" style="left:0px; top:24px; width:709px; height:144px; ">
  5120. <case id="case_spclspec" selected="true">
  5121. <datagrid id="grd_clsphist" nodeset="/root/main/list3/clsp" caption="X^구분^줄^수가코드^한글명^특정내역코드^구분코드^내역^형식^상세설명^initedilnno^oldedilnno^seqno^oldspclcd^clodseqno^caption2^caption1^workflag^mpsno^clsoyn" colsep="^" colwidth="15, 30, 26, 71, 45, 165, 70, 230, 73, 440, 30, 30, 30, 30, 300, 100, 100, 60, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:5px; top:27px; width:698px; height:109px; ">
  5122. <col ref="rowstat"/>
  5123. <col ref="unitflag" style="text-align:center; "/>
  5124. <col ref="edilnno"/>
  5125. <col ref="snglcalcscorcd"/>
  5126. <col ref="hngnm"/>
  5127. <col id="col01" ref="spclcd" type="combo">
  5128. <choices>
  5129. <itemset nodeset="/root/init/P0117list/P0117">
  5130. <label ref="cdengabbrnm"/>
  5131. <value ref="cdid"/>
  5132. </itemset>
  5133. </choices>
  5134. </col>
  5135. <col ref="cdnm" visibility="hidden" style="background-color:#c0c0c0; "/>
  5136. <col ref="spclspec" type="input"/>
  5137. <col ref="spclformat"/>
  5138. <col ref="detldesc" visibility="hidden"/>
  5139. <col ref="initedilnno" visibility="hidden" style="background-color:#c0c0c0; "/>
  5140. <col ref="oldedilnno" visibility="hidden" style="background-color:#c0c0c0; "/>
  5141. <col ref="seqno" visibility="hidden" style="background-color:#c0c0c0; "/>
  5142. <col ref="oldspclcd" visibility="hidden" style="background-color:#c0c0c0; "/>
  5143. <col ref="clodseqno" visibility="hidden" style="background-color:#c0c0c0; "/>
  5144. <col ref="spclcd" visibility="hidden" style="background-color:#c0c0c0; "/>
  5145. <col ref="insntstat" visibility="hidden" style="background-color:#c0c0c0; "/>
  5146. <col ref="workflag" visibility="hidden" style="background-color:#c0c0c0; "/>
  5147. <col ref="mpsno" visibility="hidden"/>
  5148. <col ref="clsoyn" visibility="hidden"/>
  5149. <script type="javascript" ev:event="onmousedown">
  5150. <![CDATA[
  5151. setPopupMenu("grd_clsphist", false, "/root/hidden/popupmenu/gridclsp/item", "name", "func"); // (tfHelper.js) 컨트롤에서 사용자 팝업 설정 함수
  5152. // if (event.button != 3) {
  5153. // var row = grd_clsphist.mouseRow;
  5154. // if (grd_clsphist.isCell(event.target) && row >= grd_clsphist.fixedRows) {
  5155. // // 해당 특정코드의 기재형식이 Message 용 output 컨트롤에 표시된다.
  5156. // var spclcd = model.getValue("/root/main/list3/clsp["+ row +"]/spclcd");
  5157. // if (spclcd == "JT001") {
  5158. // var spclspec = model.getValue("/root/main/list3/clsp["+ row +"]/spclspec");
  5159. // var spclformat = model.getValue("/root/main/list3/clsp["+ row +"]/spclformat");
  5160. // model.setValue("/root/hidden/list3/msgspclformat", "확인코드 - "+ spclcd +" / 입력코드내역 : "+ spclspec +" / 기재형식 : "+ spclformat);
  5161. // model.refresh();
  5162. // } else if (spclcd) {
  5163. // var cdnm = model.getValue("/root/main/list3/clsp["+ row +"]/cdnm");
  5164. // var spclspec = model.getValue("/root/main/list3/clsp["+ row +"]/spclspec");
  5165. // var spclformat = model.getValue("/root/main/list3/clsp["+ row +"]/spclformat");
  5166. // model.setValue("/root/hidden/list3/msgspclformat", "특정내역코드: "+ spclcd +" / 특정내역명칭: "+ cdnm +" / 기재내역: "+ spclspec +" / 기재형식: "+ spclformat);
  5167. // model.refresh();
  5168. // }
  5169. // }
  5170. // }
  5171. ]]>
  5172. </script>
  5173. <script type="javascript" ev:event="xforms-value-changed">
  5174. <![CDATA[
  5175. var row = grd_clsphist.row;
  5176. var newspclcd = model.getValue("/root/main/list3/clsp["+ row +"]/spclcd");
  5177. var newspclspec = model.getValue("/root/main/list3/clsp["+ row +"]/spclspec");
  5178. if (grd_clsphist.col == grd_clsphist.colRef("spclcd")) {
  5179. var unitflag = model.getValue("/root/main/list3/clsp["+ row +"]/unitflag");
  5180. if (unitflag == "M" && newspclcd != "") { // 명세서 단위
  5181. if (newspclcd == "MT004" || newspclcd == "MT015" || newspclcd == "MT016" || newspclcd == "MX999") {
  5182. // 중복된 특정코드가 있는지를 확인한다.
  5183. for (var i = 1; i < grd_clsphist.rows; i++) {
  5184. var oth_spclcd = model.getValue("/root/main/list3/clsp["+ i +"]/spclcd");
  5185. if (row != i && newspclcd == oth_spclcd) {
  5186. if (grd_clsphist.rowstatus(i) != 4) {
  5187. model.resetInstanceNode("/root/main/list3/clsp["+ row +"]/spclcd");
  5188. model.resetInstanceNode("/root/main/list3/clsp["+ row +"]/spclspec");
  5189. model.resetInstanceNode("/root/main/list3/clsp["+ row +"]/spclformat");
  5190. model.resetInstanceNode("/root/main/list3/clsp["+ row +"]/cdnm");
  5191. model.resetInstanceNode("/root/main/list3/clsp["+ row +"]/detldesc");
  5192. model.setValue("/root/hidden/list3/msgspclformat", "명세서 단위 특정코드 '"+ newspclcd +"'가 중복되었습니다.");
  5193. opt_msgspclformat.refresh();
  5194. return;
  5195. }
  5196. }
  5197. }
  5198. }
  5199. // 특정코드 MT015, MT016, MT004 정보가 입력된 환자인지를 확인한다.
  5200. fCheckSpclSpecData();
  5201. } else { // 줄단위
  5202. if (newspclcd == "JX999" || newspclcd == "JT001") {
  5203. // 중복된 특정코드가 있는지를 확인한다.
  5204. var spclLnNo = model.getValue("/root/main/list3/clsp["+ row +"]/edilnno");
  5205. for (var i = 1; i < grd_clsphist.rows; i++) {
  5206. var oth_spclcd = model.getValue("/root/main/list3/clsp["+ i +"]/spclcd");
  5207. var oth_spclLnNo = model.getValue("/root/main/list3/clsp["+ i +"]/edilnno");
  5208. if (spclLnNo == oth_spclLnNo && row != i && newspclcd == oth_spclcd) {
  5209. if (grd_clsphist.rowstatus(i) != 4) {
  5210. model.resetInstanceNode("/root/main/list3/clsp["+ row +"]/spclcd");
  5211. model.resetInstanceNode("/root/main/list3/clsp["+ row +"]/spclspec");
  5212. model.resetInstanceNode("/root/main/list3/clsp["+ row +"]/spclformat");
  5213. model.resetInstanceNode("/root/main/list3/clsp["+ row +"]/cdnm");
  5214. model.resetInstanceNode("/root/main/list3/clsp["+ row +"]/detldesc");
  5215. model.setValue("/root/hidden/list3/msgspclformat", "줄번호 "+ spclLnNo +"의 줄단위 특정코드 '"+ newspclcd +"'가 중복되었습니다.");
  5216. opt_msgspclformat.refresh();
  5217. return;
  5218. }
  5219. }
  5220. }
  5221. } // if (newspclcd == "JX999" || newspclcd == "JT001")
  5222. // grd_clsphist.colRef("spclcd") 가 변경되었는데(특정내역코드 Combo)
  5223. // fSortSpclNo()을 호출하면 Combo Label이 겹쳐져서 보인다.
  5224. // JS010(특정코드:야간가산)의 hhmm이 야간(18~09시)가 아니면 특정내역 Grid에 빨간색으로 표시
  5225. grd_clsphist.rowStyle(row, "data", "color") = "#000000"; // 000000=검은색
  5226. if (newspclcd == "JS010") { // JS010 야간가산
  5227. var js010chk = false;
  5228. if (newspclspec.length >= 12) { // <spclformat>ccyymmddhhmm</spclformat>
  5229. var ccyymmddhhmm = newspclspec.substr(0, 12);
  5230. // if (ccyymmddhhmm.isNumber()) { // (numericHelper.js) 공백이면, 숫자가 아니면 FALSE 리턴
  5231. if (isValidDateTime(ccyymmddhhmm, "YYYYMMDDhhmm")) { // (dateHelper.js) 유효한 날짜, 시간 인지 점검
  5232. var hhmm = parseInt(newspclspec.substr(8, 4), 10); // '09' 와 같은 형식으로 입력한 경우 -> 9로 처리
  5233. if (hhmm >= 1800 || hhmm < 900) {
  5234. // var hh = parseInt(newspclspec.substr(8, 2), 10); // '09' 와 같은 형식으로 입력한 경우 -> 9로 처리
  5235. // if (hh >= 18 || hh <= 9) {
  5236. js010chk = true;
  5237. }
  5238. }
  5239. // alert(isValidDateTime(ccyymmddhhmm, "YYYYMMDDhhmm"));
  5240. }
  5241. if (js010chk == false) {
  5242. grd_clsphist.rowStyle(row, "data", "color") = "#ff3333"; // ff3333=붉은색
  5243. }
  5244. } // if (newspclcd == "JS010")
  5245. } // if (unitflag == "M" && newspclcd != "") 가 아닌 경우
  5246. var p0117list = instance1.selectSingleNode("/root/init/P0117list");
  5247. if (p0117list != null) {
  5248. var p0117 = p0117list.childNodes;
  5249. for (var i = 1; i <= p0117.length; i++) {
  5250. var cdid = model.getValue("/root/init/P0117list/P0117["+ i +"]/cdid");
  5251. if (cdid == newspclcd) {
  5252. model.setValue("/root/main/list3/clsp["+ row +"]/cdnm", model.getValue("/root/init/P0117list/P0117["+ i +"]/cdnm"));
  5253. model.setValue("/root/main/list3/clsp["+ row +"]/spclformat", model.getValue("/root/init/P0117list/P0117["+ i +"]/cdval"));
  5254. model.setValue("/root/main/list3/clsp["+ row +"]/detldesc", model.getValue("/root/init/P0117list/P0117["+ i +"]/detldesc"));
  5255. i = p0117.length + 1;
  5256. }
  5257. }
  5258. }
  5259. var rowstatus = grd_clsphist.rowstatus(row);
  5260. // 특정코드, 특정내역이 변경되었거나 삭제된 특정코드를 조회하여 "확인"을 선택한 경우
  5261. if (rowstatus == 1 || rowstatus == 3) { // 1 : insert, 3 : insert & new
  5262. } else {
  5263. grd_clsphist.rowstatus(row) = 2; // 2 : update 상태로 stat를 변경한다.
  5264. }
  5265. var cdnm = model.getValue("/root/main/list3/clsp["+ row +"]/cdnm");
  5266. var spclformat = model.getValue("/root/main/list3/clsp["+ row +"]/spclformat");
  5267. model.setValue("/root/hidden/list3/msgspclformat", "특정내역코드: "+ newspclcd +" / 특정내역명칭: "+ cdnm +" / 기재내역: "+ newspclspec +" / 기재형식: "+ spclformat);
  5268. opt_msgspclformat.refresh();
  5269. } else { // grd_clsphist.colRef("spclcd") 가 아닌 경우
  5270. var unitflag = model.getValue("/root/main/list3/clsp["+ row +"]/unitflag");
  5271. if (unitflag == "J") {
  5272. if (newspclcd == "JT001") { // JT001 확인코드
  5273. var clsplnno = model.getValue("/root/main/list3/clsp["+ row +"]/edilnno");
  5274. for (var j = 1; j < grd_clodhist.rows; j++) {
  5275. var clodlnno = model.getValue("/root/main/list2/clod["+ j +"]/edilnno");
  5276. if (clsplnno == clodlnno) {
  5277. model.setValue("/root/main/list2/clod["+ j +"]/cnfmcd", newspclspec);
  5278. }
  5279. }
  5280. if (newspclspec == "") { // 확인코드의 특정내역이 삭제된 경우임
  5281. for (var j = 1; j < grd_clsphist.rows; j++) {
  5282. var unitflag = model.getValue("/root/main/list3/clsp["+ j +"]/unitflag");
  5283. if (unitflag == "J") {
  5284. var spclLnno = model.getValue("/root/main/list3/clsp["+ j +"]/edilnno");
  5285. var spclSpclcd = model.getValue("/root/main/list3/clsp["+ j +"]/spclcd");
  5286. if (spclLnno == clsplnno && spclSpclcd == "JT001") {
  5287. var rowstatus = grd_clsphist.rowstatus(j);
  5288. if (rowstatus == 1 || rowstatus == 3) { // 1 : insert, 3 : insert & new
  5289. model.resetInstanceNode("/root/main/list3/clsp["+ j +"]/spclcd");
  5290. model.resetInstanceNode("/root/main/list3/clsp["+ j +"]/spclspec");
  5291. //grd_clsphist.deleteRow(j, false); // 해당 라인을 Grid에서 삭제한다.
  5292. } else {
  5293. grd_clsphist.rowstatus(j) = 4;
  5294. }
  5295. }
  5296. }
  5297. }
  5298. model.setValue("/root/hidden/list3/msgspclformat", "입력된 확인코드 내역이 없습니다.");
  5299. opt_msgspclformat.refresh();
  5300. // 처방 행 삭제 or 삭제취소 후에 특정내역 sorting 작업
  5301. fSortSpclNo();
  5302. return;
  5303. } // if (newspclspec == "")
  5304. } // if (newspclcd == "JT001")
  5305. } // if (unitflag == "J")
  5306. var rowstatus = grd_clsphist.rowstatus(row);
  5307. // 특정코드, 특정내역이 변경되었거나 삭제된 특정코드를 조회하여 "확인"을 선택한 경우
  5308. if (rowstatus == 1 || rowstatus == 3) { // 1 : insert, 3 : insert & new
  5309. } else {
  5310. grd_clsphist.rowstatus(row) = 2; // 2 : update 상태로 stat를 변경한다.
  5311. }
  5312. var cdnm = model.getValue("/root/main/list3/clsp["+ row +"]/cdnm");
  5313. var spclformat = model.getValue("/root/main/list3/clsp["+ row +"]/spclformat");
  5314. model.setValue("/root/hidden/list3/msgspclformat", "특정내역코드: "+ newspclcd +" / 특정내역명칭: "+ cdnm +" / 기재내역: "+ newspclspec +" / 기재형식: "+ spclformat);
  5315. opt_msgspclformat.refresh();
  5316. // 처방 행 삭제 or 삭제취소 후에 특정내역 sorting 작업
  5317. fSortSpclNo();
  5318. } // grd_clsphist.colRef("spclcd") 가 아닌 경우
  5319. ]]>
  5320. </script>
  5321. <script type="javascript" ev:event="onmouseover">
  5322. <![CDATA[
  5323. var row = grd_clsphist.mouseRow;
  5324. if (grd_clsphist.isCell(event.target) && row >= grd_clsphist.fixedRows) {
  5325. var rowstatus = grd_clsphist.rowstatus(grd_clsphist.mouseRow);
  5326. if (rowstatus == 0 || rowstatus == 2 || rowstatus == 4) { // DB에 저장된 data인 경우
  5327. grd_clsphist.colDisabled(grd_clsphist.colRef("spclcd")) = true;
  5328. grd_clsphist.colDisabled(grd_clsphist.colRef("spclspec")) = false;
  5329. } else { // 신규로 추가한 경우
  5330. grd_clsphist.colDisabled(grd_clsphist.colRef("spclcd")) = false;
  5331. grd_clsphist.colDisabled(grd_clsphist.colRef("spclspec")) = false;
  5332. var unitflag = model.getValue("/root/main/list3/clsp["+ grd_clsphist.mouseRow +"]/unitflag");
  5333. if (unitflag == "J") {
  5334. if (model.getValue("/root/main/list3/clsp["+ grd_clsphist.mouseRow +"]/spclcd") == "JT001") {
  5335. // 확인코드의 경우 전용 팝업창을 사용하므로 특정내역 Grid에서 수정하지 않는다.
  5336. grd_clsphist.colDisabled(grd_clsphist.colRef("spclcd")) = true;
  5337. grd_clsphist.cellComboNodeset(row, grd_clsphist.colRef("spclcd")) = "/root/init/P0117list/P0117[cdid = 'JT001']";
  5338. } else {
  5339. grd_clsphist.cellComboNodeset(row, grd_clsphist.colRef("spclcd")) = "/root/init/P0117list/P0117[minval = 'J' and cdid != 'JT001']";
  5340. // grd_clsphist.cellComboNodeset(row, grd_clsphist.colRef("spclcd")) = "/root/init/P0117list/P0117[cdid != 'JT001' and dispseq >= '27']";
  5341. }
  5342. } else {
  5343. grd_clsphist.cellComboNodeset(row, grd_clsphist.colRef("spclcd")) = "/root/init/P0117list/P0117[minval = 'M' and cdid != 'MX999']";
  5344. // grd_clsphist.cellComboNodeset(row, grd_clsphist.colRef("spclcd")) = "/root/init/P0117list/P0117[dispseq < '27' and cdid != 'MX999']";
  5345. }
  5346. }
  5347. }
  5348. ]]>
  5349. </script>
  5350. <script type="javascript" ev:event="DOMFocusOut">
  5351. <![CDATA[
  5352. initPopupMenu(); // (tfHelper.js) 사용자 팝업 설정 초기화
  5353. ]]>
  5354. </script>
  5355. <script type="javascript" ev:event="ondblclick">
  5356. <![CDATA[
  5357. // 특정내역 Grid 에서 선택한 줄단위 특정내역을 조회하고, 명세서단위 특정내역을 수정/입력한다.
  5358. if (grd_clsphist.isCell(event.target) && grd_clsphist.mouseRow >= grd_clsphist.fixedRows) {
  5359. var row = grd_clsphist.mouseRow;
  5360. if (model.getValue("/root/main/list3/clsp["+ row +"]/spclcd") == "JT001") {
  5361. fSetCnfmCdSpclSpec();
  5362. } else {
  5363. fSetDocRefLnSpclSpec();
  5364. }
  5365. }
  5366. ]]>
  5367. </script>
  5368. <script type="javascript" ev:event="onentercell">
  5369. <![CDATA[
  5370. // col@type = "input" 일 경우 onentercell시점에 EditMode 상태 만들기
  5371. if (event.button != 3 && grd_clsphist.colType(grd_clsphist.col) == "input") {
  5372. grd_clsphist.editCell();
  5373. }
  5374. ]]>
  5375. </script>
  5376. <script type="javascript" ev:event="onmouseup">
  5377. <![CDATA[
  5378. // if (event.button != 3) {
  5379. var row = grd_clsphist.mouseRow;
  5380. if (grd_clsphist.isCell(event.target) && row >= grd_clsphist.fixedRows) {
  5381. // 해당 특정코드의 기재형식이 Message 용 output 컨트롤에 표시된다.
  5382. var spclcd = model.getValue("/root/main/list3/clsp["+ row +"]/spclcd");
  5383. if (spclcd == "JT001") {
  5384. var spclspec = model.getValue("/root/main/list3/clsp["+ row +"]/spclspec");
  5385. var spclformat = model.getValue("/root/main/list3/clsp["+ row +"]/spclformat");
  5386. model.setValue("/root/hidden/list3/msgspclformat", "확인코드 - "+ spclcd +" / 입력코드내역 : "+ spclspec +" / 기재형식 : "+ spclformat);
  5387. opt_msgspclformat.refresh();
  5388. } else if (spclcd) {
  5389. var cdnm = model.getValue("/root/main/list3/clsp["+ row +"]/cdnm");
  5390. var spclspec = model.getValue("/root/main/list3/clsp["+ row +"]/spclspec");
  5391. var spclformat = model.getValue("/root/main/list3/clsp["+ row +"]/spclformat");
  5392. model.setValue("/root/hidden/list3/msgspclformat", "특정내역코드: "+ spclcd +" / 특정내역명칭: "+ cdnm +" / 기재내역: "+ spclspec +" / 기재형식: "+ spclformat);
  5393. opt_msgspclformat.refresh();
  5394. }
  5395. }
  5396. // }
  5397. ]]>
  5398. </script>
  5399. <script type="javascript" ev:event="oncopy">
  5400. <![CDATA[
  5401. // 그리드 내용 복사
  5402. if (grd_clsphist.selectedRows == 1) { // 한줄
  5403. var row = grd_clsphist.row;
  5404. var col = grd_clsphist.col;
  5405. if (col == grd_clsphist.colRef("snglcalcscorcd")) {
  5406. // EDI코드
  5407. // var clip = grd_clsphist.valueMatrix(row, col);
  5408. var clip = grd_clsphist.labelMatrix(row, col);
  5409. // var clip = grd_clsphist.labelMatrix(grd_clsphist.mouseRow, grd_clsphist.mouseCol);
  5410. window.clipBoardData = clip;
  5411. } else {
  5412. grid_oncopy(); // (tfHelper.js) window.clipBoardData 복사 기능
  5413. }
  5414. }
  5415. else if (grd_clsphist.selectedRows > 1) { // 여러줄
  5416. grid_oncopy(); // (tfHelper.js) window.clipBoardData 복사 기능
  5417. }
  5418. ]]>
  5419. </script>
  5420. </datagrid>
  5421. <button id="btn_spcldetl" class="btn2_letter4" _auth="X" style="left:573px; top:6px; width:64px; height:19px; ">
  5422. <caption>코드조회</caption>
  5423. <script type="javascript" ev:event="DOMActivate">
  5424. <![CDATA[
  5425. var row = grd_clsphist.row;
  5426. var spclcd = model.getValue("/root/main/list3/clsp["+ row +"]/spclcd");
  5427. model.setValue("/root/hidden/sppiz01400/cond/srchcond", spclcd);
  5428. model.removeNodeset("/root/hidden/sppiz01400/rslt");
  5429. modal("SPPIZ01400", "1", "10", "10", "SPPIZ01400", "/root/hidden/sppiz01400/cond", "/root/send", "", ""); // SPPIZ01400_특정내역코드상세조회.xrw
  5430. if (model.getValue("/root/hidden/sppiz01400/rslt/spclcd")) {
  5431. fSpclGridInsertRow(); // 특정내역 Grid 마우스 오른쪽 버튼 클릭시 팝업 메뉴 "행 추가"
  5432. var clsprow = grd_clsphist.row;
  5433. //copyNode 로 복사하는 경우에는 특정내역Grid의 모든 필드를 전달해야 함
  5434. //model.copyNode("/root/main/list3/clsp["+ clsprow +"]", "/root/hidden/sppiz01400/rslt");
  5435. model.setValue("/root/main/list3/clsp["+ clsprow +"]/spclcd", model.getValue("/root/hidden/sppiz01400/rslt/spclcd"));
  5436. model.setValue("/root/main/list3/clsp["+ clsprow +"]/cdnm", model.getValue("/root/hidden/sppiz01400/rslt/cdnm"));
  5437. model.setValue("/root/main/list3/clsp["+ clsprow +"]/spclspec", model.getValue("/root/hidden/sppiz01400/rslt/spclspec"));
  5438. model.setValue("/root/main/list3/clsp["+ clsprow +"]/spclformat", model.getValue("/root/hidden/sppiz01400/rslt/spclformat"));
  5439. model.setValue("/root/main/list3/clsp["+ clsprow +"]/detldesc", model.getValue("/root/hidden/sppiz01400/rslt/detldesc"));
  5440. // 특정내역 줄번호/특정코드에 따라 sorting 작업
  5441. fSortSpclNo();
  5442. //model.refresh();
  5443. grd_clsphist.refresh();
  5444. }
  5445. ]]>
  5446. </script>
  5447. </button>
  5448. <button id="btn_addspec" class="btn2_letter4" _auth="X" style="left:639px; top:6px; width:64px; height:19px; ">
  5449. <caption>내역추가</caption>
  5450. <script type="javascript" ev:event="DOMActivate">
  5451. <![CDATA[
  5452. var row = grd_clsphist.row;
  5453. if (row > 0) {
  5454. if (model.getValue("/root/main/list3/clsp["+ row +"]/spclcd") == "JT001") {
  5455. fSetCnfmCdSpclSpec();
  5456. } else {
  5457. fSetDocRefLnSpclSpec();
  5458. }
  5459. } else { // 특정내역 Grid에서 선택한 row가 없는 경우임
  5460. var clamkey = model.getValue("/root/main/item1/clbs/clamkey");
  5461. if (clamkey) { // 조회된 심사대상자가 있으면
  5462. var rdounitflag = model.getValue("/root/hidden/list3/selectedUnitFlag");
  5463. if (rdounitflag == "-" || rdounitflag == "M") {
  5464. fSpclGridInsertRow(); // 특정내역 Grid 마우스 오른쪽 버튼 클릭시 팝업 메뉴 "행 추가"
  5465. fSetDocRefLnSpclSpec();
  5466. } else {
  5467. if (grd_clodhist.row > 0) {
  5468. fSetLnUnitSpclSpec(); // 'T' 필드 더블클릭시 호출한다.
  5469. } else {
  5470. messageBox("특정내역을 추가할 줄번호를 먼저", "C002"); ///특정내역을 추가할 줄번호를 먼저 선택하십시오.
  5471. }
  5472. }
  5473. }
  5474. }
  5475. ]]>
  5476. </script>
  5477. </button>
  5478. <select1 id="rdo_unitflag" ref="/root/hidden/list3/selectedUnitFlag" appearance="full" cols="4" _auth="X" overflow="visible" style="left:5px; top:8px; width:222px; height:17px; border-style:none; ">
  5479. <choices>
  5480. <item>
  5481. <label>전체</label>
  5482. <value>-</value>
  5483. </item>
  5484. <item>
  5485. <label>명단위</label>
  5486. <value>M</value>
  5487. </item>
  5488. <item>
  5489. <label>줄단위</label>
  5490. <value>J</value>
  5491. </item>
  5492. <item>
  5493. <label>처방주석</label>
  5494. <value>JX999</value>
  5495. </item>
  5496. </choices>
  5497. <script type="javascript" ev:event="xforms-select">
  5498. <![CDATA[
  5499. fGetSelectedUnitFlag();
  5500. ]]>
  5501. </script>
  5502. </select1>
  5503. <select id="chk_JT001" ref="/root/chkJT001" class="check_fSetDelOrdPreDocuSizesearch" overflow="visible" appearance="full" style="left:237px; top:8px; width:90px; height:17px; border-style:none; ">
  5504. <choices>
  5505. <item>
  5506. <label>JT001 제외</label>
  5507. <value>Y</value>
  5508. </item>
  5509. </choices>
  5510. <script type="javascript" ev:event="xforms-value-changed">
  5511. <![CDATA[
  5512. rdo_unitflag.dispatch("xforms-select"); //20090915 정승우 JT001 제외 기능 추가
  5513. ]]>
  5514. </script>
  5515. </select>
  5516. </case>
  5517. <case id="case_judgrmemo">
  5518. <textarea id="tar_judgrmemo" ref="/root/main/item1/memo/judgmemo" style="left:5px; top:27px; width:698px; height:109px; vertical-align:top; ">
  5519. <hint>
  5520. <![CDATA[심사자 메모]]>
  5521. </hint>
  5522. <script type="javascript" ev:event="onmouseout">
  5523. <![CDATA[
  5524. tar_judgrmemo.attribute("_selectionText") = tar_judgrmemo.selectionText;
  5525. ]]>
  5526. </script>
  5527. </textarea>
  5528. <button id="btn_memohistory" class="btn2_letter5" _auth="X" style="left:5px; top:5px; width:75px; height:19px; ">
  5529. <caption>심사자메모</caption>
  5530. <script type="javascript" ev:event="DOMActivate">
  5531. <![CDATA[
  5532. // SPPIZ00700_심사Comment조회.xrw 호출
  5533. fGetJudgEdiComment("1", "");
  5534. ]]>
  5535. </script>
  5536. </button>
  5537. <button id="btn_memohistory_drug" class="btn2_letter2" _auth="X" style="left:83px; top:5px; width:42px; height:19px; ">
  5538. <caption>약</caption>
  5539. <script type="javascript" ev:event="DOMActivate">
  5540. <![CDATA[
  5541. // SPPIZ00700_심사Comment조회.xrw 호출
  5542. fGetJudgEdiComment("1", "01"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  5543. ]]>
  5544. </script>
  5545. </button>
  5546. <button id="btn_memohistory_injection" class="btn2_letter2" _auth="X" style="left:128px; top:5px; width:42px; height:19px; ">
  5547. <caption>주사</caption>
  5548. <script type="javascript" ev:event="DOMActivate">
  5549. <![CDATA[
  5550. // SPPIZ00700_심사Comment조회.xrw 호출
  5551. fGetJudgEdiComment("1", "02"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  5552. ]]>
  5553. </script>
  5554. </button>
  5555. <button id="btn_memohistory_treat" class="btn2_letter2" _auth="X" style="left:173px; top:5px; width:42px; height:19px; ">
  5556. <caption>처치</caption>
  5557. <script type="javascript" ev:event="DOMActivate">
  5558. <![CDATA[
  5559. // SPPIZ00700_심사Comment조회.xrw 호출
  5560. fGetJudgEdiComment("1", "03"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  5561. ]]>
  5562. </script>
  5563. </button>
  5564. <button id="btn_memohistory_exam" class="btn2_letter2" _auth="X" style="left:218px; top:5px; width:42px; height:19px; ">
  5565. <caption>검사</caption>
  5566. <script type="javascript" ev:event="DOMActivate">
  5567. <![CDATA[
  5568. // SPPIZ00700_심사Comment조회.xrw 호출
  5569. fGetJudgEdiComment("1", "04"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  5570. ]]>
  5571. </script>
  5572. </button>
  5573. <button id="btn_memohistory_etc" class="btn2_letter2" _auth="X" style="left:263px; top:5px; width:42px; height:19px; ">
  5574. <caption>기타</caption>
  5575. <script type="javascript" ev:event="DOMActivate">
  5576. <![CDATA[
  5577. // SPPIZ00700_심사Comment조회.xrw 호출
  5578. fGetJudgEdiComment("1", "99"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  5579. ]]>
  5580. </script>
  5581. </button>
  5582. <button id="btn_clearjudgrmemo" class="btn5_letter3" _auth="X" style="left:561px; top:5px; width:42px; height:19px; ">
  5583. <caption>지우기</caption>
  5584. <script type="javascript" ev:event="DOMActivate">
  5585. <![CDATA[
  5586. model.resetInstanceNode("/root/main/item1/memo/judgmemo");
  5587. model.refreshpart("/root/main/item1/memo/judgmemo");
  5588. ]]>
  5589. </script>
  5590. </button>
  5591. <button id="btn_toclammemo" class="btn5_letter7" _auth="X" style="left:461px; top:5px; width:97px; height:19px; ">
  5592. <caption>청구메모로 전달</caption>
  5593. <script type="javascript" ev:event="DOMActivate">
  5594. <![CDATA[
  5595. // [2007.08.09] selectionText 의 경우 btn을 누르는 순간 선택한 구역이 사라짐.
  5596. var memo = model.getValue("/root/main/item1/memo/edimemo");
  5597. if (memo) {
  5598. // var seletedMemo = tar_judgrmemo.selectionText;
  5599. var seletedMemo = tar_judgrmemo.attribute("_selectionText");
  5600. if (seletedMemo) {
  5601. memo += " \n"+ seletedMemo;
  5602. } else {
  5603. var judgmemo = model.getValue("/root/main/item1/memo/judgmemo");
  5604. if (judgmemo) {
  5605. memo += " \n"+ model.getValue("/root/main/item1/memo/judgmemo");
  5606. }
  5607. }
  5608. } else {
  5609. // var seletedMemo = tar_judgrmemo.selectionText;
  5610. var seletedMemo = tar_judgrmemo.attribute("_selectionText");
  5611. if (seletedMemo) {
  5612. memo = seletedMemo;
  5613. } else {
  5614. memo = model.getValue("/root/main/item1/memo/judgmemo");
  5615. }
  5616. }
  5617. model.setValue("/root/main/item1/memo/edimemo", memo);
  5618. model.refreshpart("/root/main/item1/memo/edimemo");
  5619. btn_ediclammemo.selected = true;
  5620. case_ediclammemo.selected = true;
  5621. model.toggle("case_ediclammemo"); // 해당 tab 으로 토글시킨다.
  5622. ]]>
  5623. </script>
  5624. </button>
  5625. <button id="btn_judgmemorepeat" class="btn2_letter6" visibility="hidden" _auth="X" style="left:617px; top:5px; width:86px; height:19px; ">
  5626. <caption>심사메모반복</caption>
  5627. <script type="javascript" ev:event="DOMActivate">
  5628. <![CDATA[
  5629. var judgmemorepeat = model.getValue("/root/main/item1/memo/judgmemorepeat");
  5630. if (judgmemorepeat == "R") {
  5631. judgmemorepeat = "";
  5632. btn_judgmemorepeat.attribute("class") = "btn2_letter6"; // 표준에서 정한 기본 버튼으로 설정
  5633. } else {
  5634. judgmemorepeat = "R";
  5635. btn_judgmemorepeat.attribute("class") = "btn5_letter6";
  5636. btn_judgmemorepeat.attribute("color") = "#cc3333"; //#ff0066"; // 해당 정보가 있는 경우 버튼 색 변경 // cc3333=붉은색
  5637. }
  5638. model.setValue("/root/main/item1/memo/judgmemorepeat", judgmemorepeat);
  5639. ]]>
  5640. </script>
  5641. </button>
  5642. </case>
  5643. <case id="case_ediclammemo">
  5644. <textarea id="tar_ediclammemo" ref="/root/main/item1/memo/edimemo" style="left:5px; top:27px; width:698px; height:109px; vertical-align:top; ">
  5645. <hint>
  5646. <![CDATA[EDI 청구메모]]>
  5647. </hint>
  5648. </textarea>
  5649. <button id="btn_memoedi" class="btn2_letter5" _auth="X" style="left:5px; top:5px; width:75px; height:19px; ">
  5650. <caption>EDI 메모</caption>
  5651. <script type="javascript" ev:event="DOMActivate">
  5652. <![CDATA[
  5653. // SPPIZ00700_심사Comment조회.xrw 호출
  5654. fGetJudgEdiComment("2", "");
  5655. ]]>
  5656. </script>
  5657. </button>
  5658. <button id="btn_memoedi_drug" class="btn2_letter2" _auth="X" style="left:83px; top:5px; width:42px; height:19px; ">
  5659. <caption>약</caption>
  5660. <script type="javascript" ev:event="DOMActivate">
  5661. <![CDATA[
  5662. // SPPIZ00700_심사Comment조회.xrw 호출
  5663. fGetJudgEdiComment("2", "01"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  5664. ]]>
  5665. </script>
  5666. </button>
  5667. <button id="btn_memoedi_injection" class="btn2_letter2" _auth="X" style="left:128px; top:5px; width:42px; height:19px; ">
  5668. <caption>주사</caption>
  5669. <script type="javascript" ev:event="DOMActivate">
  5670. <![CDATA[
  5671. // SPPIZ00700_심사Comment조회.xrw 호출
  5672. fGetJudgEdiComment("2", "02"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  5673. ]]>
  5674. </script>
  5675. </button>
  5676. <button id="btn_memoedi_treat" class="btn2_letter2" _auth="X" style="left:173px; top:5px; width:42px; height:19px; ">
  5677. <caption>처치</caption>
  5678. <script type="javascript" ev:event="DOMActivate">
  5679. <![CDATA[
  5680. // SPPIZ00700_심사Comment조회.xrw 호출
  5681. fGetJudgEdiComment("2", "03"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  5682. ]]>
  5683. </script>
  5684. </button>
  5685. <button id="btn_memoedi_exam" class="btn2_letter2" _auth="X" style="left:218px; top:5px; width:42px; height:19px; ">
  5686. <caption>검사</caption>
  5687. <script type="javascript" ev:event="DOMActivate">
  5688. <![CDATA[
  5689. // SPPIZ00700_심사Comment조회.xrw 호출
  5690. fGetJudgEdiComment("2", "04"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  5691. ]]>
  5692. </script>
  5693. </button>
  5694. <button id="btn_memoedi_etc" class="btn2_letter2" _auth="X" style="left:263px; top:5px; width:42px; height:19px; ">
  5695. <caption>기타</caption>
  5696. <script type="javascript" ev:event="DOMActivate">
  5697. <![CDATA[
  5698. // SPPIZ00700_심사Comment조회.xrw 호출
  5699. fGetJudgEdiComment("2", "99"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  5700. ]]>
  5701. </script>
  5702. </button>
  5703. <button id="btn_clearediclammemo" class="btn5_letter3" _auth="X" style="left:561px; top:5px; width:53px; height:19px; ">
  5704. <caption>지우기</caption>
  5705. <script type="javascript" ev:event="DOMActivate">
  5706. <![CDATA[
  5707. model.resetInstanceNode("/root/main/item1/memo/edimemo");
  5708. //model.refresh();
  5709. model.refreshpart("/root/main/item1/memo/edimemo");
  5710. ]]>
  5711. </script>
  5712. </button>
  5713. <button id="btn_edimemorepeat" class="btn2_letter6" visibility="hidden" _auth="X" style="left:617px; top:5px; width:86px; height:19px; ">
  5714. <caption>EDI메모반복</caption>
  5715. <script type="javascript" ev:event="DOMActivate">
  5716. <![CDATA[
  5717. var edimemorepeat = model.getValue("/root/main/item1/memo/edimemorepeat");
  5718. if (edimemorepeat == "R") {
  5719. edimemorepeat = "";
  5720. btn_edimemorepeat.attribute("class") = "btn2_letter6"; // 표준에서 정한 기본 버튼으로 설정
  5721. } else {
  5722. edimemorepeat = "R";
  5723. btn_edimemorepeat.attribute("class") = "btn5_letter6";
  5724. btn_edimemorepeat.attribute("color") = "#cc3333"; //#ff0066"; // 해당 정보가 있는 경우 버튼 색 변경 // cc3333=붉은색
  5725. }
  5726. model.setValue("/root/main/item1/memo/edimemorepeat", edimemorepeat);
  5727. ]]>
  5728. </script>
  5729. </button>
  5730. </case>
  5731. </switch>
  5732. <button id="btn_spclspec" class="btn_sw" group="tab" selected="true" style="left:0px; top:3px; width:85px; height:22px; ">
  5733. <caption>특정내역</caption>
  5734. <!--
  5735. <toggle case="case_spclspec" ev:event="onclick"/>
  5736. -->
  5737. <script type="javascript" ev:event="DOMActivate">
  5738. <![CDATA[
  5739. fGeCaseSelect("case_spclspec", true);
  5740. ]]>
  5741. </script>
  5742. </button>
  5743. <button id="btn_judgrmemo" class="btn_sw" group="tab" style="left:84px; top:3px; width:85px; height:22px; ">
  5744. <caption>심사자메모</caption>
  5745. <!--
  5746. <toggle case="case_judgrmemo" ev:event="onclick"/>
  5747. -->
  5748. <script type="javascript" ev:event="DOMActivate">
  5749. <![CDATA[
  5750. fGeCaseSelect("case_judgrmemo", false);
  5751. ]]>
  5752. </script>
  5753. </button>
  5754. <button id="btn_ediclammemo" class="btn_sw" group="tab" style="left:168px; top:3px; width:85px; height:22px; ">
  5755. <caption>EDI 메모</caption>
  5756. <!--
  5757. <toggle case="case_ediclammemo" ev:event="onclick"/>
  5758. -->
  5759. <script type="javascript" ev:event="DOMActivate">
  5760. <![CDATA[
  5761. fGeCaseSelect("case_ediclammemo", false);
  5762. ]]>
  5763. </script>
  5764. </button>
  5765. <button id="btn_mt0004" class="btn2_letter4" _auth="X" style="left:508px; top:3px; width:64px; height:19px; ">
  5766. <caption>MT004</caption>
  5767. <script type="javascript" ev:event="DOMActivate">
  5768. <![CDATA[
  5769. fSetSpclMT004(); // 특정내역 중 MT004 내역을 설정한다.
  5770. ]]>
  5771. </script>
  5772. </button>
  5773. <button id="btn_attData" class="btn2_letter4" _auth="X" style="left:574px; top:3px; width:64px; height:19px; ">
  5774. <caption>소명자료</caption>
  5775. <script type="javascript" ev:event="DOMActivate">
  5776. <![CDATA[
  5777. fGetAttachedDataList(); // 특정내역 중 MT015, MT016 내역을 조회하여 "소명자료" Btn (첨부물 자료관리) Popup 화면에 표시한다.
  5778. ]]>
  5779. </script>
  5780. </button>
  5781. <button id="btn_memohist" class="btn2_letter4" _auth="X" style="left:640px; top:3px; width:64px; height:19px; ">
  5782. <caption>메모이력</caption>
  5783. <script type="javascript" ev:event="DOMActivate">
  5784. <![CDATA[
  5785. fGetMemoHistList(); // 특정 환자에 대해 그동안 작성된 심사자메모, 청구메모 내역을 조회한다.
  5786. ]]>
  5787. </script>
  5788. </button>
  5789. <button id="btn_preresncd" class="btn2_letter4" style="left:257px; top:3px; width:64px; height:19px; ">
  5790. <caption>반송사유</caption>
  5791. <script type="javascript" ev:event="onclick">
  5792. <![CDATA[
  5793. messageBox( "반송사유 : "
  5794. + model.getValue("/root/main/item1/clbs/preresncd") + " - "
  5795. + model.getValue("/root/main/item1/clbs/preresncdnm") + "\n\n"
  5796. + "수신비고 : "
  5797. + model.getValue("/root/main/item1/clbs/preresntext")
  5798. , "I009");
  5799. ]]>
  5800. </script>
  5801. </button>
  5802. <output id="opt_preresncd" ref="/root/main/item1/clbs/preresncd" class="output_fix" style="left:324px; top:3px; width:30px; height:19px; "/>
  5803. <output id="opt_preresncdnm" ref="/root/main/item1/clbs/preresncdnm" class="output_fix" style="left:357px; top:3px; width:142px; height:19px; ">
  5804. <script type="javascript" ev:event="onmouseover">
  5805. <![CDATA[
  5806. opt_preresncdnm.hint = model.getValue("/root/main/item1/clbs/preresncdnm");
  5807. ]]>
  5808. </script>
  5809. </output>
  5810. </group>
  5811. <button id="btn_histref" class="btn2_letter4" _auth="R" style="left:416px; top:1px; width:64px; height:19px; ">
  5812. <caption>이력조회</caption>
  5813. <script type="javascript" ev:event="onmouseover">
  5814. <![CDATA[
  5815. if (btn_histref.disabled == false) {
  5816. model.toggle("histref");
  5817. grp_dropdownmenu.attribute("left") = btn_histref.attribute("left");
  5818. }
  5819. ]]>
  5820. </script>
  5821. <script type="javascript" ev:event="onmousedown">
  5822. <![CDATA[
  5823. // if (grp_dropdownmenu.visible == true) {
  5824. // grp_dropdownmenu.visible = false;
  5825. // } else {
  5826. // grp_dropdownmenu.attribute("left") = btn_histref.attribute("left");
  5827. // grp_dropdownmenu.visible = true;
  5828. // }
  5829. ]]>
  5830. </script>
  5831. <script type="javascript" ev:event="DOMActivate">
  5832. <![CDATA[
  5833. if (grp_dropdownmenu.visible == true) {
  5834. grp_dropdownmenu.visible = false;
  5835. } else {
  5836. grp_dropdownmenu.attribute("left") = btn_histref.attribute("left");
  5837. grp_dropdownmenu.visible = true;
  5838. }
  5839. ]]>
  5840. </script>
  5841. </button>
  5842. <button id="btn_patinfo" class="btn2_letter4" _auth="R" style="left:481px; top:1px; width:64px; height:19px; ">
  5843. <caption>환자정보</caption>
  5844. <script type="javascript" ev:event="onmouseover">
  5845. <![CDATA[
  5846. if (btn_patinfo.disabled == false) {
  5847. model.toggle("patinfo");
  5848. grp_dropdownmenu.attribute("left") = btn_patinfo.attribute("left");
  5849. }
  5850. ]]>
  5851. </script>
  5852. <script type="javascript" ev:event="onmousedown">
  5853. <![CDATA[
  5854. // if (grp_dropdownmenu.visible == true) {
  5855. // grp_dropdownmenu.visible = false;
  5856. // } else {
  5857. // grp_dropdownmenu.attribute("left") = btn_patinfo.attribute("left");
  5858. // grp_dropdownmenu.visible = true;
  5859. // }
  5860. ]]>
  5861. </script>
  5862. <script type="javascript" ev:event="DOMActivate">
  5863. <![CDATA[
  5864. if (grp_dropdownmenu.visible == true) {
  5865. grp_dropdownmenu.visible = false;
  5866. } else {
  5867. grp_dropdownmenu.attribute("left") = btn_patinfo.attribute("left");
  5868. grp_dropdownmenu.visible = true;
  5869. }
  5870. ]]>
  5871. </script>
  5872. </button>
  5873. <button id="btn_qualinfo" class="btn2_letter4" _auth="R" style="left:546px; top:1px; width:64px; height:19px; ">
  5874. <caption>자격정보</caption>
  5875. <script type="javascript" ev:event="onmouseover">
  5876. <![CDATA[
  5877. if (btn_qualinfo.disabled == false) {
  5878. model.toggle("qualinfo");
  5879. grp_dropdownmenu.attribute("left") = btn_qualinfo.attribute("left");
  5880. }
  5881. ]]>
  5882. </script>
  5883. <script type="javascript" ev:event="onmousedown">
  5884. <![CDATA[
  5885. // if (grp_dropdownmenu.visible == true) {
  5886. // grp_dropdownmenu.visible = false;
  5887. // } else {
  5888. // grp_dropdownmenu.attribute("left") = btn_qualinfo.attribute("left");
  5889. // grp_dropdownmenu.visible = true;
  5890. // }
  5891. ]]>
  5892. </script>
  5893. <script type="javascript" ev:event="DOMActivate">
  5894. <![CDATA[
  5895. if (grp_dropdownmenu.visible == true) {
  5896. grp_dropdownmenu.visible = false;
  5897. } else {
  5898. grp_dropdownmenu.attribute("left") = btn_qualinfo.attribute("left");
  5899. grp_dropdownmenu.visible = true;
  5900. }
  5901. ]]>
  5902. </script>
  5903. </button>
  5904. <button id="btn_prcpref" class="btn2_letter4" _auth="R" style="left:611px; top:1px; width:64px; height:19px; ">
  5905. <caption>처방조회</caption>
  5906. <script type="javascript" ev:event="onmouseover">
  5907. <![CDATA[
  5908. if (btn_prcpref.disabled == false) {
  5909. model.toggle("prcpref");
  5910. grp_dropdownmenu.attribute("left") = btn_prcpref.attribute("left");
  5911. }
  5912. ]]>
  5913. </script>
  5914. <script type="javascript" ev:event="onmousedown">
  5915. <![CDATA[
  5916. // if (grp_dropdownmenu.visible == true) {
  5917. // grp_dropdownmenu.visible = false;
  5918. // } else {
  5919. // grp_dropdownmenu.attribute("left") = btn_prcpref.attribute("left");
  5920. // grp_dropdownmenu.visible = true;
  5921. // }
  5922. ]]>
  5923. </script>
  5924. <script type="javascript" ev:event="DOMActivate">
  5925. <![CDATA[
  5926. if (grp_dropdownmenu.visible == true) {
  5927. grp_dropdownmenu.visible = false;
  5928. } else {
  5929. grp_dropdownmenu.attribute("left") = btn_prcpref.attribute("left");
  5930. grp_dropdownmenu.visible = true;
  5931. }
  5932. ]]>
  5933. </script>
  5934. </button>
  5935. <button id="btn_mediinfo" class="btn2_letter4" _auth="R" style="left:676px; top:1px; width:64px; height:19px; ">
  5936. <caption>투약정보</caption>
  5937. <script type="javascript" ev:event="onmouseover">
  5938. <![CDATA[
  5939. if (btn_mediinfo.disabled == false) {
  5940. model.toggle("mediinfo");
  5941. grp_dropdownmenu.attribute("left") = btn_mediinfo.attribute("left");
  5942. }
  5943. ]]>
  5944. </script>
  5945. <script type="javascript" ev:event="onmousedown">
  5946. <![CDATA[
  5947. // if (grp_dropdownmenu.visible == true) {
  5948. // grp_dropdownmenu.visible = false;
  5949. // } else {
  5950. // grp_dropdownmenu.attribute("left") = btn_mediinfo.attribute("left");
  5951. // grp_dropdownmenu.visible = true;
  5952. // }
  5953. ]]>
  5954. </script>
  5955. <script type="javascript" ev:event="DOMActivate">
  5956. <![CDATA[
  5957. if (grp_dropdownmenu.visible == true) {
  5958. grp_dropdownmenu.visible = false;
  5959. } else {
  5960. grp_dropdownmenu.attribute("left") = btn_mediinfo.attribute("left");
  5961. grp_dropdownmenu.visible = true;
  5962. }
  5963. ]]>
  5964. </script>
  5965. </button>
  5966. <button id="btn_rsltsrch" class="btn2_letter4" _auth="R" style="left:741px; top:1px; width:64px; height:19px; ">
  5967. <caption>결과조회</caption>
  5968. <script type="javascript" ev:event="DOMActivate">
  5969. <![CDATA[
  5970. fOrderRsltSrch();
  5971. ]]>
  5972. </script>
  5973. <script type="javascript" ev:event="onmouseover">
  5974. <![CDATA[
  5975. if (grp_dropdownmenu.visible == true) {
  5976. grp_dropdownmenu.visible = false;
  5977. }
  5978. ]]>
  5979. </script>
  5980. </button>
  5981. <button id="btn_ordamt" class="btn2_letter3" _auth="R" style="left:806px; top:1px; width:53px; height:19px; ">
  5982. <caption>진료비</caption>
  5983. <script type="javascript" ev:event="onmouseover">
  5984. <![CDATA[
  5985. if (btn_ordamt.disabled == false) {
  5986. model.toggle("ordamt");
  5987. grp_dropdownmenu.attribute("left") = btn_ordamt.attribute("left");
  5988. }
  5989. ]]>
  5990. </script>
  5991. <script type="javascript" ev:event="onmousedown">
  5992. <![CDATA[
  5993. // if (grp_dropdownmenu.visible == true) {
  5994. // grp_dropdownmenu.visible = false;
  5995. // } else {
  5996. // grp_dropdownmenu.attribute("left") = btn_ordamt.attribute("left");
  5997. // grp_dropdownmenu.visible = true;
  5998. // }
  5999. ]]>
  6000. </script>
  6001. <script type="javascript" ev:event="DOMActivate">
  6002. <![CDATA[
  6003. if (grp_dropdownmenu.visible == true) {
  6004. grp_dropdownmenu.visible = false;
  6005. } else {
  6006. grp_dropdownmenu.attribute("left") = btn_ordamt.attribute("left");
  6007. grp_dropdownmenu.visible = true;
  6008. }
  6009. ]]>
  6010. </script>
  6011. </button>
  6012. <button id="btn_etcref" class="btn2_letter4" _auth="R" style="left:860px; top:1px; width:64px; height:19px; ">
  6013. <caption>각종조회</caption>
  6014. <script type="javascript" ev:event="onmouseover">
  6015. <![CDATA[
  6016. if (btn_etcref.disabled == false) {
  6017. model.toggle("etcref");
  6018. grp_dropdownmenu.attribute("left") = btn_etcref.attribute("left");
  6019. }
  6020. ]]>
  6021. </script>
  6022. <script type="javascript" ev:event="onmousedown">
  6023. <![CDATA[
  6024. // if (grp_dropdownmenu.visible == true) {
  6025. // grp_dropdownmenu.visible = false;
  6026. // } else {
  6027. // grp_dropdownmenu.attribute("left") = btn_etcref.attribute("left");
  6028. // grp_dropdownmenu.visible = true;
  6029. // }
  6030. ]]>
  6031. </script>
  6032. <script type="javascript" ev:event="DOMActivate">
  6033. <![CDATA[
  6034. if (grp_dropdownmenu.visible == true) {
  6035. grp_dropdownmenu.visible = false;
  6036. } else {
  6037. grp_dropdownmenu.attribute("left") = btn_etcref.attribute("left");
  6038. grp_dropdownmenu.visible = true;
  6039. }
  6040. ]]>
  6041. </script>
  6042. </button>
  6043. <button id="btn_emr" class="btn2_letter2" _auth="R" style="left:925px; top:1px; width:42px; height:19px; ">
  6044. <caption>EMR</caption>
  6045. <script type="javascript" ev:event="onmouseover">
  6046. <![CDATA[
  6047. if (btn_emr.disabled == false) {
  6048. model.toggle("emr");
  6049. grp_dropdownmenu.attribute("left") = btn_emr.attribute("left");
  6050. }
  6051. ]]>
  6052. </script>
  6053. <script type="javascript" ev:event="onmousedown">
  6054. <![CDATA[
  6055. // if (grp_dropdownmenu.visible == true) {
  6056. // grp_dropdownmenu.visible = false;
  6057. // } else {
  6058. // grp_dropdownmenu.attribute("left") = btn_emr.attribute("left");
  6059. // grp_dropdownmenu.visible = true;
  6060. // }
  6061. ]]>
  6062. </script>
  6063. <script type="javascript" ev:event="DOMActivate">
  6064. <![CDATA[
  6065. if (grp_dropdownmenu.visible == true) {
  6066. grp_dropdownmenu.visible = false;
  6067. } else {
  6068. grp_dropdownmenu.attribute("left") = btn_emr.attribute("left");
  6069. grp_dropdownmenu.visible = true;
  6070. }
  6071. ]]>
  6072. </script>
  6073. </button>
  6074. <button id="btn_erroomref" class="btn2_letter5" _auth="R" style="left:968px; top:1px; width:75px; height:19px; ">
  6075. <caption>응급실정보</caption>
  6076. <script type="javascript" ev:event="onmouseover">
  6077. <![CDATA[
  6078. if (btn_erroomref.disabled == false) {
  6079. model.toggle("erroomref");
  6080. grp_dropdownmenu.attribute("left") = btn_erroomref.attribute("left");
  6081. }
  6082. ]]>
  6083. </script>
  6084. <script type="javascript" ev:event="onmousedown">
  6085. <![CDATA[
  6086. // if (grp_dropdownmenu.visible == true) {
  6087. // grp_dropdownmenu.visible = false;
  6088. // } else {
  6089. // grp_dropdownmenu.attribute("left") = btn_erroomref.attribute("left");
  6090. // grp_dropdownmenu.visible = true;
  6091. // }
  6092. ]]>
  6093. </script>
  6094. <script type="javascript" ev:event="DOMActivate">
  6095. <![CDATA[
  6096. if (grp_dropdownmenu.visible == true) {
  6097. grp_dropdownmenu.visible = false;
  6098. } else {
  6099. grp_dropdownmenu.attribute("left") = btn_erroomref.attribute("left");
  6100. grp_dropdownmenu.visible = true;
  6101. }
  6102. ]]>
  6103. </script>
  6104. </button>
  6105. <button id="btn_careinforef" class="btn2_letter4" visibility="hidden" _auth="R" style="left:1044px; top:1px; width:64px; height:19px; ">
  6106. <caption>간호정보</caption>
  6107. <script type="javascript" ev:event="onmouseover">
  6108. <![CDATA[
  6109. if (btn_careinforef.disabled == false) {
  6110. model.toggle("careinforef");
  6111. grp_dropdownmenu.attribute("left") = parseInt(btn_careinforef.attribute("left")) + parseInt(btn_careinforef.attribute("width")) - parseInt(grp_dropdownmenu.attribute("width"));
  6112. }
  6113. ]]>
  6114. </script>
  6115. <script type="javascript" ev:event="onmousedown">
  6116. <![CDATA[
  6117. // if (grp_dropdownmenu.visible == true) {
  6118. // grp_dropdownmenu.visible = false;
  6119. // } else {
  6120. // grp_dropdownmenu.attribute("left") = parseInt(btn_careinforef.attribute("left")) + parseInt(btn_careinforef.attribute("width")) - parseInt(grp_dropdownmenu.attribute("width"));
  6121. // grp_dropdownmenu.visible = true;
  6122. // }
  6123. ]]>
  6124. </script>
  6125. <script type="javascript" ev:event="DOMActivate">
  6126. <![CDATA[
  6127. if (grp_dropdownmenu.visible == true) {
  6128. grp_dropdownmenu.visible = false;
  6129. } else {
  6130. grp_dropdownmenu.attribute("left") = parseInt(btn_careinforef.attribute("left")) + parseInt(btn_careinforef.attribute("width")) - parseInt(grp_dropdownmenu.attribute("width"));
  6131. grp_dropdownmenu.visible = true;
  6132. }
  6133. ]]>
  6134. </script>
  6135. </button>
  6136. <button id="btn_trnptinforef" class="btn2_letter4" _auth="R" style="left:1044px; top:1px; width:64px; height:19px; ">
  6137. <caption>이식정보</caption>
  6138. <script type="javascript" ev:event="onmouseover">
  6139. <![CDATA[
  6140. if (btn_trnptinforef.disabled == false) {
  6141. model.toggle("trnptinforef");
  6142. grp_dropdownmenu.attribute("left") = parseInt(btn_trnptinforef.attribute("left")) + parseInt(btn_trnptinforef.attribute("width")) - parseInt(grp_dropdownmenu.attribute("width"));
  6143. }
  6144. ]]>
  6145. </script>
  6146. <script type="javascript" ev:event="onmousedown">
  6147. <![CDATA[
  6148. // if (grp_dropdownmenu.visible == true) {
  6149. // grp_dropdownmenu.visible = false;
  6150. // } else {
  6151. // grp_dropdownmenu.attribute("left") = parseInt(btn_trnptinforef.attribute("left")) + parseInt(btn_trnptinforef.attribute("width")) - parseInt(grp_dropdownmenu.attribute("width"));
  6152. // grp_dropdownmenu.visible = true;
  6153. // }
  6154. ]]>
  6155. </script>
  6156. <script type="javascript" ev:event="DOMActivate">
  6157. <![CDATA[
  6158. if (grp_dropdownmenu.visible == true) {
  6159. grp_dropdownmenu.visible = false;
  6160. } else {
  6161. grp_dropdownmenu.attribute("left") = parseInt(btn_trnptinforef.attribute("left")) + parseInt(btn_trnptinforef.attribute("width")) - parseInt(grp_dropdownmenu.attribute("width"));
  6162. grp_dropdownmenu.visible = true;
  6163. }
  6164. ]]>
  6165. </script>
  6166. </button>
  6167. <button id="btn_patspcfyn" style="left:77px; top:5px; width:14px; height:14px; background-image:../../../com/commonweb/images/icon_btn.gif; ">
  6168. <caption/>
  6169. <script type="javascript" ev:event="DOMActivate">
  6170. <![CDATA[
  6171. // pam/patinfomngtweb/xrw/SMPMC01300_특이환자관리.xrw
  6172. model.resetInstanceNode("/root/hidden/smpmc01300/cond");
  6173. model.resetInstanceNode("/root/hidden/smpmc01300/rslt");
  6174. model.setValue("/root/hidden/smpmc01300/cond/srchcond", 1);
  6175. model.setValue("/root/hidden/smpmc01300/cond/pid", model.getValue("/root/main/item1/clbs/pid"));
  6176. modal("SMPMC01300", "1", "", "", "SMPMC01300", "/root/hidden/smpmc01300/cond", "/root/source");
  6177. var indd = model.getValue("/root/main/item1/clbs/indd");
  6178. if (indd) {
  6179. // SMPMC01300_특이환자관리 팝업에서 특이내역을 추가,삭제한 경우 결과를 표시하기 위해
  6180. model.setValue("/root/hidden/smpmc01300/cond/acptdd", indd);
  6181. submit("TRPID20308");
  6182. var patspcfyn = model.getValue("/root/hidden/smpmc01300/rslt/patspcfyn");
  6183. model.setValue("/root/main/item1/clbs/patspcfyn", patspcfyn);
  6184. // 특이환자 버튼 설정
  6185. if (model.getValue("/root/main/item1/clbs/patspcfyn") == "Y") {
  6186. btn_patspcfyn.attribute("background-image") = "../../../com/commonweb/images/icon_btn_s.gif"; // 주황색
  6187. } else {
  6188. btn_patspcfyn.attribute("background-image") = "../../../com/commonweb/images/icon_btn.gif"; // 파란색
  6189. }
  6190. //model.refresh();
  6191. }
  6192. //
  6193. //
  6194. // var pid = model.getValue("/root/main/item1/otpt/pid");
  6195. // var cretno = model.getValue("/root/main/item1/otpt/cretno");
  6196. // var orddd = model.getValue("/root/main/item1/otpt/orddd");
  6197. // if (pid != "" && cretno != "") {
  6198. // model.setValue("/root/send/item6/list/srchcond", 1);
  6199. // model.setValue("/root/send/item6/list/pid", pid);
  6200. // model.setValue("/root/send/item6/list/orddd", orddd);
  6201. // // pam/patinfomngtweb/xrw/SMPMC01300_특이환자관리.xrw 띄우기
  6202. // modal("SMPMC01300", "1", "", "", "SMPMC01300", "/root/send/item6/list", "/root/source");
  6203. // // 환자의 특이내역이 있는지 다시 조회하여 문제환자 Y,N을 붙여주도록 한다.
  6204. // submit("TRPIJ00711");
  6205. // var probjudgflag = model.getValue("/root/main/item6/prob/probjudgflag");
  6206. // model.setValue("/root/main/item1/otpt/probjudgflag", probjudgflag);
  6207. // model.refresh();
  6208. // }
  6209. ]]>
  6210. </script>
  6211. </button>
  6212. <input id="ipt_information" ref="/root/hidden/devinfor" class="input_default" navindex="3" visibility="hidden" maxlength="10" format="####" _auth="R" style="left:125px; top:297px; width:745px; height:19px; ">
  6213. <hint>
  6214. <![CDATA[개발용도(지우지말것)]]>
  6215. </hint>
  6216. <script type="javascript" ev:event="DOMFocusOut">
  6217. <![CDATA[
  6218. ipt_information.visible= false;
  6219. ]]>
  6220. </script>
  6221. </input>
  6222. <button id="btn_closepredocupopup" class="btn4_letter2" style="left:1117px; top:677px; width:56px; height:22px; ">
  6223. <caption>닫기</caption>
  6224. <close ev:event="DOMActivate"/>
  6225. </button>
  6226. <button id="button1" accesskey="F8" class="btn5_letter5" visibility="hidden" _auth="X" style="left:1119px; top:467px; width:75px; height:19px; ">
  6227. <caption>완료</caption>
  6228. <script type="javascript" ev:event="DOMActivate">
  6229. <![CDATA[
  6230. if (button1.disabled == false ){
  6231. fGetNextAftJudgTrgtMan("C"); // P0151 (사후심사-심사완료여부) C: 심사완료
  6232. } else {
  6233. messageBox("비활성 상태입니다. 진행","E001");
  6234. }
  6235. ]]>
  6236. </script>
  6237. <hint>
  6238. <![CDATA[F7&F8]]>
  6239. </hint>
  6240. </button>
  6241. <select1 id="cmb_rarecancermsg" ref="/root/hidden/rarecancermsg/msg" visibility="hidden" appearance="minimal" style="left:95px; top:1px; width:320px; height:19px; ">
  6242. <choices>
  6243. <itemset nodeset="/root/main/rarecancermsglist/rarecancermsg">
  6244. <label ref="msg"/>
  6245. <value ref="msg"/>
  6246. </itemset>
  6247. </choices>
  6248. </select1>
  6249. <img id="img_msg" visibility="hidden" src="../../../com/commonweb/images/icon_input.gif" style="left:1176px; top:2px; width:16px; height:15px; background-stretch:stretch; ">
  6250. <script type="javascript" ev:event="onclick">
  6251. <![CDATA[
  6252. // 등록번호가 존재하면(환자가 조회되었다는 판단에 의해) 간편조회 열기
  6253. if (model.getValue("/root/main/item1/clbs/pid") != "" &&
  6254. model.getValue("/root/main/item1/clbs/pid") != " " &&
  6255. model.getValue("/root/main/item1/clbs/pid") != "-" &&
  6256. model.getValue("/root/main/item1/clbs/pid") != null ){
  6257. // SMPIJ00300.js 환자전체 메세지 내용 간편조회
  6258. fJudgPatMsgTrsmRef();
  6259. }
  6260. ]]>
  6261. </script>
  6262. </img>
  6263. <button id="btn_redu" class="btn2_letter4" style="left:1109px; top:1px; width:64px; height:19px; ">
  6264. <caption>삭감처방</caption>
  6265. <script type="javascript" ev:event="DOMActivate">
  6266. <![CDATA[
  6267. setParameter("openflag", 'O');
  6268. setParameter("pid", model.getvalue("/root/main/item1/clbs/pid"));
  6269. open("SMPIS00600", "", "50", "50" ,"SMPIS00600", "", "");
  6270. ]]>
  6271. </script>
  6272. </button>
  6273. </group>
  6274. <group id="grp_dropdownmenu" visibility="hidden" style="left:480px; top:35px; width:181px; height:321px; border-color:#c7a3cf; border-style:solid; ">
  6275. <button id="btn_closedropdownmenu" class="btn4_letter2" style="left:120px; top:294px; width:56px; height:22px; ">
  6276. <caption>닫기</caption>
  6277. <script type="javascript" ev:event="DOMActivate">
  6278. <![CDATA[
  6279. grp_dropdownmenu.visible = false;
  6280. ]]>
  6281. </script>
  6282. </button>
  6283. <switch id="swt_dropdownmenu" class="sw_box" style="left:0px; top:0px; width:179px; height:289px; ">
  6284. <case id="histref">
  6285. <line id="line50" class="line_1" style="x1:0px; y1:19px; x2:175px; y2:19px; "/>
  6286. <caption id="caption133" class="tit_2" style="left:6px; top:4px; width:129px; height:13px; ">이력조회</caption>
  6287. <treeview id="trv_histref" expanddepth="3" itemsettype="depth" style="left:0px; top:25px; width:175px; height:260px; ">
  6288. <item>
  6289. <label>이력조회</label>
  6290. <value/>
  6291. <item>
  6292. <label>환자진료정보</label>
  6293. <value>SMMMO02500</value>
  6294. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6295. </item>
  6296. <item>
  6297. <label>환자상세내역</label>
  6298. <value>SMPMC01900</value>
  6299. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6300. </item>
  6301. <item>
  6302. <label>외래등록조회</label>
  6303. <value>SMPMO00600</value>
  6304. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6305. </item>
  6306. <item>
  6307. <label>청구및자료수집이력</label>
  6308. <value>SMPIS00100</value>
  6309. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6310. </item>
  6311. <item>
  6312. <label>계산처방시행조회</label>
  6313. <value>SMPIS00500</value>
  6314. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6315. </item>
  6316. <item>
  6317. <label>청구삭감조회</label>
  6318. <value>SMPIS00600</value>
  6319. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6320. </item>
  6321. </item>
  6322. <script type="javascript" ev:event="onclick">
  6323. <![CDATA[
  6324. var select = trv_histref.selectedIndex;
  6325. var view = trv_histref.item(select);
  6326. if (view == null) return;
  6327. var trgtWindow = trv_histref.item(select).value;
  6328. // 환자진료정보
  6329. if (trgtWindow == "SMMMO02500") {
  6330. fOpenSMMMO02500_1(model.getValue("/root/main/item1/clbs/pid"));
  6331. // 환자상세내역
  6332. } else if (trgtWindow == "SMPMC01900") {
  6333. fOpenSMPMC01900(model.getValue("/root/main/item1/clbs/pid"));
  6334. // 외래등록조회
  6335. } else if (trgtWindow == "SMPMO00600") {
  6336. fOpenSMPMO00600(model.getValue("/root/main/item1/clbs/pid"));
  6337. // 청구및자료수집이력
  6338. } else if (trgtWindow == "SMPIS00100") {
  6339. fOpenSMPIS00100("I"
  6340. , ""
  6341. , model.getValue("/root/main/item1/clbs/pid")
  6342. );
  6343. // 환자별삭감이력
  6344. } else if (trgtWindow == "SMPID20900") {
  6345. fOpenSMPID20900(model.getValue("/root/main/item1/clbs/pid"));
  6346. // 처방별 환자조회(처방/시행)
  6347. } else if (trgtWindow == "SMPIS00500") {
  6348. var fromdd = getCurrentDate().toDate().getAddDate(-7,"D").getDateFormat("YYYYMMDD");
  6349. var todd = getCurrentDate();
  6350. fOpenSMPIS00500("P"
  6351. , fromdd
  6352. , todd
  6353. , "I"
  6354. , ""//model.getValue("/root/main/item1/clbs/orddeptcd")
  6355. , ""//model.getValue("/root/main/item1/clbs/orddrid")
  6356. , "calcscorcd"
  6357. , ""
  6358. , model.getValue("/root/main/item1/clbs/pid")
  6359. );
  6360. // 처방별 환자조회(청구/삭감)
  6361. } else if (trgtWindow == "SMPIS00600") {
  6362. fOpenSMPIS00600(model.getValue("/root/main/item1/clbs/clamflagcd")
  6363. , model.getValue("/root/main/item1/clbs/clamym")
  6364. , model.getValue("/root/main/item1/clbs/clamym")
  6365. , model.getValue("/root/main/item1/clbs/clamdg")
  6366. , model.getValue("/root/main/item1/clbs/clamym")
  6367. , model.getValue("/root/main/item1/clbs/clamdg")
  6368. , ""//model.getValue("/root/main/item1/clbs/insukindcd")
  6369. , model.getValue("/root/main/item1/clbs/ioflag")
  6370. , model.getValue("/root/main/item1/clbs/clamdeptcd")
  6371. , ""//model.getValue("/root/main/item1/clbs/orddeptcd")
  6372. , ""//model.getValue("/root/main/item1/clbs/orddrid")
  6373. , "calcscorcd"
  6374. , ""
  6375. , model.getValue("/root/main/item1/clbs/pid")
  6376. );
  6377. }
  6378. ]]>
  6379. </script>
  6380. </treeview>
  6381. </case>
  6382. <case id="patinfo" selected="true" style="left:0px; top:0px; width:177px; height:287px; ">
  6383. <line id="line7" class="line_1" style="x1:0px; y1:19px; x2:175px; y2:19px; "/>
  6384. <caption id="caption10" class="tit_2" style="left:6px; top:4px; width:129px; height:13px; ">환자정보</caption>
  6385. <treeview id="trv_patinfo" expanddepth="3" itemsettype="depth" style="left:0px; top:25px; width:175px; height:260px; ">
  6386. <script type="javascript" ev:event="onclick">
  6387. <![CDATA[
  6388. var select = trv_patinfo.selectedIndex;
  6389. var view = trv_patinfo.item(select);
  6390. if (view == null) return;
  6391. var trgtWindow = trv_patinfo.item(select).value;
  6392. // 입원의뢰서
  6393. if (trgtWindow == "SPMMO00100") {
  6394. fOpenSPMMO00100(model.getValue("/root/main/item1/clbs/pid")
  6395. , model.getValue("/root/main/item1/clbs/patnm")
  6396. , model.getValue("/root/main/item1/clbs/orddeptcd")
  6397. , model.getValue("/root/main/item1/clbs/orddrid")
  6398. , model.getValue("/root/main/item1/clbs/insukindcd")
  6399. , model.getValue("/root/main/item1/clbs/suppkindcd")
  6400. , model.getValue("/root/main/item1/clbs/indd")
  6401. , model.getValue("/root/main/item1/clbs/cretno")
  6402. , "I");
  6403. // 카덱스조회
  6404. } else if (trgtWindow == "SMMNB00200") {
  6405. fOpenSMMNB00200();
  6406. // 병기분류조회
  6407. } else if (trgtWindow == "SPMMO08500") {
  6408. fOpenSPMMO08500();
  6409. // 중증등록신청서
  6410. } else if (trgtWindow == "SMMRD00200") {
  6411. fOpenSMMRD00200(model.getValue("/root/main/item1/clbs/pid"), "I");
  6412. // 중증등록사항
  6413. } else if (trgtWindow == "SPMRD00900") {
  6414. fOpenSPMRD00900(model.getValue("/root/main/item1/clbs/pid"), "I");
  6415. // 병원감염대상자기록
  6416. } else if (trgtWindow == "SMASI00100") {
  6417. fOpenSMASI00100(model.getValue("/root/main/item1/clbs/pid"));
  6418. // 환자별영양관리
  6419. } else if (trgtWindow == "SMANC00300") {
  6420. var reqdd = getCurrentDate();
  6421. fOpenSMANC00300(model.getValue("/root/main/item1/clbs/pid")
  6422. , model.getValue("/root/main/item1/clbs/patnm")
  6423. , reqdd
  6424. , ""
  6425. , ""
  6426. , model.getValue("/root/main/item1/clbs/cretno")
  6427. , model.getValue("/root/main/item1/clbs/orddeptcd")
  6428. , ""
  6429. , model.getValue("/root/main/item1/clbs/indd")
  6430. );
  6431. // NST환자관리
  6432. } else if (trgtWindow == "SMADC02600") {
  6433. var cnstdd = getCurrentDate();
  6434. fOpenSMADC02600(model.getValue("/root/main/item1/clbs/pid")
  6435. , model.getValue("/root/main/item1/clbs/indd")
  6436. , model.getValue("/root/main/item1/clbs/cretno")
  6437. , ""
  6438. , ""
  6439. , ""
  6440. , cnstdd
  6441. );
  6442. // 피부욕창기록
  6443. } else if (trgtWindow == "SMMNW04700") {
  6444. fOpenSMMNW04700();
  6445. // 중증도및위험사정
  6446. } else if (trgtWindow == "SMMNW04000") {
  6447. fOpenSMMNW04000();
  6448. // 투석간호정보
  6449. } else if (trgtWindow == "SMMND00300") {
  6450. fOpenSMMND00300();
  6451. // 사망등록조회
  6452. } else if (trgtWindow == "SMMRD01100") {
  6453. fOpenSMMRD01100();
  6454. // 희귀난치등록신청서
  6455. } else if (trgtWindow == "SMMRD02000") {
  6456. fOpenSMMRD02000(model.getValue("/root/main/item1/clbs/pid"));
  6457. //휘귀난치등록사항
  6458. }else if (trgtWindow == "SPMRD02100") {
  6459. fOpenSPMRD02100(model.getValue("/root/main/item1/clbs/pid"));
  6460. // 항암제투여현황
  6461. } else if (trgtWindow == "SMPIJ02900") {
  6462. fOpenSMPIJ02900(model.getValue("/root/main/item1/clbs/pid"));
  6463. }
  6464. ]]>
  6465. </script>
  6466. <item>
  6467. <label>환자정보</label>
  6468. <value/>
  6469. <item>
  6470. <label>입원의뢰서</label>
  6471. <value>SPMMO00100</value>
  6472. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6473. </item>
  6474. <item>
  6475. <label>카덱스조회</label>
  6476. <value>SMMNB00200</value>
  6477. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6478. </item>
  6479. <item>
  6480. <label>병기분류조회</label>
  6481. <value>SPMMO08500</value>
  6482. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6483. </item>
  6484. <item>
  6485. <label>중증등록신청서</label>
  6486. <value>SMMRD00200</value>
  6487. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6488. </item>
  6489. <item>
  6490. <label>중증등록사항</label>
  6491. <value>SPMRD00900</value>
  6492. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6493. </item>
  6494. <item>
  6495. <label>희귀난치등록신청서</label>
  6496. <value>SMMRD02000</value>
  6497. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6498. </item>
  6499. <item>
  6500. <label>휘귀난치등록사항</label>
  6501. <value>SPMRD02100</value>
  6502. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6503. </item>
  6504. <item>
  6505. <label>병원감염대상자기록</label>
  6506. <value>SMASI00100</value>
  6507. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6508. </item>
  6509. <item>
  6510. <label>환자별영양관리</label>
  6511. <value>SMANC00300</value>
  6512. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6513. </item>
  6514. <item>
  6515. <label>피부욕창기록</label>
  6516. <value>SMMNW04700</value>
  6517. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6518. </item>
  6519. <item>
  6520. <label>중증도및위험사정</label>
  6521. <value>SMMNW04000</value>
  6522. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6523. </item>
  6524. <item>
  6525. <label>투석간호정보</label>
  6526. <value>SMMND00300</value>
  6527. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6528. </item>
  6529. <item>
  6530. <label>사망등록조회</label>
  6531. <value>SMMRD01100</value>
  6532. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6533. </item>
  6534. <item>
  6535. <label>항암제투여현황</label>
  6536. <value>SMPIJ02900</value>
  6537. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6538. </item>
  6539. </item>
  6540. </treeview>
  6541. </case>
  6542. <case id="qualinfo">
  6543. <line id="line8" class="line_1" style="x1:0px; y1:19px; x2:175px; y2:19px; "/>
  6544. <caption id="caption36" class="tit_2" style="left:6px; top:4px; width:129px; height:13px; ">자격정보</caption>
  6545. <treeview id="trv_qualinfo" expanddepth="3" itemsettype="depth" style="left:0px; top:25px; width:175px; height:260px; ">
  6546. <item>
  6547. <label>자격정보</label>
  6548. <value/>
  6549. <item>
  6550. <label>환자기본정보관리</label>
  6551. <value>SMPMC01400</value>
  6552. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6553. </item>
  6554. <item>
  6555. <label>재원변경관리</label>
  6556. <value>SMPMI00400</value>
  6557. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6558. </item>
  6559. <item>
  6560. <label>자보환자관리</label>
  6561. <value>SMPMC02600</value>
  6562. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6563. </item>
  6564. <item>
  6565. <label>산재공상환자관리</label>
  6566. <value>SMPMC02700</value>
  6567. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6568. </item>
  6569. <item>
  6570. <label>장애인환자관리</label>
  6571. <value>SMPMC01700</value>
  6572. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6573. </item>
  6574. <item>
  6575. <label>선택진료관리</label>
  6576. <value>SMPMC06500</value>
  6577. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6578. </item>
  6579. </item>
  6580. <script type="javascript" ev:event="onclick">
  6581. <![CDATA[
  6582. var select = trv_qualinfo.selectedIndex;
  6583. var view = trv_qualinfo.item(select);
  6584. if (view == null) return;
  6585. var trgtWindow = trv_qualinfo.item(select).value;
  6586. // 환자기본정보관리
  6587. if (trgtWindow == "SMPMC01400") {
  6588. fOpenSMPMC01400(model.getValue("/root/main/item1/clbs/pid"), "1");
  6589. // 재원변경관리
  6590. } else if (trgtWindow == "SMPMI00400") {
  6591. fOpenSMPMI00400(model.getValue("/root/main/item1/clbs/pid"));
  6592. // 자보환자관리
  6593. } else if (trgtWindow == "SMPMC02600") {
  6594. fOpenSMPMC02600(model.getValue("/root/main/item1/clbs/pid"));
  6595. // 산재공상환자관리
  6596. } else if (trgtWindow == "SMPMC02700") {
  6597. fOpenSMPMC02700(model.getValue("/root/main/item1/clbs/pid"));
  6598. // 장애인환자관리
  6599. } else if (trgtWindow == "SMPMC01700") {
  6600. fOpenSMPMC01700();
  6601. // 선택진료관리
  6602. } else if (trgtWindow == "SMPMC06500") {
  6603. fOpenSMPMC06500(model.getValue("/root/main/item1/clbs/pid"));
  6604. }
  6605. ]]>
  6606. </script>
  6607. </treeview>
  6608. </case>
  6609. <case id="prcpref">
  6610. <line id="line10" class="line_1" style="x1:0px; y1:19px; x2:175px; y2:19px; "/>
  6611. <caption id="caption38" class="tit_2" style="left:6px; top:4px; width:129px; height:13px; ">처방조회</caption>
  6612. <treeview id="trv_prcpref" expanddepth="3" itemsettype="depth" style="left:0px; top:25px; width:175px; height:260px; ">
  6613. <item>
  6614. <label>처방조회</label>
  6615. <value/>
  6616. <item>
  6617. <label>처방상태조회</label>
  6618. <value>SMPIJ01200</value>
  6619. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6620. </item>
  6621. <item>
  6622. <label>식사력조회</label>
  6623. <value>SMANT01000</value>
  6624. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6625. </item>
  6626. <item>
  6627. <label>수혈조회</label>
  6628. <value>SMMNR01000</value>
  6629. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6630. </item>
  6631. <item>
  6632. <label>수혈현황조회</label>
  6633. <value>SMMNR04600</value>
  6634. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6635. </item>
  6636. <item>
  6637. <label>검사진행현황</label>
  6638. <value>SMAEA00500</value>
  6639. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6640. </item>
  6641. <item>
  6642. <label>개인별예약현황</label>
  6643. <value>SMAEA00300</value>
  6644. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6645. </item>
  6646. <item>
  6647. <label>미수행처방관리</label>
  6648. <value>SMPIJ01700</value>
  6649. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6650. </item>
  6651. <item>
  6652. <label>시행부서처방</label>
  6653. <value>SMMMO00200</value>
  6654. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6655. </item>
  6656. <item>
  6657. <label>판독신청</label>
  6658. <value>SMAEF00100</value>
  6659. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6660. </item>
  6661. <item>
  6662. <label>수혈심사</label>
  6663. <value>SPPIZ01800</value>
  6664. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6665. </item>
  6666. <item>
  6667. <label>처방조회</label>
  6668. <value>SPMMO14900</value>
  6669. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6670. </item>
  6671. <item>
  6672. <label>특수조제실처방조회</label>
  6673. <value>SMADT20100</value>
  6674. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6675. </item>
  6676. <item>
  6677. <label>병리조직결과조회</label>
  6678. <value>SMLPP00500</value>
  6679. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6680. </item>
  6681. </item>
  6682. <script type="javascript" ev:event="onclick">
  6683. <![CDATA[
  6684. var select = trv_prcpref.selectedIndex;
  6685. var view = trv_prcpref.item(select);
  6686. if (view == null) return;
  6687. var trgtWindow = trv_prcpref.item(select).value;
  6688. // 처방상태조회
  6689. if (trgtWindow == "SMPIJ01200") {
  6690. var todd = getCurrentDate();
  6691. fOpenSMPIJ01200_1(model.getValue("/root/main/item1/clbs/pid")
  6692. , model.getValue("/root/main/item1/clbs/patnm")
  6693. , ""
  6694. , model.getValue("/root/main/item1/clbs/indd")
  6695. , model.getValue("/root/main/item1/clbs/indd")
  6696. , todd
  6697. , "5"
  6698. );
  6699. // 식사력조회
  6700. } else if (trgtWindow == "SMANT01000") {
  6701. var todd = getCurrentDate();
  6702. fOpenSMANT01000_1(model.getValue("/root/main/item1/clbs/pid")
  6703. , model.getValue("/root/main/item1/clbs/patnm")
  6704. , "1"
  6705. , ""
  6706. , ""
  6707. , model.getValue("/root/main/item1/clbs/indd")
  6708. , todd
  6709. );
  6710. // 수혈조회
  6711. } else if (trgtWindow == "SMMNR01000") {
  6712. fOpenSMMNR01000(model.getValue("/root/main/item1/clbs/pid"), "IPRC2");
  6713. // 수혈현황조회
  6714. } else if (trgtWindow == "SMMNR04600") {
  6715. fOpenSMMNR04600();
  6716. // 검사진행현황
  6717. } else if (trgtWindow == "SMAEA00500") {
  6718. var fromdd = getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD");
  6719. var todd = getCurrentDate();
  6720. fOpenSMAEA00500("prcpdd"
  6721. , fromdd
  6722. , todd
  6723. , ""
  6724. , ""
  6725. , model.getValue("/root/main/item1/clbs/orddeptcd")
  6726. , "I"
  6727. , ""
  6728. , model.getValue("/root/main/item1/clbs/pid")
  6729. , model.getValue("/root/main/item1/clbs/patnm")
  6730. );
  6731. // 개인별예약현황
  6732. } else if (trgtWindow == "SMAEA00300") {
  6733. fOpenSMAEA00300(model.getValue("/root/main/item1/clbs/pid"));
  6734. /*
  6735. // CRRT내역
  6736. } else if (trgtWindow == "SMMNW09100") {
  6737. fOpenSMMNW09100();
  6738. */
  6739. // 입원기간중외래미실행오더조회
  6740. } else if (trgtWindow == "SMPIJ01700") {
  6741. fOpenSMPIJ01700(model.getValue("/root/main/item1/clbs/pid")
  6742. , model.getValue("/root/main/item1/clbs/patnm")
  6743. , model.getValue("/root/main/item1/clbs/insukindcd")
  6744. , model.getValue("/root/main/item1/clbs/indd")
  6745. , model.getValue("/root/main/item1/clbs/dschdd")
  6746. , "2"
  6747. );
  6748. // 시행부서 처방
  6749. } else if (trgtWindow == "SMMMO00200") {
  6750. return;
  6751. // 판독신청
  6752. } else if (trgtWindow == "SMAEF00100") {
  6753. fOpenSMAEF00100(model.getValue("/root/main/item1/clbs/pid"));
  6754. // 수혈심사
  6755. } else if (trgtWindow == "SPPIZ01800") {
  6756. fOpenSPPIZ01800(model.getValue("/root/main/item1/iteminfo/pid")
  6757. , model.getValue("/root/main/item1/iteminfo/patnm")
  6758. , model.getValue("/root/main/item1/iteminfo/age")
  6759. , model.getValue("/root/main/item1/iteminfo/gender")
  6760. , model.getValue("/root/main/item1/iteminfo/indd"));
  6761. // 처방조회
  6762. } else if (trgtWindow == "SPMMO14900") {
  6763. fOpenSPMMO14900(model.getValue("/root/main/item1/iteminfo/pid")
  6764. , model.getValue("/root/main/item1/iteminfo/patnm"));
  6765. // 특수조제실처방조회
  6766. } else if (trgtWindow == "SMADT20100") {
  6767. fOpenSMADT20100(model.getValue("/root/main/item1/iteminfo/pid"));
  6768. // 병리조직결과조회
  6769. } else if (trgtWindow == "SMLPP00500") {
  6770. fOpenSMLPP00500(model.getValue("/root/main/item1/iteminfo/pid"));
  6771. }
  6772. ]]>
  6773. </script>
  6774. </treeview>
  6775. </case>
  6776. <case id="mediinfo">
  6777. <line id="line13" class="line_1" style="x1:0px; y1:19px; x2:175px; y2:19px; "/>
  6778. <caption id="caption39" class="tit_2" style="left:6px; top:4px; width:129px; height:13px; ">투약정보</caption>
  6779. <treeview id="trv_mediinfo" expanddepth="3" itemsettype="depth" style="left:0px; top:25px; width:175px; height:260px; ">
  6780. <item>
  6781. <label>투약정보</label>
  6782. <value/>
  6783. <item>
  6784. <label>투약이력</label>
  6785. <value>SPMMO02400</value>
  6786. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6787. </item>
  6788. <item>
  6789. <label>투약기록</label>
  6790. <value>SMMNR04500</value>
  6791. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6792. </item>
  6793. <item>
  6794. <label>제한항생제</label>
  6795. <value>SMASI00800</value>
  6796. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6797. </item>
  6798. <item>
  6799. <label>항암프로토콜</label>
  6800. <value>SMADB01020</value>
  6801. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6802. </item>
  6803. <item>
  6804. <label>주사실액팅조회</label>
  6805. <value>SMMNI00400</value>
  6806. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6807. </item>
  6808. </item>
  6809. <script type="javascript" ev:event="onclick">
  6810. <![CDATA[
  6811. var select = trv_mediinfo.selectedIndex;
  6812. var view = trv_mediinfo.item(select);
  6813. if (view == null) return;
  6814. var trgtWindow = trv_mediinfo.item(select).value;
  6815. // 투약이력
  6816. if (trgtWindow == "SPMMO02400") {
  6817. fOpenSPMMO02400_1(model.getValue("/root/main/item1/clbs/pid")
  6818. , model.getValue("/root/main/item1/clbs/patnm")
  6819. , model.getValue("/root/main/item1/clbs/gender")
  6820. , model.getValue("/root/main/item1/clbs/patage")
  6821. , model.getValue("/root/main/item1/clbs/ioflag")
  6822. );
  6823. // 투약기록
  6824. } else if (trgtWindow == "SMMNR04500") {
  6825. //fOpenSMMNR04500();
  6826. var medrfromdd = model.getValue("/root/main/item1/clbs/indd").substr(0,6) + "01";
  6827. fOpenSMMNR04500_1(model.getValue("/root/main/item1/clbs/pid")
  6828. , model.getValue("/root/main/item1/clbs/indd")
  6829. , model.getValue("/root/main/item1/clbs/cretno")
  6830. , medrfromdd
  6831. , model.getValue("/root/main/item1/clbs/indd")
  6832. );
  6833. // 제한항생제
  6834. } else if (trgtWindow == "SMASI00800") {
  6835. var todd = getCurrentDate();
  6836. fOpenSMASI00800("P"
  6837. , model.getValue("/root/main/item1/clbs/indd")
  6838. , todd
  6839. , ""
  6840. , "-"
  6841. , model.getValue("/root/main/item1/clbs/orddeptcd")
  6842. , model.getValue("/root/main/item1/clbs/pid")
  6843. , model.getValue("/root/main/item1/clbs/patnm")
  6844. );
  6845. // 항암프로토콜
  6846. } else if (trgtWindow == "SMADB01020") {
  6847. model.setValue("/root/send/srchdata/pid", model.getValue("/root/main/item1/clbs/pid"));
  6848. submit("TRADB01007");
  6849. model.makevalue("/root/hidden/SMADB01020_cond/pid", model.getValue("/root/main/prtlhislist/item/pid"));
  6850. model.makevalue("/root/hidden/SMADB01020_cond/cpgappno", model.getValue("/root/main/prtlhislist/item/cpgappno"));
  6851. model.refreshpart("/root/hidden/SMADB01020_cond");
  6852. fOpenSMADB01020_2();
  6853. //} else if (trgtWindow == "SMADB01000") {
  6854. //fOpenSMADB01020();
  6855. //fOpenSMADB01000();
  6856. // 주사실액팅조회
  6857. } else if (trgtWindow == "SMMNI00400") {
  6858. fOpenSMMNI00400();
  6859. }
  6860. ]]>
  6861. </script>
  6862. </treeview>
  6863. </case>
  6864. <case id="ordamt">
  6865. <line id="line14" class="line_1" style="x1:0px; y1:19px; x2:175px; y2:19px; "/>
  6866. <caption id="caption40" class="tit_2" style="left:6px; top:4px; width:129px; height:13px; ">진료비</caption>
  6867. <treeview id="trv_ordamt" expanddepth="3" itemsettype="depth" style="left:0px; top:25px; width:175px; height:260px; ">
  6868. <item>
  6869. <label>진료비</label>
  6870. <value/>
  6871. <item>
  6872. <label>진료비누적(사후)</label>
  6873. <value>SPPID21300</value>
  6874. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6875. </item>
  6876. <item>
  6877. <label>입원진료비상세</label>
  6878. <value>SMPAI00200</value>
  6879. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6880. </item>
  6881. <item>
  6882. <label>외래수납조회</label>
  6883. <value>SMPAO00300</value>
  6884. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6885. </item>
  6886. <item>
  6887. <label>외래처방계산내역조회</label>
  6888. <value>SMPMOTMP00</value>
  6889. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6890. </item>
  6891. <item>
  6892. <label>예상진료비조회</label>
  6893. <value>SMPAI00400</value>
  6894. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6895. </item>
  6896. <item>
  6897. <label>급종변경전후금액조회</label>
  6898. <value>SMPAI03600</value>
  6899. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6900. </item>
  6901. </item>
  6902. <script type="javascript" ev:event="onclick">
  6903. <![CDATA[
  6904. var select = trv_ordamt.selectedIndex;
  6905. var view = trv_ordamt.item(select);
  6906. if (view == null) return;
  6907. var trgtWindow = trv_ordamt.item(select).value;
  6908. // 진료비누적(사후)
  6909. if (trgtWindow == "SPPID21300") {
  6910. fOpenSPPID21300(model.getValue("/root/main/item1/clbs/clamym")
  6911. , model.getValue("/root/main/item1/clbs/clamdg")
  6912. , model.getValue("/root/main/item1/clbs/pid")
  6913. , model.getValue("/root/main/item1/clbs/pidsn")
  6914. , model.getValue("/root/main/item1/clbs/insukindcd")
  6915. , model.getValue("/root/main/item1/clbs/suppkindcd")
  6916. , model.getValue("/root/main/item1/clbs/ordfromdd")
  6917. );
  6918. // 입원진료비상세
  6919. } else if (trgtWindow == "SMPAI00200") {
  6920. fOpenSMPAI00200(model.getValue("/root/main/item1/clbs/pid"));
  6921. // 외래수납조회
  6922. } else if (trgtWindow == "SMPAO00300") {
  6923. fOpenSMPAO00300(model.getValue("/root/main/item1/clbs/pid"));
  6924. // 외래처방계산내역조회
  6925. } else if (trgtWindow == "SMPMOTMP00") {
  6926. fOpenSMPMOTMP00(model.getValue("/root/main/item1/clbs/pid"));
  6927. // 예상진료비조회
  6928. } else if (trgtWindow == "SMPAI00400") {
  6929. fOpenSMPAI00400();
  6930. // 급종변경전후금액조회
  6931. } else if (trgtWindow == "SMPAI03600") {
  6932. fOpenSMPAI03600(model.getValue("/root/main/item1/otpt/pid"));
  6933. }
  6934. ]]>
  6935. </script>
  6936. </treeview>
  6937. </case>
  6938. <case id="etcref">
  6939. <line id="line15" class="line_1" style="x1:0px; y1:19px; x2:175px; y2:19px; "/>
  6940. <caption id="caption41" class="tit_2" style="left:6px; top:4px; width:129px; height:13px; ">각종조회</caption>
  6941. <treeview id="trv_etcref" expanddepth="3" itemsettype="depth" style="left:0px; top:25px; width:175px; height:260px; ">
  6942. <item>
  6943. <label>각종조회</label>
  6944. <value/>
  6945. <item>
  6946. <label>약품편람</label>
  6947. <value>SMADB01900</value>
  6948. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6949. </item>
  6950. <item>
  6951. <label>의약품정보조회</label>
  6952. <value>SMADB00100</value>
  6953. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6954. </item>
  6955. <item>
  6956. <label>수가관리</label>
  6957. <value>SMPIC00100</value>
  6958. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6959. </item>
  6960. <item>
  6961. <label>수가세부조회</label>
  6962. <value>SMPIC00700</value>
  6963. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6964. </item>
  6965. <item>
  6966. <label>보험인정기준</label>
  6967. <value>SPPIZ01600</value>
  6968. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6969. </item>
  6970. <item>
  6971. <label>격리신청서</label>
  6972. <value>SMASB02100</value>
  6973. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6974. </item>
  6975. <item>
  6976. <label>수술마취스케줄조회</label>
  6977. <value>SMMMO05100</value>
  6978. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6979. </item>
  6980. <item>
  6981. <label>수술마취의뢰서등록</label>
  6982. <value>SPMMO00200</value>
  6983. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6984. </item>
  6985. <item>
  6986. <label>입원/퇴원/재원조회</label>
  6987. <value>SMPMI00700</value>
  6988. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6989. </item>
  6990. <item>
  6991. <label>임상시험약속처방</label>
  6992. <value>SMMMB08300</value>
  6993. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6994. </item>
  6995. <item>
  6996. <label>신규항암프로토콜조회</label>
  6997. <value>SMADB00900</value>
  6998. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6999. </item>
  7000. <item>
  7001. <label>보험유형코드관리</label>
  7002. <value>SMPMB00200</value>
  7003. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  7004. </item>
  7005. <item>
  7006. <label>CP검색</label>
  7007. <value>SPMMP01200_CP</value>
  7008. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  7009. </item>
  7010. </item>
  7011. <script type="javascript" ev:event="onclick">
  7012. <![CDATA[
  7013. var select = trv_etcref.selectedIndex;
  7014. var view = trv_etcref.item(select);
  7015. if (view == null) return;
  7016. var trgtWindow = trv_etcref.item(select).value;
  7017. // 약품편람
  7018. if (trgtWindow == "SMADB01900") {
  7019. fOpenSMADB01900();
  7020. // 의약품정보조회
  7021. } else if (trgtWindow == "SMADB00100") {
  7022. fOpenSMADB00100();
  7023. // 수가관리
  7024. } else if (trgtWindow == "SMPIC00100") {
  7025. fOpenSMPIC00100();
  7026. // 수가세부조회
  7027. } else if (trgtWindow == "SMPIC00700") {
  7028. fOpenSMPIC00700();
  7029. // 보험인정기준
  7030. } else if (trgtWindow == "SPPIZ01600") {
  7031. fOpenSPPIZ01600();
  7032. // 격리신청서
  7033. } else if (trgtWindow == "") {
  7034. return;
  7035. // 수술마취스케줄조회
  7036. } else if (trgtWindow == "SMMMO05100") {
  7037. var optodd = getCurrentDate();
  7038. fOpenSMMMO05100(model.getValue("/root/main/item1/clbs/indd")
  7039. , optodd
  7040. , model.getValue("/root/main/item1/clbs/patnm")
  7041. , model.getValue("/root/main/item1/clbs/pid")
  7042. , ""
  7043. , ""
  7044. , "T"
  7045. , "00"
  7046. , "-"
  7047. , "-"
  7048. , ""
  7049. , ""
  7050. , "T"
  7051. , ""
  7052. , ""
  7053. );
  7054. // 수술마취의뢰서등록
  7055. } else if (trgtWindow == "SPMMO00200") {
  7056. fOpenSPMMO00200("I"
  7057. , model.getValue("/root/main/item1/clbs/pid")
  7058. , model.getValue("/root/main/item1/clbs/patnm")
  7059. , model.getValue("/root/main/item1/clbs/patage")
  7060. , model.getValue("/root/main/item1/clbs/orddeptcd")
  7061. , model.getValue("/root/main/item1/clbs/indd")
  7062. , model.getValue("/root/main/item1/clbs/orddrid")
  7063. , ""
  7064. , model.getValue("/root/main/item1/clbs/insukindcd")
  7065. , model.getValue("/root/main/item1/clbs/suppkindcd")
  7066. , model.getValue("/root/main/item1/clbs/indd")
  7067. , model.getValue("/root/main/item1/clbs/dschdd")
  7068. );
  7069. // 수술심사대상조회
  7070. } else if (trgtWindow == "SMMMO05101") {
  7071. return;
  7072. // 입원/퇴원/재원조회
  7073. } else if (trgtWindow == "SMPMI00700") {
  7074. fOpenSMPMI00700("1"
  7075. , "1"
  7076. , ""
  7077. , model.getValue("/root/main/item1/clbs/indd")
  7078. , model.getValue("/root/main/item1/clbs/indd")
  7079. , model.getValue("/root/main/item1/clbs/instcd")
  7080. );
  7081. // 임상시험약속처방
  7082. } else if (trgtWindow == "SMMMB08300") {
  7083. fOpenSMMMB08300();
  7084. // 신규항암프로토콜조회
  7085. } else if (trgtWindow == "SMADB00900") {
  7086. fOpenSMADB00900();
  7087. // 보험유형코드관리
  7088. } else if (trgtWindow == "SMPMB00200") {
  7089. fOpenSMPMB00200();
  7090. // CP검색
  7091. } else if (trgtWindow == "SPMMP01200_CP") {
  7092. fOpenSPMMP01200_CP();
  7093. }
  7094. ]]>
  7095. </script>
  7096. </treeview>
  7097. </case>
  7098. <case id="emr">
  7099. <line id="line16" class="line_1" style="x1:0px; y1:19px; x2:175px; y2:19px; "/>
  7100. <caption id="caption42" class="tit_2" style="left:6px; top:4px; width:54px; height:13px; ">EMR</caption>
  7101. <treeview id="trv_emr" expanddepth="3" itemsettype="depth" style="left:0px; top:25px; width:175px; height:260px; ">
  7102. <item>
  7103. <label>EMR</label>
  7104. <value/>
  7105. <item>
  7106. <label>입퇴원요약기록지</label>
  7107. <value>SSMMR01100</value>
  7108. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  7109. </item>
  7110. <item>
  7111. <label>경과기록지</label>
  7112. <value>SSMMR01100</value>
  7113. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  7114. </item>
  7115. <item>
  7116. <label>CONSULT</label>
  7117. <value>SMMMR05000</value>
  7118. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  7119. </item>
  7120. <item>
  7121. <label>임상관찰기록지</label>
  7122. <value>SMMNR00900</value>
  7123. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  7124. </item>
  7125. <item>
  7126. <label>혈당간호기록</label>
  7127. <value>SMMNR02500</value>
  7128. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  7129. </item>
  7130. <item>
  7131. <label>간호일지</label>
  7132. <value>SMMNR00700</value>
  7133. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  7134. </item>
  7135. <item>
  7136. <label>통합기록전체조회</label>
  7137. <value>SMMRI00400</value>
  7138. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  7139. </item>
  7140. </item>
  7141. <script type="javascript" ev:event="onclick">
  7142. <![CDATA[
  7143. var select = trv_emr.selectedIndex;
  7144. var view = trv_emr.item(select);
  7145. if (view == null) return;
  7146. var trgtWindow = trv_emr.item(select).value;
  7147. // 입퇴원요약기록지, 경과기록지
  7148. if (trgtWindow == "SSMMR01100") {
  7149. return;
  7150. // CONSULT
  7151. } else if (trgtWindow == "SMMMR05000") {
  7152. fOpenSMMMR05000();
  7153. // 임상관찰기록지
  7154. } else if (trgtWindow == "SMMNR00900") {
  7155. fOpenSMMNR00900();
  7156. // 혈당간호기록
  7157. } else if (trgtWindow == "SMMNR02500") {
  7158. fOpenSMMNR02500();
  7159. // 간호일지
  7160. } else if (trgtWindow == "SMMNR00700") {
  7161. fOpenSMMNR00700();
  7162. // 통합기록전체조회
  7163. } else if (trgtWindow == "SMMRI00400") {
  7164. fOpenSMMRI00400(model.getValue("/root/main/item1/clbs/pid"));
  7165. }
  7166. ]]>
  7167. </script>
  7168. </treeview>
  7169. </case>
  7170. <case id="erroomref">
  7171. <line id="line17" class="line_1" style="x1:0px; y1:19px; x2:175px; y2:19px; "/>
  7172. <caption id="caption43" class="tit_2" style="left:6px; top:4px; width:54px; height:13px; ">응급실정보</caption>
  7173. <treeview id="trv_erroomref" expanddepth="3" itemsettype="depth" style="left:0px; top:25px; width:175px; height:260px; ">
  7174. <item>
  7175. <label>응급실정보</label>
  7176. <value/>
  7177. <item>
  7178. <label>ERcensus</label>
  7179. <value>SMMNE01300</value>
  7180. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  7181. </item>
  7182. <item>
  7183. <label>응급실triage</label>
  7184. <value>SPMNE04400</value>
  7185. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  7186. </item>
  7187. <item>
  7188. <label>응급의료관리료</label>
  7189. <value>SMMMO06300</value>
  7190. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  7191. </item>
  7192. <item>
  7193. <label>응급간호기록</label>
  7194. <value>SMMNE04300</value>
  7195. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  7196. </item>
  7197. </item>
  7198. <script type="javascript" ev:event="onclick">
  7199. <![CDATA[
  7200. var select = trv_erroomref.selectedIndex;
  7201. var view = trv_erroomref.item(select);
  7202. if (view == null) return;
  7203. var trgtWindow = trv_erroomref.item(select).value;
  7204. // ERcensus
  7205. if (trgtWindow == "SMMNE01300") {
  7206. fOpenSMMNE01300();
  7207. // 응급실triage
  7208. } else if (trgtWindow == "SPMNE04400") {
  7209. var sex = model.getValue("/root/main/item1/clbs/gender");
  7210. if (sex == "남") {
  7211. sex = "M";
  7212. } else if (sex == "여") {
  7213. sex = "F";
  7214. }
  7215. fOpenSPMNE04400_1(model.getValue("/root/main/item1/clbs/pid")
  7216. , model.getValue("/root/main/item1/clbs/indd")
  7217. , model.getValue("/root/main/item1/clbs/cretno")
  7218. , sex
  7219. , model.getValue("/root/main/item1/clbs/patage")
  7220. , model.getValue("/root/main/item1/clbs/patnm")
  7221. );
  7222. // 응급의료관리료
  7223. } else if (trgtWindow == "SMMMO06300") {
  7224. fOpenSMMMO06300(model.getValue("/root/main/item1/clbs/pid")
  7225. , model.getValue("/root/main/item1/clbs/patnm")
  7226. , model.getValue("/root/main/item1/clbs/indd")
  7227. );
  7228. // 응급간호기록
  7229. } else if (trgtWindow == "SMMNE04300") {
  7230. fOpenSMMNE04300();
  7231. }
  7232. ]]>
  7233. </script>
  7234. </treeview>
  7235. </case>
  7236. <case id="trnptinforef">
  7237. <line id="line19" class="line_1" style="x1:0px; y1:19px; x2:175px; y2:19px; "/>
  7238. <caption id="caption45" class="tit_2" style="left:6px; top:4px; width:54px; height:13px; ">이식정보</caption>
  7239. <treeview id="trv_trnptinforef" expanddepth="3" itemsettype="depth" style="left:0px; top:25px; width:175px; height:260px; ">
  7240. <item>
  7241. <label>이식정보</label>
  7242. <value/>
  7243. <item>
  7244. <label>HSCT원무관리</label>
  7245. <value>SMPMC01600</value>
  7246. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  7247. </item>
  7248. <item>
  7249. <label>HSCT스케줄조회</label>
  7250. <value>SMABO00800</value>
  7251. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  7252. </item>
  7253. <item>
  7254. <label>HSCT환자별스케줄</label>
  7255. <value>SMMMR02100</value>
  7256. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  7257. </item>
  7258. <item>
  7259. <label>조혈모처리현황</label>
  7260. <value>SMABC00900</value>
  7261. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  7262. </item>
  7263. <item>
  7264. <label>HSCT환자관리</label>
  7265. <value>SMABO00100</value>
  7266. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  7267. </item>
  7268. <item>
  7269. <label>조혈모보관해동현황</label>
  7270. <value>SMABC00300</value>
  7271. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  7272. </item>
  7273. <item>
  7274. <label>장기이식</label>
  7275. <value>SMPIB02400</value>
  7276. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  7277. </item>
  7278. </item>
  7279. <script type="javascript" ev:event="onclick">
  7280. <![CDATA[
  7281. var select = trv_trnptinforef.selectedIndex;
  7282. var view = trv_trnptinforef.item(select);
  7283. if (view == null) return;
  7284. var trgtWindow = trv_trnptinforef.item(select).value;
  7285. // HSCT원무관리
  7286. if (trgtWindow == "SMPMC01600") {
  7287. fOpenSMPMC01600();
  7288. // HSCT스케줄조회
  7289. } else if (trgtWindow == "SMABO00800") {
  7290. fOpenSMABO00800();
  7291. // HSCT환자별스케줄
  7292. } else if (trgtWindow == "SMMMR02100") {
  7293. fOpenSMMMR02100();
  7294. // 조혈모처리현황
  7295. } else if (trgtWindow == "SMABC00900") {
  7296. fOpenSMABC00900(model.getValue("/root/main/item1/clbs/pid")
  7297. , model.getValue("/root/main/item1/clbs/patnm")
  7298. , "main"
  7299. );
  7300. // HSCT환자관리
  7301. } else if (trgtWindow == "SMABO00100") {
  7302. fOpenSMABO00100(model.getValue("/root/main/item1/clbs/pid"));
  7303. // 조혈모보관해동현황
  7304. } else if (trgtWindow == "SMABC00300") {
  7305. fOpenSMABC00300(model.getValue("/root/main/item1/clbs/pid")
  7306. , model.getValue("/root/main/item1/clbs/indd")
  7307. , ""
  7308. , ""
  7309. , ""
  7310. );
  7311. // 장기이식
  7312. } else if (trgtWindow == "SMPIB02400") {
  7313. fOpenSMPIB02400();
  7314. }
  7315. ]]>
  7316. </script>
  7317. </treeview>
  7318. </case>
  7319. </switch>
  7320. </group>
  7321. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  7322. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:93px; height:13px; ">사후입원심사</caption>
  7323. </group>
  7324. </xhtml:body>
  7325. </xhtml:html>