123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>가정간호 메인</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <item>
- <weekday>
- </weekday>
- <cycle>
- </cycle>
- <chargenurse>
- <nurselist>
- </nurselist>
- </chargenurse>
- <church>
- <churchlist>
- </churchlist>
- </church>
- <churchregkind>
- <churchregkindlist>
- <cd>1</cd>
- <nm>등록</nm>
- </churchregkindlist>
- <churchregkindlist>
- <cd>2</cd>
- <nm>무료</nm>
- </churchregkindlist>
- <churchregkindlist>
- <cd>3</cd>
- <nm>기타</nm>
- </churchregkindlist>
- </churchregkind>
- <healcntryn>
- <healcntrynlist>
- <cd>Y</cd>
- <nm>Y</nm>
- </healcntrynlist>
- <healcntrynlist>
- <cd>N</cd>
- <nm>N</nm>
- </healcntrynlist>
- </healcntryn>
- <reqcancelreason/>
- <dctype>
- <dctypelist>
- <nm/>
- <cd/>
- </dctypelist>
- <qualflaglist>
- <nm/>
- <cd/>
- </qualflaglist>
- <vdctypelist>
- <nm/>
- <cd/>
- </vdctypelist>
- </dctype>
- <visitarea>
- <visitarealist/>
- </visitarea>
- </item>
- <hidden>
- <calendar>
- <weeklist>
- <list>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- <sun_memo/>
- <mon_memo/>
- <tue_memo/>
- <wed_memo/>
- <thu_memo/>
- <fri_memo/>
- <sat_memo/>
- </list>
- <list>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- <sun_memo/>
- <mon_memo/>
- <tue_memo/>
- <wed_memo/>
- <thu_memo/>
- <fri_memo/>
- <sat_memo/>
- </list>
- <list>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- <sun_memo/>
- <mon_memo/>
- <tue_memo/>
- <wed_memo/>
- <thu_memo/>
- <fri_memo/>
- <sat_memo/>
- </list>
- <list>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- <sun_memo/>
- <mon_memo/>
- <tue_memo/>
- <wed_memo/>
- <thu_memo/>
- <fri_memo/>
- <sat_memo/>
- </list>
- <list>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- <sun_memo/>
- <mon_memo/>
- <tue_memo/>
- <wed_memo/>
- <thu_memo/>
- <fri_memo/>
- <sat_memo/>
- </list>
- <list>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- <sun_memo/>
- <mon_memo/>
- <tue_memo/>
- <wed_memo/>
- <thu_memo/>
- <fri_memo/>
- <sat_memo/>
- </list>
- </weeklist>
- <year/>
- <month/>
- </calendar>
- <cond/>
- <hidden>
- <inptinfo>
- <pid/>
- <indd/>
- <wardcd/>
- <roomcd/>
- <dschdt/>
- <orddeptcd/>
- <instcd/>
- <cretno/>
- </inptinfo>
- </hidden>
- </hidden>
- <main>
- <condition>
- <pid/>
- <hngnm>
- </hngnm>
- </condition>
- <grd_visitlst>
- <visitlist>
- <no/>
- <careflag/>
- <procstatus/>
- <pid/>
- <hngnm/>
- <sex/>
- <diagname/>
- <inptstat/>
- <headquarter/>
- <kind/>
- <receiptflag/>
- <inptdt/>
- <diagcd/>
- <instcd/>
- <result/>
- <rgstpatstat/>
- <reqdd/>
- <reqdeptnm/>
- <reqdrnm/>
- <reqdeptcd/>
- <reqdrid/>
- <formrecseq/>
- <rereqyn/>
- <patcareflag/>
- <orddd/>
- <cretno/>
- <vorddd/>
- </visitlist>
- </grd_visitlst>
- <grd_reqlist>
- <reqlist>
- <no/>
- <careflag/>
- <hcareflag/>
- <procstatus/>
- <detail/>
- <hisrecord/>
- <pid/>
- <hngnm/>
- <sex/>
- <reqdd/>
- <churchcd/>
- <churchnm/>
- <kind/>
- <reqdeptnm/>
- <reqdrnm/>
- <reqmode/>
- <reqdeptcd/>
- <reqdrid/>
- <instcd/>
- <formrecseq/>
- <cnstdiagcd/>
- <cnstdiaghngnm/>
- <inptdt/>
- <inptstat/>
- <carerec/>
- <indd/>
- <cretno/>
- <inptorddeptcd/>
- <reqtm/>
- <patcareflag/>
- <orddd/>
- <cretno/>
- </reqlist>
- </grd_reqlist>
- <grd_endlist>
- <endlist>
- <no/>
- <careflag/>
- <procstatus/>
- <pid/>
- <hngnm/>
- <sex/>
- <enddd/>
- <endreason/>
- <churchnm/>
- <kind/>
- <fromdd/>
- <todd/>
- <visitcnt/>
- <reqdd/>
- <reqdeptnm/>
- <reqdrnm/>
- <reqdeptcd/>
- <reqdrid/>
- <formrecseq/>
- <patcareflag/>
- <orddd/>
- <cretno/>
- <vorddd/>
- </endlist>
- </grd_endlist>
- <grd_explist>
- <explist>
- <no/>
- <careflag/>
- <procstatus/>
- <pid/>
- <hngnm/>
- <sex/>
- <diagname/>
- <expdd/>
- <churchnm/>
- <kind/>
- <receiptflag/>
- <inptdt/>
- <diagcd/>
- <instcd/>
- <churchcd/>
- <result/>
- <rgstpatstat/>
- <reqdd/>
- <reqdeptnm/>
- <reqdrnm/>
- <reqdeptcd/>
- <reqdrid/>
- <inptstat/>
- <formrecseq/>
- <rereqyn/>
- <patcareflag/>
- <orddd/>
- <cretno/>
- <vorddd/>
- </explist>
- </grd_explist>
- <grd_patvisitlst>
- <patvisitlist>
- <no/>
- <careflag/>
- <procstatus/>
- <pid/>
- <hngnm/>
- <sex/>
- <cnstdiagname/>
- <inptstat/>
- <headquarter/>
- <kind/>
- <receiptflag/>
- <inptdt/>
- <cnstdiagcd/>
- <instcd/>
- <result/>
- <rgstpatstat/>
- <reqdd/>
- <reqdeptnm/>
- <reqdrnm/>
- <reqdeptcd/>
- <reqdrid/>
- <formrecseq/>
- <rereqyn/>
- <patcareflag/>
- <orddd/>
- <cretno/>
- <rereqyn/>
- <enddd/>
- <endreason/>
- <fromdd/>
- <todd/>
- <visitcnt/>
- <asreqdeptcd/>
- <porddd/>
- <pcretno/>
- <acptseqno/>
- <orgorddd/>
- <detail/>
- <hisrecord/>
- <expenddd/>
- <endscheflag/>
- <inhospyn/>
- </patvisitlist>
- </grd_patvisitlst>
- <patinfo>
- <patinforesult>
- <pid/>
- <inptdt/>
- <instcd/>
- <hngnm/>
- <rrgstno/>
- <sex/>
- <address/>
- <telno1/>
- <telno2/>
- <cphone1owner/>
- <cphone1/>
- <cphone2owner/>
- <cphone2/>
- <chrgnursid/>
- <dctype/>
- <dcreason/>
- <requnit/>
- <comremark/>
- <remark/>
- <visitpridflag/>
- <visitpridtimes/>
- <visitdwflag/>
- <churchcd/>
- <chrrgstkind/>
- <healcntryn/>
- <healcntrnm/>
- <rgstdd/>
- <enddd/>
- <endflag/>
- <reqdd/>
- <reqdeptcd/>
- <reqdrid/>
- <rereqyn/>
- <patflag/>
- <cancelflag/>
- <cancelerid/>
- <canceltime/>
- <cancelreason/>
- <oldchrrgstkind/>
- <chrgnursid1/>
- <chrgnursid2/>
- <chrgnursid3/>
- <lastreqdeptnm/>
- <lastreqdrnm/>
- <lastreqmode/>
- <lastreqdd/>
- <patclass/>
- <cnstdiagcd/>
- <cnstdiaghngnm/>
- <cnstdiagconcat/>
- <diagcd/>
- <diaghngnm/>
- <diagconcat/>
- <restamt/>
- <enddd/>
- <endreasonflag/>
- <endreason/>
- <endtypeflag/>
- <endtype/>
- <endtyperemark/>
- <endstatflag/>
- <endstat/>
- <rgstpatstat/>
- <endpatstat/>
- <endsummary/>
- <insukind/>
- <insukindnm/>
- <insuno/>
- <insdnm/>
- <insdrela/>
- <insdrelanm/>
- <insucd/>
- <insucdnm/>
- <insdrrgstno/>
- <isnewpat/>
- <zipcd1/>
- <zipcd2/>
- <zipcdseq/>
- <formrecseq/>
- <endnursenm/>
- <dctypenum/>
- <patcareflag/>
- <gradeflag/>
- <qualflag/>
- <longtermno/>
- <vdctypenum/>
- <vdctype/>
- <vreqdd/>
- <vorddd/>
- <vcretno/>
- <chrrgstkindRgstYN/>
- <chnginptdt/>
- <vstarea/>
- <areadtl/>
- </patinforesult>
- <outmedinfo>
- <forddrid/>
- <forddeptcd/>
- <fdepthngnm/>
- <fdeptengnm/>
- <fusernm/>
- <forddd/>
- <lorddrid/>
- <lorddeptcd/>
- <ldepthngnm/>
- <ldeptengnm/>
- <lusernm/>
- <lorddd/>
- </outmedinfo>
- <visitaccount>
- <totvisitcnt/>
- <monvisitcnt/>
- <yearvisitcnt/>
- <vtotvisitcnt/>
- <vmonvisitcnt/>
- <vyearvisitcnt/>
- </visitaccount>
- <reqinfo>
- <firstreqdd/>
- <lastreqdd/>
- <enddd/>
- </reqinfo>
- <visitdate>
- <firstvisitdd/>
- <lastvisitdd/>
- <vfirstvisitdd/>
- <vlastvisitdd/>
- </visitdate>
- <previsitlist>
- <pid/>
- <visitdd/>
- <inptdt/>
- <instcd/>
- </previsitlist>
- <visitcount>
- <visitdd/>
- <cnt/>
- </visitcount>
- <patinfolist/>
- <patinsukind>
- <insukind/>
- <insukindnm/>
- <insuno/>
- <insucd/>
- <insucdnm/>
- <insdrela/>
- <insdrelanm/>
- <insdnm/>
- <insdrrgstno/>
- <seqno/>
- </patinsukind>
- </patinfo>
- <endinfo/>
- <mnginfo1>
- </mnginfo1>
- <mnginfo3>
- </mnginfo3>
- <mnginfo4>
- </mnginfo4>
- <grd_previsitlist>
- <previsitlist>
- <pid/>
- <visitdd/>
- <inptdt/>
- <instcd/>
- <careflagnm/>
- <patcareflag/>
- </previsitlist>
- </grd_previsitlist>
- <grd_viewprevisitlist>
- </grd_viewprevisitlist>
- <visitinfo>
- <pid/>
- <inptdt/>
- <instcd/>
- <hngnm/>
- <sex/>
- <lastvisitdd/>
- <visitpridflag/>
- <visitpridtimes/>
- <visitdwflag/>
- <vvisitpridflag/>
- <vvisitpridtimes/>
- <vvisitdwflag/>
- <patcareflag/>
- </visitinfo>
- <checkvalue>
- <level1/>
- <level2/>
- <level3/>
- </checkvalue>
- <visitcounts>
- <visitcount>
- <visitdd/>
- <cnt/>
- </visitcount>
- <caldatainfo>
- <basedd/>
- <dutflag/>
- <day/>
- <dw/>
- <weekno/>
- </caldatainfo>
- </visitcounts>
- <procstat>
- <procstatcnt>
- <previsitlistcnt/>
- <reqlistcnt/>
- <visitlistcnt/>
- <endlistcnt/>
- </procstatcnt>
- </procstat>
- <insuinfo>
- <patinsuinfo>
- </patinsuinfo>
- </insuinfo>
- <endinfo>
- </endinfo>
- <expflag/>
- <existinfo>
- <existyninfo>
- <existyn/>
- </existyninfo>
- <existordddinfo>
- <existordddyn/>
- </existordddinfo>
- </existinfo>
- <newpatientinfo>
- <patinfo>
- <ptbs_flag/>
- <ptbs_pid/>
- <ptbs_hngnm/>
- <ptbs_engnm/>
- <ptbs_rrgstno1/>
- <ptbs_rrgstno2/>
- <ptbs_brthdd/>
- <ptbs_sex/>
- <ptbs_bindpid/>
- <ptbs_hometel/>
- <ptbs_mpphontel/>
- <ptbs_etctel1/>
- <ptbs_etctel2/>
- <ptbs_smsaprvyn/>
- <ptbs_email/>
- <ptbs_zipcd1/>
- <ptbs_zipcd2/>
- <ptbs_zipcdseq/>
- <ptbs_detladdr/>
- <ptbs_btype/>
- <ptbs_rh/>
- <ptbs_forgeryn/>
- <ptbs_nati/>
- <ptbs_psptno/>
- <ptbs_recmyn/>
- <ptbs_recmerid/>
- <ptbs_recmerrela/>
- <ptbs_vipyn/>
- <ptbs_viprem/>
- <ptbs_religncd/>
- <ptbs_baptnm/>
- <ptbs_chchnm/>
- <ptbs_dethyn/>
- <ptbs_dethdt/>
- <ptbs_chosresn/>
- <ptbs_animyn/>
- <ptbs_exptresncd/>
- <ptbs_inhospyn/>
- <ptbs_handicapryn/>
- <ptbs_remfact/>
- <pidflag/>
- <ptbs_age/>
- </patinfo>
- </newpatientinfo>
- <newpatientflag>
- <newpatientyn>
- <pid/>
- <cnt/>
- </newpatientyn>
- </newpatientflag>
- <newpidinfo>
- <newpid>
- <pid/>
- </newpid>
- </newpidinfo>
- <outreceiptinfo>
- <receiptinfo>
- <otpt_flag/>
- <otpt_pid/>
- <otpt_orddd/>
- <otpt_orddeptcd/>
- <otpt_orddrid/>
- <otpt_ordtm/>
- <otpt_rsrvflag/>
- <otpt_etcordflag/>
- <otpt_instcd/>
- <otpt_pid_old/>
- <otpt_orddd_old/>
- <otpt_cretno_old/>
- <otpt_acptseqno_old/>
- <otpt_orddeptcd_old/>
- <otpt_orddrid_old/>
- <otpt_rsrvflag_old/>
- <sess_userid/>
- </receiptinfo>
- </outreceiptinfo>
- <cond>
- <patinfo>
- <pid/>
- <patnm/>
- <sex/>
- <orddd/>
- <cretno/>
- <orddeptcd/>
- <orddrid/>
- <instcd/>
- <hngnm/>
- <ordtype/>
- <patcareflag/>
- </patinfo>
- </cond>
- <expcounts>
- <expcount>
- <visitdd/>
- <cnt/>
- </expcount>
- </expcounts>
- <paminfo>
- <list>
- <pid/>
- <orddeptcd/>
- </list>
- </paminfo>
- <visitrecord>
- <recinfo>
- <pid/>
- <hngnm/>
- <sex/>
- <visitdd/>
- <visitnurseid/>
- <visitcycle/>
- <nextvisitdd/>
- <visitsttm/>
- <visitedtm/>
- <movetm/>
- <totcaretm/>
- <monvisitcnt/>
- <yearvisitcnt/>
- <totvisitcnt/>
- <carework/>
- <drnotify/>
- <inptdt/>
- <instcd/>
- <visitflag/>
- <recyn/>
- </recinfo>
- </visitrecord>
- <mnginfo2>
- </mnginfo2>
- <trgtmanlist>
- <out>
- <pid/>
- <dept>
- <deptcd/>
- </dept>
- <drlist>
- <drid/>
- </drlist>
- <orddd/>
- </out>
- </trgtmanlist>
- <ordinfo>
- <pid/>
- <orddd/>
- <orddeptcd/>
- <drid/>
- </ordinfo>
- <reqcancel>
- <reqcancelreason/>
- </reqcancel>
- <reqtrnsinfo>
- <reqtrnsinfo>
- <pidcount/>
- <inptdt/>
- </reqtrnsinfo>
- </reqtrnsinfo>
- <trgtpidinfo>
- <trgtpidinfo>
- <pidyn/>
- </trgtpidinfo>
- </trgtpidinfo>
- <dschpatinfo>
- <patinfo>
- <patYN/>
- </patinfo>
- </dschpatinfo>
- </main>
- <send>
- <visitdd/>
- <chrgnursid>%</chrgnursid>
- <kind/>
- <pid/>
- <inptdt/>
- <churchcd>-</churchcd>
- <inputvisitdd/>
- <currvisitdd/>
- <instcd/>
- <mode/>
- <cancelreason/>
- <chrrgstkind/>
- <searchkind/>
- <menuparameter/>
- <patflag/>
- <dockind/>
- <fromdd/>
- <todd/>
- <orddd/>
- <cretno/>
- <ioflag/>
- <dnarflag/>
- <sortseq/>
- <recflag/>
- <reclnkkey/>
- <prestdt/>
- <orddeptcd/>
- <screenid>SMMNF00100</screenid>
- <prcsstat/>
- <dctype/>
- <cancelreason/>
- <status/>
- <reqdd/>
- <reqdeptcd/>
- <reqdrid/>
- <reqtrnspid/>
- <careflag>*</careflag>
- <patcareflag/>
- <vorddd/>
- <hospflag/>
- </send>
- <temp>
- <cond>
- <list>
- <roomcd/>
- <hngnm/>
- <sex/>
- <age/>
- <pid/>
- <indd/>
- <instcd/>
- <orddeptcd/>
- <reqdd/>
- <endflag/>
- <medispclid/>
- <tel/>
- <mphone/>
- <etcphone1/>
- <etcphone2/>
- <orddrnm/>
- <reqdd/>
- <diagnm/>
- <patcareflag/>
- </list>
- </cond>
- <patinfo>
- <patinforesult>
- <dctype/>
- <vdctype/>
- </patinforesult>
- </patinfo>
- <send>
- <visitdd/>
- <chrgnursid>%</chrgnursid>
- <kind/>
- <pid/>
- <inptdt/>
- <churchcd>-</churchcd>
- <inputvisitdd/>
- <currvisitdd/>
- <instcd/>
- <mode/>
- <cancelreason/>
- <chrrgstkind/>
- <searchkind/>
- <menuparameter/>
- <patflag/>
- <dockind/>
- <fromdd/>
- <todd/>
- <orddd/>
- <cretno/>
- <ioflag/>
- <dnarflag/>
- <sortseq/>
- <recflag/>
- <reclnkkey/>
- <prestdt/>
- <orddeptcd/>
- </send>
- <para/>
- <canceldata>
- <nurseid/>
- <deptcd/>
- <no/>
- <procstatus/>
- <pid/>
- <hngnm/>
- <sex/>
- <diagname/>
- <expdd/>
- <churchnm/>
- <kind/>
- <receiptflag/>
- <inptdt/>
- <diagcd/>
- <instcd/>
- <churchcd/>
- <result/>
- <rgstpatstat/>
- <reqdd/>
- <reqdeptnm/>
- <reqdrnm/>
- <reqdeptcd/>
- <reqdrid/>
- <patcareflag/>
- <orddd/>
- <cretno/>
- <vitcareflag/>
- </canceldata>
- <patinfo>
- <patinfo>
- <pid/>
- <inptdt/>
- <instcd/>
- </patinfo>
- </patinfo>
- <visitflag>
- <visitflag>
- <visitflagyn/>
- </visitflag>
- </visitflag>
- <chrrgstkindinfo>
- <chrrgstkindresult>
- <chrrgstkindRsgtYN/>
- <pid/>
- <inptdt/>
- <careflag/>
- <churchnm/>
- <patflag/>
- <chrrgstkind/>
- </chrrgstkindresult>
- </chrrgstkindinfo>
- </temp>
- <codedata>
- <popupmenu>
- <grid>
- <item>
- <name>방문예정일 등록</name>
- <func>fPreVisitDDInsert</func>
- </item>
- <item>
- <name>방문예정일 변경</name>
- <func>fPreVisitDDUpdate</func>
- </item>
- <item>
- <name>방문예정일 삭제</name>
- <func>fPreVisitDDDelete</func>
- </item>
- </grid>
- <!-- 진행 리스트 오른쪽 마우스 (2008.04.21 손은연) -->
- <grd_cancel>
- <item>
- <name>외래접수(가정간호접수)</name>
- <func>fHomeCareOutAcpt</func>
- </item>
- <item>
- <name>시행부서 처방(교통비/방문료)</name>
- <func>fExecDeptOrder</func>
- </item>
- <item>
- <name>가정간호 처방발행(PRN처방)</name>
- <func>fHomeCareOrder</func>
- </item>
- <item>
- <name>간호처방</name>
- <func>fCareOrder</func>
- </item>
- <item>
- <name>약품번호조회/출력</name>
- <func>fhomecareDrug</func>
- </item>
- <item>
- <name>마약처방관리(불출신청/부서확인)</name>
- <func>fhomecareNarc</func>
- </item>
- <item>
- <name>바코드관리(바코드출력)</name>
- <func>fhomecareBarCd</func>
- </item>
- <item>
- <name>현장검사결과등록</name>
- <func>fhomecareTestRslt</func>
- </item>
- <item>
- <name>-</name>
- <func/>
- </item>
- <item>
- <name>가정간호 의뢰서 보기</name>
- <func>fHomeCareReqPaper</func>
- </item>
- <item>
- <name>방문간호 계약서 보기</name>
- <func>fVisitCarePaper</func>
- </item>
- <item>
- <name>퇴원시 가정간호기록조회</name>
- <func>fDschHomeCareRecRef</func>
- </item>
- <item>
- <name>OCR 서식지 출력(가정간호 동의서)</name>
- <func>fOCRDocuPrnt</func>
- </item>
- <item>
- <name>가정간호 정보조사</name>
- <func>fHomeCareInfoPaper</func>
- </item>
- <item>
- <name>방문기록</name>
- <func>fHomeCareVisitRec</func>
- </item>
- <item>
- <name>경과요약</name>
- <func>fHomeCareProgSmm</func>
- </item>
- <item>
- <name>종결요약</name>
- <func>fHomeCareEndSmm</func>
- </item>
- <item>
- <name>피부욕창(상처)기록</name>
- <func>fHomeCareSkinWundRec</func>
- </item>
- <item>
- <name>MMSE-K서식기록</name>
- <func>fHomeCareMMSE</func>
- </item>
- <item>
- <name>S-SDQ서식기록</name>
- <func>fHomeCareSSDQ</func>
- </item>
- <item>
- <name>-</name>
- <func/>
- </item>
- <item>
- <name>의뢰삭제</name>
- <func>fHomeCarePatientCancel</func>
- </item>
- <item>
- <name>가정간호 진료비 상세내역 조회</name>
- <func>fHomeCareOrdAmtDetl</func>
- </item>
- <item>
- <name>가정간호 선수금 수납내역 조회</name>
- <func>fHomeCarePreAmt</func>
- </item>
- <item>
- <name>가정간호 미수현황 조회</name>
- <func>fHomeCareUncoAmt</func>
- </item>
- </grd_cancel>
- <!-- 성빈센트병원_마약처방관리, MMSE-K, S-SDQ서식기록 삭제요청_20090926_SMY -->
- <grd_cancel017>
- <item>
- <name>외래접수(가정간호접수)</name>
- <func>fHomeCareOutAcpt</func>
- </item>
- <item>
- <name>시행부서 처방(교통비/방문료)</name>
- <func>fExecDeptOrder</func>
- </item>
- <item>
- <name>가정간호 처방발행(PRN처방)</name>
- <func>fHomeCareOrder</func>
- </item>
- <item>
- <name>간호처방</name>
- <func>fCareOrder</func>
- </item>
- <item>
- <name>약품번호조회/출력</name>
- <func>fhomecareDrug</func>
- </item>
- <!--
- <item>
- <name>마약처방관리(불출신청/부서확인)</name>
- <func>fhomecareNarc</func>
- </item>
- -->
- <item>
- <name>바코드관리(바코드출력)</name>
- <func>fhomecareBarCd</func>
- </item>
- <item>
- <name>현장검사결과등록</name>
- <func>fhomecareTestRslt</func>
- </item>
- <item>
- <name>-</name>
- <func/>
- </item>
- <item>
- <name>가정간호 의뢰서 보기</name>
- <func>fHomeCareReqPaper</func>
- </item>
- <item>
- <name>방문간호 계약서 보기</name>
- <func>fVisitCarePaper</func>
- </item>
- <item>
- <name>퇴원시 가정간호기록조회</name>
- <func>fDschHomeCareRecRef</func>
- </item>
- <item>
- <name>OCR 서식지 출력(가정간호 동의서)</name>
- <func>fOCRDocuPrnt</func>
- </item>
- <item>
- <name>가정간호 정보조사</name>
- <func>fHomeCareInfoPaper</func>
- </item>
- <item>
- <name>방문기록</name>
- <func>fHomeCareVisitRec</func>
- </item>
- <item>
- <name>경과요약</name>
- <func>fHomeCareProgSmm</func>
- </item>
- <item>
- <name>종결요약</name>
- <func>fHomeCareEndSmm</func>
- </item>
- <item>
- <name>피부욕창(상처)기록</name>
- <func>fHomeCareSkinWundRec</func>
- </item>
- <!--
- <item>
- <name>MMSE-K서식기록</name>
- <func>fHomeCareMMSE</func>
- </item>
- <item>
- <name>S-SDQ서식기록</name>
- <func>fHomeCareSSDQ</func>
- </item>
- -->
- <item>
- <name>-</name>
- <func/>
- </item>
- <item>
- <name>의뢰삭제</name>
- <func>fHomeCarePatientCancel</func>
- </item>
- <item>
- <name>가정간호 진료비 상세내역 조회</name>
- <func>fHomeCareOrdAmtDetl</func>
- </item>
- <item>
- <name>가정간호 선수금 수납내역 조회</name>
- <func>fHomeCarePreAmt</func>
- </item>
- <item>
- <name>가정간호 미수현황 조회</name>
- <func>fHomeCareUncoAmt</func>
- </item>
- </grd_cancel017>
- <!-- 미확정 리스트 오른쪽 마우스 (2008.04.21 손은연) -->
- <reqpaper>
- <item>
- <name>가정간호 의뢰서 보기</name>
- <func>fHomeCareReqPaper</func>
- </item>
- <item>
- <name>퇴원시 가정간호기록조회</name>
- <func>fDschHomeCareRecRef_reqlist</func>
- </item>
- </reqpaper>
- <!-- 당일방문예정자 리스트 오른쪽 마우스 (2008.04.21 손은연) -->
- <execorder>
- <item>
- <name>외래접수(가정간호접수)</name>
- <func>fHomeCareOutAcpt</func>
- </item>
- <item>
- <name>시행부서 처방(교통비/방문료)</name>
- <func>fExecDeptOrder</func>
- </item>
- <item>
- <name>가정간호 처방발행(PRN처방)</name>
- <func>fHomeCareOrder</func>
- </item>
- <item>
- <name>간호처방</name>
- <func>fCareOrder</func>
- </item>
- <item>
- <name>약품번호조회/출력</name>
- <func>fhomecareDrug</func>
- </item>
- <item>
- <name>마약처방관리(불출신청/부서확인)</name>
- <func>fhomecareNarc</func>
- </item>
- <item>
- <name>바코드관리(바코드출력)</name>
- <func>fhomecareBarCd</func>
- </item>
- <item>
- <name>현장검사결과등록</name>
- <func>fhomecareTestRslt</func>
- </item>
- <item>
- <name>-</name>
- <func/>
- </item>
- <item>
- <name>가정간호 의뢰서 보기</name>
- <func>fHomeCareReqPaper</func>
- </item>
- <item>
- <name>방문간호 계약서 보기</name>
- <func>fVisitCarePaper</func>
- </item>
- <item>
- <name>퇴원시 가정간호기록조회</name>
- <func>fDschHomeCareRecRef</func>
- </item>
- <item>
- <name>OCR 서식지 출력(가정간호 동의서)</name>
- <func>fOCRDocuPrnt</func>
- </item>
- <item>
- <name>가정간호 정보조사</name>
- <func>fHomeCareInfoPaper</func>
- </item>
- <item>
- <name>방문기록</name>
- <func>fHomeCareVisitRec</func>
- </item>
- <item>
- <name>경과요약</name>
- <func>fHomeCareProgSmm</func>
- </item>
- <item>
- <name>종결요약</name>
- <func>fHomeCareEndSmm</func>
- </item>
- <item>
- <name>피부욕창(상처)기록</name>
- <func> fHomeCareSkinWundRec</func>
- </item>
- <item>
- <name>MMSE-K서식기록</name>
- <func>fHomeCareMMSE</func>
- </item>
- <item>
- <name>S-SDQ서식기록</name>
- <func>fHomeCareSSDQ</func>
- </item>
- <item>
- <name>-</name>
- <func/>
- </item>
- <item>
- <name>의뢰삭제</name>
- <func>fHomeCarePatientCancel</func>
- </item>
- <item>
- <name>가정간호 진료비 상세내역 조회</name>
- <func>fHomeCareOrdAmtDetl</func>
- </item>
- <item>
- <name>가정간호 선수금 수납내역 조회</name>
- <func>fHomeCarePreAmt</func>
- </item>
- <item>
- <name>가정간호 미수현황 조회</name>
- <func>fHomeCareUncoAmt</func>
- </item>
- </execorder>
- <!-- 성빈센트병원_마약처방관리, MMSE-K, S-SDQ서식기록 삭제요청_20090926_SMY -->
- <execorder017>
- <item>
- <name>외래접수(가정간호접수)</name>
- <func>fHomeCareOutAcpt</func>
- </item>
- <item>
- <name>시행부서 처방(교통비/방문료)</name>
- <func>fExecDeptOrder</func>
- </item>
- <item>
- <name>가정간호 처방발행(PRN처방)</name>
- <func>fHomeCareOrder</func>
- </item>
- <item>
- <name>간호처방</name>
- <func>fCareOrder</func>
- </item>
- <item>
- <name>약품번호조회/출력</name>
- <func>fhomecareDrug</func>
- </item>
- <!--
- <item>
- <name>마약처방관리(불출신청/부서확인)</name>
- <func>fhomecareNarc</func>
- </item>
- -->
- <item>
- <name>바코드관리(바코드출력)</name>
- <func>fhomecareBarCd</func>
- </item>
- <item>
- <name>현장검사결과등록</name>
- <func>fhomecareTestRslt</func>
- </item>
- <item>
- <name>-</name>
- <func/>
- </item>
- <item>
- <name>가정간호 의뢰서 보기</name>
- <func>fHomeCareReqPaper</func>
- </item>
- <item>
- <name>방문간호 계약서 보기</name>
- <func>fVisitCarePaper</func>
- </item>
- <item>
- <name>퇴원시 가정간호기록조회</name>
- <func>fDschHomeCareRecRef</func>
- </item>
- <item>
- <name>OCR 서식지 출력(가정간호 동의서)</name>
- <func>fOCRDocuPrnt</func>
- </item>
- <item>
- <name>가정간호 정보조사</name>
- <func>fHomeCareInfoPaper</func>
- </item>
- <item>
- <name>방문기록</name>
- <func>fHomeCareVisitRec</func>
- </item>
- <item>
- <name>경과요약</name>
- <func>fHomeCareProgSmm</func>
- </item>
- <item>
- <name>종결요약</name>
- <func>fHomeCareEndSmm</func>
- </item>
- <item>
- <name>피부욕창(상처)기록</name>
- <func> fHomeCareSkinWundRec</func>
- </item>
- <!--
- <item>
- <name>MMSE-K서식기록</name>
- <func>fHomeCareMMSE</func>
- </item>
- <item>
- <name>S-SDQ서식기록</name>
- <func>fHomeCareSSDQ</func>
- </item>
- -->
- <item>
- <name>-</name>
- <func/>
- </item>
- <item>
- <name>의뢰삭제</name>
- <func>fHomeCarePatientCancel</func>
- </item>
- <item>
- <name>가정간호 진료비 상세내역 조회</name>
- <func>fHomeCareOrdAmtDetl</func>
- </item>
- <item>
- <name>가정간호 선수금 수납내역 조회</name>
- <func>fHomeCarePreAmt</func>
- </item>
- <item>
- <name>가정간호 미수현황 조회</name>
- <func>fHomeCareUncoAmt</func>
- </item>
- </execorder017>
- <kind>
- <item>
- <name>가정간호 의뢰서 보기</name>
- <func>fHomeCareReqPaper</func>
- </item>
- <item>
- <name>방문간호 계약서 보기</name>
- <func>fVisitCarePaper</func>
- </item>
- <item>
- <name>퇴원시 가정간호기록조회</name>
- <func>fDschHomeCareRecRef</func>
- </item>
- <item>
- <name>OCR 서식지 출력(가정간호 동의서)</name>
- <func>fOCRDocuPrnt</func>
- </item>
- <item>
- <name>가정간호 정보조사</name>
- <func>fHomeCareInfoPaper</func>
- </item>
- <item>
- <name>방문기록</name>
- <func>fHomeCareVisitRec</func>
- </item>
- <item>
- <name>종결요약</name>
- <func>fHomeCareEndSmm</func>
- </item>
- <item>
- <name>피부욕창(상처)기록</name>
- <func>fHomeCareSkinWundRec</func>
- </item>
- <item>
- <name>MMSE-K서식기록</name>
- <func>fHomeCareMMSE</func>
- </item>
- <item>
- <name>S-SDQ서식기록</name>
- <func>fHomeCareSSDQ</func>
- </item>
- </kind>
- <!-- 성빈센트병원_마약처방관리, MMSE-K, S-SDQ서식기록 삭제요청_20090926_SMY -->
- <kind017>
- <item>
- <name>가정간호 의뢰서 보기</name>
- <func>fHomeCareReqPaper</func>
- </item>
- <item>
- <name>방문간호 계약서 보기</name>
- <func>fVisitCarePaper</func>
- </item>
- <item>
- <name>퇴원시 가정간호기록조회</name>
- <func>fDschHomeCareRecRef</func>
- </item>
- <item>
- <name>OCR 서식지 출력(가정간호 동의서)</name>
- <func>fOCRDocuPrnt</func>
- </item>
- <item>
- <name>가정간호 정보조사</name>
- <func>fHomeCareInfoPaper</func>
- </item>
- <item>
- <name>방문기록</name>
- <func>fHomeCareVisitRec</func>
- </item>
- <item>
- <name>종결요약</name>
- <func>fHomeCareEndSmm</func>
- </item>
- <item>
- <name>피부욕창(상처)기록</name>
- <func>fHomeCareSkinWundRec</func>
- </item>
- <!--
- <item>
- <name>MMSE-K서식기록</name>
- <func>fHomeCareMMSE</func>
- </item>
- <item>
- <name>S-SDQ서식기록</name>
- <func>fHomeCareSSDQ</func>
- </item>
- -->
- </kind017>
- <tree>
- <item>
- <name>아이템 추가</name>
- <func>fTreeInsertItem</func>
- </item>
- <item>
- <name>-</name>
- <func/>
- </item>
- <item>
- <name>아이템 삭제</name>
- <func>fTreeDeleteItem</func>
- </item>
- </tree>
- <exppaper>
- <item>
- <name>가정간호 정보조사지</name>
- <func>fHomeCareInfoPaper</func>
- </item>
- <item>
- <name>방문기록</name>
- <func>fHomeCareVisitRec</func>
- </item>
- <item>
- <name>경과요약</name>
- <func>fHomeCareProgSmm</func>
- </item>
- <item>
- <name>종결요약</name>
- <func>fHomeCareEndSmm</func>
- </item>
- <item>
- <name>피부욕창(상처)기록</name>
- <func>fHomeCareSkinWundRec</func>
- </item>
- <item>
- <name>MMSE-K서식기록</name>
- <func>fHomeCareMMSE</func>
- </item>
- <item>
- <name>S-SDQ서식기록</name>
- <func>fHomeCareSSDQ</func>
- </item>
- </exppaper>
- <!-- 성빈센트병원_마약처방관리, MMSE-K, S-SDQ서식기록 삭제요청_20090926_SMY -->
- <exppaper017>
- <item>
- <name>가정간호 정보조사지</name>
- <func>fHomeCareInfoPaper</func>
- </item>
- <item>
- <name>방문기록</name>
- <func>fHomeCareVisitRec</func>
- </item>
- <item>
- <name>경과요약</name>
- <func>fHomeCareProgSmm</func>
- </item>
- <item>
- <name>종결요약</name>
- <func>fHomeCareEndSmm</func>
- </item>
- <item>
- <name>피부욕창(상처)기록</name>
- <func>fHomeCareSkinWundRec</func>
- </item>
- <!--
- <item>
- <name>MMSE-K서식기록</name>
- <func>fHomeCareMMSE</func>
- </item>
- <item>
- <name>S-SDQ서식기록</name>
- <func>fHomeCareSSDQ</func>
- </item>
- -->
- </exppaper017>
- <!-- 종결 리스트 오른쪽 마우스 (2008.04.21 손은연) -->
- <endpaper>
- <item>
- <name>가정간호 의뢰서 보기</name>
- <func>fHomeCareReqPaper</func>
- </item>
- <item>
- <name>방문간호 계약서 보기</name>
- <func>fVisitCarePaper</func>
- </item>
- <item>
- <name>퇴원시 가정간호기록조회</name>
- <func>fDschHomeCareRecRef</func>
- </item>
- <item>
- <name>가정간호 정보조사</name>
- <func>fHomeCareInfoPaper</func>
- </item>
- </endpaper>
- </popupmenu>
- <tree>
- <item>
- <label>1</label>
- <value>1</value>
- <depth>1</depth>
- </item>
- <item>
- <label>1_1</label>
- <value>1_1</value>
- <depth>2</depth>
- </item>
- <item>
- <label>1_1_1</label>
- <value>1_1_1</value>
- <depth>3</depth>
- </item>
- <item>
- <label>1_1_1_1</label>
- <value>1_1_1_1</value>
- <depth>4</depth>
- </item>
- </tree>
- </codedata>
- <reqtransdata>
- <pid/>
- <pathngnm/>
- <sex/>
- <telno/>
- <pnrn/>
- <churchcd/>
- <reqtrnskind/>
- <reqdeptcd/>
- <reqdeptnm/>
- <reqdrid/>
- <reqdrnm/>
- <diagcd/>
- <diagnm/>
- <inptdt/>
- <instcd/>
- <rgstdd/>
- <enddd/>
- <endconfirmdd/>
- <endnurseid/>
- <endnursenm/>
- <endconfirmid/>
- <endconfirmnm/>
- <endreasonflag/>
- <endtypeflag/>
- <endtyperemark/>
- <endstatflag/>
- <rgstpatstat/>
- <endpatstat/>
- <visitcnt/>
- <savemode/>
- <endflag/>
- <patflag/>
- <screenid/>
- <chrrgstkind/>
- <rereqyn/>
- <formrecseq/>
- <chrgnursid/>
- <vstarea/>
- </reqtransdata>
- <diagtrnsdata>
- <pid/>
- <inptdt/>
- <instcd/>
- <patcareflag/>
- </diagtrnsdata>
- <intensivecaretrnsdata>
- <pid/>
- <inptdt/>
- <instcd/>
- <patcareflag/>
- </intensivecaretrnsdata>
- <endsummarytrnsdata>
- <endsummaryrecord>
- <pid/>
- <patnm/>
- <sex/>
- <reqdeptcd/>
- <reqdeptnm/>
- <reqdrid/>
- <reqdrnm/>
- <diagcd/>
- <diagnm/>
- <inptdt/>
- <instcd/>
- <rgstdd/>
- <enddd/>
- <endconfirmdd/>
- <endnurseid/>
- <endnursenm/>
- <endconfirmid/>
- <endconfirmnm/>
- <endreasonflag/>
- <endtypeflag/>
- <endtyperemark/>
- <endstatflag/>
- <rgstpatstat/>
- <endpatstat/>
- <visitcnt/>
- <savemode/>
- <endflag/>
- <patflag/>
- <reqdd/>
- <patcareflag/>
- </endsummaryrecord>
- </endsummarytrnsdata>
- <reqviewtrans>
- <pid/>
- <inptdt/>
- <instcd/>
- <patflag/>
- <churchcd/>
- <patcareflag/>
- </reqviewtrans>
- <iviewerdata>
- <formrecseq/>
- </iviewerdata>
- <visitviewtrans/>
- <!--(20100906 경북대) -->
- <init>
- <listset1>
- <list>
- <cdid>1</cdid>
- <cdnm>병원</cdnm>
- </list>
- <list>
- <cdid>2</cdid>
- <cdnm>본당</cdnm>
- </list>
- <list>
- <cdid>3</cdid>
- <cdnm>재택</cdnm>
- </list>
- </listset1>
- <listset>
- <list>
- <cdid>1</cdid>
- <cdnm>병원</cdnm>
- </list>
- </listset>
- <M0524/>
- </init>
- <!--(20100906 경북대) -->
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- var searchListFlag;
- var gRow;
- var gCol;
- var gPid;
- var gInptdt;
- var gInstcd;
- var gVisitdd;
- var gPatcareflag;
- var gCancelReason;
- var gExistYNPreVisitSchedule;
- var condparam;
- var gFormRecSeq;
- var gOrddd;
- var gCretno;
- var gOrddeptcd;
- var gOrddrid;
- var gNewPat;
- var VincentFlag;
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fClearChildNodeH(pNode){
- model.resetInstanceNode(pNode);
- }
- // 노드 클리어
- function fClear(){
- fInitCalendarYM();
- // setCalendar();
- fClearChildNodeH("/root/main/visitinfo");
- fClearChildNodeH("/root/main/patinfo");
- fClearChildNodeH("/root/main/grd_previsitlist");
- fClearChildNodeH("/root/temp/patinfo");
- fClearChildNodeH("/root/main/visitcounts");
- model.removeNodeset("/root/main/grd_viewprevisitlist");
- // model.refresh();
- }
- function isHomeTelNo(strDDD) {
- // 전국 지역번호 및 인터넷전화(040, 050(평생전화 0502 포함), 070, 090) 식별번호
- if(strDDD.substr(0, 2) != "02" &&
- strDDD != "031" &&
- strDDD != "032" &&
- strDDD != "033" &&
- strDDD != "041" &&
- strDDD != "042" &&
- strDDD != "043" &&
- strDDD != "051" &&
- strDDD != "052" &&
- strDDD != "053" &&
- strDDD != "054" &&
- strDDD != "055" &&
- strDDD != "061" &&
- strDDD != "062" &&
- strDDD != "063" &&
- strDDD != "064" &&
- strDDD != "040" &&
- strDDD != "050" &&
- strDDD != "070" &&
- strDDD != "090" ) return false;
- return true;
- }
- function isMobileTelNo(strDDD) {
- // 휴대전화(010, 011, 016, 017, 018, 019) 및 무선페이징(012, 013, 014, 015) 식별번호
- if( strDDD != "01") return false;
- return true;
- }
- // 방문예정일 등록, 변경 시 이미 등록한 방문예정일자가 존재하는지 체크
- function fIsPreVisitDay(sPreVD) {
- var countRowData = grd_viewprevisitlist.rows ;
- var ret = false ;
- for(var i=1;i<=countRowData;i++) {
- for(var j=1;j<=4;j++) {
- if(sPreVD == model.getValue("/root/main/grd_viewprevisitlist/previsitlist[" + i + "]/visitdd" + j )) {
- ret = true ;
- break ;
- }
- }
- }
- return ret ;
- }
- //진행상태별 화면 세팅
- function fDisableEnableBtn(searchListFlag){
- if(searchListFlag == "1" || searchListFlag == "5") {
- btn_savecycle.disabled = false;
- /////button4.disabled = false;
- grd_visitlst.visible = true;
- grd_reqlist.visible = false;
- grd_endlist.visible = false;
- grd_explist.visible = false;
- cap_listtitle.text = (searchListFlag == "1" ? "당일방문예정자 리스트" : "진행 리스트") ;
- }
- if(searchListFlag == "2") {
- btn_savecycle.disabled = true;
- /////button4.disabled = true;
- grd_visitlst.visible = false;
- grd_reqlist.visible = true;
- grd_endlist.visible = false;
- grd_explist.visible = false;
- cap_listtitle.text = "미확정 리스트";
- }
- if(searchListFlag == "3") {
- btn_savecycle.disabled = false;
- /////button4.disabled = false;
- grd_visitlst.visible = false;
- grd_reqlist.visible = false;
- grd_endlist.visible = true;
- grd_explist.visible = false;
- cap_listtitle.text = "종결 리스트";
- }
- if(searchListFlag == "4") {
- btn_savecycle.disabled = false;
- /////button4.disabled = false;
- grd_visitlst.visible = false;
- grd_reqlist.visible = false;
- grd_endlist.visible = false;
- grd_explist.visible = true;
- cap_listtitle.text = "만료환자 리스트";
- }
- }
- // 진행상태별 조회
- function fExcuteSearch(searchListFlag){
- var updtdata;
- model.removeNodeset("/root/main/grd_patvisitlst");
- if(searchListFlag == "1" || searchListFlag == "5") {
- switch (searchListFlag) {
- case "1" :
- // 1.당일방문예정자 리스트 조회
- updtdata = getGridUpdateData(grd_visitlst);
- if ( updtdata != "" ) {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if (ret != 6) { // not OK
- return false();
- }
- }
- model.removeNodeset("/root/main/grd_visitlst");
- grd_visitlst.rebuild();
- // 만료체크 해제
- if(checkbox2.value == 1) {
- checkbox2.value = "" ;
- }
- submit("TRMNF00100");
- opt_previsitcount.value = "방문예정 [" + getNodesetCount("/root/main/grd_visitlst/visitlist") + "]명";
- break;
- case "5" :
- // 5.진행리스트 조회
- updtdata = getGridUpdateData(grd_visitlst);
- if ( updtdata != "" ) {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if (ret != 6) { // not OK
- return false();
- }
- }
- model.removeNodeset("/root/main/grd_visitlst");
- grd_visitlst.rebuild();
- // 만료체크 해제
- if(checkbox2.value == 1) {
- checkbox2.value = "" ;
- }
- submit("TRMNF00114");
- opt_previsitcount.value = "진행 [" + getNodesetCount("/root/main/grd_visitlst/visitlist") + "]명";
- break;
- }
- }
- if(searchListFlag == "2") {
- updtdata = getGridUpdateData(grd_reqlist);
- if ( updtdata != "" ) {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if (ret != 6) { // not OK
- return false();
- }
- }
- model.removeNodeset("/root/main/grd_reqlist");
- grd_reqlist.rebuild();
- // 만료체크 해제
- if(checkbox2.value == 1) {
- checkbox2.value = "" ;
- }
- if (rdo_careflag.value != "V") {
- submit("TRMNF00111"); // 미확정리스트조회
- }
- opt_previsitcount.value = "전체 [" + getNodesetCount("/root/main/grd_reqlist/reqlist") + "]명";
- }
- if(searchListFlag == "3") {
- updtdata = getGridUpdateData(grd_endlist);
- if ( updtdata != "" ) {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if (ret != 6) { // not OK
- return false();
- }
- }
- model.removeNodeset("/root/main/grd_endlist");
- grd_endlist.rebuild();
- // 만료체크 해제
- if(checkbox2.value == 1) {
- checkbox2.value = "" ;
- }
- submit("TRMNF00116");
- opt_previsitcount.value = "";
- }
- if(searchListFlag == "4") {
- // 4.만료환자리스트 조회
- updtdata = getGridUpdateData(grd_explist);
- if ( updtdata != "" ) {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if (ret != 6) { // not OK
- return false();
- }
- }
- model.removeNodeset("/root/main/grd_explist");
- grd_explist.rebuild();
- submit("TRMNF00112");
- opt_previsitcount.value = "";
- }
- btn_zoom.attribute("text") = "기본보기";
- btn_zoom.dispatch("DOMActivate") ;
- var ordtype = "";
- for(var i = 0; i < grd_reqlist.rows;i++) {
- ordtype = grd_reqlist.valueMatrix(i, grd_reqlist.colRef("ordtype"));
- if(ordtype =="I") {
- grd_reqlist.cellstyle("background-color", i, grd_reqlist.colRef("inptstat"), i, grd_reqlist.colRef("inptstat")) = "#0099ff";
- } else if(ordtype == "E") {
- grd_reqlist.cellstyle("background-color", i, grd_reqlist.colRef("inptstat"), i, grd_reqlist.colRef("inptstat")) = "#ff99cc";
- }
- }
-
- for(var i = 0; i < grd_visitlst.rows;i++) {
-
- ordtype = grd_visitlst.valueMatrix(i, grd_visitlst.colRef("ordtype"));
-
- if(ordtype =="I") {
- grd_visitlst.cellstyle("background-color", i, grd_visitlst.colRef("inptstat"), i, grd_visitlst.colRef("inptstat")) = "#0099ff";
- } else if(ordtype == "E") {
- grd_visitlst.cellstyle("background-color", i, grd_visitlst.colRef("inptstat"), i, grd_visitlst.colRef("inptstat")) = "#ff99cc";
- }
- }
-
-
- return true;
- }
- function fSetPatInfos() {
- model.removenode("/root/main/paminfo");
- model.makeValue("/root/send/pid" ,model.getValue("/root/main/patinfo/patinforesult/pid"));
- model.setValue("/root/send/instcd", model.getValue("/root/main/patinfo/patinforesult/instcd"));
- model.makeValue("/root/send/ocrflag", "");
- model.makeValue("/root/send/orddeptcd", model.getValue("/root/main/patinfo/patinforesult/reqdeptcd"));
- model.makeValue("/root/send/orddrid", model.getValue("/root/main/patinfo/patinforesult/reqdrid"));
- model.makeValue("/root/send/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
- // 외래접수정보 조회
- submit("TRMNF00120");
- var ordtype = "O";
- var pid = model.getValue("/root/main/cond/patinfo/pid");
- var orddd = model.getValue("/root/main/cond/patinfo/orddd");
- var cretno = model.getValue("/root/main/cond/patinfo/cretno");
- var instcd = model.getValue("/root/main/cond/patinfo/instcd");
- //var acptseqno = model.getValue("/root/main/cond/patinfo/acptseqno");
- var orgorddd = model.getValue("/root/main/cond/patinfo/orddd");
- var orddrid = model.getValue("/root/main/cond/patinfo/orddrid"); // 가접수된 의사ID
- var param = ordtype + "▦" + pid + "▦" + orddd + "▦" + cretno + "▦" + instcd + "▦" + "" + "▦" + orgorddd;
- //alert(param);
- //alert(reqdrid+'/'+orddrid);
- // 가접수가 있으면서 가정간호 마스터 저장된 의사와 가접수된 의사가 일치하는 경우만 상단에 올리도록(의뢰가 여러건인 경우 의사가 달라지므로)
- if (!isNull(orddd)) {
- setParameter("condparam", param);
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- var node = getGlobalVariable("paminfo");
- model.makeNode("/root/main/paminfo");
- setCSVToNode("/root/main/paminfo", node);
- }
- }
- function fcareSetting() {
- //var flag = model.getValue("/root/send/prcsstat") ;
- //alert("flag:"+flag);
- // 미확정일때
- if(model.getValue("/root/send/prcsstat") == '2' ){
- var spatcareflag = model.getValue("/root/main/grd_reqlist/reqlist[" + grd_reqlist.row + "]/patcareflag");
- } else { // 그외는 환자이력에서 선택
- var spatcareflag = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + grd_patvisitlst.row + "]/patcareflag");
- }
- //alert("careflag:"+spatcareflag);
- if (spatcareflag == 'H') { // 가정간호
- combo3.disabled = false; // 감면유형
- combo9.disabled = true; // 등급
- combo14.disabled = true; // 본인부담률
- combo4.disabled = true; // 본인부담 경감
- input12.disabled = true; // 장기요양번호
- // 방문주기 라디오버튼, 체크박스, 횟수 관련
- rdo_hvisitprid.disabled = false;
- rdo_vvisitprid.disabled = true;
- chk_hdw.disabled = false;
- chk_vdw.disabled = true;
- ipt_hvisitpridtimes.disabled = false;
- ipt_vvisitpridtimes.disabled = true;
- } else if (spatcareflag == 'V') { // 방문간호
- combo3.disabled = true; // 감면유형
- combo9.disabled = false; // 등급
- combo14.disabled = false; // 본인부담률
- combo4.disabled = false; // 본인부담 경감
- input12.disabled = false; // 장기요양번호
- // 방문주기 라디오버튼, 체크박스, 횟수 관련
- rdo_hvisitprid.disabled = true;
- rdo_vvisitprid.disabled = false;
- chk_hdw.disabled = true;
- chk_vdw.disabled = false;
- ipt_hvisitpridtimes.disabled = true;
- ipt_vvisitpridtimes.disabled = false;
-
- } else if (spatcareflag == 'C') { // 호스피스가정간호
- combo3.disabled = false; // 감면유형
- combo9.disabled = true; // 등급
- combo14.disabled = true; // 본인부담률
- combo4.disabled = true; // 본인부담 경감
- input12.disabled = true; // 장기요양번호
- // 방문주기 라디오버튼, 체크박스, 횟수 관련
- rdo_hvisitprid.disabled = false;
- rdo_vvisitprid.disabled = true;
- chk_hdw.disabled = false;
- chk_vdw.disabled = true;
- ipt_hvisitpridtimes.disabled = false;
- ipt_vvisitpridtimes.disabled = true;
- }
- }
- function fGetParamSetting(){
- var chkPid = model.getValue("/root/main/patinfo/patinforesult/pid");
- var iTgPatRow = 0;
- if(chkPid != ""){
- var tRow = grd_visitlst.rows;
- if(tRow == "1"){
- return;
- }else{
- for( i =0 ; i < tRow ; i++ ){
- iTgPatRow = grd_visitlst.findRow(chkPid ,1, 3,true,true);
- }
- }
- }
- if(iTgPatRow > 0){
- grd_visitlst.row = iTgPatRow;
- grd_visitlst.topRow = iTgPatRow;
- //fSelectPatList();
- grd_visitlst.dispatch("onclick");
- }
- }
- // 구분선택시 신환등록/방문계약 버튼 컨트롤
- function fSelCareflag(){
- if(model.getValue("/root/send/kind") == "2"){ // kind 1: 병원, 2, 본당, 3. 재택
- if (model.getValue("/root/send/careflag") == '*'){
- btn_regnewpatient.attribute("text") = "신환등록";
- btn_regnewpatient.visible = true;
- } else if (model.getValue("/root/send/careflag") == 'H' ){
- btn_regnewpatient.attribute("text") = "신환등록";
- btn_regnewpatient.visible = true;
- } else if (model.getValue("/root/send/careflag") == 'V' ){
- btn_regnewpatient.visible = false;
- }
- }else if( model.getValue("/root/send/kind") == "1" ){
- if (model.getValue("/root/send/careflag") == '*'){
- btn_regnewpatient.visible = false;
- } else if (model.getValue("/root/send/careflag") == 'H' ){
- btn_regnewpatient.visible = false;
- } else if (model.getValue("/root/send/careflag") == 'V' ){
- btn_regnewpatient.attribute("text") = "방문계약";
- btn_regnewpatient.visible = true;
- }
- }
- }
- // 환자 정보조회 (오른쪽 그리드 클릭시 )
- function fGetPatInfo(){
- if(isDataCell()) {
- delPatientInfos(); //화면상단정보 삭제
- var cur_row = grd_patvisitlst.row;
- fClear();
- fcareSetting(); // 방문/가정 구분에 따른 화면활성화 제어
- if ( cur_row > 0 ) {
- model.setValue("/root/send/pid", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/pid"));
- model.setValue("/root/send/inptdt", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/inptdt"));
- model.setValue("/root/send/instcd", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/instcd"));
- model.setValue("/root/send/patcareflag", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/patcareflag"));
- model.setValue("/root/send/prcsstat", model.getValue("/root/send/prcsstat"));
- model.setValue("/root/send/reqdd", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/reqdd")); // 만료일 의뢰서별 조회하기 위해 추가(2009.05.07 황혜민)
- model.makeValue("/root/send/formrecseq", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/formrecseq")); // 관리정보 조회위해 추가(2010.04.23 황혜민)
- model.setValue("/root/main/visitinfo/pid", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/pid"));
- model.setValue("/root/main/visitinfo/inptdt", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/inptdt"));
- model.setValue("/root/main/visitinfo/instcd", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/instcd"));
- model.setValue("/root/main/visitinfo/hngnm", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/hngnm"));
- model.setValue("/root/main/visitinfo/sex", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/sex"));
- model.setValue("/root/main/visitinfo/patcareflag", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/patcareflag"));
- //model.refresh();
- }
- // 1.환자 기본정보 조회
- submit("TRMNF00101");
-
- //model.setValue(combo3.attribute("ref") , "-");
- model.makeValue("/root/main/patinfo/patinforesult/dctype", "-");
- combo3.refresh();
- //20081106 최지연 요청 번호로 보여달라
- //감면유형 요청번호셋팅 하드코딩수정_20091230_SMY
- model.makeValue("/root/main/patinfo/patinforesult/dctypenum", model.getValue("/root/item/dctype/dctypelist[cd = '" + model.getValue("/root/main/patinfo/patinforesult/dctype") + "']/sortseq"));
- //2009.02.13 방문간호 본인부담 경감 추가
- //본인부담 경감 요청번호셋팅 하드코딩수정_20091230_SMY
- model.makeValue("/root/main/patinfo/patinforesult/vdctypenum", model.getValue("/root/item/dctype/vdctypelist[cd = '" + model.getValue("/root/main/patinfo/patinforesult/vdctype") + "']/sortseq"));
- if(model.getValue("/root/send/prcsstat") == '2' ){
- //미확정 리스트 일 경우 언제나 등록구분이 선택됨
- combo1.value = '1';
- }
- if ( !isNull(model.getValue("/root/main/patinfo/patinforesult/pid")) ){
- gNewPat = "N" ;
- fDisableEnableBtn(searchListFlag) ;
- copyNodeListType("/root/main/visitcounts", "/root/main/patinfo/visitcount", "replace", model, model);
- copyNodeListType("/root/main/grd_previsitlist", "/root/main/patinfo/previsitlist", "replace", model, model);
- //조회하여온 감면코드를 값이 변경되는지 확인을 위해 임시로 저장해둠 - 방문간호 감면유형도 추가 2009.02.24
- var dccd = model.getValue("/root/main/patinfo/patinforesult/dctype");
- model.makeValue("/root/temp/patinfo/patinforesult/dctype",dccd);
- var vdccd = model.getValue("/root/main/patinfo/patinforesult/vdctype");
- model.makeValue("/root/temp/patinfo/patinforesult/vdctype",vdccd);
- //의뢰서 진단정보 셋팅_20100111_SMY
- model.setValue("/root/main/patinfo/patinforesult/cnstdiagcd", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/cnstdiagcd"));
- model.setValue("/root/main/patinfo/patinforesult/cnstdiaghngnm", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/cnstdiagname"));
- model.setValue("/root/main/patinfo/patinforesult/cnstdiagconcat", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/cnstdiagname"));
- // 담당간호사 매칭
- fChrgNursIdMapping();
- // [가정간호] 개별 가정간호 방문정보에 방문주기, 방문횟수, 방문요일 매칭
- model.setValue("/root/main/visitinfo/visitpridflag", model.getValue("/root/main/patinfo/patinforesult/visitpridflag"));
- model.setValue("/root/main/visitinfo/visitpridtimes", model.getValue("/root/main/patinfo/patinforesult/visitpridtimes"));
- model.setValue("/root/main/visitinfo/visitdwflag", model.getValue("/root/main/patinfo/patinforesult/visitdwflag"));
- // [방문간호] 개별 가정간호 방문정보에 방문주기, 방문횟수, 방문요일 매칭
- model.setValue("/root/main/visitinfo/vvisitpridflag", model.getValue("/root/main/patinfo/patinforesult/vvisitpridflag"));
- model.setValue("/root/main/visitinfo/vvisitpridtimes", model.getValue("/root/main/patinfo/patinforesult/vvisitpridtimes"));
- model.setValue("/root/main/visitinfo/vvisitdwflag", model.getValue("/root/main/patinfo/patinforesult/vvisitdwflag"));
- // 개별 가정간호 방문정보에 최근방문일 매칭
- model.setValue("/root/main/visitinfo/lastvisitdd", model.getValue("/root/main/patinfo/visitdate/lastvisitdd"));
- // 간호구분 추가
- model.setValue("/root/main/visitinfo/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
- // 달력에 일자별 방문(예정)건수 대입
- fDataDisplayPat(); // 환자 선택했을 경우 색상 구분
- fClearChildNodeH("/root/main/grd_viewprevisitlist/previsitlist");
- fMoveViewPreVisitLIst();
- // 의뢰전송 데이터 전달
- if ( cur_row > 0 ) {
- model.setValue("/root/reqtransdata/pid", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/pid"));
- model.setValue("/root/reqtransdata/inptdt", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/inptdt"));
- model.setValue("/root/reqtransdata/pathngnm", model.getValue("/root/main/patinfo/patinforesult/hngnm"));
- model.setValue("/root/reqtransdata/sex", model.getValue("/root/main/patinfo/patinforesult/sex"));
- model.setValue("/root/reqtransdata/pnrn", model.getValue("/root/main/insuinfo/patinsuinfo/insdrrgstno"));
- model.setValue("/root/reqtransdata/telno", model.getValue("/root/main/patinfo/patinforesult/telno1"));
- //----------------------------------------------------------------------------------------------------------------------
- model.setValue("/root/reqtransdata/churchcd", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/headquarter"));
- // 의뢰전송 버튼 클릭시 세팅함. ( '1' : 병원 --> 본당, '2' : 본당 --> 병원 or 본당 )
- //model.setValue("/root/reqtransdata/reqtrnskind", ""));
- model.setValue("/root/reqtransdata/reqdeptcd", model.getValue("/root/main/patinfo/patinforesult/reqdeptcd"));
- model.setValue("/root/reqtransdata/reqdeptnm", "");
- model.setValue("/root/reqtransdata/reqdrid", model.getValue("/root/main/patinfo/patinforesult/reqdrid"));
- model.setValue("/root/reqtransdata/reqdrnm", "");
- model.setValue("/root/reqtransdata/diagcd", model.getValue("/root/main/patinfo/patinforesult/diagcd"));
- model.setValue("/root/reqtransdata/diagnm", model.getValue("/root/main/patinfo/patinforesult/diagname"));
- model.setValue("/root/reqtransdata/instcd", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/instcd"));
- model.setValue("/root/reqtransdata/rgstdd", model.getValue("/root/main/patinfo/patinforesult/rgstdd"));
- model.setValue("/root/reqtransdata/enddd", getCurrentDate());
- model.setValue("/root/reqtransdata/endconfirmdd", getCurrentDate());
- model.setValue("/root/reqtransdata/endnurseid", getUserId());
- model.setValue("/root/reqtransdata/endnursenm", getUserName() );
- model.setValue("/root/reqtransdata/endconfirmid", getUserId());
- model.setValue("/root/reqtransdata/endconfirmnm", getUserName() );
- if (rdo_kind.value == 1) { // 병원에서 본당으로 의뢰전송
- model.setValue("/root/reqtransdata/endreasonflag", ""); // 병원 --> 본당은 종결 아니고 그대로 유지
- } else if (rdo_kind.value == 2) { // 본당에서 병원 혹은 본당으로 의뢰전송
- model.setValue("/root/reqtransdata/endreasonflag", "8"); // 종결사유 : 8 (전환), 9(병원의뢰)
- }
- model.setValue("/root/reqtransdata/endtypeflag", ""); // 종결유형 :
- model.setValue("/root/reqtransdata/endtyperemark", "");
- model.setValue("/root/reqtransdata/endstatflag", "");
- model.setValue("/root/reqtransdata/rgstpatstat", "");
- model.setValue("/root/reqtransdata/endpatstat", "");
- model.setValue("/root/reqtransdata/visitcnt", "");
- model.setValue("/root/reqtransdata/savemode", "I");
- model.setValue("/root/reqtransdata/endflag", "Y");
- model.setValue("/root/reqtransdata/patflag", model.getValue("/root/main/patinfo/patinforesult/patflag"));
- model.setValue("/root/reqtransdata/rereqyn", model.getValue("/root/main/patinfo/patinforesult/rereqyn"));
- model.setValue("/root/reqtransdata/formrecseq", model.getValue("/root/main/patinfo/patinforesult/formrecseq"));
- }
- }
- fSetPatInfos(); // 환자상단 올리기
-
-
- model.refresh();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(new Array("M0387", "M0524"), new Array("/root/item/reqcancelreason", "/root/init/M0524"));
- addComboInstance("/root/init/M0524", "cdid^cdnm", "*^전체", "M0524"); // 가정간호 구분에 전체 추가
-
- fInitHomeCareRdo("rdo_kind");
-
- model.setValue("/root/send/kind", "1"); // 병원 세팅
- model.setValue("/root/send/patflag", "1");
- model.setValue("/root/send/churchcd",'-');
-
- if(getUserInfo("dutplceinstcd") == "031"){
- model.setValue("/root/send/careflag",'H');
- } else if(getUserInfo("dutplceinstcd") == "031"){
- model.setValue("/root/send/careflag",'C');
- } else {
- model.setValue("/root/send/careflag",'C');
- }
- // 성가병원만 감면유형 해당없음으로 기본 설정 후 비활성화(2009.12.21 hhm)
- //if(getUserInfo("dutplceinstcd") == "014"){
- //기관코드(014)하드코딩수정_20091230_SMY
- if(model.getValue("/root/code/codeinfo/codelist[cdgrupid = '077' and supcdid = '03' and cdid = '"+ getUserInfo("dutplceinstcd") +"']/cdid")){ //supcdid='03' : 부천성가병원
- model.setValue("/root/main/patinfo/patinforesult/dctype", "-"); //-
- combo3.disabled = true;
- }
- //진행상태 라디오 버튼으로 변경
- //20080124 손은연
- model.setValue("/root/send/prcsstat", "1"); // 당일방문예정 세팅
- searchListFlag = model.getValue("/root/send/prcsstat"); // Default "1" - 당일방문예정자 리스트
- delPatientInfos(); //화면상단정보 삭제
- grp_inputschedule.visible = false;
- model.setValue("/root/send/visitdd", getCurrentDate());
- model.setValue("/root/send/mode", "1");
- model.setValue("/root/send/inputvisitdd", getCurrentDate());
- fDisableEnableBtn(searchListFlag);
- //*******************************************************************
- // 기준정보 로드
- //*******************************************************************
- // 1.본당을 조회, 콤보박스에 세팅한다.
- submit("TRMNF00130");
- // 2.조회조건의 가정간호 담당간호사 리스트를 조회, 콤보박스에 세팅한다. 20080124 김홍점 병원이든 본당이든 간호사는 조회되어야 한다.
- // 메인 오픈시 같은 sql을 2번씩 호출하여 막음(2009.03.28) ==> 병원/본당 간호사 셋팅은 사용자 정보 셋팅후 바로 조회하도록 추가함
- rdo_kind.dispatch("xforms-value-changed");
- if ( fExcuteSearch(searchListFlag) == false ) { // 진행상태별 조회
- return;
- }
- //0. 진행상태 : 당일방문예정, 미확정, 진행, 종결 카운트 조회
- submit("TRMNF00115");
- // 7.일자별 방문(예정)건수 조회
- submit("TRMNF00107");
- // 달력에 일자별 방문(예정)건수 대입
- fDataDisplay();
- //*************************************************************
- ]]>
- </script>
- <submission id="TRMNF00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grd_visitlst"/>
- <submission id="TRMNF00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/patinfo"/>
- <submission id="TRMNF00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/mnginfo1"/>
- <submission id="TRMNF00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/mnginfo3"/>
- <submission id="TRMNF00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/mnginfo2"/>
- <submission id="TRMNF00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/mnginfo4"/>
- <submission id="TRMNF00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/item/chargenurse"/>
- <submission id="TRMNF00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/visitcounts"/>
- <submission id="TRMNF00108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/insuinfo"/>
- <submission id="TRMNF00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grd_previsitlist"/>
- <submission id="TRMNF00110" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/item/dctype"/>
- <submission id="TRMNF00111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grd_reqlist"/>
- <submission id="TRMNF00112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grd_explist"/>
- <submission id="TRMNF00113" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/endsummary"/>
- <submission id="TRMNF00114" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grd_visitlst"/>
- <submission id="TRMNF00115" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/procstat"/>
- <submission id="TRMNF00116" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grd_endlist"/>
- <!--<submission id="TRMNF00117" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/existinfo"/> -->
- <submission id="TRMNF00118" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/newpatientinfo/patinfo" replace="instance" resultref="/root/main/newpatientflag"/>
- <submission id="TRMNF00119" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/existinfo"/>
- <submission id="TRMNF00120" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/cond"/>
- <submission id="TRMNF00121" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/expcounts"/>
- <submission id="TRMNF00122" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/cond/list" resultref="/root/temp/cond/list"/>
- <submission id="TRMNF00123" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/pid" resultref="/root/main/visitrecord"/>
- <submission id="TRMNF00124" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/reqtrnsinfo"/>
- <!--<submission id="TRMNF00125" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/trgtpidinfo"/> -->
- <submission id="TRMNF00126" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/visitflag"/>
- <submission id="TRMNF00130" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/item/church"/>
- <submission id="TRMNF00131" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grd_patvisitlst"/>
- <submission id="TRMNF00407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/inptinfo"/>
- <submission id="TRMNF04302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/dschpatinfo"/>
- <submission id="TXMNF00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp"/>
- <submission id="TXMNF00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/visitinfo" resultref="/root/tmp"/>
- <submission id="TXMNF00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/patinfo/patinforesult" replace="instance" resultref="/root/tmp"/>
- <submission id="TXMNF00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/patinfo/patinforesult" replace="instance" resultref="/root/temp/patinfo"/>
- <submission id="TXMNF00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grd_previsitlist"/>
- <submission id="TXMNF00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grd_previsitlist"/>
- <submission id="TXMNF00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grd_previsitlist"/>
- <submission id="TXMNF00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- <!--<submission id="TXMNF00108" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/temp"/> -->
- <submission id="TXMNF00110" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/newpatientinfo/patinfo" replace="instance" resultref="/root/main/newpidinfo/newpid"/>
- <submission id="TXMNF00111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/canceldata"/>
- <submission id="TXMNF00112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- <submission id="TXMNF00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/reqtransdata" replace="instance" resultref="/root/temp"/>
- <submission id="TXMNF00504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/reqtransdata" replace="instance" resultref="/root/temp"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00122" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/code/codelist"/>
- <submission id="TRMNF00132" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/patinfo/patinforesult" resultref="/root/temp/chrrgstkindinfo"/>
- <submission id="TXMNF00505" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/"/>
- <submission id="TRMNF00133" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/item/visitarea"/>
- </model>
- <script type="javascript">
- <![CDATA[
- var sPid;
- var sInptdt;
- var sData = new Array(31);
- function fMoveViewPreVisitLIst(){
- // 조회된 방문예정일 정보(grd_previsitlist)를 일자만 보여주는 그리드(grd_viewprevisitlist )로 데이터 이동을 한다.
- var previsitlistcnt = 0;
- var visitddrowcnt = 0;
- var rowCnt = 0;
- var colCnt = 0;
- if ( !isNull(model.getValue("/root/main/grd_previsitlist/previsitlist/pid")) ){
- previsitlistcnt = getNodesetCount("/root/main/grd_previsitlist/previsitlist"); // 방문예정일건수
- }
- rowCnt = 1;
- visitddrowcnt = 1;
- if(previsitlistcnt > 0) {
- grd_viewprevisitlist.addItem();
- }
- fClearChildNodeH("/root/main/grd_viewprevisitlist");
- // 4개에서 2개로 변경
- for(colCnt = 1; colCnt <= 2; colCnt++) {
- if(rowCnt > previsitlistcnt) {
- break;
- }
- if( visitddrowcnt * 2 - (2 - colCnt) <= previsitlistcnt) {
- switch (colCnt) {
- case 1 :
- model.setValue("/root/main/grd_viewprevisitlist/previsitlist[" + visitddrowcnt + "]/visitdd1", model.getValue("/root/main/grd_previsitlist/previsitlist[" + rowCnt + "]/visitdd"));
- model.setValue("/root/main/grd_viewprevisitlist/previsitlist[" + visitddrowcnt + "]/visitflag1", model.getValue("/root/main/grd_previsitlist/previsitlist[" + rowCnt + "]/careflagnm"));
- break;
- case 2 :
- model.setValue("/root/main/grd_viewprevisitlist/previsitlist[" + visitddrowcnt + "]/visitdd2", model.getValue("/root/main/grd_previsitlist/previsitlist[" + rowCnt + "]/visitdd"));
- model.setValue("/root/main/grd_viewprevisitlist/previsitlist[" + visitddrowcnt + "]/visitflag2", model.getValue("/root/main/grd_previsitlist/previsitlist[" + rowCnt + "]/careflagnm"));
- break;
- //case 3 :
- // model.setValue("/root/main/grd_viewprevisitlist/previsitlist[" + visitddrowcnt + "]/visitdd3", model.getValue("/root/main/grd_previsitlist/previsitlist[" + rowCnt + "]/visitdd"));
- // break;
- //case 4 :
- // model.setValue("/root/main/grd_viewprevisitlist/previsitlist[" + visitddrowcnt + "]/visitdd4", model.getValue("/root/main/grd_previsitlist/previsitlist[" + rowCnt + "]/visitdd"));
- }
- grd_viewprevisitlist.cellStyle("background-color", visitddrowcnt, colCnt) = "#96F562";
- grd_viewprevisitlist.refresh();
- }
- if(colCnt == 2 && (visitddrowcnt * 2 - (2 - colCnt) <previsitlistcnt) ) {
- visitddrowcnt = visitddrowcnt +1;
- colCnt = 0;
- grd_viewprevisitlist.addItem(); // 입력할 행 추가.
- }
- rowCnt = rowCnt + 1;
- grd_viewprevisitlist.refresh();
- } // for end
- }
- //주민번호 유효검사
- function fRrgstNo1Veri() {
- var ptbs_rrgstno1 = model.getValue("/root/main/newpatientinfo/patinfo/ptbs_rrgstno1");
- if (ptbs_rrgstno1.length != 6) {
- messageBox("주민등록번호 앞자리는 6자리","E008"); // 입니다.
- model.setFocus("ipt_rrgstno1");
- return false;
- }
- if(ptbs_rrgstno1.substr(2,2) < "01" || ptbs_rrgstno1.substr(2,2) > "12") {
- messageBox("주민등록번호 앞자리중 월은 01 ~ 12 사이의 값","E008"); // 입니다.
- model.setFocus("ipt_rrgstno1");
- return false;
- }
- if(ptbs_rrgstno1.substr(4,2) < "01" || ptbs_rrgstno1.substr(4,2) > "31") {
- messageBox("주민등록번호 앞자리중 일자는 01 ~ 31 사이의 값","E008"); // 입니다.
- model.setFocus("ipt_rrgstno1");
- return false;
- }
- }
- //주민번호 유효검사
- function fRrgstNo2Veri() {
- var ptbs_brthdd;
- var ptbs_rrgstno1 = model.getValue("/root/main/newpatientinfo/patinfo/ptbs_rrgstno1");
- var ptbs_rrgstno2 = model.getValue("/root/main/newpatientinfo/patinfo/ptbs_rrgstno2");
- if (ptbs_rrgstno1.length != 6) {
- messageBox("주민등록번호 앞자리는 6자리","E008"); // 입니다.
- model.setFocus("ipt_rrgstno1");
- return false;
- }
- if (ptbs_rrgstno2.length != 7) {
- messageBox("주민등록번호 뒷자리는 7자리","E008"); // 입니다.
- model.setFocus("ipt_rrgstno2");
- return false;
- }
- var gubn = ptbs_rrgstno2.substr(0,1);
- switch(gubn){
- case '1' :
- case '2' :
- case '5' :
- case '6' :
- ptbs_brthdd = '19'.concat(ptbs_rrgstno1);
- break;
- case '3' :
- case '4' :
- case '7' :
- case '8' :
- ptbs_brthdd = '20'.concat(ptbs_rrgstno1);
- break;
- case '9' :
- case '0' :
- ptbs_brthdd = '18'.concat(ptbs_rrgstno1);
- break;
- default :
- ptbs_brthdd = '19'.concat(ptbs_rrgstno1);
- break;
- }
- model.setValue("/root/main/newpatientinfo/patinfo/ptbs_brthdd",ptbs_brthdd);
- if (isValidDateTime(ptbs_brthdd, "YYYYMMDD") == false) {
- messageBox("주민등록번호 앞6자리 형식오류입니다. 올바른 일자형태로","C001"); // 입력하십시요!
- model.setValue("/root/main/newpatientinfo/patinfo/ptbs_rrgstno1","");
- model.setValue("/root/main/newpatientinfo/patinfo/ptbs_rrgstno2","");
- model.setValue("/root/main/newpatientinfo/patinfo/ptbs_brthdd","");
- model.setFocus("ipt_rrgstno1");
-
- ipt_rrgstno1.refresh();
- ipt_rrgstno2.refresh();
- ipt_brthdd.refresh();
- return false;
- }
- var ptbs_sex = model.getValue("/root/main/newpatientinfo/patinfo/ptbs_rrgstno2");
- model.setValue("/root/main/newpatientinfo/patinfo/ptbs_sex",getGender(ptbs_sex));
- var ptbs_rrgstno = ptbs_rrgstno1.concat(ptbs_rrgstno2);
- if (isResidentNo(ptbs_rrgstno) == false) {
- var message = messageBox("유효하지 않은 주민등록번호입니다.","Q003"); // 계속 진행하시겠습니까?
- if( message == 6 ){
- return true;
- }else{
- model.setValue("/root/main/newpatientinfo/patinfo/ptbs_rrgstno1","");
- model.setValue("/root/main/newpatientinfo/patinfo/ptbs_rrgstno2","");
- model.setValue("/root/main/newpatientinfo/patinfo/ptbs_brthdd","");
- model.setValue("/root/main/newpatientinfo/patinfo/ptbs_sex","");
- model.setFocus("ipt_rrgstno1");
- //model.refresh();
- ipt_rrgstno1.refresh();
- ipt_rrgstno2.refresh();
- ipt_brthdd.refresh();
-
- return false;
- }
- }
- }
- function fDateCntSet(){
- var Idx = 0;
- var sNode ;
- var xNode ;
- var nLen ;
- if(model.getValue("/root/main/expflag") == "1") { // 만료 체크 시
- sNode = "/root/main/expcounts";
- xNode = instance1.selectSingleNode(sNode);
- nLen = xNode.childNodes.length;
- } else {
- sNode = "/root/main/visitcounts";
- xNode = instance1.selectSingleNode(sNode);
- nLen = xNode.childNodes.length;
- }
- // alert("sNode: "+sNode+" xNode: "+xNode+" nLen: "+ nLen);
- for (var i=0;i < sData.length; i++){
- sData[i] = "";
- }
- for (var i=0;i<=nLen; i++){
- if(model.getValue("/root/main/expflag") == "1") { // 만료 체크 시
- Idx = model.getValue(sNode+"/expcount["+(i+1)+"]/visitdd").substr(6, 2);
- sData[Idx-1] = model.getValue(sNode+"/expcount["+(i+1)+"]/cnt");
- } else {
- Idx = model.getValue(sNode+"/visitcount["+(i+1)+"]/visitdd").substr(6, 2);
- sData[Idx-1] = model.getValue(sNode+"/visitcount["+(i+1)+"]/cnt");
- }
- }
- }
- //===
- function fDataDisplay(){
- var Idx = 0;
- var calRow;
- var calCol;
- fInitCalendarYM();
- fDateCntSet();
- var objNode = instance1.selectSingleNode("/root/hidden/calendar/weeklist/list[1]");
- var rowCntHV = getNodesetCnt( model1, "/root/hidden/calendar/weeklist/list"); // 달력행의 수
- for (var i=0;i < rowCntHV; i++) {
- objNode = instance1.selectSingleNode("/root/hidden/calendar/weeklist/list["+(i+1)+"]");
- for (var j=0;j < 7; j++) {
- if (objNode.childNodes(j+1).text != "") {
- Idx = parseInt(objNode.childNodes(j+1).text);
- objNode.childNodes(j+8).text = sData[Idx-1];
- calRow = i+1;
- calCol = j+1;
- }
- }
- } // for end
- grd_calendar.refresh();
- cap_visitddcolor.visible = false;
- cap_visitdd.visible = false;
- cap_previsitddcolor.visible = false;
- cap_previsitdd.visible = false;
- cap_careflagnm.visible = true;
- }
- function fDataDisplayPat(){
- var Idx = 0;
- var calRow;
- var calCol;
- var curDate = model.getValue("/root/send/visitdd");
- /* fInitCalendarYM()로 변경 (2009.08.12 hhm)
- var curDate = model.getValue("/root/send/visitdd") ;
- var syyyy = curDate.substr(0, 4) + curDate.substr(4, 2);
- cap_ym.value = curDate.substr(0, 4) + "년 " + curDate.substr(4, 2) + "월" ;
- setCalendar(curDate.toDate());
- */
- fInitCalendarYM(); // 달력에 오늘 날짜로 셋팅
- fDateCntSet();
- var objNode = instance1.selectSingleNode("/root/hidden/calendar/weeklist/list[1]");
- var rowCntHV = getNodesetCnt( model1, "/root/hidden/calendar/weeklist/list"); // 달력행의 수
- for (var i=0;i < rowCntHV; i++) {
- objNode = instance1.selectSingleNode("/root/hidden/calendar/weeklist/list["+(i+1)+"]");
- for (var j=0;j < 7; j++) {
- if (objNode.childNodes(j).text != "") {
- Idx = parseInt(objNode.childNodes(j).text); // 달력의 날짜
- objNode.childNodes(j+7).text = sData[Idx-1]; // 방문일 방문예정일 데이터 달력에 셋팅
- calRow = i+1;
- calCol = j;
- var tmpCalCol;
- if( calCol <= 7 )
- tmpCalCol = calCol + 7;
- else
- tmpCalCol = calCol - 7;
-
- if(sData[Idx-1] != "") {
- //alert(parseInt(curDate.substr(6,2)) + " "+ parseInt(grd_calendar.valueMatrix(calRow, calCol)) );
- if(parseInt(curDate.substr(6,2)) <= parseInt(grd_calendar.valueMatrix(calRow, calCol))) { // 방문예정일
- grd_calendar.cellStyle("background-color", calRow, calCol) = "#96F562";
- grd_calendar.cellStyle("background-color", calRow, tmpCalCol) = "#96F562";
- } else { // 방문일
- grd_calendar.cellStyle("background-color", calRow, calCol) = "#66CDAA";
- grd_calendar.cellStyle("background-color", calRow, tmpCalCol) = "#66CDAA";
- }
- }
- }
- }
- } // for end
- grd_calendar.refresh();
- cap_visitddcolor.visible = true;
- cap_visitdd.visible = true;
- cap_previsitddcolor.visible = true;
- cap_previsitdd.visible = true;
- cap_careflagnm.visible = false;
- }
- function fInitCalendarYM() {
- var curDate = model.getValue("/root/send/visitdd").toDate() ;
- cap_ym.value = model.getValue("/root/send/visitdd").substr(0, 4) + "년 " + model.getValue("/root/send/visitdd").substr(4, 2) + "월" ;
- model.setValue("/root/hidden/calendar/year", curDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", curDate.getDateFormat('MM'));
- //model.removeNodeset("/root/hidden/calendar/weeklist/list"); // 추가 (2009.08.13 hhm)
- setCalendar();
- }
- // function setCalendar(dateObj) {
- function setCalendar() {
- grd_calendar.rebuildStyle();
- // 그리드 초기화
- //model.removeNodeset("/root/hidden/calendar/weeklist/list");
- grd_calendar.rebuild()
- // AWMCommon.js에서 지원하는 함수 getNodesetCnt
- /*************************************************************************
- * 로드갯수 구하기
- * @param : 모델명(model1), 경로(path) 일수가 구해짐.
- ************************************************************************/
- var nodeno = getNodesetCnt(model1, "/root/main/visitcounts/caldatainfo");
- // alert("nodeno"+ nodeno);
- for(i =1, j= nodeno; i<=j ; i++){
- var row = model.getValue("/root/main/visitcounts/caldatainfo["+ i +"]/weekno");// 주
- var col = model.getValue("/root/main/visitcounts/caldatainfo["+ i +"]/dw")-1;// 요일
- var dutflag = model.getValue("/root/main/visitcounts/caldatainfo[" + i + "]/dutflag");
- var basedd = model.getValue("/root/main/visitcounts/caldatainfo["+ i +"]/basedd");
- if( dutflag == "4"){ //토요일인 경우, 파란색 설정
- grd_calendar.cellStyle("color", row, col, row, col) = "#0000ff";
- // 0- 평일 인 경우는 검은색 설정
- } else if ( dutflag == '0') {
- grd_calendar.cellStyle("color", row, col, row, col) = "#000000";
- // 8 - 휴일인 경우는 빨간색 설정
- } else if( dutflag == '8') {
- grd_calendar.cellStyle("color", row, col, row, col) = "#ff0000";
- }
- if(basedd == model.getValue("/root/send/visitdd")){ // 오늘날짜(업무일자) 보라색 표시
- grd_calendar.cellStyle("background-color", row, col) = "#daa7d9";
- grd_calendar.cellStyle("background-color", row, col+7) = "#daa7d9";
- }
- //alert(row+model.getValue("/root/main/visitcounts/caldatainfo["+ i +"]/day"));
- switch(col){ // 달력에 날짜대입
- case 0:
- model.setValue("/root/hidden/calendar/weeklist/list[" + row + "]/sun", model.getValue("/root/main/visitcounts/caldatainfo["+ i +"]/day"));
- break;
- case 1:
- model.setValue("/root/hidden/calendar/weeklist/list[" + row + "]/mon", model.getValue("/root/main/visitcounts/caldatainfo["+ i +"]/day"));
- break;
- case 2:
- model.setValue("/root/hidden/calendar/weeklist/list[" + row + "]/tue", model.getValue("/root/main/visitcounts/caldatainfo["+ i +"]/day"));
- break;
- case 3:
- model.setValue("/root/hidden/calendar/weeklist/list[" + row + "]/wed", model.getValue("/root/main/visitcounts/caldatainfo["+ i +"]/day"));
- break;
- case 4:
- model.setValue("/root/hidden/calendar/weeklist/list[" + row + "]/thu", model.getValue("/root/main/visitcounts/caldatainfo["+ i +"]/day"));
- break;
- case 5:
- model.setValue("/root/hidden/calendar/weeklist/list[" + row + "]/fri", model.getValue("/root/main/visitcounts/caldatainfo["+ i +"]/day"));
- break;
- case 6:
- model.setValue("/root/hidden/calendar/weeklist/list[" + row + "]/sat", model.getValue("/root/main/visitcounts/caldatainfo["+ i +"]/day"));
- break;
- }
- }// for문 end
- grd_calendar.refresh();
- }
- //환자정보의 담당간호사 매핑
- //20071203 김홍점
- function fChrgNursIdMapping(){
- if ( model.getValue("/root/send/kind") == "1" ) {
- model.setValue("/root/main/patinfo/patinforesult/chrgnursid1", model.getValue("/root/main/patinfo/patinforesult/chrgnursid"));
- } else if ( model.getValue("/root/send/kind") == "2" ) {
- model.setValue("/root/main/patinfo/patinforesult/chrgnursid2", model.getValue("/root/main/patinfo/patinforesult/chrgnursid"));
- } else if ( model.getValue("/root/send/kind") == "3" ) {
- model.setValue("/root/main/patinfo/patinforesult/chrgnursid3", model.getValue("/root/main/patinfo/patinforesult/chrgnursid"));
- }
-
- combo2.refresh();
- combo10.refresh();
- combo13.refresh();
- //model.refresh();
- }
- //조회를 위한 값 make
- //20071203 김홍점
- function fMakeChrRgstKind(){
- model.removenode("/root/send/chrrgstkindarr");
- var patflag = model.getValue("/root/send/kind");
- var getChrRgstKind = model.getValue("/root/send/chrrgstkind");
- if(patflag == "2"){
- if(getChrRgstKind == '1'){
- sAttConcat = '1'; //등록
- }else if(getChrRgstKind == '2'){
- sAttConcat = '2'; //무료
- }else if(getChrRgstKind == '3'){
- sAttConcat = '3'; //기타
- }else if(getChrRgstKind == '1,2' || getChrRgstKind == '2,1' ){
- sAttConcat = '4'; //등록 + 무료
- }else if(getChrRgstKind == '1,3' || getChrRgstKind == '3,1'){
- sAttConcat = '5'; //등록 + 기타
- }else if(getChrRgstKind == '2,3' || getChrRgstKind == '3,2'){
- sAttConcat = '6'; //기타 + 무료
- }else{
- sAttConcat = '7'; //등록 + 기타 + 무료
- }
- model.makeValue("/root/send/chrrgstkindarr", sAttConcat);
- }
- }
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- // 그리드 사용자 팝업 메뉴 공통 함수
- function fPreVisitDDInsert() {
- // 방문예정일 등록
- caption8.value = "방문예정일 등록";
- opt_iuflag.value = "I";
- ipt_inputschedule.value = getCurrentDate() ;
- grp_inputschedule.visible = true;
- }
- function fPreVisitDDUpdate() {
- //alert(gVisitdd);
- model.setValue("/root/send/pid", gPid); // pid
- model.setValue("/root/send/inptdt", gInptdt); // inptdt
- model.setValue("/root/send/instcd", gInstcd); // /root/send/instcd
- model.setValue("/root/send/currvisitdd", model.getValue("/root/send/visitdd")); // visitd 조회를 위한 방문일자
- model.setValue("/root/send/mode", model.getValue("/root/send/mode")); // /root/send/mode 조회를 위한 모드
- model.setValue("/root/send/kind", model.getValue("/root/send/kind")); // /root/send/kind 조회를 위한 모드
- model.setValue("/root/send/visitdd", gVisitdd); // 삭제 방문예정일
- //model.setValue("/root/send/patcareflag", gPatcareflag); // 간호구분(H:가정간호 , V:방문간호)
- model.setValue("/root/send/patcareflag", model.getValue("/root/main/visitinfo/patcareflag")); // 간호구분(H:가정간호 , V:방문간호)
- //20081007 방문기록 여부 확인 - 방문기록을 하였으면 방문예정일 삭제, 변경 못함
- submit("TRMNF00126");
- if(model.getValue("/root/temp/visitflag/visitflag/visitflagyn") >= '1'){
- var retMsg = messageBox("방문기록내역이 있습니다. 삭제 할 수", "I004"); // 없습니다
- return ;
- }
- // 방문예정일 변경
- caption8.value = "방문예정일 변경";
- opt_iuflag.value = "U";
- ipt_inputschedule.value = gVisitdd;
- grp_inputschedule.visible = true;
- }
- function fPreVisitDDDelete() {
- if(getStringLength(gVisitdd) == 0) {
- messageBox("삭제할 방문예정일이", "I004", "방문예정일을 선택하십시오."); // 없습니다.
- return ;
- }
- var retMsg = messageBox("방문예정일 삭제를", "Q004"); // 실행 하시겠습니까? yes=6, no=7
- if(retMsg != "6") {
- return ;
- }
- model.setValue("/root/send/pid", gPid); // pid
- model.setValue("/root/send/inptdt", gInptdt); // inptdt
- model.setValue("/root/send/instcd", gInstcd); // /root/send/instcd
- model.setValue("/root/send/currvisitdd", model.getValue("/root/send/visitdd")); // visitd 조회를 위한 방문일자
- model.setValue("/root/send/mode", model.getValue("/root/send/mode")); // /root/send/mode 조회를 위한 모드
- model.setValue("/root/send/kind", model.getValue("/root/send/kind")); // /root/send/kind 조회를 위한 모드
- model.setValue("/root/send/visitdd", gVisitdd); // 삭제 방문예정일
- //model.setValue("/root/send/patcareflag", gPatcareflag); // 간호구분(H:가정간호 , V:방문간호)
- model.setValue("/root/send/patcareflag", model.getValue("/root/main/visitinfo/patcareflag")); // 간호구분(H:가정간호 , V:방문간호)
- //model.refresh();
- //20081007 방문기록 여부 확인 - 방문기록을 하였으면 방문예정일 삭제, 변경 못함
- submit("TRMNF00126");
- if(model.getValue("/root/temp/visitflag/visitflag/visitflagyn") >= '1'){
- var retMsg = messageBox("방문기록내역이 있습니다. 삭제 할 수", "I004"); // 없습니다
- return ;
- }
- model.resetInstanceNode("/root/main/grd_previsitlist");
- model.resetInstanceNode("/root/main/visitcounts");
- model.removeNodeset("/root/main/grd_viewprevisitlist");
- submit("TXMNF00106");
- model.setValue("/root/send/visitdd", model.getValue("/root/send/currvisitdd"));
- copyNodeListType("/root/main/visitcounts", "/root/main/grd_previsitlist/visitcount", "replace", model, model);
- // 방문예정일 재조회
- // 7.개별 가정간호 방문조회 - 방문예정일 조회
- // 달력에 일자별 방문(예정)건수 대입
- //fDataDisplayPat (); // 환자 선택했을 경우 색상 구분
- //fMoveViewPreVisitLIst();
- //model.refresh();
- // 당일방문예정에서 당일방문예정일을 삭제한 경우
- if(searchListFlag == "1" && gVisitdd == getCurrentDate()) {
- btn_search.dispatch("DOMActivate") ;
- } else {
- // 달력에 일자별 방문(예정)건수 대입
- fDataDisplayPat (); // 환자 선택했을 경우 색상 구분
- fMoveViewPreVisitLIst();
- // model.refresh();
- // 일자별 방문(예정)건수 재조회
- submit("TRMNF00107");
- // 달력에 일자별 방문(예정)건수 재대입
- // fDataDisplay();
- // 진행상태 : 당일방문예정, 미확정, 진행, 종결 카운트 재조회
- submit("TRMNF00115")
- if ( !fExcuteSearch(searchListFlag)) return;
- }
- }
- // 의뢰취소,의뢰삭제시 submit 파라메터 설정 및 체크로직
- function fSetReqCancelParam(pFlag){
- if(pFlag == "C"){
- model.setValue("/root/send/cancelreason", model.getValue("/root/main/reqcancel/reqcancelreason")); // cancelreason
- model.makeValue("/root/send/reqcanceldelflag", "C");
- }else if( getNodesetCnt( model1, "/root/main/grd_patvisitlst/patvisitlist") == "1"){ //의뢰삭제시 의뢰서가 하나만 존재할 경우,
- messageBox("의뢰서가 하나만 존재하여 의뢰삭제를 할 수 없습니다. 필요시 종결등록하십시오.", "E999", "");
- return false;
- }else{ // 의뢰삭제시 방문기록삭제 하지 않도록 수정 (2009.07.20 hhm)
- if( messageBox("의뢰서를", "Q001") == "7"){ // 삭제하시겠습니까?
- messageBox("의뢰삭제가 취소되었습니다." , "E999", "");
- return false; // return : yes=6, no=7
- }else{
- model.setValue("/root/send/status", 'u');
- model.makeValue("/root/send/reqcanceldelflag", "D");
- }
- }
- // 진행상태 - 1 : 당일방문예정 / 3 : 진행 (의뢰삭제)
- if((model.getValue("/root/send/prcsstat") == '1' ) || (model.getValue("/root/send/prcsstat") == '3' ) ){
- var Srow = grd_patvisitlst.row;
- model.makeValue("/root/send/reqdd",model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + Srow + "]/reqdd"));
- model.makeValue("/root/send/reqdeptcd",model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + Srow + "]/reqdeptcd"));
- model.makeValue("/root/send/reqdrid",model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + Srow + "]/reqdrid"));
- // submit 통합으로 주석처리 (2010.05.10 hhm)
- // model.copyNode("/root/temp/canceldata", model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + Srow + "]")); // 2009.08.07 hhm 코드 길어서 수정
- // 진행상태 - 미확정 (의뢰취소)
- }else if(model.getValue("/root/send/prcsstat") == '2' ){
- var Srow = grd_reqlist.row;
- model.makeValue("/root/send/patflag", model.getValue("/root/send/kind"));
- model.makeValue("/root/send/cancelreason", model.getValue("/root/main/reqcancel/reqcancelreason"));// 취소사유추가 (2010.05.11 hhm)
- model.makeValue("/root/send/reqdd",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/reqdd"));
- model.makeValue("/root/send/reqdeptcd",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/reqdeptcd"));
- model.makeValue("/root/send/reqdrid",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/reqdrid"));
- model.makeValue("/root/send/cnstdiagcd", model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/cnstdiagcd") );
- model.makeValue("/root/send/no",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/no"));
- model.makeValue("/root/send/procstatus",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/procstatus"));
- model.makeValue("/root/send/detail",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/detail"));
- model.makeValue("/root/send/hisrecord",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/hisrecord"));
- model.makeValue("/root/send/pid",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/pid"));
- model.makeValue("/root/send/hngnm",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/hngnm"));
- model.makeValue("/root/send/sex",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/sex"));
- // model.makeValue("/root/send/reqdd",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/reqdd"));
- model.makeValue("/root/send/churchcd",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/churchcd"));
- // model.makeValue("/root/send/churchnm",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/churchnm"));
- // model.makeValue("/root/send/kind",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/kind"));
- // model.makeValue("/root/send/reqdeptnm",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/reqdeptnm"));
- // model.makeValue("/root/send/reqdrnm",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/reqdrnm"));
- model.makeValue("/root/send/reqmode",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/reqmode"));
- // model.makeValue("/root/send/reqdeptcd",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/reqdeptcd"));
- // model.makeValue("/root/send/reqdrid",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/reqdrid"));
- // model.makeValue("/root/send/instcd",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/instcd"));
- model.makeValue("/root/send/formrecseq",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/formrecseq"));
- // model.makeValue("/root/send/diagcd",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/diagcd"));
- // model.makeValue("/root/send/diaghngnm",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/diaghngnm"));
- // model.makeValue("/root/send/inptdt",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/inptdt"));
- model.makeValue("/root/send/patcareflag",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/patcareflag"));
- model.makeValue("/root/send/orddd",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/orddd"));
- model.makeValue("/root/send/cretno",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/cretno"));
- }
- // model.makeValue("/root/temp/canceldata/nurseid",model.getValue("/root/send/chrgnursid")); submit 통합으로 주석처리 (2010.05.10 hhm)
- // model.makeValue("/root/temp/canceldata/prcsstat",model.getValue("/root/send/prcsstat"));
- // 가정간호센터(2361000000)에서 가정간호팀(3090100000)로 변경 2009.03.27
- //--------------(20100903 경북대)
- //원본
- //if ( getUserInfo("dutplcecd") == "3090100000" ){
- // model.makeValue("/root/temp/canceldata/deptcd", "3090100000" );
- //보정
- if ( getUserInfo("dutplcecd") == ghomeDeptmain ){
- model.makeValue("/root/temp/canceldata/deptcd", ghomeDeptmain );
- //--------------(20100903 경북대)
- }else if(getUserId() == "ENR" ){
- model.makeValue("/root/temp/canceldata/deptcd", "ENR" );
- }else {
- model.makeValue("/root/temp/canceldata/deptcd", getUserInfo("dutplcecd") );
- }
- }
- //의뢰취소 C, 의뢰삭제 D
- function fHomeCarePatientCancel(pFlag) {
- // 진행자 리스트에서 팝업 메뉴의 "취소" 선택시 사용되는 함수
- // 가정간호 대상자 정보에서 취소 정보를 업데이트하고, 방문예정일을 삭제한다.
- if( fSetReqCancelParam(pFlag) == false) return ; // 의뢰취소,의뢰삭제시 submit 파라메터 설정 및 체크로직
- if (submit("TXMNF00107") == true){ // 가정간호 대상자 테이블에 환자가 존재하는 경우 취소정보 업데이트하고 존재하지 않는 경우 insert
- if(pFlag != "C") messageBox("의뢰삭제", "I001");
- }
- }
- // 가정간호 의뢰서 조회(미확정, 진행
- function fHomeCareReqPaper() {
- model.makeValue("/root/iviewerdata/pid", model.getValue("/root/main/patinfo/patinforesult/pid"));
- model.makeValue("/root/iviewerdata/hngnm", model.getValue("/root/main/patinfo/patinforesult/hngnm"));
- model.makeValue("/root/iviewerdata/sa", model.getValue("/root/main/patinfo/patinforesult/sex"));
- model.makeValue("/root/iviewerdata/reqdeptnm", model.getValue("/root/main/patinfo/patinforesult/lastreqdeptnm"));
- model.makeValue("/root/iviewerdata/reqdrnm", model.getValue("/root/main/patinfo/patinforesult/lastreqdrnm"));
- model.setValue("/root/iviewerdata/formrecseq", gFormRecSeq);
- // 미확정
- if(searchListFlag == "2" ) {
- var cur_row = grd_reqlist.row;
- var spatcareflag = model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/patcareflag");
- // 종결
- } else if(searchListFlag == "3" ) {
- var cur_row = grd_patvisitlst.row;
- var spatcareflag = model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/patcareflag");
- // 다른상태는 결과에서
- }else {
- var spatcareflag = model.getValue("/root/main/patinfo/patinforesult/patcareflag");
- }
- if (spatcareflag == "V") {
- // 가정간호 의뢰서 보기
- messageBox("가정간호 환자만 의뢰서 보기가","I006"); // I006 : 가능합니다.
- return;
- }
- open("SPMNF00110", "", "", "", "SPMNF00110", "/root/iviewerdata", "/root/main/parameter");
- }
- //가정간호 처방발행
- function fHomeCareOrder() {
- //감면정보 같은 경우 인지 확인
- //20080128 손은연
- model.makeValue("/root/send/dctype", model.getValue("/root/main/patinfo/patinforesult/dctype"));
- model.makeValue("/root/send/orddeptcd", model.getValue("/root/main/patinfo/patinforesult/reqdeptcd"));
- model.makeValue("/root/send/orddrid", model.getValue("/root/main/patinfo/patinforesult/reqdrid"));
- model.makeValue("/root/send/ocrflag", "");
- // 가정간호/방문간호 가접수 구분위해 추가 2009.02.25
- model.makeValue("/root/send/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
- // 가정간호 환자만 open되도록 수정
- spatcareflag = model.getValue("/root/main/patinfo/patinforesult/patcareflag");
- //model.refresh();
- if (spatcareflag == "V") {
- messageBox("가정간호 환자만 가정간호 처방발행(PRN처방)이","I006"); // I006 : 가능합니다.
- return;
- }
- var pid = model.getValue("/root/main/cond/patinfo/pid");
- if(isNull(pid)){
- //----(20101206) 경북대
- //messageBox("가정간호로 가접수를 하지 않은 환자 이거나 진료과와 주치의를 잘 못 접수하였습니다.. 접수 후 처방 발행을","C002");
- messageBox("가정간호로 가접수를 하지 않은 환자 이거나 진료과와 진료의를 잘 못 접수하였습니다.. 접수 후 처방 발행을","C002");
- //----(20101206) 경북대
- }else{
- //상단정보를 띄워줌
- //20080124 손은연
- if (model.getValue("/root/main/cond/patinfo/ordtype") == "I" || model.getValue("/root/main/cond/patinfo/ordtype") == "E" ) {
- // 상단 세팅을 위한 파라미터
- condparam = "I"+ "▦" + model.getValue("/root/main/cond/patinfo/pid")
- + "▦" + model.getValue("/root/main/cond/patinfo/orddd")
- + "▦" + model.getValue("/root/main/cond/patinfo/cretno")
- + "▦" + model.getValue("/root/main/cond/patinfo/instcd")
- + "▦" + "" //기준일자 스페이스면 오늘일자로 자동세팅
- setParameter("condparam", condparam);
- //상단 세팅 화면 사이즈 작게 띄움
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- } else if( model.getValue("/root/main/cond/patinfo/ordtype") == "O" ) {
- var ordtype = model.getValue("//root/main/cond/patinfo/ordtype");
- var pid = model.getValue("/root/main/cond/patinfo/pid");
- var orddd = model.getValue("/root/main/cond/patinfo/orddd");
- var cretno = model.getValue("/root/main/cond/patinfo/cretno");
- var instcd = model.getValue("/root/main/cond/patinfo/instcd");
- var acptseqno = "";
- var orgorddd = "";
- var param = ordtype + "▦" + pid + "▦" + orddd + "▦" + cretno + "▦" + instcd + "▦" + "" + "▦" + orgorddd;
- setParameter("condparam", param);
- //상단 세팅 화면 사이즈 작게 띄움
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- }
- model.makeValue("/root/main/cond/patinfo/formrecseq", model.getValue("/root/main/patinfo/patinforesult/formrecseq"));
- model.makeValue("/root/main/cond/patinfo/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
- // 가정간호 처방발행(간호) 호출
- open("SMMNF03000", "1", "10", "10", "SMMNF03000", "/root/main/cond/patinfo", "/root/main/cond/patinfo");
- }
- //delPatientInfos(); //화면상단정보 삭제
- }
- //간호처방 (2008.04.21 손은연)
- function fCareOrder() {
- // model.removeNodeset("/root/main/cond/patinfo"); //초기화
- //감면정보 같은 경우 인지 확인
- //20080128 손은연
- model.makeValue("/root/send/dctype", model.getValue("/root/main/patinfo/patinforesult/dctype"));
- model.makeValue("/root/send/orddeptcd", model.getValue("/root/main/patinfo/patinforesult/reqdeptcd"));
- model.makeValue("/root/send/orddrid", model.getValue("/root/main/patinfo/patinforesult/reqdrid"));
- model.makeValue("/root/send/ocrflag", "");
- // 가정간호/방문간호 가접수 구분위해 추가 2009.02.25
- model.makeValue("/root/send/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
- // 외래접수정보 조회
- // submit("TRMNF00120"); fGetPatInfo에서 외래접수 조회하기 때문에 주석처리 2010.05.24 hhm
- var pid = model.getValue("/root/main/cond/patinfo/pid");
- //setPatientInfos(pid);
- if(isNull(pid)){
- //------(20101206) 경북대
- //messageBox("가정간호로 가접수를 하지 않은 환자 이거나 진료과와 주치의를 잘 못 접수하였습니다.. 접수 후 처방 발행을","C002");
- messageBox("가정간호로 가접수를 하지 않은 환자 이거나 진료과와 진료의를 잘 못 접수하였습니다.. 접수 후 처방 발행을","C002");
- //------(20101206) 경북대
- }else{
- //상단정보를 띄워줌
- //20080124 손은연
- if (model.getValue("/root/main/cond/patinfo/ordtype") == "I" || model.getValue("/root/main/cond/patinfo/ordtype") == "E" ) {
- // 상단 세팅을 위한 파라미터
- condparam = "I"+ "▦" + model.getValue("/root/main/cond/patinfo/pid")
- + "▦" + model.getValue("/root/main/cond/patinfo/orddd")
- + "▦" + model.getValue("/root/main/cond/patinfo/cretno")
- + "▦" + model.getValue("/root/main/cond/patinfo/instcd")
- + "▦" + "" //기준일자 스페이스면 오늘일자로 자동세팅
- setParameter("condparam", condparam);
- //상단 세팅 화면 사이즈 작게 띄움
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- } else if( model.getValue("/root/main/cond/patinfo/ordtype") == "O" ) {
- var ordtype = model.getValue("//root/main/cond/patinfo/ordtype");
- var pid = model.getValue("/root/main/cond/patinfo/pid");
- var orddd = model.getValue("/root/main/cond/patinfo/orddd");
- var cretno = model.getValue("/root/main/cond/patinfo/cretno");
- var instcd = model.getValue("/root/main/cond/patinfo/instcd");
- var acptseqno = "";
- var orgorddd = "";
- var param = ordtype + "▦" + pid + "▦" + orddd + "▦" + cretno + "▦" + instcd + "▦" + "" + "▦" + orgorddd;
- setParameter("condparam", param);
- //상단 세팅 화면 사이즈 작게 띄움
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- }
- setParameter("screenParam", "SMMNH");
- // 간호처방 호출
- modal("SMMNW10900", "1", "10", "10", "SMMNW10900");
- }
- //delPatientInfos(); //화면상단정보 삭제
- }
- //시행부서처방 (2008.04.21 손은연)
- function fExecDeptOrder() {
- // model.removeNodeset("/root/main/cond/patinfo"); //초기화
- //감면정보 같은 경우 인지 확인
- //20080128 손은연
- model.makeValue("/root/send/dctype", model.getValue("/root/main/patinfo/patinforesult/dctype"));
- model.makeValue("/root/send/orddeptcd", model.getValue("/root/main/patinfo/patinforesult/reqdeptcd"));
- model.makeValue("/root/send/orddrid", model.getValue("/root/main/patinfo/patinforesult/reqdrid"));
- model.makeValue("/root/send/ocrflag", "");
- // 가정간호/방문간호 가접수 구분위해 추가 2009.02.25
- model.makeValue("/root/send/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
- // 외래접수정보 조회
- // submit("TRMNF00120"); // fGetPatInfo에서 외래접수 조회하기 때문에 주석처리 2010.05.24 hhm
- var pid = model.getValue("/root/main/cond/patinfo/pid");
- if(isNull(pid)){
- //--------(20101206) 경북대
- //messageBox("가정간호로 가접수를 하지 않은 환자 이거나 진료과와 주치의를 잘 못 접수하였습니다.. 접수 후 처방 발행을","C002");
- messageBox("가정간호로 가접수를 하지 않은 환자 이거나 진료과와 진료의를 잘 못 접수하였습니다.. 접수 후 처방 발행을","C002");
- //--------(20101206) 경북대
- }else{
- var pid = model.getValue("/root/main/cond/patinfo/pid");
- var orddd = model.getValue("/root/main/cond/patinfo/orddd");
- var cretno = model.getValue("/root/main/cond/patinfo/cretno");
- var instcd = model.getValue("/root/main/cond/patinfo/instcd");
- var ordtype = model.getValue("/root/main/cond/patinfo/ordtype");
- setParameter("SMMMO00200_pid", pid);
- setParameter("SMMMO00200_orddd", orddd);
- setParameter("SMMMO00200_cretno", cretno);
- setParameter("SMMMO00200_instcd", instcd);
- setParameter("SMMMO00200_ioflag", ordtype); //진료형태 : 외래 'O'
- // 시행부서처방호출
- modal("SMMMO00200", "1", "", "", "SMMMO00200", "", "");
- }
- }
- function fGridInsertRow() {
- grd_viewprevisitlist.insertRow(grd_viewprevisitlist.row, true);
- }
- function fGridDeleteRow() {
- grd_viewprevisitlist.deleteRow(grd_viewprevisitlist.row, true);
- }
- function fOpenPopup() {
- var rowNode;
- var destNode = instance1.selectSingleNode("/root/send");
- var xpos = window.width / 2 - 100;
- var ypos = window.height / 2 - 100;
- for( var i = 0; i < grd_previsitlist.selectedRows; i++ ) {
- rowNode = instance1.selectSingleNode("/root/datagrid/grid01/row[" + (grd_previsitlist.selectedRow(i) - grd_previsitlist.fixedRows + 1) + "]");
- model.duplicate(destNode, rowNode);
- }
- open("SMMNF01100","",xpos,ypos,"SMMNF01100","","");
- }
- // 간호정보조사
- function fHomeCareInfoPaper() {
- //var row = grd_visitlst.row;
- //var pid = model.getValue("/root/main/grd_visitlst/visitlist[" + row + "]/pid");
- var row = grd_patvisitlst.row;
- var pid = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + row + "]/pid");
- var endyn = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + row + "]/enddd");
- var spatcareflag = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + row + "]/patcareflag");
- var kind = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + row + "]/kind");
- var chrrgstkind = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + row + "]/chrrgstkind");
- model.makeNode("/root/temp/cond/list/endflag");
- //if (endyn == ""){
- if(isNull(endyn)){
- model.setValue("/root/temp/cond/list/endflag",'');
- } else {
- model.setValue("/root/temp/cond/list/endflag",'Y');
- }
- if(row == -1){
- var row = grd_reqlist.row;
- var pid = model.getValue("/root/main/grd_reqlist/reqlist[" + row + "]/pid");
- }
- model.removeNodeset("/root/temp/cond/list");
- model.makeValue("/root/temp/cond/list/pid", pid);
- model.makeValue("/root/temp/cond/list/patcareflag", spatcareflag);
- if(kind == "2" && chrrgstkind != "1" ) model.makeValue("/root/temp/cond/list/chrrgstkindYN", "Y" ); // 기타 무료 환자인 경우 (2010.06.04 hhm)
- submit("TRMNF00122"); // 가정간호 정보조사지 보내는 키값 조회
- model.makeValue("/root/temp/cond/list/tel",model.getValue("/root/main/patinfo/patinforesult/telno1"));
- model.makeValue("/root/temp/cond/list/mphone",model.getValue("/root/main/patinfo/patinforesult/cphone1"));
- model.makeValue("/root/temp/cond/list/etcphone1",model.getValue("/root/main/patinfo/patinforesult/telno2"));
- model.makeValue("/root/temp/cond/list/etcphone2",model.getValue("/root/main/patinfo/patinforesult/cphone2"));
- model.makeValue("/root/temp/cond/list/orddrnm",model.getValue("/root/main/patinfo/patinforesult/lastreqdrnm"));
- model.makeValue("/root/temp/cond/list/reqdd",model.getValue("/root/main/patinfo/patinforesult/lastreqdd"));
- model.makeValue("/root/temp/cond/list/diagnm",model.getValue("/root/main/patinfo/patinforesult/diaghngnm"));
- // pid, indd, cretno가 꼭 파라메터로 가야함.. 아니면 [전달 인자값이 누락되었습니다] 메세지 창 나옴.
- if(isNull(model.getValue("/root/temp/cond/list/pid"))){
- messageBox("가정간호 대상자가 아닙니다. 가정간호 정보조사지를 작성","E001");
- }else{
- //가정간호 정보조사지
- open("SMMNF00300", "", "", "", "SMMNF00300", "/root/temp/cond", "/root/temp/cond");
- }
- }
- //방문기록 화면으로 이동
- function fHomeCareVisitRec() {
- model.copyNode("/root/temp/send", "/root/send");
- var row = grd_patvisitlst.row;
- var pid = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + row + "]/pid");
- var spatcareflag = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + row + "]/patcareflag");
- var kind = model.getValue("/root/send/kind");
- model.setValue("/root/send/patflag", kind);
- if(kind == '2'){
- var churchcd = model.getValue("/root/send/churchcd");
- var churchcd1 = model.getValue("/root/main/patinfo/patinforesult/churchcd");
- if(churchcd == '-'){
- if(isNull(churchcd1)){
- model.setValue("/root/send/churchcd", '-');
- }else{
- model.setValue("/root/send/churchcd", churchcd1);
- }
- }
- var chrgnursid = model.getValue("/root/send/chrgnursid");
- var chrgnursid2 = model.getValue("/root/main/patinfo/patinforesult/chrgnursid2")
- if(chrgnursid == '%'){
- if(isNull(chrgnursid2)){
- model.setValue("/root/send/chrgnursid", '%');
- }else{
- model.setValue("/root/send/chrgnursid", chrgnursid2);
- }
- }
- }else{
- model.setValue("/root/send/churchcd", '-');
- var chrgnursid = model.getValue("/root/send/chrgnursid");
- var chrgnursid1 = model.getValue("/root/main/patinfo/patinforesult/chrgnursid1")
- if(chrgnursid == '%'){
- if(isNull(chrgnursid1)){
- model.setValue("/root/send/chrgnursid", '%');
- }else{
- model.setValue("/root/send/chrgnursid", chrgnursid1);
- }
- }
- }
- //var spatcareflag = model.getValue("/root/main/patinfo/patinforesult/patcareflag")
- model.setValue("/root/send/searchkind", '1');
- model.setValue("/root/send/pid", pid);
- model.setValue("/root/send/menuparameter", '1');
- model.setValue("/root/send/patcareflag", spatcareflag);
- //가정간호 방문기록
- open("SMMNF00400", "", "", "", "SMMNF00400", "/root/send", "/root/send");
- //model.removeNodeset("/root/send");
- model.copyNode("/root/send", "/root/temp/send");
- }
- //화면이 생성되면 키값을 넘겨주어야함
- function fHomeCareProgSmm() {
- model.copyNode("/root/temp/send", "/root/send");
- // 미확정 이외는 그리드 통합함..2009.02.24
- var row = grd_patvisitlst.row;
- var pid = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + row + "]/pid");
- var spatcareflag = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + row + "]/patcareflag");
- inptdt = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + row + "]/inptdt");
- var spatcareflag = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + row + "]/patcareflag");
- if (spatcareflag == "V") {
- messageBox("가정간호 환자만 경과요약이","I006"); // I006 : 가능합니다.
- return;
- }
- var kind = model.getValue("/root/send/kind");
- model.setValue("/root/send/patflag", kind);
- if(kind == '2'){
- var churchcd = model.getValue("/root/send/churchcd");
- var churchcd1 = model.getValue("/root/main/patinfo/patinforesult/churchcd");
- if(churchcd == '-'){
- if(isNull(churchcd1)){
- model.setValue("/root/send/churchcd", '-');
- }else{
- model.setValue("/root/send/churchcd", churchcd1);
- }
- }
- var chrgnursid = model.getValue("/root/send/chrgnursid");
- var chrgnursid2 = model.getValue("/root/main/patinfo/patinforesult/chrgnursid2")
- if(chrgnursid == '%'){
- if(isNull(chrgnursid1)){
- model.setValue("/root/send/chrgnursid", '%');
- }else{
- model.setValue("/root/send/chrgnursid", chrgnursid2);
- }
- }
- }else{
- model.setValue("/root/send/churchcd", '-');
- var chrgnursid = model.getValue("/root/send/chrgnursid");
- var chrgnursid1 = model.getValue("/root/main/patinfo/patinforesult/chrgnursid1")
- if(chrgnursid == '%'){
- if(isNull(chrgnursid1)){
- model.setValue("/root/send/chrgnursid", '%');
- }else{
- model.setValue("/root/send/chrgnursid", chrgnursid1);
- }
- }
- }
- model.setValue("/root/send/searchkind", '1');
- model.setValue("/root/send/pid", pid);
- model.makeValue("/root/send/inptdt", inptdt);
- model.makeValue("/root/send/formrecseq", model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + row + "]/formrecseq")); // 2010.05.20 hhm 형상변경으로 추가
- model.makeValue("/root/send/vitcareflag", 'Y');
- model.setValue("/root/send/menuparameter", '2');
- //가정간호 경과요약
- open("SMMNF00400", "", "", "", "SMMNF00400", "/root/send", "/root/send");
- //model.removeNodeset("/root/send");
- model.copyNode("/root/send", "/root/temp/send");
- }
- // 종결요약
- function fHomeCareEndSmm() {
- model.copyNode("/root/temp/send", "/root/send");
- var row = grd_patvisitlst.row;
- // 방문예정 / 만료 / 진행 리스트
- if(row != 0){
- if(searchListFlag == "1" || searchListFlag == "4" || searchListFlag == "5") {
- // 방문예정 리스트
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/pid", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+row+"]/pid"));
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/inptdt", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+row+"]/inptdt"));
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/instcd", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+row+"]/instcd"));
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/patflag", model.getValue("/root/main/patinfo/patinforesult/patflag"));
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/patnm", model.getValue("/root/main/patinfo/patinforesult/hngnm"));
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/sex", model.getValue("/root/main/patinfo/patinforesult/sex"));
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/endnurseid", getUserId());
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/endconfirmid", getUserId());
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/endnursenm", getUserName() );
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/endconfirmnm", getUserName() );
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/reqdeptnm", model.getValue("/root/main/patinfo/patinforesult/lastreqdeptnm"));
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/reqdrnm", model.getValue("/root/main/patinfo/patinforesult/lastreqdrnm"));
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/diagnm", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+row+"]/diagname"));
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/rgstdd", model.getValue("/root/main/patinfo/patinforesult/rgstdd"));
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/enddd", getCurrentDate());
- if (model.getValue("/root/main/patinfo/patinforesult/patcareflag")=='H') {
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/visitcnt", model.getValue("/root/main/patinfo/visitaccount/totvisitcnt"));
- } else if (model.getValue("/root/main/patinfo/patinforesult/patcareflag")=='C') {
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/visitcnt", model.getValue("/root/main/patinfo/visitaccount/totvisitcnt"));
- } else if (model.getValue("/root/main/patinfo/patinforesult/patcareflag")=='V') {
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/visitcnt", model.getValue("/root/main/patinfo/visitaccount/vtotvisitcnt"));
- }
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/enddd", getCurrentDate());
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/endreasonflag", "");
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/endtypeflag", "");
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/endtyperemark", "");
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/endstatflag", "");
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/rgstpatstat", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+row+"]/rgstpatstat"));
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/endpatstat", "");
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/savemode", "I");
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/reqdd", model.getValue("/root/main/patinfo/patinforesult/reqdd"));
- model.setValue("/root/endsummarytrnsdata/endsummaryrecord/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
- //model.refresh();
- open("SMMNF00500", "", "", "", "SMMNF00500", "/root/endsummarytrnsdata/endsummaryrecord", "/root/main/endsummary/endsummaryrecord");
- }
- }
- }
- // 피부욕창기록
- function fHomeCareSkinWundRec() {
- model.makeValue("/root/send/req/pid" ,model.getValue("/root/main/patinfo/patinforesult/pid"));
- model.makeValue("/root/send/req/reqdeptcd" ,model.getValue("/root/main/patinfo/patinforesult/reqdeptcd"));
- model.makeValue("/root/send/req/reqdrid" ,model.getValue("/root/main/patinfo/patinforesult/reqdrid"));
- model.makeValue("/root/send/req/formrecseq" ,model.getValue("/root/main/patinfo/patinforesult/formrecseq"));
- model.makeValue("/root/send/req/kind" ,model.getValue("/root/send/prcsstat"));
- //--------------(20100903 경북대)
- //원본
- //setParameter("homecarecd", '3090100000'); //가정간호를 구분하기 위해 보냄
- setParameter("homecarecd", ghomeDeptmain); //가정간호를 구분하기 위해 보냄
- //--------------(20100903 경북대)
- setParameter("ioflag", 'O'); //입원환자 아님
- setParameter("pid", model.getValue("/root/main/patinfo/patinforesult/pid"));
- setParameter("hngnm", model.getValue("/root/main/patinfo/patinforesult/hngnm"));
- setParameter("wardcd", '-');
- setParameter("roomcd", '-');
- setParameter("orddd", model.getValue("/root/main/paminfo/list/orddd")); // 통합기록조회에서 조회되지 않아서 파라메터 4개 추가 orddd, cretno, orddrid, orddeptcd (2009.07.23 hhm)
- setParameter("cretno", '1');
- setParameter("inptdt", model.getValue("/root/main/patinfo/patinforesult/inptdt")); // 피부욕창기록 외래건 조회 안되는 경우 때문에 파라메터 추가함(2009.10.07 hhm)
- setParameter("careflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag")); // 피부욕창기록 외래건 조회 안되는 경우 때문에 파라메터 추가함(2009.10.07 hhm)
- //--------------(20100903 경북대)
- //원본
- //setParameter("orddrid", '3090100000');
- //setParameter("orddeptcd", '3090100000');
- //보정
- setParameter("orddrid", ghomeDeptmain);
- setParameter("orddeptcd", ghomeDeptmain);
- //--------------(20100903 경북대)
- //피부욕창기록 화면을 띄움
- modal("SMMNW04700", "", "", "", "SMMNW04700");
- //조회후 send/req 인스턴스 삭제_방문예정일 저장시 오류해결_20090924_SMY
- model.removeNodeset("/root/send/req");
- }
- function fHomeCareMMSE() {
- // 가정간호/방문간호 가접수 구분위해 추가 2009.02.25
- model.makeValue("/root/send/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
- var pid = model.getValue("/root/main/cond/patinfo/pid");
- if(isNull(pid)){
- messageBox("접수를 하지 않은 환자 입니다. 접수 후 가접수 후 서식을","C002");
- }else{
- setParameter("openmode", "newform"); //오픈모드
- setParameter("pid", model.getValue("/root/main/cond/patinfo/pid")); //등록번호
- setParameter("orddd", model.getValue("/root/main/cond/patinfo/orddd")); //진료일
- setParameter("cretno", model.getValue("/root/main/cond/patinfo/cretno")); //생성번호
- setParameter("ioflag", model.getValue("/root/main/cond/patinfo/ordtype")); //내원구분
- setParameter("orddeptcd", model.getValue("/root/main/cond/patinfo/orddeptcd")); //진료과
- setParameter("orddrid", model.getValue("/root/main/cond/patinfo/orddrid")); //주치의(진료의)
- setParameter("formcd", "0000001104"); //서식코드
- modal("SSMMR01100", 1, 0, 0, "", "", "");
- }
- }
- function fHomeCareSSDQ() {
- // 가정간호/방문간호 가접수 구분위해 추가 2009.02.25
- model.makeValue("/root/send/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
- // 외래접수정보 조회
- // submit("TRMNF00120"); fGetPatInfo에서 외래접수 조회하기 때문에 주석처리 2010.05.25 hhm
- var pid = model.getValue("/root/main/cond/patinfo/pid");
- if(isNull(pid)){
- messageBox("접수를 하지 않은 환자 입니다. 접수 후 가접수 후 서식을","C002");
- }else{
- setParameter("openmode", "newform"); //오픈모드
- setParameter("pid", model.getValue("/root/main/cond/patinfo/pid")); //등록번호
- setParameter("orddd", model.getValue("/root/main/cond/patinfo/orddd")); //진료일
- setParameter("cretno", model.getValue("/root/main/cond/patinfo/cretno")); //생성번호
- setParameter("ioflag", model.getValue("/root/main/cond/patinfo/ordtype")); //내원구분
- setParameter("orddeptcd", model.getValue("/root/main/cond/patinfo/orddeptcd")); //진료과
- setParameter("orddrid", model.getValue("/root/main/cond/patinfo/orddrid")); //주치의(진료의)
- setParameter("formcd", "0000001310"); //서식코드
- modal("SSMMR01100", 1, 0, 0, "", "", "");
- }
- }
- // OCR 서식지출력
- function fOCRDocuPrnt() {
- var cur_row = grd_patvisitlst.row;
- var kind = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + cur_row + "]/kind");
- if((kind == '무료') || (kind == '기타')){
- messageBox("무료나 기타환자는 외래접수를 하실수","I004");
- return;
- }
- var pid = model.getValue("/root/main/patinfo/patinforesult/pid");
- var hngnm = model.getValue("/root/main/patinfo/patinforesult/hngnm");
- var orddd = model.getValue("/root/send/visitdd");
- var orddeptcd = model.getValue("/root/main/patinfo/patinforesult/reqdeptcd");
- var orddrid = model.getValue("/root/main/patinfo/patinforesult/reqdrid");
- var orddeptnm = model.getValue("/root/main/patinfo/patinforesult/lastreqdeptnm");
- var orddrnm = model.getValue("/root/main/patinfo/patinforesult/lastreqdrnm");
- var rrgtno = model.getValue("/root/main/patinfo/patinforesult/rrgstno");
- var rrgstno1 = rrgtno.substr(0, 6);
- var rrgstno2 = rrgtno.substr(7, 7);
- //감면정보 같은 경우 인지 확인
- //20080128 손은연
- model.setValue("/root/send/dctype", model.getValue("/root/main/patinfo/patinforesult/dctype"));
- model.setValue("/root/send/instcd", model.getValue("/root/main/patinfo/patinforesult/instcd"));
- model.makeValue("/root/send/pid" ,model.getValue("/root/main/patinfo/patinforesult/pid"));
- model.makeValue("/root/send/orddeptcd", model.getValue("/root/main/patinfo/patinforesult/reqdeptcd"));
- model.makeValue("/root/send/orddrid", model.getValue("/root/main/patinfo/patinforesult/reqdrid"));
- model.makeValue("/root/send/ocrflag", "Y");
- // 가정간호/방문간호 가접수 구분위해 추가 2009.02.25
- model.makeValue("/root/send/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
- // 외래접수정보 조회
- // submit("TRMNF00120"); fGetPatInfo에서 외래접수 조회하기 때문에 주석처리 2010.05.27 hhm
- model.removenode("/root/send/ocrflag");
- if(model.getValue("/root/main/cond/patinfo/pid") == ""){
- messageBox("환자의 외래접수 정보를 가지고 있지 ", "E007");
- return;
- }else{
- var cretno = model.getValue("/root/main/cond/patinfo/cretno");
- var ordtype = model.getValue("/root/main/cond/patinfo/ordtype");
- var orddd = model.getValue("/root/main/cond/patinfo/orddd");
- var instcd = model.getValue("/root/main/cond/patinfo/instcd");
- model.makeValue("/root/temp/para/pid", pid);
- model.makeValue("/root/temp/para/patnm", hngnm);
- model.makeValue("/root/temp/para/orddd", orddd);
- model.makeValue("/root/temp/para/orddeptcd", orddeptcd);
- model.makeValue("/root/temp/para/orddrid", orddrid);
- model.makeValue("/root/temp/para/orddeptnm", orddeptnm);
- model.makeValue("/root/temp/para/drnm", orddrnm);
- model.makeValue("/root/temp/para/cretno", cretno);
- model.makeValue("/root/temp/para/ordtype", ordtype);
- model.makeValue("/root/temp/para/inroomcd", '');
- model.makeValue("/root/temp/para/rrgstno1", rrgstno1);
- model.makeValue("/root/temp/para/rrgstno2", rrgstno2);
- model.makeValue("/root/temp/para/instcd", instcd);
- //OCR 서식지 출력
- open("SMMRF02300", "", "", "", "" ," /root/temp/para" , " /root/temp/para");
- }
- }
- function fDschHomeCareRecRef(){
- model.makeValue("/root/send/req/pid" ,model.getValue("/root/main/patinfo/patinforesult/pid"));
- model.makeValue("/root/send/req/reqdeptcd" ,model.getValue("/root/main/patinfo/patinforesult/reqdeptcd"));
- model.makeValue("/root/send/req/reqdrid" ,model.getValue("/root/main/patinfo/patinforesult/reqdrid"));
- model.makeValue("/root/send/req/formrecseq" ,model.getValue("/root/main/patinfo/patinforesult/formrecseq"));
- model.makeValue("/root/send/req/kind" ,model.getValue("/root/send/prcsstat"));
- var spatcareflag = model.getValue("/root/main/patinfo/patinforesult/patcareflag");
- if (spatcareflag == "V") {
- messageBox("가정간호 환자만 퇴원시 가정간호기록 조회가","I006"); // I006 : 가능합니다.
- return;
- }
- submit("TRMNF00407"); //입원정보 조회
-
- fDschHomeCareRecRefOpen(); //2012.02.21_손성훈.
- }
-
- function fDschHomeCareRecRef_reqlist(){ // 미확정 리스트에서 '퇴원시 가정간호기록 조회' open _ 손성훈
- var cur_row = grd_reqlist.row;
- model.makeValue("/root/send/req/pid" ,model.getValue("/root/main/grd_reqlist/reqlist[" + cur_row + "]/pid"));
- model.makeValue("/root/send/req/reqdeptcd" ,model.getValue("/root/main/grd_reqlist/reqlist[" + cur_row + "]/reqdeptcd"));
- model.makeValue("/root/send/req/reqdrid" ,model.getValue("/root/main/grd_reqlist/reqlist[" + cur_row + "]/reqdrid"));
- model.makeValue("/root/send/req/formrecseq" ,model.getValue("/root/main/grd_reqlist/reqlist[" + cur_row + "]/formrecseq"));
- model.makeValue("/root/send/req/kind" ,model.getValue("/root/send/prcsstat"));
-
- var spatcareflag = model.getValue("/root/main/grd_reqlist/reqlist[" + cur_row + "]/patcareflag");
-
- if (spatcareflag == "V") {
- messageBox("가정간호 환자만 퇴원시 가정간호기록 조회가","I006"); // I006 : 가능합니다.
- return;
- }
- submit("TRMNF00407"); //입원정보 조회
-
- fDschHomeCareRecRefOpen();
- }
-
- function fDschHomeCareRecRefOpen() {
- var dschinfo = model.getValue("/root/hidden/inptinfo/inptinfo/pid");
- var stat = model.getValue("/root/send/prcsstat");
- // 진행상태 - 1. 당일방문예정 2. 미확정, 3. 진행
- if(stat == "1" || stat == "3"){
- var row = grd_patvisitlst.row;
- var ioinfo = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + row + "]/inptstat");
- if(isNull(dschinfo)){ //입원정보가 없고
- if(isNull(ioinfo)){ // 재원상태(병동위치)가 없으면
- messageBox("외래를 통해 가정간호의뢰되어 기록된 내역이","I004");
- return;
- }else{
- messageBox("퇴원시 가정간호 간호의뢰 기록된 내역이","I004");
- return;
- }
- }
- }else if(stat == "2"){ // 미확정
- if(model.getValue("/root/main/grd_reqlist/reqlist["+ grd_reqlist.row +"]/carerec") == "N"){
- messageBox("퇴원시 가정간호 간호의뢰 기록된 내역이","I004");
- return;
- }
- }
- model.copyNode("root/hidden/cond", "/root/hidden/inptinfo/inptinfo");
- model.makeValue("/root/hidden/cond/main", "HomeCareMain");
- //퇴원시 가정간호 의뢰 간호 기록 화면 조회(parameter : pid, indd, instcd, orddeptcd, cretno, dschdt)
- modal("SMMNF04300", "", "", "", "SMMNF04300" ," /root/hidden/cond" , " /root/hidden/cond");
- //조회후 send/req 인스턴스 삭제_방문예정일 저장시 오류해결_20090924_SMY
- model.removeNodeset("/root/send/req");
- }
- //외래접수
- function fHomeCareOutAcpt() {
- var cur_row = grd_patvisitlst.row;
- var kind = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + cur_row + "]/kind");
- var spatcareflag = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + cur_row + "]/patcareflag");
-
- if(spatcareflag == 'C') { // 추후 확인후 삭제 필요 2016.06.13 엄영만
- spatcareflag = 'H';
- }
-
- var inhospyn = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + cur_row + "]/inhospyn");
- if(inhospyn == "Y"){ // 당일퇴원예정자(재원상태)에게 가정간호 가접수를 할 수 없도록 blocking (task번호: 33176 2009.11.02 hhm)
- messageBox("재원상태이므로 가정간호 가접수 생성", "E001"); // 할 수 없습니다.
- return;
- }
- // 감면유형 가정간호/방문간호 구분에 따른 파라미터 셋팅
- if (spatcareflag == 'H') {
- var dccd = model.getValue("/root/main/patinfo/patinforesult/dctype"); //현재 감면유형
- var tempdccd = model.getValue("/root/temp/patinfo/patinforesult/dctype"); //가정간호 대상자 테이블에 저장된 감면유형
- } else if (spatcareflag == 'V') {
- // 방문간호 감면유형도 추가작업 2009.02.24
- var dccd = model.getValue("/root/main/patinfo/patinforesult/vdctype"); //현재 감면유형
- var tempdccd = model.getValue("/root/temp/patinfo/patinforesult/vdctype"); //가정간호 대상자 테이블에 저장된 감면유형
- }
- var xpos = window.width / 2 - 100;
- var ypos = window.height / 2 - 200;
- //var cur_row = grd_patvisitlst.row;
- var pid = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + cur_row + "]/pid");
- var orddeptcd = model.getValue("/root/main/patinfo/patinforesult/reqdeptcd");
- var orddrid = model.getValue("/root/main/patinfo/patinforesult/reqdrid");
- var qualflag = model.getValue("/root/main/patinfo/patinforesult/qualflag"); //가정간호 대상자 테이블에 저장된 본인부담률
- //alert("[dddd]"+qualflag);
- if((dccd == tempdccd) || (!isNull(tempdccd) && isNull(dccd))){
- fSetOtptActp(); // 외래접수 파라메터 셋팅 & 외래접수 화면 open
- }else{
- var vbYes = messageBox("감면유형이 변경되었습니다. 변경사항을", "Q002");
- if(vbYes == 6){
- //감면유형을 가정간호대상자 테이블에 변경 정보를 저장
- //btn_save.dispatch("DOMActivate");
- //grd_visitlst.dispatch("onclick");
- if (model.getValue("/root/send/kind") == "1" || model.getValue("/root/send/kind") == "3" ) { // 병원
- // 1.환자 기본정보 저장(UPDATE)
- submit("TXMNF00102");
- } else if (model.getValue("/root/send/kind") == "2") { // 본당
- //*****************************************************************************************************************
- // 본당환자구분 : '1' 등록 , '2' 무료 , '3' 기타
- // 본당환자 구분이 무료->기타, 기타->무료 로 바뀐 경우만 로직 적용
- //*****************************************************************************************************************
- if( model.getValue("/root/main/patinfo/patinforesult/oldchrrgstkind") != "1"
- && combo1.value != "1"
- && combo1.value != model.getValue("/root/main/patinfo/patinforesult/oldchrrgstkind")) {
- // 저장 데이터 세팅
- model.setValue("/root/main/patinfo/patinforesult/reqdd", "");
- model.setValue("/root/main/patinfo/patinforesult/reqdeptcd", "");
- model.setValue("/root/main/patinfo/patinforesult/reqdrid", "");
- model.makeValue("/root/main/patinfo/patinforesult/newinptdt", getCurrentDate()+""+getCurrentTime());
- model.makeValue("/root/main/patinfo/patinforesult/enddd" , model.getValue("/root/reqtransdata/enddd"));
- model.makeValue("/root/main/patinfo/patinforesult/endconfirmdd" , model.getValue("/root/reqtransdata/endconfirmdd"));
- model.makeValue("/root/main/patinfo/patinforesult/endnurseid" , model.getValue("/root/reqtransdata/endnurseid"))
- model.makeValue("/root/main/patinfo/patinforesult/endconfirmid" , model.getValue("/root/reqtransdata/endconfirmid"));
- model.makeValue("/root/main/patinfo/patinforesult/endreasonflag" , model.getValue("/root/reqtransdata/endreasonflag"));
- model.makeValue("/root/main/patinfo/patinforesult/endtypeflag" , model.getValue("/root/reqtransdata/endtypeflag"));
- model.makeValue("/root/main/patinfo/patinforesult/endtyperemark" , model.getValue("/root/reqtransdata/endtyperemark"));
- model.makeValue("/root/main/patinfo/patinforesult/endstatflag" , model.getValue("/root/reqtransdata/endstatflag"));
- model.makeValue("/root/main/patinfo/patinforesult/rgstpatstat" , model.getValue("/root/reqtransdata/rgstpatstat"));
- model.makeValue("/root/main/patinfo/patinforesult/endpatstat" , model.getValue("/root/reqtransdata/endpatstat"));
- model.makeValue("/root/main/patinfo/patinforesult/endflag" , model.getValue("/root/reqtransdata/endflag"));
- // 1.본당환자를 무료->기타, 기타->무료 전환 시 이전상태가 종료가 종결되어야 하고, 종결사유는 자동으로 "8" : "전환" 이 되어야 한다.
- // 메인화면에서 전환하고 종결요약 화면 좌측의 종결 리스트에서 확인이 되어야 한다.
- // 종결기록 자동생성 (단, 본당에서 본당으로의 의뢰전송은 종결이 아니고 그대로 유지되어서 감)
- /*****************************************************************************************************************************************************
- <<< 종결기록없이 종결되는 경우 >>>
- 전환 : (본당) "무료" 환자를 "기타"로 전환, "기타" 환자를 "무료"로 전환하는 경우 종결기록에는 전환으로 종결사유가 들어가고 종결기록 유무에는 나타나지 않게한다.
- 병원의뢰 : (본당) "무료" 또는 "기타" 환자를 병원으로 의뢰한 경우 종결기록에는 병원의뢰로 종결사유가 들어가고 종결기록 유무에는 나타나지 않게한다.
- 병원의뢰된 환자는 가정간호 대상자 종결이 되고, 병원 내원시 접수하고 의뢰서 발행후 가정간호 대상자도 확정한다.
- *****************************************************************************************************************************************************/
- // 1.1.가정간호 종결요약 자동등록(INSERT)
- // 1.2.가정간호 대상자 테이블의 종결일, 종결여부를 업데이트 한다.
- // 2.본당환자를 전환 상태로 가정간호 대상자로 재등록한다. (무료 혹은 기타)
- // 가정간호 환자 대상자 등록(확정)(INSERT) 로직을 호출한다.
- //동일 트랜에서 이루어 져야 하므로 TXMNF00501 의 app단에서 3가지를 모두 수행
- submit("TXMNF00501");
- // 1.2.가정간호 대상자 테이블의 종결일, 종결여부를 업데이트 한다.
- //submit("TXMNF00504");
- // 2.본당환자를 전환 상태로 가정간호 대상자로 재등록한다. (무료 혹은 기타)
- // 가정간호 환자 대상자 등록(확정)(INSERT) 로직을 호출한다.
- //submit("TXMNF00103");
- }else{
- // 1.환자 기본정보 저장(UPDATE) 등록인경우
- submit("TXMNF00102");
- }
- }
- fSetOtptActp(); // 외래접수 파라메터 셋팅 & 외래접수 화면 open
- }else{
- //기존 감면유형으로 변경해준다
- model.setValue("/root/main/patinfo/patinforesult/dctype", tempdccd);
- //model.refresh();
- fSetOtptActp(); // 외래접수 파라메터 셋팅 & 외래접수 화면 open
- }
- }
- fUpdateOutAcptVisc(); //외래접수 후 방문일정에 접수이력 update
- }
- // 외래접수 파라메터 셋팅 & 외래접수 화면 open
- function fSetOtptActp(){
- var cur_row = grd_patvisitlst.row;
- var pid = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + cur_row + "]/pid");
- var orddeptcd = model.getValue("/root/main/patinfo/patinforesult/reqdeptcd");
- var orddrid = model.getValue("/root/main/patinfo/patinforesult/reqdrid");
- var qualflag = model.getValue("/root/main/patinfo/patinforesult/qualflag"); //가정간호 대상자 테이블에 저장된 본인부담률
- var spatcareflag = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + cur_row + "]/patcareflag");
- // 감면유형 가정간호/방문간호 구분에 따른 파라미터 셋팅
- if (spatcareflag == 'H') {
- var dccd = model.getValue("/root/main/patinfo/patinforesult/dctype"); //현재 감면유형
- } else if (spatcareflag == 'V') {
- // 방문간호 감면유형도 추가작업 2009.02.24
- var dccd = model.getValue("/root/main/patinfo/patinforesult/vdctype"); //현재 감면유형
- }
- if ( cur_row > 0 ) {
- //alert("[1]"+qualflag+"/"+spatcareflag);
- // 외래등록 : SMPMO00100
- setParameter("pid", pid ); //등록번호
- setParameter("pidflag", '20'); // 연속처방/기타구분
- setParameter("disccd", dccd); //감면유형
- setParameter("orddeptcd", orddeptcd); //의뢰부서코드
- setParameter("orddrid", orddrid); //의뢰의 ID
- if (spatcareflag == 'V') { // 방문간호 일 경우만 rsrvflag, etcordflag
- setParameter("rsrvflag", 'O');
- setParameter("etcordflag", 'O');
- setParameter("suppkind", qualflag); // 본인부담률
- }
- }
- //alert(spatcareflag);
- modal("SMPMO00100", "1", "", "", "SMPMO00100", "", ""); //외래접수 화면으로 감
- clearParameter("pid");
- clearParameter("pidflag");
- clearParameter("disccd");
- clearParameter("orddeptcd");
- clearParameter("orddrid");
- clearParameter("rsrvflag");
- clearParameter("etcordflag");
- clearParameter("suppkind");
- }
- //외래접수 후 방문일정에 접수이력 update
- function fUpdateOutAcptVisc(){
- model.resetInstanceNode("/root/send/req");
- // 외래접수정보 조회
- submit("TRMNF00120"); // /root/send --> /root/main/cond
- model.setValue("/root/send/orddd", model.getValue("/root/main/cond/patinfo/orddd")); // 파라메터 값 설정
- model.setValue("/root/send/cretno", model.getValue("/root/main/cond/patinfo/cretno"));
- model.setValue("/root/send/visitdd", model.getValue("/root/main/cond/patinfo/orddd"));
- if(!isNull(model.getValue("/root/main/cond/patinfo/pid")) ){ //외래접수가 됐으면
- /* submit 방문일정등록여부 체크 후
- * 스케줄 등록 Y --> visc에 외래수진이력 update
- * 스케줄 등록 N --> visc에 스케줄 등록, 외래수진이력 update (2010.05.06 hhm)
- */
- submit("TXMNF00505");
- }
- }
- //약품번호조회/출력
- function fhomecareDrug() {
- var cur_row = grd_patvisitlst.row;
- var kind = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + cur_row + "]/kind");
- if((kind == '무료') || (kind == '기타')){
- messageBox("무료나 기타환자는 외래접수를 하실수","I004");
- return;
- }
- var hngnm = model.getValue("/root/main/patinfo/patinforesult/hngnm");
- model.makeValue("/root/temp/cond/patnm", hngnm);
- modal("SPMNF00210", "1", "", "", "SPMNF00210", "/root/main/cond", "/root/temp/cond");
- }
- //마약처방관리(불출신청)
- function fhomecareNarc() {
- var pid = model.getValue("/root/main/cond/patinfo/pid");
- if(isNull(pid)){
- model.removeNodeset("/root/main/cond/patinfo"); //초기화
- //감면정보 같은 경우 인지 확인
- //20080128 손은연
- model.setValue("/root/send/dctype", model.getValue("/root/main/patinfo/patinforesult/dctype"));
- // 가정간호/방문간호 가접수 구분위해 추가 2009.02.25
- model.makeValue("/root/send/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
- // 외래접수정보 조회
- // submit("TRMNF00120"); fGetPatInfo에서 외래접수 조회하기 때문에 주석처리 2010.05.24 hhm
- var pid = model.getValue("/root/main/cond/patinfo/pid");
- if(isNull(pid)){
- messageBox("접수를 하지 않은 환자 입니다. 접수 후 처방 발행을","C002");
- }else{
- //상단정보를 띄워줌
- //20080124 손은연
- if (model.getValue("/root/main/cond/patinfo/ordtype") == "I" || model.getValue("/root/main/cond/patinfo/ordtype") == "E" ) {
- // 상단 세팅을 위한 파라미터
- condparam = "I"+ "▦" + model.getValue("/root/main/cond/patinfo/pid")
- + "▦" + model.getValue("/root/main/cond/patinfo/orddd")
- + "▦" + model.getValue("/root/main/cond/patinfo/cretno")
- + "▦" + model.getValue("/root/main/cond/patinfo/instcd")
- + "▦" + "" //기준일자 스페이스면 오늘일자로 자동세팅
- setParameter("condparam", condparam);
- //상단 세팅 화면 사이즈 작게 띄움
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- } else if( model.getValue("/root/main/cond/patinfo/ordtype") == "O" ) {
- var ordtype = model.getValue("//root/main/cond/patinfo/ordtype");
- var pid = model.getValue("/root/main/cond/patinfo/pid");
- var orddd = model.getValue("/root/main/cond/patinfo/orddd");
- var cretno = model.getValue("/root/main/cond/patinfo/cretno");
- var instcd = model.getValue("/root/main/cond/patinfo/instcd");
- var acptseqno = "";
- var orgorddd = "";
- var param = ordtype + "▦" + pid + "▦" + orddd + "▦" + cretno + "▦" + instcd + "▦" + "" + "▦" + orgorddd;
- setParameter("condparam", param);
- //상단 세팅 화면 사이즈 작게 띄움
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- }
- model.makeNode("/root/init/cond");
- var paminfo = getGlobalVariable("paminfo");
- setCSVToNode("/root/init/cond", paminfo);
- var pid = model.getValue("/root/init/cond/list/pid");
- if(pid == "") {
- var vbOK = messageBox("환자를 선택하지 ", "E007");
- }else{
- modal("SMADT30400", "1", "", "", "SMADT30400", "", "");
- }
- }
- }else{
- modal("SMADT30400", "1", "", "", "SMADT30400", "", "");
- }
- }
- //바코드관리(바코드출력)
- function fhomecareBarCd() {
- var pid = model.getValue("/root/main/cond/patinfo/pid");
- if(isNull(pid)){
- // model.removeNodeset("/root/main/cond/patinfo"); //초기화
- //감면정보 같은 경우 인지 확인
- //20080128 손은연
- model.setValue("/root/send/dctype", model.getValue("/root/main/patinfo/patinforesult/dctype"));
- // 가정간호/방문간호 가접수 구분위해 추가 2009.02.25
- model.makeValue("/root/send/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
- // 외래접수정보 조회
- // submit("TRMNF00120"); fGetPatInfo에서 외래접수 조회하기 때문에 주석처리 2010.05.25 hhm
- var pid = model.getValue("/root/main/cond/patinfo/pid");
- if(isNull(pid)){
- messageBox("접수를 하지 않은 환자 입니다. 접수 후 처방 발행을","C002");
- }else{
- //상단정보를 띄워줌
- //20080124 손은연
- if (model.getValue("/root/main/cond/patinfo/ordtype") == "I" || model.getValue("/root/main/cond/patinfo/ordtype") == "E" ) {
- // 상단 세팅을 위한 파라미터
- condparam = "I"+ "▦" + model.getValue("/root/main/cond/patinfo/pid")
- + "▦" + model.getValue("/root/main/cond/patinfo/orddd")
- + "▦" + model.getValue("/root/main/cond/patinfo/cretno")
- + "▦" + model.getValue("/root/main/cond/patinfo/instcd")
- + "▦" + "" //기준일자 스페이스면 오늘일자로 자동세팅
- setParameter("condparam", condparam);
- //상단 세팅 화면 사이즈 작게 띄움
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- } else if( model.getValue("/root/main/cond/patinfo/ordtype") == "O" ) {
- var ordtype = model.getValue("//root/main/cond/patinfo/ordtype");
- var pid = model.getValue("/root/main/cond/patinfo/pid");
- var orddd = model.getValue("/root/main/cond/patinfo/orddd");
- var cretno = model.getValue("/root/main/cond/patinfo/cretno");
- var instcd = model.getValue("/root/main/cond/patinfo/instcd");
- var acptseqno = "";
- var orgorddd = "";
- var param = ordtype + "▦" + pid + "▦" + orddd + "▦" + cretno + "▦" + instcd + "▦" + "" + "▦" + orgorddd;
- setParameter("condparam", param);
- //상단 세팅 화면 사이즈 작게 띄움
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- }
- model.makeNode("/root/init/cond");
- var paminfo = getGlobalVariable("paminfo");
- setCSVToNode("/root/init/cond", paminfo);
- var pid = model.getValue("/root/init/cond/list/pid");
- if(pid == "") {
- var vbOK = messageBox("환자를 선택하지 ", "E007");
- }else{
- modal("SMLLC00300", "1", "", "", "SMLLC00300", "", "");
- }
- }
- }else{
- modal("SMLLC00300", "1", "", "", "SMLLC00300", "", "");
- }
- }
- //현장검사결과등록
- function fhomecareTestRslt() {
- //가접수내역 조회시 생성(TRMNF00120 조회시)
- var pid = model.getValue("/root/main/cond/patinfo/pid");
- if(isNull(pid)){
- // model.removeNodeset("/root/main/cond/patinfo"); //초기화
- var cur_row = grd_visitlst.row;
- var kind = model.getValue("/root/main/grd_visitlst/visitlist[" + cur_row + "]/kind");
- if((kind == '무료') || (kind == '기타')){
- messageBox("무료나 기타환자는 현장검사결과등록을 하실수","I004");
- return;
- }
- //컨설트 리스트 클릭시 환자 정보 조회하여 생성(TRMNF00101 조회시)
- var pid = model.getValue("/root/main/patinfo/patinforesult/pid");
- var hngnm = model.getValue("/root/main/patinfo/patinforesult/hngnm");
- var orddd = model.getValue("/root/send/visitdd");
- var orddeptcd = model.getValue("/root/main/patinfo/patinforesult/reqdeptcd");
- var orddrid = model.getValue("/root/main/patinfo/patinforesult/reqdrid");
- var orddeptnm = model.getValue("/root/main/patinfo/patinforesult/lastreqdeptnm");
- var orddrnm = model.getValue("/root/main/patinfo/patinforesult/lastreqdrnm");
- var rrgtno = model.getValue("/root/main/patinfo/patinforesult/rrgstno");
- var rrgstno1 = rrgtno.substr(0, 6);
- var rrgstno2 = rrgtno.substr(7, 7);
- //감면정보 같은 경우 인지 확인
- //20080128 손은연
- model.setValue("/root/send/dctype", model.getValue("/root/main/patinfo/patinforesult/dctype"));
- model.setValue("/root/send/instcd", model.getValue("/root/main/patinfo/patinforesult/instcd"));
- model.makeValue("/root/send/pid" ,model.getValue("/root/main/patinfo/patinforesult/pid"));
- //환자정보 조회시 선택한 의뢰과, 의뢰의사 정보를 조회하지 못하므로 가접수 내역 조회시 선택한 의뢰과, 의뢰의사 정보로 조회조건 가져가도록 수정
- //model.makeValue("/root/send/orddeptcd", model.getValue("/root/main/patinfo/patinforesult/reqdeptcd"));
- //model.makeValue("/root/send/orddrid", model.getValue("/root/main/patinfo/patinforesult/reqdrid"));
- model.makeValue("/root/send/orddeptcd", model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + grd_patvisitlst.row + "]/reqdeptcd"));
- model.makeValue("/root/send/orddrid", model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + grd_patvisitlst.row + "]/reqdrid"));
- model.makeValue("/root/send/ocrflag", "Y");
- // 가정간호/방문간호 가접수 구분위해 추가 2009.02.25
- model.makeValue("/root/send/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
- // 외래접수정보 조회
- // submit("TRMNF00120"); fGetPatInfo에서 외래접수 조회하기 때문에 주석처리 2010.05.25 hhm
- model.removenode("/root/send/ocrflag");
- var pid = model.getValue("/root/main/cond/patinfo/pid");
- if(isNull(pid)){
- messageBox("접수를 하지 않은 환자 입니다. 접수 후 현장검사결과등록을","C002");
- }else{
- if (model.getValue("/root/main/cond/patinfo/ordtype") == "I" || model.getValue("/root/main/cond/patinfo/ordtype") == "E" ) {
- // 상단 세팅을 위한 파라미터
- condparam = "I"+ "▦" + model.getValue("/root/main/cond/patinfo/pid")
- + "▦" + model.getValue("/root/main/cond/patinfo/orddd")
- + "▦" + model.getValue("/root/main/cond/patinfo/cretno")
- + "▦" + model.getValue("/root/main/cond/patinfo/instcd")
- + "▦" + "" //기준일자 스페이스면 오늘일자로 자동세팅
- setParameter("condparam", condparam);
- //상단 세팅 화면 사이즈 작게 띄움
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- } else if( model.getValue("/root/main/cond/patinfo/ordtype") == "O" ) {
- var ordtype = model.getValue("//root/main/cond/patinfo/ordtype");
- var pid = model.getValue("/root/main/cond/patinfo/pid");
- var orddd = model.getValue("/root/main/cond/patinfo/orddd");
- var cretno = model.getValue("/root/main/cond/patinfo/cretno");
- var instcd = model.getValue("/root/main/cond/patinfo/instcd");
- var acptseqno = "";
- var orgorddd = "";
- var param = ordtype + "▦" + pid + "▦" + orddd + "▦" + cretno + "▦" + instcd + "▦" + "" + "▦" + orgorddd;
- setParameter("condparam", param);
- //상단 세팅 화면 사이즈 작게 띄움
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- }
- model.makeNode("/root/init/cond");
- var paminfo = getGlobalVariable("paminfo");
- setCSVToNode("/root/init/cond", paminfo);
- var pid = model.getValue("/root/init/cond/list/pid");
- if(pid == "") {
- var vbOK = messageBox("환자를 선택하지 ", "E007");
- }else{
- modal("SMLLR91100", "1", "", "", "SMLLR91100");
- }
- //modal("SMLLR91100", "1", "", "", "SMLLR91100");
- }
- //당일가접수하여 상단에 정보가 띄워졌을 경우 현장검사팝업이 뜨지 않는 오류수정_20100126_SMY
- }else{
- modal("SMLLR91100", "1", "", "", "SMLLR91100");
- }
- }
- // 방문간호 계약서 보기
- function fVisitCarePaper() {
- model.makeValue("/root/visitviewtrans/pid", model.getValue("/root/main/patinfo/patinforesult/pid"));
- model.makeValue("/root/visitviewtrans/hngnm", model.getValue("/root/main/patinfo/patinforesult/hngnm"));
- model.makeValue("/root/visitviewtrans/sa", model.getValue("/root/main/patinfo/patinforesult/sex"));
- model.makeValue("/root/visitviewtrans/reqdeptnm", model.getValue("/root/main/patinfo/patinforesult/lastreqdeptnm"));
- model.makeValue("/root/visitviewtrans/reqdrnm", model.getValue("/root/main/patinfo/patinforesult/lastreqdrnm"));
- model.makeValue("/root/visitviewtrans/reqdd", model.getValue("/root/main/patinfo/patinforesult/reqdd"));
- model.makeValue("/root/visitviewtrans/vorddd", model.getValue("/root/main/patinfo/patinforesult/vorddd"));
- model.makeValue("/root/visitviewtrans/vcretno", model.getValue("/root/main/patinfo/patinforesult/vcretno"));
- model.makeValue("/root/visitviewtrans/vitcareflag", "Y"); // 방문간호 계약 등록여부
- //model.makeValue("/root/iviewerdata/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
- //model.setValue("/root/iviewerdata/formrecseq", gFormRecSeq);
- // 미확정일때는 리스트에서
- //alert(searchListFlag);
- // 종결
- if(searchListFlag == "3" ) {
- var cur_row = grd_patvisitlst.row;
- var spatcareflag = model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/patcareflag");
- // 다른상태는 결과에서
- }else {
- var spatcareflag = model.getValue("/root/main/patinfo/patinforesult/patcareflag");
- }
- //model.refresh();
- if (spatcareflag == "H") {
- messageBox("방문간호 환자만 방문간호 계약서 보기가","I006"); // I006 : 가능합니다.
- return;
- }
- //open("SPMNF00110", "", "", "", "SPMNF00110", "/root/iviewerdata", "/root/main/parameter");
- open("SPMNF00600", "", "", "", "SPMNF00600", "/root/visitviewtrans", "/root/main/parameter");
- }
- // 만료일 한달 전인 의뢰서 그리드에 색깔 셋팅
- function fSetGrdColorEndSche(){
- for(var i =1; i<grd_patvisitlst.rows; i++){
- if(model.getValue("/root/main/grd_patvisitlst/patvisitlist["+i+"]/endscheflag") == "Y"){
- grd_patvisitlst.rowstyle(i, "data", "background-color" ) = "#FFE9C9";
- }
- }
-
- grd_patvisitlst.rebuildStyle();
- }
- function fSetPamPopup(scrnm){
- model.makeValue("/root/tmp/uncoref/info/popup","homecare"); // 팝업사용처구분 : nurse(가정간호)
- model.makeValue("/root/tmp/uncoref/info/pid", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+grd_patvisitlst.row+"]/pid")); //등록번호
- model.makeValue("/root/tmp/uncoref/info/kind", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+grd_patvisitlst.row+"]/kind")); //병원(1),본당(2)구분
- modal(scrnm, "", "400", "300", "", "/root/tmp/uncoref/info", "/root/tmp/uncoref/info");
- model.removenode("/root/tmp/uncoref");
- }
- // 가정간호 진료비 상세내역 조회
- function fHomeCareOrdAmtDetl(){
- var scrnm = "SMPMC04000_가정간호진료비상세내역조회";
- fSetPamPopup(scrnm);
- }
- // 가정간호 선수금 수납내역 조회
- function fHomeCarePreAmt(){
- var scrnm = "SMPMC04100_가정간호중간금수납내역조회";
- fSetPamPopup(scrnm);
- }
- // 가정간호 미수현황 조회
- function fHomeCareUncoAmt(){
- var scrnm = "SMPMC04300_가정간호미수금 조회";
- fSetPamPopup(scrnm);
- }
- //가정간호 강제 진단명 생성. 2009.07.09 taebum
- function fOnClickDiagCreate(){
- var nodecnt = getNodesetCount("/root/main/grd_patvisitlst/patvisitlist");
- if(nodecnt < 1){
- model.alert("의뢰내역을 선택하시기 바랍니다.");
- return;
- }
- var sPid = model.getValue("/root/main/grd_patvisitlst/patvisitlist/pid");
- var sHngnm = model.getValue("/root/main/grd_patvisitlst/patvisitlist/hngnm");
- var sReqdd = model.getValue("/root/main/grd_patvisitlst/patvisitlist/reqdd");
- var sReqdeptcd = model.getValue("/root/main/grd_patvisitlst/patvisitlist/reqdeptcd");
- var sReqdeptnm = model.getValue("/root/main/grd_patvisitlst/patvisitlist/reqdeptnm");
- var sReqdrid = model.getValue("/root/main/grd_patvisitlst/patvisitlist/reqdrid");
- var sReqdrnm = model.getValue("/root/main/grd_patvisitlst/patvisitlist/reqdrnm");
- var iSelectCnt = 0;
- var iSelectPos = 0;
- for(var i = 1; i <= nodecnt; i++){
- if(grd_patvisitlst.isSelected(i) == true) {
- iSelectCnt ++;
- iSelectPos = i;
- }
- }
- if(iSelectCnt > 1){
- model.alert("의뢰내역은 한건만 선택해야 합니다.");
- return;
- }else{
- var param = sPid+"▦"+sHngnm+"▦"+sReqdd+"▦"+sReqdeptcd+"▦"+sReqdeptnm+"▦"+sReqdrid+"▦"+sReqdrnm;
- setParameter("condparam", param);
- modal("SPMNF00120");
- }
- }
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" src="../../../emr/homecareweb/js/SMMNF00100.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- fEnableInsertButton();
- model.removeNodeset("/root/main/list/msglist");
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/main/item");
- var default_syscd = model.getValue("/root/init/syscd[1]/value");
- model.setValue("/root/send/bizabbr",default_syscd);
- //model.refresh();
- }
- // 시스템코드, 메시지종료, 메시지 번호가 입력되면 이들을 조합하여 메시지코드를 설정한다.
- function fSetMessageCode() {
- var bizabbr = model.getValue("/root/main/item/bizabbr");
- var msgkind = model.getValue("/root/main/item/msgtype");
- var msgno = model.getValue("/root/main/item/msgno");
- var msgcd = bizabbr + "." + msgkind + "." + msgno;
- model.makeValue("/root/main/item/msgcd",msgcd);
- //model.refresh();
- }
- function fEnableInsertButton() {
- btn_insert.disabled = false;
- btn_update.disabled = true;
- }
- function fEnableUpdateButton() {
- btn_insert.disabled = true;
- btn_update.disabled = false;
- }
- function fCheckMandatoryInput() {
- // 필수항목 체크
- if (model.getValue("/root/main/item/bizabbr") == "") {
- messageBox("업무 구분은","I003");
- model.setFocus("cmb_bizabbrinput");
- return false;
- }
- if (model.getValue("/root/main/item/msgtype") == "") {
- messageBox("메시지 종류는","I003");
- model.setFocus("cmb_msgtypeinput");
- return false;
- }
- if (model.getValue("/root/main/item/msgno") == "") {
- messageBox("메시지 번호는","I003");
- model.setFocus("ipt_msgnoinput");
- return false;
- }
- if (model.getValue("/root/main/item/msgcnts1") == "") {
- messageBox("메시지 1은","I003");
- model.setFocus("ipt_msgcnts1");
- return false;
- }
- return true;
- }
- function fDeleteSelectedRows(grd,markonly) {
- var rowIdx;
- if (grd.selectedRows > 0) {
- var selectedRows = Array(grd.selectedRows);
- for(i=0;i<grd.selectedRows;i++) {
- selectedRows[i] = grd.selectedRow(i);
- }
- if (markonly != null && markonly == true) { // mark delete
- for(i=selectedRows.length-1;i>=0;i--) {
- rowIdx = selectedRows[i];
- if(grd.rowstatus(rowIdx) == 1 ) { // just inserted row
- grd.deleterow(rowIdx,false);
- } else {
- grd.addStatus(rowIdx,"delete");
- }
- }
- } else {
- for(i=selectedRows.length-1;i>=0;i--) {
- rowIdx = selectedRows[i];
- grd.deleterow(rowIdx,false);
- }
- }
- }
- }
- function fFindRow(data, col){
- //searchListFlag = "1"; // Default "1" - 당일방문예정자 리스트
- //searchListFlag = "2"; // "2" - 미확정 리스트
- //searchListFlag = "3"; // "3" - 종결환자리스트
- //searchListFlag = "4"; // "4" - 만료환자리스트
- //searchListFlag = "5"; // "5" - 진행환자리스트
- var sGrid = "";
- if ( searchListFlag == "1" || searchListFlag == "5" ){
- sGrid = grd_visitlst
- }
- if ( searchListFlag == "2" ){
- sGrid = grd_reqlist
- }
- if ( searchListFlag == "3" ){
- sGrid = grd_endlist
- }
- if ( searchListFlag == "4" ){
- sGrid = grd_explist
- }
- var row = sGrid.findRow(data, 1, col);
- sGrid.select(row, 1, row,sGrid.cols-1) = true;
- return row;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body scroll="autovscroll" style="color:#ff99cc; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
- <group id="group2" style="left:0px; top:0px; width:1195px; height:784px; vertical-align:top; ">
- <!--(20101206) 경북대
- <datagrid id="grd_patvisitlst" nodeset="/root/main/grd_patvisitlst/patvisitlist" class="datagrid2" autoresize="true" caption="구분^등록번호^환자명^S/A^진료과^주치의^의뢰일^진단명^진행상태^재원상태^미수^만료일^상세^경과^종결일^종결사유^방문횟수^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^caption13^caption14^caption15" colsep="^" colwidth="35, 70, 55, 40, 75, 44, 79, 178, 57, 55, 36, 70, 81, 51, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" explorerbar="sort" mergecellsfixedrows="bycolrec" multitotal="false" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:235px; top:130px; width:232px; height:650px; vertical-align:middle; ">
- -->
- <datagrid id="grd_patvisitlst" nodeset="/root/main/grd_patvisitlst/patvisitlist" class="datagrid2" autoresize="true" caption="구분^등록번호^환자명^S/A^진료과^진료의^의뢰일^진단명^진행상태^재원상태^미수^만료일^상세^경과^종결일^종결사유^방문횟수^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^caption13^caption14^caption15" colsep="^" colwidth="35, 70, 55, 40, 75, 44, 79, 178, 57, 55, 36, 70, 81, 51, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" explorerbar="sort" mergecellsfixedrows="bycolrec" multitotal="false" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:235px; top:130px; width:232px; height:650px; vertical-align:middle; ">
- <!--(20101206) 경북대 -->
- <col ref="careflag" visibility="hidden" style="text-align:center; "/>
- <col ref="pid" visibility="hidden" style="text-align:center; "/>
- <col ref="hngnm" visibility="hidden" style="text-align:center; "/>
- <col ref="sex" visibility="hidden" style="text-align:center; "/>
- <col ref="reqdeptnm" style="text-align:center; "/>
- <col ref="reqdrnm" style="text-align:center; "/>
- <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="cnstdiagname" style="text-align:left; "/>
- <col ref="procstatus" style="text-align:center; "/>
- <col ref="inptstat" visibility="hidden" style="text-align:left; "/>
- <col ref="receiptflag" visibility="hidden" style="left:420px; top:32px; width:40px; height:23px; text-align:center; "/>
- <col ref="expenddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="detail" style="text-align:center; "/>
- <col ref="hisrecord" style="text-align:center; "/>
- <col ref="enddd" style="text-align:center; "/>
- <col ref="endreason" style="text-align:center; "/>
- <col ref="visitcnt" style="text-align:center; "/>
- <col disabled="true" ref="headquarter" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/item/church/churchlist">
- <label ref="churchnm"/>
- <value ref="churchcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="kind" visibility="hidden" style="text-align:center; "/>
- <col ref="inptdt" visibility="hidden"/>
- <col ref="cnstdiagcd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="result" visibility="hidden"/>
- <col ref="reqdeptcd" visibility="hidden" style="text-align:center; "/>
- <col ref="reqdrid" visibility="hidden" style="text-align:center; "/>
- <col ref="formrecseq" visibility="hidden" style="text-align:center; "/>
- <col ref="rereqyn" visibility="hidden" style="text-align:center; "/>
- <col ref="patcareflag" visibility="hidden" style="text-align:center; "/>
- <col ref="orddd" visibility="hidden" style="text-align:center; "/>
- <col ref="cretno" visibility="hidden" style="text-align:center; "/>
- <col ref="rereqyn" visibility="hidden" style="text-align:center; "/>
- <col ref="fromdd" visibility="hidden" style="text-align:center; "/>
- <col ref="todd" visibility="hidden" style="text-align:center; "/>
- <col ref="asreqdeptcd" visibility="hidden" style="text-align:center; "/>
- <col ref="porddd" visibility="hidden" style="text-align:center; "/>
- <col ref="pcretno" visibility="hidden" style="text-align:center; "/>
- <col ref="acptseqno" visibility="hidden" style="text-align:center; "/>
- <col ref="orgorddd" visibility="hidden" style="text-align:center; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGetPatInfo(); // 환자정보조회
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if (event.button == 3) { // 마우스 오른쪽 버튼 클릭시
- if(grd_patvisitlst.isCell(event.target) && grd_patvisitlst.mouseRow >= grd_patvisitlst.fixedrows ) {
- app.showPopupMenu(true);
- if(searchListFlag == "5") { // 진행리스트 일때만 팝업메뉴 적용
- if(isDataCell()) {
- var cur_row = grd_patvisitlst.mouseRow;
- if ( cur_row > 0 ) {
- // 진행 리스트에서 마우스 오른쪽 버튼 클릭시 "취소" 팝업 메뉴 로드
- //오른쪽 마우스 클릭시 등록일때와 무료, 기타 환자 일때 나오는 메뉴가 다름
- //성빈센트병원_마약처방관리, MMSE-K, S-SDQ서식기록 삭제요청_20090928_SMY
- if(VincentFlag == "Y"){
- if(model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row +"]/kind") == "무료" || model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row +"]/kind") == "기타"){
- setPopupMenu("grd_patvisitlst", false, "/root/codedata/popupmenu/kind017/item", "name", "func");
- }else{
- setPopupMenu("grd_patvisitlst", false, "/root/codedata/popupmenu/grd_cancel017/item", "name", "func");
- }
- }else{
- if(model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row +"]/kind") == "무료" || model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row +"]/kind") == "기타"){
- setPopupMenu("grd_patvisitlst", false, "/root/codedata/popupmenu/kind/item", "name", "func");
- }else{
- setPopupMenu("grd_patvisitlst", false, "/root/codedata/popupmenu/grd_cancel/item", "name", "func");
- }
- }
- gRow = grd_patvisitlst.mouseRow;
- gCol = grd_patvisitlst.mouseCol;
- gPid = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + gRow + "]/pid");
- gInptdt = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + gRow + "]/inptdt");
- gInstcd = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + gRow + "]/instcd");
- gCancelReason = "";
- gFormRecSeq = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + gRow + "]/formrecseq");
- }
- }
- }
- if(searchListFlag == "1") { // 당일방문예정리스트 일때만 팝업메뉴 적용
- if(isDataCell()) {
- var cur_row = grd_patvisitlst.mouseRow;
- if ( cur_row > 0 ) {
- // 방문예정자 리스트에서 마우스 오른쪽 버튼 클릭시 "가정간호 처방발행" 팝업 메뉴 로드
- // if(event.button == 3){
- //성빈센트병원_마약처방관리, MMSE-K, S-SDQ서식기록 삭제요청_20090928_SMY
- if(VincentFlag == "Y"){
- setPopupMenu("grd_patvisitlst", false, "/root/codedata/popupmenu/execorder017/item", "name", "func");
- }else{
- setPopupMenu("grd_patvisitlst", false, "/root/codedata/popupmenu/execorder/item", "name", "func");
- }
- gRow = grd_patvisitlst.mouseRow;
- gCol = grd_patvisitlst.mouseCol;
- gPid = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + gRow + "]/pid");
- gInstcd = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + gRow + "]/instcd");
- gOrddd = "";
- gCretno = "";
- gOrddeptcd = "";
- gOrddrid = "";
- gFormRecSeq = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + gRow + "]/formrecseq");
- // }
- }
- }
- }
- // 종결
- if(searchListFlag == "3") { // 종결 일때만 팝업메뉴 적용
- setPopupMenu("grd_patvisitlst", false, "/root/codedata/popupmenu/endpaper/item", "name", "func");
- }
- // 만료
- if(searchListFlag == "4") { // 만료체크시만 팝업메뉴 적용
- //성빈센트병원_마약처방관리, MMSE-K, S-SDQ서식기록 삭제요청_20090928_SMY
- if(VincentFlag == "Y"){
- setPopupMenu("grd_patvisitlst", false, "/root/codedata/popupmenu/exppaper017/item", "name", "func");
- }else{
- setPopupMenu("grd_patvisitlst", false, "/root/codedata/popupmenu/exppaper/item", "name", "func");
- }
- }
- }
- } // end if
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_patvisitlst.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="cell_1" style="left:0px; top:106px; width:235px; height:23px; text-align:center; "/>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:18px; width:1194px; height:62px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:101px; x2:467px; y2:101px; "/>
- <caption id="caption3" class="search_name" style="left:15px; top:25px; width:98px; height:17px; ">업무일자 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1129px; top:37px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fClear();
- //본당등록구분
- fMakeChrRgstKind();
- model.setValue("/root/send/pid","");
- model.setValue("/root/send/inptdt","");
- //진행상태별 화면 세팅
- fDisableEnableBtn(searchListFlag) ;
- if ( !fExcuteSearch(searchListFlag)){
- return;
- }
- if(searchListFlag == "4") {
- // 7.일자별 만료건수 조회
- //20100419 submit("TRMNF00121");
- }else {
- // 7.일자별 방문(예정)건수 조회
- //20100419 submit("TRMNF00107");
- }
- // 달력에 일자별 방문(예정)건수 대입
- fDataDisplay();
- model.removeNodeset("/root/main/procstat/procstatcnt");
- //0. 진행상태 : 당일방문예정, 미확정, 진행, 종결 카운트 조회
- submit("TRMNF00115");
- ]]>
- </script>
- </button>
- <line id="line2" style="x1:1115px; y1:25px; x2:1115px; y2:78px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:51px; width:98px; height:17px; ">진행상태 :</caption>
- <caption id="cap_listtitle" class="tit_2" style="left:5px; top:84px; width:152px; height:13px; ">당일방문예정자 리스트</caption>
- <select1 id="rdo_kind" ref="/root/send/kind" class="radio_search" visibility="hidden" appearance="full" cols="3" rows="1" overflow="visible" style="left:235px; top:24px; width:140px; height:20px; border-style:none; ">
- <!-- (20100906 경북대) 보정 -->
- <choices>
- <itemset>
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <!-- (20100906 경북대) 보정 -->
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (rdo_kind.value == 1) { // 병원
- // 가정간호센터(2361000000)에서 가정간호팀(3090100000)로 변경 2009.03.27
- //if (( getUserInfo("dutplcecd") != "2361000000" ) && ( getUserInfo("dutplcecd") != "1000000000" ) && ( getUserInfo("dutplcecd") != "3041100000" )){
- //-----------(20100903 경북대)
- //원본
- //if (( getUserInfo("dutplcecd") != "3090100000" ) && ( getUserInfo("dutplcecd") != "1000000000" ) && ( getUserInfo("dutplcecd") != "3041100000" )){
- //보정
- if (( getUserInfo("dutplcecd") != ghomeDeptmain ) && ( getUserInfo("dutplcecd") != ghomeDeptsub1 ) && ( getUserInfo("dutplcecd") !=ghomeDeptsub2)){
- //--------------------------------------------(20100903 경북대-하드코딩)
- messageBox("병원을 조회할 수","I004"); // 없습니다.
- rdo_kind.value = '2';
- rdo_kind.dispatch("xforms-value-changed");
- return ;
- }
- grp_kindchurch.visible = false;
- grp_kindhosp.visible = true;
- // 본당정보
- combo12.disabled = true;
- combo1.disabled = true;
- combo13.disabled = true;
- // 재택정보
- combo11.disabled = true;
- input5.disabled = true;
- combo10.disabled = true;
- // 병원정보
- combo2.disabled = false;
- input15.disabled = false;
- //본당, 구분 필드 안보여지게 함 20080527 손은연
- grd_visitlst.colHidden(grd_visitlst.colRef("headquarter")) = true;
- grd_visitlst.colHidden(grd_visitlst.colRef("kind")) = true;
- grd_explist.colHidden(grd_explist.colRef("churchnm")) = true;
- grd_explist.colHidden(grd_explist.colRef("kind")) = true;
- grd_reqlist.colHidden(grd_reqlist.colRef("churchnm")) = true;
- grd_reqlist.colHidden(grd_reqlist.colRef("kind")) = true;
- //버튼 활성화 비활성화 2008.05.15 손은연
- if(model.getValue("/root/send/prcsstat") == '1' ){
- btn_regnewpatient.visible = false;
- btn_receipt.visible = true;
- //-----(20101119) 경북대
- //btn_reqview.visible = true;
- //btn_reqtrns.visible = true;
- //-----(20101119) 경북대
- btn_save.visible = true;
- btn_confirm.visible = false;
- btn_reqcancel.visible = false; // 2009.09.10 의뢰확정 후 의뢰취소는 하지 않기 때문에 의뢰취소버튼 비활성화 되도록 김숙인선생님 요청
- }else if(model.getValue("/root/send/prcsstat") == '2' ){
- btn_regnewpatient.visible = false;
- btn_receipt.visible = false;
- btn_reqview.visible = false;
- btn_reqtrns.visible = false;
- btn_save.visible = false;
- btn_confirm.visible = true;
- btn_reqcancel.visible = true;
- }else if(model.getValue("/root/send/prcsstat") == '3' ){
- btn_regnewpatient.visible = false;
- btn_receipt.visible = true;
- //-----(20101119) 경북대
- //btn_reqview.visible = true;
- //btn_reqtrns.visible = true;
- //-----(20101119) 경북대
- btn_save.visible = true;
- btn_confirm.visible = false;
- btn_reqcancel.visible = false; // 2009.09.10 의뢰확정 후 의뢰취소는 하지 않기 때문에 의뢰취소버튼 비활성화 되도록 김숙인선생님 요청
- }else if(model.getValue("/root/send/prcsstat") == '4' ){
- btn_regnewpatient.visible = false;
- btn_receipt.visible = false;
- //----(20101119) 경북대
- //btn_reqview.visible = true;
- btn_reqtrns.visible = false;
- //----(20101119) 경북대
- btn_save.visible = true;
- btn_confirm.visible = false;
- btn_reqcancel.visible = false;
- }
- // 구분이 가정간호 인 경우는 방문계약버튼 뜨도록 수정
- if (model.getValue("/root/send/careflag")=='V') {
- btn_regnewpatient.attribute("text") = "방문계약";
- btn_regnewpatient.visible = true;
- }
- } else if (rdo_kind.value == 2) { // 본당
- grp_kindhosp.visible = false;
- grp_kindchurch.visible = true;
- // 본당정보
- combo12.disabled = false;
- combo1.disabled = false;
- combo13.disabled = false;
- // 재택정보
- combo11.disabled = true;
- input5.disabled = true;
- combo10.disabled = true;
- // 병원정보
- combo2.disabled = true;
- input15.disabled = true;
- //본당, 구분필드 보여지게 함 20080527 손은연
- grd_visitlst.colHidden(grd_visitlst.colRef("headquarter")) = false;
- grd_visitlst.colHidden(grd_visitlst.colRef("kind")) = false;
- //버튼 활성화 비활성화 2008.05.15 손은연
- if(model.getValue("/root/send/prcsstat") == '1' ){
- btn_regnewpatient.attribute("text") = "신환등록";
- btn_regnewpatient.visible = true;
- btn_receipt.visible = true;
- //------(20101119) 경북대
- //btn_reqview.visible = true;
- //btn_reqtrns.visible = true;
- //------(20101119) 경북대
- btn_save.visible = true;
- btn_confirm.visible = false;
- btn_reqcancel.visible = false; // 2009.09.10 의뢰확정 후 의뢰취소는 하지 않기 때문에 의뢰취소버튼 비활성화 되도록 김숙인선생님 요청
- }else if(model.getValue("/root/send/prcsstat") == '2' ){
- btn_regnewpatient.visible = false;
- btn_receipt.visible = false;
- btn_reqview.visible = false;
- btn_reqtrns.visible = false;
- btn_save.visible = false;
- btn_confirm.visible = true;
- btn_reqcancel.visible = true;
- }else if(model.getValue("/root/send/prcsstat") == '3' ){
- btn_regnewpatient.attribute("text") = "신환등록";
- btn_regnewpatient.visible = true;
- btn_receipt.visible = true;
- //-------(20101119) 경북대
- //btn_reqview.visible = true;
- //btn_reqtrns.visible = true;
- //-------(20101119) 경북대
- btn_save.visible = true;
- btn_confirm.visible = false;
- btn_reqcancel.visible = false; // 2009.09.10 의뢰확정 후 의뢰취소는 하지 않기 때문에 의뢰취소버튼 비활성화 되도록 김숙인선생님 요청
- }else if(model.getValue("/root/send/prcsstat") == '4' ){
- btn_regnewpatient.visible = false;
- btn_receipt.visible = false;
- //-------(20101119) 경북대
- //btn_reqview.visible = true;
- btn_reqtrns.visible = false;
- //-------(20101119) 경북대
- btn_save.visible = true;
- btn_confirm.visible = false;
- btn_reqcancel.visible = false;
- }
- } else{ // 재택
- grp_kindchurch.visible = false;
- grp_kindhosp.visible = true;
- // 본당정보
- combo12.disabled = true;
- combo1.disabled = true;
- combo13.disabled = true;
- // 재택정보
- combo11.disabled = false;
- input5.disabled = false;
- combo10.disabled = false;
- // 병원정보
- combo2.disabled = true;
- input15.disabled = true;
- //버튼 활성화 비활성화 2008.05.15 손은연
- if(model.getValue("/root/send/prcsstat") == '1' ){
- btn_regnewpatient.attribute("text") = "신환등록";
- btn_regnewpatient.visible = true;
- btn_receipt.visible = true;
- //------(20101119) 경북대
- //btn_reqview.visible = true;
- //btn_reqtrns.visible = true;
- //------(20101119) 경북대
- btn_save.visible = true;
- btn_confirm.visible = false;
- btn_reqcancel.visible = false; // 2009.09.10 의뢰확정 후 의뢰취소는 하지 않기 때문에 의뢰취소버튼 비활성화 되도록 김숙인선생님 요청
- }else if(model.getValue("/root/send/prcsstat") == '2' ){
- btn_regnewpatient.visible = false;
- btn_receipt.visible = false;
- btn_reqview.visible = false;
- btn_reqtrns.visible = false;
- btn_save.visible = false;
- btn_confirm.visible = true;
- btn_reqcancel.visible = true;
- }else if(model.getValue("/root/send/prcsstat") == '3' ){
- btn_regnewpatient.attribute("text") = "신환등록";
- btn_regnewpatient.visible = true;
- btn_receipt.visible = true;
- //-----(20101119) 경북대
- //btn_reqview.visible = true;
- //btn_reqtrns.visible = true;
- //-----(20101119) 경북대
- btn_save.visible = true;
- btn_confirm.visible = false;
- btn_reqcancel.visible = false; // 2009.09.10 의뢰확정 후 의뢰취소는 하지 않기 때문에 의뢰취소버튼 비활성화 되도록 김숙인선생님 요청
- }else if(model.getValue("/root/send/prcsstat") == '4' ){
- btn_regnewpatient.visible = false;
- btn_receipt.visible = false;
- //-----(20101119) 경북대
- //btn_reqview.visible = true;
- btn_reqtrns.visible = false;
- //-----(20101119) 경북대
- btn_save.visible = true;
- btn_confirm.visible = false;
- btn_reqcancel.visible = false;
- }
- }
- // 구분선택시 신환등록, 방문계약 버튼 컨트롤 수정 2009.06.17 hhm
- fSelCareflag();
- // 조회조건의 선택된 본당의 가정간호 담당간호사 리스트를 조회, 콤보박스에 세팅한다.
- submit("TRMNF00106", false);
-
- // 거주지역 조회.
- submit("TRMNF00133", false);
-
- //김홍점 20080124 세션에서 정보를 읽어온다.
- var userid = getUserId();
- if ( instance1.selectSingleNode("/root/item/chargenurse/nurselist[userid = '"+ userid +"']") == null ) {
- model.setValue("/root/send/chrgnursid", '%');
- model.setValue("/root/send/churchcd",'-');
- }else{
- model.setValue("/root/send/chrgnursid", userid );
- model.setValue("/root/send/churchcd", getUserInfo("dutplcecd"));
- }
- // 환자 기본정보의 감면유형 기준정보를 조회한다._20091020_SMY추가
- model.removeNodeset("/root/item/dctype");
- submit("TRMNF00110");
- //model.refresh();
- //btn_search.dispatch("DOMActivate"); // 화면 오픈시 두번 조회되어 수정 (2009.05.28 황혜민)
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if (rdo_kind.value == 1) { // 병원
- grp_kindchurch.visible = false;
- grp_kindhosp.visible = true;
- // 본당정보
- combo12.disabled = true;
- combo1.disabled = true;
- combo13.disabled = true;
- // 재택정보
- combo11.disabled = true;
- input5.disabled = true;
- combo10.disabled = true;
- // 병원정보
- combo2.disabled = false;
- input15.disabled = false;
- //버튼 활성화 비활성화 2008.05.15 손은연
- if(model.getValue("/root/send/prcsstat") == '1' ){
- btn_regnewpatient.visible = false;
- btn_receipt.visible = true;
- //---------(20101119) 경북대
- //btn_reqview.visible = true;
- //btn_reqtrns.visible = true;
- //---------(20101119) 경북대
- btn_save.visible = true;
- btn_confirm.visible = false;
- btn_reqcancel.visible = true;
- }else if(model.getValue("/root/send/prcsstat") == '2' ){
- btn_regnewpatient.visible = false;
- btn_receipt.visible = false;
- btn_reqview.visible = false;
- btn_reqtrns.visible = false;
- btn_save.visible = false;
- btn_confirm.visible = true;
- btn_reqcancel.visible = true;
- }else if(model.getValue("/root/send/prcsstat") == '3' ){
- btn_regnewpatient.visible = false;
- btn_receipt.visible = true;
- //------(20101119) 경북대
- //btn_reqview.visible = true;
- //btn_reqtrns.visible = true;
- //------(20101119) 경북대
- btn_save.visible = true;
- btn_confirm.visible = false;
- btn_reqcancel.visible = true;
- }else if(model.getValue("/root/send/prcsstat") == '4' ){
- btn_regnewpatient.visible = false;
- btn_receipt.visible = false;
- //------(20101119) 경북대
- //btn_reqview.visible = true;
- btn_reqtrns.visible = false;
- //------(20101119) 경북대
- btn_save.visible = true;
- btn_confirm.visible = false;
- btn_reqcancel.visible = false;
- }
- // 구분이 가정간호 인 경우는 방문계약버튼 뜨도록 수정
- if (model.getValue("/root/send/careflag")=='V') {
- btn_regnewpatient.attribute("text") = "방문계약";
- btn_regnewpatient.visible = true;
- }
- } else if (rdo_kind.value == 2) { // 본당
- grp_kindhosp.visible = false;
- grp_kindchurch.visible = true;
- // 본당정보
- combo12.disabled = false;
- combo1.disabled = false;
- combo13.disabled = false;
- // 재택정보
- combo11.disabled = true;
- input5.disabled = true;
- combo10.disabled = true;
- // 병원정보
- combo2.disabled = true;
- input15.disabled = true;
- //버튼 활성화 비활성화 2008.05.15 손은연
- if(model.getValue("/root/send/prcsstat") == '1' ){
- btn_regnewpatient.attribute("text") = "신환등록" ;
- btn_regnewpatient.visible = true;
- btn_receipt.visible = true;
- //-------(20101119) 경북대
- //btn_reqview.visible = true;
- //btn_reqtrns.visible = true;
- //-------(20101119) 경북대
- btn_save.visible = true;
- btn_confirm.visible = false;
- btn_reqcancel.visible = true;
- }else if(model.getValue("/root/send/prcsstat") == '2' ){
- btn_regnewpatient.visible = false;
- btn_receipt.visible = false;
- btn_reqview.visible = false;
- btn_reqtrns.visible = false;
- btn_save.visible = false;
- btn_confirm.visible = true;
- btn_reqcancel.visible = true;
- }else if(model.getValue("/root/send/prcsstat") == '3' ){
- btn_regnewpatient.attribute("text") = "신환등록" ;
- btn_regnewpatient.visible = true;
- btn_receipt.visible = true;
- //-------(20101119) 경북대
- //btn_reqview.visible = true;
- //btn_reqtrns.visible = true;
- //-------(20101119) 경북대
- btn_save.visible = true;
- btn_confirm.visible = false;
- btn_reqcancel.visible = true;
- }else if(model.getValue("/root/send/prcsstat") == '4' ){
- btn_regnewpatient.visible = false;
- btn_receipt.visible = false;
- //-------(20101119) 경북대
- //btn_reqview.visible = true;
- btn_reqtrns.visible = false;
- //-------(20101119) 경북대
- btn_save.visible = true;
- btn_confirm.visible = false;
- btn_reqcancel.visible = false;
- }
- } else { // 재택
- grp_kindchurch.visible = false;
- grp_kindhosp.visible = true;
- // 본당정보
- combo12.disabled = true;
- combo1.disabled = true;
- combo13.disabled = true;
- // 재택정보
- combo11.disabled = false;
- input5.disabled = false;
- combo10.disabled = false;
- // 병원정보
- combo2.disabled = true;
- input15.disabled = true;
- //버튼 활성화 비활성화 2008.05.15 손은연
- if(model.getValue("/root/send/prcsstat") == '1' ){
- btn_regnewpatient.attribute("text") = "신환등록" ;
- btn_regnewpatient.visible = true;
- btn_receipt.visible = true;
- //-------(20101119) 경북대
- //btn_reqview.visible = true;
- //btn_reqtrns.visible = true;
- //-------(20101119) 경북대
- btn_save.visible = true;
- btn_confirm.visible = false;
- btn_reqcancel.visible = true;
- }else if(model.getValue("/root/send/prcsstat") == '2' ){
- btn_regnewpatient.visible = false;
- btn_receipt.visible = false;
- btn_reqview.visible = false;
- btn_reqtrns.visible = false;
- btn_save.visible = false;
- btn_confirm.visible = true;
- btn_reqcancel.visible = true;
- }else if(model.getValue("/root/send/prcsstat") == '3' ){
- btn_regnewpatient.attribute("text") = "신환등록" ;
- btn_regnewpatient.visible = true;
- btn_receipt.visible = true;
- //-------(20101119) 경북대
- //btn_reqview.visible = true;
- //btn_reqtrns.visible = true;
- //-------(20101119) 경북대
- btn_save.visible = true;
- btn_confirm.visible = false;
- btn_reqcancel.visible = true;
- }else if(model.getValue("/root/send/prcsstat") == '4' ){
- btn_regnewpatient.visible = false;
- btn_receipt.visible = false;
- //-------(20101119) 경북대
- //btn_reqview.visible = true;
- btn_reqtrns.visible = false;
- //-------(20101119) 경북대
- btn_save.visible = true;
- btn_confirm.visible = false;
- btn_reqcancel.visible = false;
- }
- }
- model.setValue("/root/send/kind", rdo_kind.value);
- //model.refresh();
- ]]>
- </script>
- </select1>
- <group id="grp_kindchurch" visibility="hidden" style="left:380px; top:24px; width:560px; height:20px; background-color:transparent; ">
- <select1 id="combo5" ref="/root/send/churchcd" class="combo_search" appearance="minimal" style="left:75px; top:0px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/item/church/churchlist">
- <label ref="churchnm"/>
- <value ref="churchcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(combo5.value != "") {
- // 조회조건의 선택된 본당의 가정간호 담당간호사 리스트를 조회, 콤보박스에 세팅한다.
- submit("TRMNF00106");
- //본당의 경우 간호사 한명이므로 세팅
- //20080127 손은연
- //20080127 김홍점 본당이 전체일경우 간호사도 전체가 있어야 하므로 쿼리에서도 전체 삭제한부분 살렸고 여기서 select(1)을 선택하도록 수정
- if(model.getValue("/root/send/churchcd") == "-"){
- combo7.select(0);
- }else if ( combo7.length > 0 ){
- combo7.select(1);
- }
- }
- ]]>
- </script>
- </select1>
- <select1 id="combo7" ref="/root/send/chrgnursid" class="combo_search" appearance="minimal" style="left:435px; top:0px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/item/chargenurse/nurselist">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="caption28" class="search_name" style="left:0px; top:0px; width:80px; height:17px; ">본당명 :</caption>
- <caption id="caption29" class="search_name" style="left:330px; top:1px; width:99px; height:17px; ">담당간호사 :</caption>
- <select id="checkbox1" ref="/root/send/chrrgstkind" class="checkbox_search" overflow="visible" appearance="full" cols="3" rows="1" sep="," style="left:190px; top:2px; width:140px; height:17px; text-align:center; border-style:none; ">
- <choices>
- <itemset nodeset="/root/item/churchregkind/churchregkindlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select>
- </group>
- <group id="grp_kindhosp" visibility="visible" style="left:380px; top:24px; width:225px; height:20px; background-color:transparent; ">
- <select1 id="combo6" ref="/root/send/chrgnursid" class="combo_search" appearance="minimal" style="left:100px; top:0px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/item/chargenurse/nurselist">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="caption27" class="search_name" style="left:0px; top:1px; width:99px; height:17px; ">담당간호사 :</caption>
- </group>
- <caption id="caption16" class="tit_2" style="left:473px; top:85px; width:80px; height:13px; ">환자정보</caption>
- <button id="btn_save" class="btn5_letter2" style="left:852px; top:81px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/pid")) == 0) {
- messageBox("환자정보가","I004"); // 없습니다.
- return ;
- }else if( model.getValue("/root/main/grd_visitlst/visitlist["+grd_visitlst.row+"]/kind") == "무료" || model.getValue("/root/main/grd_visitlst/visitlist["+grd_visitlst.row+"]/kind") == "기타" ){
- if(model.getValue("/root/main/patinfo/patinforesult/chrrgstkind") == "1"){
- messageBox("등록환자로의 전환은 가정간호 의뢰서를 통해서만 가능합니다.", "E999", "");
- return;
- }
- }
- // 저장 데이터 세팅(콤보 박스 값)
- if ( !isNull(model.getValue("/root/main/patinfo/patinforesult/chrgnursid1"))) {
- model.setValue("/root/main/patinfo/patinforesult/chrgnursid", model.getValue("/root/main/patinfo/patinforesult/chrgnursid1"));
- } else if ( !isNull(model.getValue("/root/main/patinfo/patinforesult/chrgnursid2"))) {
- model.setValue("/root/main/patinfo/patinforesult/chrgnursid", model.getValue("/root/main/patinfo/patinforesult/chrgnursid2"));
- } else if ( !isNull(model.getValue("/root/main/patinfo/patinforesult/chrgnursid3"))) {
- model.setValue("/root/main/patinfo/patinforesult/chrgnursid", model.getValue("/root/main/patinfo/patinforesult/chrgnursid3"));
- }
- combo2.refresh();
- combo10.refresh();
- combo13.refresh();
- //model.refresh();
- if (model.getValue("/root/send/kind") == "1" || model.getValue("/root/send/kind") == "3" ) { // 병원
- submit("TXMNF00102");
- } else if (model.getValue("/root/send/kind") == "2") { // 본당
- if(getStringLength(combo12.value) == 0 || combo12.value == "-") {
- messageBox("본당을","C001"); // 입력하십시오!
- model.setFocus("combo12") ;
- return ;
- }
- if(getStringLength(combo1.value) == 0) {
- messageBox("본당 환자구분을","C001"); // 입력하십시오!
- model.setFocus("combo1") ;
- return ;
- }
- if(getStringLength(combo13.value) == 0 || combo13.value == "%") {
- messageBox("담당간호사을","C001"); // 입력하십시오!
- model.setFocus("combo13") ;
- return ;
- }
- if(gNewPat == "Y") { // 신환등록 시 본당 가정간호환자 등록인 경우
- gNewPat = "N" ;
- // 1.환자 기본정보 저장(UPDATE) 등록인경우
- submit("TXMNF00102");
- } else {
- //*****************************************************************************************************************
- // 본당환자구분 : '1' 등록 , '2' 무료 , '3' 기타
- // 본당환자 구분이 무료->기타, 기타->무료 로 바뀐 경우만 로직 적용
- //*****************************************************************************************************************
- if( model.getValue("/root/main/patinfo/patinforesult/oldchrrgstkind") != "1"
- && model.getValue("/root/main/patinfo/patinforesult/chrrgstkind") != "1"
- && model.getValue("/root/main/patinfo/patinforesult/chrrgstkind") != model.getValue("/root/main/patinfo/patinforesult/oldchrrgstkind"))
- {
- // 저장 데이터 세팅(콤보 박스 값)
- if ( !isNull(model.getValue("/root/main/patinfo/patinforesult/chrgnursid1"))) {
- model.makeValue("/root/reqtransdata/chrgnursid1", model.getValue("/root/main/patinfo/patinforesult/chrgnursid1"));
- } else if ( !isNull(model.getValue("/root/main/patinfo/patinforesult/chrgnursid2"))) {
- model.makeValue("/root/reqtransdata/chrgnursid2", model.getValue("/root/main/patinfo/patinforesult/chrgnursid2"));
- } else if ( !isNull(model.getValue("/root/main/patinfo/patinforesult/chrgnursid3"))) {
- model.makeValue("/root/reqtransdata/chrgnursid3", model.getValue("/root/main/patinfo/patinforesult/chrgnursid3"));
- }
- model.makeValue("/root/reqtransdata/address", model.getValue("/root/main/patinfo/patinforesult/address"));
- model.makeValue("/root/reqtransdata/telno1", model.getValue("/root/main/patinfo/patinforesult/telno1"));
- model.makeValue("/root/reqtransdata/telno2", model.getValue("/root/main/patinfo/patinforesult/telno2"));
- model.makeValue("/root/reqtransdata/cphone1owner", model.getValue("/root/main/patinfo/patinforesult/cphone1owner"));
- model.makeValue("/root/reqtransdata/cphone2owner", model.getValue("/root/main/patinfo/patinforesult/cphone2owner"));
- model.makeValue("/root/reqtransdata/cphone1", model.getValue("/root/main/patinfo/patinforesult/cphone1"));
- model.makeValue("/root/reqtransdata/cphone2", model.getValue("/root/main/patinfo/patinforesult/cphone2"));
- model.makeValue("/root/reqtransdata/churchcd", model.getValue("/root/main/patinfo/patinforesult/churchcd"));
- model.setValue("/root/reqtransdata/chrrgstkind", model.getValue("/root/main/patinfo/patinforesult/chrrgstkind"));
- model.makeValue("/root/reqtransdata/healcntryn", model.getValue("/root/main/patinfo/patinforesult/healcntryn"));
- model.makeValue("/root/reqtransdata/healcntrnm", model.getValue("/root/main/patinfo/patinforesult/healcntrnm"));
- model.makeValue("/root/reqtransdata/requnit", model.getValue("/root/main/patinfo/patinforesult/requnit"));
- model.makeValue("/root/reqtransdata/dctype", model.getValue("/root/main/patinfo/patinforesult/dctype"));
- model.makeValue("/root/reqtransdata/dcreason", model.getValue("/root/main/patinfo/patinforesult/dcreason"));
- model.makeValue("/root/reqtransdata/comremark", model.getValue("/root/main/patinfo/patinforesult/comremark"));
- model.makeValue("/root/reqtransdata/remark", model.getValue("/root/main/patinfo/patinforesult/remark"));
- // 방문간호 항목추가 2009.02.18
- model.makeValue("/root/reqtransdata/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
- model.makeValue("/root/reqtransdata/gradeflag", model.getValue("/root/main/patinfo/patinforesult/gradeflag"));
- model.makeValue("/root/reqtransdata/vdctype", model.getValue("/root/main/patinfo/patinforesult/vdctype"));
- model.makeValue("/root/reqtransdata/qualflag", model.getValue("/root/main/patinfo/patinforesult/qualflag"));
- model.makeValue("/root/reqtransdata/longtermno", model.getValue("/root/main/patinfo/patinforesult/longtermno"));
- model.makeValue("/root/reqtransdata/vstarea", model.getValue("/root/main/patinfo/patinforesult/vstarea"));model.makeValue("/root/reqtransdata/longtermno", model.getValue("/root/main/patinfo/patinforesult/longtermno"));
- // 1.본당환자를 무료->기타, 기타->무료 전환 시 이전상태가 종료가 종결되어야 하고, 종결사유는 자동으로 "8" : "전환" 이 되어야 한다.
- // 메인화면에서 전환하고 종결요약 화면 좌측의 종결 리스트에서 확인이 되어야 한다.
- // 종결기록 자동생성 (단, 본당에서 본당으로의 의뢰전송은 종결이 아니고 그대로 유지되어서 감)
- /*****************************************************************************************************************************************************
- <<< 종결기록없이 종결되는 경우 >>>
- 전환 : (본당) "무료" 환자를 "기타"로 전환, "기타" 환자를 "무료"로 전환하는 경우 종결기록에는 전환으로 종결사유가 들어가고 종결기록 유무에는 나타나지 않게한다.
- 병원의뢰 : (본당) "무료" 또는 "기타" 환자를 병원으로 의뢰한 경우 종결기록에는 병원의뢰로 종결사유가 들어가고 종결기록 유무에는 나타나지 않게한다.
- 병원의뢰된 환자는 가정간호 대상자 종결이 되고, 병원 내원시 접수하고 의뢰서 발행후 가정간호 대상자도 확정한다.
- *****************************************************************************************************************************************************/
- // 1.1.가정간호 종결요약 자동등록(INSERT)
- // 1.2.가정간호 대상자 테이블의 종결일, 종결여부를 업데이트 한다.
- // 2.본당환자를 전환 상태로 가정간호 대상자로 재등록한다. (무료 혹은 기타)
- // 가정간호 환자 대상자 등록(확정)(INSERT) 로직을 호출한다.
- //동일 트랜에서 이루어 져야 하므로 TXMNF00501 의 app단에서 3가지를 모두 수행
- submit("TXMNF00501");
- // 1.2.가정간호 대상자 테이블의 종결일, 종결여부를 업데이트 한다.
- //submit("TXMNF00504");
- // 2.본당환자를 전환 상태로 가정간호 대상자로 재등록한다. (무료 혹은 기타)
- // 가정간호 환자 대상자 등록(확정)(INSERT) 로직을 호출한다.
- //submit("TXMNF00103");
- } else {
- // 1.환자 기본정보 저장(UPDATE) 등록인경우
- submit("TXMNF00102");
- }
- }
- }
- fClear();
- // 환자선택시 환자별 histoy리스트 조회
- submit("TRMNF00131");
- ]]>
- </script>
- </button>
- <caption id="cap_previsitddcolor" class="color_9" visibility="hidden" style="left:955px; top:83px; width:15px; height:15px; vertical-align:middle; "/>
- <caption id="cap_previsitdd" visibility="hidden" style="left:971px; top:84px; width:62px; height:14px; vertical-align:middle; ">방문예정일</caption>
- <caption id="cap_visitddcolor" class="color_4" visibility="hidden" style="left:899px; top:83px; width:15px; height:15px; vertical-align:middle; "/>
- <caption id="cap_visitdd" visibility="hidden" style="left:915px; top:84px; width:38px; height:14px; vertical-align:middle; ">방문일</caption>
- <select id="checkbox2" ref="/root/main/expflag" class="checkbox_search" overflow="visible" appearance="full" style="left:1141px; top:83px; width:50px; height:17px; text-align:center; border-style:none; ">
- <choices>
- <item>
- <label>만료</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(checkbox2.value == 1) {
- searchListFlag = "4"; // 4.만료환자 리스트
- } else {
- searchListFlag = "1"; // 1.방문예정자 리스트
- rdo_prcsstat.value = "1"; // 1.당일방문예정
- }
- fClear();
- //본당등록구분
- fMakeChrRgstKind();
- model.setValue("/root/send/pid","");
- model.setValue("/root/send/inptdt","");
- fDisableEnableBtn(searchListFlag) ;
- if ( !fExcuteSearch(searchListFlag)){
- return;
- }
- if(checkbox2.value == 1) {
- // 일자별 만료환자 카운트 조회
- submit("TRMNF00121");
- } else {
- // 일자별 방문(예정)건수 조회
- submit("TRMNF00107");
- }
- // 달력에 일자별 건수 대입
- fDataDisplay();
- ]]>
- </script>
- </select>
- <!--(20101119) 경북대
- 경북대는 관계없음
- <button id="btn_reqtrns" class="btn2_letter2" style="left:722px; top:81px; width:42px; height:19px; ">
- -->
- <button id="btn_reqtrns" class="btn2_letter2" visibility="hidden" style="left:677px; top:81px; width:42px; height:19px; ">
- <!--(20101119) 경북대 -->
- <caption>전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var xpos = window.width / 2;
- var ypos = window.height / 2;
- if (rdo_kind.value == 1) { // 병원에서 본당으로 의뢰전송
- model.setValue("/root/reqtransdata/reqtrnskind", "1");
- //model.refresh();
- modal("SMMNF04100", "", "", "", "SMMNF04100", "/root/main/patinfo/patinforesult", "/root/main/transinfo/parameter");
- } else if (rdo_kind.value == 2) { // 본당에서 병원 혹은 본당으로 의뢰전송
- if ( isNull(model.getValue("/root/main/patinfo/patinforesult/chrrgstkind"))) {
- messageBox("등록/무료/기타 구분을 ", "C002");
- model.setFocus("combo1") ;
- return;
- }
- model.setValue("/root/reqtransdata/reqtrnskind", "2");
- model.setValue("/root/reqtransdata/chrrgstkind", model.getValue("/root/main/patinfo/patinforesult/chrrgstkind"));
- //model.refresh();
- modal("SMMNF04200", "", "", "", "SMMNF04200", "/root/main/patinfo/patinforesult", "/root/main/transinfo/parameter");
- }
- ]]>
- </script>
- </button>
- <line id="line50" class="line_3" style="x1:0px; y1:130px; x2:470px; y2:130px; "/>
- <input id="ipt_workdate" ref="/root/send/visitdd" class="input_search" inputtype="date" style="left:107px; top:24px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- cap_ym.value = ipt_workdate.value.substr(0, 4) + "년 " + ipt_workdate.value.substr(4, 2) + "월" ;
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <output id="opt_previsitcount" style="left:265px; top:81px; width:135px; height:19px; text-align:right; "/>
- <button id="btn_confirm" class="btn5_letter4" style="left:549px; top:81px; width:64px; height:19px; ">
- <caption>의뢰확정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/pid")) == 0) {
- messageBox("환자정보가","I004"); // 없습니다.
- return ;
- }
- if(rdo_kind.value == "2") { // 본당인 경우
- if(getStringLength(combo12.value) == 0 || combo12.value == "-") {
- messageBox("본당을","C001"); // 입력하십시오!
- return ;
- }
- if(getStringLength(combo1.value) == 0) {
- messageBox("본당 환자구분을","C001"); // 입력하십시오!
- return ;
- }
- if(getStringLength(combo13.value) == 0 || combo13.value == "%") {
- messageBox("담당간호사을","C001"); // 입력하십시오!
- return ;
- }
- }
- if(rdo_kind.value == "1") { // 본당인 경우
- if(getStringLength(combo2.value) == 0 || combo2.value == "%") {
- messageBox("담당간호사을","C001"); // 입력하십시오!
- return ;
- }
- }
- // 저장 데이터 세팅(콤보 박스 값)
- if ( !isNull(model.getValue("/root/main/patinfo/patinforesult/chrgnursid1"))) {
- model.setValue("/root/main/patinfo/patinforesult/chrgnursid", model.getValue("/root/main/patinfo/patinforesult/chrgnursid1"));
- } else if ( !isNull(model.getValue("/root/main/patinfo/patinforesult/chrgnursid2"))) {
- model.setValue("/root/main/patinfo/patinforesult/chrgnursid", model.getValue("/root/main/patinfo/patinforesult/chrgnursid2"));
- } else if ( !isNull(model.getValue("/root/main/patinfo/patinforesult/chrgnursid3"))) {
- model.setValue("/root/main/patinfo/patinforesult/chrgnursid", model.getValue("/root/main/patinfo/patinforesult/chrgnursid3"));
- }
- var cur_row = grd_reqlist.row;
- //해당환자의 진단명이 존재하지 않는 경우 알림창추가_20091230_SMY
- if(model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/cnstdiagcd") == ""){
- var DiagMsg = messageBox("가정간호 의뢰서의 진단명이 존재하지 않습니다. 의뢰확정을 하시겠습니까?" ,"Q");
- if(DiagMsg != '6'){
- return;
- }
- }
- //********************************************************************************************************
- // 입원환자 퇴원시 가정간호 의뢰 기록 여부 확인
- //********************************************************************************************************
- if((model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/reqmode") == "I") && (model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/carerec") == 'N')){
- var vbOK = messageBox("퇴원시 가정간호 의뢰 간호기록이 작성되지 않았습니다. 의뢰확정을" ,"Q003"); // 계속 진행하기겠습니까?
- if(vbOK != '6'){
- return;
- }
- }
- if ( cur_row > 0 ) {
- model.setValue("/root/send/pid", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/pid"));
- model.setValue("/root/main/patinfo/patinforesult/reqdd", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/reqdd"));
- model.setValue("/root/main/patinfo/patinforesult/reqdeptcd", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/reqdeptcd"));
- model.setValue("/root/main/patinfo/patinforesult/reqdrid", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/reqdrid"));
- model.setValue("/root/main/patinfo/patinforesult/patflag", rdo_kind.value);
- model.setValue("/root/main/patinfo/patinforesult/instcd", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/instcd"));
- model.makeValue("/root/main/patinfo/patinforesult/rereqyn", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/hisrecord"));
- model.makeValue("/root/main/patinfo/patinforesult/isnewpat", "N"); // 본당 신환등록여부 구분
- model.makeValue("/root/main/patinfo/patinforesult/cnststat", '22'); // 컨설트 테이블 상태값
-
- model.setValue("/root/send/patcareflag", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/patcareflag"));
- model.makeValue("/root/main/patinfo/patinforesult/patcareflag", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/patcareflag"));
- model.setValue("/root/main/patinfo/patinforesult/formrecseq", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/formrecseq")); // 서식기록번호 병원, 본당(등록) 환자의 경우 insert
- model.setValue("/root/main/patinfo/patinforesult/cnstdiagcd", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/cnstdiagcd")); //rqif 에 insert할 의뢰서 진단명 추가 (2010.02.26 hhm)
- model.setValue("/root/main/patinfo/patinforesult/reqdd", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/reqdd"));
- model.setValue("/root/main/patinfo/patinforesult/reqdeptcd", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/reqdeptcd"));
- model.setValue("/root/main/patinfo/patinforesult/reqdrid", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/reqdrid"));
- }
- //model.refresh();
- //******************************************************************************************
- // 기타/무료 환자인지 체크
- /******************************************************************************************/
- if(submit("TRMNF00132")){
- if(model.getValue("/root/temp/chrrgstkindinfo/chrrgstkindresult/pid") == "" ){ // 기타 무료환자 없을 경우
- }else{ // 종료되지 않은 기타 무료환자 존재시, msg
- var churchnm = model.getValue("/root/temp/chrrgstkindinfo/chrrgstkindresult/churchnm");
- model.makeValue("/root/main/patinfo/patinforesult/chrrgstkindRgstYN", "Y");
- model.makeValue("/root/main/patinfo/patinforesult/chnginptdt", model.getValue("/root/temp/chrrgstkindinfo/chrrgstkindresult/inptdt"));
- var patflag = model.getValue("/root/temp/chrrgstkindinfo/chrrgstkindresult/patflag");
- var chrrgstkind = model.getValue("/root/temp/chrrgstkindinfo/chrrgstkindresult/chrrgstkind");
- // alert(patflag + " "+chrrgstkind) ;
- if(patflag == "1" && chrrgstkind == "2"){
- messageBox("병원에서 관리되는 기타환자 정보가 있습니다. \n 가정간호 의뢰확정시 기타환자 정보는 자동종결됩니다." ,"E999","");
- }else if(patflag == "1" && chrrgstkind == "3"){
- messageBox("병원에서 관리되는 무료환자 정보가 있습니다. \n 가정간호 의뢰확정시 무료환자 정보는 자동종결됩니다." ,"E999","");
- }else if(patflag == "2" && chrrgstkind == "2"){
- messageBox("본당:"+ churchnm+"에서 관리되는 기타환자 정보가 있습니다. \n 가정간호 의뢰확정시 기타환자 정보는 자동종결됩니다." ,"E999","");
- }else if(patflag == "2" && chrrgstkind == "3"){
- messageBox("본당:"+ churchnm+"에서 관리되는 무료환자 정보가 있습니다. \n 가정간호 의뢰확정시 무료환자 정보는 자동종결됩니다." ,"E999","");
- }
- }
- }
- // 가정간호 환자 대상자 등록(확정)(INSERT)
- //의뢰서 확정여부 컨설트테이블 업데이트 추가
- if(submit("TXMNF00103")){
- //model.makeValue("/root/send/reqtrnspid", reqtrnspid);
- //의뢰전송 된 경우 인지 조회하여 의뢰전송인 경우는 의뢰전송완료 '4' 로 의뢰구분을 지정하여 준다
- if(submit("TRMNF00124")){
- //******************************************************************************************
- //의뢰전송 후 의뢰전송완료로 수정
- //*******************************************************************************************
- var pidcount = model.getValue("/root/main/reqtrnsinfo/reqtrnsinfo/pidcount");
- if(pidcount > '0'){
- model.setValue("/root/send/inptdt", model.getValue("/root/main/reqtrnsinfo/reqtrnsinfo/inptdt"));
- model.setValue("/root/main/patinfo/patinforesult/inptdt", model.getValue("/root/main/reqtrnsinfo/reqtrnsinfo/inptdt"));
- //의뢰전송 갱신
- submit("TXMNF00112");
- }
- }
- }else{
- messageBox("의뢰확정을", "E009"); //실패하였습니다.
- }
- fClear();
- //본당등록구분
- fMakeChrRgstKind();
- searchListFlag = "2"; // 2.미확정 리스트 조회
- fDisableEnableBtn(searchListFlag) ;
- model.setValue("/root/send/churchcd","-") ;
- if ( !fExcuteSearch(searchListFlag)){
- return;
- }
- // 7.일자별 방문(예정)건수 조회
- submit("TRMNF00107");
- // 달력에 일자별 방문(예정)건수 대입
- fDataDisplay();
- //0. 진행상태 : 당일방문예정, 미확정, 진행, 종결 카운트 조회
- submit("TRMNF00115");
- ]]>
- </script>
- </button>
- <!--(20101119) 경북대
- 경북대는 관계없음
- <button id="btn_reqview" class="btn2_letter6" style="left:765px; top:81px; width:86px; height:19px; ">
- -->
- <button id="btn_reqview" class="btn2_letter6" visibility="hidden" style="left:720px; top:81px; width:86px; height:19px; ">
- <!--(20101119) 경북대 -->
- <caption>전송수신보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var xpos = window.width / 2 - 100;
- var ypos = window.height / 2 - 200;
- var cur_row;
- if(searchListFlag == "1" || searchListFlag == "5") {
- cur_row = grd_visitlst.row;
- } else if(searchListFlag == "2") {
- cur_row = grd_reqlist.row;
- } else if(searchListFlag == "4") {
- cur_row = grd_explist.row;
- }
- if ( cur_row > 0 ) {
- if(searchListFlag == "1" || searchListFlag == "5") {
- model.setValue("/root/reqviewtrans/pid", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/pid"));
- model.setValue("/root/reqviewtrans/inptdt", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/inptdt"));
- model.setValue("/root/reqviewtrans/instcd", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/instcd"));
- model.setValue("/root/reqviewtrans/patcareflag", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/patcareflag"));
- } else if(searchListFlag == "2") {
- model.setValue("/root/reqviewtrans/pid", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/pid"));
- model.setValue("/root/reqviewtrans/inptdt", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/inptdt"));
- model.setValue("/root/reqviewtrans/instcd", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/instcd"));
- model.setValue("/root/reqviewtrans/patcareflag", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/patcareflag"));
- } else if(searchListFlag == "4") {
- model.setValue("/root/reqviewtrans/pid", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/pid"));
- model.setValue("/root/reqviewtrans/inptdt", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/inptdt"));
- model.setValue("/root/reqviewtrans/instcd", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/instcd"));
- model.setValue("/root/reqviewtrans/patcareflag", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/patcareflag"));
- }
- //model.refresh();
- }
- model.setValue("/root/reqviewtrans/patflag", rdo_kind.value);
- model.setValue("/root/reqviewtrans/churchcd", model.getValue("/root/send/churchcd"));
- open("SMMNF04500", "", "", "", "SMMNF04500", "/root/reqviewtrans", "/root/main/parameter");
- model.resetInstanceNode("/root/reqviewtrans");
- ]]>
- </script>
- </button>
- <button id="btn_reqcancel" class="btn2_letter4" style="left:614px; top:81px; width:64px; height:19px; ">
- <caption>의뢰취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //무료기타환자는 의뢰취소를 할수 없음을 blocking 20080916 김홍점
- if( ( model.getValue("/root/main/patinfo/patinforesult/chrrgstkind") == '2'
- || model.getValue("/root/main/patinfo/patinforesult/chrrgstkind") == '3' ) ){
- messageBox("무료, 기타 환자는 의뢰취소를 할 수 ", "I004");
- return;
- }
- grp_reqcancel.visible = true;
- btn_savereqcancel.disabled = false ;
- ]]>
- </script>
- </button>
- <!--(20101119) 경북대
- <button id="btn_receipt" class="btn2_letter2" visibility="visible" style="left:679px; top:81px; width:42px; height:19px; ">
- -->
- <button id="btn_receipt" class="btn2_letter2" visibility="visible" style="left:805px; top:81px; width:42px; height:19px; ">
- <!--(20101119) 경북대 -->
- <caption>접수</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fHomeCareOutAcpt();
- ]]>
- </script>
- </button>
- <caption id="caption75" class="cell_1" style="left:0px; top:106px; width:55px; height:23px; text-align:center; ">등록번호</caption>
- <input id="ipt_patnm" ref="/root/main/condition/hngnm" class="input_search" imemode="hangul" style="left:168px; top:108px; width:64px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == 13) {
- inputEnterKey("btn_patnm", "DOMActivate");
- model.resetInstanceNode("/root/main/condition/hngnm");
- ipt_patnm.refresh();
- } else {
- }
- ]]>
- </script>
- </input>
- <caption id="caption76" class="cell_1" style="left:122px; top:106px; width:45px; height:23px; text-align:center; ">환자명</caption>
- <button id="btn_patnm" class="icon_search" visibility="hidden" style="left:215px; top:109px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //searchListFlag = "1"; // Default "1" - 당일방문예정자 리스트
- //searchListFlag = "2"; // "2" - 미확정 리스트
- //searchListFlag = "3"; // "3" - 종결환자리스트
- //searchListFlag = "4"; // "4" - 만료환자리스트
- //searchListFlag = "5"; // "5" - 진행환자리스트
- var sGrid = "";
- if ( searchListFlag == "1" || searchListFlag == "5" ){
- sGrid = grd_visitlst
- }
- if ( searchListFlag == "2" ){
- sGrid = grd_reqlist
- }
- if ( searchListFlag == "3" ){
- sGrid = grd_endlist
- }
- if ( searchListFlag == "4" ){
- sGrid = grd_explist
- }
- var row = fFindRow(model.getValue("/root/main/condition/hngnm"), sGrid.colRef("hngnm"));
- sGrid.topRow = row;
- if(row > 0) {
- ipt_pid.value = "";
- ipt_patnm.value = "";
- }
- //model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="rdo_prcsstat" ref="/root/send/prcsstat" class="radio_search" appearance="full" cellspacing="70" cols="4" rows="1" overflow="visible" style="left:115px; top:53px; width:520px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>당일방문예정</label>
- <value>1</value>
- </item>
- <item>
- <label>미확정</label>
- <value>2</value>
- </item>
- <item>
- <label>진행</label>
- <value>3</value>
- </item>
- <item>
- <label>종결</label>
- <value>4</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //진행상태 라디오 버튼으로 변경
- //20080124 손은연
- fClear();
- //그리드 초기화
- model.removeNodeset("/root/main/grd_explist");
- model.removeNodeset("/root/main/grd_reqlist");
- model.removeNodeset("/root/main/grd_visitlst");
- model.removeNodeset("/root/main/grd_endlist");
- model.removeNodeset("/root/main/grd_patvisitlst");
- //본당등록구분
- fMakeChrRgstKind();
- model.setValue("/root/send/pid","");
- model.setValue("/root/send/inptdt","");
- if(model.getValue("/root/send/prcsstat") == '1' ){
- searchListFlag = "1";
- if (rdo_kind.value == 1) { // 병원
- btn_regnewpatient.visible = false;
- btn_receipt.visible = true;
- //-----(20101119) 경북대
- //btn_reqview.visible = true;
- //btn_reqtrns.visible = true;
- //-----(20101119) 경북대
- btn_save.visible = true;
- btn_save.disabled = false;
- btn_confirm.visible = false;
- btn_reqcancel.visible = false; // 2009.09.10 의뢰확정 후 의뢰취소는 하지 않기 때문에 의뢰취소버튼 비활성화 되도록 김숙인선생님 요청
- // 구분이 가정간호 인 경우는 방문계약버튼 뜨도록 수정
- if (model.getValue("/root/send/careflag")=='V') {
- btn_regnewpatient.attribute("text") = "방문계약";
- btn_regnewpatient.visible = true;
- }
- }else if (rdo_kind.value == 2){ // 본당
- btn_regnewpatient.attribute("text") = "신환등록" ;
- btn_regnewpatient.visible = true;
- btn_receipt.visible = true;
- //--(20101119) 경북대
- //btn_reqview.visible = true;
- //btn_reqtrns.visible = true;
- //--(20101119) 경북대
- btn_save.visible = true;
- btn_save.disabled = false;
- btn_confirm.visible = false;
- btn_reqcancel.visible = false; // 2009.09.10 의뢰확정 후 의뢰취소는 하지 않기 때문에 의뢰취소버튼 비활성화 되도록 김숙인선생님 요청
- }else{
- btn_regnewpatient.attribute("text") = "신환등록" ;
- btn_regnewpatient.visible = true;
- btn_receipt.visible = true;
- //--(20101119) 경북대
- //btn_reqview.visible = true;
- //btn_reqtrns.visible = true;
- //--(20101119) 경북대
- btn_save.visible = true;
- btn_save.disabled = false;
- btn_confirm.visible = false;
- btn_reqcancel.visible = false; // 2009.09.10 의뢰확정 후 의뢰취소는 하지 않기 때문에 의뢰취소버튼 비활성화 되도록 김숙인선생님 요청
- }
- }else if(model.getValue("/root/send/prcsstat") == '2' ){
- searchListFlag = "2";
- if (rdo_kind.value == 1) { // 병원
- btn_regnewpatient.visible = false;
- btn_receipt.visible = false;
- btn_reqview.visible = false;
- btn_reqtrns.visible = false;
- btn_save.visible = false;
- btn_confirm.visible = true;
- btn_confirm.disabled = false ;
- btn_reqcancel.visible = true;
- }else if (rdo_kind.value == 2){ // 본당
- btn_regnewpatient.visible = false;
- btn_receipt.visible = false;
- btn_reqview.visible = false;
- btn_reqtrns.visible = false;
- btn_save.visible = false;
- btn_confirm.visible = true;
- btn_confirm.disabled = false ;
- btn_reqcancel.visible = true;
- }else{
- btn_regnewpatient.visible = false;
- btn_receipt.visible = false;
- btn_reqview.visible = false;
- btn_reqtrns.visible = false;
- btn_save.visible = false;
- btn_confirm.visible = true;
- btn_confirm.disabled = false ;
- btn_reqcancel.visible = true;
- }
- }else if(model.getValue("/root/send/prcsstat") == '3' ){
- searchListFlag = "5";
- if (rdo_kind.value == 1) { // 병원
- btn_regnewpatient.visible = false;
- btn_receipt.visible = true;
- //--(20101119) 경북대
- //btn_reqview.visible = true;
- //btn_reqtrns.visible = true;
- //--(20101119) 경북대
- btn_save.visible = true;
- btn_save.disabled = false;
- btn_confirm.visible = false;
- btn_reqcancel.visible = false; // 2009.09.10 의뢰확정 후 의뢰취소는 하지 않기 때문에 의뢰취소버튼 비활성화 되도록 김숙인선생님 요청
- }else if (rdo_kind.value == 2){ // 본당
- btn_regnewpatient.attribute("text") = "신환등록" ;
- btn_regnewpatient.visible = true;
- btn_receipt.visible = true;
- //------(201011119) 경북대
- //btn_reqview.visible = true;
- //btn_reqtrns.visible = true;
- //------(201011119) 경북대
- btn_save.visible = true;
- btn_save.disabled = false;
- btn_confirm.visible = false;
- btn_reqcancel.visible = false; // 2009.09.10 의뢰확정 후 의뢰취소는 하지 않기 때문에 의뢰취소버튼 비활성화 되도록 김숙인선생님 요청
- }else{
- btn_regnewpatient.attribute("text") = "신환등록" ;
- btn_regnewpatient.visible = true;
- btn_receipt.visible = true;
- //------(201011119) 경북대
- //btn_reqview.visible = true;
- //btn_reqtrns.visible = true;
- //------(201011119) 경북대
- btn_save.visible = true;
- btn_save.disabled = false;
- btn_confirm.visible = false;
- btn_reqcancel.visible = false; // 2009.09.10 의뢰확정 후 의뢰취소는 하지 않기 때문에 의뢰취소버튼 비활성화 되도록 김숙인선생님 요청
- }
- }else if(model.getValue("/root/send/prcsstat") == '4' ){
- searchListFlag = "3";
- if (rdo_kind.value == 1) { // 병원
- btn_regnewpatient.visible = false;
- btn_receipt.visible = false;
- //-----(20101119) 경북대
- //btn_reqview.visible = true;
- btn_reqtrns.visible = false;
- //-----(20101119) 경북대
- btn_save.visible = true;
- btn_save.disabled = false;
- btn_confirm.visible = false;
- btn_reqcancel.visible = false;
- }else if (rdo_kind.value == 2){ // 본당
- btn_regnewpatient.visible = false;
- btn_receipt.visible = false;
- //-----(20101119) 경북대
- //btn_reqview.visible = true;
- btn_reqtrns.visible = false;
- //-----(20101119) 경북대
- btn_save.visible = true;
- btn_save.disabled = false;
- btn_confirm.visible = false;
- btn_reqcancel.visible = false;
- }else{
- btn_regnewpatient.visible = false;
- btn_receipt.visible = false;
- //-----(20101119) 경북대
- //btn_reqview.visible = true;
- btn_reqtrns.visible = false;
- //-----(20101119) 경북대
- btn_save.visible = true;
- btn_save.disabled = false;
- btn_confirm.visible = false;
- btn_reqcancel.visible = false;
- }
- }
- fDisableEnableBtn(searchListFlag) ;
- if ( !fExcuteSearch(searchListFlag)){
- return;
- }
- // 7.일자별 방문(예정)건수 조회
- submit("TRMNF00107");
- // 달력에 일자별 방문(예정)건수 대입
- fDataDisplay();
- ]]>
- </script>
- </select1>
- <button id="btn_zoom" class="btn5_letter4" style="left:160px; top:81px; width:64px; height:19px; ">
- <caption>확대보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var attr_value ;
- if ( btn_zoom.attribute("text") == "확대보기" ) {
- btn_zoom.attribute("text") = "기본보기";
- caption1.attribute("height") = "26";
- //searchListFlag = "1"; // Default "1" - 당일방문예정자 리스트
- //searchListFlag = "2"; // "2" - 미확정 리스트
- //searchListFlag = "3"; // "3" - 종결환자리스트
- //searchListFlag = "4"; // "4" - 만료환자리스트
- //searchListFlag = "5"; // "5" - 진행환자리스트
- grd_patvisitlst.visible = false;
- grup_patinfo.visible= false;
- if(searchListFlag == "1" || searchListFlag == "5") {
- attr_value = "1193";
- grd_visitlst.attribute("left") = "0";
- grd_visitlst.attribute("width") = attr_value ;
- grd_patvisitlst.visible = false;
- } else if(searchListFlag == "2") {
- attr_value = "1193";
- grd_reqlist.attribute("left") = "0";
- grd_reqlist.attribute("width") = attr_value ;
- } else if(searchListFlag == "3") {
- attr_value = "1193";
- grd_endlist.attribute("left") = "0";
- grd_endlist.attribute("width") = attr_value ;
- } else if(searchListFlag == "4") {
- attr_value = "1193";
- grd_explist.attribute("left") = "0";
- grd_explist.attribute("width") = attr_value ;
- }
- /////line1.attribute("x2") = attr_value ;
- caption1.attribute("width") = attr_value ;
- /////line50.attribute("x2") = attr_value ;
- //model.refresh();
- } else {
- btn_zoom.attribute("text") = "확대보기";
- //attr_value = "442";
- attr_value = "235";
- /////line1.attribute("x2") = attr_value ;
- caption1.attribute("height") = "23" ;
- caption1.attribute("width") = attr_value ;
- /////line50.attribute("x2") = attr_value ;
- grd_patvisitlst.visible = true;
- grup_patinfo.visible= true;
- if(searchListFlag == "1" || searchListFlag == "5") {
- grd_visitlst.attribute("left") = "0";
- grd_visitlst.attribute("width") = attr_value ;
- } else if(searchListFlag == "2") {
- grd_reqlist.attribute("left") = "0";
- grd_reqlist.attribute("width") = attr_value ;
- } else if(searchListFlag == "3") {
- grd_endlist.attribute("left") = "0";
- grd_endlist.attribute("width") = attr_value ;
- } else if(searchListFlag == "4") {
- grd_explist.attribute("left") = "0";
- grd_explist.attribute("width") = attr_value ;
- }
- }
- //model.refresh();
- ]]>
- </script>
- </button>
- <caption id="cap_ym" style="left:1038px; top:81px; width:110px; height:20px; font-size:12pt; font-weight:bold; color:#3366ff; text-align:center; "/>
- <caption id="caption34" class="search_name" visibility="hidden" style="left:710px; top:51px; width:99px; height:17px; ">구분 :</caption>
- <output id="output23" ref="/root/main/procstat/procstatcnt/previsitlistcnt" class="output_search" style="left:215px; top:53px; width:50px; height:19px; text-align:center; "/>
- <output id="output1" ref="/root/main/procstat/procstatcnt/reqlistcnt" class="output_search" style="left:345px; top:53px; width:50px; height:19px; text-align:center; "/>
- <output id="output2" ref="/root/main/procstat/procstatcnt/visitlistcnt" class="output_search" style="left:460px; top:53px; width:50px; height:19px; text-align:center; "/>
- <output id="output3" ref="/root/main/procstat/procstatcnt/endlistcnt" class="output_search" style="left:572px; top:53px; width:50px; height:19px; text-align:center; "/>
- <button id="btn_regnewpatient" class="btn2_letter4" visibility="visible" style="left:484px; top:81px; width:64px; height:19px; ">
- <caption>신환등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- model.resetInstanceNode("/root/main/patinfo");
- model.resetInstanceNode("/root/main/newpatientinfo");
- model.refresh() ;
- grp_newpatientinput.visible = true;
- btn_savenewpat.disabled = false ;
- */
- var flag = model.getValue("/root/send/careflag");
- var kind = model.getValue("/root/send/kind");
- // 방문간호일 경우 방문간호환자등록 화면이 뜨도록 수정 2009.01.28 정경화 추가
- if ((model.getValue("/root/send/careflag") == 'V' ) &&(model.getValue("/root/send/kind") == '1' )){
- var xpos = window.width / 2;
- var ypos = window.height / 2;
- modal("SPMNF00600", "", "", "", "SPMNF00600", "/root/main/patinfo/patinforesult", "/root/temp/transinfo/parameter");
- //alert('a');
- //0. 진행상태 : 당일방문예정, 미확정, 진행, 종결 카운트 조회
- submit("TRMNF00115");
- //본당인 경우는 신규등록 팝업 화면 뜨도록
- } else {
- model.resetInstanceNode("/root/main/patinfo");
- model.resetInstanceNode("/root/main/newpatientinfo");
- model.refresh() ;
- grp_newpatientinput.visible = true;
- btn_savenewpat.disabled = false ;
- //alert('b');
- }
- //alert('c');
- ]]>
- </script>
- </button>
- <input id="ipt_pidsearch" ref="/root/main/condition/pid" class="input_search" autonext="false" style="left:56px; top:108px; width:66px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == 13) {
- inputEnterKey("btn_pid", "DOMActivate");
- model.resetInstanceNode("/root/main/condition/pid");
- ipt_pidsearch.refresh();
- }
- ]]>
- </script>
- </input>
- <button id="btn_pid" class="icon_search" visibility="hidden" style="left:106px; top:109px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //searchListFlag = "1"; // Default "1" - 당일방문예정자 리스트
- //searchListFlag = "2"; // "2" - 미확정 리스트
- //searchListFlag = "3"; // "3" - 종결환자리스트
- //searchListFlag = "4"; // "4" - 만료환자리스트
- //searchListFlag = "5"; // "5" - 진행환자리스트
- var sGrid = "";
- if ( searchListFlag == "1" || searchListFlag == "5" ){
- sGrid = grd_visitlst
- }
- if ( searchListFlag == "2" ){
- sGrid = grd_reqlist
- }
- if ( searchListFlag == "3" ){
- sGrid = grd_endlist
- }
- if ( searchListFlag == "4" ){
- sGrid = grd_explist
- }
- var row = fFindRow(model.getValue("/root/main/condition/pid"), sGrid.colRef("pid"));
- sGrid.topRow = row;
- if(row > 0) {
- ipt_pidsearch.value = "";
- ipt_patnm.value = "";
- }
- //model.refresh();
- ]]>
- </script>
- </button>
- <line id="line7" class="line_2" style="x1:-1px; y1:73px; x2:297px; y2:73px; "/>
- <line id="line9" class="line_2" style="x1:-1px; y1:49px; x2:297px; y2:49px; "/>
- <select1 id="rdo_careflag" ref="/root/send/careflag" class="radio_search" visibility="hidden" appearance="full" cols="3" rows="1" overflow="visible" style="left:775px; top:51px; width:190px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/M0524/M0524">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 방문간호일 경우 신환등록버튼 활성화 2009.01.28 정경화 추가
- /**** 구분선택시 신환등록, 방문계약 버튼 컨트롤 수정 2009.06.17 hhm
- 병원 - 전체: 버튼없음
- 병원- 가정간호 : 버튼 없음
- 병원 - 방문간호 : 방문계약
- 본당 - 전체: 신환등록
- 본당 - 가정간호: 신환등록
- 본당 - 방문간호: 버튼없음
- **********/
- fSelCareflag();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <button id="btn_dzoom" class="btn5_letter4" style="left:406px; top:81px; width:64px; height:19px; ">
- <caption>확대보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var attr_value ;
- if ( btn_dzoom.attribute("text") == "확대보기" ) {
- btn_dzoom.attribute("text") = "기본보기";
- caption11.attribute("height") = "26";
- attr_value = "956";
- //attr_value = "1012";
- grup_patinfo.visible= false;
- grd_patvisitlst.attribute("left") = "236";
- grd_patvisitlst.attribute("width") = attr_value ;
- caption11.attribute("width") = attr_value ;
- } else {
- btn_dzoom.attribute("text") = "확대보기";
- attr_value = "235";
- grup_patinfo.visible= true;
- caption11.attribute("height") = "23" ;
- caption11.attribute("width") = attr_value ;
- grd_patvisitlst.attribute("left") = "236";
- grd_patvisitlst.attribute("width") = attr_value ;
- }
- //model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption11" class="cell_1" style="left:236px; top:106px; width:232px; height:23px; text-align:center; "/>
- <input id="ipt_pid" ref="/root/main/visitinfo/pid" class="input_default" disabled="true" style="left:240px; top:108px; width:81px; height:19px; text-align:center; "/>
- <output id="opt_patname" ref="/root/main/visitinfo/hngnm" class="output_fix" style="left:326px; top:108px; width:73px; height:19px; text-align:center; "/>
- <output id="opt_sexage" ref="/root/main/visitinfo/sex" class="output_fix" style="left:404px; top:108px; width:60px; height:19px; text-align:center; "/>
- <caption id="cap_careflagnm" visibility="hidden" style="left:899px; top:83px; width:115px; height:14px; font-weight:bold; vertical-align:middle; ">가정간호/방문간호</caption>
- <datagrid id="grd_endlist" nodeset="/root/main/grd_endlist/endlist" class="datagrid2" visibility="hidden" autoresize="true" caption="구분^진행상태^등록번호^환자명^S/A^진단명^진료과^진료의^의뢰일^종결^caption1^본당^분류^caption2^caption3" colsep="^" colwidth="30, 50, 60, 55, 40, 42, 120, 100, 120, 70, 100, 100, 54, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" explorerbar="sort" mergecellsfixedrows="bycolrec" multitotal="false" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:130px; width:235px; height:650px; vertical-align:middle; ">
- <col ref="careflag" style="text-align:center; "/>
- <col ref="procstatus" visibility="hidden" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:right; "/>
- <col ref="sex" style="text-align:center; "/>
- <col ref="diaghngnm" visibility="hidden" style="text-align:left; "/>
- <col ref="reqdeptnm" visibility="hidden" style="text-align:center; "/>
- <col ref="reqdrnm" visibility="hidden" style="text-align:center; "/>
- <col ref="reqdd" visibility="hidden" format="yyyy-mm-dd" style="left:517px; top:32px; width:120px; height:23px; text-align:center; "/>
- <col ref="endreason" visibility="hidden" style="text-align:center; "/>
- <col ref="enddd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="churchnm" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/item/church/churchlist">
- <label ref="churchnm"/>
- <value ref="churchcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="kind" visibility="hidden" style="text-align:center; "/>
- <col ref="fromdd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="visitcnt" visibility="hidden" style="text-align:center; "/>
- <col ref="diagcd" visibility="hidden" style="text-align:center; "/>
- <col ref="reqdeptcd" visibility="hidden" style="text-align:center; "/>
- <col ref="reqdrid" visibility="hidden" style="text-align:center; "/>
- <col ref="formrecseq" visibility="hidden" style="text-align:center; "/>
- <col ref="rereqyn" visibility="hidden" style="text-align:center; "/>
- <col ref="patcareflag" visibility="hidden" style="text-align:center; "/>
- <col ref="orddd" visibility="hidden" style="text-align:center; "/>
- <col ref="cretno" visibility="hidden" style="text-align:center; "/>
- <col ref="vorddd" visibility="hidden" style="text-align:center; "/>
- <col ref="ordtype" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isDataCell()) {
- delPatientInfos(); //화면상단정보 삭제
- fClear();
- var cur_row = grd_endlist.row;
- if ( cur_row > 0 ) {
- model.setValue("/root/send/pid", model.getValue("/root/main/grd_endlist/endlist["+cur_row+"]/pid"));
- model.setValue("/root/send/inptdt", model.getValue("/root/main/grd_endlist/endlist["+cur_row+"]/inptdt"));
- model.setValue("/root/send/instcd", model.getValue("/root/main/grd_endlist/endlist["+cur_row+"]/instcd"));
- model.setValue("/root/send/patcareflag", model.getValue("/root/main/grd_endlist/endlist["+cur_row+"]/patcareflag"));
- model.setValue("/root/send/vorddd", model.getValue("/root/main/grd_endlist/endlist["+cur_row+"]/orddd"));
- model.setValue("/root/main/visitinfo/pid", model.getValue("/root/main/grd_endlist/endlist["+cur_row+"]/pid"));
- model.setValue("/root/main/visitinfo/inptdt", model.getValue("/root/main/grd_endlist/endlist["+cur_row+"]/inptdt"));
- model.setValue("/root/main/visitinfo/instcd", model.getValue("/root/main/grd_endlist/endlist["+cur_row+"]/instcd"));
- model.setValue("/root/main/visitinfo/hngnm", model.getValue("/root/main/grd_endlist/endlist["+cur_row+"]/hngnm"));
- model.setValue("/root/main/visitinfo/sex", model.getValue("/root/main/grd_endlist/endlist["+cur_row+"]/sex"));
- }
- // 환자선택시 환자별 histoy리스트 조회
- submit("TRMNF00131");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- /*
- setPopupMenu("grd_endlist", false, "/root/codedata/popupmenu/endpaper/item", "name", "func");
- */
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_endlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="button1" class="btn2_letter5" visibility="hidden" style="left:1037px; top:57px; width:75px; height:19px; ">
- <caption>진단명 생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOnClickDiagCreate();
- ]]>
- </script>
- </button>
- <button id="btn_patsearch" class="icon_search" style="left:245px; top:85px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[modal("SMMNF00700", "", "", "", "SMMNF00700", "", "");]]>
- </script>
- </button>
- <group id="grup_patinfo" style="left:470px; top:100px; width:720px; height:675px; ">
- <output id="output29" ref="/root/main/patinfo/patinforesult/insucd" class="output_fix" style="left:169px; top:119px; width:57px; height:19px; text-align:center; "/>
- <output id="output28" ref="/root/main/patinfo/patinforesult/insukind" class="output_fix" style="left:169px; top:78px; width:57px; height:19px; text-align:center; "/>
- <caption id="caption56" class="cell_1" style="left:53px; top:119px; width:114px; height:20px; font-family:돋움; text-align:left; vertical-align:middle; ">보험자기호</caption>
- <caption id="caption55" class="cell_1" style="left:53px; top:77px; width:114px; height:20px; font-family:돋움; text-align:left; vertical-align:middle; ">보험유형</caption>
- <caption id="caption66" class="cell_1" style="left:53px; top:161px; width:114px; height:20px; font-family:돋움; text-align:left; vertical-align:middle; ">피보험자 주민번호</caption>
- <caption id="caption65" class="cell_1" style="left:53px; top:140px; width:114px; height:20px; font-family:돋움; text-align:left; vertical-align:middle; ">피보관계/피보성명</caption>
- <output id="output36" ref="/root/main/patinfo/patinforesult/insucdnm" class="output_fix" style="left:229px; top:119px; width:186px; height:19px; text-align:center; "/>
- <caption id="caption64" class="cell_1" style="left:53px; top:98px; width:114px; height:20px; font-family:돋움; text-align:left; vertical-align:middle; ">보험증번호</caption>
- <output id="output35" ref="/root/main/patinfo/patinforesult/insukindnm" class="output_fix" style="left:229px; top:78px; width:186px; height:19px; text-align:center; "/>
- <output id="output34" ref="/root/main/patinfo/patinforesult/insdrrgstno" class="output_fix" style="left:169px; top:161px; width:246px; height:19px; text-align:center; "/>
- <output id="output33" ref="/root/main/patinfo/patinforesult/insdrelanm" class="output_fix" style="left:229px; top:140px; width:58px; height:19px; text-align:center; "/>
- <line id="line8" class="line_3" style="x1:419px; y1:479px; x2:715px; y2:479px; "/>
- <caption id="caption92" class="cell_1" style="left:603px; top:529px; width:33px; height:71px; font-family:돋움; text-align:center; vertical-align:middle; ">
- <![CDATA[방
- 문
- 간
- 호]]>
- </caption>
- <caption id="caption70" style="left:698px; top:341px; width:17px; height:19px; vertical-align:middle; ">회</caption>
- <output id="output4" ref="/root/main/patinfo/outmedinfo/lusernm" class="output_fix" style="left:634px; top:620px; width:71px; height:19px; text-align:center; "/>
- <output id="output41" ref="/root/main/patinfo/outmedinfo/fusernm" class="output_fix" style="left:634px; top:645px; width:71px; height:19px; text-align:center; "/>
- <input id="ipt_hvisitpridtimes" ref="/root/main/visitinfo/visitpridtimes" class="input_default" style="left:672px; top:298px; width:25px; height:19px; text-align:right; "/>
- <output id="output30" ref="/root/main/patinfo/patinforesult/insdnm" class="output_fix" style="left:290px; top:140px; width:125px; height:19px; text-align:center; "/>
- <output id="output20" ref="/root/main/patinfo/visitaccount/monvisitcnt" class="output_fix" style="left:556px; top:530px; width:42px; height:19px; text-align:right; "/>
- <output id="output5" ref="/root/main/patinfo/visitaccount/totvisitcnt" class="output_fix" style="left:556px; top:578px; width:42px; height:19px; text-align:right; "/>
- <caption id="caption93" class="cell_1" style="left:637px; top:529px; width:33px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">당월</caption>
- <button id="btn_savecycle" class="btn5_letter2" style="left:668px; top:270px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 방문주기 저장(UPDATE)
- submit("TXMNF00101");
- ]]>
- </script>
- </button>
- <select id="chk_vdw" ref="/root/main/visitinfo/vvisitdwflag" overflow="visible" appearance="full" cols="6" rows="1" style="left:522px; top:362px; width:189px; height:17px; border-style:none; ">
- <choices>
- <item>
- <label>월</label>
- <value>1</value>
- </item>
- <item>
- <label>화</label>
- <value>2</value>
- </item>
- <item>
- <label>수</label>
- <value>3</value>
- </item>
- <item>
- <label>목</label>
- <value>4</value>
- </item>
- <item>
- <label>금</label>
- <value>5</value>
- </item>
- <item>
- <label>토</label>
- <value>6</value>
- </item>
- </choices>
- </select>
- <output id="output31" ref="/root/main/patinfo/patinforesult/insuno" class="output_fix" style="left:169px; top:98px; width:246px; height:19px; text-align:center; "/>
- <input id="input8" ref="/root/main/patinfo/patinforesult/cphone2" class="input_default" maxlength="13" style="left:319px; top:54px; width:97px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if( !isNull(model.getValue("/root/main/patinfo/patinforesult/cphone2")) && model.getValue("/root/main/patinfo/patinforesult/cphone2") != "-") {
- if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/cphone2")) < 10 ||
- getStringLength(model.getValue("/root/main/patinfo/patinforesult/cphone2")) > 13 ||
- isMobileTelNo(model.getValue("/root/main/patinfo/patinforesult/cphone2").substr(0, 2)) == false) {
- messageBox("올바른 휴대전화번호를","C001"); // 입력하십시오!
- model.setFocus("input8") ;
- return ;
- }
- if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/cphone2")) == 10) {
- model.setValue("/root/main/patinfo/patinforesult/cphone2", input8.value.substr(0,3) + "-" +
- input8.value.substr(3,3) + "-" +
- input8.value.substr(6,4)) ;
- } else if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/cphone2")) == 11) {
- model.setValue("/root/main/patinfo/patinforesult/cphone2", input8.value.substr(0,3) + "-" +
- input8.value.substr(3,4) + "-" +
- input8.value.substr(7,4)) ;
- }
- //model.refresh();
- input8.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if((event.keyCode <48 || (event.keyCode > 57 && event.keyCode < 96 ) || event.keyCode > 105) && (event.keyCode != 8 && event.keyCode != 13 && event.keyCode != 46))
- {
- messageBox("숫자만","C001"); // 입력하십시오!
- model.setFocus("input8") ;
- return ;
- }
- ]]>
- </script>
- </input>
- <output id="output10" ref="/root/main/patinfo/visitdate/vfirstvisitdd" class="output_fix" format="yyyy-mm-dd" style="left:637px; top:482px; width:75px; height:19px; text-align:center; "/>
- <output id="output21" ref="/root/main/patinfo/visitaccount/vmonvisitcnt" class="output_fix" style="left:672px; top:530px; width:40px; height:19px; text-align:right; "/>
- <caption id="caption94" class="cell_1" style="left:637px; top:553px; width:33px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">당해</caption>
- <output id="output32" ref="/root/main/patinfo/patinforesult/insdrela" class="output_fix" style="left:169px; top:140px; width:58px; height:19px; text-align:center; "/>
- <input id="input9" ref="/root/main/patinfo/patinforesult/cphone1owner" class="input_default" style="left:53px; top:30px; width:50px; height:19px; "/>
- <datagrid id="grd_patinsukind" nodeset="/root/main/patinfo/patinsukind" class="datagrid2" autoresize="true" caption="보험유형^보험유형^보험증번호^보험자기호^보험자기호^피보관계^피보관계^피보성명^피보험자 주민번호^일련번호" colsep="^" colwidth="19, 56, 78, 36, 62, 16, 41, 57, 111, 50" dataheight="25" explorerbar="sort" mergecellsfixedrows="bycolrec" multitotal="false" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:53px; top:77px; width:364px; height:104px; vertical-align:middle; ">
- <col ref="insukind" visibility="visible" style="text-align:center; "/>
- <col ref="insukindnm" visibility="visible" style="left:55px; top:32px; width:70px; height:23px; text-align:center; "/>
- <col ref="insuno" visibility="visible" style="text-align:center; "/>
- <col ref="insucd" visibility="visible" style="text-align:center; "/>
- <col ref="insucdnm" style="text-align:center; "/>
- <col ref="insdrela" style="text-align:center; "/>
- <col ref="insdrelanm" style="text-align:center; "/>
- <col ref="insdnm" style="text-align:center; "/>
- <col ref="insdrrgstno" visibility="visible" style="text-align:left; "/>
- <col ref="seqno" visibility="hidden"/>
- </datagrid>
- <caption id="caption84" class="cell_1" style="left:487px; top:505px; width:33px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">가정</caption>
- <caption id="caption95" class="cell_1" style="left:637px; top:577px; width:33px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">총</caption>
- <line id="line10" class="line_1" style="x1:0px; y1:613px; x2:705px; y2:613px; "/>
- <caption id="caption40" class="cell_1" style="left:175px; top:619px; width:96px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">만료일</caption>
- <output id="output11" ref="/root/main/patinfo/reqinfo/lastreqdd" class="output_fix" format="yyyy-mm-dd" style="left:274px; top:645px; width:95px; height:19px; text-align:center; "/>
- <input id="input30" ref="/root/main/patinfo/patinforesult/address" class="input_default" style="left:167px; top:7px; width:249px; height:19px; text-align:left; "/>
- <caption id="caption41" class="cell_1" style="left:419px; top:529px; width:67px; height:71px; font-family:돋움; text-align:center; vertical-align:middle; ">
- <![CDATA[누적
- 방문횟수]]>
- </caption>
- <caption id="caption85" class="cell_1" style="left:487px; top:481px; width:33px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">가정</caption>
- <output id="output12" ref="/root/main/patinfo/reqinfo/firstreqdd" class="output_fix" format="yyyy-mm-dd" style="left:77px; top:645px; width:95px; height:19px; text-align:center; "/>
- <line id="line12" class="line_3" style="x1:487px; y1:337px; x2:711px; y2:337px; "/>
- <caption id="caption86" class="cell_1" style="left:603px; top:505px; width:33px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">방문</caption>
- <output id="output13" ref="/root/main/patinfo/reqinfo/enddd" class="output_fix" format="yyyy-mm-dd" style="left:274px; top:620px; width:95px; height:19px; text-align:center; "/>
- <caption id="caption31" style="left:698px; top:298px; width:17px; height:19px; vertical-align:middle; ">회</caption>
- <input id="input10" ref="/root/main/patinfo/patinforesult/cphone2owner" class="input_default" style="left:53px; top:54px; width:50px; height:19px; "/>
- <caption id="caption87" class="cell_1" style="left:603px; top:481px; width:33px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">방문</caption>
- <input id="input11" ref="/root/main/patinfo/patinforesult/zipcd2" class="input_default" style="left:114px; top:7px; width:50px; height:19px; "/>
- <caption id="caption10" style="left:104px; top:7px; width:10px; height:20px; ">-</caption>
- <caption id="caption21" class="cell_1" style="left:0px; top:5px; width:52px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">주소</caption>
- <output id="output14" ref="/root/main/patinfo/outmedinfo/lorddd" class="output_fix" format="yyyy-mm-dd" style="left:471px; top:620px; width:80px; height:19px; text-align:center; "/>
- <output id="output47" ref="/root/main/patinfo/outmedinfo/fdepthngnm" class="output_fix" style="left:554px; top:645px; width:77px; height:19px; text-align:center; "/>
- <line id="line13" class="line_3" style="x1:0px; y1:668px; x2:705px; y2:668px; "/>
- <select id="chk_hdw" ref="/root/main/visitinfo/visitdwflag" overflow="visible" appearance="full" cols="6" rows="1" style="left:522px; top:319px; width:189px; height:17px; border-style:none; ">
- <choices>
- <item>
- <label>월</label>
- <value>1</value>
- </item>
- <item>
- <label>화</label>
- <value>2</value>
- </item>
- <item>
- <label>수</label>
- <value>3</value>
- </item>
- <item>
- <label>목</label>
- <value>4</value>
- </item>
- <item>
- <label>금</label>
- <value>5</value>
- </item>
- <item>
- <label>토</label>
- <value>6</value>
- </item>
- </choices>
- </select>
- <caption id="caption32" class="cell_1" style="left:487px; top:295px; width:33px; height:42px; font-family:돋움; text-align:left; vertical-align:middle; ">가정</caption>
- <caption id="caption88" class="cell_1" style="left:487px; top:529px; width:33px; height:71px; font-family:돋움; text-align:center; vertical-align:middle; ">
- <![CDATA[가
- 정
- 간
- 호]]>
- </caption>
- <output id="output37" ref="/root/main/patinfo/visitaccount/vtotvisitcnt" class="output_fix" style="left:672px; top:578px; width:40px; height:19px; text-align:right; "/>
- <caption id="caption44" class="cell_1" style="left:372px; top:619px; width:96px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">최종외래진료일</caption>
- <datagrid id="grd_previsitlist" nodeset="/root/main/grd_previsitlist/previsitlist" class="datagrid0" visibility="hidden" scroll="vertical" caption="등록번호^방문예정일^입력일시^기관코드^간호구분명^간호구분" colsep="^" colwidth="50, 90, 70, 15, 30, 30" dataheight="25" mergecellsfixedrows="bycolrec" multitotal="false" rowheader="25" rowheight="32" rowsep="|" style="left:487px; top:381px; width:227px; height:97px; vertical-align:middle; ">
- <col ref="pid" style="text-align:center; "/>
- <col ref="visitdd" type="inputdate"/>
- <col ref="inptdt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="instcd" style="text-align:center; "/>
- <col ref="careflagnm" style="text-align:center; "/>
- <col ref="patcareflag" style="text-align:center; "/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_previsitlist", false, "/root/codedata/popupmenu/grid/item", "name", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- </datagrid>
- <output id="output15" ref="/root/main/patinfo/outmedinfo/forddd" class="output_fix" format="yyyy-mm-dd" style="left:471px; top:645px; width:80px; height:19px; text-align:center; "/>
- <output id="output48" ref="/root/main/patinfo/outmedinfo/ldepthngnm" class="output_fix" style="left:554px; top:620px; width:77px; height:19px; text-align:center; "/>
- <caption id="caption22" class="cell_1" style="left:105px; top:29px; width:59px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">전화번호</caption>
- <caption id="caption33" class="cell_1" style="left:0px; top:29px; width:52px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">연락처1</caption>
- <output id="output27" ref="/root/main/patinfo/visitdate/vlastvisitdd" class="output_fix" format="yyyy-mm-dd" style="left:637px; top:506px; width:75px; height:19px; text-align:center; "/>
- <caption id="caption89" class="cell_1" style="left:521px; top:529px; width:33px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">당월</caption>
- <output id="output38" ref="/root/main/patinfo/visitaccount/vyearvisitcnt" class="output_fix" style="left:672px; top:554px; width:40px; height:19px; text-align:right; "/>
- <multilinegrid id="grd_calendar" nodeset="/root/hidden/calendar/weeklist/list" class="gridcalendar" scroll="autovscroll" autoresize="false" caption="일^월^화^수^목^금^토" colsep="^" colwidth="40, 42, 42, 42, 42, 42, 40" extendlastcol="noscroll" rowsep="|" selectionmode="free" mergecellsfixedrows="bycolrec" style="left:418px; top:5px; width:296px; height:252px; vertical-align:middle; ">
- <row>
- <col class="color_sun" ref="sun" style="text-align:left; border-bottom-width:0px; "/>
- <col ref="mon" style="text-align:left; border-bottom-width:0px; "/>
- <col ref="tue" style="text-align:left; border-bottom-width:0px; "/>
- <col ref="wed" style="text-align:left; border-bottom-width:0px; "/>
- <col ref="thu" style="text-align:left; border-bottom-width:0px; "/>
- <col ref="fri" style="text-align:left; border-bottom-width:0px; "/>
- <col class="color_sat" ref="sat" style="text-align:left; border-bottom-width:0px; "/>
- </row>
- <row>
- <col ref="sun_memo" type="input" style="border-top-width:0px; "/>
- <col ref="mon_memo" type="input" style="border-top-width:0px; "/>
- <col ref="tue_memo" type="input" style="border-top-width:0px; "/>
- <col ref="wed_memo" type="input" style="border-top-width:0px; "/>
- <col ref="thu_memo" type="input" style="border-top-width:0px; "/>
- <col ref="fri_memo" type="input" style="border-top-width:0px; "/>
- <col ref="sat_memo" type="input" style="border-top-width:0px; "/>
- </row>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_calendar.isCell(event.target) && grd_calendar.row >= grd_calendar.fixedRows) {
- model.setValue("/root/send/pid", "");
- model.setValue("/root/send/inptdt", "");
- model.setValue("/root/send/instcd", "");
- //model.refresh();
- //setCellColor(grd_calendar);
- var row = grd_calendar.mouseRow;
- var col = grd_calendar.mouseCol;
- var newcol;
- var calDate;
- var baseDate;
- var searchDate;
- baseDate = model.getValue("/root/send/visitdd");
- if(col >=7) {
- newcol = col - 7;
- } else {
- newcol = col;
- }
- calDate = grd_calendar.valueMatrix(row, newcol);
- if(calDate.length < 2) {
- searchDate = baseDate.substr(0, 6) + "0" + calDate;
- } else {
- searchDate = baseDate.substr(0, 6) + calDate;
- }
- //alert("searchDate ::: " + searchDate);
- model.setValue("/root/send/visitdd", searchDate);
- //model.refresh();
- fClear();
- fDisableEnableBtn(searchListFlag) ;
- if ( !fExcuteSearch(searchListFlag)){
- return;
- }
- if(searchListFlag == "4") {
- // 7.일자별 만료건수 조회
- submit("TRMNF00121");
- } else {
- // 7.일자별 방문(예정)건수 조회
- submit("TRMNF00107");
- }
- // 달력에 일자별 방문(예정)건수 대입
- //fDataDisplayPat();
- fDataDisplay();
- model.removeNodeset("/root/main/procstat/procstatcnt");
- //model.refresh();
- //0. 진행상태 : 당일방문예정, 미확정, 진행, 종결 카운트 조회
- submit("TRMNF00115");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- //setCellColor(grd_calendar);
- ]]>
- </script>
- <script type="javascript" ev:event="oncolchanged">
- <![CDATA[
- //setCellColor(grd_calendar);
- ]]>
- </script>
- </multilinegrid>
- <line id="line15" class="line_1" style="x1:419px; y1:0px; x2:712px; y2:0px; "/>
- <caption id="caption45" class="cell_1" style="left:372px; top:643px; width:96px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">최근외래예약일</caption>
- <caption id="caption23" class="cell_1" style="left:105px; top:53px; width:59px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">전화번호</caption>
- <caption id="caption78" class="cell_1" style="left:0px; top:77px; width:52px; height:104px; font-family:돋움; text-align:center; vertical-align:middle; ">보험</caption>
- <output id="output17" ref="/root/main/patinfo/visitdate/firstvisitdd" class="output_fix" format="yyyy-mm-dd" style="left:521px; top:482px; width:77px; height:19px; text-align:center; "/>
- <caption id="caption35" class="cell_1" style="left:0px; top:643px; width:75px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">최초 의뢰일</caption>
- <caption id="caption24" class="cell_1" style="left:259px; top:29px; width:59px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">휴대전화</caption>
- <caption id="caption47" class="cell_1" style="left:419px; top:505px; width:67px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">최근방문일</caption>
- <output id="output18" ref="/root/main/patinfo/visitaccount/yearvisitcnt" class="output_fix" style="left:556px; top:554px; width:42px; height:19px; text-align:right; "/>
- <caption id="caption14" class="cell_1" style="left:419px; top:295px; width:67px; height:85px; font-family:돋움; text-align:left; vertical-align:middle; ">방문주기</caption>
- <caption id="caption5" class="cell_1" style="left:0px; top:619px; width:75px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">의뢰/지시일</caption>
- <caption id="caption25" class="cell_1" style="left:259px; top:53px; width:59px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">휴대전화</caption>
- <caption id="caption69" class="cell_1" style="left:0px; top:53px; width:52px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">연락처2</caption>
- <caption id="caption48" class="cell_1" style="left:419px; top:481px; width:67px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">최초방문일</caption>
- <output id="output19" ref="/root/main/patinfo/visitdate/lastvisitdd" class="output_fix" format="yyyy-mm-dd" style="left:521px; top:506px; width:77px; height:19px; text-align:center; "/>
- <input id="input1" ref="/root/main/patinfo/patinforesult/zipcd1" class="input_default" style="left:53px; top:7px; width:50px; height:19px; "/>
- <select1 id="rdo_vvisitprid" ref="/root/main/visitinfo/vvisitpridflag" appearance="full" cols="3" rows="1" overflow="visible" style="left:522px; top:340px; width:140px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>월1회</label>
- <value>1</value>
- </item>
- <item>
- <label>격주</label>
- <value>2</value>
- </item>
- <item>
- <label>주당</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (rdo_vvisitprid.value == 3) {
- ipt_vvisitpridtimes.value = "";
- ipt_vvisitpridtimes.disabled = false;
- } else {
- ipt_vvisitpridtimes.value = "";
- ipt_vvisitpridtimes.disabled = true;
- }
- ]]>
- </script>
- </select1>
- <line id="line3" class="line_1" style="x1:419px; y1:290px; x2:715px; y2:290px; "/>
- <caption id="caption7" class="cell_1" style="left:419px; top:381px; width:67px; height:97px; font-family:돋움; vertical-align:middle; ">방문예정일</caption>
- <input id="ipt_vvisitpridtimes" ref="/root/main/visitinfo/vvisitpridtimes" class="input_default" style="left:672px; top:341px; width:25px; height:19px; text-align:right; "/>
- <select1 id="rdo_hvisitprid" ref="/root/main/visitinfo/visitpridflag" appearance="full" cols="3" rows="1" overflow="visible" style="left:522px; top:297px; width:140px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>월1회</label>
- <value>1</value>
- </item>
- <item>
- <label>격주</label>
- <value>2</value>
- </item>
- <item>
- <label>주당</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (rdo_hvisitprid.value == 3) {
- ipt_hvisitpridtimes.value = "";
- ipt_hvisitpridtimes.disabled = false;
- } else {
- ipt_hvisitpridtimes.value = "";
- ipt_hvisitpridtimes.disabled = true;
- }
- ]]>
- </script>
- </select1>
- <datagrid id="grd_viewprevisitlist" nodeset="/root/main/grd_viewprevisitlist/previsitlist" class="datagrid0" colsep="^" colwidth="70, 35, 70, 35" dataheight="25" mergecellsfixedrows="bycolrec" multitotal="false" rowheader="25" rowheight="32" rowsep="|" selectionmode="free" style="left:487px; top:381px; width:226px; height:97px; vertical-align:middle; ">
- <col ref="visitdd1" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="visitflag1" style="text-align:center; "/>
- <col ref="visitdd2" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="visitflag2" style="text-align:center; "/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- model.setFocus("grd_viewprevisitlist");
- if(event.button == 3 && getStringLength(model.getValue("/root/main/visitinfo/pid")) != 0) {
- if(searchListFlag == "2" || searchListFlag == "3" || searchListFlag == "4") {
- messageBox("가정간호 미확정, 기간만료 또는 종결된 환자는 방문정보를 입력", "E001") ; // 할 수 없습니다.
- return ;
- }
- window.setPopupMenu(true, "/root/codedata/popupmenu/grid/item", "name", "func", false);
- gRow = grd_viewprevisitlist.mouseRow;
- gCol = grd_viewprevisitlist.mouseCol;
- //alert('1:'+gRow+'/'+gCol);
- // 간호구분위해 4개에서 2개로 수정
- if(gRow == 0) {
- if(gCol == 0 || gCol == 1) {
- gRow = gRow+1; // grd_previsitlist 의 Row로 환산
- } else if(gCol == 2 || gCol == 3) {
- gRow = gRow+2; // grd_previsitlist 의 Row로 환산
- }
- } else {
- if(gCol == 0 || gCol == 1) {
- gRow = ( gRow * 2 )+1;
- } else if(gCol == 2 || gCol == 3) {
- gRow = ( gRow * 2 )+2;
- }
- }
- //alert('2:'+gRow);
- gPid = model.getValue("/root/main/grd_previsitlist/previsitlist[" + gRow + "]/pid");
- gInptdt = model.getValue("/root/main/grd_previsitlist/previsitlist[" + gRow + "]/inptdt");
- gInstcd = model.getValue("/root/main/grd_previsitlist/previsitlist[" + gRow + "]/instcd");
- gVisitdd = model.getValue("/root/main/grd_previsitlist/previsitlist[" + gRow + "]/visitdd");
- gPatcareflag = model.getValue("/root/main/grd_previsitlist/previsitlist[" + gRow + "]/patcareflag");
- }
- //alert(gVisitdd);
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- </datagrid>
- <caption id="caption39" class="cell_1" style="left:175px; top:643px; width:96px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">최종의뢰일</caption>
- <input id="input3" ref="/root/main/patinfo/patinforesult/telno1" class="input_default" maxlength="13" style="left:165px; top:30px; width:90px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if( !isNull(model.getValue("/root/main/patinfo/patinforesult/telno1")) && model.getValue("/root/main/patinfo/patinforesult/telno1") != "-") {
- if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/telno1")) < 9 ||
- getStringLength(model.getValue("/root/main/patinfo/patinforesult/telno1")) > 13 ||
- isHomeTelNo(model.getValue("/root/main/patinfo/patinforesult/telno1").substr(0, 3)) == false) {
- messageBox("지역번호 포함하여 올바른 전화번호를","C001"); // 입력하십시오!
- model.setFocus("input3") ;
- return ;
- }
- if(model.getValue("/root/main/patinfo/patinforesult/telno1").substr(0, 2) == "02") { // 서울 지역번호
- if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/telno1")) == 9) {
- model.setValue("/root/main/patinfo/patinforesult/telno1", input3.value.substr(0,2) + "-" +
- input3.value.substr(2,3) + "-" +
- input3.value.substr(5,4)) ;
- } else if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/telno1")) == 10) {
- model.setValue("/root/main/patinfo/patinforesult/telno1", input3.value.substr(0,2) + "-" +
- input3.value.substr(2,4) + "-" +
- input3.value.substr(6,4)) ;
- }
- } else {
- if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/telno1")) == 10) {
- model.setValue("/root/main/patinfo/patinforesult/telno1", input3.value.substr(0,3) + "-" +
- input3.value.substr(3,3) + "-" +
- input3.value.substr(6,4)) ;
- } else if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/telno1")) == 11) {
- model.setValue("/root/main/patinfo/patinforesult/telno1", input3.value.substr(0,3) + "-" +
- input3.value.substr(3,4) + "-" +
- input3.value.substr(7,4)) ;
- }
- }
- input3.refresh();
- //model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if((event.keyCode <48 || (event.keyCode > 57 && event.keyCode < 96 ) || event.keyCode > 105) && (event.keyCode != 8 && event.keyCode != 13 && event.keyCode != 46)) {
- messageBox("숫자만","C001"); // 입력하십시오!
- model.setFocus("input3") ;
- return ;
- }
- ]]>
- </script>
- </input>
- <line id="line4" class="line_3" style="x1:418px; y1:257px; x2:714px; y2:257px; "/>
- <line id="line5" class="line_3" style="x1:419px; y1:600px; x2:713px; y2:600px; "/>
- <caption id="caption9" class="tit_2" style="left:419px; top:273px; width:157px; height:13px; ">
- <![CDATA[개별 가정간호 방문정보]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fPreVisitDDInsert();
- ]]>
- </script>
- </caption>
- <caption id="caption18" class="cell_1" style="left:487px; top:338px; width:33px; height:42px; font-family:돋움; text-align:left; vertical-align:middle; ">방문</caption>
- <input id="input4" ref="/root/main/patinfo/patinforesult/telno2" class="input_default" maxlength="13" style="left:165px; top:54px; width:90px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if( !isNull(model.getValue("/root/main/patinfo/patinforesult/telno2")) && model.getValue("/root/main/patinfo/patinforesult/telno2") != "-") {
- if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/telno2")) < 9 ||
- getStringLength(model.getValue("/root/main/patinfo/patinforesult/telno2")) > 13 ||
- isHomeTelNo(model.getValue("/root/main/patinfo/patinforesult/telno2").substr(0, 3)) == false) {
- messageBox("지역번호 포함하여 올바른 전화번호를","C001"); // 입력하십시오!
- model.setFocus("input4") ;
- return ;
- }
- if(model.getValue("/root/main/patinfo/patinforesult/telno2").substr(0, 2) == "02") { // 서울 지역번호
- if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/telno2")) == 9) {
- model.setValue("/root/main/patinfo/patinforesult/telno2", input4.value.substr(0,2) + "-" +
- input4.value.substr(2,3) + "-" +
- input4.value.substr(5,4)) ;
- } else if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/telno2")) == 10) {
- model.setValue("/root/main/patinfo/patinforesult/telno2", input4.value.substr(0,2) + "-" +
- input4.value.substr(2,4) + "-" +
- input4.value.substr(6,4)) ;
- }
- } else {
- if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/telno2")) == 10) {
- model.setValue("/root/main/patinfo/patinforesult/telno2", input4.value.substr(0,3) + "-" +
- input4.value.substr(3,3) + "-" +
- input4.value.substr(6,4)) ;
- } else if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/telno2")) == 11) {
- model.setValue("/root/main/patinfo/patinforesult/telno2", input4.value.substr(0,3) + "-" +
- input4.value.substr(3,4) + "-" +
- input4.value.substr(7,4)) ;
- }
- }
- input4.refresh();
- // model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if((event.keyCode <48 || (event.keyCode > 57 && event.keyCode < 96 ) || event.keyCode > 105) && (event.keyCode != 8 && event.keyCode != 13 && event.keyCode != 46)) {
- messageBox("숫자만","C001"); // 입력하십시오!
- model.setFocus("input4") ;
- return ;
- }
- ]]>
- </script>
- </input>
- <caption id="caption90" class="cell_1" style="left:521px; top:553px; width:33px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">당해</caption>
- <line id="line6" class="line_1" style="x1:0px; y1:0px; x2:421px; y2:0px; "/>
- <caption id="caption19" class="tit_2" style="left:0px; top:596px; width:157px; height:13px; ">관리정보</caption>
- <output id="output50" ref="/root/main/patinfo/patinforesult/lastreqdd" class="output_fix" format="yyyy-mm-dd" style="left:77px; top:620px; width:95px; height:19px; text-align:center; "/>
- <button id="btn_addr" class="icon_search" style="left:31px; top:9px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- zbcfOpenZipCodeList("combination", "", "/root/main/patinfo/patinforesult/zipcd1", "/root/main/patinfo/patinforesult/zipcd2", "/root/main/patinfo/patinforesult/zipcdseq", "/root/main/patinfo/patinforesult/address");
- model.setFocus("input30"); // 주소입력란 포커스On
- ]]>
- </script>
- </button>
- <caption id="caption91" class="cell_1" style="left:521px; top:577px; width:33px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">총</caption>
- <input id="input6" ref="/root/main/patinfo/patinforesult/cphone1" class="input_default" maxlength="13" style="left:319px; top:30px; width:97px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if( !isNull(model.getValue("/root/main/patinfo/patinforesult/cphone1")) && model.getValue("/root/main/patinfo/patinforesult/cphone1") != "-") {
- if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/cphone1")) < 10 ||
- getStringLength(model.getValue("/root/main/patinfo/patinforesult/cphone1")) > 13 ||
- isMobileTelNo(model.getValue("/root/main/patinfo/patinforesult/cphone1").substr(0, 2)) == false) {
- messageBox("올바른 휴대전화번호를","C001"); // 입력하십시오!
- model.setFocus("input6") ;
- return ;
- }
- if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/cphone1")) == 10) {
- model.setValue("/root/main/patinfo/patinforesult/cphone1", input6.value.substr(0,3) + "-" +
- input6.value.substr(3,3) + "-" +
- input6.value.substr(6,4)) ;
- } else if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/cphone1")) == 11) {
- model.setValue("/root/main/patinfo/patinforesult/cphone1", input6.value.substr(0,3) + "-" +
- input6.value.substr(3,4) + "-" +
- input6.value.substr(7,4)) ;
- }
- input6.refresh();
- // model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if((event.keyCode <48 || (event.keyCode > 57 && event.keyCode < 96 ) || event.keyCode > 105) && (event.keyCode != 8 && event.keyCode != 13 && event.keyCode != 46)) {
- messageBox("숫자만","C001"); // 입력하십시오!
- model.setFocus("input6") ;
- return ;
- }
- ]]>
- </script>
- </input>
- <group id="grp_inputschedule" visibility="hidden" showeffect="blend 300" style="left:497px; top:399px; width:175px; height:90px; background-color:#f8f8f8; border-color:#99ccff; border-style:solid; ">
- <input id="ipt_inputschedule" ref="/root/send/inputvisitdd" class="input_search" inputtype="date" style="left:73px; top:28px; width:100px; height:19px; "/>
- <line id="line28" class="line_1" style="x1:0px; y1:22px; x2:173px; y2:22px; "/>
- <caption id="caption8" class="tit_2" style="left:1px; top:5px; width:127px; height:13px; ">방문예정일 등록</caption>
- <caption id="caption51" class="cell_1" style="left:0px; top:27px; width:72px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">방문예정일</caption>
- <button id="btn_saveschedule" class="btn5_letter2" style="left:44px; top:59px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(getStringLength(model.getValue("/root/main/visitinfo/pid")) == 0) {
- messageBox("등록번호를 ", "C001") ; // 입력하십시오!
- return ;
- }
- //환자정보가 설정되지 않은 상태에서 시행하고자 할 경우 블로킹_20091028_SMY
- if (isNull(model.getValue("/root/main/patinfo/patinforesult/pid"))){
- messageBox("환자정보 설정 후 방문예정일 등록하시기 바랍니다. ", "E") ;
- return ;
- }
- if(ipt_inputschedule.value < getCurrentDate()) {
- messageBox("과거일자를 방문예정일로 등록", "E001") ; // 할 수 없습니다.
- return ;
- }
- if(fIsPreVisitDay(ipt_inputschedule.value)) {
- messageBox("해당 방문예정일이 이미 존재하므로 처리","E001"); // 할 수 없습니다.
- return ;
- }
- if(opt_iuflag.label == "U" && getStringLength(gVisitdd) == 0 ) {
- messageBox("변경할 방문예정일이", "I004", "방문예정일을 선택하십시오."); // 없습니다.
- return ;
- }
- var row = grd_visitlst,row;
- model.setValue("/root/send/pid", gPid); // pid
- model.setValue("/root/send/inptdt", gInptdt); // inptdt
- model.setValue("/root/send/instcd", gInstcd); // /root/send/instcd
- model.setValue("/root/send/pid", model.getValue("/root/main/visitinfo/pid")); // 환자등록번호
- model.setValue("/root/send/patcareflag", model.getValue("/root/main/visitinfo/patcareflag")); // 간호구분(H:가정간호 , V:방문간호)
- //var sss = model.getValue("/root/main/visitinfo/patcareflag");
- //alert(sss);
- if((model.getValue("/root/send/inptdt") == "") && (model.getValue("/root/main/visitinfo/inptdt") != "")){
- model.setValue("/root/send/inptdt", model.getValue("/root/main/visitinfo/inptdt")); // 환자입력일시
- }else if((model.getValue("/root/send/inptdt") == "") && (model.getValue("/root/main/visitinfo/inptdt") == "") && (model.getValue("/root/main/patinfo/patinforesult/inptdt") != "")){
- model.setValue("/root/send/inptdt", model.getValue("/root/main/patinfo/patinforesult/inptdt")); // 환자입력일시
- }else if((model.getValue("/root/send/inptdt") == "") && (model.getValue("/root/main/visitinfo/inptdt") == "") && (model.getValue("/root/main/patinfo/patinforesult/inptdt") == "")){
- model.setValue("/root/send/inptdt", model.getValue("/root/main/grd_visitlst/visitlist[" + row + "]/inptdt")); // 환자입력일시
- }
- model.setValue("/root/send/inputvisitdd", ipt_inputschedule.value); // 등록 방문예정일
- //model.refresh();
- submit("TRMNF00119");
- if(model.getValue("/root/main/existinfo/existordddinfo/existordddyn") == "Y") {
- var answer = messageBox("방문예정일에 환자의 외래예약 건이 존재합니다. ", "Q002") ; // 저장 하시겠습니까?
- if(answer != 6) // vbYes가 아니면
- return ;
- }
- // 7.개별 가정간호 방문조회 - 방문예정일 조회
- model.resetInstanceNode("/root/main/grd_previsitlist");
- model.resetInstanceNode("/root/main/visitcounts");
- model.removeNodeset("/root/main/grd_viewprevisitlist");
- // 저장 데이터 세팅(콤보 박스 값)
- model.setValue("/root/send/visitdd", model.getValue("/root/send/visitdd")); // visitdd 조회를 위한 방문일자
- model.setValue("/root/send/mode", model.getValue("/root/send/mode")); // visitdd 조회를 위한 모드
- model.setValue("/root/send/kind", model.getValue("/root/send/kind")); // /root/send/kind 조회를 위한 모드
- model.setValue("/root/send/pid", gPid); // pid
- model.setValue("/root/send/inptdt", gInptdt); // inptdt
- model.setValue("/root/send/instcd", gInstcd); // /root/send/instcd
- //model.setValue("/root/send/patcareflag", gPatcareflag); // 간호구분(H:가정간호 , V:방문간호)
- if(opt_iuflag.label == "I") { // 방문예정일 등록
- model.setValue("/root/send/pid", model.getValue("/root/main/visitinfo/pid")); // 환자등록번호
- if((model.getValue("/root/send/inptdt") == "") && (model.getValue("/root/main/visitinfo/inptdt") != "")){
- model.setValue("/root/send/inptdt", model.getValue("/root/main/visitinfo/inptdt")); // 환자입력일시
- }else if((model.getValue("/root/send/inptdt") == "") && (model.getValue("/root/main/visitinfo/inptdt") == "") && (model.getValue("/root/main/patinfo/patinforesult/inptdt") != "")){
- model.setValue("/root/send/inptdt", model.getValue("/root/main/patinfo/patinforesult/inptdt")); // 환자입력일시
- }else if((model.getValue("/root/send/inptdt") == "") && (model.getValue("/root/main/visitinfo/inptdt") == "") && (model.getValue("/root/main/patinfo/patinforesult/inptdt") == "")){
- model.setValue("/root/send/inptdt", model.getValue("/root/main/grd_visitlst/visitlist[" + row + "]/inptdt")); // 환자입력일시
- }
- model.setValue("/root/send/inputvisitdd", ipt_inputschedule.value); // 등록 방문예정일
- //model.setValue("/root/send/patcareflag", gPatcareflag); // 간호구분(H:가정간호 , V:방문간호)
- //alert(gPatcareflag);
- submit("TXMNF00104");
- } else if(opt_iuflag.label == "U") { // 방문예정일 변경
- model.setValue("/root/send/pid", model.getValue("/root/main/visitinfo/pid")); // 환자등록번호
- if((model.getValue("/root/send/inptdt") == "") && (model.getValue("/root/main/visitinfo/inptdt") != "")){
- model.setValue("/root/send/inptdt", model.getValue("/root/main/visitinfo/inptdt")); // 환자입력일시
- }else if((model.getValue("/root/send/inptdt") == "") && (model.getValue("/root/main/visitinfo/inptdt") == "") && (model.getValue("/root/main/patinfo/patinforesult/inptdt") != "")){
- model.setValue("/root/send/inptdt", model.getValue("/root/main/patinfo/patinforesult/inptdt")); // 환자입력일시
- }else if((model.getValue("/root/send/inptdt") == "") && (model.getValue("/root/main/visitinfo/inptdt") == "") && (model.getValue("/root/main/patinfo/patinforesult/inptdt") == "")){
- model.setValue("/root/send/inptdt", model.getValue("/root/main/grd_visitlst/visitlist[" + row + "]/inptdt")); // 환자입력일시
- }
- model.setValue("/root/send/inputvisitdd", ipt_inputschedule.value); // 등록 방문예정일
- model.setValue("/root/send/currvisitdd", gVisitdd); // 변경시 사용 : 현재 방문예정일
- //model.setValue("/root/send/patcareflag", gPatcareflag); // 간호구분(H:가정간호 , V:방문간호)
- submit("TXMNF00105");
- }
- copyNodeListType("/root/main/visitcounts", "/root/main/grd_previsitlist/visitcount", "replace", model, model);
- grp_inputschedule.visible = false;
- // 달력에 일자별 방문(예정)건수 대입
- fDataDisplayPat (); // 환자 선택했을 경우 색상 구분
- //fMoveViewPreVisitLIst();
- //model.refresh();
- // 일자별 방문(예정)건수 재조회
- submit("TRMNF00107");
- fMoveViewPreVisitLIst();
- // 진행상태 : 당일방문예정, 미확정, 진행, 종결 카운트 재조회
- submit("TRMNF00115");
- // 환자별 이력조회
- submit("TRMNF00131");
- ]]>
- </script>
- </button>
- <line id="line32" class="line_3" style="x1:0px; y1:50px; x2:173px; y2:50px; "/>
- <button id="btn_close" class="btn2_letter2" style="left:90px; top:59px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_inputschedule.visible = false;
- ]]>
- </script>
- </button>
- <output id="opt_iuflag" visibility="hidden" style="left:134px; top:2px; width:35px; height:19px; text-align:center; "/>
- </group>
- <group id="grp_reqcancel" visibility="hidden" showeffect="blend 300" style="left:70px; top:65px; width:300px; height:93px; background-color:#f8f8f8; border-color:#99ccff; border-style:solid; ">
- <caption id="caption37" class="tit_2" style="left:1px; top:5px; width:131px; height:14px; ">의뢰취소</caption>
- <line id="line22" class="line_1" style="x1:0px; y1:22px; x2:298px; y2:22px; "/>
- <select1 id="combo8" ref="/root/main/reqcancel/reqcancelreason" class="combo_search" appearance="minimal" style="left:87px; top:29px; width:205px; height:19px; ">
- <choices>
- <itemset nodeset="/root/item/reqcancelreason/M0387">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line54" class="line_3" style="x1:-1px; y1:51px; x2:297px; y2:51px; "/>
- <output id="output22" ref="/root/main/newpatientinfo/patinfo/ptbs_pid" visibility="visible" style="left:183px; top:2px; width:110px; height:19px; text-align:center; "/>
- <button id="btn_savereqcancel" class="btn5_letter2" style="left:106px; top:64px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fHomeCarePatientCancel("C"); //의뢰취소
- grp_reqcancel.visible = false;
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter2" style="left:151px; top:64px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_reqcancel.visible = false;
- ]]>
- </script>
- </button>
- <caption id="caption4" class="cell_1" style="left:-1px; top:27px; width:84px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">의뢰취소사유</caption>
- </group>
- <caption id="caption60" class="cell_1" style="left:0px; top:182px; width:103px; height:21px; font-family:돋움; text-align:left; vertical-align:middle; ">1. 담당간호사</caption>
- <line id="line11" class="line_3" style="x1:1px; y1:581px; x2:416px; y2:581px; "/>
- <caption id="caption63" class="cell_1" style="left:0px; top:503px; width:103px; height:57px; font-family:돋움; text-align:left; vertical-align:middle; ">Remark</caption>
- <caption id="caption77" style="left:265px; top:429px; width:15px; height:20px; ">원</caption>
- <select1 id="combo2" ref="/root/main/patinfo/patinforesult/chrgnursid1" class="combo_default" appearance="minimal" style="left:105px; top:182px; width:161px; height:19px; ">
- <choices>
- <itemset nodeset="/root/item/chargenurse/nurselist">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <output id="output16" ref="/root/main/patinfo/patinforesult/restamt" class="output_fix" format="(-)#,###" style="left:105px; top:426px; width:154px; height:19px; text-align:right; "/>
- <caption id="caption46" class="cell_1" style="left:0px; top:425px; width:103px; height:21px; font-family:돋움; text-align:left; vertical-align:middle; ">현재금액</caption>
- <caption id="caption36" class="cell_1" style="left:268px; top:182px; width:67px; height:21px; font-family:돋움; text-align:left; vertical-align:middle; ">의뢰기관</caption>
- <input id="input15" ref="/root/main/patinfo/patinforesult/requnit" class="input_default" style="left:337px; top:182px; width:78px; height:19px; "/>
- <caption id="caption26" class="cell_1" style="left:0px; top:447px; width:103px; height:55px; font-family:돋움; text-align:left; vertical-align:middle; ">
- <![CDATA[의뢰별
- Remark]]>
- </caption>
- <textarea id="textarea1" ref="/root/main/patinfo/patinforesult/comremark" scroll="auto" style="left:105px; top:503px; width:311px; height:57px; "/>
- <textarea id="textarea2" ref="/root/main/patinfo/patinforesult/remark" scroll="auto" style="left:105px; top:448px; width:311px; height:53px; "/>
- <select1 id="combo1" ref="/root/main/patinfo/patinforesult/chrrgstkind" class="combo_default" visibility="hidden" appearance="minimal" style="left:219px; top:583px; width:47px; height:19px; ">
- <choices>
- <itemset nodeset="/root/item/churchregkind/churchregkindlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /********************가정간호팀, 병원, 간호행정팀은 수정가능하도록 수정 20081014 *************************************************/
- // 가정간호센터(2361000000)에서 가정간호팀(3090100000)로 변경 2009.03.27
- //if (( getUserInfo("dutplcecd") != "2361000000" ) && ( getUserInfo("dutplcecd") != "1000000000" ) && ( getUserInfo("dutplcecd") != "3041100000" )){
- // 가정간호사업실(3090100000-> 3090000000)로 부서 및 부서코드변경_20120131.손성훈
- if (( getUserInfo("dutplcecd") != "3090000000" ) && ( getUserInfo("dutplcecd") != "1000000000" ) && ( getUserInfo("dutplcecd") != "3041100000" )){
- var row = grd_visitlst.row;
- if(model.getValue("/root/send/prcsstat") == '2' ){
- combo1.value = '1';
- messageBox("무료, 기타 구분을 선택할 수 없습니다", "I004");
- }else{
- var chrrgstkind = model.getValue("/root/main/grd_visitlst/visitlist[" + row + "]/kind");
- var kind = combo1.value;
- if((chrrgstkind != '등록') && (combo1.value != '등록')){
- if(combo1.value == '1'){
- messageBox("등록 구분을 선택할 수", "I004");
- if((chrrgstkind == '무료') || (kind == '무료')){
- chrrgstkind = '2';
- }else{
- chrrgstkind = '3';
- }
- if(chrrgstkind != ""){
- combo1.value = chrrgstkind;
- }else{
- combo1.value = kind;
- }
- }
- }
- }
- }
- ]]>
- </script>
- </select1>
- <caption id="caption12" class="cell_1" visibility="hidden" style="left:268px; top:583px; width:67px; height:21px; font-family:돋움; text-align:left; vertical-align:middle; ">담당간호사</caption>
- <caption id="caption68" class="cell_1" visibility="hidden" style="left:182px; top:583px; width:35px; height:21px; font-family:돋움; text-align:left; vertical-align:middle; ">구분</caption>
- <caption id="caption58" class="cell_1" visibility="hidden" style="left:0px; top:583px; width:103px; height:21px; font-family:돋움; text-align:left; vertical-align:middle; ">2. 본당</caption>
- <select1 id="combo12" ref="/root/main/patinfo/patinforesult/churchcd" class="combo_default" visibility="hidden" appearance="minimal" style="left:105px; top:583px; width:74px; height:19px; ">
- <choices>
- <itemset nodeset="/root/item/church/churchlist">
- <label ref="churchnm"/>
- <value ref="churchcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(combo12.value != "") {
- model.setValue("/root/send/churchcd", combo12.value) ;
- // 조회조건의 선택된 본당의 가정간호 담당간호사 리스트를 조회, 콤보박스에 세팅한다.
- submit("TRMNF00106");
- //본당의 경우 간호사 한명이므로 세팅
- //20080127 손은연
- model.makeValue("root/temp/churchcd", model.getValue("/root/send/churchcd"));
- model.makeValue("root/temp/chrgnursid", model.getValue("/root/send/chrgnursid"));
- if ( combo13.length > 0 ){
- combo13.select(1);
- }
- }
- ]]>
- </script>
- </select1>
- <select1 id="combo13" ref="/root/main/patinfo/patinforesult/chrgnursid2" class="combo_default" visibility="hidden" appearance="minimal" style="left:337px; top:583px; width:78px; height:19px; ">
- <choices>
- <itemset nodeset="/root/item/chargenurse/nurselist">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption81" class="cell_1" style="left:58px; top:337px; width:103px; height:21px; font-family:돋움; text-align:left; vertical-align:middle; ">등급</caption>
- <caption id="caption82" class="cell_1" style="left:58px; top:381px; width:103px; height:21px; font-family:돋움; text-align:left; vertical-align:middle; ">본인부담 경감</caption>
- <output id="output6" ref="/root/main/patinfo/patinforesult/vdctypenum" class="output_fix" style="left:163px; top:381px; width:53px; height:19px; text-align:center; "/>
- <caption id="caption83" class="cell_1" style="left:58px; top:359px; width:103px; height:21px; font-family:돋움; text-align:left; vertical-align:middle; ">본인부담률</caption>
- <output id="output7" ref="/root/main/patinfo/patinforesult/vreqdd" class="output_fix" format="yyyy-mm-dd" style="left:163px; top:315px; width:253px; height:19px; "/>
- <caption id="caption62" class="cell_1" style="left:0px; top:293px; width:103px; height:21px; font-family:돋움; text-align:left; vertical-align:middle; ">감면유형</caption>
- <output id="dctypenum" ref="/root/main/patinfo/patinforesult/dctypenum" class="output_fix" style="left:105px; top:293px; width:53px; height:19px; text-align:center; "/>
- <input id="input12" ref="/root/main/patinfo/patinforesult/longtermno" class="input_default" maxlength="25" style="left:163px; top:403px; width:253px; height:19px; "/>
- <caption id="caption79" class="cell_1" style="left:58px; top:315px; width:103px; height:21px; font-family:돋움; text-align:left; vertical-align:middle; ">계약일</caption>
- <caption id="caption57" class="cell_1" style="left:0px; top:315px; width:57px; height:109px; font-family:돋움; text-align:center; vertical-align:middle; ">방문간호</caption>
- <select1 id="combo3" ref="/root/main/patinfo/patinforesult/dctype" class="combo_default" appearance="minimal" style="left:159px; top:293px; width:256px; height:19px; ">
- <choices>
- <itemset nodeset="/root/item/dctype/dctypelist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //20081106 최지연 요청 번호로 보여달라
- //감면유형 요청번호셋팅 하드코딩수정_20091230_SMY
- model.makeValue("/root/main/patinfo/patinforesult/dctypenum", model.getValue("/root/item/dctype/dctypelist[cd = '" + model.getValue("/root/main/patinfo/patinforesult/dctype") + "']/sortseq"));
- /*
- if(combo3.value == '-'){
- model.makeValue("/root/main/patinfo/patinforesult/dctypenum", "1");
- }else if(combo3.value == 'D13'){
- model.makeValue("/root/main/patinfo/patinforesult/dctypenum", "2");
- }else if(combo3.value == 'D12'){
- model.makeValue("/root/main/patinfo/patinforesult/dctypenum", "3");
- }else if(combo3.value == 'D11'){
- model.makeValue("/root/main/patinfo/patinforesult/dctypenum", "4");
- }else if(combo3.value == 'S121'){ //빈센트병원 감면유형코드추가_20091022
- model.makeValue("/root/main/patinfo/patinforesult/dctypenum", "2");
- }
- */
- //model.refresh();
- dctypenum.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="combo4" ref="/root/main/patinfo/patinforesult/vdctype" class="combo_default" appearance="minimal" style="left:216px; top:381px; width:200px; height:19px; ">
- <choices>
- <itemset nodeset="/root/item/dctype/vdctypelist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //20081106 최지연 요청 번호로 보여달라
- //본인부담 경감 요청번호셋팅 하드코딩수정_20091230_SMY
- model.makeValue("/root/main/patinfo/patinforesult/vdctypenum", model.getValue("/root/item/dctype/vdctypelist[cd = '" + model.getValue("/root/main/patinfo/patinforesult/vdctype") + "']/sortseq"));
- /*
- if(combo4.value == '-'){
- model.makeValue("/root/main/patinfo/patinforesult/vdctypenum", "1");
- }else if(combo4.value == 'D17'){
- model.makeValue("/root/main/patinfo/patinforesult/vdctypenum", "2");
- }
- */
- output6.refresh();
- // model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="combo14" ref="/root/main/patinfo/patinforesult/qualflag" class="combo_default" appearance="minimal" style="left:163px; top:359px; width:253px; height:19px; ">
- <choices>
- <itemset nodeset="/root/item/dctype/qualflaglist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo9" ref="/root/main/patinfo/patinforesult/gradeflag" class="combo_default" appearance="minimal" style="left:163px; top:337px; width:253px; height:19px; ">
- <choices>
- <item>
- <label>1등급</label>
- <value>1</value>
- </item>
- <item>
- <label>2등급</label>
- <value>2</value>
- </item>
- <item>
- <label>3등급</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <caption id="caption80" class="cell_1" style="left:58px; top:403px; width:103px; height:21px; font-family:돋움; text-align:left; vertical-align:middle; ">장기요양번호</caption>
- <caption id="caption61" class="cell_1" visibility="visible" style="left:0px; top:271px; width:103px; height:21px; font-family:돋움; text-align:left; vertical-align:middle; ">환자분류[중증도]</caption>
- <caption id="caption50" class="cell_1" visibility="visible" style="left:0px; top:249px; width:103px; height:21px; font-family:돋움; text-align:left; vertical-align:middle; ">가정간호 진단명</caption>
- <button id="button3" class="btn2_letter2" visibility="visible" style="left:373px; top:250px; width:42px; height:19px; ">
- <caption>등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var xpos = window.width / 2 - 100;
- var ypos = window.height / 2 - 200;
- model.setValue("/root/diagtrnsdata/pid", model.getValue("/root/main/patinfo/patinforesult/pid"));
- model.setValue("/root/diagtrnsdata/inptdt",model.getValue("/root/main/patinfo/patinforesult/inptdt"));
- model.setValue("/root/diagtrnsdata/patcareflag",model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
- // model.refresh();
- if ( isNull(model.getValue("/root/diagtrnsdata/inptdt")) ) {
- messageBox("확정된 환자에 대하여 등록이","I006","확정처리부터 하십시오");
- }else {
- open("SMMNF04000", "", "", "", "SMMNF04000", "/root/diagtrnsdata", "/root/main/parameter");
- }
- ]]>
- </script>
- </button>
- <output id="output26" ref="/root/main/patinfo/patinforesult/patclass" class="output_fix" visibility="visible" style="left:105px; top:272px; width:267px; height:19px; text-align:center; "/>
- <button id="button7" class="btn2_letter2" visibility="visible" style="left:373px; top:272px; width:42px; height:19px; ">
- <caption>등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var xpos = window.width / 2 - 100;
- var ypos = window.height / 2 - 100;
- var cur_row;
- model.setValue("/root/intensivecaretrnsdata/pid", model.getValue("/root/main/patinfo/patinforesult/pid"));
- model.setValue("/root/intensivecaretrnsdata/inptdt", model.getValue("/root/main/patinfo/patinforesult/inptdt"));
- model.setValue("/root/intensivecaretrnsdata/instcd", model.getValue("/root/main/patinfo/patinforesult/instcd"));
- model.setValue("/root/intensivecaretrnsdata/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
- /*model.refresh();*/
- if ( isNull(model.getValue("/root/intensivecaretrnsdata/inptdt")) ) {
- messageBox("확정된 환자에 대하여 등록이","I006","확정처리부터 하십시오");
- }else {
- open("SMMNF01100", "", "", "", "SMMNF01100", "/root/intensivecaretrnsdata", "/root/main/parameter");
- }
- ]]>
- </script>
- </button>
- <caption id="caption13" class="cell_1" style="left:268px; top:204px; width:67px; height:21px; font-family:돋움; text-align:left; vertical-align:middle; ">보조간호사</caption>
- <output id="opt_cnstdiagnm" ref="/root/main/patinfo/patinforesult/cnstdiaghngnm" class="output_fix" visibility="visible" style="left:105px; top:228px; width:225px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- opt_cnstdiagnm.hint = model.getValue("/root/main/patinfo/patinforesult/cnstdiagconcat");
- ]]>
- </script>
- </output>
- <select1 id="combo10" ref="/root/main/patinfo/patinforesult/chrgnursid3" class="combo_default" appearance="minimal" style="left:337px; top:205px; width:78px; height:19px; ">
- <choices>
- <itemset nodeset="/root/item/chargenurse/nurselist">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo11" ref="/root/main/patinfo/patinforesult/healcntryn" class="combo_default" appearance="minimal" style="left:105px; top:205px; width:44px; height:19px; ">
- <choices>
- <itemset nodeset="/root/item/healcntryn/healcntrynlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <output id="opt_diagnm" ref="/root/main/patinfo/patinforesult/diaghngnm" class="output_fix" style="left:105px; top:250px; width:182px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- opt_diagnm.hint = model.getValue("/root/main/patinfo/patinforesult/diagconcat");
- ]]>
- </script>
- </output>
- <caption id="caption49" class="cell_1" visibility="visible" style="left:0px; top:227px; width:103px; height:21px; font-family:돋움; text-align:left; vertical-align:middle; ">의뢰서 진단명</caption>
- <output id="opt_cnstdiagcd" ref="/root/main/patinfo/patinforesult/cnstdiagcd" class="output_fix" visibility="visible" style="left:332px; top:228px; width:83px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- opt_cnstdiagcd.hint = model.getValue("/root/main/patinfo/patinforesult/cnstdiagconcat");
- ]]>
- </script>
- </output>
- <caption id="caption17" class="cell_1" style="left:0px; top:204px; width:103px; height:21px; font-family:돋움; text-align:left; vertical-align:middle; ">2. 보건소 혜택</caption>
- <output id="opt_diagcd" ref="/root/main/patinfo/patinforesult/diagcd" class="output_fix" style="left:289px; top:250px; width:83px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- opt_diagcd.hint = model.getValue("/root/main/patinfo/patinforesult/diagconcat");
- ]]>
- </script>
- </output>
- <input id="input5" ref="/root/main/patinfo/patinforesult/healcntrnm" class="input_default" style="left:151px; top:205px; width:115px; height:19px; "/>
- <caption id="caption30" class="cell_1" style="left:0px; top:561px; width:103px; height:19px; font-family:돋움; text-align:left; vertical-align:middle; ">주거 지역</caption>
- <select1 id="combo15" ref="/root/main/patinfo/patinforesult/vstarea" class="combo_default" appearance="minimal" style="left:105px; top:561px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/item/visitarea/visitarealist">
- <label ref="areanm"/>
- <value ref="areaid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_areadtl" ref="/root/main/patinfo/patinforesult/areadtl" style="left:210px; top:561px; width:100px; height:19px; "/>
- </group>
- <!--(20101206) 경북대
- <datagrid id="grd_visitlst" nodeset="/root/main/grd_visitlst/visitlist" class="datagrid2" autoresize="true" caption="ordtype^구분^진행상태^등록번호^환자명^S/A^진단명^진료과^주치의^의뢰일^재원상태^미수^본당^분류^caption1^caption2^caption3^caption4^caption5" colsep="^" colwidth="100, 30, 58, 60, 55, 40, 108, 120, 100, 120, 164, 32, 100, 60, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" explorerbar="sort" mergecellsfixedrows="bycolrec" multitotal="false" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:130px; width:235px; height:650px; vertical-align:middle; ">
- -->
- <datagrid id="grd_visitlst" nodeset="/root/main/grd_visitlst/visitlist" class="datagrid2" autoresize="true" caption="ordtype^구분^진행상태^등록번호^환자명^S/A^진단명^진료과^진료의^의뢰일^재원상태^미수^본당^분류^caption1^caption2^caption3^caption4^caption5" colsep="^" colwidth="100, 30, 58, 60, 55, 40, 108, 120, 100, 120, 164, 32, 100, 60, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" explorerbar="sort" mergecellsfixedrows="bycolrec" multitotal="false" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:130px; width:235px; height:650px; vertical-align:middle; ">
- <!--(20101206) 경북대 -->
- <col ref="ordtype" visibility="hidden"/>
- <col ref="careflag" style="left:20px; top:32px; width:30px; height:23px; text-align:center; "/>
- <col ref="procstatus" visibility="hidden" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:left; "/>
- <col ref="sex" style="text-align:center; "/>
- <col ref="diagname" visibility="hidden" style="text-align:left; "/>
- <col ref="reqdeptnm" visibility="hidden" style="text-align:center; "/>
- <col ref="reqdrnm" visibility="hidden" style="text-align:center; "/>
- <col ref="reqdd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="inptstat" style="text-align:left; "/>
- <col ref="receiptflag" visibility="hidden" style="left:420px; top:32px; width:40px; height:23px; text-align:center; "/>
- <col disabled="true" ref="headquarter" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/item/church/churchlist">
- <label ref="churchnm"/>
- <value ref="churchcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="kind" style="text-align:center; "/>
- <col ref="inptdt" visibility="hidden"/>
- <col ref="diagcd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="result" visibility="hidden"/>
- <col ref="reqdeptcd" visibility="hidden" style="text-align:center; "/>
- <col ref="reqdrid" visibility="hidden" style="text-align:center; "/>
- <col ref="formrecseq" visibility="hidden" style="text-align:center; "/>
- <col ref="rereqyn" visibility="hidden" style="text-align:center; "/>
- <col ref="patcareflag" visibility="hidden" style="text-align:center; "/>
- <col ref="orddd" visibility="hidden" style="text-align:center; "/>
- <col ref="cretno" visibility="hidden" style="text-align:center; "/>
- <col ref="vorddd" visibility="hidden" style="text-align:center; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //alert("start"+'/'+isDataCell());
- if(isDataCell()) {
- //alert("ok");
- delPatientInfos(); //화면상단정보 삭제
- var cur_row = grd_visitlst.row;
- fClear();
- grd_patvisitlst.rebuildStyle();
- // 기타, 무료환자는 접수버튼 비활성화
- var kind = model.getValue("/root/main/grd_visitlst/visitlist[" + grd_visitlst.row + "]/kind");
- if((kind == '무료') || (kind == '기타')){
- btn_receipt.visible = false;
- }else{
- btn_receipt.visible = true;
- }
- if ( cur_row > 0 ) {
- model.setValue("/root/send/pid", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/pid"));
- model.setValue("/root/send/inptdt", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/inptdt"));
- model.setValue("/root/send/instcd", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/instcd"));
- model.setValue("/root/send/patcareflag", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/patcareflag"));
- model.setValue("/root/send/vorddd", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/orddd"));
- model.setValue("/root/main/visitinfo/pid", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/pid"));
- model.setValue("/root/main/visitinfo/inptdt", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/inptdt"));
- model.setValue("/root/main/visitinfo/instcd", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/instcd"));
- model.setValue("/root/main/visitinfo/hngnm", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/hngnm"));
- model.setValue("/root/main/visitinfo/sex", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/sex"));
- model.setValue("/root/main/visitinfo/patcareflag", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/patcareflag"));
- // /*model.refresh();*/
- }
- // 환자선택시 환자별 histoy리스트 조회 , 환자정보조회
- submit("TRMNF00131");
- // 만료일 한달 전인 의뢰서 그리드에 색깔 셋팅
- fSetGrdColorEndSche();
- //model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_visitlst.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_explist" nodeset="/root/main/grd_explist/explist" class="datagrid2" visibility="hidden" caption="구분^진행상태^등록번호^환자명^S/A^진단명^진료과^주츼의^만료일^의뢰일^재원상태^미수^본당^분류^caption1^caption2^caption3^caption4^caption5" colsep="^" colwidth="30, 50, 60, 55, 40, 100, 120, 100, 120, 120, 80, 50, 100, 60, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" explorerbar="sort" mergecellsfixedrows="bycolrec" multitotal="false" rowheader="seq" rowheight="32" rowsep="|" style="left:0px; top:130px; width:235px; height:650px; vertical-align:middle; ">
- <col ref="careflag" style="left:20px; top:32px; width:35px; height:23px; text-align:center; "/>
- <col ref="procstatus" visibility="hidden" style="left:50px; top:32px; width:50px; height:23px; "/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="sex"/>
- <col ref="diagname" visibility="hidden"/>
- <col ref="reqdeptnm" visibility="hidden" style="text-align:center; "/>
- <col ref="reqdrnm" visibility="hidden" style="text-align:center; "/>
- <col ref="expdd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="reqdd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="inptstat" visibility="visible" style="text-align:left; "/>
- <col ref="receiptflag" visibility="hidden" style="left:420px; top:32px; width:40px; height:23px; text-align:center; "/>
- <col ref="churchnm" visibility="visible"/>
- <col ref="kind" visibility="visible"/>
- <col ref="inptdt" visibility="hidden"/>
- <col ref="diagcd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="churchcd" visibility="hidden"/>
- <col ref="result" visibility="hidden"/>
- <col ref="reqdeptcd" visibility="hidden" style="text-align:center; "/>
- <col ref="reqdrid" visibility="hidden" style="text-align:center; "/>
- <col ref="formrecseq" visibility="hidden" style="text-align:center; "/>
- <col ref="rereqyn" visibility="hidden" style="text-align:center; "/>
- <col ref="patcareflag" visibility="hidden" style="text-align:center; "/>
- <col ref="orddd" visibility="hidden" style="text-align:center; "/>
- <col ref="cretno" visibility="hidden" style="text-align:center; "/>
- <col ref="orddd" visibility="hidden" style="text-align:center; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isDataCell()) {
- delPatientInfos(); //화면상단정보 삭제
- fClear();
- var cur_row = grd_explist.row;
- if ( cur_row > 0 ) {
- model.setValue("/root/send/pid", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/pid"));
- model.setValue("/root/send/inptdt", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/inptdt"));
- model.setValue("/root/send/instcd", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/instcd"));
- model.setValue("/root/send/patcareflag", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/patcareflag"));
- model.setValue("/root/send/vorddd", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/orddd"));
- model.setValue("/root/main/visitinfo/pid", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/pid"));
- model.setValue("/root/main/visitinfo/inptdt", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/inptdt"));
- model.setValue("/root/main/visitinfo/instcd", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/instcd"));
- model.setValue("/root/main/visitinfo/hngnm", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/hngnm"));
- model.setValue("/root/main/visitinfo/sex", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/sex"));
- //model.refresh();
- }
- // 환자선택시 환자별 histoy리스트 조회
- submit("TRMNF00131");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_explist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_reqlist" nodeset="/root/main/grd_reqlist/reqlist" class="datagrid2" visibility="hidden" autoresize="true" caption="구분^진행상태^등록번호^환자명^S/A^진단명^진료과^진료의^상세^경과^의뢰일시^의뢰일시^경로^재원상태^간호기록^본당^구분^caption1^caption2^caption3^caption4" colsep="^" colwidth="30, 50, 60, 55, 40, 100, 100, 80, 37, 33, 84, 42, 35, 135, 56, 100, 60, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" explorerbar="sort" mergecellsfixedrows="bycolrec" multitotal="false" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:130px; width:235px; height:650px; vertical-align:middle; ">
- <!--(20101206) 경북대 -->
- <col ref="hcareflag" type="input" style="text-align:center; "/>
- <col ref="procstatus" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="sex" style="text-align:center; "/>
- <col ref="cnstdiaghngnm" style="text-align:left; "/>
- <col ref="reqdeptnm" style="text-align:center; "/>
- <col ref="reqdrnm" style="text-align:center; "/>
- <col ref="detail" style="text-align:center; "/>
- <col ref="hisrecord" style="text-align:center; "/>
- <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="reqtm" format="hh:nn" style="text-align:center; "/>
- <col ref="reqmode" style="text-align:center; "/>
- <col ref="inptstat" style="text-align:left; "/>
- <col ref="carerec" style="text-align:center; "/>
- <col ref="churchnm" visibility="hidden" style="text-align:center; "/>
- <col ref="kind" visibility="hidden" style="text-align:center; "/>
- <col ref="churchcd" visibility="hidden" style="text-align:center; "/>
- <col ref="cnstsdiagcd" visibility="hidden" style="text-align:center; "/>
- <col ref="reqdeptcd" visibility="hidden" style="text-align:center; "/>
- <col ref="reqdrid" visibility="hidden" style="text-align:center; "/>
- <col ref="instcd" visibility="hidden" style="text-align:center; "/>
- <col ref="formrecseq" visibility="hidden" style="text-align:center; "/>
- <col ref="rereqyn" visibility="hidden" style="text-align:center; "/>
- <col ref="patcareflag" visibility="hidden" style="text-align:center; "/>
- <col ref="orddd" visibility="hidden" style="text-align:center; "/>
- <col ref="cretno" visibility="hidden" style="text-align:center; "/>
- <col ref="careflag" type="input" visibility="hidden" style="text-align:center; "/>
- <col ref="ordtype" visibility="hidden"/>
- <col ref="vstarea" visibility="hidden"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if(grd_reqlist.isCell(event.target) && grd_reqlist.mouseRow >= grd_reqlist.fixedrows) {
- if(searchListFlag == "2") { // 미확정리스트 일때만 팝업메뉴 적용
- if(isDataCell()) {
- var cur_row = grd_reqlist.mouseRow;
- if ( cur_row > 0 ) {
- // 미확정 리스트에서 마우스 오른쪽 버튼 클릭시 "가정간호 의뢰서 보기" 팝업 메뉴 로드
- if(event.button == 3) {
- setPopupMenu("grd_reqlist", false, "/root/codedata/popupmenu/reqpaper/item", "name", "func");
- gRow = grd_reqlist.mouseRow;
- gCol = grd_reqlist.mouseCol;
- gFormRecSeq = model.getValue("/root/main/grd_reqlist/reqlist[" + gRow + "]/formrecseq");
- }
- }
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isDataCell()) {
- var cur_row = grd_reqlist.row;
- delPatientInfos(); //화면상단정보 삭제
- fClear();
- fcareSetting(); // 방문/가정 구분에 따른 화면활성화 제어
- if ( cur_row > 0 ) {
- model.setValue("/root/send/pid", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/pid"));
- model.setValue("/root/send/inptdt", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/inptdt"));
- model.setValue("/root/send/instcd", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/instcd"));
- model.setValue("/root/send/patcareflag", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/patcareflag"));
- model.setValue("/root/main/visitinfo/pid", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/pid"));
- model.setValue("/root/main/visitinfo/instcd", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/instcd"));
- model.setValue("/root/main/visitinfo/hngnm", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/hngnm"));
- model.setValue("/root/main/visitinfo/sex", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/sex"));
- // model.refresh();
- }
- // 환자선택시 환자별 histoy리스트 조회
- //submit("TRMNF00131");
- // 1.환자 기본정보 조회
- submit("TRMNF00101");
- model.makeValue("/root/main/patinfo/patinforesult/dctype","-");
- combo3.refresh();
- //20081106 최지연 요청 번호로 보여달라
- //감면유형 요청번호셋팅 하드코딩수정_20091230_SMY
- model.makeValue("/root/main/patinfo/patinforesult/dctypenum", model.getValue("/root/item/dctype/dctypelist[cd = '" + model.getValue("/root/main/patinfo/patinforesult/dctype") + "']/sortseq"));
-
- if ( !isNull(model.getValue("/root/main/patinfo/patinforesult/pid")) ){
- gNewPat = "N" ;
- fDisableEnableBtn(searchListFlag) ;
- //감면유형 요청번호셋팅_20100114_SMY
- model.makeValue("/root/main/patinfo/patinforesult/dctypenum", model.getValue("/root/item/dctype/dctypelist[cd = '" + model.getValue("/root/main/patinfo/patinforesult/dctype") + "']/sortseq"));
- //본인부담 경감 요청번호셋팅_20100114_SMY
- model.makeValue("/root/main/patinfo/patinforesult/vdctypenum", model.getValue("/root/item/dctype/vdctypelist[cd = '" + model.getValue("/root/main/patinfo/patinforesult/vdctype") + "']/sortseq"));
- // 담당간호사 매칭
- fChrgNursIdMapping();
- // 개별 가정간호 방문정보에 최근방문일 매칭
- model.setValue("/root/main/visitinfo/lastvisitdd", model.getValue("/root/main/mnginfo/visitdate/lastvisitdd"));
- //미확정인경우 의사진단이 저장되어야 하므로 클릭시 값을 전달한다.
- //-->변경 : 미확정리스트의 환자정보 조회시 의뢰서진단과 이전에 확정된 가정간호 진단이 분리되서 조회되도록 수정변경. 저장시에는 가정간호 진단을 저장한다_20100108_SMY
- model.setValue("/root/main/patinfo/patinforesult/cnstdiagcd", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/cnstdiagcd"));
- model.setValue("/root/main/patinfo/patinforesult/cnstdiaghngnm", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/cnstdiaghngnm"));
- model.setValue("/root/main/patinfo/patinforesult/cnstdiagconcat", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/cnstdiaghngnm"));
- // 미확정 의뢰확정할때 patcareflag에 따라 insert 하는 항목이 달라지므로 patcareflag 셋팅 2009.05.13 황혜민
- model.setValue("/root/main/patinfo/patinforesult/patcareflag", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/careflag"));
- //본당인 경우 의뢰를 하여 미확정 리스트에 들어온경우는 등록인 경우 뿐이므로... 등록으로 만들어 준다.
- var kind = model.getValue("/root/send/kind");
- if(kind == '2'){
- model.makeValue("/root/main/patinfo/patinforesult/chrrgstkind", '1');
- }
- }
-
-
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_reqlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:145px; height:18px; ">가정간호</caption>
- </group>
- <group id="grp_newpatientinput" visibility="hidden" showeffect="blend 300" style="left:175px; top:310px; width:300px; height:205px; background-color:#f8f8f8; border-color:#99ccff; border-style:solid; ">
- <caption id="caption15" class="tit_2" style="left:1px; top:5px; width:131px; height:14px; ">신규환자 등록</caption>
- <line id="line42" class="line_1" style="x1:0px; y1:22px; x2:298px; y2:22px; "/>
- <caption id="caption38" class="cell_1" style="left:-1px; top:27px; width:84px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">주민등록번호</caption>
- <caption id="caption42" style="left:187px; top:29px; width:15px; height:20px; ">-</caption>
- <line id="line43" class="line_2" style="x1:-1px; y1:49px; x2:297px; y2:49px; "/>
- <caption id="caption43" class="cell_1" style="left:-1px; top:51px; width:84px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">환자성명</caption>
- <input id="ipt_rrgstno1" ref="/root/main/newpatientinfo/patinfo/ptbs_rrgstno1" class="input_default" maxlength="6" format="999999" style="left:86px; top:29px; width:95px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if( !isNull(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_rrgstno1")) ){
- fRrgstNo1Veri();
- }
- //model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_rrgstno2" ref="/root/main/newpatientinfo/patinfo/ptbs_rrgstno2" class="input_default" maxlength="7" format="9999999" style="left:202px; top:29px; width:95px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if( !isNull(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_rrgstno2")) ){
- fRrgstNo2Veri();
- }
- //model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_hngnm" ref="/root/main/newpatientinfo/patinfo/ptbs_hngnm" class="input_default" imemode="hangul" style="left:86px; top:53px; width:183px; height:19px; "/>
- <caption id="caption52" class="cell_1" style="left:189px; top:75px; width:39px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">성별</caption>
- <select1 id="cmb_sex" ref="/root/main/newpatientinfo/patinfo/ptbs_sex" class="combo_search" appearance="minimal" style="left:230px; top:77px; width:67px; height:19px; ">
- <choices>
- <item>
- <label>M</label>
- <value>M</value>
- </item>
- <item>
- <label>F</label>
- <value>F</value>
- </item>
- </choices>
- </select1>
- <caption id="caption53" class="cell_1" style="left:-1px; top:75px; width:84px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">생년월일</caption>
- <line id="line44" class="line_2" style="x1:-1px; y1:73px; x2:297px; y2:73px; "/>
- <input id="ipt_brthdd" ref="/root/main/newpatientinfo/patinfo/ptbs_brthdd" class="input_search" inputtype="date" style="left:86px; top:77px; width:100px; height:19px; "/>
- <line id="line45" class="line_2" style="x1:-1px; y1:97px; x2:297px; y2:97px; "/>
- <caption id="caption54" class="cell_1" style="left:-1px; top:99px; width:84px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">집전화번호</caption>
- <caption id="caption67" class="cell_1" style="left:-1px; top:123px; width:84px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">휴대전화번호</caption>
- <line id="line46" class="line_2" style="x1:-1px; y1:121px; x2:297px; y2:121px; "/>
- <input id="ipt_hometel" ref="/root/main/newpatientinfo/patinfo/ptbs_hometel" class="input_default" maxlength="13" style="left:86px; top:101px; width:211px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if( !isNull(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_hometel")) && model.getValue("/root/main/newpatientinfo/patinfo/ptbs_hometel") != "-") {
- if(getStringLength(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_hometel")) < 9 ||
- getStringLength(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_hometel")) > 13 ||
- isHomeTelNo(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_hometel").substr(0, 3)) == false) {
- messageBox("지역번호 포함하여 올바른 집전화번호를","C001"); // 입력하십시오!
- model.setFocus("ipt_hometel") ;
- return ;
- }
- if(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_hometel").substr(0, 2) == "02") { // 서울 지역번호
- if(getStringLength(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_hometel")) == 9) {
- model.setValue("/root/main/newpatientinfo/patinfo/ptbs_hometel", ipt_hometel.value.substr(0,2) + "-" +
- ipt_hometel.value.substr(2,3) + "-" +
- ipt_hometel.value.substr(5,4)) ;
- } else if(getStringLength(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_hometel")) == 10) {
- model.setValue("/root/main/newpatientinfo/patinfo/ptbs_hometel", ipt_hometel.value.substr(0,2) + "-" +
- ipt_hometel.value.substr(2,4) + "-" +
- ipt_hometel.value.substr(6,4)) ;
- }
- } else {
- if(getStringLength(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_hometel")) == 10) {
- model.setValue("/root/main/newpatientinfo/patinfo/ptbs_hometel", ipt_hometel.value.substr(0,3) + "-" +
- ipt_hometel.value.substr(3,3) + "-" +
- ipt_hometel.value.substr(6,4)) ;
- } else if(getStringLength(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_hometel")) == 11) {
- model.setValue("/root/main/newpatientinfo/patinfo/ptbs_hometel", ipt_hometel.value.substr(0,3) + "-" +
- ipt_hometel.value.substr(3,4) + "-" +
- ipt_hometel.value.substr(7,4)) ;
- }
- }
- ipt_hometel.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if((event.keyCode <48 || (event.keyCode > 57 && event.keyCode < 96 ) || event.keyCode > 105) && (event.keyCode != 8 && event.keyCode != 13 && event.keyCode != 46)) {
- messageBox("숫자만","C001"); // 입력하십시오!
- model.setFocus("ipt_hometel") ;
- return ;
- }
- ]]>
- </script>
- </input>
- <input id="ipt_moohontel" ref="/root/main/newpatientinfo/patinfo/ptbs_mpphontel" class="input_default" maxlength="13" style="left:86px; top:125px; width:211px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if( !isNull(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_mpphontel")) && model.getValue("/root/main/newpatientinfo/patinfo/ptbs_mpphontel") != "-") {
- if(getStringLength(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_mpphontel")) < 10 ||
- getStringLength(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_mpphontel")) > 13 ||
- isMobileTelNo(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_mpphontel").substr(0, 2)) == false) {
- messageBox("올바른 휴대전화번호를","C001"); // 입력하십시오!
- model.setFocus("ipt_moohontel") ;
- return ;
- }
- if(getStringLength(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_mpphontel")) == 10) {
- model.setValue("/root/main/newpatientinfo/patinfo/ptbs_mpphontel", ipt_moohontel.value.substr(0,3) + "-" +
- ipt_moohontel.value.substr(3,3) + "-" +
- ipt_moohontel.value.substr(6,4)) ;
- } else if(getStringLength(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_mpphontel")) == 11) {
- model.setValue("/root/main/newpatientinfo/patinfo/ptbs_mpphontel", ipt_moohontel.value.substr(0,3) + "-" +
- ipt_moohontel.value.substr(3,4) + "-" +
- ipt_moohontel.value.substr(7,4)) ;
- }
- ipt_moohontel.refresh();
- //model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if((event.keyCode <48 || (event.keyCode > 57 && event.keyCode < 96 ) || event.keyCode > 105) && (event.keyCode != 8 && event.keyCode != 13 && event.keyCode != 46)) {
- messageBox("숫자만","C001"); // 입력하십시오!
- model.setFocus("ipt_moohontel") ;
- return ;
- }
- ]]>
- </script>
- </input>
- <line id="line47" class="line_3" style="x1:-1px; y1:146px; x2:297px; y2:146px; "/>
- <output id="output8" ref="/root/main/newpatientinfo/patinfo/ptbs_pid" visibility="visible" style="left:183px; top:2px; width:110px; height:19px; text-align:center; "/>
- <button id="btn_savenewpat" class="btn5_letter2" style="left:106px; top:151px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(getStringLength(ipt_hngnm.value) == 0) {
- messageBox("환자성명을","C001"); // 입력하십시오!
- return ;
- }
- var retMsg = messageBox("신환등록을", "Q004"); // 실행 하시겠습니까? yes=6, no=7
- if(retMsg != "6") {
- return ;
- }
- //******************************************************************************************************
- // 0.주민번호로 신환유무를 체크한다.
- //******************************************************************************************************
- submit("TRMNF00118");
- if(model.getValue("/root/main/newpatientflag/newpatientyn/cnt") == 0) { // 원무에 등록되지 않은 신환환자일 경우.
- model.setValue("/root/main/newpatientinfo/patinfo/ptbs_flag", "I"); // 환자기본정보('I' 추가 , 'U' 갱신)
- // model.refresh();
- // TXMNF00110 -->reqInsNewPatient
- //******************************************************************************************************
- // 1.신환일 경우 환자번호를 따온다. : pam/opatmngtmgr
- // 2.신환환자 등록모듈을 호출한다. : COMPONENT/PAM/PAMLIB/PATINFOMNGT
- //******************************************************************************************************
- submit("TXMNF00110", false);
- if(rdo_kind.value == "2") { // 본당인 경우 신환등록 이후 가정간호 환자정보 저장 및 가정간호대상자로 등록 허용
- var retMsg = messageBox("본당 가정간호대상자로 등록", "Q004"); // 실행 하시겠습니까? yes=6, no=7
- if(retMsg != "6") {
- grp_newpatientinput.visible = false;
- return ;
- }
- //******************************************************************************************************
- // 0.주민번호로 신환등록번호를 조회한다.
- //******************************************************************************************************
- submit("TRMNF00118");
- if(getStringLength(model.getValue("/root/main/newpatientflag/newpatientyn/pid")) == 0) {
- messageBox("주민등록번호에 해당하는 환자등록번호를 조회", "E001"); // 할 수 없습니다.
- grp_newpatientinput.visible = false;
- return ;
- }
- model.setValue("/root/main/newpatientinfo/patinfo/ptbs_pid", model.getValue("/root/main/newpatientflag/newpatientyn/pid"));
- model.setValue("/root/main/patinfo/patinforesult/pid", model.getValue("/root/main/newpatientflag/newpatientyn/pid"));
- model.setValue("/root/main/patinfo/patinforesult/hngnm", ipt_hngnm.value);
- model.setValue("/root/main/patinfo/patinforesult/sex", cmb_sex.value + "/" + getFullAge(ipt_brthdd.value));
- model.setValue("/root/main/patinfo/patinforesult/telno1", ipt_hometel.value);
- model.setValue("/root/main/patinfo/patinforesult/telno2", "-");
- model.setValue("/root/main/patinfo/patinforesult/cphone1owner", ipt_hngnm.value);
- model.setValue("/root/main/patinfo/patinforesult/cphone1", ipt_moohontel.value);
- model.setValue("/root/main/patinfo/patinforesult/cphone2owner", "" );
- model.setValue("/root/main/patinfo/patinforesult/cphone2", "-");
- model.setValue("/root/main/patinfo/patinforesult/reqdd", "");
- model.setValue("/root/main/patinfo/patinforesult/reqdeptcd", ""); // 의뢰진료과 없음(의뢰서 없이 직접 가정간호 등록하므로)
- model.setValue("/root/main/patinfo/patinforesult/reqdrid", ""); // 의뢰의사 없음(의뢰서 없이 직접 가정간호 등록하므로)
- model.setValue("/root/main/patinfo/patinforesult/patflag", "2"); // 본당 무료/기타 환자에 대해서만 의뢰서 없이 직접 가정간호 등록을 허용하므로
- model.setValue("/root/main/patinfo/patinforesult/insdrrgstno", model.getValue(" /root/main/newpatientinfo/patinfo/ptbs_rrgstno1") + "-" + model.getValue(" /root/main/newpatientinfo/patinfo/ptbs_rrgstno2"));
- model.setValue("/root/main/patinfo/patinforesult/formrecseq", "0"); // 산환등록은 서식번호가 없으므로 '0'
- model.setValue("/root/main/patinfo/patinforesult/patcareflag", "H"); // 산환등록은 서식번호가 없으므로 '0'
- if(combo5.value == '-'){
- model.setValue("/root/main/patinfo/patinforesult/churchcd", getUserInfo("dutplcecd")); // 본당 세팅
- }else{
- combo12.value = combo5.value ; // 본당 설정
- }
- combo1.value = "2" ; // 본당 무료환자로 설정(1:등록, 2:무료, 3:기타)
- if(combo7.value == '%'){
- model.setValue("/root/main/patinfo/patinforesult/chrgnursid2", getUserId());
- }else{
- combo13.value = combo7.value ; // 본당 담당간호사
- }
- gNewPat = "Y" ; // 신환등록 시 본당 가정간호환자 등록여부 설정
- btn_save.disabled = false ; // 저장버튼 활성화
- btn_confirm.disabled = true ; // 확정버튼 비활성화
- model.makeValue("/root/main/patinfo/patinforesult/isnewpat", "Y"); // 본당 신환등록여부 구분
- model.makeValue("/root/main/patinfo/patinforesult/rereqyn", "N"); // 재의뢰 여부 구분
- // 신환등록일때는 구분자가 없으므로
- model.makeValue("/root/main/patinfo/patinforesult/rereqyn", "N"); // 재의뢰 여부 구분
- // 본당 신규등록시는 가정간호만 등록되므로 2009.04.02
- model.makeValue("/root/main/patinfo/patinforesult/patcareflag", "H");
- model.makeValue("/root/main/patinfo/patinforesult/chrgnursid", getUserId()); // reqInsPatRegInfo()에 공통remark저장하는부분 때문에 chrgnursid null 값 넘어가 에러 나는 것 때문에 수정 (2009.11.05 hhm)
-
- // 본당 가정간호 환자 대상자 등록(INSERT)
- submit("TXMNF00103");
- model.setValue("/root/main/patinfo/patinforesult/pid", model.getValue("/root/temp/patinfo/patinfo/pid"));
- model.setValue("/root/main/patinfo/patinforesult/inptdt", model.getValue("/root/temp/patinfo/patinfo/inptdt"));
- model.setValue("/root/main/patinfo/patinforesult/instcd", model.getValue("/root/temp/patinfo/patinfo/instcd"));
-
- grp_newpatientinput.visible = false;
- model.setFocus("input30") ; // 주소입력란 포커스On
- } else {
- // 환자정보 재조회
- grd_visitlst.dispatch("onclick");
- }
- grp_newpatientinput.visible = false;
- } else { //원무에 이미등록된 환자일 경우
- messageBox("이미 등록된 환자", "E008"); // 입니다.
- var retMsg = messageBox("본당 가정간호대상자로 등록", "Q004"); // 실행 하시겠습니까? yes=6, no=7
- if(retMsg != "6") {
- grp_newpatientinput.visible = false;
- return ;
- }
- model.setValue("/root/main/newpatientinfo/patinfo/ptbs_pid", model.getValue("/root/main/newpatientflag/newpatientyn/pid"));
- model.setValue("/root/main/patinfo/patinforesult/pid", model.getValue("/root/main/newpatientflag/newpatientyn/pid"));
- model.setValue("/root/main/patinfo/patinforesult/hngnm", ipt_hngnm.value);
- model.setValue("/root/main/patinfo/patinforesult/sex", cmb_sex.value + "/" + getFullAge(ipt_brthdd.value));
- model.setValue("/root/main/patinfo/patinforesult/telno1", ipt_hometel.value);
- model.setValue("/root/main/patinfo/patinforesult/telno2", "-");
- model.setValue("/root/main/patinfo/patinforesult/cphone1owner", ipt_hngnm.value);
- model.setValue("/root/main/patinfo/patinforesult/cphone1", ipt_moohontel.value);
- model.setValue("/root/main/patinfo/patinforesult/cphone2owner", "" );
- model.setValue("/root/main/patinfo/patinforesult/cphone2", "-");
- model.setValue("/root/main/patinfo/patinforesult/reqdd", "");
- model.setValue("/root/main/patinfo/patinforesult/reqdeptcd", ""); // 의뢰진료과 없음(의뢰서 없이 직접 가정간호 등록하므로)
- model.setValue("/root/main/patinfo/patinforesult/reqdrid", ""); // 의뢰의사 없음(의뢰서 없이 직접 가정간호 등록하므로)
- model.setValue("/root/main/patinfo/patinforesult/patflag", "2"); // 본당 무료/기타 환자에 대해서만 의뢰서 없이 직접 가정간호 등록을 허용하므로
- model.setValue("/root/main/patinfo/patinforesult/insdrrgstno", model.getValue(" /root/main/newpatientinfo/patinfo/ptbs_rrgstno1") + "-" + model.getValue(" /root/main/newpatientinfo/patinfo/ptbs_rrgstno2"));
- model.setValue("/root/main/patinfo/patinforesult/formrecseq", "0"); // 산환등록은 서식번호가 없으므로 '0'
- if(combo5.value == '-'){
- model.setValue("/root/main/patinfo/patinforesult/churchcd", getUserInfo("dutplcecd")); // 본당 세팅
- }else{
- combo12.value = combo5.value ; // 본당 설정
- }
- combo1.value = "2" ; // 본당 무료환자로 설정(1:등록, 2:무료, 3:기타)
- if(combo7.value == '%'){
- model.setValue("/root/main/patinfo/patinforesult/chrgnursid2", getUserId());
- }else{
- combo13.value = combo7.value ; // 본당 담당간호사
- }
- gNewPat = "Y" ; // 신환등록 시 본당 가정간호환자 등록여부 설정
- btn_save.disabled = false ; // 저장버튼 활성화
- btn_confirm.disabled = true ; // 확정버튼 비활성화
- model.makeValue("/root/main/patinfo/patinforesult/isnewpat", "Y"); // 본당 신환등록여부 구분
- model.makeValue("/root/main/patinfo/patinforesult/rereqyn", "N"); // 재의뢰 여부 구분
- // 본당 신규등록시는 가정간호만 등록되므로 2009.04.02
- model.makeValue("/root/main/patinfo/patinforesult/patcareflag", "H");
- model.makeValue("/root/main/patinfo/patinforesult/chrgnursid", getUserId()); // reqInsPatRegInfo()에 공통remark저장하는부분 때문에 chrgnursid null 값 넘어가 에러 나는 것 때문에 수정 (2009.11.05 hhm)
-
- // 본당 가정간호 환자 대상자 등록(INSERT)
- submit("TXMNF00103");
- model.setValue("/root/main/patinfo/patinforesult/pid", model.getValue("/root/temp/patinfo/patinfo/pid"));
- model.setValue("/root/main/patinfo/patinforesult/inptdt", model.getValue("/root/temp/patinfo/patinfo/inptdt"));
- model.setValue("/root/main/patinfo/patinforesult/instcd", model.getValue("/root/temp/patinfo/patinfo/instcd"));
- // ipt_pid.refresh();
- ipt_inptd.
- grp_newpatientinput.visible = false;
- model.setFocus("input30") ; // 주소입력란 포커스On
- }
- ]]>
- </script>
- </button>
- <button id="btn_closenewpat" class="btn2_letter2" style="left:151px; top:151px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_newpatientinput.visible = false;
- ]]>
- </script>
- </button>
- <button id="button19" class="icon_search" style="left:274px; top:54px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeNode("/root/main/patinfo/patinfolist");
- //원무팀의 환자명을 받아오는 팝업창을 띄운다.
- modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
- //input박스에 데이타를 받아온다.
- var popupendflag = model.getValue("/root/main/popupendflag");
- if (popupendflag == "ok"){
- if(rdo_kind.value == 2) { // 본당인 경우
- var retMsg = messageBox("본당 가정간호대상자로 등록", "Q004"); // 실행 하시겠습니까? yes=6, no=7
- if(retMsg != "6") {
- grp_newpatientinput.visible = false;
- return ;
- }
- model.setValue("/root/main/patinfo/patinforesult/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/main/patinfo/patinforesult/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/main/patinfo/patinforesult/sex", model.getValue("/root/main/patinfo/patinfolist/sex") + "/" + model.getValue("/root/main/patinfo/patinfolist/age"));
- model.setValue("/root/main/patinfo/patinforesult/address", model.getValue("/root/main/patinfo/patinfolist/detladdr"));
- model.setValue("/root/main/patinfo/patinforesult/telno1", model.getValue("/root/main/patinfo/patinfolist/hometel"));
- model.setValue("/root/main/patinfo/patinforesult/telno2", "-");
- model.setValue("/root/main/patinfo/patinforesult/cphone1owner", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/main/patinfo/patinforesult/cphone1", model.getValue("/root/main/patinfo/patinfolist/mpphontel"));
- model.setValue("/root/main/patinfo/patinforesult/cphone2owner", "" );
- model.setValue("/root/main/patinfo/patinforesult/cphone2", "-");
- model.setValue("/root/main/patinfo/patinforesult/reqdd", getCurrentDate());
- model.setValue("/root/main/patinfo/patinforesult/reqdeptcd", ""); // 의뢰진료과 없음(의뢰서 없이 직접 가정간호 등록하므로)
- model.setValue("/root/main/patinfo/patinforesult/reqdrid", ""); // 의뢰의사 없음(의뢰서 없이 직접 가정간호 등록하므로)
- model.setValue("/root/main/patinfo/patinforesult/patflag", "2"); // 본당 무료/기타 환자에 대해서만 의뢰서 없이 직접 가정간호 등록을 허용하므로
- model.setValue("/root/main/patinfo/patinforesult/insdrrgstno", model.getValue(" /root/main/newpatientinfo/patinfo/ptbs_rrgstno1") + "-" + model.getValue(" /root/main/newpatientinfo/patinfo/ptbs_rrgstno2"));
- model.setValue("/root/main/patinfo/patinforesult/formrecseq", "0"); // 산환등록은 서식번호가 없으므로 '0'
- if(combo5.value == '-'){
- model.setValue("/root/main/patinfo/patinforesult/churchcd", getUserInfo("dutplcecd")); // 본당 세팅
- }else{
- combo12.value = combo5.value ; // 본당 설정
- }
- combo1.value = "2" ; // 본당 무료환자로 설정(1:등록, 2:무료, 3:기타)
- if(combo7.value == '%'){
- model.setValue("/root/main/patinfo/patinforesult/chrgnursid2", getUserId());
- }else{
- combo13.value = combo7.value ; // 본당 담당간호사
- }
- gNewPat = "Y" ; // 신환등록 시 본당 가정간호환자 등록여부 설정
- btn_save.disabled = false ; // 저장버튼 활성화
- btn_confirm.disabled = true ; // 확정버튼 비활성화
- model.makeValue("/root/main/patinfo/patinforesult/isnewpat", "Y"); // 본당 신환등록여부 구분
- model.makeValue("/root/main/patinfo/patinforesult/rereqyn", "N"); // 재의뢰 여부 구분
- // 본당 신규등록시는 가정간호만 등록되므로 2009.04.02
- model.setValue("/root/main/patinfo/patinforesult/patcareflag", "H");
- //model.refresh();
- // 본당 가정간호 환자 대상자 등록(INSERT)
- submit("TXMNF00103");
- model.setValue("/root/main/patinfo/patinforesult/pid", model.getValue("/root/temp/patinfo/patinfo/pid"));
- model.setValue("/root/main/patinfo/patinforesult/inptdt", model.getValue("/root/temp/patinfo/patinfo/inptdt"));
- model.setValue("/root/main/patinfo/patinforesult/instcd", model.getValue("/root/temp/patinfo/patinfo/instcd"));
- //model.refresh();
- grp_newpatientinput.visible = false;
- model.setFocus("input30") ; // 주소입력란 포커스On
- } else {
- output8.value = model.getValue("/root/main/patinfo/patinfolist/pid") ;
- ipt_rrgstno1.value = model.getValue("/root/main/patinfo/patinfolist/rrgstno1") ;
- ipt_rrgstno2.value = model.getValue("/root/main/patinfo/patinfolist/rrgstno2") ;
- ipt_hngnm.value = model.getValue("/root/main/patinfo/patinfolist/hngnm") ;
- ipt_brthdd.value = model.getValue("/root/main/patinfo/patinfolist/brthdd") ;
- cmb_sex.value = model.getValue("/root/main/patinfo/patinfolist/sex") ;
- ipt_hometel.value = model.getValue("/root/main/patinfo/patinfolist/hometel") ;
- ipt_moohontel.value = model.getValue("/root/main/patinfo/patinfolist/mpphontel") ;
- //model.refresh() ;
- btn_savenewpat.disabled = true ;
- }
- } else {
- fClearChildNodeH("/root/main/newpatientinfo/patinfo");
- model.setFocus("ipt_rrgstno1");
- btn_savenewpat.disabled = false ;
- }
- ]]>
- </script>
- </button>
- <shape id="roundrect2" appearance="roundrect" style="left:3px; top:176px; width:286px; height:25px; "/>
- <caption id="caption20" style="left:13px; top:182px; width:266px; height:16px; font-weight:bold; ">* 신규등록시 가정간호 환자로 등록됩니다.</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|