SMMNF00100_가정간호메인.xrw 351 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>가정간호 메인</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <item>
  10. <weekday>
  11. </weekday>
  12. <cycle>
  13. </cycle>
  14. <chargenurse>
  15. <nurselist>
  16. </nurselist>
  17. </chargenurse>
  18. <church>
  19. <churchlist>
  20. </churchlist>
  21. </church>
  22. <churchregkind>
  23. <churchregkindlist>
  24. <cd>1</cd>
  25. <nm>등록</nm>
  26. </churchregkindlist>
  27. <churchregkindlist>
  28. <cd>2</cd>
  29. <nm>무료</nm>
  30. </churchregkindlist>
  31. <churchregkindlist>
  32. <cd>3</cd>
  33. <nm>기타</nm>
  34. </churchregkindlist>
  35. </churchregkind>
  36. <healcntryn>
  37. <healcntrynlist>
  38. <cd>Y</cd>
  39. <nm>Y</nm>
  40. </healcntrynlist>
  41. <healcntrynlist>
  42. <cd>N</cd>
  43. <nm>N</nm>
  44. </healcntrynlist>
  45. </healcntryn>
  46. <reqcancelreason/>
  47. <dctype>
  48. <dctypelist>
  49. <nm/>
  50. <cd/>
  51. </dctypelist>
  52. <qualflaglist>
  53. <nm/>
  54. <cd/>
  55. </qualflaglist>
  56. <vdctypelist>
  57. <nm/>
  58. <cd/>
  59. </vdctypelist>
  60. </dctype>
  61. <visitarea>
  62. <visitarealist/>
  63. </visitarea>
  64. </item>
  65. <hidden>
  66. <calendar>
  67. <weeklist>
  68. <list>
  69. <sun/>
  70. <mon/>
  71. <tue/>
  72. <wed/>
  73. <thu/>
  74. <fri/>
  75. <sat/>
  76. <sun_memo/>
  77. <mon_memo/>
  78. <tue_memo/>
  79. <wed_memo/>
  80. <thu_memo/>
  81. <fri_memo/>
  82. <sat_memo/>
  83. </list>
  84. <list>
  85. <sun/>
  86. <mon/>
  87. <tue/>
  88. <wed/>
  89. <thu/>
  90. <fri/>
  91. <sat/>
  92. <sun_memo/>
  93. <mon_memo/>
  94. <tue_memo/>
  95. <wed_memo/>
  96. <thu_memo/>
  97. <fri_memo/>
  98. <sat_memo/>
  99. </list>
  100. <list>
  101. <sun/>
  102. <mon/>
  103. <tue/>
  104. <wed/>
  105. <thu/>
  106. <fri/>
  107. <sat/>
  108. <sun_memo/>
  109. <mon_memo/>
  110. <tue_memo/>
  111. <wed_memo/>
  112. <thu_memo/>
  113. <fri_memo/>
  114. <sat_memo/>
  115. </list>
  116. <list>
  117. <sun/>
  118. <mon/>
  119. <tue/>
  120. <wed/>
  121. <thu/>
  122. <fri/>
  123. <sat/>
  124. <sun_memo/>
  125. <mon_memo/>
  126. <tue_memo/>
  127. <wed_memo/>
  128. <thu_memo/>
  129. <fri_memo/>
  130. <sat_memo/>
  131. </list>
  132. <list>
  133. <sun/>
  134. <mon/>
  135. <tue/>
  136. <wed/>
  137. <thu/>
  138. <fri/>
  139. <sat/>
  140. <sun_memo/>
  141. <mon_memo/>
  142. <tue_memo/>
  143. <wed_memo/>
  144. <thu_memo/>
  145. <fri_memo/>
  146. <sat_memo/>
  147. </list>
  148. <list>
  149. <sun/>
  150. <mon/>
  151. <tue/>
  152. <wed/>
  153. <thu/>
  154. <fri/>
  155. <sat/>
  156. <sun_memo/>
  157. <mon_memo/>
  158. <tue_memo/>
  159. <wed_memo/>
  160. <thu_memo/>
  161. <fri_memo/>
  162. <sat_memo/>
  163. </list>
  164. </weeklist>
  165. <year/>
  166. <month/>
  167. </calendar>
  168. <cond/>
  169. <hidden>
  170. <inptinfo>
  171. <pid/>
  172. <indd/>
  173. <wardcd/>
  174. <roomcd/>
  175. <dschdt/>
  176. <orddeptcd/>
  177. <instcd/>
  178. <cretno/>
  179. </inptinfo>
  180. </hidden>
  181. </hidden>
  182. <main>
  183. <condition>
  184. <pid/>
  185. <hngnm>
  186. </hngnm>
  187. </condition>
  188. <grd_visitlst>
  189. <visitlist>
  190. <no/>
  191. <careflag/>
  192. <procstatus/>
  193. <pid/>
  194. <hngnm/>
  195. <sex/>
  196. <diagname/>
  197. <inptstat/>
  198. <headquarter/>
  199. <kind/>
  200. <receiptflag/>
  201. <inptdt/>
  202. <diagcd/>
  203. <instcd/>
  204. <result/>
  205. <rgstpatstat/>
  206. <reqdd/>
  207. <reqdeptnm/>
  208. <reqdrnm/>
  209. <reqdeptcd/>
  210. <reqdrid/>
  211. <formrecseq/>
  212. <rereqyn/>
  213. <patcareflag/>
  214. <orddd/>
  215. <cretno/>
  216. <vorddd/>
  217. </visitlist>
  218. </grd_visitlst>
  219. <grd_reqlist>
  220. <reqlist>
  221. <no/>
  222. <careflag/>
  223. <hcareflag/>
  224. <procstatus/>
  225. <detail/>
  226. <hisrecord/>
  227. <pid/>
  228. <hngnm/>
  229. <sex/>
  230. <reqdd/>
  231. <churchcd/>
  232. <churchnm/>
  233. <kind/>
  234. <reqdeptnm/>
  235. <reqdrnm/>
  236. <reqmode/>
  237. <reqdeptcd/>
  238. <reqdrid/>
  239. <instcd/>
  240. <formrecseq/>
  241. <cnstdiagcd/>
  242. <cnstdiaghngnm/>
  243. <inptdt/>
  244. <inptstat/>
  245. <carerec/>
  246. <indd/>
  247. <cretno/>
  248. <inptorddeptcd/>
  249. <reqtm/>
  250. <patcareflag/>
  251. <orddd/>
  252. <cretno/>
  253. </reqlist>
  254. </grd_reqlist>
  255. <grd_endlist>
  256. <endlist>
  257. <no/>
  258. <careflag/>
  259. <procstatus/>
  260. <pid/>
  261. <hngnm/>
  262. <sex/>
  263. <enddd/>
  264. <endreason/>
  265. <churchnm/>
  266. <kind/>
  267. <fromdd/>
  268. <todd/>
  269. <visitcnt/>
  270. <reqdd/>
  271. <reqdeptnm/>
  272. <reqdrnm/>
  273. <reqdeptcd/>
  274. <reqdrid/>
  275. <formrecseq/>
  276. <patcareflag/>
  277. <orddd/>
  278. <cretno/>
  279. <vorddd/>
  280. </endlist>
  281. </grd_endlist>
  282. <grd_explist>
  283. <explist>
  284. <no/>
  285. <careflag/>
  286. <procstatus/>
  287. <pid/>
  288. <hngnm/>
  289. <sex/>
  290. <diagname/>
  291. <expdd/>
  292. <churchnm/>
  293. <kind/>
  294. <receiptflag/>
  295. <inptdt/>
  296. <diagcd/>
  297. <instcd/>
  298. <churchcd/>
  299. <result/>
  300. <rgstpatstat/>
  301. <reqdd/>
  302. <reqdeptnm/>
  303. <reqdrnm/>
  304. <reqdeptcd/>
  305. <reqdrid/>
  306. <inptstat/>
  307. <formrecseq/>
  308. <rereqyn/>
  309. <patcareflag/>
  310. <orddd/>
  311. <cretno/>
  312. <vorddd/>
  313. </explist>
  314. </grd_explist>
  315. <grd_patvisitlst>
  316. <patvisitlist>
  317. <no/>
  318. <careflag/>
  319. <procstatus/>
  320. <pid/>
  321. <hngnm/>
  322. <sex/>
  323. <cnstdiagname/>
  324. <inptstat/>
  325. <headquarter/>
  326. <kind/>
  327. <receiptflag/>
  328. <inptdt/>
  329. <cnstdiagcd/>
  330. <instcd/>
  331. <result/>
  332. <rgstpatstat/>
  333. <reqdd/>
  334. <reqdeptnm/>
  335. <reqdrnm/>
  336. <reqdeptcd/>
  337. <reqdrid/>
  338. <formrecseq/>
  339. <rereqyn/>
  340. <patcareflag/>
  341. <orddd/>
  342. <cretno/>
  343. <rereqyn/>
  344. <enddd/>
  345. <endreason/>
  346. <fromdd/>
  347. <todd/>
  348. <visitcnt/>
  349. <asreqdeptcd/>
  350. <porddd/>
  351. <pcretno/>
  352. <acptseqno/>
  353. <orgorddd/>
  354. <detail/>
  355. <hisrecord/>
  356. <expenddd/>
  357. <endscheflag/>
  358. <inhospyn/>
  359. </patvisitlist>
  360. </grd_patvisitlst>
  361. <patinfo>
  362. <patinforesult>
  363. <pid/>
  364. <inptdt/>
  365. <instcd/>
  366. <hngnm/>
  367. <rrgstno/>
  368. <sex/>
  369. <address/>
  370. <telno1/>
  371. <telno2/>
  372. <cphone1owner/>
  373. <cphone1/>
  374. <cphone2owner/>
  375. <cphone2/>
  376. <chrgnursid/>
  377. <dctype/>
  378. <dcreason/>
  379. <requnit/>
  380. <comremark/>
  381. <remark/>
  382. <visitpridflag/>
  383. <visitpridtimes/>
  384. <visitdwflag/>
  385. <churchcd/>
  386. <chrrgstkind/>
  387. <healcntryn/>
  388. <healcntrnm/>
  389. <rgstdd/>
  390. <enddd/>
  391. <endflag/>
  392. <reqdd/>
  393. <reqdeptcd/>
  394. <reqdrid/>
  395. <rereqyn/>
  396. <patflag/>
  397. <cancelflag/>
  398. <cancelerid/>
  399. <canceltime/>
  400. <cancelreason/>
  401. <oldchrrgstkind/>
  402. <chrgnursid1/>
  403. <chrgnursid2/>
  404. <chrgnursid3/>
  405. <lastreqdeptnm/>
  406. <lastreqdrnm/>
  407. <lastreqmode/>
  408. <lastreqdd/>
  409. <patclass/>
  410. <cnstdiagcd/>
  411. <cnstdiaghngnm/>
  412. <cnstdiagconcat/>
  413. <diagcd/>
  414. <diaghngnm/>
  415. <diagconcat/>
  416. <restamt/>
  417. <enddd/>
  418. <endreasonflag/>
  419. <endreason/>
  420. <endtypeflag/>
  421. <endtype/>
  422. <endtyperemark/>
  423. <endstatflag/>
  424. <endstat/>
  425. <rgstpatstat/>
  426. <endpatstat/>
  427. <endsummary/>
  428. <insukind/>
  429. <insukindnm/>
  430. <insuno/>
  431. <insdnm/>
  432. <insdrela/>
  433. <insdrelanm/>
  434. <insucd/>
  435. <insucdnm/>
  436. <insdrrgstno/>
  437. <isnewpat/>
  438. <zipcd1/>
  439. <zipcd2/>
  440. <zipcdseq/>
  441. <formrecseq/>
  442. <endnursenm/>
  443. <dctypenum/>
  444. <patcareflag/>
  445. <gradeflag/>
  446. <qualflag/>
  447. <longtermno/>
  448. <vdctypenum/>
  449. <vdctype/>
  450. <vreqdd/>
  451. <vorddd/>
  452. <vcretno/>
  453. <chrrgstkindRgstYN/>
  454. <chnginptdt/>
  455. <vstarea/>
  456. <areadtl/>
  457. </patinforesult>
  458. <outmedinfo>
  459. <forddrid/>
  460. <forddeptcd/>
  461. <fdepthngnm/>
  462. <fdeptengnm/>
  463. <fusernm/>
  464. <forddd/>
  465. <lorddrid/>
  466. <lorddeptcd/>
  467. <ldepthngnm/>
  468. <ldeptengnm/>
  469. <lusernm/>
  470. <lorddd/>
  471. </outmedinfo>
  472. <visitaccount>
  473. <totvisitcnt/>
  474. <monvisitcnt/>
  475. <yearvisitcnt/>
  476. <vtotvisitcnt/>
  477. <vmonvisitcnt/>
  478. <vyearvisitcnt/>
  479. </visitaccount>
  480. <reqinfo>
  481. <firstreqdd/>
  482. <lastreqdd/>
  483. <enddd/>
  484. </reqinfo>
  485. <visitdate>
  486. <firstvisitdd/>
  487. <lastvisitdd/>
  488. <vfirstvisitdd/>
  489. <vlastvisitdd/>
  490. </visitdate>
  491. <previsitlist>
  492. <pid/>
  493. <visitdd/>
  494. <inptdt/>
  495. <instcd/>
  496. </previsitlist>
  497. <visitcount>
  498. <visitdd/>
  499. <cnt/>
  500. </visitcount>
  501. <patinfolist/>
  502. <patinsukind>
  503. <insukind/>
  504. <insukindnm/>
  505. <insuno/>
  506. <insucd/>
  507. <insucdnm/>
  508. <insdrela/>
  509. <insdrelanm/>
  510. <insdnm/>
  511. <insdrrgstno/>
  512. <seqno/>
  513. </patinsukind>
  514. </patinfo>
  515. <endinfo/>
  516. <mnginfo1>
  517. </mnginfo1>
  518. <mnginfo3>
  519. </mnginfo3>
  520. <mnginfo4>
  521. </mnginfo4>
  522. <grd_previsitlist>
  523. <previsitlist>
  524. <pid/>
  525. <visitdd/>
  526. <inptdt/>
  527. <instcd/>
  528. <careflagnm/>
  529. <patcareflag/>
  530. </previsitlist>
  531. </grd_previsitlist>
  532. <grd_viewprevisitlist>
  533. </grd_viewprevisitlist>
  534. <visitinfo>
  535. <pid/>
  536. <inptdt/>
  537. <instcd/>
  538. <hngnm/>
  539. <sex/>
  540. <lastvisitdd/>
  541. <visitpridflag/>
  542. <visitpridtimes/>
  543. <visitdwflag/>
  544. <vvisitpridflag/>
  545. <vvisitpridtimes/>
  546. <vvisitdwflag/>
  547. <patcareflag/>
  548. </visitinfo>
  549. <checkvalue>
  550. <level1/>
  551. <level2/>
  552. <level3/>
  553. </checkvalue>
  554. <visitcounts>
  555. <visitcount>
  556. <visitdd/>
  557. <cnt/>
  558. </visitcount>
  559. <caldatainfo>
  560. <basedd/>
  561. <dutflag/>
  562. <day/>
  563. <dw/>
  564. <weekno/>
  565. </caldatainfo>
  566. </visitcounts>
  567. <procstat>
  568. <procstatcnt>
  569. <previsitlistcnt/>
  570. <reqlistcnt/>
  571. <visitlistcnt/>
  572. <endlistcnt/>
  573. </procstatcnt>
  574. </procstat>
  575. <insuinfo>
  576. <patinsuinfo>
  577. </patinsuinfo>
  578. </insuinfo>
  579. <endinfo>
  580. </endinfo>
  581. <expflag/>
  582. <existinfo>
  583. <existyninfo>
  584. <existyn/>
  585. </existyninfo>
  586. <existordddinfo>
  587. <existordddyn/>
  588. </existordddinfo>
  589. </existinfo>
  590. <newpatientinfo>
  591. <patinfo>
  592. <ptbs_flag/>
  593. <ptbs_pid/>
  594. <ptbs_hngnm/>
  595. <ptbs_engnm/>
  596. <ptbs_rrgstno1/>
  597. <ptbs_rrgstno2/>
  598. <ptbs_brthdd/>
  599. <ptbs_sex/>
  600. <ptbs_bindpid/>
  601. <ptbs_hometel/>
  602. <ptbs_mpphontel/>
  603. <ptbs_etctel1/>
  604. <ptbs_etctel2/>
  605. <ptbs_smsaprvyn/>
  606. <ptbs_email/>
  607. <ptbs_zipcd1/>
  608. <ptbs_zipcd2/>
  609. <ptbs_zipcdseq/>
  610. <ptbs_detladdr/>
  611. <ptbs_btype/>
  612. <ptbs_rh/>
  613. <ptbs_forgeryn/>
  614. <ptbs_nati/>
  615. <ptbs_psptno/>
  616. <ptbs_recmyn/>
  617. <ptbs_recmerid/>
  618. <ptbs_recmerrela/>
  619. <ptbs_vipyn/>
  620. <ptbs_viprem/>
  621. <ptbs_religncd/>
  622. <ptbs_baptnm/>
  623. <ptbs_chchnm/>
  624. <ptbs_dethyn/>
  625. <ptbs_dethdt/>
  626. <ptbs_chosresn/>
  627. <ptbs_animyn/>
  628. <ptbs_exptresncd/>
  629. <ptbs_inhospyn/>
  630. <ptbs_handicapryn/>
  631. <ptbs_remfact/>
  632. <pidflag/>
  633. <ptbs_age/>
  634. </patinfo>
  635. </newpatientinfo>
  636. <newpatientflag>
  637. <newpatientyn>
  638. <pid/>
  639. <cnt/>
  640. </newpatientyn>
  641. </newpatientflag>
  642. <newpidinfo>
  643. <newpid>
  644. <pid/>
  645. </newpid>
  646. </newpidinfo>
  647. <outreceiptinfo>
  648. <receiptinfo>
  649. <otpt_flag/>
  650. <otpt_pid/>
  651. <otpt_orddd/>
  652. <otpt_orddeptcd/>
  653. <otpt_orddrid/>
  654. <otpt_ordtm/>
  655. <otpt_rsrvflag/>
  656. <otpt_etcordflag/>
  657. <otpt_instcd/>
  658. <otpt_pid_old/>
  659. <otpt_orddd_old/>
  660. <otpt_cretno_old/>
  661. <otpt_acptseqno_old/>
  662. <otpt_orddeptcd_old/>
  663. <otpt_orddrid_old/>
  664. <otpt_rsrvflag_old/>
  665. <sess_userid/>
  666. </receiptinfo>
  667. </outreceiptinfo>
  668. <cond>
  669. <patinfo>
  670. <pid/>
  671. <patnm/>
  672. <sex/>
  673. <orddd/>
  674. <cretno/>
  675. <orddeptcd/>
  676. <orddrid/>
  677. <instcd/>
  678. <hngnm/>
  679. <ordtype/>
  680. <patcareflag/>
  681. </patinfo>
  682. </cond>
  683. <expcounts>
  684. <expcount>
  685. <visitdd/>
  686. <cnt/>
  687. </expcount>
  688. </expcounts>
  689. <paminfo>
  690. <list>
  691. <pid/>
  692. <orddeptcd/>
  693. </list>
  694. </paminfo>
  695. <visitrecord>
  696. <recinfo>
  697. <pid/>
  698. <hngnm/>
  699. <sex/>
  700. <visitdd/>
  701. <visitnurseid/>
  702. <visitcycle/>
  703. <nextvisitdd/>
  704. <visitsttm/>
  705. <visitedtm/>
  706. <movetm/>
  707. <totcaretm/>
  708. <monvisitcnt/>
  709. <yearvisitcnt/>
  710. <totvisitcnt/>
  711. <carework/>
  712. <drnotify/>
  713. <inptdt/>
  714. <instcd/>
  715. <visitflag/>
  716. <recyn/>
  717. </recinfo>
  718. </visitrecord>
  719. <mnginfo2>
  720. </mnginfo2>
  721. <trgtmanlist>
  722. <out>
  723. <pid/>
  724. <dept>
  725. <deptcd/>
  726. </dept>
  727. <drlist>
  728. <drid/>
  729. </drlist>
  730. <orddd/>
  731. </out>
  732. </trgtmanlist>
  733. <ordinfo>
  734. <pid/>
  735. <orddd/>
  736. <orddeptcd/>
  737. <drid/>
  738. </ordinfo>
  739. <reqcancel>
  740. <reqcancelreason/>
  741. </reqcancel>
  742. <reqtrnsinfo>
  743. <reqtrnsinfo>
  744. <pidcount/>
  745. <inptdt/>
  746. </reqtrnsinfo>
  747. </reqtrnsinfo>
  748. <trgtpidinfo>
  749. <trgtpidinfo>
  750. <pidyn/>
  751. </trgtpidinfo>
  752. </trgtpidinfo>
  753. <dschpatinfo>
  754. <patinfo>
  755. <patYN/>
  756. </patinfo>
  757. </dschpatinfo>
  758. </main>
  759. <send>
  760. <visitdd/>
  761. <chrgnursid>%</chrgnursid>
  762. <kind/>
  763. <pid/>
  764. <inptdt/>
  765. <churchcd>-</churchcd>
  766. <inputvisitdd/>
  767. <currvisitdd/>
  768. <instcd/>
  769. <mode/>
  770. <cancelreason/>
  771. <chrrgstkind/>
  772. <searchkind/>
  773. <menuparameter/>
  774. <patflag/>
  775. <dockind/>
  776. <fromdd/>
  777. <todd/>
  778. <orddd/>
  779. <cretno/>
  780. <ioflag/>
  781. <dnarflag/>
  782. <sortseq/>
  783. <recflag/>
  784. <reclnkkey/>
  785. <prestdt/>
  786. <orddeptcd/>
  787. <screenid>SMMNF00100</screenid>
  788. <prcsstat/>
  789. <dctype/>
  790. <cancelreason/>
  791. <status/>
  792. <reqdd/>
  793. <reqdeptcd/>
  794. <reqdrid/>
  795. <reqtrnspid/>
  796. <careflag>*</careflag>
  797. <patcareflag/>
  798. <vorddd/>
  799. <hospflag/>
  800. </send>
  801. <temp>
  802. <cond>
  803. <list>
  804. <roomcd/>
  805. <hngnm/>
  806. <sex/>
  807. <age/>
  808. <pid/>
  809. <indd/>
  810. <instcd/>
  811. <orddeptcd/>
  812. <reqdd/>
  813. <endflag/>
  814. <medispclid/>
  815. <tel/>
  816. <mphone/>
  817. <etcphone1/>
  818. <etcphone2/>
  819. <orddrnm/>
  820. <reqdd/>
  821. <diagnm/>
  822. <patcareflag/>
  823. </list>
  824. </cond>
  825. <patinfo>
  826. <patinforesult>
  827. <dctype/>
  828. <vdctype/>
  829. </patinforesult>
  830. </patinfo>
  831. <send>
  832. <visitdd/>
  833. <chrgnursid>%</chrgnursid>
  834. <kind/>
  835. <pid/>
  836. <inptdt/>
  837. <churchcd>-</churchcd>
  838. <inputvisitdd/>
  839. <currvisitdd/>
  840. <instcd/>
  841. <mode/>
  842. <cancelreason/>
  843. <chrrgstkind/>
  844. <searchkind/>
  845. <menuparameter/>
  846. <patflag/>
  847. <dockind/>
  848. <fromdd/>
  849. <todd/>
  850. <orddd/>
  851. <cretno/>
  852. <ioflag/>
  853. <dnarflag/>
  854. <sortseq/>
  855. <recflag/>
  856. <reclnkkey/>
  857. <prestdt/>
  858. <orddeptcd/>
  859. </send>
  860. <para/>
  861. <canceldata>
  862. <nurseid/>
  863. <deptcd/>
  864. <no/>
  865. <procstatus/>
  866. <pid/>
  867. <hngnm/>
  868. <sex/>
  869. <diagname/>
  870. <expdd/>
  871. <churchnm/>
  872. <kind/>
  873. <receiptflag/>
  874. <inptdt/>
  875. <diagcd/>
  876. <instcd/>
  877. <churchcd/>
  878. <result/>
  879. <rgstpatstat/>
  880. <reqdd/>
  881. <reqdeptnm/>
  882. <reqdrnm/>
  883. <reqdeptcd/>
  884. <reqdrid/>
  885. <patcareflag/>
  886. <orddd/>
  887. <cretno/>
  888. <vitcareflag/>
  889. </canceldata>
  890. <patinfo>
  891. <patinfo>
  892. <pid/>
  893. <inptdt/>
  894. <instcd/>
  895. </patinfo>
  896. </patinfo>
  897. <visitflag>
  898. <visitflag>
  899. <visitflagyn/>
  900. </visitflag>
  901. </visitflag>
  902. <chrrgstkindinfo>
  903. <chrrgstkindresult>
  904. <chrrgstkindRsgtYN/>
  905. <pid/>
  906. <inptdt/>
  907. <careflag/>
  908. <churchnm/>
  909. <patflag/>
  910. <chrrgstkind/>
  911. </chrrgstkindresult>
  912. </chrrgstkindinfo>
  913. </temp>
  914. <codedata>
  915. <popupmenu>
  916. <grid>
  917. <item>
  918. <name>방문예정일 등록</name>
  919. <func>fPreVisitDDInsert</func>
  920. </item>
  921. <item>
  922. <name>방문예정일 변경</name>
  923. <func>fPreVisitDDUpdate</func>
  924. </item>
  925. <item>
  926. <name>방문예정일 삭제</name>
  927. <func>fPreVisitDDDelete</func>
  928. </item>
  929. </grid>
  930. <!-- 진행 리스트 오른쪽 마우스 (2008.04.21 손은연) -->
  931. <grd_cancel>
  932. <item>
  933. <name>외래접수(가정간호접수)</name>
  934. <func>fHomeCareOutAcpt</func>
  935. </item>
  936. <item>
  937. <name>시행부서 처방(교통비/방문료)</name>
  938. <func>fExecDeptOrder</func>
  939. </item>
  940. <item>
  941. <name>가정간호 처방발행(PRN처방)</name>
  942. <func>fHomeCareOrder</func>
  943. </item>
  944. <item>
  945. <name>간호처방</name>
  946. <func>fCareOrder</func>
  947. </item>
  948. <item>
  949. <name>약품번호조회/출력</name>
  950. <func>fhomecareDrug</func>
  951. </item>
  952. <item>
  953. <name>마약처방관리(불출신청/부서확인)</name>
  954. <func>fhomecareNarc</func>
  955. </item>
  956. <item>
  957. <name>바코드관리(바코드출력)</name>
  958. <func>fhomecareBarCd</func>
  959. </item>
  960. <item>
  961. <name>현장검사결과등록</name>
  962. <func>fhomecareTestRslt</func>
  963. </item>
  964. <item>
  965. <name>-</name>
  966. <func/>
  967. </item>
  968. <item>
  969. <name>가정간호 의뢰서 보기</name>
  970. <func>fHomeCareReqPaper</func>
  971. </item>
  972. <item>
  973. <name>방문간호 계약서 보기</name>
  974. <func>fVisitCarePaper</func>
  975. </item>
  976. <item>
  977. <name>퇴원시 가정간호기록조회</name>
  978. <func>fDschHomeCareRecRef</func>
  979. </item>
  980. <item>
  981. <name>OCR 서식지 출력(가정간호 동의서)</name>
  982. <func>fOCRDocuPrnt</func>
  983. </item>
  984. <item>
  985. <name>가정간호 정보조사</name>
  986. <func>fHomeCareInfoPaper</func>
  987. </item>
  988. <item>
  989. <name>방문기록</name>
  990. <func>fHomeCareVisitRec</func>
  991. </item>
  992. <item>
  993. <name>경과요약</name>
  994. <func>fHomeCareProgSmm</func>
  995. </item>
  996. <item>
  997. <name>종결요약</name>
  998. <func>fHomeCareEndSmm</func>
  999. </item>
  1000. <item>
  1001. <name>피부욕창(상처)기록</name>
  1002. <func>fHomeCareSkinWundRec</func>
  1003. </item>
  1004. <item>
  1005. <name>MMSE-K서식기록</name>
  1006. <func>fHomeCareMMSE</func>
  1007. </item>
  1008. <item>
  1009. <name>S-SDQ서식기록</name>
  1010. <func>fHomeCareSSDQ</func>
  1011. </item>
  1012. <item>
  1013. <name>-</name>
  1014. <func/>
  1015. </item>
  1016. <item>
  1017. <name>의뢰삭제</name>
  1018. <func>fHomeCarePatientCancel</func>
  1019. </item>
  1020. <item>
  1021. <name>가정간호 진료비 상세내역 조회</name>
  1022. <func>fHomeCareOrdAmtDetl</func>
  1023. </item>
  1024. <item>
  1025. <name>가정간호 선수금 수납내역 조회</name>
  1026. <func>fHomeCarePreAmt</func>
  1027. </item>
  1028. <item>
  1029. <name>가정간호 미수현황 조회</name>
  1030. <func>fHomeCareUncoAmt</func>
  1031. </item>
  1032. </grd_cancel>
  1033. <!-- 성빈센트병원_마약처방관리, MMSE-K, S-SDQ서식기록 삭제요청_20090926_SMY -->
  1034. <grd_cancel017>
  1035. <item>
  1036. <name>외래접수(가정간호접수)</name>
  1037. <func>fHomeCareOutAcpt</func>
  1038. </item>
  1039. <item>
  1040. <name>시행부서 처방(교통비/방문료)</name>
  1041. <func>fExecDeptOrder</func>
  1042. </item>
  1043. <item>
  1044. <name>가정간호 처방발행(PRN처방)</name>
  1045. <func>fHomeCareOrder</func>
  1046. </item>
  1047. <item>
  1048. <name>간호처방</name>
  1049. <func>fCareOrder</func>
  1050. </item>
  1051. <item>
  1052. <name>약품번호조회/출력</name>
  1053. <func>fhomecareDrug</func>
  1054. </item>
  1055. <!--
  1056. <item>
  1057. <name>마약처방관리(불출신청/부서확인)</name>
  1058. <func>fhomecareNarc</func>
  1059. </item>
  1060. -->
  1061. <item>
  1062. <name>바코드관리(바코드출력)</name>
  1063. <func>fhomecareBarCd</func>
  1064. </item>
  1065. <item>
  1066. <name>현장검사결과등록</name>
  1067. <func>fhomecareTestRslt</func>
  1068. </item>
  1069. <item>
  1070. <name>-</name>
  1071. <func/>
  1072. </item>
  1073. <item>
  1074. <name>가정간호 의뢰서 보기</name>
  1075. <func>fHomeCareReqPaper</func>
  1076. </item>
  1077. <item>
  1078. <name>방문간호 계약서 보기</name>
  1079. <func>fVisitCarePaper</func>
  1080. </item>
  1081. <item>
  1082. <name>퇴원시 가정간호기록조회</name>
  1083. <func>fDschHomeCareRecRef</func>
  1084. </item>
  1085. <item>
  1086. <name>OCR 서식지 출력(가정간호 동의서)</name>
  1087. <func>fOCRDocuPrnt</func>
  1088. </item>
  1089. <item>
  1090. <name>가정간호 정보조사</name>
  1091. <func>fHomeCareInfoPaper</func>
  1092. </item>
  1093. <item>
  1094. <name>방문기록</name>
  1095. <func>fHomeCareVisitRec</func>
  1096. </item>
  1097. <item>
  1098. <name>경과요약</name>
  1099. <func>fHomeCareProgSmm</func>
  1100. </item>
  1101. <item>
  1102. <name>종결요약</name>
  1103. <func>fHomeCareEndSmm</func>
  1104. </item>
  1105. <item>
  1106. <name>피부욕창(상처)기록</name>
  1107. <func>fHomeCareSkinWundRec</func>
  1108. </item>
  1109. <!--
  1110. <item>
  1111. <name>MMSE-K서식기록</name>
  1112. <func>fHomeCareMMSE</func>
  1113. </item>
  1114. <item>
  1115. <name>S-SDQ서식기록</name>
  1116. <func>fHomeCareSSDQ</func>
  1117. </item>
  1118. -->
  1119. <item>
  1120. <name>-</name>
  1121. <func/>
  1122. </item>
  1123. <item>
  1124. <name>의뢰삭제</name>
  1125. <func>fHomeCarePatientCancel</func>
  1126. </item>
  1127. <item>
  1128. <name>가정간호 진료비 상세내역 조회</name>
  1129. <func>fHomeCareOrdAmtDetl</func>
  1130. </item>
  1131. <item>
  1132. <name>가정간호 선수금 수납내역 조회</name>
  1133. <func>fHomeCarePreAmt</func>
  1134. </item>
  1135. <item>
  1136. <name>가정간호 미수현황 조회</name>
  1137. <func>fHomeCareUncoAmt</func>
  1138. </item>
  1139. </grd_cancel017>
  1140. <!-- 미확정 리스트 오른쪽 마우스 (2008.04.21 손은연) -->
  1141. <reqpaper>
  1142. <item>
  1143. <name>가정간호 의뢰서 보기</name>
  1144. <func>fHomeCareReqPaper</func>
  1145. </item>
  1146. <item>
  1147. <name>퇴원시 가정간호기록조회</name>
  1148. <func>fDschHomeCareRecRef_reqlist</func>
  1149. </item>
  1150. </reqpaper>
  1151. <!-- 당일방문예정자 리스트 오른쪽 마우스 (2008.04.21 손은연) -->
  1152. <execorder>
  1153. <item>
  1154. <name>외래접수(가정간호접수)</name>
  1155. <func>fHomeCareOutAcpt</func>
  1156. </item>
  1157. <item>
  1158. <name>시행부서 처방(교통비/방문료)</name>
  1159. <func>fExecDeptOrder</func>
  1160. </item>
  1161. <item>
  1162. <name>가정간호 처방발행(PRN처방)</name>
  1163. <func>fHomeCareOrder</func>
  1164. </item>
  1165. <item>
  1166. <name>간호처방</name>
  1167. <func>fCareOrder</func>
  1168. </item>
  1169. <item>
  1170. <name>약품번호조회/출력</name>
  1171. <func>fhomecareDrug</func>
  1172. </item>
  1173. <item>
  1174. <name>마약처방관리(불출신청/부서확인)</name>
  1175. <func>fhomecareNarc</func>
  1176. </item>
  1177. <item>
  1178. <name>바코드관리(바코드출력)</name>
  1179. <func>fhomecareBarCd</func>
  1180. </item>
  1181. <item>
  1182. <name>현장검사결과등록</name>
  1183. <func>fhomecareTestRslt</func>
  1184. </item>
  1185. <item>
  1186. <name>-</name>
  1187. <func/>
  1188. </item>
  1189. <item>
  1190. <name>가정간호 의뢰서 보기</name>
  1191. <func>fHomeCareReqPaper</func>
  1192. </item>
  1193. <item>
  1194. <name>방문간호 계약서 보기</name>
  1195. <func>fVisitCarePaper</func>
  1196. </item>
  1197. <item>
  1198. <name>퇴원시 가정간호기록조회</name>
  1199. <func>fDschHomeCareRecRef</func>
  1200. </item>
  1201. <item>
  1202. <name>OCR 서식지 출력(가정간호 동의서)</name>
  1203. <func>fOCRDocuPrnt</func>
  1204. </item>
  1205. <item>
  1206. <name>가정간호 정보조사</name>
  1207. <func>fHomeCareInfoPaper</func>
  1208. </item>
  1209. <item>
  1210. <name>방문기록</name>
  1211. <func>fHomeCareVisitRec</func>
  1212. </item>
  1213. <item>
  1214. <name>경과요약</name>
  1215. <func>fHomeCareProgSmm</func>
  1216. </item>
  1217. <item>
  1218. <name>종결요약</name>
  1219. <func>fHomeCareEndSmm</func>
  1220. </item>
  1221. <item>
  1222. <name>피부욕창(상처)기록</name>
  1223. <func> fHomeCareSkinWundRec</func>
  1224. </item>
  1225. <item>
  1226. <name>MMSE-K서식기록</name>
  1227. <func>fHomeCareMMSE</func>
  1228. </item>
  1229. <item>
  1230. <name>S-SDQ서식기록</name>
  1231. <func>fHomeCareSSDQ</func>
  1232. </item>
  1233. <item>
  1234. <name>-</name>
  1235. <func/>
  1236. </item>
  1237. <item>
  1238. <name>의뢰삭제</name>
  1239. <func>fHomeCarePatientCancel</func>
  1240. </item>
  1241. <item>
  1242. <name>가정간호 진료비 상세내역 조회</name>
  1243. <func>fHomeCareOrdAmtDetl</func>
  1244. </item>
  1245. <item>
  1246. <name>가정간호 선수금 수납내역 조회</name>
  1247. <func>fHomeCarePreAmt</func>
  1248. </item>
  1249. <item>
  1250. <name>가정간호 미수현황 조회</name>
  1251. <func>fHomeCareUncoAmt</func>
  1252. </item>
  1253. </execorder>
  1254. <!-- 성빈센트병원_마약처방관리, MMSE-K, S-SDQ서식기록 삭제요청_20090926_SMY -->
  1255. <execorder017>
  1256. <item>
  1257. <name>외래접수(가정간호접수)</name>
  1258. <func>fHomeCareOutAcpt</func>
  1259. </item>
  1260. <item>
  1261. <name>시행부서 처방(교통비/방문료)</name>
  1262. <func>fExecDeptOrder</func>
  1263. </item>
  1264. <item>
  1265. <name>가정간호 처방발행(PRN처방)</name>
  1266. <func>fHomeCareOrder</func>
  1267. </item>
  1268. <item>
  1269. <name>간호처방</name>
  1270. <func>fCareOrder</func>
  1271. </item>
  1272. <item>
  1273. <name>약품번호조회/출력</name>
  1274. <func>fhomecareDrug</func>
  1275. </item>
  1276. <!--
  1277. <item>
  1278. <name>마약처방관리(불출신청/부서확인)</name>
  1279. <func>fhomecareNarc</func>
  1280. </item>
  1281. -->
  1282. <item>
  1283. <name>바코드관리(바코드출력)</name>
  1284. <func>fhomecareBarCd</func>
  1285. </item>
  1286. <item>
  1287. <name>현장검사결과등록</name>
  1288. <func>fhomecareTestRslt</func>
  1289. </item>
  1290. <item>
  1291. <name>-</name>
  1292. <func/>
  1293. </item>
  1294. <item>
  1295. <name>가정간호 의뢰서 보기</name>
  1296. <func>fHomeCareReqPaper</func>
  1297. </item>
  1298. <item>
  1299. <name>방문간호 계약서 보기</name>
  1300. <func>fVisitCarePaper</func>
  1301. </item>
  1302. <item>
  1303. <name>퇴원시 가정간호기록조회</name>
  1304. <func>fDschHomeCareRecRef</func>
  1305. </item>
  1306. <item>
  1307. <name>OCR 서식지 출력(가정간호 동의서)</name>
  1308. <func>fOCRDocuPrnt</func>
  1309. </item>
  1310. <item>
  1311. <name>가정간호 정보조사</name>
  1312. <func>fHomeCareInfoPaper</func>
  1313. </item>
  1314. <item>
  1315. <name>방문기록</name>
  1316. <func>fHomeCareVisitRec</func>
  1317. </item>
  1318. <item>
  1319. <name>경과요약</name>
  1320. <func>fHomeCareProgSmm</func>
  1321. </item>
  1322. <item>
  1323. <name>종결요약</name>
  1324. <func>fHomeCareEndSmm</func>
  1325. </item>
  1326. <item>
  1327. <name>피부욕창(상처)기록</name>
  1328. <func> fHomeCareSkinWundRec</func>
  1329. </item>
  1330. <!--
  1331. <item>
  1332. <name>MMSE-K서식기록</name>
  1333. <func>fHomeCareMMSE</func>
  1334. </item>
  1335. <item>
  1336. <name>S-SDQ서식기록</name>
  1337. <func>fHomeCareSSDQ</func>
  1338. </item>
  1339. -->
  1340. <item>
  1341. <name>-</name>
  1342. <func/>
  1343. </item>
  1344. <item>
  1345. <name>의뢰삭제</name>
  1346. <func>fHomeCarePatientCancel</func>
  1347. </item>
  1348. <item>
  1349. <name>가정간호 진료비 상세내역 조회</name>
  1350. <func>fHomeCareOrdAmtDetl</func>
  1351. </item>
  1352. <item>
  1353. <name>가정간호 선수금 수납내역 조회</name>
  1354. <func>fHomeCarePreAmt</func>
  1355. </item>
  1356. <item>
  1357. <name>가정간호 미수현황 조회</name>
  1358. <func>fHomeCareUncoAmt</func>
  1359. </item>
  1360. </execorder017>
  1361. <kind>
  1362. <item>
  1363. <name>가정간호 의뢰서 보기</name>
  1364. <func>fHomeCareReqPaper</func>
  1365. </item>
  1366. <item>
  1367. <name>방문간호 계약서 보기</name>
  1368. <func>fVisitCarePaper</func>
  1369. </item>
  1370. <item>
  1371. <name>퇴원시 가정간호기록조회</name>
  1372. <func>fDschHomeCareRecRef</func>
  1373. </item>
  1374. <item>
  1375. <name>OCR 서식지 출력(가정간호 동의서)</name>
  1376. <func>fOCRDocuPrnt</func>
  1377. </item>
  1378. <item>
  1379. <name>가정간호 정보조사</name>
  1380. <func>fHomeCareInfoPaper</func>
  1381. </item>
  1382. <item>
  1383. <name>방문기록</name>
  1384. <func>fHomeCareVisitRec</func>
  1385. </item>
  1386. <item>
  1387. <name>종결요약</name>
  1388. <func>fHomeCareEndSmm</func>
  1389. </item>
  1390. <item>
  1391. <name>피부욕창(상처)기록</name>
  1392. <func>fHomeCareSkinWundRec</func>
  1393. </item>
  1394. <item>
  1395. <name>MMSE-K서식기록</name>
  1396. <func>fHomeCareMMSE</func>
  1397. </item>
  1398. <item>
  1399. <name>S-SDQ서식기록</name>
  1400. <func>fHomeCareSSDQ</func>
  1401. </item>
  1402. </kind>
  1403. <!-- 성빈센트병원_마약처방관리, MMSE-K, S-SDQ서식기록 삭제요청_20090926_SMY -->
  1404. <kind017>
  1405. <item>
  1406. <name>가정간호 의뢰서 보기</name>
  1407. <func>fHomeCareReqPaper</func>
  1408. </item>
  1409. <item>
  1410. <name>방문간호 계약서 보기</name>
  1411. <func>fVisitCarePaper</func>
  1412. </item>
  1413. <item>
  1414. <name>퇴원시 가정간호기록조회</name>
  1415. <func>fDschHomeCareRecRef</func>
  1416. </item>
  1417. <item>
  1418. <name>OCR 서식지 출력(가정간호 동의서)</name>
  1419. <func>fOCRDocuPrnt</func>
  1420. </item>
  1421. <item>
  1422. <name>가정간호 정보조사</name>
  1423. <func>fHomeCareInfoPaper</func>
  1424. </item>
  1425. <item>
  1426. <name>방문기록</name>
  1427. <func>fHomeCareVisitRec</func>
  1428. </item>
  1429. <item>
  1430. <name>종결요약</name>
  1431. <func>fHomeCareEndSmm</func>
  1432. </item>
  1433. <item>
  1434. <name>피부욕창(상처)기록</name>
  1435. <func>fHomeCareSkinWundRec</func>
  1436. </item>
  1437. <!--
  1438. <item>
  1439. <name>MMSE-K서식기록</name>
  1440. <func>fHomeCareMMSE</func>
  1441. </item>
  1442. <item>
  1443. <name>S-SDQ서식기록</name>
  1444. <func>fHomeCareSSDQ</func>
  1445. </item>
  1446. -->
  1447. </kind017>
  1448. <tree>
  1449. <item>
  1450. <name>아이템 추가</name>
  1451. <func>fTreeInsertItem</func>
  1452. </item>
  1453. <item>
  1454. <name>-</name>
  1455. <func/>
  1456. </item>
  1457. <item>
  1458. <name>아이템 삭제</name>
  1459. <func>fTreeDeleteItem</func>
  1460. </item>
  1461. </tree>
  1462. <exppaper>
  1463. <item>
  1464. <name>가정간호 정보조사지</name>
  1465. <func>fHomeCareInfoPaper</func>
  1466. </item>
  1467. <item>
  1468. <name>방문기록</name>
  1469. <func>fHomeCareVisitRec</func>
  1470. </item>
  1471. <item>
  1472. <name>경과요약</name>
  1473. <func>fHomeCareProgSmm</func>
  1474. </item>
  1475. <item>
  1476. <name>종결요약</name>
  1477. <func>fHomeCareEndSmm</func>
  1478. </item>
  1479. <item>
  1480. <name>피부욕창(상처)기록</name>
  1481. <func>fHomeCareSkinWundRec</func>
  1482. </item>
  1483. <item>
  1484. <name>MMSE-K서식기록</name>
  1485. <func>fHomeCareMMSE</func>
  1486. </item>
  1487. <item>
  1488. <name>S-SDQ서식기록</name>
  1489. <func>fHomeCareSSDQ</func>
  1490. </item>
  1491. </exppaper>
  1492. <!-- 성빈센트병원_마약처방관리, MMSE-K, S-SDQ서식기록 삭제요청_20090926_SMY -->
  1493. <exppaper017>
  1494. <item>
  1495. <name>가정간호 정보조사지</name>
  1496. <func>fHomeCareInfoPaper</func>
  1497. </item>
  1498. <item>
  1499. <name>방문기록</name>
  1500. <func>fHomeCareVisitRec</func>
  1501. </item>
  1502. <item>
  1503. <name>경과요약</name>
  1504. <func>fHomeCareProgSmm</func>
  1505. </item>
  1506. <item>
  1507. <name>종결요약</name>
  1508. <func>fHomeCareEndSmm</func>
  1509. </item>
  1510. <item>
  1511. <name>피부욕창(상처)기록</name>
  1512. <func>fHomeCareSkinWundRec</func>
  1513. </item>
  1514. <!--
  1515. <item>
  1516. <name>MMSE-K서식기록</name>
  1517. <func>fHomeCareMMSE</func>
  1518. </item>
  1519. <item>
  1520. <name>S-SDQ서식기록</name>
  1521. <func>fHomeCareSSDQ</func>
  1522. </item>
  1523. -->
  1524. </exppaper017>
  1525. <!-- 종결 리스트 오른쪽 마우스 (2008.04.21 손은연) -->
  1526. <endpaper>
  1527. <item>
  1528. <name>가정간호 의뢰서 보기</name>
  1529. <func>fHomeCareReqPaper</func>
  1530. </item>
  1531. <item>
  1532. <name>방문간호 계약서 보기</name>
  1533. <func>fVisitCarePaper</func>
  1534. </item>
  1535. <item>
  1536. <name>퇴원시 가정간호기록조회</name>
  1537. <func>fDschHomeCareRecRef</func>
  1538. </item>
  1539. <item>
  1540. <name>가정간호 정보조사</name>
  1541. <func>fHomeCareInfoPaper</func>
  1542. </item>
  1543. </endpaper>
  1544. </popupmenu>
  1545. <tree>
  1546. <item>
  1547. <label>1</label>
  1548. <value>1</value>
  1549. <depth>1</depth>
  1550. </item>
  1551. <item>
  1552. <label>1_1</label>
  1553. <value>1_1</value>
  1554. <depth>2</depth>
  1555. </item>
  1556. <item>
  1557. <label>1_1_1</label>
  1558. <value>1_1_1</value>
  1559. <depth>3</depth>
  1560. </item>
  1561. <item>
  1562. <label>1_1_1_1</label>
  1563. <value>1_1_1_1</value>
  1564. <depth>4</depth>
  1565. </item>
  1566. </tree>
  1567. </codedata>
  1568. <reqtransdata>
  1569. <pid/>
  1570. <pathngnm/>
  1571. <sex/>
  1572. <telno/>
  1573. <pnrn/>
  1574. <churchcd/>
  1575. <reqtrnskind/>
  1576. <reqdeptcd/>
  1577. <reqdeptnm/>
  1578. <reqdrid/>
  1579. <reqdrnm/>
  1580. <diagcd/>
  1581. <diagnm/>
  1582. <inptdt/>
  1583. <instcd/>
  1584. <rgstdd/>
  1585. <enddd/>
  1586. <endconfirmdd/>
  1587. <endnurseid/>
  1588. <endnursenm/>
  1589. <endconfirmid/>
  1590. <endconfirmnm/>
  1591. <endreasonflag/>
  1592. <endtypeflag/>
  1593. <endtyperemark/>
  1594. <endstatflag/>
  1595. <rgstpatstat/>
  1596. <endpatstat/>
  1597. <visitcnt/>
  1598. <savemode/>
  1599. <endflag/>
  1600. <patflag/>
  1601. <screenid/>
  1602. <chrrgstkind/>
  1603. <rereqyn/>
  1604. <formrecseq/>
  1605. <chrgnursid/>
  1606. <vstarea/>
  1607. </reqtransdata>
  1608. <diagtrnsdata>
  1609. <pid/>
  1610. <inptdt/>
  1611. <instcd/>
  1612. <patcareflag/>
  1613. </diagtrnsdata>
  1614. <intensivecaretrnsdata>
  1615. <pid/>
  1616. <inptdt/>
  1617. <instcd/>
  1618. <patcareflag/>
  1619. </intensivecaretrnsdata>
  1620. <endsummarytrnsdata>
  1621. <endsummaryrecord>
  1622. <pid/>
  1623. <patnm/>
  1624. <sex/>
  1625. <reqdeptcd/>
  1626. <reqdeptnm/>
  1627. <reqdrid/>
  1628. <reqdrnm/>
  1629. <diagcd/>
  1630. <diagnm/>
  1631. <inptdt/>
  1632. <instcd/>
  1633. <rgstdd/>
  1634. <enddd/>
  1635. <endconfirmdd/>
  1636. <endnurseid/>
  1637. <endnursenm/>
  1638. <endconfirmid/>
  1639. <endconfirmnm/>
  1640. <endreasonflag/>
  1641. <endtypeflag/>
  1642. <endtyperemark/>
  1643. <endstatflag/>
  1644. <rgstpatstat/>
  1645. <endpatstat/>
  1646. <visitcnt/>
  1647. <savemode/>
  1648. <endflag/>
  1649. <patflag/>
  1650. <reqdd/>
  1651. <patcareflag/>
  1652. </endsummaryrecord>
  1653. </endsummarytrnsdata>
  1654. <reqviewtrans>
  1655. <pid/>
  1656. <inptdt/>
  1657. <instcd/>
  1658. <patflag/>
  1659. <churchcd/>
  1660. <patcareflag/>
  1661. </reqviewtrans>
  1662. <iviewerdata>
  1663. <formrecseq/>
  1664. </iviewerdata>
  1665. <visitviewtrans/>
  1666. <!--(20100906 경북대) -->
  1667. <init>
  1668. <listset1>
  1669. <list>
  1670. <cdid>1</cdid>
  1671. <cdnm>병원</cdnm>
  1672. </list>
  1673. <list>
  1674. <cdid>2</cdid>
  1675. <cdnm>본당</cdnm>
  1676. </list>
  1677. <list>
  1678. <cdid>3</cdid>
  1679. <cdnm>재택</cdnm>
  1680. </list>
  1681. </listset1>
  1682. <listset>
  1683. <list>
  1684. <cdid>1</cdid>
  1685. <cdnm>병원</cdnm>
  1686. </list>
  1687. </listset>
  1688. <M0524/>
  1689. </init>
  1690. <!--(20100906 경북대) -->
  1691. </root>
  1692. </instance>
  1693. <script type="javascript">
  1694. <![CDATA[
  1695. var searchListFlag;
  1696. var gRow;
  1697. var gCol;
  1698. var gPid;
  1699. var gInptdt;
  1700. var gInstcd;
  1701. var gVisitdd;
  1702. var gPatcareflag;
  1703. var gCancelReason;
  1704. var gExistYNPreVisitSchedule;
  1705. var condparam;
  1706. var gFormRecSeq;
  1707. var gOrddd;
  1708. var gCretno;
  1709. var gOrddeptcd;
  1710. var gOrddrid;
  1711. var gNewPat;
  1712. var VincentFlag;
  1713. ]]>
  1714. </script>
  1715. <script type="javascript">
  1716. <![CDATA[
  1717. function fClearChildNodeH(pNode){
  1718. model.resetInstanceNode(pNode);
  1719. }
  1720. // 노드 클리어
  1721. function fClear(){
  1722. fInitCalendarYM();
  1723. // setCalendar();
  1724. fClearChildNodeH("/root/main/visitinfo");
  1725. fClearChildNodeH("/root/main/patinfo");
  1726. fClearChildNodeH("/root/main/grd_previsitlist");
  1727. fClearChildNodeH("/root/temp/patinfo");
  1728. fClearChildNodeH("/root/main/visitcounts");
  1729. model.removeNodeset("/root/main/grd_viewprevisitlist");
  1730. // model.refresh();
  1731. }
  1732. function isHomeTelNo(strDDD) {
  1733. // 전국 지역번호 및 인터넷전화(040, 050(평생전화 0502 포함), 070, 090) 식별번호
  1734. if(strDDD.substr(0, 2) != "02" &&
  1735. strDDD != "031" &&
  1736. strDDD != "032" &&
  1737. strDDD != "033" &&
  1738. strDDD != "041" &&
  1739. strDDD != "042" &&
  1740. strDDD != "043" &&
  1741. strDDD != "051" &&
  1742. strDDD != "052" &&
  1743. strDDD != "053" &&
  1744. strDDD != "054" &&
  1745. strDDD != "055" &&
  1746. strDDD != "061" &&
  1747. strDDD != "062" &&
  1748. strDDD != "063" &&
  1749. strDDD != "064" &&
  1750. strDDD != "040" &&
  1751. strDDD != "050" &&
  1752. strDDD != "070" &&
  1753. strDDD != "090" ) return false;
  1754. return true;
  1755. }
  1756. function isMobileTelNo(strDDD) {
  1757. // 휴대전화(010, 011, 016, 017, 018, 019) 및 무선페이징(012, 013, 014, 015) 식별번호
  1758. if( strDDD != "01") return false;
  1759. return true;
  1760. }
  1761. // 방문예정일 등록, 변경 시 이미 등록한 방문예정일자가 존재하는지 체크
  1762. function fIsPreVisitDay(sPreVD) {
  1763. var countRowData = grd_viewprevisitlist.rows ;
  1764. var ret = false ;
  1765. for(var i=1;i<=countRowData;i++) {
  1766. for(var j=1;j<=4;j++) {
  1767. if(sPreVD == model.getValue("/root/main/grd_viewprevisitlist/previsitlist[" + i + "]/visitdd" + j )) {
  1768. ret = true ;
  1769. break ;
  1770. }
  1771. }
  1772. }
  1773. return ret ;
  1774. }
  1775. //진행상태별 화면 세팅
  1776. function fDisableEnableBtn(searchListFlag){
  1777. if(searchListFlag == "1" || searchListFlag == "5") {
  1778. btn_savecycle.disabled = false;
  1779. /////button4.disabled = false;
  1780. grd_visitlst.visible = true;
  1781. grd_reqlist.visible = false;
  1782. grd_endlist.visible = false;
  1783. grd_explist.visible = false;
  1784. cap_listtitle.text = (searchListFlag == "1" ? "당일방문예정자 리스트" : "진행 리스트") ;
  1785. }
  1786. if(searchListFlag == "2") {
  1787. btn_savecycle.disabled = true;
  1788. /////button4.disabled = true;
  1789. grd_visitlst.visible = false;
  1790. grd_reqlist.visible = true;
  1791. grd_endlist.visible = false;
  1792. grd_explist.visible = false;
  1793. cap_listtitle.text = "미확정 리스트";
  1794. }
  1795. if(searchListFlag == "3") {
  1796. btn_savecycle.disabled = false;
  1797. /////button4.disabled = false;
  1798. grd_visitlst.visible = false;
  1799. grd_reqlist.visible = false;
  1800. grd_endlist.visible = true;
  1801. grd_explist.visible = false;
  1802. cap_listtitle.text = "종결 리스트";
  1803. }
  1804. if(searchListFlag == "4") {
  1805. btn_savecycle.disabled = false;
  1806. /////button4.disabled = false;
  1807. grd_visitlst.visible = false;
  1808. grd_reqlist.visible = false;
  1809. grd_endlist.visible = false;
  1810. grd_explist.visible = true;
  1811. cap_listtitle.text = "만료환자 리스트";
  1812. }
  1813. }
  1814. // 진행상태별 조회
  1815. function fExcuteSearch(searchListFlag){
  1816. var updtdata;
  1817. model.removeNodeset("/root/main/grd_patvisitlst");
  1818. if(searchListFlag == "1" || searchListFlag == "5") {
  1819. switch (searchListFlag) {
  1820. case "1" :
  1821. // 1.당일방문예정자 리스트 조회
  1822. updtdata = getGridUpdateData(grd_visitlst);
  1823. if ( updtdata != "" ) {
  1824. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  1825. if (ret != 6) { // not OK
  1826. return false();
  1827. }
  1828. }
  1829. model.removeNodeset("/root/main/grd_visitlst");
  1830. grd_visitlst.rebuild();
  1831. // 만료체크 해제
  1832. if(checkbox2.value == 1) {
  1833. checkbox2.value = "" ;
  1834. }
  1835. submit("TRMNF00100");
  1836. opt_previsitcount.value = "방문예정 [" + getNodesetCount("/root/main/grd_visitlst/visitlist") + "]명";
  1837. break;
  1838. case "5" :
  1839. // 5.진행리스트 조회
  1840. updtdata = getGridUpdateData(grd_visitlst);
  1841. if ( updtdata != "" ) {
  1842. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  1843. if (ret != 6) { // not OK
  1844. return false();
  1845. }
  1846. }
  1847. model.removeNodeset("/root/main/grd_visitlst");
  1848. grd_visitlst.rebuild();
  1849. // 만료체크 해제
  1850. if(checkbox2.value == 1) {
  1851. checkbox2.value = "" ;
  1852. }
  1853. submit("TRMNF00114");
  1854. opt_previsitcount.value = "진행 [" + getNodesetCount("/root/main/grd_visitlst/visitlist") + "]명";
  1855. break;
  1856. }
  1857. }
  1858. if(searchListFlag == "2") {
  1859. updtdata = getGridUpdateData(grd_reqlist);
  1860. if ( updtdata != "" ) {
  1861. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  1862. if (ret != 6) { // not OK
  1863. return false();
  1864. }
  1865. }
  1866. model.removeNodeset("/root/main/grd_reqlist");
  1867. grd_reqlist.rebuild();
  1868. // 만료체크 해제
  1869. if(checkbox2.value == 1) {
  1870. checkbox2.value = "" ;
  1871. }
  1872. if (rdo_careflag.value != "V") {
  1873. submit("TRMNF00111"); // 미확정리스트조회
  1874. }
  1875. opt_previsitcount.value = "전체 [" + getNodesetCount("/root/main/grd_reqlist/reqlist") + "]명";
  1876. }
  1877. if(searchListFlag == "3") {
  1878. updtdata = getGridUpdateData(grd_endlist);
  1879. if ( updtdata != "" ) {
  1880. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  1881. if (ret != 6) { // not OK
  1882. return false();
  1883. }
  1884. }
  1885. model.removeNodeset("/root/main/grd_endlist");
  1886. grd_endlist.rebuild();
  1887. // 만료체크 해제
  1888. if(checkbox2.value == 1) {
  1889. checkbox2.value = "" ;
  1890. }
  1891. submit("TRMNF00116");
  1892. opt_previsitcount.value = "";
  1893. }
  1894. if(searchListFlag == "4") {
  1895. // 4.만료환자리스트 조회
  1896. updtdata = getGridUpdateData(grd_explist);
  1897. if ( updtdata != "" ) {
  1898. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  1899. if (ret != 6) { // not OK
  1900. return false();
  1901. }
  1902. }
  1903. model.removeNodeset("/root/main/grd_explist");
  1904. grd_explist.rebuild();
  1905. submit("TRMNF00112");
  1906. opt_previsitcount.value = "";
  1907. }
  1908. btn_zoom.attribute("text") = "기본보기";
  1909. btn_zoom.dispatch("DOMActivate") ;
  1910. var ordtype = "";
  1911. for(var i = 0; i < grd_reqlist.rows;i++) {
  1912. ordtype = grd_reqlist.valueMatrix(i, grd_reqlist.colRef("ordtype"));
  1913. if(ordtype =="I") {
  1914. grd_reqlist.cellstyle("background-color", i, grd_reqlist.colRef("inptstat"), i, grd_reqlist.colRef("inptstat")) = "#0099ff";
  1915. } else if(ordtype == "E") {
  1916. grd_reqlist.cellstyle("background-color", i, grd_reqlist.colRef("inptstat"), i, grd_reqlist.colRef("inptstat")) = "#ff99cc";
  1917. }
  1918. }
  1919. for(var i = 0; i < grd_visitlst.rows;i++) {
  1920. ordtype = grd_visitlst.valueMatrix(i, grd_visitlst.colRef("ordtype"));
  1921. if(ordtype =="I") {
  1922. grd_visitlst.cellstyle("background-color", i, grd_visitlst.colRef("inptstat"), i, grd_visitlst.colRef("inptstat")) = "#0099ff";
  1923. } else if(ordtype == "E") {
  1924. grd_visitlst.cellstyle("background-color", i, grd_visitlst.colRef("inptstat"), i, grd_visitlst.colRef("inptstat")) = "#ff99cc";
  1925. }
  1926. }
  1927. return true;
  1928. }
  1929. function fSetPatInfos() {
  1930. model.removenode("/root/main/paminfo");
  1931. model.makeValue("/root/send/pid" ,model.getValue("/root/main/patinfo/patinforesult/pid"));
  1932. model.setValue("/root/send/instcd", model.getValue("/root/main/patinfo/patinforesult/instcd"));
  1933. model.makeValue("/root/send/ocrflag", "");
  1934. model.makeValue("/root/send/orddeptcd", model.getValue("/root/main/patinfo/patinforesult/reqdeptcd"));
  1935. model.makeValue("/root/send/orddrid", model.getValue("/root/main/patinfo/patinforesult/reqdrid"));
  1936. model.makeValue("/root/send/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
  1937. // 외래접수정보 조회
  1938. submit("TRMNF00120");
  1939. var ordtype = "O";
  1940. var pid = model.getValue("/root/main/cond/patinfo/pid");
  1941. var orddd = model.getValue("/root/main/cond/patinfo/orddd");
  1942. var cretno = model.getValue("/root/main/cond/patinfo/cretno");
  1943. var instcd = model.getValue("/root/main/cond/patinfo/instcd");
  1944. //var acptseqno = model.getValue("/root/main/cond/patinfo/acptseqno");
  1945. var orgorddd = model.getValue("/root/main/cond/patinfo/orddd");
  1946. var orddrid = model.getValue("/root/main/cond/patinfo/orddrid"); // 가접수된 의사ID
  1947. var param = ordtype + "▦" + pid + "▦" + orddd + "▦" + cretno + "▦" + instcd + "▦" + "" + "▦" + orgorddd;
  1948. //alert(param);
  1949. //alert(reqdrid+'/'+orddrid);
  1950. // 가접수가 있으면서 가정간호 마스터 저장된 의사와 가접수된 의사가 일치하는 경우만 상단에 올리도록(의뢰가 여러건인 경우 의사가 달라지므로)
  1951. if (!isNull(orddd)) {
  1952. setParameter("condparam", param);
  1953. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  1954. var node = getGlobalVariable("paminfo");
  1955. model.makeNode("/root/main/paminfo");
  1956. setCSVToNode("/root/main/paminfo", node);
  1957. }
  1958. }
  1959. function fcareSetting() {
  1960. //var flag = model.getValue("/root/send/prcsstat") ;
  1961. //alert("flag:"+flag);
  1962. // 미확정일때
  1963. if(model.getValue("/root/send/prcsstat") == '2' ){
  1964. var spatcareflag = model.getValue("/root/main/grd_reqlist/reqlist[" + grd_reqlist.row + "]/patcareflag");
  1965. } else { // 그외는 환자이력에서 선택
  1966. var spatcareflag = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + grd_patvisitlst.row + "]/patcareflag");
  1967. }
  1968. //alert("careflag:"+spatcareflag);
  1969. if (spatcareflag == 'H') { // 가정간호
  1970. combo3.disabled = false; // 감면유형
  1971. combo9.disabled = true; // 등급
  1972. combo14.disabled = true; // 본인부담률
  1973. combo4.disabled = true; // 본인부담 경감
  1974. input12.disabled = true; // 장기요양번호
  1975. // 방문주기 라디오버튼, 체크박스, 횟수 관련
  1976. rdo_hvisitprid.disabled = false;
  1977. rdo_vvisitprid.disabled = true;
  1978. chk_hdw.disabled = false;
  1979. chk_vdw.disabled = true;
  1980. ipt_hvisitpridtimes.disabled = false;
  1981. ipt_vvisitpridtimes.disabled = true;
  1982. } else if (spatcareflag == 'V') { // 방문간호
  1983. combo3.disabled = true; // 감면유형
  1984. combo9.disabled = false; // 등급
  1985. combo14.disabled = false; // 본인부담률
  1986. combo4.disabled = false; // 본인부담 경감
  1987. input12.disabled = false; // 장기요양번호
  1988. // 방문주기 라디오버튼, 체크박스, 횟수 관련
  1989. rdo_hvisitprid.disabled = true;
  1990. rdo_vvisitprid.disabled = false;
  1991. chk_hdw.disabled = true;
  1992. chk_vdw.disabled = false;
  1993. ipt_hvisitpridtimes.disabled = true;
  1994. ipt_vvisitpridtimes.disabled = false;
  1995. } else if (spatcareflag == 'C') { // 호스피스가정간호
  1996. combo3.disabled = false; // 감면유형
  1997. combo9.disabled = true; // 등급
  1998. combo14.disabled = true; // 본인부담률
  1999. combo4.disabled = true; // 본인부담 경감
  2000. input12.disabled = true; // 장기요양번호
  2001. // 방문주기 라디오버튼, 체크박스, 횟수 관련
  2002. rdo_hvisitprid.disabled = false;
  2003. rdo_vvisitprid.disabled = true;
  2004. chk_hdw.disabled = false;
  2005. chk_vdw.disabled = true;
  2006. ipt_hvisitpridtimes.disabled = false;
  2007. ipt_vvisitpridtimes.disabled = true;
  2008. }
  2009. }
  2010. function fGetParamSetting(){
  2011. var chkPid = model.getValue("/root/main/patinfo/patinforesult/pid");
  2012. var iTgPatRow = 0;
  2013. if(chkPid != ""){
  2014. var tRow = grd_visitlst.rows;
  2015. if(tRow == "1"){
  2016. return;
  2017. }else{
  2018. for( i =0 ; i < tRow ; i++ ){
  2019. iTgPatRow = grd_visitlst.findRow(chkPid ,1, 3,true,true);
  2020. }
  2021. }
  2022. }
  2023. if(iTgPatRow > 0){
  2024. grd_visitlst.row = iTgPatRow;
  2025. grd_visitlst.topRow = iTgPatRow;
  2026. //fSelectPatList();
  2027. grd_visitlst.dispatch("onclick");
  2028. }
  2029. }
  2030. // 구분선택시 신환등록/방문계약 버튼 컨트롤
  2031. function fSelCareflag(){
  2032. if(model.getValue("/root/send/kind") == "2"){ // kind 1: 병원, 2, 본당, 3. 재택
  2033. if (model.getValue("/root/send/careflag") == '*'){
  2034. btn_regnewpatient.attribute("text") = "신환등록";
  2035. btn_regnewpatient.visible = true;
  2036. } else if (model.getValue("/root/send/careflag") == 'H' ){
  2037. btn_regnewpatient.attribute("text") = "신환등록";
  2038. btn_regnewpatient.visible = true;
  2039. } else if (model.getValue("/root/send/careflag") == 'V' ){
  2040. btn_regnewpatient.visible = false;
  2041. }
  2042. }else if( model.getValue("/root/send/kind") == "1" ){
  2043. if (model.getValue("/root/send/careflag") == '*'){
  2044. btn_regnewpatient.visible = false;
  2045. } else if (model.getValue("/root/send/careflag") == 'H' ){
  2046. btn_regnewpatient.visible = false;
  2047. } else if (model.getValue("/root/send/careflag") == 'V' ){
  2048. btn_regnewpatient.attribute("text") = "방문계약";
  2049. btn_regnewpatient.visible = true;
  2050. }
  2051. }
  2052. }
  2053. // 환자 정보조회 (오른쪽 그리드 클릭시 )
  2054. function fGetPatInfo(){
  2055. if(isDataCell()) {
  2056. delPatientInfos(); //화면상단정보 삭제
  2057. var cur_row = grd_patvisitlst.row;
  2058. fClear();
  2059. fcareSetting(); // 방문/가정 구분에 따른 화면활성화 제어
  2060. if ( cur_row > 0 ) {
  2061. model.setValue("/root/send/pid", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/pid"));
  2062. model.setValue("/root/send/inptdt", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/inptdt"));
  2063. model.setValue("/root/send/instcd", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/instcd"));
  2064. model.setValue("/root/send/patcareflag", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/patcareflag"));
  2065. model.setValue("/root/send/prcsstat", model.getValue("/root/send/prcsstat"));
  2066. model.setValue("/root/send/reqdd", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/reqdd")); // 만료일 의뢰서별 조회하기 위해 추가(2009.05.07 황혜민)
  2067. model.makeValue("/root/send/formrecseq", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/formrecseq")); // 관리정보 조회위해 추가(2010.04.23 황혜민)
  2068. model.setValue("/root/main/visitinfo/pid", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/pid"));
  2069. model.setValue("/root/main/visitinfo/inptdt", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/inptdt"));
  2070. model.setValue("/root/main/visitinfo/instcd", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/instcd"));
  2071. model.setValue("/root/main/visitinfo/hngnm", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/hngnm"));
  2072. model.setValue("/root/main/visitinfo/sex", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/sex"));
  2073. model.setValue("/root/main/visitinfo/patcareflag", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/patcareflag"));
  2074. //model.refresh();
  2075. }
  2076. // 1.환자 기본정보 조회
  2077. submit("TRMNF00101");
  2078. //model.setValue(combo3.attribute("ref") , "-");
  2079. model.makeValue("/root/main/patinfo/patinforesult/dctype", "-");
  2080. combo3.refresh();
  2081. //20081106 최지연 요청 번호로 보여달라
  2082. //감면유형 요청번호셋팅 하드코딩수정_20091230_SMY
  2083. model.makeValue("/root/main/patinfo/patinforesult/dctypenum", model.getValue("/root/item/dctype/dctypelist[cd = '" + model.getValue("/root/main/patinfo/patinforesult/dctype") + "']/sortseq"));
  2084. //2009.02.13 방문간호 본인부담 경감 추가
  2085. //본인부담 경감 요청번호셋팅 하드코딩수정_20091230_SMY
  2086. model.makeValue("/root/main/patinfo/patinforesult/vdctypenum", model.getValue("/root/item/dctype/vdctypelist[cd = '" + model.getValue("/root/main/patinfo/patinforesult/vdctype") + "']/sortseq"));
  2087. if(model.getValue("/root/send/prcsstat") == '2' ){
  2088. //미확정 리스트 일 경우 언제나 등록구분이 선택됨
  2089. combo1.value = '1';
  2090. }
  2091. if ( !isNull(model.getValue("/root/main/patinfo/patinforesult/pid")) ){
  2092. gNewPat = "N" ;
  2093. fDisableEnableBtn(searchListFlag) ;
  2094. copyNodeListType("/root/main/visitcounts", "/root/main/patinfo/visitcount", "replace", model, model);
  2095. copyNodeListType("/root/main/grd_previsitlist", "/root/main/patinfo/previsitlist", "replace", model, model);
  2096. //조회하여온 감면코드를 값이 변경되는지 확인을 위해 임시로 저장해둠 - 방문간호 감면유형도 추가 2009.02.24
  2097. var dccd = model.getValue("/root/main/patinfo/patinforesult/dctype");
  2098. model.makeValue("/root/temp/patinfo/patinforesult/dctype",dccd);
  2099. var vdccd = model.getValue("/root/main/patinfo/patinforesult/vdctype");
  2100. model.makeValue("/root/temp/patinfo/patinforesult/vdctype",vdccd);
  2101. //의뢰서 진단정보 셋팅_20100111_SMY
  2102. model.setValue("/root/main/patinfo/patinforesult/cnstdiagcd", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/cnstdiagcd"));
  2103. model.setValue("/root/main/patinfo/patinforesult/cnstdiaghngnm", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/cnstdiagname"));
  2104. model.setValue("/root/main/patinfo/patinforesult/cnstdiagconcat", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/cnstdiagname"));
  2105. // 담당간호사 매칭
  2106. fChrgNursIdMapping();
  2107. // [가정간호] 개별 가정간호 방문정보에 방문주기, 방문횟수, 방문요일 매칭
  2108. model.setValue("/root/main/visitinfo/visitpridflag", model.getValue("/root/main/patinfo/patinforesult/visitpridflag"));
  2109. model.setValue("/root/main/visitinfo/visitpridtimes", model.getValue("/root/main/patinfo/patinforesult/visitpridtimes"));
  2110. model.setValue("/root/main/visitinfo/visitdwflag", model.getValue("/root/main/patinfo/patinforesult/visitdwflag"));
  2111. // [방문간호] 개별 가정간호 방문정보에 방문주기, 방문횟수, 방문요일 매칭
  2112. model.setValue("/root/main/visitinfo/vvisitpridflag", model.getValue("/root/main/patinfo/patinforesult/vvisitpridflag"));
  2113. model.setValue("/root/main/visitinfo/vvisitpridtimes", model.getValue("/root/main/patinfo/patinforesult/vvisitpridtimes"));
  2114. model.setValue("/root/main/visitinfo/vvisitdwflag", model.getValue("/root/main/patinfo/patinforesult/vvisitdwflag"));
  2115. // 개별 가정간호 방문정보에 최근방문일 매칭
  2116. model.setValue("/root/main/visitinfo/lastvisitdd", model.getValue("/root/main/patinfo/visitdate/lastvisitdd"));
  2117. // 간호구분 추가
  2118. model.setValue("/root/main/visitinfo/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
  2119. // 달력에 일자별 방문(예정)건수 대입
  2120. fDataDisplayPat(); // 환자 선택했을 경우 색상 구분
  2121. fClearChildNodeH("/root/main/grd_viewprevisitlist/previsitlist");
  2122. fMoveViewPreVisitLIst();
  2123. // 의뢰전송 데이터 전달
  2124. if ( cur_row > 0 ) {
  2125. model.setValue("/root/reqtransdata/pid", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/pid"));
  2126. model.setValue("/root/reqtransdata/inptdt", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/inptdt"));
  2127. model.setValue("/root/reqtransdata/pathngnm", model.getValue("/root/main/patinfo/patinforesult/hngnm"));
  2128. model.setValue("/root/reqtransdata/sex", model.getValue("/root/main/patinfo/patinforesult/sex"));
  2129. model.setValue("/root/reqtransdata/pnrn", model.getValue("/root/main/insuinfo/patinsuinfo/insdrrgstno"));
  2130. model.setValue("/root/reqtransdata/telno", model.getValue("/root/main/patinfo/patinforesult/telno1"));
  2131. //----------------------------------------------------------------------------------------------------------------------
  2132. model.setValue("/root/reqtransdata/churchcd", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/headquarter"));
  2133. // 의뢰전송 버튼 클릭시 세팅함. ( '1' : 병원 --> 본당, '2' : 본당 --> 병원 or 본당 )
  2134. //model.setValue("/root/reqtransdata/reqtrnskind", ""));
  2135. model.setValue("/root/reqtransdata/reqdeptcd", model.getValue("/root/main/patinfo/patinforesult/reqdeptcd"));
  2136. model.setValue("/root/reqtransdata/reqdeptnm", "");
  2137. model.setValue("/root/reqtransdata/reqdrid", model.getValue("/root/main/patinfo/patinforesult/reqdrid"));
  2138. model.setValue("/root/reqtransdata/reqdrnm", "");
  2139. model.setValue("/root/reqtransdata/diagcd", model.getValue("/root/main/patinfo/patinforesult/diagcd"));
  2140. model.setValue("/root/reqtransdata/diagnm", model.getValue("/root/main/patinfo/patinforesult/diagname"));
  2141. model.setValue("/root/reqtransdata/instcd", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/instcd"));
  2142. model.setValue("/root/reqtransdata/rgstdd", model.getValue("/root/main/patinfo/patinforesult/rgstdd"));
  2143. model.setValue("/root/reqtransdata/enddd", getCurrentDate());
  2144. model.setValue("/root/reqtransdata/endconfirmdd", getCurrentDate());
  2145. model.setValue("/root/reqtransdata/endnurseid", getUserId());
  2146. model.setValue("/root/reqtransdata/endnursenm", getUserName() );
  2147. model.setValue("/root/reqtransdata/endconfirmid", getUserId());
  2148. model.setValue("/root/reqtransdata/endconfirmnm", getUserName() );
  2149. if (rdo_kind.value == 1) { // 병원에서 본당으로 의뢰전송
  2150. model.setValue("/root/reqtransdata/endreasonflag", ""); // 병원 --> 본당은 종결 아니고 그대로 유지
  2151. } else if (rdo_kind.value == 2) { // 본당에서 병원 혹은 본당으로 의뢰전송
  2152. model.setValue("/root/reqtransdata/endreasonflag", "8"); // 종결사유 : 8 (전환), 9(병원의뢰)
  2153. }
  2154. model.setValue("/root/reqtransdata/endtypeflag", ""); // 종결유형 :
  2155. model.setValue("/root/reqtransdata/endtyperemark", "");
  2156. model.setValue("/root/reqtransdata/endstatflag", "");
  2157. model.setValue("/root/reqtransdata/rgstpatstat", "");
  2158. model.setValue("/root/reqtransdata/endpatstat", "");
  2159. model.setValue("/root/reqtransdata/visitcnt", "");
  2160. model.setValue("/root/reqtransdata/savemode", "I");
  2161. model.setValue("/root/reqtransdata/endflag", "Y");
  2162. model.setValue("/root/reqtransdata/patflag", model.getValue("/root/main/patinfo/patinforesult/patflag"));
  2163. model.setValue("/root/reqtransdata/rereqyn", model.getValue("/root/main/patinfo/patinforesult/rereqyn"));
  2164. model.setValue("/root/reqtransdata/formrecseq", model.getValue("/root/main/patinfo/patinforesult/formrecseq"));
  2165. }
  2166. }
  2167. fSetPatInfos(); // 환자상단 올리기
  2168. model.refresh();
  2169. }
  2170. }
  2171. ]]>
  2172. </script>
  2173. <script type="javascript" ev:event="xforms-ready">
  2174. <![CDATA[
  2175. zbcfGetCodeList(new Array("M0387", "M0524"), new Array("/root/item/reqcancelreason", "/root/init/M0524"));
  2176. addComboInstance("/root/init/M0524", "cdid^cdnm", "*^전체", "M0524"); // 가정간호 구분에 전체 추가
  2177. fInitHomeCareRdo("rdo_kind");
  2178. model.setValue("/root/send/kind", "1"); // 병원 세팅
  2179. model.setValue("/root/send/patflag", "1");
  2180. model.setValue("/root/send/churchcd",'-');
  2181. if(getUserInfo("dutplceinstcd") == "031"){
  2182. model.setValue("/root/send/careflag",'H');
  2183. } else if(getUserInfo("dutplceinstcd") == "031"){
  2184. model.setValue("/root/send/careflag",'C');
  2185. } else {
  2186. model.setValue("/root/send/careflag",'C');
  2187. }
  2188. // 성가병원만 감면유형 해당없음으로 기본 설정 후 비활성화(2009.12.21 hhm)
  2189. //if(getUserInfo("dutplceinstcd") == "014"){
  2190. //기관코드(014)하드코딩수정_20091230_SMY
  2191. if(model.getValue("/root/code/codeinfo/codelist[cdgrupid = '077' and supcdid = '03' and cdid = '"+ getUserInfo("dutplceinstcd") +"']/cdid")){ //supcdid='03' : 부천성가병원
  2192. model.setValue("/root/main/patinfo/patinforesult/dctype", "-"); //-
  2193. combo3.disabled = true;
  2194. }
  2195. //진행상태 라디오 버튼으로 변경
  2196. //20080124 손은연
  2197. model.setValue("/root/send/prcsstat", "1"); // 당일방문예정 세팅
  2198. searchListFlag = model.getValue("/root/send/prcsstat"); // Default "1" - 당일방문예정자 리스트
  2199. delPatientInfos(); //화면상단정보 삭제
  2200. grp_inputschedule.visible = false;
  2201. model.setValue("/root/send/visitdd", getCurrentDate());
  2202. model.setValue("/root/send/mode", "1");
  2203. model.setValue("/root/send/inputvisitdd", getCurrentDate());
  2204. fDisableEnableBtn(searchListFlag);
  2205. //*******************************************************************
  2206. // 기준정보 로드
  2207. //*******************************************************************
  2208. // 1.본당을 조회, 콤보박스에 세팅한다.
  2209. submit("TRMNF00130");
  2210. // 2.조회조건의 가정간호 담당간호사 리스트를 조회, 콤보박스에 세팅한다. 20080124 김홍점 병원이든 본당이든 간호사는 조회되어야 한다.
  2211. // 메인 오픈시 같은 sql을 2번씩 호출하여 막음(2009.03.28) ==> 병원/본당 간호사 셋팅은 사용자 정보 셋팅후 바로 조회하도록 추가함
  2212. rdo_kind.dispatch("xforms-value-changed");
  2213. if ( fExcuteSearch(searchListFlag) == false ) { // 진행상태별 조회
  2214. return;
  2215. }
  2216. //0. 진행상태 : 당일방문예정, 미확정, 진행, 종결 카운트 조회
  2217. submit("TRMNF00115");
  2218. // 7.일자별 방문(예정)건수 조회
  2219. submit("TRMNF00107");
  2220. // 달력에 일자별 방문(예정)건수 대입
  2221. fDataDisplay();
  2222. //*************************************************************
  2223. ]]>
  2224. </script>
  2225. <submission id="TRMNF00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grd_visitlst"/>
  2226. <submission id="TRMNF00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/patinfo"/>
  2227. <submission id="TRMNF00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/mnginfo1"/>
  2228. <submission id="TRMNF00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/mnginfo3"/>
  2229. <submission id="TRMNF00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/mnginfo2"/>
  2230. <submission id="TRMNF00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/mnginfo4"/>
  2231. <submission id="TRMNF00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/item/chargenurse"/>
  2232. <submission id="TRMNF00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/visitcounts"/>
  2233. <submission id="TRMNF00108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/insuinfo"/>
  2234. <submission id="TRMNF00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grd_previsitlist"/>
  2235. <submission id="TRMNF00110" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/item/dctype"/>
  2236. <submission id="TRMNF00111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grd_reqlist"/>
  2237. <submission id="TRMNF00112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grd_explist"/>
  2238. <submission id="TRMNF00113" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/endsummary"/>
  2239. <submission id="TRMNF00114" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grd_visitlst"/>
  2240. <submission id="TRMNF00115" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/procstat"/>
  2241. <submission id="TRMNF00116" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grd_endlist"/>
  2242. <!--<submission id="TRMNF00117" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/existinfo"/> -->
  2243. <submission id="TRMNF00118" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/newpatientinfo/patinfo" replace="instance" resultref="/root/main/newpatientflag"/>
  2244. <submission id="TRMNF00119" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/existinfo"/>
  2245. <submission id="TRMNF00120" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/cond"/>
  2246. <submission id="TRMNF00121" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/expcounts"/>
  2247. <submission id="TRMNF00122" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/cond/list" resultref="/root/temp/cond/list"/>
  2248. <submission id="TRMNF00123" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/pid" resultref="/root/main/visitrecord"/>
  2249. <submission id="TRMNF00124" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/reqtrnsinfo"/>
  2250. <!--<submission id="TRMNF00125" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/trgtpidinfo"/> -->
  2251. <submission id="TRMNF00126" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/visitflag"/>
  2252. <submission id="TRMNF00130" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/item/church"/>
  2253. <submission id="TRMNF00131" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grd_patvisitlst"/>
  2254. <submission id="TRMNF00407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/inptinfo"/>
  2255. <submission id="TRMNF04302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/dschpatinfo"/>
  2256. <submission id="TXMNF00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp"/>
  2257. <submission id="TXMNF00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/visitinfo" resultref="/root/tmp"/>
  2258. <submission id="TXMNF00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/patinfo/patinforesult" replace="instance" resultref="/root/tmp"/>
  2259. <submission id="TXMNF00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/patinfo/patinforesult" replace="instance" resultref="/root/temp/patinfo"/>
  2260. <submission id="TXMNF00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grd_previsitlist"/>
  2261. <submission id="TXMNF00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grd_previsitlist"/>
  2262. <submission id="TXMNF00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grd_previsitlist"/>
  2263. <submission id="TXMNF00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  2264. <!--<submission id="TXMNF00108" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/temp"/> -->
  2265. <submission id="TXMNF00110" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/newpatientinfo/patinfo" replace="instance" resultref="/root/main/newpidinfo/newpid"/>
  2266. <submission id="TXMNF00111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/canceldata"/>
  2267. <submission id="TXMNF00112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  2268. <submission id="TXMNF00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/reqtransdata" replace="instance" resultref="/root/temp"/>
  2269. <submission id="TXMNF00504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/reqtransdata" replace="instance" resultref="/root/temp"/>
  2270. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  2271. <submission id="TRZBC00122" mediatype="application/x-www-form-urlencoded" method="post"/>
  2272. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/code/codelist"/>
  2273. <submission id="TRMNF00132" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/patinfo/patinforesult" resultref="/root/temp/chrrgstkindinfo"/>
  2274. <submission id="TXMNF00505" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/"/>
  2275. <submission id="TRMNF00133" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/item/visitarea"/>
  2276. </model>
  2277. <script type="javascript">
  2278. <![CDATA[
  2279. var sPid;
  2280. var sInptdt;
  2281. var sData = new Array(31);
  2282. function fMoveViewPreVisitLIst(){
  2283. // 조회된 방문예정일 정보(grd_previsitlist)를 일자만 보여주는 그리드(grd_viewprevisitlist )로 데이터 이동을 한다.
  2284. var previsitlistcnt = 0;
  2285. var visitddrowcnt = 0;
  2286. var rowCnt = 0;
  2287. var colCnt = 0;
  2288. if ( !isNull(model.getValue("/root/main/grd_previsitlist/previsitlist/pid")) ){
  2289. previsitlistcnt = getNodesetCount("/root/main/grd_previsitlist/previsitlist"); // 방문예정일건수
  2290. }
  2291. rowCnt = 1;
  2292. visitddrowcnt = 1;
  2293. if(previsitlistcnt > 0) {
  2294. grd_viewprevisitlist.addItem();
  2295. }
  2296. fClearChildNodeH("/root/main/grd_viewprevisitlist");
  2297. // 4개에서 2개로 변경
  2298. for(colCnt = 1; colCnt <= 2; colCnt++) {
  2299. if(rowCnt > previsitlistcnt) {
  2300. break;
  2301. }
  2302. if( visitddrowcnt * 2 - (2 - colCnt) <= previsitlistcnt) {
  2303. switch (colCnt) {
  2304. case 1 :
  2305. model.setValue("/root/main/grd_viewprevisitlist/previsitlist[" + visitddrowcnt + "]/visitdd1", model.getValue("/root/main/grd_previsitlist/previsitlist[" + rowCnt + "]/visitdd"));
  2306. model.setValue("/root/main/grd_viewprevisitlist/previsitlist[" + visitddrowcnt + "]/visitflag1", model.getValue("/root/main/grd_previsitlist/previsitlist[" + rowCnt + "]/careflagnm"));
  2307. break;
  2308. case 2 :
  2309. model.setValue("/root/main/grd_viewprevisitlist/previsitlist[" + visitddrowcnt + "]/visitdd2", model.getValue("/root/main/grd_previsitlist/previsitlist[" + rowCnt + "]/visitdd"));
  2310. model.setValue("/root/main/grd_viewprevisitlist/previsitlist[" + visitddrowcnt + "]/visitflag2", model.getValue("/root/main/grd_previsitlist/previsitlist[" + rowCnt + "]/careflagnm"));
  2311. break;
  2312. //case 3 :
  2313. // model.setValue("/root/main/grd_viewprevisitlist/previsitlist[" + visitddrowcnt + "]/visitdd3", model.getValue("/root/main/grd_previsitlist/previsitlist[" + rowCnt + "]/visitdd"));
  2314. // break;
  2315. //case 4 :
  2316. // model.setValue("/root/main/grd_viewprevisitlist/previsitlist[" + visitddrowcnt + "]/visitdd4", model.getValue("/root/main/grd_previsitlist/previsitlist[" + rowCnt + "]/visitdd"));
  2317. }
  2318. grd_viewprevisitlist.cellStyle("background-color", visitddrowcnt, colCnt) = "#96F562";
  2319. grd_viewprevisitlist.refresh();
  2320. }
  2321. if(colCnt == 2 && (visitddrowcnt * 2 - (2 - colCnt) <previsitlistcnt) ) {
  2322. visitddrowcnt = visitddrowcnt +1;
  2323. colCnt = 0;
  2324. grd_viewprevisitlist.addItem(); // 입력할 행 추가.
  2325. }
  2326. rowCnt = rowCnt + 1;
  2327. grd_viewprevisitlist.refresh();
  2328. } // for end
  2329. }
  2330. //주민번호 유효검사
  2331. function fRrgstNo1Veri() {
  2332. var ptbs_rrgstno1 = model.getValue("/root/main/newpatientinfo/patinfo/ptbs_rrgstno1");
  2333. if (ptbs_rrgstno1.length != 6) {
  2334. messageBox("주민등록번호 앞자리는 6자리","E008"); // 입니다.
  2335. model.setFocus("ipt_rrgstno1");
  2336. return false;
  2337. }
  2338. if(ptbs_rrgstno1.substr(2,2) < "01" || ptbs_rrgstno1.substr(2,2) > "12") {
  2339. messageBox("주민등록번호 앞자리중 월은 01 ~ 12 사이의 값","E008"); // 입니다.
  2340. model.setFocus("ipt_rrgstno1");
  2341. return false;
  2342. }
  2343. if(ptbs_rrgstno1.substr(4,2) < "01" || ptbs_rrgstno1.substr(4,2) > "31") {
  2344. messageBox("주민등록번호 앞자리중 일자는 01 ~ 31 사이의 값","E008"); // 입니다.
  2345. model.setFocus("ipt_rrgstno1");
  2346. return false;
  2347. }
  2348. }
  2349. //주민번호 유효검사
  2350. function fRrgstNo2Veri() {
  2351. var ptbs_brthdd;
  2352. var ptbs_rrgstno1 = model.getValue("/root/main/newpatientinfo/patinfo/ptbs_rrgstno1");
  2353. var ptbs_rrgstno2 = model.getValue("/root/main/newpatientinfo/patinfo/ptbs_rrgstno2");
  2354. if (ptbs_rrgstno1.length != 6) {
  2355. messageBox("주민등록번호 앞자리는 6자리","E008"); // 입니다.
  2356. model.setFocus("ipt_rrgstno1");
  2357. return false;
  2358. }
  2359. if (ptbs_rrgstno2.length != 7) {
  2360. messageBox("주민등록번호 뒷자리는 7자리","E008"); // 입니다.
  2361. model.setFocus("ipt_rrgstno2");
  2362. return false;
  2363. }
  2364. var gubn = ptbs_rrgstno2.substr(0,1);
  2365. switch(gubn){
  2366. case '1' :
  2367. case '2' :
  2368. case '5' :
  2369. case '6' :
  2370. ptbs_brthdd = '19'.concat(ptbs_rrgstno1);
  2371. break;
  2372. case '3' :
  2373. case '4' :
  2374. case '7' :
  2375. case '8' :
  2376. ptbs_brthdd = '20'.concat(ptbs_rrgstno1);
  2377. break;
  2378. case '9' :
  2379. case '0' :
  2380. ptbs_brthdd = '18'.concat(ptbs_rrgstno1);
  2381. break;
  2382. default :
  2383. ptbs_brthdd = '19'.concat(ptbs_rrgstno1);
  2384. break;
  2385. }
  2386. model.setValue("/root/main/newpatientinfo/patinfo/ptbs_brthdd",ptbs_brthdd);
  2387. if (isValidDateTime(ptbs_brthdd, "YYYYMMDD") == false) {
  2388. messageBox("주민등록번호 앞6자리 형식오류입니다. 올바른 일자형태로","C001"); // 입력하십시요!
  2389. model.setValue("/root/main/newpatientinfo/patinfo/ptbs_rrgstno1","");
  2390. model.setValue("/root/main/newpatientinfo/patinfo/ptbs_rrgstno2","");
  2391. model.setValue("/root/main/newpatientinfo/patinfo/ptbs_brthdd","");
  2392. model.setFocus("ipt_rrgstno1");
  2393. ipt_rrgstno1.refresh();
  2394. ipt_rrgstno2.refresh();
  2395. ipt_brthdd.refresh();
  2396. return false;
  2397. }
  2398. var ptbs_sex = model.getValue("/root/main/newpatientinfo/patinfo/ptbs_rrgstno2");
  2399. model.setValue("/root/main/newpatientinfo/patinfo/ptbs_sex",getGender(ptbs_sex));
  2400. var ptbs_rrgstno = ptbs_rrgstno1.concat(ptbs_rrgstno2);
  2401. if (isResidentNo(ptbs_rrgstno) == false) {
  2402. var message = messageBox("유효하지 않은 주민등록번호입니다.","Q003"); // 계속 진행하시겠습니까?
  2403. if( message == 6 ){
  2404. return true;
  2405. }else{
  2406. model.setValue("/root/main/newpatientinfo/patinfo/ptbs_rrgstno1","");
  2407. model.setValue("/root/main/newpatientinfo/patinfo/ptbs_rrgstno2","");
  2408. model.setValue("/root/main/newpatientinfo/patinfo/ptbs_brthdd","");
  2409. model.setValue("/root/main/newpatientinfo/patinfo/ptbs_sex","");
  2410. model.setFocus("ipt_rrgstno1");
  2411. //model.refresh();
  2412. ipt_rrgstno1.refresh();
  2413. ipt_rrgstno2.refresh();
  2414. ipt_brthdd.refresh();
  2415. return false;
  2416. }
  2417. }
  2418. }
  2419. function fDateCntSet(){
  2420. var Idx = 0;
  2421. var sNode ;
  2422. var xNode ;
  2423. var nLen ;
  2424. if(model.getValue("/root/main/expflag") == "1") { // 만료 체크 시
  2425. sNode = "/root/main/expcounts";
  2426. xNode = instance1.selectSingleNode(sNode);
  2427. nLen = xNode.childNodes.length;
  2428. } else {
  2429. sNode = "/root/main/visitcounts";
  2430. xNode = instance1.selectSingleNode(sNode);
  2431. nLen = xNode.childNodes.length;
  2432. }
  2433. // alert("sNode: "+sNode+" xNode: "+xNode+" nLen: "+ nLen);
  2434. for (var i=0;i < sData.length; i++){
  2435. sData[i] = "";
  2436. }
  2437. for (var i=0;i<=nLen; i++){
  2438. if(model.getValue("/root/main/expflag") == "1") { // 만료 체크 시
  2439. Idx = model.getValue(sNode+"/expcount["+(i+1)+"]/visitdd").substr(6, 2);
  2440. sData[Idx-1] = model.getValue(sNode+"/expcount["+(i+1)+"]/cnt");
  2441. } else {
  2442. Idx = model.getValue(sNode+"/visitcount["+(i+1)+"]/visitdd").substr(6, 2);
  2443. sData[Idx-1] = model.getValue(sNode+"/visitcount["+(i+1)+"]/cnt");
  2444. }
  2445. }
  2446. }
  2447. //===
  2448. function fDataDisplay(){
  2449. var Idx = 0;
  2450. var calRow;
  2451. var calCol;
  2452. fInitCalendarYM();
  2453. fDateCntSet();
  2454. var objNode = instance1.selectSingleNode("/root/hidden/calendar/weeklist/list[1]");
  2455. var rowCntHV = getNodesetCnt( model1, "/root/hidden/calendar/weeklist/list"); // 달력행의 수
  2456. for (var i=0;i < rowCntHV; i++) {
  2457. objNode = instance1.selectSingleNode("/root/hidden/calendar/weeklist/list["+(i+1)+"]");
  2458. for (var j=0;j < 7; j++) {
  2459. if (objNode.childNodes(j+1).text != "") {
  2460. Idx = parseInt(objNode.childNodes(j+1).text);
  2461. objNode.childNodes(j+8).text = sData[Idx-1];
  2462. calRow = i+1;
  2463. calCol = j+1;
  2464. }
  2465. }
  2466. } // for end
  2467. grd_calendar.refresh();
  2468. cap_visitddcolor.visible = false;
  2469. cap_visitdd.visible = false;
  2470. cap_previsitddcolor.visible = false;
  2471. cap_previsitdd.visible = false;
  2472. cap_careflagnm.visible = true;
  2473. }
  2474. function fDataDisplayPat(){
  2475. var Idx = 0;
  2476. var calRow;
  2477. var calCol;
  2478. var curDate = model.getValue("/root/send/visitdd");
  2479. /* fInitCalendarYM()로 변경 (2009.08.12 hhm)
  2480. var curDate = model.getValue("/root/send/visitdd") ;
  2481. var syyyy = curDate.substr(0, 4) + curDate.substr(4, 2);
  2482. cap_ym.value = curDate.substr(0, 4) + "년 " + curDate.substr(4, 2) + "월" ;
  2483. setCalendar(curDate.toDate());
  2484. */
  2485. fInitCalendarYM(); // 달력에 오늘 날짜로 셋팅
  2486. fDateCntSet();
  2487. var objNode = instance1.selectSingleNode("/root/hidden/calendar/weeklist/list[1]");
  2488. var rowCntHV = getNodesetCnt( model1, "/root/hidden/calendar/weeklist/list"); // 달력행의 수
  2489. for (var i=0;i < rowCntHV; i++) {
  2490. objNode = instance1.selectSingleNode("/root/hidden/calendar/weeklist/list["+(i+1)+"]");
  2491. for (var j=0;j < 7; j++) {
  2492. if (objNode.childNodes(j).text != "") {
  2493. Idx = parseInt(objNode.childNodes(j).text); // 달력의 날짜
  2494. objNode.childNodes(j+7).text = sData[Idx-1]; // 방문일 방문예정일 데이터 달력에 셋팅
  2495. calRow = i+1;
  2496. calCol = j;
  2497. var tmpCalCol;
  2498. if( calCol <= 7 )
  2499. tmpCalCol = calCol + 7;
  2500. else
  2501. tmpCalCol = calCol - 7;
  2502. if(sData[Idx-1] != "") {
  2503. //alert(parseInt(curDate.substr(6,2)) + " "+ parseInt(grd_calendar.valueMatrix(calRow, calCol)) );
  2504. if(parseInt(curDate.substr(6,2)) <= parseInt(grd_calendar.valueMatrix(calRow, calCol))) { // 방문예정일
  2505. grd_calendar.cellStyle("background-color", calRow, calCol) = "#96F562";
  2506. grd_calendar.cellStyle("background-color", calRow, tmpCalCol) = "#96F562";
  2507. } else { // 방문일
  2508. grd_calendar.cellStyle("background-color", calRow, calCol) = "#66CDAA";
  2509. grd_calendar.cellStyle("background-color", calRow, tmpCalCol) = "#66CDAA";
  2510. }
  2511. }
  2512. }
  2513. }
  2514. } // for end
  2515. grd_calendar.refresh();
  2516. cap_visitddcolor.visible = true;
  2517. cap_visitdd.visible = true;
  2518. cap_previsitddcolor.visible = true;
  2519. cap_previsitdd.visible = true;
  2520. cap_careflagnm.visible = false;
  2521. }
  2522. function fInitCalendarYM() {
  2523. var curDate = model.getValue("/root/send/visitdd").toDate() ;
  2524. cap_ym.value = model.getValue("/root/send/visitdd").substr(0, 4) + "년 " + model.getValue("/root/send/visitdd").substr(4, 2) + "월" ;
  2525. model.setValue("/root/hidden/calendar/year", curDate.getDateFormat('YYYY'));
  2526. model.setValue("/root/hidden/calendar/month", curDate.getDateFormat('MM'));
  2527. //model.removeNodeset("/root/hidden/calendar/weeklist/list"); // 추가 (2009.08.13 hhm)
  2528. setCalendar();
  2529. }
  2530. // function setCalendar(dateObj) {
  2531. function setCalendar() {
  2532. grd_calendar.rebuildStyle();
  2533. // 그리드 초기화
  2534. //model.removeNodeset("/root/hidden/calendar/weeklist/list");
  2535. grd_calendar.rebuild()
  2536. // AWMCommon.js에서 지원하는 함수 getNodesetCnt
  2537. /*************************************************************************
  2538. * 로드갯수 구하기
  2539. * @param : 모델명(model1), 경로(path) 일수가 구해짐.
  2540. ************************************************************************/
  2541. var nodeno = getNodesetCnt(model1, "/root/main/visitcounts/caldatainfo");
  2542. // alert("nodeno"+ nodeno);
  2543. for(i =1, j= nodeno; i<=j ; i++){
  2544. var row = model.getValue("/root/main/visitcounts/caldatainfo["+ i +"]/weekno");// 주
  2545. var col = model.getValue("/root/main/visitcounts/caldatainfo["+ i +"]/dw")-1;// 요일
  2546. var dutflag = model.getValue("/root/main/visitcounts/caldatainfo[" + i + "]/dutflag");
  2547. var basedd = model.getValue("/root/main/visitcounts/caldatainfo["+ i +"]/basedd");
  2548. if( dutflag == "4"){ //토요일인 경우, 파란색 설정
  2549. grd_calendar.cellStyle("color", row, col, row, col) = "#0000ff";
  2550. // 0- 평일 인 경우는 검은색 설정
  2551. } else if ( dutflag == '0') {
  2552. grd_calendar.cellStyle("color", row, col, row, col) = "#000000";
  2553. // 8 - 휴일인 경우는 빨간색 설정
  2554. } else if( dutflag == '8') {
  2555. grd_calendar.cellStyle("color", row, col, row, col) = "#ff0000";
  2556. }
  2557. if(basedd == model.getValue("/root/send/visitdd")){ // 오늘날짜(업무일자) 보라색 표시
  2558. grd_calendar.cellStyle("background-color", row, col) = "#daa7d9";
  2559. grd_calendar.cellStyle("background-color", row, col+7) = "#daa7d9";
  2560. }
  2561. //alert(row+model.getValue("/root/main/visitcounts/caldatainfo["+ i +"]/day"));
  2562. switch(col){ // 달력에 날짜대입
  2563. case 0:
  2564. model.setValue("/root/hidden/calendar/weeklist/list[" + row + "]/sun", model.getValue("/root/main/visitcounts/caldatainfo["+ i +"]/day"));
  2565. break;
  2566. case 1:
  2567. model.setValue("/root/hidden/calendar/weeklist/list[" + row + "]/mon", model.getValue("/root/main/visitcounts/caldatainfo["+ i +"]/day"));
  2568. break;
  2569. case 2:
  2570. model.setValue("/root/hidden/calendar/weeklist/list[" + row + "]/tue", model.getValue("/root/main/visitcounts/caldatainfo["+ i +"]/day"));
  2571. break;
  2572. case 3:
  2573. model.setValue("/root/hidden/calendar/weeklist/list[" + row + "]/wed", model.getValue("/root/main/visitcounts/caldatainfo["+ i +"]/day"));
  2574. break;
  2575. case 4:
  2576. model.setValue("/root/hidden/calendar/weeklist/list[" + row + "]/thu", model.getValue("/root/main/visitcounts/caldatainfo["+ i +"]/day"));
  2577. break;
  2578. case 5:
  2579. model.setValue("/root/hidden/calendar/weeklist/list[" + row + "]/fri", model.getValue("/root/main/visitcounts/caldatainfo["+ i +"]/day"));
  2580. break;
  2581. case 6:
  2582. model.setValue("/root/hidden/calendar/weeklist/list[" + row + "]/sat", model.getValue("/root/main/visitcounts/caldatainfo["+ i +"]/day"));
  2583. break;
  2584. }
  2585. }// for문 end
  2586. grd_calendar.refresh();
  2587. }
  2588. //환자정보의 담당간호사 매핑
  2589. //20071203 김홍점
  2590. function fChrgNursIdMapping(){
  2591. if ( model.getValue("/root/send/kind") == "1" ) {
  2592. model.setValue("/root/main/patinfo/patinforesult/chrgnursid1", model.getValue("/root/main/patinfo/patinforesult/chrgnursid"));
  2593. } else if ( model.getValue("/root/send/kind") == "2" ) {
  2594. model.setValue("/root/main/patinfo/patinforesult/chrgnursid2", model.getValue("/root/main/patinfo/patinforesult/chrgnursid"));
  2595. } else if ( model.getValue("/root/send/kind") == "3" ) {
  2596. model.setValue("/root/main/patinfo/patinforesult/chrgnursid3", model.getValue("/root/main/patinfo/patinforesult/chrgnursid"));
  2597. }
  2598. combo2.refresh();
  2599. combo10.refresh();
  2600. combo13.refresh();
  2601. //model.refresh();
  2602. }
  2603. //조회를 위한 값 make
  2604. //20071203 김홍점
  2605. function fMakeChrRgstKind(){
  2606. model.removenode("/root/send/chrrgstkindarr");
  2607. var patflag = model.getValue("/root/send/kind");
  2608. var getChrRgstKind = model.getValue("/root/send/chrrgstkind");
  2609. if(patflag == "2"){
  2610. if(getChrRgstKind == '1'){
  2611. sAttConcat = '1'; //등록
  2612. }else if(getChrRgstKind == '2'){
  2613. sAttConcat = '2'; //무료
  2614. }else if(getChrRgstKind == '3'){
  2615. sAttConcat = '3'; //기타
  2616. }else if(getChrRgstKind == '1,2' || getChrRgstKind == '2,1' ){
  2617. sAttConcat = '4'; //등록 + 무료
  2618. }else if(getChrRgstKind == '1,3' || getChrRgstKind == '3,1'){
  2619. sAttConcat = '5'; //등록 + 기타
  2620. }else if(getChrRgstKind == '2,3' || getChrRgstKind == '3,2'){
  2621. sAttConcat = '6'; //기타 + 무료
  2622. }else{
  2623. sAttConcat = '7'; //등록 + 기타 + 무료
  2624. }
  2625. model.makeValue("/root/send/chrrgstkindarr", sAttConcat);
  2626. }
  2627. }
  2628. ]]>
  2629. </script>
  2630. <script type="javascript">
  2631. <![CDATA[
  2632. // 그리드 사용자 팝업 메뉴 공통 함수
  2633. function fPreVisitDDInsert() {
  2634. // 방문예정일 등록
  2635. caption8.value = "방문예정일 등록";
  2636. opt_iuflag.value = "I";
  2637. ipt_inputschedule.value = getCurrentDate() ;
  2638. grp_inputschedule.visible = true;
  2639. }
  2640. function fPreVisitDDUpdate() {
  2641. //alert(gVisitdd);
  2642. model.setValue("/root/send/pid", gPid); // pid
  2643. model.setValue("/root/send/inptdt", gInptdt); // inptdt
  2644. model.setValue("/root/send/instcd", gInstcd); // /root/send/instcd
  2645. model.setValue("/root/send/currvisitdd", model.getValue("/root/send/visitdd")); // visitd 조회를 위한 방문일자
  2646. model.setValue("/root/send/mode", model.getValue("/root/send/mode")); // /root/send/mode 조회를 위한 모드
  2647. model.setValue("/root/send/kind", model.getValue("/root/send/kind")); // /root/send/kind 조회를 위한 모드
  2648. model.setValue("/root/send/visitdd", gVisitdd); // 삭제 방문예정일
  2649. //model.setValue("/root/send/patcareflag", gPatcareflag); // 간호구분(H:가정간호 , V:방문간호)
  2650. model.setValue("/root/send/patcareflag", model.getValue("/root/main/visitinfo/patcareflag")); // 간호구분(H:가정간호 , V:방문간호)
  2651. //20081007 방문기록 여부 확인 - 방문기록을 하였으면 방문예정일 삭제, 변경 못함
  2652. submit("TRMNF00126");
  2653. if(model.getValue("/root/temp/visitflag/visitflag/visitflagyn") >= '1'){
  2654. var retMsg = messageBox("방문기록내역이 있습니다. 삭제 할 수", "I004"); // 없습니다
  2655. return ;
  2656. }
  2657. // 방문예정일 변경
  2658. caption8.value = "방문예정일 변경";
  2659. opt_iuflag.value = "U";
  2660. ipt_inputschedule.value = gVisitdd;
  2661. grp_inputschedule.visible = true;
  2662. }
  2663. function fPreVisitDDDelete() {
  2664. if(getStringLength(gVisitdd) == 0) {
  2665. messageBox("삭제할 방문예정일이", "I004", "방문예정일을 선택하십시오."); // 없습니다.
  2666. return ;
  2667. }
  2668. var retMsg = messageBox("방문예정일 삭제를", "Q004"); // 실행 하시겠습니까? yes=6, no=7
  2669. if(retMsg != "6") {
  2670. return ;
  2671. }
  2672. model.setValue("/root/send/pid", gPid); // pid
  2673. model.setValue("/root/send/inptdt", gInptdt); // inptdt
  2674. model.setValue("/root/send/instcd", gInstcd); // /root/send/instcd
  2675. model.setValue("/root/send/currvisitdd", model.getValue("/root/send/visitdd")); // visitd 조회를 위한 방문일자
  2676. model.setValue("/root/send/mode", model.getValue("/root/send/mode")); // /root/send/mode 조회를 위한 모드
  2677. model.setValue("/root/send/kind", model.getValue("/root/send/kind")); // /root/send/kind 조회를 위한 모드
  2678. model.setValue("/root/send/visitdd", gVisitdd); // 삭제 방문예정일
  2679. //model.setValue("/root/send/patcareflag", gPatcareflag); // 간호구분(H:가정간호 , V:방문간호)
  2680. model.setValue("/root/send/patcareflag", model.getValue("/root/main/visitinfo/patcareflag")); // 간호구분(H:가정간호 , V:방문간호)
  2681. //model.refresh();
  2682. //20081007 방문기록 여부 확인 - 방문기록을 하였으면 방문예정일 삭제, 변경 못함
  2683. submit("TRMNF00126");
  2684. if(model.getValue("/root/temp/visitflag/visitflag/visitflagyn") >= '1'){
  2685. var retMsg = messageBox("방문기록내역이 있습니다. 삭제 할 수", "I004"); // 없습니다
  2686. return ;
  2687. }
  2688. model.resetInstanceNode("/root/main/grd_previsitlist");
  2689. model.resetInstanceNode("/root/main/visitcounts");
  2690. model.removeNodeset("/root/main/grd_viewprevisitlist");
  2691. submit("TXMNF00106");
  2692. model.setValue("/root/send/visitdd", model.getValue("/root/send/currvisitdd"));
  2693. copyNodeListType("/root/main/visitcounts", "/root/main/grd_previsitlist/visitcount", "replace", model, model);
  2694. // 방문예정일 재조회
  2695. // 7.개별 가정간호 방문조회 - 방문예정일 조회
  2696. // 달력에 일자별 방문(예정)건수 대입
  2697. //fDataDisplayPat (); // 환자 선택했을 경우 색상 구분
  2698. //fMoveViewPreVisitLIst();
  2699. //model.refresh();
  2700. // 당일방문예정에서 당일방문예정일을 삭제한 경우
  2701. if(searchListFlag == "1" && gVisitdd == getCurrentDate()) {
  2702. btn_search.dispatch("DOMActivate") ;
  2703. } else {
  2704. // 달력에 일자별 방문(예정)건수 대입
  2705. fDataDisplayPat (); // 환자 선택했을 경우 색상 구분
  2706. fMoveViewPreVisitLIst();
  2707. // model.refresh();
  2708. // 일자별 방문(예정)건수 재조회
  2709. submit("TRMNF00107");
  2710. // 달력에 일자별 방문(예정)건수 재대입
  2711. // fDataDisplay();
  2712. // 진행상태 : 당일방문예정, 미확정, 진행, 종결 카운트 재조회
  2713. submit("TRMNF00115")
  2714. if ( !fExcuteSearch(searchListFlag)) return;
  2715. }
  2716. }
  2717. // 의뢰취소,의뢰삭제시 submit 파라메터 설정 및 체크로직
  2718. function fSetReqCancelParam(pFlag){
  2719. if(pFlag == "C"){
  2720. model.setValue("/root/send/cancelreason", model.getValue("/root/main/reqcancel/reqcancelreason")); // cancelreason
  2721. model.makeValue("/root/send/reqcanceldelflag", "C");
  2722. }else if( getNodesetCnt( model1, "/root/main/grd_patvisitlst/patvisitlist") == "1"){ //의뢰삭제시 의뢰서가 하나만 존재할 경우,
  2723. messageBox("의뢰서가 하나만 존재하여 의뢰삭제를 할 수 없습니다. 필요시 종결등록하십시오.", "E999", "");
  2724. return false;
  2725. }else{ // 의뢰삭제시 방문기록삭제 하지 않도록 수정 (2009.07.20 hhm)
  2726. if( messageBox("의뢰서를", "Q001") == "7"){ // 삭제하시겠습니까?
  2727. messageBox("의뢰삭제가 취소되었습니다." , "E999", "");
  2728. return false; // return : yes=6, no=7
  2729. }else{
  2730. model.setValue("/root/send/status", 'u');
  2731. model.makeValue("/root/send/reqcanceldelflag", "D");
  2732. }
  2733. }
  2734. // 진행상태 - 1 : 당일방문예정 / 3 : 진행 (의뢰삭제)
  2735. if((model.getValue("/root/send/prcsstat") == '1' ) || (model.getValue("/root/send/prcsstat") == '3' ) ){
  2736. var Srow = grd_patvisitlst.row;
  2737. model.makeValue("/root/send/reqdd",model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + Srow + "]/reqdd"));
  2738. model.makeValue("/root/send/reqdeptcd",model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + Srow + "]/reqdeptcd"));
  2739. model.makeValue("/root/send/reqdrid",model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + Srow + "]/reqdrid"));
  2740. // submit 통합으로 주석처리 (2010.05.10 hhm)
  2741. // model.copyNode("/root/temp/canceldata", model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + Srow + "]")); // 2009.08.07 hhm 코드 길어서 수정
  2742. // 진행상태 - 미확정 (의뢰취소)
  2743. }else if(model.getValue("/root/send/prcsstat") == '2' ){
  2744. var Srow = grd_reqlist.row;
  2745. model.makeValue("/root/send/patflag", model.getValue("/root/send/kind"));
  2746. model.makeValue("/root/send/cancelreason", model.getValue("/root/main/reqcancel/reqcancelreason"));// 취소사유추가 (2010.05.11 hhm)
  2747. model.makeValue("/root/send/reqdd",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/reqdd"));
  2748. model.makeValue("/root/send/reqdeptcd",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/reqdeptcd"));
  2749. model.makeValue("/root/send/reqdrid",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/reqdrid"));
  2750. model.makeValue("/root/send/cnstdiagcd", model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/cnstdiagcd") );
  2751. model.makeValue("/root/send/no",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/no"));
  2752. model.makeValue("/root/send/procstatus",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/procstatus"));
  2753. model.makeValue("/root/send/detail",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/detail"));
  2754. model.makeValue("/root/send/hisrecord",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/hisrecord"));
  2755. model.makeValue("/root/send/pid",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/pid"));
  2756. model.makeValue("/root/send/hngnm",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/hngnm"));
  2757. model.makeValue("/root/send/sex",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/sex"));
  2758. // model.makeValue("/root/send/reqdd",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/reqdd"));
  2759. model.makeValue("/root/send/churchcd",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/churchcd"));
  2760. // model.makeValue("/root/send/churchnm",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/churchnm"));
  2761. // model.makeValue("/root/send/kind",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/kind"));
  2762. // model.makeValue("/root/send/reqdeptnm",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/reqdeptnm"));
  2763. // model.makeValue("/root/send/reqdrnm",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/reqdrnm"));
  2764. model.makeValue("/root/send/reqmode",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/reqmode"));
  2765. // model.makeValue("/root/send/reqdeptcd",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/reqdeptcd"));
  2766. // model.makeValue("/root/send/reqdrid",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/reqdrid"));
  2767. // model.makeValue("/root/send/instcd",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/instcd"));
  2768. model.makeValue("/root/send/formrecseq",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/formrecseq"));
  2769. // model.makeValue("/root/send/diagcd",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/diagcd"));
  2770. // model.makeValue("/root/send/diaghngnm",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/diaghngnm"));
  2771. // model.makeValue("/root/send/inptdt",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/inptdt"));
  2772. model.makeValue("/root/send/patcareflag",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/patcareflag"));
  2773. model.makeValue("/root/send/orddd",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/orddd"));
  2774. model.makeValue("/root/send/cretno",model.getValue("/root/main/grd_reqlist/reqlist[" + Srow + "]/cretno"));
  2775. }
  2776. // model.makeValue("/root/temp/canceldata/nurseid",model.getValue("/root/send/chrgnursid")); submit 통합으로 주석처리 (2010.05.10 hhm)
  2777. // model.makeValue("/root/temp/canceldata/prcsstat",model.getValue("/root/send/prcsstat"));
  2778. // 가정간호센터(2361000000)에서 가정간호팀(3090100000)로 변경 2009.03.27
  2779. //--------------(20100903 경북대)
  2780. //원본
  2781. //if ( getUserInfo("dutplcecd") == "3090100000" ){
  2782. // model.makeValue("/root/temp/canceldata/deptcd", "3090100000" );
  2783. //보정
  2784. if ( getUserInfo("dutplcecd") == ghomeDeptmain ){
  2785. model.makeValue("/root/temp/canceldata/deptcd", ghomeDeptmain );
  2786. //--------------(20100903 경북대)
  2787. }else if(getUserId() == "ENR" ){
  2788. model.makeValue("/root/temp/canceldata/deptcd", "ENR" );
  2789. }else {
  2790. model.makeValue("/root/temp/canceldata/deptcd", getUserInfo("dutplcecd") );
  2791. }
  2792. }
  2793. //의뢰취소 C, 의뢰삭제 D
  2794. function fHomeCarePatientCancel(pFlag) {
  2795. // 진행자 리스트에서 팝업 메뉴의 "취소" 선택시 사용되는 함수
  2796. // 가정간호 대상자 정보에서 취소 정보를 업데이트하고, 방문예정일을 삭제한다.
  2797. if( fSetReqCancelParam(pFlag) == false) return ; // 의뢰취소,의뢰삭제시 submit 파라메터 설정 및 체크로직
  2798. if (submit("TXMNF00107") == true){ // 가정간호 대상자 테이블에 환자가 존재하는 경우 취소정보 업데이트하고 존재하지 않는 경우 insert
  2799. if(pFlag != "C") messageBox("의뢰삭제", "I001");
  2800. }
  2801. }
  2802. // 가정간호 의뢰서 조회(미확정, 진행
  2803. function fHomeCareReqPaper() {
  2804. model.makeValue("/root/iviewerdata/pid", model.getValue("/root/main/patinfo/patinforesult/pid"));
  2805. model.makeValue("/root/iviewerdata/hngnm", model.getValue("/root/main/patinfo/patinforesult/hngnm"));
  2806. model.makeValue("/root/iviewerdata/sa", model.getValue("/root/main/patinfo/patinforesult/sex"));
  2807. model.makeValue("/root/iviewerdata/reqdeptnm", model.getValue("/root/main/patinfo/patinforesult/lastreqdeptnm"));
  2808. model.makeValue("/root/iviewerdata/reqdrnm", model.getValue("/root/main/patinfo/patinforesult/lastreqdrnm"));
  2809. model.setValue("/root/iviewerdata/formrecseq", gFormRecSeq);
  2810. // 미확정
  2811. if(searchListFlag == "2" ) {
  2812. var cur_row = grd_reqlist.row;
  2813. var spatcareflag = model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/patcareflag");
  2814. // 종결
  2815. } else if(searchListFlag == "3" ) {
  2816. var cur_row = grd_patvisitlst.row;
  2817. var spatcareflag = model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/patcareflag");
  2818. // 다른상태는 결과에서
  2819. }else {
  2820. var spatcareflag = model.getValue("/root/main/patinfo/patinforesult/patcareflag");
  2821. }
  2822. if (spatcareflag == "V") {
  2823. // 가정간호 의뢰서 보기
  2824. messageBox("가정간호 환자만 의뢰서 보기가","I006"); // I006 : 가능합니다.
  2825. return;
  2826. }
  2827. open("SPMNF00110", "", "", "", "SPMNF00110", "/root/iviewerdata", "/root/main/parameter");
  2828. }
  2829. //가정간호 처방발행
  2830. function fHomeCareOrder() {
  2831. //감면정보 같은 경우 인지 확인
  2832. //20080128 손은연
  2833. model.makeValue("/root/send/dctype", model.getValue("/root/main/patinfo/patinforesult/dctype"));
  2834. model.makeValue("/root/send/orddeptcd", model.getValue("/root/main/patinfo/patinforesult/reqdeptcd"));
  2835. model.makeValue("/root/send/orddrid", model.getValue("/root/main/patinfo/patinforesult/reqdrid"));
  2836. model.makeValue("/root/send/ocrflag", "");
  2837. // 가정간호/방문간호 가접수 구분위해 추가 2009.02.25
  2838. model.makeValue("/root/send/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
  2839. // 가정간호 환자만 open되도록 수정
  2840. spatcareflag = model.getValue("/root/main/patinfo/patinforesult/patcareflag");
  2841. //model.refresh();
  2842. if (spatcareflag == "V") {
  2843. messageBox("가정간호 환자만 가정간호 처방발행(PRN처방)이","I006"); // I006 : 가능합니다.
  2844. return;
  2845. }
  2846. var pid = model.getValue("/root/main/cond/patinfo/pid");
  2847. if(isNull(pid)){
  2848. //----(20101206) 경북대
  2849. //messageBox("가정간호로 가접수를 하지 않은 환자 이거나 진료과와 주치의를 잘 못 접수하였습니다.. 접수 후 처방 발행을","C002");
  2850. messageBox("가정간호로 가접수를 하지 않은 환자 이거나 진료과와 진료의를 잘 못 접수하였습니다.. 접수 후 처방 발행을","C002");
  2851. //----(20101206) 경북대
  2852. }else{
  2853. //상단정보를 띄워줌
  2854. //20080124 손은연
  2855. if (model.getValue("/root/main/cond/patinfo/ordtype") == "I" || model.getValue("/root/main/cond/patinfo/ordtype") == "E" ) {
  2856. // 상단 세팅을 위한 파라미터
  2857. condparam = "I"+ "▦" + model.getValue("/root/main/cond/patinfo/pid")
  2858. + "▦" + model.getValue("/root/main/cond/patinfo/orddd")
  2859. + "▦" + model.getValue("/root/main/cond/patinfo/cretno")
  2860. + "▦" + model.getValue("/root/main/cond/patinfo/instcd")
  2861. + "▦" + "" //기준일자 스페이스면 오늘일자로 자동세팅
  2862. setParameter("condparam", condparam);
  2863. //상단 세팅 화면 사이즈 작게 띄움
  2864. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  2865. } else if( model.getValue("/root/main/cond/patinfo/ordtype") == "O" ) {
  2866. var ordtype = model.getValue("//root/main/cond/patinfo/ordtype");
  2867. var pid = model.getValue("/root/main/cond/patinfo/pid");
  2868. var orddd = model.getValue("/root/main/cond/patinfo/orddd");
  2869. var cretno = model.getValue("/root/main/cond/patinfo/cretno");
  2870. var instcd = model.getValue("/root/main/cond/patinfo/instcd");
  2871. var acptseqno = "";
  2872. var orgorddd = "";
  2873. var param = ordtype + "▦" + pid + "▦" + orddd + "▦" + cretno + "▦" + instcd + "▦" + "" + "▦" + orgorddd;
  2874. setParameter("condparam", param);
  2875. //상단 세팅 화면 사이즈 작게 띄움
  2876. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  2877. }
  2878. model.makeValue("/root/main/cond/patinfo/formrecseq", model.getValue("/root/main/patinfo/patinforesult/formrecseq"));
  2879. model.makeValue("/root/main/cond/patinfo/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
  2880. // 가정간호 처방발행(간호) 호출
  2881. open("SMMNF03000", "1", "10", "10", "SMMNF03000", "/root/main/cond/patinfo", "/root/main/cond/patinfo");
  2882. }
  2883. //delPatientInfos(); //화면상단정보 삭제
  2884. }
  2885. //간호처방 (2008.04.21 손은연)
  2886. function fCareOrder() {
  2887. // model.removeNodeset("/root/main/cond/patinfo"); //초기화
  2888. //감면정보 같은 경우 인지 확인
  2889. //20080128 손은연
  2890. model.makeValue("/root/send/dctype", model.getValue("/root/main/patinfo/patinforesult/dctype"));
  2891. model.makeValue("/root/send/orddeptcd", model.getValue("/root/main/patinfo/patinforesult/reqdeptcd"));
  2892. model.makeValue("/root/send/orddrid", model.getValue("/root/main/patinfo/patinforesult/reqdrid"));
  2893. model.makeValue("/root/send/ocrflag", "");
  2894. // 가정간호/방문간호 가접수 구분위해 추가 2009.02.25
  2895. model.makeValue("/root/send/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
  2896. // 외래접수정보 조회
  2897. // submit("TRMNF00120"); fGetPatInfo에서 외래접수 조회하기 때문에 주석처리 2010.05.24 hhm
  2898. var pid = model.getValue("/root/main/cond/patinfo/pid");
  2899. //setPatientInfos(pid);
  2900. if(isNull(pid)){
  2901. //------(20101206) 경북대
  2902. //messageBox("가정간호로 가접수를 하지 않은 환자 이거나 진료과와 주치의를 잘 못 접수하였습니다.. 접수 후 처방 발행을","C002");
  2903. messageBox("가정간호로 가접수를 하지 않은 환자 이거나 진료과와 진료의를 잘 못 접수하였습니다.. 접수 후 처방 발행을","C002");
  2904. //------(20101206) 경북대
  2905. }else{
  2906. //상단정보를 띄워줌
  2907. //20080124 손은연
  2908. if (model.getValue("/root/main/cond/patinfo/ordtype") == "I" || model.getValue("/root/main/cond/patinfo/ordtype") == "E" ) {
  2909. // 상단 세팅을 위한 파라미터
  2910. condparam = "I"+ "▦" + model.getValue("/root/main/cond/patinfo/pid")
  2911. + "▦" + model.getValue("/root/main/cond/patinfo/orddd")
  2912. + "▦" + model.getValue("/root/main/cond/patinfo/cretno")
  2913. + "▦" + model.getValue("/root/main/cond/patinfo/instcd")
  2914. + "▦" + "" //기준일자 스페이스면 오늘일자로 자동세팅
  2915. setParameter("condparam", condparam);
  2916. //상단 세팅 화면 사이즈 작게 띄움
  2917. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  2918. } else if( model.getValue("/root/main/cond/patinfo/ordtype") == "O" ) {
  2919. var ordtype = model.getValue("//root/main/cond/patinfo/ordtype");
  2920. var pid = model.getValue("/root/main/cond/patinfo/pid");
  2921. var orddd = model.getValue("/root/main/cond/patinfo/orddd");
  2922. var cretno = model.getValue("/root/main/cond/patinfo/cretno");
  2923. var instcd = model.getValue("/root/main/cond/patinfo/instcd");
  2924. var acptseqno = "";
  2925. var orgorddd = "";
  2926. var param = ordtype + "▦" + pid + "▦" + orddd + "▦" + cretno + "▦" + instcd + "▦" + "" + "▦" + orgorddd;
  2927. setParameter("condparam", param);
  2928. //상단 세팅 화면 사이즈 작게 띄움
  2929. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  2930. }
  2931. setParameter("screenParam", "SMMNH");
  2932. // 간호처방 호출
  2933. modal("SMMNW10900", "1", "10", "10", "SMMNW10900");
  2934. }
  2935. //delPatientInfos(); //화면상단정보 삭제
  2936. }
  2937. //시행부서처방 (2008.04.21 손은연)
  2938. function fExecDeptOrder() {
  2939. // model.removeNodeset("/root/main/cond/patinfo"); //초기화
  2940. //감면정보 같은 경우 인지 확인
  2941. //20080128 손은연
  2942. model.makeValue("/root/send/dctype", model.getValue("/root/main/patinfo/patinforesult/dctype"));
  2943. model.makeValue("/root/send/orddeptcd", model.getValue("/root/main/patinfo/patinforesult/reqdeptcd"));
  2944. model.makeValue("/root/send/orddrid", model.getValue("/root/main/patinfo/patinforesult/reqdrid"));
  2945. model.makeValue("/root/send/ocrflag", "");
  2946. // 가정간호/방문간호 가접수 구분위해 추가 2009.02.25
  2947. model.makeValue("/root/send/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
  2948. // 외래접수정보 조회
  2949. // submit("TRMNF00120"); // fGetPatInfo에서 외래접수 조회하기 때문에 주석처리 2010.05.24 hhm
  2950. var pid = model.getValue("/root/main/cond/patinfo/pid");
  2951. if(isNull(pid)){
  2952. //--------(20101206) 경북대
  2953. //messageBox("가정간호로 가접수를 하지 않은 환자 이거나 진료과와 주치의를 잘 못 접수하였습니다.. 접수 후 처방 발행을","C002");
  2954. messageBox("가정간호로 가접수를 하지 않은 환자 이거나 진료과와 진료의를 잘 못 접수하였습니다.. 접수 후 처방 발행을","C002");
  2955. //--------(20101206) 경북대
  2956. }else{
  2957. var pid = model.getValue("/root/main/cond/patinfo/pid");
  2958. var orddd = model.getValue("/root/main/cond/patinfo/orddd");
  2959. var cretno = model.getValue("/root/main/cond/patinfo/cretno");
  2960. var instcd = model.getValue("/root/main/cond/patinfo/instcd");
  2961. var ordtype = model.getValue("/root/main/cond/patinfo/ordtype");
  2962. setParameter("SMMMO00200_pid", pid);
  2963. setParameter("SMMMO00200_orddd", orddd);
  2964. setParameter("SMMMO00200_cretno", cretno);
  2965. setParameter("SMMMO00200_instcd", instcd);
  2966. setParameter("SMMMO00200_ioflag", ordtype); //진료형태 : 외래 'O'
  2967. // 시행부서처방호출
  2968. modal("SMMMO00200", "1", "", "", "SMMMO00200", "", "");
  2969. }
  2970. }
  2971. function fGridInsertRow() {
  2972. grd_viewprevisitlist.insertRow(grd_viewprevisitlist.row, true);
  2973. }
  2974. function fGridDeleteRow() {
  2975. grd_viewprevisitlist.deleteRow(grd_viewprevisitlist.row, true);
  2976. }
  2977. function fOpenPopup() {
  2978. var rowNode;
  2979. var destNode = instance1.selectSingleNode("/root/send");
  2980. var xpos = window.width / 2 - 100;
  2981. var ypos = window.height / 2 - 100;
  2982. for( var i = 0; i < grd_previsitlist.selectedRows; i++ ) {
  2983. rowNode = instance1.selectSingleNode("/root/datagrid/grid01/row[" + (grd_previsitlist.selectedRow(i) - grd_previsitlist.fixedRows + 1) + "]");
  2984. model.duplicate(destNode, rowNode);
  2985. }
  2986. open("SMMNF01100","",xpos,ypos,"SMMNF01100","","");
  2987. }
  2988. // 간호정보조사
  2989. function fHomeCareInfoPaper() {
  2990. //var row = grd_visitlst.row;
  2991. //var pid = model.getValue("/root/main/grd_visitlst/visitlist[" + row + "]/pid");
  2992. var row = grd_patvisitlst.row;
  2993. var pid = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + row + "]/pid");
  2994. var endyn = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + row + "]/enddd");
  2995. var spatcareflag = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + row + "]/patcareflag");
  2996. var kind = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + row + "]/kind");
  2997. var chrrgstkind = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + row + "]/chrrgstkind");
  2998. model.makeNode("/root/temp/cond/list/endflag");
  2999. //if (endyn == ""){
  3000. if(isNull(endyn)){
  3001. model.setValue("/root/temp/cond/list/endflag",'');
  3002. } else {
  3003. model.setValue("/root/temp/cond/list/endflag",'Y');
  3004. }
  3005. if(row == -1){
  3006. var row = grd_reqlist.row;
  3007. var pid = model.getValue("/root/main/grd_reqlist/reqlist[" + row + "]/pid");
  3008. }
  3009. model.removeNodeset("/root/temp/cond/list");
  3010. model.makeValue("/root/temp/cond/list/pid", pid);
  3011. model.makeValue("/root/temp/cond/list/patcareflag", spatcareflag);
  3012. if(kind == "2" && chrrgstkind != "1" ) model.makeValue("/root/temp/cond/list/chrrgstkindYN", "Y" ); // 기타 무료 환자인 경우 (2010.06.04 hhm)
  3013. submit("TRMNF00122"); // 가정간호 정보조사지 보내는 키값 조회
  3014. model.makeValue("/root/temp/cond/list/tel",model.getValue("/root/main/patinfo/patinforesult/telno1"));
  3015. model.makeValue("/root/temp/cond/list/mphone",model.getValue("/root/main/patinfo/patinforesult/cphone1"));
  3016. model.makeValue("/root/temp/cond/list/etcphone1",model.getValue("/root/main/patinfo/patinforesult/telno2"));
  3017. model.makeValue("/root/temp/cond/list/etcphone2",model.getValue("/root/main/patinfo/patinforesult/cphone2"));
  3018. model.makeValue("/root/temp/cond/list/orddrnm",model.getValue("/root/main/patinfo/patinforesult/lastreqdrnm"));
  3019. model.makeValue("/root/temp/cond/list/reqdd",model.getValue("/root/main/patinfo/patinforesult/lastreqdd"));
  3020. model.makeValue("/root/temp/cond/list/diagnm",model.getValue("/root/main/patinfo/patinforesult/diaghngnm"));
  3021. // pid, indd, cretno가 꼭 파라메터로 가야함.. 아니면 [전달 인자값이 누락되었습니다] 메세지 창 나옴.
  3022. if(isNull(model.getValue("/root/temp/cond/list/pid"))){
  3023. messageBox("가정간호 대상자가 아닙니다. 가정간호 정보조사지를 작성","E001");
  3024. }else{
  3025. //가정간호 정보조사지
  3026. open("SMMNF00300", "", "", "", "SMMNF00300", "/root/temp/cond", "/root/temp/cond");
  3027. }
  3028. }
  3029. //방문기록 화면으로 이동
  3030. function fHomeCareVisitRec() {
  3031. model.copyNode("/root/temp/send", "/root/send");
  3032. var row = grd_patvisitlst.row;
  3033. var pid = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + row + "]/pid");
  3034. var spatcareflag = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + row + "]/patcareflag");
  3035. var kind = model.getValue("/root/send/kind");
  3036. model.setValue("/root/send/patflag", kind);
  3037. if(kind == '2'){
  3038. var churchcd = model.getValue("/root/send/churchcd");
  3039. var churchcd1 = model.getValue("/root/main/patinfo/patinforesult/churchcd");
  3040. if(churchcd == '-'){
  3041. if(isNull(churchcd1)){
  3042. model.setValue("/root/send/churchcd", '-');
  3043. }else{
  3044. model.setValue("/root/send/churchcd", churchcd1);
  3045. }
  3046. }
  3047. var chrgnursid = model.getValue("/root/send/chrgnursid");
  3048. var chrgnursid2 = model.getValue("/root/main/patinfo/patinforesult/chrgnursid2")
  3049. if(chrgnursid == '%'){
  3050. if(isNull(chrgnursid2)){
  3051. model.setValue("/root/send/chrgnursid", '%');
  3052. }else{
  3053. model.setValue("/root/send/chrgnursid", chrgnursid2);
  3054. }
  3055. }
  3056. }else{
  3057. model.setValue("/root/send/churchcd", '-');
  3058. var chrgnursid = model.getValue("/root/send/chrgnursid");
  3059. var chrgnursid1 = model.getValue("/root/main/patinfo/patinforesult/chrgnursid1")
  3060. if(chrgnursid == '%'){
  3061. if(isNull(chrgnursid1)){
  3062. model.setValue("/root/send/chrgnursid", '%');
  3063. }else{
  3064. model.setValue("/root/send/chrgnursid", chrgnursid1);
  3065. }
  3066. }
  3067. }
  3068. //var spatcareflag = model.getValue("/root/main/patinfo/patinforesult/patcareflag")
  3069. model.setValue("/root/send/searchkind", '1');
  3070. model.setValue("/root/send/pid", pid);
  3071. model.setValue("/root/send/menuparameter", '1');
  3072. model.setValue("/root/send/patcareflag", spatcareflag);
  3073. //가정간호 방문기록
  3074. open("SMMNF00400", "", "", "", "SMMNF00400", "/root/send", "/root/send");
  3075. //model.removeNodeset("/root/send");
  3076. model.copyNode("/root/send", "/root/temp/send");
  3077. }
  3078. //화면이 생성되면 키값을 넘겨주어야함
  3079. function fHomeCareProgSmm() {
  3080. model.copyNode("/root/temp/send", "/root/send");
  3081. // 미확정 이외는 그리드 통합함..2009.02.24
  3082. var row = grd_patvisitlst.row;
  3083. var pid = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + row + "]/pid");
  3084. var spatcareflag = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + row + "]/patcareflag");
  3085. inptdt = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + row + "]/inptdt");
  3086. var spatcareflag = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + row + "]/patcareflag");
  3087. if (spatcareflag == "V") {
  3088. messageBox("가정간호 환자만 경과요약이","I006"); // I006 : 가능합니다.
  3089. return;
  3090. }
  3091. var kind = model.getValue("/root/send/kind");
  3092. model.setValue("/root/send/patflag", kind);
  3093. if(kind == '2'){
  3094. var churchcd = model.getValue("/root/send/churchcd");
  3095. var churchcd1 = model.getValue("/root/main/patinfo/patinforesult/churchcd");
  3096. if(churchcd == '-'){
  3097. if(isNull(churchcd1)){
  3098. model.setValue("/root/send/churchcd", '-');
  3099. }else{
  3100. model.setValue("/root/send/churchcd", churchcd1);
  3101. }
  3102. }
  3103. var chrgnursid = model.getValue("/root/send/chrgnursid");
  3104. var chrgnursid2 = model.getValue("/root/main/patinfo/patinforesult/chrgnursid2")
  3105. if(chrgnursid == '%'){
  3106. if(isNull(chrgnursid1)){
  3107. model.setValue("/root/send/chrgnursid", '%');
  3108. }else{
  3109. model.setValue("/root/send/chrgnursid", chrgnursid2);
  3110. }
  3111. }
  3112. }else{
  3113. model.setValue("/root/send/churchcd", '-');
  3114. var chrgnursid = model.getValue("/root/send/chrgnursid");
  3115. var chrgnursid1 = model.getValue("/root/main/patinfo/patinforesult/chrgnursid1")
  3116. if(chrgnursid == '%'){
  3117. if(isNull(chrgnursid1)){
  3118. model.setValue("/root/send/chrgnursid", '%');
  3119. }else{
  3120. model.setValue("/root/send/chrgnursid", chrgnursid1);
  3121. }
  3122. }
  3123. }
  3124. model.setValue("/root/send/searchkind", '1');
  3125. model.setValue("/root/send/pid", pid);
  3126. model.makeValue("/root/send/inptdt", inptdt);
  3127. model.makeValue("/root/send/formrecseq", model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + row + "]/formrecseq")); // 2010.05.20 hhm 형상변경으로 추가
  3128. model.makeValue("/root/send/vitcareflag", 'Y');
  3129. model.setValue("/root/send/menuparameter", '2');
  3130. //가정간호 경과요약
  3131. open("SMMNF00400", "", "", "", "SMMNF00400", "/root/send", "/root/send");
  3132. //model.removeNodeset("/root/send");
  3133. model.copyNode("/root/send", "/root/temp/send");
  3134. }
  3135. // 종결요약
  3136. function fHomeCareEndSmm() {
  3137. model.copyNode("/root/temp/send", "/root/send");
  3138. var row = grd_patvisitlst.row;
  3139. // 방문예정 / 만료 / 진행 리스트
  3140. if(row != 0){
  3141. if(searchListFlag == "1" || searchListFlag == "4" || searchListFlag == "5") {
  3142. // 방문예정 리스트
  3143. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/pid", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+row+"]/pid"));
  3144. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/inptdt", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+row+"]/inptdt"));
  3145. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/instcd", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+row+"]/instcd"));
  3146. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/patflag", model.getValue("/root/main/patinfo/patinforesult/patflag"));
  3147. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/patnm", model.getValue("/root/main/patinfo/patinforesult/hngnm"));
  3148. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/sex", model.getValue("/root/main/patinfo/patinforesult/sex"));
  3149. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/endnurseid", getUserId());
  3150. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/endconfirmid", getUserId());
  3151. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/endnursenm", getUserName() );
  3152. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/endconfirmnm", getUserName() );
  3153. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/reqdeptnm", model.getValue("/root/main/patinfo/patinforesult/lastreqdeptnm"));
  3154. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/reqdrnm", model.getValue("/root/main/patinfo/patinforesult/lastreqdrnm"));
  3155. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/diagnm", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+row+"]/diagname"));
  3156. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/rgstdd", model.getValue("/root/main/patinfo/patinforesult/rgstdd"));
  3157. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/enddd", getCurrentDate());
  3158. if (model.getValue("/root/main/patinfo/patinforesult/patcareflag")=='H') {
  3159. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/visitcnt", model.getValue("/root/main/patinfo/visitaccount/totvisitcnt"));
  3160. } else if (model.getValue("/root/main/patinfo/patinforesult/patcareflag")=='C') {
  3161. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/visitcnt", model.getValue("/root/main/patinfo/visitaccount/totvisitcnt"));
  3162. } else if (model.getValue("/root/main/patinfo/patinforesult/patcareflag")=='V') {
  3163. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/visitcnt", model.getValue("/root/main/patinfo/visitaccount/vtotvisitcnt"));
  3164. }
  3165. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/enddd", getCurrentDate());
  3166. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/endreasonflag", "");
  3167. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/endtypeflag", "");
  3168. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/endtyperemark", "");
  3169. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/endstatflag", "");
  3170. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/rgstpatstat", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+row+"]/rgstpatstat"));
  3171. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/endpatstat", "");
  3172. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/savemode", "I");
  3173. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/reqdd", model.getValue("/root/main/patinfo/patinforesult/reqdd"));
  3174. model.setValue("/root/endsummarytrnsdata/endsummaryrecord/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
  3175. //model.refresh();
  3176. open("SMMNF00500", "", "", "", "SMMNF00500", "/root/endsummarytrnsdata/endsummaryrecord", "/root/main/endsummary/endsummaryrecord");
  3177. }
  3178. }
  3179. }
  3180. // 피부욕창기록
  3181. function fHomeCareSkinWundRec() {
  3182. model.makeValue("/root/send/req/pid" ,model.getValue("/root/main/patinfo/patinforesult/pid"));
  3183. model.makeValue("/root/send/req/reqdeptcd" ,model.getValue("/root/main/patinfo/patinforesult/reqdeptcd"));
  3184. model.makeValue("/root/send/req/reqdrid" ,model.getValue("/root/main/patinfo/patinforesult/reqdrid"));
  3185. model.makeValue("/root/send/req/formrecseq" ,model.getValue("/root/main/patinfo/patinforesult/formrecseq"));
  3186. model.makeValue("/root/send/req/kind" ,model.getValue("/root/send/prcsstat"));
  3187. //--------------(20100903 경북대)
  3188. //원본
  3189. //setParameter("homecarecd", '3090100000'); //가정간호를 구분하기 위해 보냄
  3190. setParameter("homecarecd", ghomeDeptmain); //가정간호를 구분하기 위해 보냄
  3191. //--------------(20100903 경북대)
  3192. setParameter("ioflag", 'O'); //입원환자 아님
  3193. setParameter("pid", model.getValue("/root/main/patinfo/patinforesult/pid"));
  3194. setParameter("hngnm", model.getValue("/root/main/patinfo/patinforesult/hngnm"));
  3195. setParameter("wardcd", '-');
  3196. setParameter("roomcd", '-');
  3197. setParameter("orddd", model.getValue("/root/main/paminfo/list/orddd")); // 통합기록조회에서 조회되지 않아서 파라메터 4개 추가 orddd, cretno, orddrid, orddeptcd (2009.07.23 hhm)
  3198. setParameter("cretno", '1');
  3199. setParameter("inptdt", model.getValue("/root/main/patinfo/patinforesult/inptdt")); // 피부욕창기록 외래건 조회 안되는 경우 때문에 파라메터 추가함(2009.10.07 hhm)
  3200. setParameter("careflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag")); // 피부욕창기록 외래건 조회 안되는 경우 때문에 파라메터 추가함(2009.10.07 hhm)
  3201. //--------------(20100903 경북대)
  3202. //원본
  3203. //setParameter("orddrid", '3090100000');
  3204. //setParameter("orddeptcd", '3090100000');
  3205. //보정
  3206. setParameter("orddrid", ghomeDeptmain);
  3207. setParameter("orddeptcd", ghomeDeptmain);
  3208. //--------------(20100903 경북대)
  3209. //피부욕창기록 화면을 띄움
  3210. modal("SMMNW04700", "", "", "", "SMMNW04700");
  3211. //조회후 send/req 인스턴스 삭제_방문예정일 저장시 오류해결_20090924_SMY
  3212. model.removeNodeset("/root/send/req");
  3213. }
  3214. function fHomeCareMMSE() {
  3215. // 가정간호/방문간호 가접수 구분위해 추가 2009.02.25
  3216. model.makeValue("/root/send/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
  3217. var pid = model.getValue("/root/main/cond/patinfo/pid");
  3218. if(isNull(pid)){
  3219. messageBox("접수를 하지 않은 환자 입니다. 접수 후 가접수 후 서식을","C002");
  3220. }else{
  3221. setParameter("openmode", "newform"); //오픈모드
  3222. setParameter("pid", model.getValue("/root/main/cond/patinfo/pid")); //등록번호
  3223. setParameter("orddd", model.getValue("/root/main/cond/patinfo/orddd")); //진료일
  3224. setParameter("cretno", model.getValue("/root/main/cond/patinfo/cretno")); //생성번호
  3225. setParameter("ioflag", model.getValue("/root/main/cond/patinfo/ordtype")); //내원구분
  3226. setParameter("orddeptcd", model.getValue("/root/main/cond/patinfo/orddeptcd")); //진료과
  3227. setParameter("orddrid", model.getValue("/root/main/cond/patinfo/orddrid")); //주치의(진료의)
  3228. setParameter("formcd", "0000001104"); //서식코드
  3229. modal("SSMMR01100", 1, 0, 0, "", "", "");
  3230. }
  3231. }
  3232. function fHomeCareSSDQ() {
  3233. // 가정간호/방문간호 가접수 구분위해 추가 2009.02.25
  3234. model.makeValue("/root/send/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
  3235. // 외래접수정보 조회
  3236. // submit("TRMNF00120"); fGetPatInfo에서 외래접수 조회하기 때문에 주석처리 2010.05.25 hhm
  3237. var pid = model.getValue("/root/main/cond/patinfo/pid");
  3238. if(isNull(pid)){
  3239. messageBox("접수를 하지 않은 환자 입니다. 접수 후 가접수 후 서식을","C002");
  3240. }else{
  3241. setParameter("openmode", "newform"); //오픈모드
  3242. setParameter("pid", model.getValue("/root/main/cond/patinfo/pid")); //등록번호
  3243. setParameter("orddd", model.getValue("/root/main/cond/patinfo/orddd")); //진료일
  3244. setParameter("cretno", model.getValue("/root/main/cond/patinfo/cretno")); //생성번호
  3245. setParameter("ioflag", model.getValue("/root/main/cond/patinfo/ordtype")); //내원구분
  3246. setParameter("orddeptcd", model.getValue("/root/main/cond/patinfo/orddeptcd")); //진료과
  3247. setParameter("orddrid", model.getValue("/root/main/cond/patinfo/orddrid")); //주치의(진료의)
  3248. setParameter("formcd", "0000001310"); //서식코드
  3249. modal("SSMMR01100", 1, 0, 0, "", "", "");
  3250. }
  3251. }
  3252. // OCR 서식지출력
  3253. function fOCRDocuPrnt() {
  3254. var cur_row = grd_patvisitlst.row;
  3255. var kind = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + cur_row + "]/kind");
  3256. if((kind == '무료') || (kind == '기타')){
  3257. messageBox("무료나 기타환자는 외래접수를 하실수","I004");
  3258. return;
  3259. }
  3260. var pid = model.getValue("/root/main/patinfo/patinforesult/pid");
  3261. var hngnm = model.getValue("/root/main/patinfo/patinforesult/hngnm");
  3262. var orddd = model.getValue("/root/send/visitdd");
  3263. var orddeptcd = model.getValue("/root/main/patinfo/patinforesult/reqdeptcd");
  3264. var orddrid = model.getValue("/root/main/patinfo/patinforesult/reqdrid");
  3265. var orddeptnm = model.getValue("/root/main/patinfo/patinforesult/lastreqdeptnm");
  3266. var orddrnm = model.getValue("/root/main/patinfo/patinforesult/lastreqdrnm");
  3267. var rrgtno = model.getValue("/root/main/patinfo/patinforesult/rrgstno");
  3268. var rrgstno1 = rrgtno.substr(0, 6);
  3269. var rrgstno2 = rrgtno.substr(7, 7);
  3270. //감면정보 같은 경우 인지 확인
  3271. //20080128 손은연
  3272. model.setValue("/root/send/dctype", model.getValue("/root/main/patinfo/patinforesult/dctype"));
  3273. model.setValue("/root/send/instcd", model.getValue("/root/main/patinfo/patinforesult/instcd"));
  3274. model.makeValue("/root/send/pid" ,model.getValue("/root/main/patinfo/patinforesult/pid"));
  3275. model.makeValue("/root/send/orddeptcd", model.getValue("/root/main/patinfo/patinforesult/reqdeptcd"));
  3276. model.makeValue("/root/send/orddrid", model.getValue("/root/main/patinfo/patinforesult/reqdrid"));
  3277. model.makeValue("/root/send/ocrflag", "Y");
  3278. // 가정간호/방문간호 가접수 구분위해 추가 2009.02.25
  3279. model.makeValue("/root/send/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
  3280. // 외래접수정보 조회
  3281. // submit("TRMNF00120"); fGetPatInfo에서 외래접수 조회하기 때문에 주석처리 2010.05.27 hhm
  3282. model.removenode("/root/send/ocrflag");
  3283. if(model.getValue("/root/main/cond/patinfo/pid") == ""){
  3284. messageBox("환자의 외래접수 정보를 가지고 있지 ", "E007");
  3285. return;
  3286. }else{
  3287. var cretno = model.getValue("/root/main/cond/patinfo/cretno");
  3288. var ordtype = model.getValue("/root/main/cond/patinfo/ordtype");
  3289. var orddd = model.getValue("/root/main/cond/patinfo/orddd");
  3290. var instcd = model.getValue("/root/main/cond/patinfo/instcd");
  3291. model.makeValue("/root/temp/para/pid", pid);
  3292. model.makeValue("/root/temp/para/patnm", hngnm);
  3293. model.makeValue("/root/temp/para/orddd", orddd);
  3294. model.makeValue("/root/temp/para/orddeptcd", orddeptcd);
  3295. model.makeValue("/root/temp/para/orddrid", orddrid);
  3296. model.makeValue("/root/temp/para/orddeptnm", orddeptnm);
  3297. model.makeValue("/root/temp/para/drnm", orddrnm);
  3298. model.makeValue("/root/temp/para/cretno", cretno);
  3299. model.makeValue("/root/temp/para/ordtype", ordtype);
  3300. model.makeValue("/root/temp/para/inroomcd", '');
  3301. model.makeValue("/root/temp/para/rrgstno1", rrgstno1);
  3302. model.makeValue("/root/temp/para/rrgstno2", rrgstno2);
  3303. model.makeValue("/root/temp/para/instcd", instcd);
  3304. //OCR 서식지 출력
  3305. open("SMMRF02300", "", "", "", "" ," /root/temp/para" , " /root/temp/para");
  3306. }
  3307. }
  3308. function fDschHomeCareRecRef(){
  3309. model.makeValue("/root/send/req/pid" ,model.getValue("/root/main/patinfo/patinforesult/pid"));
  3310. model.makeValue("/root/send/req/reqdeptcd" ,model.getValue("/root/main/patinfo/patinforesult/reqdeptcd"));
  3311. model.makeValue("/root/send/req/reqdrid" ,model.getValue("/root/main/patinfo/patinforesult/reqdrid"));
  3312. model.makeValue("/root/send/req/formrecseq" ,model.getValue("/root/main/patinfo/patinforesult/formrecseq"));
  3313. model.makeValue("/root/send/req/kind" ,model.getValue("/root/send/prcsstat"));
  3314. var spatcareflag = model.getValue("/root/main/patinfo/patinforesult/patcareflag");
  3315. if (spatcareflag == "V") {
  3316. messageBox("가정간호 환자만 퇴원시 가정간호기록 조회가","I006"); // I006 : 가능합니다.
  3317. return;
  3318. }
  3319. submit("TRMNF00407"); //입원정보 조회
  3320. fDschHomeCareRecRefOpen(); //2012.02.21_손성훈.
  3321. }
  3322. function fDschHomeCareRecRef_reqlist(){ // 미확정 리스트에서 '퇴원시 가정간호기록 조회' open _ 손성훈
  3323. var cur_row = grd_reqlist.row;
  3324. model.makeValue("/root/send/req/pid" ,model.getValue("/root/main/grd_reqlist/reqlist[" + cur_row + "]/pid"));
  3325. model.makeValue("/root/send/req/reqdeptcd" ,model.getValue("/root/main/grd_reqlist/reqlist[" + cur_row + "]/reqdeptcd"));
  3326. model.makeValue("/root/send/req/reqdrid" ,model.getValue("/root/main/grd_reqlist/reqlist[" + cur_row + "]/reqdrid"));
  3327. model.makeValue("/root/send/req/formrecseq" ,model.getValue("/root/main/grd_reqlist/reqlist[" + cur_row + "]/formrecseq"));
  3328. model.makeValue("/root/send/req/kind" ,model.getValue("/root/send/prcsstat"));
  3329. var spatcareflag = model.getValue("/root/main/grd_reqlist/reqlist[" + cur_row + "]/patcareflag");
  3330. if (spatcareflag == "V") {
  3331. messageBox("가정간호 환자만 퇴원시 가정간호기록 조회가","I006"); // I006 : 가능합니다.
  3332. return;
  3333. }
  3334. submit("TRMNF00407"); //입원정보 조회
  3335. fDschHomeCareRecRefOpen();
  3336. }
  3337. function fDschHomeCareRecRefOpen() {
  3338. var dschinfo = model.getValue("/root/hidden/inptinfo/inptinfo/pid");
  3339. var stat = model.getValue("/root/send/prcsstat");
  3340. // 진행상태 - 1. 당일방문예정 2. 미확정, 3. 진행
  3341. if(stat == "1" || stat == "3"){
  3342. var row = grd_patvisitlst.row;
  3343. var ioinfo = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + row + "]/inptstat");
  3344. if(isNull(dschinfo)){ //입원정보가 없고
  3345. if(isNull(ioinfo)){ // 재원상태(병동위치)가 없으면
  3346. messageBox("외래를 통해 가정간호의뢰되어 기록된 내역이","I004");
  3347. return;
  3348. }else{
  3349. messageBox("퇴원시 가정간호 간호의뢰 기록된 내역이","I004");
  3350. return;
  3351. }
  3352. }
  3353. }else if(stat == "2"){ // 미확정
  3354. if(model.getValue("/root/main/grd_reqlist/reqlist["+ grd_reqlist.row +"]/carerec") == "N"){
  3355. messageBox("퇴원시 가정간호 간호의뢰 기록된 내역이","I004");
  3356. return;
  3357. }
  3358. }
  3359. model.copyNode("root/hidden/cond", "/root/hidden/inptinfo/inptinfo");
  3360. model.makeValue("/root/hidden/cond/main", "HomeCareMain");
  3361. //퇴원시 가정간호 의뢰 간호 기록 화면 조회(parameter : pid, indd, instcd, orddeptcd, cretno, dschdt)
  3362. modal("SMMNF04300", "", "", "", "SMMNF04300" ," /root/hidden/cond" , " /root/hidden/cond");
  3363. //조회후 send/req 인스턴스 삭제_방문예정일 저장시 오류해결_20090924_SMY
  3364. model.removeNodeset("/root/send/req");
  3365. }
  3366. //외래접수
  3367. function fHomeCareOutAcpt() {
  3368. var cur_row = grd_patvisitlst.row;
  3369. var kind = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + cur_row + "]/kind");
  3370. var spatcareflag = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + cur_row + "]/patcareflag");
  3371. if(spatcareflag == 'C') { // 추후 확인후 삭제 필요 2016.06.13 엄영만
  3372. spatcareflag = 'H';
  3373. }
  3374. var inhospyn = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + cur_row + "]/inhospyn");
  3375. if(inhospyn == "Y"){ // 당일퇴원예정자(재원상태)에게 가정간호 가접수를 할 수 없도록 blocking (task번호: 33176 2009.11.02 hhm)
  3376. messageBox("재원상태이므로 가정간호 가접수 생성", "E001"); // 할 수 없습니다.
  3377. return;
  3378. }
  3379. // 감면유형 가정간호/방문간호 구분에 따른 파라미터 셋팅
  3380. if (spatcareflag == 'H') {
  3381. var dccd = model.getValue("/root/main/patinfo/patinforesult/dctype"); //현재 감면유형
  3382. var tempdccd = model.getValue("/root/temp/patinfo/patinforesult/dctype"); //가정간호 대상자 테이블에 저장된 감면유형
  3383. } else if (spatcareflag == 'V') {
  3384. // 방문간호 감면유형도 추가작업 2009.02.24
  3385. var dccd = model.getValue("/root/main/patinfo/patinforesult/vdctype"); //현재 감면유형
  3386. var tempdccd = model.getValue("/root/temp/patinfo/patinforesult/vdctype"); //가정간호 대상자 테이블에 저장된 감면유형
  3387. }
  3388. var xpos = window.width / 2 - 100;
  3389. var ypos = window.height / 2 - 200;
  3390. //var cur_row = grd_patvisitlst.row;
  3391. var pid = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + cur_row + "]/pid");
  3392. var orddeptcd = model.getValue("/root/main/patinfo/patinforesult/reqdeptcd");
  3393. var orddrid = model.getValue("/root/main/patinfo/patinforesult/reqdrid");
  3394. var qualflag = model.getValue("/root/main/patinfo/patinforesult/qualflag"); //가정간호 대상자 테이블에 저장된 본인부담률
  3395. //alert("[dddd]"+qualflag);
  3396. if((dccd == tempdccd) || (!isNull(tempdccd) && isNull(dccd))){
  3397. fSetOtptActp(); // 외래접수 파라메터 셋팅 & 외래접수 화면 open
  3398. }else{
  3399. var vbYes = messageBox("감면유형이 변경되었습니다. 변경사항을", "Q002");
  3400. if(vbYes == 6){
  3401. //감면유형을 가정간호대상자 테이블에 변경 정보를 저장
  3402. //btn_save.dispatch("DOMActivate");
  3403. //grd_visitlst.dispatch("onclick");
  3404. if (model.getValue("/root/send/kind") == "1" || model.getValue("/root/send/kind") == "3" ) { // 병원
  3405. // 1.환자 기본정보 저장(UPDATE)
  3406. submit("TXMNF00102");
  3407. } else if (model.getValue("/root/send/kind") == "2") { // 본당
  3408. //*****************************************************************************************************************
  3409. // 본당환자구분 : '1' 등록 , '2' 무료 , '3' 기타
  3410. // 본당환자 구분이 무료->기타, 기타->무료 로 바뀐 경우만 로직 적용
  3411. //*****************************************************************************************************************
  3412. if( model.getValue("/root/main/patinfo/patinforesult/oldchrrgstkind") != "1"
  3413. && combo1.value != "1"
  3414. && combo1.value != model.getValue("/root/main/patinfo/patinforesult/oldchrrgstkind")) {
  3415. // 저장 데이터 세팅
  3416. model.setValue("/root/main/patinfo/patinforesult/reqdd", "");
  3417. model.setValue("/root/main/patinfo/patinforesult/reqdeptcd", "");
  3418. model.setValue("/root/main/patinfo/patinforesult/reqdrid", "");
  3419. model.makeValue("/root/main/patinfo/patinforesult/newinptdt", getCurrentDate()+""+getCurrentTime());
  3420. model.makeValue("/root/main/patinfo/patinforesult/enddd" , model.getValue("/root/reqtransdata/enddd"));
  3421. model.makeValue("/root/main/patinfo/patinforesult/endconfirmdd" , model.getValue("/root/reqtransdata/endconfirmdd"));
  3422. model.makeValue("/root/main/patinfo/patinforesult/endnurseid" , model.getValue("/root/reqtransdata/endnurseid"))
  3423. model.makeValue("/root/main/patinfo/patinforesult/endconfirmid" , model.getValue("/root/reqtransdata/endconfirmid"));
  3424. model.makeValue("/root/main/patinfo/patinforesult/endreasonflag" , model.getValue("/root/reqtransdata/endreasonflag"));
  3425. model.makeValue("/root/main/patinfo/patinforesult/endtypeflag" , model.getValue("/root/reqtransdata/endtypeflag"));
  3426. model.makeValue("/root/main/patinfo/patinforesult/endtyperemark" , model.getValue("/root/reqtransdata/endtyperemark"));
  3427. model.makeValue("/root/main/patinfo/patinforesult/endstatflag" , model.getValue("/root/reqtransdata/endstatflag"));
  3428. model.makeValue("/root/main/patinfo/patinforesult/rgstpatstat" , model.getValue("/root/reqtransdata/rgstpatstat"));
  3429. model.makeValue("/root/main/patinfo/patinforesult/endpatstat" , model.getValue("/root/reqtransdata/endpatstat"));
  3430. model.makeValue("/root/main/patinfo/patinforesult/endflag" , model.getValue("/root/reqtransdata/endflag"));
  3431. // 1.본당환자를 무료->기타, 기타->무료 전환 시 이전상태가 종료가 종결되어야 하고, 종결사유는 자동으로 "8" : "전환" 이 되어야 한다.
  3432. // 메인화면에서 전환하고 종결요약 화면 좌측의 종결 리스트에서 확인이 되어야 한다.
  3433. // 종결기록 자동생성 (단, 본당에서 본당으로의 의뢰전송은 종결이 아니고 그대로 유지되어서 감)
  3434. /*****************************************************************************************************************************************************
  3435. <<< 종결기록없이 종결되는 경우 >>>
  3436. 전환 : (본당) "무료" 환자를 "기타"로 전환, "기타" 환자를 "무료"로 전환하는 경우 종결기록에는 전환으로 종결사유가 들어가고 종결기록 유무에는 나타나지 않게한다.
  3437. 병원의뢰 : (본당) "무료" 또는 "기타" 환자를 병원으로 의뢰한 경우 종결기록에는 병원의뢰로 종결사유가 들어가고 종결기록 유무에는 나타나지 않게한다.
  3438. 병원의뢰된 환자는 가정간호 대상자 종결이 되고, 병원 내원시 접수하고 의뢰서 발행후 가정간호 대상자도 확정한다.
  3439. *****************************************************************************************************************************************************/
  3440. // 1.1.가정간호 종결요약 자동등록(INSERT)
  3441. // 1.2.가정간호 대상자 테이블의 종결일, 종결여부를 업데이트 한다.
  3442. // 2.본당환자를 전환 상태로 가정간호 대상자로 재등록한다. (무료 혹은 기타)
  3443. // 가정간호 환자 대상자 등록(확정)(INSERT) 로직을 호출한다.
  3444. //동일 트랜에서 이루어 져야 하므로 TXMNF00501 의 app단에서 3가지를 모두 수행
  3445. submit("TXMNF00501");
  3446. // 1.2.가정간호 대상자 테이블의 종결일, 종결여부를 업데이트 한다.
  3447. //submit("TXMNF00504");
  3448. // 2.본당환자를 전환 상태로 가정간호 대상자로 재등록한다. (무료 혹은 기타)
  3449. // 가정간호 환자 대상자 등록(확정)(INSERT) 로직을 호출한다.
  3450. //submit("TXMNF00103");
  3451. }else{
  3452. // 1.환자 기본정보 저장(UPDATE) 등록인경우
  3453. submit("TXMNF00102");
  3454. }
  3455. }
  3456. fSetOtptActp(); // 외래접수 파라메터 셋팅 & 외래접수 화면 open
  3457. }else{
  3458. //기존 감면유형으로 변경해준다
  3459. model.setValue("/root/main/patinfo/patinforesult/dctype", tempdccd);
  3460. //model.refresh();
  3461. fSetOtptActp(); // 외래접수 파라메터 셋팅 & 외래접수 화면 open
  3462. }
  3463. }
  3464. fUpdateOutAcptVisc(); //외래접수 후 방문일정에 접수이력 update
  3465. }
  3466. // 외래접수 파라메터 셋팅 & 외래접수 화면 open
  3467. function fSetOtptActp(){
  3468. var cur_row = grd_patvisitlst.row;
  3469. var pid = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + cur_row + "]/pid");
  3470. var orddeptcd = model.getValue("/root/main/patinfo/patinforesult/reqdeptcd");
  3471. var orddrid = model.getValue("/root/main/patinfo/patinforesult/reqdrid");
  3472. var qualflag = model.getValue("/root/main/patinfo/patinforesult/qualflag"); //가정간호 대상자 테이블에 저장된 본인부담률
  3473. var spatcareflag = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + cur_row + "]/patcareflag");
  3474. // 감면유형 가정간호/방문간호 구분에 따른 파라미터 셋팅
  3475. if (spatcareflag == 'H') {
  3476. var dccd = model.getValue("/root/main/patinfo/patinforesult/dctype"); //현재 감면유형
  3477. } else if (spatcareflag == 'V') {
  3478. // 방문간호 감면유형도 추가작업 2009.02.24
  3479. var dccd = model.getValue("/root/main/patinfo/patinforesult/vdctype"); //현재 감면유형
  3480. }
  3481. if ( cur_row > 0 ) {
  3482. //alert("[1]"+qualflag+"/"+spatcareflag);
  3483. // 외래등록 : SMPMO00100
  3484. setParameter("pid", pid ); //등록번호
  3485. setParameter("pidflag", '20'); // 연속처방/기타구분
  3486. setParameter("disccd", dccd); //감면유형
  3487. setParameter("orddeptcd", orddeptcd); //의뢰부서코드
  3488. setParameter("orddrid", orddrid); //의뢰의 ID
  3489. if (spatcareflag == 'V') { // 방문간호 일 경우만 rsrvflag, etcordflag
  3490. setParameter("rsrvflag", 'O');
  3491. setParameter("etcordflag", 'O');
  3492. setParameter("suppkind", qualflag); // 본인부담률
  3493. }
  3494. }
  3495. //alert(spatcareflag);
  3496. modal("SMPMO00100", "1", "", "", "SMPMO00100", "", ""); //외래접수 화면으로 감
  3497. clearParameter("pid");
  3498. clearParameter("pidflag");
  3499. clearParameter("disccd");
  3500. clearParameter("orddeptcd");
  3501. clearParameter("orddrid");
  3502. clearParameter("rsrvflag");
  3503. clearParameter("etcordflag");
  3504. clearParameter("suppkind");
  3505. }
  3506. //외래접수 후 방문일정에 접수이력 update
  3507. function fUpdateOutAcptVisc(){
  3508. model.resetInstanceNode("/root/send/req");
  3509. // 외래접수정보 조회
  3510. submit("TRMNF00120"); // /root/send --> /root/main/cond
  3511. model.setValue("/root/send/orddd", model.getValue("/root/main/cond/patinfo/orddd")); // 파라메터 값 설정
  3512. model.setValue("/root/send/cretno", model.getValue("/root/main/cond/patinfo/cretno"));
  3513. model.setValue("/root/send/visitdd", model.getValue("/root/main/cond/patinfo/orddd"));
  3514. if(!isNull(model.getValue("/root/main/cond/patinfo/pid")) ){ //외래접수가 됐으면
  3515. /* submit 방문일정등록여부 체크 후
  3516. * 스케줄 등록 Y --> visc에 외래수진이력 update
  3517. * 스케줄 등록 N --> visc에 스케줄 등록, 외래수진이력 update (2010.05.06 hhm)
  3518. */
  3519. submit("TXMNF00505");
  3520. }
  3521. }
  3522. //약품번호조회/출력
  3523. function fhomecareDrug() {
  3524. var cur_row = grd_patvisitlst.row;
  3525. var kind = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + cur_row + "]/kind");
  3526. if((kind == '무료') || (kind == '기타')){
  3527. messageBox("무료나 기타환자는 외래접수를 하실수","I004");
  3528. return;
  3529. }
  3530. var hngnm = model.getValue("/root/main/patinfo/patinforesult/hngnm");
  3531. model.makeValue("/root/temp/cond/patnm", hngnm);
  3532. modal("SPMNF00210", "1", "", "", "SPMNF00210", "/root/main/cond", "/root/temp/cond");
  3533. }
  3534. //마약처방관리(불출신청)
  3535. function fhomecareNarc() {
  3536. var pid = model.getValue("/root/main/cond/patinfo/pid");
  3537. if(isNull(pid)){
  3538. model.removeNodeset("/root/main/cond/patinfo"); //초기화
  3539. //감면정보 같은 경우 인지 확인
  3540. //20080128 손은연
  3541. model.setValue("/root/send/dctype", model.getValue("/root/main/patinfo/patinforesult/dctype"));
  3542. // 가정간호/방문간호 가접수 구분위해 추가 2009.02.25
  3543. model.makeValue("/root/send/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
  3544. // 외래접수정보 조회
  3545. // submit("TRMNF00120"); fGetPatInfo에서 외래접수 조회하기 때문에 주석처리 2010.05.24 hhm
  3546. var pid = model.getValue("/root/main/cond/patinfo/pid");
  3547. if(isNull(pid)){
  3548. messageBox("접수를 하지 않은 환자 입니다. 접수 후 처방 발행을","C002");
  3549. }else{
  3550. //상단정보를 띄워줌
  3551. //20080124 손은연
  3552. if (model.getValue("/root/main/cond/patinfo/ordtype") == "I" || model.getValue("/root/main/cond/patinfo/ordtype") == "E" ) {
  3553. // 상단 세팅을 위한 파라미터
  3554. condparam = "I"+ "▦" + model.getValue("/root/main/cond/patinfo/pid")
  3555. + "▦" + model.getValue("/root/main/cond/patinfo/orddd")
  3556. + "▦" + model.getValue("/root/main/cond/patinfo/cretno")
  3557. + "▦" + model.getValue("/root/main/cond/patinfo/instcd")
  3558. + "▦" + "" //기준일자 스페이스면 오늘일자로 자동세팅
  3559. setParameter("condparam", condparam);
  3560. //상단 세팅 화면 사이즈 작게 띄움
  3561. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  3562. } else if( model.getValue("/root/main/cond/patinfo/ordtype") == "O" ) {
  3563. var ordtype = model.getValue("//root/main/cond/patinfo/ordtype");
  3564. var pid = model.getValue("/root/main/cond/patinfo/pid");
  3565. var orddd = model.getValue("/root/main/cond/patinfo/orddd");
  3566. var cretno = model.getValue("/root/main/cond/patinfo/cretno");
  3567. var instcd = model.getValue("/root/main/cond/patinfo/instcd");
  3568. var acptseqno = "";
  3569. var orgorddd = "";
  3570. var param = ordtype + "▦" + pid + "▦" + orddd + "▦" + cretno + "▦" + instcd + "▦" + "" + "▦" + orgorddd;
  3571. setParameter("condparam", param);
  3572. //상단 세팅 화면 사이즈 작게 띄움
  3573. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  3574. }
  3575. model.makeNode("/root/init/cond");
  3576. var paminfo = getGlobalVariable("paminfo");
  3577. setCSVToNode("/root/init/cond", paminfo);
  3578. var pid = model.getValue("/root/init/cond/list/pid");
  3579. if(pid == "") {
  3580. var vbOK = messageBox("환자를 선택하지 ", "E007");
  3581. }else{
  3582. modal("SMADT30400", "1", "", "", "SMADT30400", "", "");
  3583. }
  3584. }
  3585. }else{
  3586. modal("SMADT30400", "1", "", "", "SMADT30400", "", "");
  3587. }
  3588. }
  3589. //바코드관리(바코드출력)
  3590. function fhomecareBarCd() {
  3591. var pid = model.getValue("/root/main/cond/patinfo/pid");
  3592. if(isNull(pid)){
  3593. // model.removeNodeset("/root/main/cond/patinfo"); //초기화
  3594. //감면정보 같은 경우 인지 확인
  3595. //20080128 손은연
  3596. model.setValue("/root/send/dctype", model.getValue("/root/main/patinfo/patinforesult/dctype"));
  3597. // 가정간호/방문간호 가접수 구분위해 추가 2009.02.25
  3598. model.makeValue("/root/send/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
  3599. // 외래접수정보 조회
  3600. // submit("TRMNF00120"); fGetPatInfo에서 외래접수 조회하기 때문에 주석처리 2010.05.25 hhm
  3601. var pid = model.getValue("/root/main/cond/patinfo/pid");
  3602. if(isNull(pid)){
  3603. messageBox("접수를 하지 않은 환자 입니다. 접수 후 처방 발행을","C002");
  3604. }else{
  3605. //상단정보를 띄워줌
  3606. //20080124 손은연
  3607. if (model.getValue("/root/main/cond/patinfo/ordtype") == "I" || model.getValue("/root/main/cond/patinfo/ordtype") == "E" ) {
  3608. // 상단 세팅을 위한 파라미터
  3609. condparam = "I"+ "▦" + model.getValue("/root/main/cond/patinfo/pid")
  3610. + "▦" + model.getValue("/root/main/cond/patinfo/orddd")
  3611. + "▦" + model.getValue("/root/main/cond/patinfo/cretno")
  3612. + "▦" + model.getValue("/root/main/cond/patinfo/instcd")
  3613. + "▦" + "" //기준일자 스페이스면 오늘일자로 자동세팅
  3614. setParameter("condparam", condparam);
  3615. //상단 세팅 화면 사이즈 작게 띄움
  3616. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  3617. } else if( model.getValue("/root/main/cond/patinfo/ordtype") == "O" ) {
  3618. var ordtype = model.getValue("//root/main/cond/patinfo/ordtype");
  3619. var pid = model.getValue("/root/main/cond/patinfo/pid");
  3620. var orddd = model.getValue("/root/main/cond/patinfo/orddd");
  3621. var cretno = model.getValue("/root/main/cond/patinfo/cretno");
  3622. var instcd = model.getValue("/root/main/cond/patinfo/instcd");
  3623. var acptseqno = "";
  3624. var orgorddd = "";
  3625. var param = ordtype + "▦" + pid + "▦" + orddd + "▦" + cretno + "▦" + instcd + "▦" + "" + "▦" + orgorddd;
  3626. setParameter("condparam", param);
  3627. //상단 세팅 화면 사이즈 작게 띄움
  3628. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  3629. }
  3630. model.makeNode("/root/init/cond");
  3631. var paminfo = getGlobalVariable("paminfo");
  3632. setCSVToNode("/root/init/cond", paminfo);
  3633. var pid = model.getValue("/root/init/cond/list/pid");
  3634. if(pid == "") {
  3635. var vbOK = messageBox("환자를 선택하지 ", "E007");
  3636. }else{
  3637. modal("SMLLC00300", "1", "", "", "SMLLC00300", "", "");
  3638. }
  3639. }
  3640. }else{
  3641. modal("SMLLC00300", "1", "", "", "SMLLC00300", "", "");
  3642. }
  3643. }
  3644. //현장검사결과등록
  3645. function fhomecareTestRslt() {
  3646. //가접수내역 조회시 생성(TRMNF00120 조회시)
  3647. var pid = model.getValue("/root/main/cond/patinfo/pid");
  3648. if(isNull(pid)){
  3649. // model.removeNodeset("/root/main/cond/patinfo"); //초기화
  3650. var cur_row = grd_visitlst.row;
  3651. var kind = model.getValue("/root/main/grd_visitlst/visitlist[" + cur_row + "]/kind");
  3652. if((kind == '무료') || (kind == '기타')){
  3653. messageBox("무료나 기타환자는 현장검사결과등록을 하실수","I004");
  3654. return;
  3655. }
  3656. //컨설트 리스트 클릭시 환자 정보 조회하여 생성(TRMNF00101 조회시)
  3657. var pid = model.getValue("/root/main/patinfo/patinforesult/pid");
  3658. var hngnm = model.getValue("/root/main/patinfo/patinforesult/hngnm");
  3659. var orddd = model.getValue("/root/send/visitdd");
  3660. var orddeptcd = model.getValue("/root/main/patinfo/patinforesult/reqdeptcd");
  3661. var orddrid = model.getValue("/root/main/patinfo/patinforesult/reqdrid");
  3662. var orddeptnm = model.getValue("/root/main/patinfo/patinforesult/lastreqdeptnm");
  3663. var orddrnm = model.getValue("/root/main/patinfo/patinforesult/lastreqdrnm");
  3664. var rrgtno = model.getValue("/root/main/patinfo/patinforesult/rrgstno");
  3665. var rrgstno1 = rrgtno.substr(0, 6);
  3666. var rrgstno2 = rrgtno.substr(7, 7);
  3667. //감면정보 같은 경우 인지 확인
  3668. //20080128 손은연
  3669. model.setValue("/root/send/dctype", model.getValue("/root/main/patinfo/patinforesult/dctype"));
  3670. model.setValue("/root/send/instcd", model.getValue("/root/main/patinfo/patinforesult/instcd"));
  3671. model.makeValue("/root/send/pid" ,model.getValue("/root/main/patinfo/patinforesult/pid"));
  3672. //환자정보 조회시 선택한 의뢰과, 의뢰의사 정보를 조회하지 못하므로 가접수 내역 조회시 선택한 의뢰과, 의뢰의사 정보로 조회조건 가져가도록 수정
  3673. //model.makeValue("/root/send/orddeptcd", model.getValue("/root/main/patinfo/patinforesult/reqdeptcd"));
  3674. //model.makeValue("/root/send/orddrid", model.getValue("/root/main/patinfo/patinforesult/reqdrid"));
  3675. model.makeValue("/root/send/orddeptcd", model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + grd_patvisitlst.row + "]/reqdeptcd"));
  3676. model.makeValue("/root/send/orddrid", model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + grd_patvisitlst.row + "]/reqdrid"));
  3677. model.makeValue("/root/send/ocrflag", "Y");
  3678. // 가정간호/방문간호 가접수 구분위해 추가 2009.02.25
  3679. model.makeValue("/root/send/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
  3680. // 외래접수정보 조회
  3681. // submit("TRMNF00120"); fGetPatInfo에서 외래접수 조회하기 때문에 주석처리 2010.05.25 hhm
  3682. model.removenode("/root/send/ocrflag");
  3683. var pid = model.getValue("/root/main/cond/patinfo/pid");
  3684. if(isNull(pid)){
  3685. messageBox("접수를 하지 않은 환자 입니다. 접수 후 현장검사결과등록을","C002");
  3686. }else{
  3687. if (model.getValue("/root/main/cond/patinfo/ordtype") == "I" || model.getValue("/root/main/cond/patinfo/ordtype") == "E" ) {
  3688. // 상단 세팅을 위한 파라미터
  3689. condparam = "I"+ "▦" + model.getValue("/root/main/cond/patinfo/pid")
  3690. + "▦" + model.getValue("/root/main/cond/patinfo/orddd")
  3691. + "▦" + model.getValue("/root/main/cond/patinfo/cretno")
  3692. + "▦" + model.getValue("/root/main/cond/patinfo/instcd")
  3693. + "▦" + "" //기준일자 스페이스면 오늘일자로 자동세팅
  3694. setParameter("condparam", condparam);
  3695. //상단 세팅 화면 사이즈 작게 띄움
  3696. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  3697. } else if( model.getValue("/root/main/cond/patinfo/ordtype") == "O" ) {
  3698. var ordtype = model.getValue("//root/main/cond/patinfo/ordtype");
  3699. var pid = model.getValue("/root/main/cond/patinfo/pid");
  3700. var orddd = model.getValue("/root/main/cond/patinfo/orddd");
  3701. var cretno = model.getValue("/root/main/cond/patinfo/cretno");
  3702. var instcd = model.getValue("/root/main/cond/patinfo/instcd");
  3703. var acptseqno = "";
  3704. var orgorddd = "";
  3705. var param = ordtype + "▦" + pid + "▦" + orddd + "▦" + cretno + "▦" + instcd + "▦" + "" + "▦" + orgorddd;
  3706. setParameter("condparam", param);
  3707. //상단 세팅 화면 사이즈 작게 띄움
  3708. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  3709. }
  3710. model.makeNode("/root/init/cond");
  3711. var paminfo = getGlobalVariable("paminfo");
  3712. setCSVToNode("/root/init/cond", paminfo);
  3713. var pid = model.getValue("/root/init/cond/list/pid");
  3714. if(pid == "") {
  3715. var vbOK = messageBox("환자를 선택하지 ", "E007");
  3716. }else{
  3717. modal("SMLLR91100", "1", "", "", "SMLLR91100");
  3718. }
  3719. //modal("SMLLR91100", "1", "", "", "SMLLR91100");
  3720. }
  3721. //당일가접수하여 상단에 정보가 띄워졌을 경우 현장검사팝업이 뜨지 않는 오류수정_20100126_SMY
  3722. }else{
  3723. modal("SMLLR91100", "1", "", "", "SMLLR91100");
  3724. }
  3725. }
  3726. // 방문간호 계약서 보기
  3727. function fVisitCarePaper() {
  3728. model.makeValue("/root/visitviewtrans/pid", model.getValue("/root/main/patinfo/patinforesult/pid"));
  3729. model.makeValue("/root/visitviewtrans/hngnm", model.getValue("/root/main/patinfo/patinforesult/hngnm"));
  3730. model.makeValue("/root/visitviewtrans/sa", model.getValue("/root/main/patinfo/patinforesult/sex"));
  3731. model.makeValue("/root/visitviewtrans/reqdeptnm", model.getValue("/root/main/patinfo/patinforesult/lastreqdeptnm"));
  3732. model.makeValue("/root/visitviewtrans/reqdrnm", model.getValue("/root/main/patinfo/patinforesult/lastreqdrnm"));
  3733. model.makeValue("/root/visitviewtrans/reqdd", model.getValue("/root/main/patinfo/patinforesult/reqdd"));
  3734. model.makeValue("/root/visitviewtrans/vorddd", model.getValue("/root/main/patinfo/patinforesult/vorddd"));
  3735. model.makeValue("/root/visitviewtrans/vcretno", model.getValue("/root/main/patinfo/patinforesult/vcretno"));
  3736. model.makeValue("/root/visitviewtrans/vitcareflag", "Y"); // 방문간호 계약 등록여부
  3737. //model.makeValue("/root/iviewerdata/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
  3738. //model.setValue("/root/iviewerdata/formrecseq", gFormRecSeq);
  3739. // 미확정일때는 리스트에서
  3740. //alert(searchListFlag);
  3741. // 종결
  3742. if(searchListFlag == "3" ) {
  3743. var cur_row = grd_patvisitlst.row;
  3744. var spatcareflag = model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row+"]/patcareflag");
  3745. // 다른상태는 결과에서
  3746. }else {
  3747. var spatcareflag = model.getValue("/root/main/patinfo/patinforesult/patcareflag");
  3748. }
  3749. //model.refresh();
  3750. if (spatcareflag == "H") {
  3751. messageBox("방문간호 환자만 방문간호 계약서 보기가","I006"); // I006 : 가능합니다.
  3752. return;
  3753. }
  3754. //open("SPMNF00110", "", "", "", "SPMNF00110", "/root/iviewerdata", "/root/main/parameter");
  3755. open("SPMNF00600", "", "", "", "SPMNF00600", "/root/visitviewtrans", "/root/main/parameter");
  3756. }
  3757. // 만료일 한달 전인 의뢰서 그리드에 색깔 셋팅
  3758. function fSetGrdColorEndSche(){
  3759. for(var i =1; i<grd_patvisitlst.rows; i++){
  3760. if(model.getValue("/root/main/grd_patvisitlst/patvisitlist["+i+"]/endscheflag") == "Y"){
  3761. grd_patvisitlst.rowstyle(i, "data", "background-color" ) = "#FFE9C9";
  3762. }
  3763. }
  3764. grd_patvisitlst.rebuildStyle();
  3765. }
  3766. function fSetPamPopup(scrnm){
  3767. model.makeValue("/root/tmp/uncoref/info/popup","homecare"); // 팝업사용처구분 : nurse(가정간호)
  3768. model.makeValue("/root/tmp/uncoref/info/pid", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+grd_patvisitlst.row+"]/pid")); //등록번호
  3769. model.makeValue("/root/tmp/uncoref/info/kind", model.getValue("/root/main/grd_patvisitlst/patvisitlist["+grd_patvisitlst.row+"]/kind")); //병원(1),본당(2)구분
  3770. modal(scrnm, "", "400", "300", "", "/root/tmp/uncoref/info", "/root/tmp/uncoref/info");
  3771. model.removenode("/root/tmp/uncoref");
  3772. }
  3773. // 가정간호 진료비 상세내역 조회
  3774. function fHomeCareOrdAmtDetl(){
  3775. var scrnm = "SMPMC04000_가정간호진료비상세내역조회";
  3776. fSetPamPopup(scrnm);
  3777. }
  3778. // 가정간호 선수금 수납내역 조회
  3779. function fHomeCarePreAmt(){
  3780. var scrnm = "SMPMC04100_가정간호중간금수납내역조회";
  3781. fSetPamPopup(scrnm);
  3782. }
  3783. // 가정간호 미수현황 조회
  3784. function fHomeCareUncoAmt(){
  3785. var scrnm = "SMPMC04300_가정간호미수금 조회";
  3786. fSetPamPopup(scrnm);
  3787. }
  3788. //가정간호 강제 진단명 생성. 2009.07.09 taebum
  3789. function fOnClickDiagCreate(){
  3790. var nodecnt = getNodesetCount("/root/main/grd_patvisitlst/patvisitlist");
  3791. if(nodecnt < 1){
  3792. model.alert("의뢰내역을 선택하시기 바랍니다.");
  3793. return;
  3794. }
  3795. var sPid = model.getValue("/root/main/grd_patvisitlst/patvisitlist/pid");
  3796. var sHngnm = model.getValue("/root/main/grd_patvisitlst/patvisitlist/hngnm");
  3797. var sReqdd = model.getValue("/root/main/grd_patvisitlst/patvisitlist/reqdd");
  3798. var sReqdeptcd = model.getValue("/root/main/grd_patvisitlst/patvisitlist/reqdeptcd");
  3799. var sReqdeptnm = model.getValue("/root/main/grd_patvisitlst/patvisitlist/reqdeptnm");
  3800. var sReqdrid = model.getValue("/root/main/grd_patvisitlst/patvisitlist/reqdrid");
  3801. var sReqdrnm = model.getValue("/root/main/grd_patvisitlst/patvisitlist/reqdrnm");
  3802. var iSelectCnt = 0;
  3803. var iSelectPos = 0;
  3804. for(var i = 1; i <= nodecnt; i++){
  3805. if(grd_patvisitlst.isSelected(i) == true) {
  3806. iSelectCnt ++;
  3807. iSelectPos = i;
  3808. }
  3809. }
  3810. if(iSelectCnt > 1){
  3811. model.alert("의뢰내역은 한건만 선택해야 합니다.");
  3812. return;
  3813. }else{
  3814. var param = sPid+"▦"+sHngnm+"▦"+sReqdd+"▦"+sReqdeptcd+"▦"+sReqdeptnm+"▦"+sReqdrid+"▦"+sReqdrnm;
  3815. setParameter("condparam", param);
  3816. modal("SPMNF00120");
  3817. }
  3818. }
  3819. ]]>
  3820. </script>
  3821. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  3822. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  3823. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  3824. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  3825. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  3826. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  3827. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  3828. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  3829. <script type="javascript" src="../../../emr/homecareweb/js/SMMNF00100.js"/>
  3830. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  3831. <script type="javascript">
  3832. <![CDATA[
  3833. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  3834. function fInitialize() {
  3835. fEnableInsertButton();
  3836. model.removeNodeset("/root/main/list/msglist");
  3837. model.resetInstanceNode("/root/send");
  3838. model.resetInstanceNode("/root/main/item");
  3839. var default_syscd = model.getValue("/root/init/syscd[1]/value");
  3840. model.setValue("/root/send/bizabbr",default_syscd);
  3841. //model.refresh();
  3842. }
  3843. // 시스템코드, 메시지종료, 메시지 번호가 입력되면 이들을 조합하여 메시지코드를 설정한다.
  3844. function fSetMessageCode() {
  3845. var bizabbr = model.getValue("/root/main/item/bizabbr");
  3846. var msgkind = model.getValue("/root/main/item/msgtype");
  3847. var msgno = model.getValue("/root/main/item/msgno");
  3848. var msgcd = bizabbr + "." + msgkind + "." + msgno;
  3849. model.makeValue("/root/main/item/msgcd",msgcd);
  3850. //model.refresh();
  3851. }
  3852. function fEnableInsertButton() {
  3853. btn_insert.disabled = false;
  3854. btn_update.disabled = true;
  3855. }
  3856. function fEnableUpdateButton() {
  3857. btn_insert.disabled = true;
  3858. btn_update.disabled = false;
  3859. }
  3860. function fCheckMandatoryInput() {
  3861. // 필수항목 체크
  3862. if (model.getValue("/root/main/item/bizabbr") == "") {
  3863. messageBox("업무 구분은","I003");
  3864. model.setFocus("cmb_bizabbrinput");
  3865. return false;
  3866. }
  3867. if (model.getValue("/root/main/item/msgtype") == "") {
  3868. messageBox("메시지 종류는","I003");
  3869. model.setFocus("cmb_msgtypeinput");
  3870. return false;
  3871. }
  3872. if (model.getValue("/root/main/item/msgno") == "") {
  3873. messageBox("메시지 번호는","I003");
  3874. model.setFocus("ipt_msgnoinput");
  3875. return false;
  3876. }
  3877. if (model.getValue("/root/main/item/msgcnts1") == "") {
  3878. messageBox("메시지 1은","I003");
  3879. model.setFocus("ipt_msgcnts1");
  3880. return false;
  3881. }
  3882. return true;
  3883. }
  3884. function fDeleteSelectedRows(grd,markonly) {
  3885. var rowIdx;
  3886. if (grd.selectedRows > 0) {
  3887. var selectedRows = Array(grd.selectedRows);
  3888. for(i=0;i<grd.selectedRows;i++) {
  3889. selectedRows[i] = grd.selectedRow(i);
  3890. }
  3891. if (markonly != null && markonly == true) { // mark delete
  3892. for(i=selectedRows.length-1;i>=0;i--) {
  3893. rowIdx = selectedRows[i];
  3894. if(grd.rowstatus(rowIdx) == 1 ) { // just inserted row
  3895. grd.deleterow(rowIdx,false);
  3896. } else {
  3897. grd.addStatus(rowIdx,"delete");
  3898. }
  3899. }
  3900. } else {
  3901. for(i=selectedRows.length-1;i>=0;i--) {
  3902. rowIdx = selectedRows[i];
  3903. grd.deleterow(rowIdx,false);
  3904. }
  3905. }
  3906. }
  3907. }
  3908. function fFindRow(data, col){
  3909. //searchListFlag = "1"; // Default "1" - 당일방문예정자 리스트
  3910. //searchListFlag = "2"; // "2" - 미확정 리스트
  3911. //searchListFlag = "3"; // "3" - 종결환자리스트
  3912. //searchListFlag = "4"; // "4" - 만료환자리스트
  3913. //searchListFlag = "5"; // "5" - 진행환자리스트
  3914. var sGrid = "";
  3915. if ( searchListFlag == "1" || searchListFlag == "5" ){
  3916. sGrid = grd_visitlst
  3917. }
  3918. if ( searchListFlag == "2" ){
  3919. sGrid = grd_reqlist
  3920. }
  3921. if ( searchListFlag == "3" ){
  3922. sGrid = grd_endlist
  3923. }
  3924. if ( searchListFlag == "4" ){
  3925. sGrid = grd_explist
  3926. }
  3927. var row = sGrid.findRow(data, 1, col);
  3928. sGrid.select(row, 1, row,sGrid.cols-1) = true;
  3929. return row;
  3930. }
  3931. ]]>
  3932. </script>
  3933. </xhtml:head>
  3934. <xhtml:body scroll="autovscroll" style="color:#ff99cc; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  3935. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
  3936. <group id="group2" style="left:0px; top:0px; width:1195px; height:784px; vertical-align:top; ">
  3937. <!--(20101206) 경북대
  3938. <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; ">
  3939. -->
  3940. <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; ">
  3941. <!--(20101206) 경북대 -->
  3942. <col ref="careflag" visibility="hidden" style="text-align:center; "/>
  3943. <col ref="pid" visibility="hidden" style="text-align:center; "/>
  3944. <col ref="hngnm" visibility="hidden" style="text-align:center; "/>
  3945. <col ref="sex" visibility="hidden" style="text-align:center; "/>
  3946. <col ref="reqdeptnm" style="text-align:center; "/>
  3947. <col ref="reqdrnm" style="text-align:center; "/>
  3948. <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
  3949. <col ref="cnstdiagname" style="text-align:left; "/>
  3950. <col ref="procstatus" style="text-align:center; "/>
  3951. <col ref="inptstat" visibility="hidden" style="text-align:left; "/>
  3952. <col ref="receiptflag" visibility="hidden" style="left:420px; top:32px; width:40px; height:23px; text-align:center; "/>
  3953. <col ref="expenddd" format="yyyy-mm-dd" style="text-align:center; "/>
  3954. <col ref="detail" style="text-align:center; "/>
  3955. <col ref="hisrecord" style="text-align:center; "/>
  3956. <col ref="enddd" style="text-align:center; "/>
  3957. <col ref="endreason" style="text-align:center; "/>
  3958. <col ref="visitcnt" style="text-align:center; "/>
  3959. <col disabled="true" ref="headquarter" type="combo" visibility="hidden" style="text-align:center; ">
  3960. <choices>
  3961. <itemset nodeset="/root/item/church/churchlist">
  3962. <label ref="churchnm"/>
  3963. <value ref="churchcd"/>
  3964. </itemset>
  3965. </choices>
  3966. </col>
  3967. <col ref="kind" visibility="hidden" style="text-align:center; "/>
  3968. <col ref="inptdt" visibility="hidden"/>
  3969. <col ref="cnstdiagcd" visibility="hidden"/>
  3970. <col ref="instcd" visibility="hidden"/>
  3971. <col ref="result" visibility="hidden"/>
  3972. <col ref="reqdeptcd" visibility="hidden" style="text-align:center; "/>
  3973. <col ref="reqdrid" visibility="hidden" style="text-align:center; "/>
  3974. <col ref="formrecseq" visibility="hidden" style="text-align:center; "/>
  3975. <col ref="rereqyn" visibility="hidden" style="text-align:center; "/>
  3976. <col ref="patcareflag" visibility="hidden" style="text-align:center; "/>
  3977. <col ref="orddd" visibility="hidden" style="text-align:center; "/>
  3978. <col ref="cretno" visibility="hidden" style="text-align:center; "/>
  3979. <col ref="rereqyn" visibility="hidden" style="text-align:center; "/>
  3980. <col ref="fromdd" visibility="hidden" style="text-align:center; "/>
  3981. <col ref="todd" visibility="hidden" style="text-align:center; "/>
  3982. <col ref="asreqdeptcd" visibility="hidden" style="text-align:center; "/>
  3983. <col ref="porddd" visibility="hidden" style="text-align:center; "/>
  3984. <col ref="pcretno" visibility="hidden" style="text-align:center; "/>
  3985. <col ref="acptseqno" visibility="hidden" style="text-align:center; "/>
  3986. <col ref="orgorddd" visibility="hidden" style="text-align:center; "/>
  3987. <script type="javascript" ev:event="onclick">
  3988. <![CDATA[
  3989. fGetPatInfo(); // 환자정보조회
  3990. ]]>
  3991. </script>
  3992. <script type="javascript" ev:event="onmousedown">
  3993. <![CDATA[
  3994. if (event.button == 3) { // 마우스 오른쪽 버튼 클릭시
  3995. if(grd_patvisitlst.isCell(event.target) && grd_patvisitlst.mouseRow >= grd_patvisitlst.fixedrows ) {
  3996. app.showPopupMenu(true);
  3997. if(searchListFlag == "5") { // 진행리스트 일때만 팝업메뉴 적용
  3998. if(isDataCell()) {
  3999. var cur_row = grd_patvisitlst.mouseRow;
  4000. if ( cur_row > 0 ) {
  4001. // 진행 리스트에서 마우스 오른쪽 버튼 클릭시 "취소" 팝업 메뉴 로드
  4002. //오른쪽 마우스 클릭시 등록일때와 무료, 기타 환자 일때 나오는 메뉴가 다름
  4003. //성빈센트병원_마약처방관리, MMSE-K, S-SDQ서식기록 삭제요청_20090928_SMY
  4004. if(VincentFlag == "Y"){
  4005. if(model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row +"]/kind") == "무료" || model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row +"]/kind") == "기타"){
  4006. setPopupMenu("grd_patvisitlst", false, "/root/codedata/popupmenu/kind017/item", "name", "func");
  4007. }else{
  4008. setPopupMenu("grd_patvisitlst", false, "/root/codedata/popupmenu/grd_cancel017/item", "name", "func");
  4009. }
  4010. }else{
  4011. if(model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row +"]/kind") == "무료" || model.getValue("/root/main/grd_patvisitlst/patvisitlist["+cur_row +"]/kind") == "기타"){
  4012. setPopupMenu("grd_patvisitlst", false, "/root/codedata/popupmenu/kind/item", "name", "func");
  4013. }else{
  4014. setPopupMenu("grd_patvisitlst", false, "/root/codedata/popupmenu/grd_cancel/item", "name", "func");
  4015. }
  4016. }
  4017. gRow = grd_patvisitlst.mouseRow;
  4018. gCol = grd_patvisitlst.mouseCol;
  4019. gPid = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + gRow + "]/pid");
  4020. gInptdt = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + gRow + "]/inptdt");
  4021. gInstcd = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + gRow + "]/instcd");
  4022. gCancelReason = "";
  4023. gFormRecSeq = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + gRow + "]/formrecseq");
  4024. }
  4025. }
  4026. }
  4027. if(searchListFlag == "1") { // 당일방문예정리스트 일때만 팝업메뉴 적용
  4028. if(isDataCell()) {
  4029. var cur_row = grd_patvisitlst.mouseRow;
  4030. if ( cur_row > 0 ) {
  4031. // 방문예정자 리스트에서 마우스 오른쪽 버튼 클릭시 "가정간호 처방발행" 팝업 메뉴 로드
  4032. // if(event.button == 3){
  4033. //성빈센트병원_마약처방관리, MMSE-K, S-SDQ서식기록 삭제요청_20090928_SMY
  4034. if(VincentFlag == "Y"){
  4035. setPopupMenu("grd_patvisitlst", false, "/root/codedata/popupmenu/execorder017/item", "name", "func");
  4036. }else{
  4037. setPopupMenu("grd_patvisitlst", false, "/root/codedata/popupmenu/execorder/item", "name", "func");
  4038. }
  4039. gRow = grd_patvisitlst.mouseRow;
  4040. gCol = grd_patvisitlst.mouseCol;
  4041. gPid = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + gRow + "]/pid");
  4042. gInstcd = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + gRow + "]/instcd");
  4043. gOrddd = "";
  4044. gCretno = "";
  4045. gOrddeptcd = "";
  4046. gOrddrid = "";
  4047. gFormRecSeq = model.getValue("/root/main/grd_patvisitlst/patvisitlist[" + gRow + "]/formrecseq");
  4048. // }
  4049. }
  4050. }
  4051. }
  4052. // 종결
  4053. if(searchListFlag == "3") { // 종결 일때만 팝업메뉴 적용
  4054. setPopupMenu("grd_patvisitlst", false, "/root/codedata/popupmenu/endpaper/item", "name", "func");
  4055. }
  4056. // 만료
  4057. if(searchListFlag == "4") { // 만료체크시만 팝업메뉴 적용
  4058. //성빈센트병원_마약처방관리, MMSE-K, S-SDQ서식기록 삭제요청_20090928_SMY
  4059. if(VincentFlag == "Y"){
  4060. setPopupMenu("grd_patvisitlst", false, "/root/codedata/popupmenu/exppaper017/item", "name", "func");
  4061. }else{
  4062. setPopupMenu("grd_patvisitlst", false, "/root/codedata/popupmenu/exppaper/item", "name", "func");
  4063. }
  4064. }
  4065. }
  4066. } // end if
  4067. ]]>
  4068. </script>
  4069. <script type="javascript" ev:event="DOMFocusOut">
  4070. <![CDATA[
  4071. initPopupMenu();
  4072. ]]>
  4073. </script>
  4074. <script type="javascript" ev:event="onaftersort">
  4075. <![CDATA[
  4076. grd_patvisitlst.gridToInstance();
  4077. ]]>
  4078. </script>
  4079. </datagrid>
  4080. <caption id="caption1" class="cell_1" style="left:0px; top:106px; width:235px; height:23px; text-align:center; "/>
  4081. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:18px; width:1194px; height:62px; background-color:#fffbf2; border-color:#ffd799; "/>
  4082. <line id="line1" class="line_1" style="x1:0px; y1:101px; x2:467px; y2:101px; "/>
  4083. <caption id="caption3" class="search_name" style="left:15px; top:25px; width:98px; height:17px; ">업무일자 :</caption>
  4084. <button id="btn_search" class="btn1_letter2" style="left:1129px; top:37px; width:56px; height:22px; ">
  4085. <caption>조회</caption>
  4086. <script type="javascript" ev:event="DOMActivate">
  4087. <![CDATA[
  4088. fClear();
  4089. //본당등록구분
  4090. fMakeChrRgstKind();
  4091. model.setValue("/root/send/pid","");
  4092. model.setValue("/root/send/inptdt","");
  4093. //진행상태별 화면 세팅
  4094. fDisableEnableBtn(searchListFlag) ;
  4095. if ( !fExcuteSearch(searchListFlag)){
  4096. return;
  4097. }
  4098. if(searchListFlag == "4") {
  4099. // 7.일자별 만료건수 조회
  4100. //20100419 submit("TRMNF00121");
  4101. }else {
  4102. // 7.일자별 방문(예정)건수 조회
  4103. //20100419 submit("TRMNF00107");
  4104. }
  4105. // 달력에 일자별 방문(예정)건수 대입
  4106. fDataDisplay();
  4107. model.removeNodeset("/root/main/procstat/procstatcnt");
  4108. //0. 진행상태 : 당일방문예정, 미확정, 진행, 종결 카운트 조회
  4109. submit("TRMNF00115");
  4110. ]]>
  4111. </script>
  4112. </button>
  4113. <line id="line2" style="x1:1115px; y1:25px; x2:1115px; y2:78px; border-color:#ffe4bb; border-left-style:solid; "/>
  4114. <caption id="caption2" class="search_name" style="left:15px; top:51px; width:98px; height:17px; ">진행상태 :</caption>
  4115. <caption id="cap_listtitle" class="tit_2" style="left:5px; top:84px; width:152px; height:13px; ">당일방문예정자 리스트</caption>
  4116. <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; ">
  4117. <!-- (20100906 경북대) 보정 -->
  4118. <choices>
  4119. <itemset>
  4120. <label ref="cdnm"/>
  4121. <value ref="cdid"/>
  4122. </itemset>
  4123. </choices>
  4124. <!-- (20100906 경북대) 보정 -->
  4125. <script type="javascript" ev:event="xforms-value-changed">
  4126. <![CDATA[
  4127. if (rdo_kind.value == 1) { // 병원
  4128. // 가정간호센터(2361000000)에서 가정간호팀(3090100000)로 변경 2009.03.27
  4129. //if (( getUserInfo("dutplcecd") != "2361000000" ) && ( getUserInfo("dutplcecd") != "1000000000" ) && ( getUserInfo("dutplcecd") != "3041100000" )){
  4130. //-----------(20100903 경북대)
  4131. //원본
  4132. //if (( getUserInfo("dutplcecd") != "3090100000" ) && ( getUserInfo("dutplcecd") != "1000000000" ) && ( getUserInfo("dutplcecd") != "3041100000" )){
  4133. //보정
  4134. if (( getUserInfo("dutplcecd") != ghomeDeptmain ) && ( getUserInfo("dutplcecd") != ghomeDeptsub1 ) && ( getUserInfo("dutplcecd") !=ghomeDeptsub2)){
  4135. //--------------------------------------------(20100903 경북대-하드코딩)
  4136. messageBox("병원을 조회할 수","I004"); // 없습니다.
  4137. rdo_kind.value = '2';
  4138. rdo_kind.dispatch("xforms-value-changed");
  4139. return ;
  4140. }
  4141. grp_kindchurch.visible = false;
  4142. grp_kindhosp.visible = true;
  4143. // 본당정보
  4144. combo12.disabled = true;
  4145. combo1.disabled = true;
  4146. combo13.disabled = true;
  4147. // 재택정보
  4148. combo11.disabled = true;
  4149. input5.disabled = true;
  4150. combo10.disabled = true;
  4151. // 병원정보
  4152. combo2.disabled = false;
  4153. input15.disabled = false;
  4154. //본당, 구분 필드 안보여지게 함 20080527 손은연
  4155. grd_visitlst.colHidden(grd_visitlst.colRef("headquarter")) = true;
  4156. grd_visitlst.colHidden(grd_visitlst.colRef("kind")) = true;
  4157. grd_explist.colHidden(grd_explist.colRef("churchnm")) = true;
  4158. grd_explist.colHidden(grd_explist.colRef("kind")) = true;
  4159. grd_reqlist.colHidden(grd_reqlist.colRef("churchnm")) = true;
  4160. grd_reqlist.colHidden(grd_reqlist.colRef("kind")) = true;
  4161. //버튼 활성화 비활성화 2008.05.15 손은연
  4162. if(model.getValue("/root/send/prcsstat") == '1' ){
  4163. btn_regnewpatient.visible = false;
  4164. btn_receipt.visible = true;
  4165. //-----(20101119) 경북대
  4166. //btn_reqview.visible = true;
  4167. //btn_reqtrns.visible = true;
  4168. //-----(20101119) 경북대
  4169. btn_save.visible = true;
  4170. btn_confirm.visible = false;
  4171. btn_reqcancel.visible = false; // 2009.09.10 의뢰확정 후 의뢰취소는 하지 않기 때문에 의뢰취소버튼 비활성화 되도록 김숙인선생님 요청
  4172. }else if(model.getValue("/root/send/prcsstat") == '2' ){
  4173. btn_regnewpatient.visible = false;
  4174. btn_receipt.visible = false;
  4175. btn_reqview.visible = false;
  4176. btn_reqtrns.visible = false;
  4177. btn_save.visible = false;
  4178. btn_confirm.visible = true;
  4179. btn_reqcancel.visible = true;
  4180. }else if(model.getValue("/root/send/prcsstat") == '3' ){
  4181. btn_regnewpatient.visible = false;
  4182. btn_receipt.visible = true;
  4183. //-----(20101119) 경북대
  4184. //btn_reqview.visible = true;
  4185. //btn_reqtrns.visible = true;
  4186. //-----(20101119) 경북대
  4187. btn_save.visible = true;
  4188. btn_confirm.visible = false;
  4189. btn_reqcancel.visible = false; // 2009.09.10 의뢰확정 후 의뢰취소는 하지 않기 때문에 의뢰취소버튼 비활성화 되도록 김숙인선생님 요청
  4190. }else if(model.getValue("/root/send/prcsstat") == '4' ){
  4191. btn_regnewpatient.visible = false;
  4192. btn_receipt.visible = false;
  4193. //----(20101119) 경북대
  4194. //btn_reqview.visible = true;
  4195. btn_reqtrns.visible = false;
  4196. //----(20101119) 경북대
  4197. btn_save.visible = true;
  4198. btn_confirm.visible = false;
  4199. btn_reqcancel.visible = false;
  4200. }
  4201. // 구분이 가정간호 인 경우는 방문계약버튼 뜨도록 수정
  4202. if (model.getValue("/root/send/careflag")=='V') {
  4203. btn_regnewpatient.attribute("text") = "방문계약";
  4204. btn_regnewpatient.visible = true;
  4205. }
  4206. } else if (rdo_kind.value == 2) { // 본당
  4207. grp_kindhosp.visible = false;
  4208. grp_kindchurch.visible = true;
  4209. // 본당정보
  4210. combo12.disabled = false;
  4211. combo1.disabled = false;
  4212. combo13.disabled = false;
  4213. // 재택정보
  4214. combo11.disabled = true;
  4215. input5.disabled = true;
  4216. combo10.disabled = true;
  4217. // 병원정보
  4218. combo2.disabled = true;
  4219. input15.disabled = true;
  4220. //본당, 구분필드 보여지게 함 20080527 손은연
  4221. grd_visitlst.colHidden(grd_visitlst.colRef("headquarter")) = false;
  4222. grd_visitlst.colHidden(grd_visitlst.colRef("kind")) = false;
  4223. //버튼 활성화 비활성화 2008.05.15 손은연
  4224. if(model.getValue("/root/send/prcsstat") == '1' ){
  4225. btn_regnewpatient.attribute("text") = "신환등록";
  4226. btn_regnewpatient.visible = true;
  4227. btn_receipt.visible = true;
  4228. //------(20101119) 경북대
  4229. //btn_reqview.visible = true;
  4230. //btn_reqtrns.visible = true;
  4231. //------(20101119) 경북대
  4232. btn_save.visible = true;
  4233. btn_confirm.visible = false;
  4234. btn_reqcancel.visible = false; // 2009.09.10 의뢰확정 후 의뢰취소는 하지 않기 때문에 의뢰취소버튼 비활성화 되도록 김숙인선생님 요청
  4235. }else if(model.getValue("/root/send/prcsstat") == '2' ){
  4236. btn_regnewpatient.visible = false;
  4237. btn_receipt.visible = false;
  4238. btn_reqview.visible = false;
  4239. btn_reqtrns.visible = false;
  4240. btn_save.visible = false;
  4241. btn_confirm.visible = true;
  4242. btn_reqcancel.visible = true;
  4243. }else if(model.getValue("/root/send/prcsstat") == '3' ){
  4244. btn_regnewpatient.attribute("text") = "신환등록";
  4245. btn_regnewpatient.visible = true;
  4246. btn_receipt.visible = true;
  4247. //-------(20101119) 경북대
  4248. //btn_reqview.visible = true;
  4249. //btn_reqtrns.visible = true;
  4250. //-------(20101119) 경북대
  4251. btn_save.visible = true;
  4252. btn_confirm.visible = false;
  4253. btn_reqcancel.visible = false; // 2009.09.10 의뢰확정 후 의뢰취소는 하지 않기 때문에 의뢰취소버튼 비활성화 되도록 김숙인선생님 요청
  4254. }else if(model.getValue("/root/send/prcsstat") == '4' ){
  4255. btn_regnewpatient.visible = false;
  4256. btn_receipt.visible = false;
  4257. //-------(20101119) 경북대
  4258. //btn_reqview.visible = true;
  4259. btn_reqtrns.visible = false;
  4260. //-------(20101119) 경북대
  4261. btn_save.visible = true;
  4262. btn_confirm.visible = false;
  4263. btn_reqcancel.visible = false;
  4264. }
  4265. } else{ // 재택
  4266. grp_kindchurch.visible = false;
  4267. grp_kindhosp.visible = true;
  4268. // 본당정보
  4269. combo12.disabled = true;
  4270. combo1.disabled = true;
  4271. combo13.disabled = true;
  4272. // 재택정보
  4273. combo11.disabled = false;
  4274. input5.disabled = false;
  4275. combo10.disabled = false;
  4276. // 병원정보
  4277. combo2.disabled = true;
  4278. input15.disabled = true;
  4279. //버튼 활성화 비활성화 2008.05.15 손은연
  4280. if(model.getValue("/root/send/prcsstat") == '1' ){
  4281. btn_regnewpatient.attribute("text") = "신환등록";
  4282. btn_regnewpatient.visible = true;
  4283. btn_receipt.visible = true;
  4284. //------(20101119) 경북대
  4285. //btn_reqview.visible = true;
  4286. //btn_reqtrns.visible = true;
  4287. //------(20101119) 경북대
  4288. btn_save.visible = true;
  4289. btn_confirm.visible = false;
  4290. btn_reqcancel.visible = false; // 2009.09.10 의뢰확정 후 의뢰취소는 하지 않기 때문에 의뢰취소버튼 비활성화 되도록 김숙인선생님 요청
  4291. }else if(model.getValue("/root/send/prcsstat") == '2' ){
  4292. btn_regnewpatient.visible = false;
  4293. btn_receipt.visible = false;
  4294. btn_reqview.visible = false;
  4295. btn_reqtrns.visible = false;
  4296. btn_save.visible = false;
  4297. btn_confirm.visible = true;
  4298. btn_reqcancel.visible = true;
  4299. }else if(model.getValue("/root/send/prcsstat") == '3' ){
  4300. btn_regnewpatient.attribute("text") = "신환등록";
  4301. btn_regnewpatient.visible = true;
  4302. btn_receipt.visible = true;
  4303. //-----(20101119) 경북대
  4304. //btn_reqview.visible = true;
  4305. //btn_reqtrns.visible = true;
  4306. //-----(20101119) 경북대
  4307. btn_save.visible = true;
  4308. btn_confirm.visible = false;
  4309. btn_reqcancel.visible = false; // 2009.09.10 의뢰확정 후 의뢰취소는 하지 않기 때문에 의뢰취소버튼 비활성화 되도록 김숙인선생님 요청
  4310. }else if(model.getValue("/root/send/prcsstat") == '4' ){
  4311. btn_regnewpatient.visible = false;
  4312. btn_receipt.visible = false;
  4313. //-----(20101119) 경북대
  4314. //btn_reqview.visible = true;
  4315. btn_reqtrns.visible = false;
  4316. //-----(20101119) 경북대
  4317. btn_save.visible = true;
  4318. btn_confirm.visible = false;
  4319. btn_reqcancel.visible = false;
  4320. }
  4321. }
  4322. // 구분선택시 신환등록, 방문계약 버튼 컨트롤 수정 2009.06.17 hhm
  4323. fSelCareflag();
  4324. // 조회조건의 선택된 본당의 가정간호 담당간호사 리스트를 조회, 콤보박스에 세팅한다.
  4325. submit("TRMNF00106", false);
  4326. // 거주지역 조회.
  4327. submit("TRMNF00133", false);
  4328. //김홍점 20080124 세션에서 정보를 읽어온다.
  4329. var userid = getUserId();
  4330. if ( instance1.selectSingleNode("/root/item/chargenurse/nurselist[userid = '"+ userid +"']") == null ) {
  4331. model.setValue("/root/send/chrgnursid", '%');
  4332. model.setValue("/root/send/churchcd",'-');
  4333. }else{
  4334. model.setValue("/root/send/chrgnursid", userid );
  4335. model.setValue("/root/send/churchcd", getUserInfo("dutplcecd"));
  4336. }
  4337. // 환자 기본정보의 감면유형 기준정보를 조회한다._20091020_SMY추가
  4338. model.removeNodeset("/root/item/dctype");
  4339. submit("TRMNF00110");
  4340. //model.refresh();
  4341. //btn_search.dispatch("DOMActivate"); // 화면 오픈시 두번 조회되어 수정 (2009.05.28 황혜민)
  4342. ]]>
  4343. </script>
  4344. <script type="javascript" ev:event="DOMFocusOut">
  4345. <![CDATA[
  4346. if (rdo_kind.value == 1) { // 병원
  4347. grp_kindchurch.visible = false;
  4348. grp_kindhosp.visible = true;
  4349. // 본당정보
  4350. combo12.disabled = true;
  4351. combo1.disabled = true;
  4352. combo13.disabled = true;
  4353. // 재택정보
  4354. combo11.disabled = true;
  4355. input5.disabled = true;
  4356. combo10.disabled = true;
  4357. // 병원정보
  4358. combo2.disabled = false;
  4359. input15.disabled = false;
  4360. //버튼 활성화 비활성화 2008.05.15 손은연
  4361. if(model.getValue("/root/send/prcsstat") == '1' ){
  4362. btn_regnewpatient.visible = false;
  4363. btn_receipt.visible = true;
  4364. //---------(20101119) 경북대
  4365. //btn_reqview.visible = true;
  4366. //btn_reqtrns.visible = true;
  4367. //---------(20101119) 경북대
  4368. btn_save.visible = true;
  4369. btn_confirm.visible = false;
  4370. btn_reqcancel.visible = true;
  4371. }else if(model.getValue("/root/send/prcsstat") == '2' ){
  4372. btn_regnewpatient.visible = false;
  4373. btn_receipt.visible = false;
  4374. btn_reqview.visible = false;
  4375. btn_reqtrns.visible = false;
  4376. btn_save.visible = false;
  4377. btn_confirm.visible = true;
  4378. btn_reqcancel.visible = true;
  4379. }else if(model.getValue("/root/send/prcsstat") == '3' ){
  4380. btn_regnewpatient.visible = false;
  4381. btn_receipt.visible = true;
  4382. //------(20101119) 경북대
  4383. //btn_reqview.visible = true;
  4384. //btn_reqtrns.visible = true;
  4385. //------(20101119) 경북대
  4386. btn_save.visible = true;
  4387. btn_confirm.visible = false;
  4388. btn_reqcancel.visible = true;
  4389. }else if(model.getValue("/root/send/prcsstat") == '4' ){
  4390. btn_regnewpatient.visible = false;
  4391. btn_receipt.visible = false;
  4392. //------(20101119) 경북대
  4393. //btn_reqview.visible = true;
  4394. btn_reqtrns.visible = false;
  4395. //------(20101119) 경북대
  4396. btn_save.visible = true;
  4397. btn_confirm.visible = false;
  4398. btn_reqcancel.visible = false;
  4399. }
  4400. // 구분이 가정간호 인 경우는 방문계약버튼 뜨도록 수정
  4401. if (model.getValue("/root/send/careflag")=='V') {
  4402. btn_regnewpatient.attribute("text") = "방문계약";
  4403. btn_regnewpatient.visible = true;
  4404. }
  4405. } else if (rdo_kind.value == 2) { // 본당
  4406. grp_kindhosp.visible = false;
  4407. grp_kindchurch.visible = true;
  4408. // 본당정보
  4409. combo12.disabled = false;
  4410. combo1.disabled = false;
  4411. combo13.disabled = false;
  4412. // 재택정보
  4413. combo11.disabled = true;
  4414. input5.disabled = true;
  4415. combo10.disabled = true;
  4416. // 병원정보
  4417. combo2.disabled = true;
  4418. input15.disabled = true;
  4419. //버튼 활성화 비활성화 2008.05.15 손은연
  4420. if(model.getValue("/root/send/prcsstat") == '1' ){
  4421. btn_regnewpatient.attribute("text") = "신환등록" ;
  4422. btn_regnewpatient.visible = true;
  4423. btn_receipt.visible = true;
  4424. //-------(20101119) 경북대
  4425. //btn_reqview.visible = true;
  4426. //btn_reqtrns.visible = true;
  4427. //-------(20101119) 경북대
  4428. btn_save.visible = true;
  4429. btn_confirm.visible = false;
  4430. btn_reqcancel.visible = true;
  4431. }else if(model.getValue("/root/send/prcsstat") == '2' ){
  4432. btn_regnewpatient.visible = false;
  4433. btn_receipt.visible = false;
  4434. btn_reqview.visible = false;
  4435. btn_reqtrns.visible = false;
  4436. btn_save.visible = false;
  4437. btn_confirm.visible = true;
  4438. btn_reqcancel.visible = true;
  4439. }else if(model.getValue("/root/send/prcsstat") == '3' ){
  4440. btn_regnewpatient.attribute("text") = "신환등록" ;
  4441. btn_regnewpatient.visible = true;
  4442. btn_receipt.visible = true;
  4443. //-------(20101119) 경북대
  4444. //btn_reqview.visible = true;
  4445. //btn_reqtrns.visible = true;
  4446. //-------(20101119) 경북대
  4447. btn_save.visible = true;
  4448. btn_confirm.visible = false;
  4449. btn_reqcancel.visible = true;
  4450. }else if(model.getValue("/root/send/prcsstat") == '4' ){
  4451. btn_regnewpatient.visible = false;
  4452. btn_receipt.visible = false;
  4453. //-------(20101119) 경북대
  4454. //btn_reqview.visible = true;
  4455. btn_reqtrns.visible = false;
  4456. //-------(20101119) 경북대
  4457. btn_save.visible = true;
  4458. btn_confirm.visible = false;
  4459. btn_reqcancel.visible = false;
  4460. }
  4461. } else { // 재택
  4462. grp_kindchurch.visible = false;
  4463. grp_kindhosp.visible = true;
  4464. // 본당정보
  4465. combo12.disabled = true;
  4466. combo1.disabled = true;
  4467. combo13.disabled = true;
  4468. // 재택정보
  4469. combo11.disabled = false;
  4470. input5.disabled = false;
  4471. combo10.disabled = false;
  4472. // 병원정보
  4473. combo2.disabled = true;
  4474. input15.disabled = true;
  4475. //버튼 활성화 비활성화 2008.05.15 손은연
  4476. if(model.getValue("/root/send/prcsstat") == '1' ){
  4477. btn_regnewpatient.attribute("text") = "신환등록" ;
  4478. btn_regnewpatient.visible = true;
  4479. btn_receipt.visible = true;
  4480. //-------(20101119) 경북대
  4481. //btn_reqview.visible = true;
  4482. //btn_reqtrns.visible = true;
  4483. //-------(20101119) 경북대
  4484. btn_save.visible = true;
  4485. btn_confirm.visible = false;
  4486. btn_reqcancel.visible = true;
  4487. }else if(model.getValue("/root/send/prcsstat") == '2' ){
  4488. btn_regnewpatient.visible = false;
  4489. btn_receipt.visible = false;
  4490. btn_reqview.visible = false;
  4491. btn_reqtrns.visible = false;
  4492. btn_save.visible = false;
  4493. btn_confirm.visible = true;
  4494. btn_reqcancel.visible = true;
  4495. }else if(model.getValue("/root/send/prcsstat") == '3' ){
  4496. btn_regnewpatient.attribute("text") = "신환등록" ;
  4497. btn_regnewpatient.visible = true;
  4498. btn_receipt.visible = true;
  4499. //-------(20101119) 경북대
  4500. //btn_reqview.visible = true;
  4501. //btn_reqtrns.visible = true;
  4502. //-------(20101119) 경북대
  4503. btn_save.visible = true;
  4504. btn_confirm.visible = false;
  4505. btn_reqcancel.visible = true;
  4506. }else if(model.getValue("/root/send/prcsstat") == '4' ){
  4507. btn_regnewpatient.visible = false;
  4508. btn_receipt.visible = false;
  4509. //-------(20101119) 경북대
  4510. //btn_reqview.visible = true;
  4511. btn_reqtrns.visible = false;
  4512. //-------(20101119) 경북대
  4513. btn_save.visible = true;
  4514. btn_confirm.visible = false;
  4515. btn_reqcancel.visible = false;
  4516. }
  4517. }
  4518. model.setValue("/root/send/kind", rdo_kind.value);
  4519. //model.refresh();
  4520. ]]>
  4521. </script>
  4522. </select1>
  4523. <group id="grp_kindchurch" visibility="hidden" style="left:380px; top:24px; width:560px; height:20px; background-color:transparent; ">
  4524. <select1 id="combo5" ref="/root/send/churchcd" class="combo_search" appearance="minimal" style="left:75px; top:0px; width:105px; height:19px; ">
  4525. <choices>
  4526. <itemset nodeset="/root/item/church/churchlist">
  4527. <label ref="churchnm"/>
  4528. <value ref="churchcd"/>
  4529. </itemset>
  4530. </choices>
  4531. <script type="javascript" ev:event="xforms-value-changed">
  4532. <![CDATA[
  4533. if(combo5.value != "") {
  4534. // 조회조건의 선택된 본당의 가정간호 담당간호사 리스트를 조회, 콤보박스에 세팅한다.
  4535. submit("TRMNF00106");
  4536. //본당의 경우 간호사 한명이므로 세팅
  4537. //20080127 손은연
  4538. //20080127 김홍점 본당이 전체일경우 간호사도 전체가 있어야 하므로 쿼리에서도 전체 삭제한부분 살렸고 여기서 select(1)을 선택하도록 수정
  4539. if(model.getValue("/root/send/churchcd") == "-"){
  4540. combo7.select(0);
  4541. }else if ( combo7.length > 0 ){
  4542. combo7.select(1);
  4543. }
  4544. }
  4545. ]]>
  4546. </script>
  4547. </select1>
  4548. <select1 id="combo7" ref="/root/send/chrgnursid" class="combo_search" appearance="minimal" style="left:435px; top:0px; width:90px; height:19px; ">
  4549. <choices>
  4550. <itemset nodeset="/root/item/chargenurse/nurselist">
  4551. <label ref="usernm"/>
  4552. <value ref="userid"/>
  4553. </itemset>
  4554. </choices>
  4555. <script type="javascript" ev:event="xforms-value-changed">
  4556. <![CDATA[
  4557. btn_search.dispatch("DOMActivate");
  4558. ]]>
  4559. </script>
  4560. </select1>
  4561. <caption id="caption28" class="search_name" style="left:0px; top:0px; width:80px; height:17px; ">본당명 :</caption>
  4562. <caption id="caption29" class="search_name" style="left:330px; top:1px; width:99px; height:17px; ">담당간호사 :</caption>
  4563. <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; ">
  4564. <choices>
  4565. <itemset nodeset="/root/item/churchregkind/churchregkindlist">
  4566. <label ref="nm"/>
  4567. <value ref="cd"/>
  4568. </itemset>
  4569. </choices>
  4570. </select>
  4571. </group>
  4572. <group id="grp_kindhosp" visibility="visible" style="left:380px; top:24px; width:225px; height:20px; background-color:transparent; ">
  4573. <select1 id="combo6" ref="/root/send/chrgnursid" class="combo_search" appearance="minimal" style="left:100px; top:0px; width:100px; height:19px; ">
  4574. <choices>
  4575. <itemset nodeset="/root/item/chargenurse/nurselist">
  4576. <label ref="usernm"/>
  4577. <value ref="userid"/>
  4578. </itemset>
  4579. </choices>
  4580. <script type="javascript" ev:event="xforms-value-changed">
  4581. <![CDATA[
  4582. btn_search.dispatch("DOMActivate");
  4583. ]]>
  4584. </script>
  4585. </select1>
  4586. <caption id="caption27" class="search_name" style="left:0px; top:1px; width:99px; height:17px; ">담당간호사 :</caption>
  4587. </group>
  4588. <caption id="caption16" class="tit_2" style="left:473px; top:85px; width:80px; height:13px; ">환자정보</caption>
  4589. <button id="btn_save" class="btn5_letter2" style="left:852px; top:81px; width:42px; height:19px; ">
  4590. <caption>저장</caption>
  4591. <script type="javascript" ev:event="DOMActivate">
  4592. <![CDATA[
  4593. if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/pid")) == 0) {
  4594. messageBox("환자정보가","I004"); // 없습니다.
  4595. return ;
  4596. }else if( model.getValue("/root/main/grd_visitlst/visitlist["+grd_visitlst.row+"]/kind") == "무료" || model.getValue("/root/main/grd_visitlst/visitlist["+grd_visitlst.row+"]/kind") == "기타" ){
  4597. if(model.getValue("/root/main/patinfo/patinforesult/chrrgstkind") == "1"){
  4598. messageBox("등록환자로의 전환은 가정간호 의뢰서를 통해서만 가능합니다.", "E999", "");
  4599. return;
  4600. }
  4601. }
  4602. // 저장 데이터 세팅(콤보 박스 값)
  4603. if ( !isNull(model.getValue("/root/main/patinfo/patinforesult/chrgnursid1"))) {
  4604. model.setValue("/root/main/patinfo/patinforesult/chrgnursid", model.getValue("/root/main/patinfo/patinforesult/chrgnursid1"));
  4605. } else if ( !isNull(model.getValue("/root/main/patinfo/patinforesult/chrgnursid2"))) {
  4606. model.setValue("/root/main/patinfo/patinforesult/chrgnursid", model.getValue("/root/main/patinfo/patinforesult/chrgnursid2"));
  4607. } else if ( !isNull(model.getValue("/root/main/patinfo/patinforesult/chrgnursid3"))) {
  4608. model.setValue("/root/main/patinfo/patinforesult/chrgnursid", model.getValue("/root/main/patinfo/patinforesult/chrgnursid3"));
  4609. }
  4610. combo2.refresh();
  4611. combo10.refresh();
  4612. combo13.refresh();
  4613. //model.refresh();
  4614. if (model.getValue("/root/send/kind") == "1" || model.getValue("/root/send/kind") == "3" ) { // 병원
  4615. submit("TXMNF00102");
  4616. } else if (model.getValue("/root/send/kind") == "2") { // 본당
  4617. if(getStringLength(combo12.value) == 0 || combo12.value == "-") {
  4618. messageBox("본당을","C001"); // 입력하십시오!
  4619. model.setFocus("combo12") ;
  4620. return ;
  4621. }
  4622. if(getStringLength(combo1.value) == 0) {
  4623. messageBox("본당 환자구분을","C001"); // 입력하십시오!
  4624. model.setFocus("combo1") ;
  4625. return ;
  4626. }
  4627. if(getStringLength(combo13.value) == 0 || combo13.value == "%") {
  4628. messageBox("담당간호사을","C001"); // 입력하십시오!
  4629. model.setFocus("combo13") ;
  4630. return ;
  4631. }
  4632. if(gNewPat == "Y") { // 신환등록 시 본당 가정간호환자 등록인 경우
  4633. gNewPat = "N" ;
  4634. // 1.환자 기본정보 저장(UPDATE) 등록인경우
  4635. submit("TXMNF00102");
  4636. } else {
  4637. //*****************************************************************************************************************
  4638. // 본당환자구분 : '1' 등록 , '2' 무료 , '3' 기타
  4639. // 본당환자 구분이 무료->기타, 기타->무료 로 바뀐 경우만 로직 적용
  4640. //*****************************************************************************************************************
  4641. if( model.getValue("/root/main/patinfo/patinforesult/oldchrrgstkind") != "1"
  4642. && model.getValue("/root/main/patinfo/patinforesult/chrrgstkind") != "1"
  4643. && model.getValue("/root/main/patinfo/patinforesult/chrrgstkind") != model.getValue("/root/main/patinfo/patinforesult/oldchrrgstkind"))
  4644. {
  4645. // 저장 데이터 세팅(콤보 박스 값)
  4646. if ( !isNull(model.getValue("/root/main/patinfo/patinforesult/chrgnursid1"))) {
  4647. model.makeValue("/root/reqtransdata/chrgnursid1", model.getValue("/root/main/patinfo/patinforesult/chrgnursid1"));
  4648. } else if ( !isNull(model.getValue("/root/main/patinfo/patinforesult/chrgnursid2"))) {
  4649. model.makeValue("/root/reqtransdata/chrgnursid2", model.getValue("/root/main/patinfo/patinforesult/chrgnursid2"));
  4650. } else if ( !isNull(model.getValue("/root/main/patinfo/patinforesult/chrgnursid3"))) {
  4651. model.makeValue("/root/reqtransdata/chrgnursid3", model.getValue("/root/main/patinfo/patinforesult/chrgnursid3"));
  4652. }
  4653. model.makeValue("/root/reqtransdata/address", model.getValue("/root/main/patinfo/patinforesult/address"));
  4654. model.makeValue("/root/reqtransdata/telno1", model.getValue("/root/main/patinfo/patinforesult/telno1"));
  4655. model.makeValue("/root/reqtransdata/telno2", model.getValue("/root/main/patinfo/patinforesult/telno2"));
  4656. model.makeValue("/root/reqtransdata/cphone1owner", model.getValue("/root/main/patinfo/patinforesult/cphone1owner"));
  4657. model.makeValue("/root/reqtransdata/cphone2owner", model.getValue("/root/main/patinfo/patinforesult/cphone2owner"));
  4658. model.makeValue("/root/reqtransdata/cphone1", model.getValue("/root/main/patinfo/patinforesult/cphone1"));
  4659. model.makeValue("/root/reqtransdata/cphone2", model.getValue("/root/main/patinfo/patinforesult/cphone2"));
  4660. model.makeValue("/root/reqtransdata/churchcd", model.getValue("/root/main/patinfo/patinforesult/churchcd"));
  4661. model.setValue("/root/reqtransdata/chrrgstkind", model.getValue("/root/main/patinfo/patinforesult/chrrgstkind"));
  4662. model.makeValue("/root/reqtransdata/healcntryn", model.getValue("/root/main/patinfo/patinforesult/healcntryn"));
  4663. model.makeValue("/root/reqtransdata/healcntrnm", model.getValue("/root/main/patinfo/patinforesult/healcntrnm"));
  4664. model.makeValue("/root/reqtransdata/requnit", model.getValue("/root/main/patinfo/patinforesult/requnit"));
  4665. model.makeValue("/root/reqtransdata/dctype", model.getValue("/root/main/patinfo/patinforesult/dctype"));
  4666. model.makeValue("/root/reqtransdata/dcreason", model.getValue("/root/main/patinfo/patinforesult/dcreason"));
  4667. model.makeValue("/root/reqtransdata/comremark", model.getValue("/root/main/patinfo/patinforesult/comremark"));
  4668. model.makeValue("/root/reqtransdata/remark", model.getValue("/root/main/patinfo/patinforesult/remark"));
  4669. // 방문간호 항목추가 2009.02.18
  4670. model.makeValue("/root/reqtransdata/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
  4671. model.makeValue("/root/reqtransdata/gradeflag", model.getValue("/root/main/patinfo/patinforesult/gradeflag"));
  4672. model.makeValue("/root/reqtransdata/vdctype", model.getValue("/root/main/patinfo/patinforesult/vdctype"));
  4673. model.makeValue("/root/reqtransdata/qualflag", model.getValue("/root/main/patinfo/patinforesult/qualflag"));
  4674. model.makeValue("/root/reqtransdata/longtermno", model.getValue("/root/main/patinfo/patinforesult/longtermno"));
  4675. model.makeValue("/root/reqtransdata/vstarea", model.getValue("/root/main/patinfo/patinforesult/vstarea"));model.makeValue("/root/reqtransdata/longtermno", model.getValue("/root/main/patinfo/patinforesult/longtermno"));
  4676. // 1.본당환자를 무료->기타, 기타->무료 전환 시 이전상태가 종료가 종결되어야 하고, 종결사유는 자동으로 "8" : "전환" 이 되어야 한다.
  4677. // 메인화면에서 전환하고 종결요약 화면 좌측의 종결 리스트에서 확인이 되어야 한다.
  4678. // 종결기록 자동생성 (단, 본당에서 본당으로의 의뢰전송은 종결이 아니고 그대로 유지되어서 감)
  4679. /*****************************************************************************************************************************************************
  4680. <<< 종결기록없이 종결되는 경우 >>>
  4681. 전환 : (본당) "무료" 환자를 "기타"로 전환, "기타" 환자를 "무료"로 전환하는 경우 종결기록에는 전환으로 종결사유가 들어가고 종결기록 유무에는 나타나지 않게한다.
  4682. 병원의뢰 : (본당) "무료" 또는 "기타" 환자를 병원으로 의뢰한 경우 종결기록에는 병원의뢰로 종결사유가 들어가고 종결기록 유무에는 나타나지 않게한다.
  4683. 병원의뢰된 환자는 가정간호 대상자 종결이 되고, 병원 내원시 접수하고 의뢰서 발행후 가정간호 대상자도 확정한다.
  4684. *****************************************************************************************************************************************************/
  4685. // 1.1.가정간호 종결요약 자동등록(INSERT)
  4686. // 1.2.가정간호 대상자 테이블의 종결일, 종결여부를 업데이트 한다.
  4687. // 2.본당환자를 전환 상태로 가정간호 대상자로 재등록한다. (무료 혹은 기타)
  4688. // 가정간호 환자 대상자 등록(확정)(INSERT) 로직을 호출한다.
  4689. //동일 트랜에서 이루어 져야 하므로 TXMNF00501 의 app단에서 3가지를 모두 수행
  4690. submit("TXMNF00501");
  4691. // 1.2.가정간호 대상자 테이블의 종결일, 종결여부를 업데이트 한다.
  4692. //submit("TXMNF00504");
  4693. // 2.본당환자를 전환 상태로 가정간호 대상자로 재등록한다. (무료 혹은 기타)
  4694. // 가정간호 환자 대상자 등록(확정)(INSERT) 로직을 호출한다.
  4695. //submit("TXMNF00103");
  4696. } else {
  4697. // 1.환자 기본정보 저장(UPDATE) 등록인경우
  4698. submit("TXMNF00102");
  4699. }
  4700. }
  4701. }
  4702. fClear();
  4703. // 환자선택시 환자별 histoy리스트 조회
  4704. submit("TRMNF00131");
  4705. ]]>
  4706. </script>
  4707. </button>
  4708. <caption id="cap_previsitddcolor" class="color_9" visibility="hidden" style="left:955px; top:83px; width:15px; height:15px; vertical-align:middle; "/>
  4709. <caption id="cap_previsitdd" visibility="hidden" style="left:971px; top:84px; width:62px; height:14px; vertical-align:middle; ">방문예정일</caption>
  4710. <caption id="cap_visitddcolor" class="color_4" visibility="hidden" style="left:899px; top:83px; width:15px; height:15px; vertical-align:middle; "/>
  4711. <caption id="cap_visitdd" visibility="hidden" style="left:915px; top:84px; width:38px; height:14px; vertical-align:middle; ">방문일</caption>
  4712. <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; ">
  4713. <choices>
  4714. <item>
  4715. <label>만료</label>
  4716. <value>1</value>
  4717. </item>
  4718. </choices>
  4719. <script type="javascript" ev:event="xforms-value-changed">
  4720. <![CDATA[
  4721. if(checkbox2.value == 1) {
  4722. searchListFlag = "4"; // 4.만료환자 리스트
  4723. } else {
  4724. searchListFlag = "1"; // 1.방문예정자 리스트
  4725. rdo_prcsstat.value = "1"; // 1.당일방문예정
  4726. }
  4727. fClear();
  4728. //본당등록구분
  4729. fMakeChrRgstKind();
  4730. model.setValue("/root/send/pid","");
  4731. model.setValue("/root/send/inptdt","");
  4732. fDisableEnableBtn(searchListFlag) ;
  4733. if ( !fExcuteSearch(searchListFlag)){
  4734. return;
  4735. }
  4736. if(checkbox2.value == 1) {
  4737. // 일자별 만료환자 카운트 조회
  4738. submit("TRMNF00121");
  4739. } else {
  4740. // 일자별 방문(예정)건수 조회
  4741. submit("TRMNF00107");
  4742. }
  4743. // 달력에 일자별 건수 대입
  4744. fDataDisplay();
  4745. ]]>
  4746. </script>
  4747. </select>
  4748. <!--(20101119) 경북대
  4749. 경북대는 관계없음
  4750. <button id="btn_reqtrns" class="btn2_letter2" style="left:722px; top:81px; width:42px; height:19px; ">
  4751. -->
  4752. <button id="btn_reqtrns" class="btn2_letter2" visibility="hidden" style="left:677px; top:81px; width:42px; height:19px; ">
  4753. <!--(20101119) 경북대 -->
  4754. <caption>전송</caption>
  4755. <script type="javascript" ev:event="DOMActivate">
  4756. <![CDATA[
  4757. var xpos = window.width / 2;
  4758. var ypos = window.height / 2;
  4759. if (rdo_kind.value == 1) { // 병원에서 본당으로 의뢰전송
  4760. model.setValue("/root/reqtransdata/reqtrnskind", "1");
  4761. //model.refresh();
  4762. modal("SMMNF04100", "", "", "", "SMMNF04100", "/root/main/patinfo/patinforesult", "/root/main/transinfo/parameter");
  4763. } else if (rdo_kind.value == 2) { // 본당에서 병원 혹은 본당으로 의뢰전송
  4764. if ( isNull(model.getValue("/root/main/patinfo/patinforesult/chrrgstkind"))) {
  4765. messageBox("등록/무료/기타 구분을 ", "C002");
  4766. model.setFocus("combo1") ;
  4767. return;
  4768. }
  4769. model.setValue("/root/reqtransdata/reqtrnskind", "2");
  4770. model.setValue("/root/reqtransdata/chrrgstkind", model.getValue("/root/main/patinfo/patinforesult/chrrgstkind"));
  4771. //model.refresh();
  4772. modal("SMMNF04200", "", "", "", "SMMNF04200", "/root/main/patinfo/patinforesult", "/root/main/transinfo/parameter");
  4773. }
  4774. ]]>
  4775. </script>
  4776. </button>
  4777. <line id="line50" class="line_3" style="x1:0px; y1:130px; x2:470px; y2:130px; "/>
  4778. <input id="ipt_workdate" ref="/root/send/visitdd" class="input_search" inputtype="date" style="left:107px; top:24px; width:100px; height:19px; ">
  4779. <script type="javascript" ev:event="xforms-value-changed">
  4780. <![CDATA[
  4781. cap_ym.value = ipt_workdate.value.substr(0, 4) + "년 " + ipt_workdate.value.substr(4, 2) + "월" ;
  4782. btn_search.dispatch("DOMActivate");
  4783. ]]>
  4784. </script>
  4785. </input>
  4786. <output id="opt_previsitcount" style="left:265px; top:81px; width:135px; height:19px; text-align:right; "/>
  4787. <button id="btn_confirm" class="btn5_letter4" style="left:549px; top:81px; width:64px; height:19px; ">
  4788. <caption>의뢰확정</caption>
  4789. <script type="javascript" ev:event="DOMActivate">
  4790. <![CDATA[
  4791. if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/pid")) == 0) {
  4792. messageBox("환자정보가","I004"); // 없습니다.
  4793. return ;
  4794. }
  4795. if(rdo_kind.value == "2") { // 본당인 경우
  4796. if(getStringLength(combo12.value) == 0 || combo12.value == "-") {
  4797. messageBox("본당을","C001"); // 입력하십시오!
  4798. return ;
  4799. }
  4800. if(getStringLength(combo1.value) == 0) {
  4801. messageBox("본당 환자구분을","C001"); // 입력하십시오!
  4802. return ;
  4803. }
  4804. if(getStringLength(combo13.value) == 0 || combo13.value == "%") {
  4805. messageBox("담당간호사을","C001"); // 입력하십시오!
  4806. return ;
  4807. }
  4808. }
  4809. if(rdo_kind.value == "1") { // 본당인 경우
  4810. if(getStringLength(combo2.value) == 0 || combo2.value == "%") {
  4811. messageBox("담당간호사을","C001"); // 입력하십시오!
  4812. return ;
  4813. }
  4814. }
  4815. // 저장 데이터 세팅(콤보 박스 값)
  4816. if ( !isNull(model.getValue("/root/main/patinfo/patinforesult/chrgnursid1"))) {
  4817. model.setValue("/root/main/patinfo/patinforesult/chrgnursid", model.getValue("/root/main/patinfo/patinforesult/chrgnursid1"));
  4818. } else if ( !isNull(model.getValue("/root/main/patinfo/patinforesult/chrgnursid2"))) {
  4819. model.setValue("/root/main/patinfo/patinforesult/chrgnursid", model.getValue("/root/main/patinfo/patinforesult/chrgnursid2"));
  4820. } else if ( !isNull(model.getValue("/root/main/patinfo/patinforesult/chrgnursid3"))) {
  4821. model.setValue("/root/main/patinfo/patinforesult/chrgnursid", model.getValue("/root/main/patinfo/patinforesult/chrgnursid3"));
  4822. }
  4823. var cur_row = grd_reqlist.row;
  4824. //해당환자의 진단명이 존재하지 않는 경우 알림창추가_20091230_SMY
  4825. if(model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/cnstdiagcd") == ""){
  4826. var DiagMsg = messageBox("가정간호 의뢰서의 진단명이 존재하지 않습니다. 의뢰확정을 하시겠습니까?" ,"Q");
  4827. if(DiagMsg != '6'){
  4828. return;
  4829. }
  4830. }
  4831. //********************************************************************************************************
  4832. // 입원환자 퇴원시 가정간호 의뢰 기록 여부 확인
  4833. //********************************************************************************************************
  4834. if((model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/reqmode") == "I") && (model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/carerec") == 'N')){
  4835. var vbOK = messageBox("퇴원시 가정간호 의뢰 간호기록이 작성되지 않았습니다. 의뢰확정을" ,"Q003"); // 계속 진행하기겠습니까?
  4836. if(vbOK != '6'){
  4837. return;
  4838. }
  4839. }
  4840. if ( cur_row > 0 ) {
  4841. model.setValue("/root/send/pid", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/pid"));
  4842. model.setValue("/root/main/patinfo/patinforesult/reqdd", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/reqdd"));
  4843. model.setValue("/root/main/patinfo/patinforesult/reqdeptcd", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/reqdeptcd"));
  4844. model.setValue("/root/main/patinfo/patinforesult/reqdrid", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/reqdrid"));
  4845. model.setValue("/root/main/patinfo/patinforesult/patflag", rdo_kind.value);
  4846. model.setValue("/root/main/patinfo/patinforesult/instcd", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/instcd"));
  4847. model.makeValue("/root/main/patinfo/patinforesult/rereqyn", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/hisrecord"));
  4848. model.makeValue("/root/main/patinfo/patinforesult/isnewpat", "N"); // 본당 신환등록여부 구분
  4849. model.makeValue("/root/main/patinfo/patinforesult/cnststat", '22'); // 컨설트 테이블 상태값
  4850. model.setValue("/root/send/patcareflag", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/patcareflag"));
  4851. model.makeValue("/root/main/patinfo/patinforesult/patcareflag", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/patcareflag"));
  4852. model.setValue("/root/main/patinfo/patinforesult/formrecseq", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/formrecseq")); // 서식기록번호 병원, 본당(등록) 환자의 경우 insert
  4853. model.setValue("/root/main/patinfo/patinforesult/cnstdiagcd", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/cnstdiagcd")); //rqif 에 insert할 의뢰서 진단명 추가 (2010.02.26 hhm)
  4854. model.setValue("/root/main/patinfo/patinforesult/reqdd", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/reqdd"));
  4855. model.setValue("/root/main/patinfo/patinforesult/reqdeptcd", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/reqdeptcd"));
  4856. model.setValue("/root/main/patinfo/patinforesult/reqdrid", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/reqdrid"));
  4857. }
  4858. //model.refresh();
  4859. //******************************************************************************************
  4860. // 기타/무료 환자인지 체크
  4861. /******************************************************************************************/
  4862. if(submit("TRMNF00132")){
  4863. if(model.getValue("/root/temp/chrrgstkindinfo/chrrgstkindresult/pid") == "" ){ // 기타 무료환자 없을 경우
  4864. }else{ // 종료되지 않은 기타 무료환자 존재시, msg
  4865. var churchnm = model.getValue("/root/temp/chrrgstkindinfo/chrrgstkindresult/churchnm");
  4866. model.makeValue("/root/main/patinfo/patinforesult/chrrgstkindRgstYN", "Y");
  4867. model.makeValue("/root/main/patinfo/patinforesult/chnginptdt", model.getValue("/root/temp/chrrgstkindinfo/chrrgstkindresult/inptdt"));
  4868. var patflag = model.getValue("/root/temp/chrrgstkindinfo/chrrgstkindresult/patflag");
  4869. var chrrgstkind = model.getValue("/root/temp/chrrgstkindinfo/chrrgstkindresult/chrrgstkind");
  4870. // alert(patflag + " "+chrrgstkind) ;
  4871. if(patflag == "1" && chrrgstkind == "2"){
  4872. messageBox("병원에서 관리되는 기타환자 정보가 있습니다. \n 가정간호 의뢰확정시 기타환자 정보는 자동종결됩니다." ,"E999","");
  4873. }else if(patflag == "1" && chrrgstkind == "3"){
  4874. messageBox("병원에서 관리되는 무료환자 정보가 있습니다. \n 가정간호 의뢰확정시 무료환자 정보는 자동종결됩니다." ,"E999","");
  4875. }else if(patflag == "2" && chrrgstkind == "2"){
  4876. messageBox("본당:"+ churchnm+"에서 관리되는 기타환자 정보가 있습니다. \n 가정간호 의뢰확정시 기타환자 정보는 자동종결됩니다." ,"E999","");
  4877. }else if(patflag == "2" && chrrgstkind == "3"){
  4878. messageBox("본당:"+ churchnm+"에서 관리되는 무료환자 정보가 있습니다. \n 가정간호 의뢰확정시 무료환자 정보는 자동종결됩니다." ,"E999","");
  4879. }
  4880. }
  4881. }
  4882. // 가정간호 환자 대상자 등록(확정)(INSERT)
  4883. //의뢰서 확정여부 컨설트테이블 업데이트 추가
  4884. if(submit("TXMNF00103")){
  4885. //model.makeValue("/root/send/reqtrnspid", reqtrnspid);
  4886. //의뢰전송 된 경우 인지 조회하여 의뢰전송인 경우는 의뢰전송완료 '4' 로 의뢰구분을 지정하여 준다
  4887. if(submit("TRMNF00124")){
  4888. //******************************************************************************************
  4889. //의뢰전송 후 의뢰전송완료로 수정
  4890. //*******************************************************************************************
  4891. var pidcount = model.getValue("/root/main/reqtrnsinfo/reqtrnsinfo/pidcount");
  4892. if(pidcount > '0'){
  4893. model.setValue("/root/send/inptdt", model.getValue("/root/main/reqtrnsinfo/reqtrnsinfo/inptdt"));
  4894. model.setValue("/root/main/patinfo/patinforesult/inptdt", model.getValue("/root/main/reqtrnsinfo/reqtrnsinfo/inptdt"));
  4895. //의뢰전송 갱신
  4896. submit("TXMNF00112");
  4897. }
  4898. }
  4899. }else{
  4900. messageBox("의뢰확정을", "E009"); //실패하였습니다.
  4901. }
  4902. fClear();
  4903. //본당등록구분
  4904. fMakeChrRgstKind();
  4905. searchListFlag = "2"; // 2.미확정 리스트 조회
  4906. fDisableEnableBtn(searchListFlag) ;
  4907. model.setValue("/root/send/churchcd","-") ;
  4908. if ( !fExcuteSearch(searchListFlag)){
  4909. return;
  4910. }
  4911. // 7.일자별 방문(예정)건수 조회
  4912. submit("TRMNF00107");
  4913. // 달력에 일자별 방문(예정)건수 대입
  4914. fDataDisplay();
  4915. //0. 진행상태 : 당일방문예정, 미확정, 진행, 종결 카운트 조회
  4916. submit("TRMNF00115");
  4917. ]]>
  4918. </script>
  4919. </button>
  4920. <!--(20101119) 경북대
  4921. 경북대는 관계없음
  4922. <button id="btn_reqview" class="btn2_letter6" style="left:765px; top:81px; width:86px; height:19px; ">
  4923. -->
  4924. <button id="btn_reqview" class="btn2_letter6" visibility="hidden" style="left:720px; top:81px; width:86px; height:19px; ">
  4925. <!--(20101119) 경북대 -->
  4926. <caption>전송수신보기</caption>
  4927. <script type="javascript" ev:event="DOMActivate">
  4928. <![CDATA[
  4929. var xpos = window.width / 2 - 100;
  4930. var ypos = window.height / 2 - 200;
  4931. var cur_row;
  4932. if(searchListFlag == "1" || searchListFlag == "5") {
  4933. cur_row = grd_visitlst.row;
  4934. } else if(searchListFlag == "2") {
  4935. cur_row = grd_reqlist.row;
  4936. } else if(searchListFlag == "4") {
  4937. cur_row = grd_explist.row;
  4938. }
  4939. if ( cur_row > 0 ) {
  4940. if(searchListFlag == "1" || searchListFlag == "5") {
  4941. model.setValue("/root/reqviewtrans/pid", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/pid"));
  4942. model.setValue("/root/reqviewtrans/inptdt", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/inptdt"));
  4943. model.setValue("/root/reqviewtrans/instcd", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/instcd"));
  4944. model.setValue("/root/reqviewtrans/patcareflag", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/patcareflag"));
  4945. } else if(searchListFlag == "2") {
  4946. model.setValue("/root/reqviewtrans/pid", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/pid"));
  4947. model.setValue("/root/reqviewtrans/inptdt", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/inptdt"));
  4948. model.setValue("/root/reqviewtrans/instcd", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/instcd"));
  4949. model.setValue("/root/reqviewtrans/patcareflag", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/patcareflag"));
  4950. } else if(searchListFlag == "4") {
  4951. model.setValue("/root/reqviewtrans/pid", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/pid"));
  4952. model.setValue("/root/reqviewtrans/inptdt", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/inptdt"));
  4953. model.setValue("/root/reqviewtrans/instcd", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/instcd"));
  4954. model.setValue("/root/reqviewtrans/patcareflag", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/patcareflag"));
  4955. }
  4956. //model.refresh();
  4957. }
  4958. model.setValue("/root/reqviewtrans/patflag", rdo_kind.value);
  4959. model.setValue("/root/reqviewtrans/churchcd", model.getValue("/root/send/churchcd"));
  4960. open("SMMNF04500", "", "", "", "SMMNF04500", "/root/reqviewtrans", "/root/main/parameter");
  4961. model.resetInstanceNode("/root/reqviewtrans");
  4962. ]]>
  4963. </script>
  4964. </button>
  4965. <button id="btn_reqcancel" class="btn2_letter4" style="left:614px; top:81px; width:64px; height:19px; ">
  4966. <caption>의뢰취소</caption>
  4967. <script type="javascript" ev:event="DOMActivate">
  4968. <![CDATA[
  4969. //무료기타환자는 의뢰취소를 할수 없음을 blocking 20080916 김홍점
  4970. if( ( model.getValue("/root/main/patinfo/patinforesult/chrrgstkind") == '2'
  4971. || model.getValue("/root/main/patinfo/patinforesult/chrrgstkind") == '3' ) ){
  4972. messageBox("무료, 기타 환자는 의뢰취소를 할 수 ", "I004");
  4973. return;
  4974. }
  4975. grp_reqcancel.visible = true;
  4976. btn_savereqcancel.disabled = false ;
  4977. ]]>
  4978. </script>
  4979. </button>
  4980. <!--(20101119) 경북대
  4981. <button id="btn_receipt" class="btn2_letter2" visibility="visible" style="left:679px; top:81px; width:42px; height:19px; ">
  4982. -->
  4983. <button id="btn_receipt" class="btn2_letter2" visibility="visible" style="left:805px; top:81px; width:42px; height:19px; ">
  4984. <!--(20101119) 경북대 -->
  4985. <caption>접수</caption>
  4986. <script type="javascript" ev:event="DOMActivate">
  4987. <![CDATA[
  4988. fHomeCareOutAcpt();
  4989. ]]>
  4990. </script>
  4991. </button>
  4992. <caption id="caption75" class="cell_1" style="left:0px; top:106px; width:55px; height:23px; text-align:center; ">등록번호</caption>
  4993. <input id="ipt_patnm" ref="/root/main/condition/hngnm" class="input_search" imemode="hangul" style="left:168px; top:108px; width:64px; height:19px; ">
  4994. <script type="javascript" ev:event="onkeyup">
  4995. <![CDATA[
  4996. if(event.keyCode == 13) {
  4997. inputEnterKey("btn_patnm", "DOMActivate");
  4998. model.resetInstanceNode("/root/main/condition/hngnm");
  4999. ipt_patnm.refresh();
  5000. } else {
  5001. }
  5002. ]]>
  5003. </script>
  5004. </input>
  5005. <caption id="caption76" class="cell_1" style="left:122px; top:106px; width:45px; height:23px; text-align:center; ">환자명</caption>
  5006. <button id="btn_patnm" class="icon_search" visibility="hidden" style="left:215px; top:109px; width:16px; height:16px; ">
  5007. <caption/>
  5008. <script type="javascript" ev:event="DOMActivate">
  5009. <![CDATA[
  5010. //searchListFlag = "1"; // Default "1" - 당일방문예정자 리스트
  5011. //searchListFlag = "2"; // "2" - 미확정 리스트
  5012. //searchListFlag = "3"; // "3" - 종결환자리스트
  5013. //searchListFlag = "4"; // "4" - 만료환자리스트
  5014. //searchListFlag = "5"; // "5" - 진행환자리스트
  5015. var sGrid = "";
  5016. if ( searchListFlag == "1" || searchListFlag == "5" ){
  5017. sGrid = grd_visitlst
  5018. }
  5019. if ( searchListFlag == "2" ){
  5020. sGrid = grd_reqlist
  5021. }
  5022. if ( searchListFlag == "3" ){
  5023. sGrid = grd_endlist
  5024. }
  5025. if ( searchListFlag == "4" ){
  5026. sGrid = grd_explist
  5027. }
  5028. var row = fFindRow(model.getValue("/root/main/condition/hngnm"), sGrid.colRef("hngnm"));
  5029. sGrid.topRow = row;
  5030. if(row > 0) {
  5031. ipt_pid.value = "";
  5032. ipt_patnm.value = "";
  5033. }
  5034. //model.refresh();
  5035. ]]>
  5036. </script>
  5037. </button>
  5038. <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; ">
  5039. <choices>
  5040. <item>
  5041. <label>당일방문예정</label>
  5042. <value>1</value>
  5043. </item>
  5044. <item>
  5045. <label>미확정</label>
  5046. <value>2</value>
  5047. </item>
  5048. <item>
  5049. <label>진행</label>
  5050. <value>3</value>
  5051. </item>
  5052. <item>
  5053. <label>종결</label>
  5054. <value>4</value>
  5055. </item>
  5056. </choices>
  5057. <script type="javascript" ev:event="xforms-value-changed">
  5058. <![CDATA[
  5059. //진행상태 라디오 버튼으로 변경
  5060. //20080124 손은연
  5061. fClear();
  5062. //그리드 초기화
  5063. model.removeNodeset("/root/main/grd_explist");
  5064. model.removeNodeset("/root/main/grd_reqlist");
  5065. model.removeNodeset("/root/main/grd_visitlst");
  5066. model.removeNodeset("/root/main/grd_endlist");
  5067. model.removeNodeset("/root/main/grd_patvisitlst");
  5068. //본당등록구분
  5069. fMakeChrRgstKind();
  5070. model.setValue("/root/send/pid","");
  5071. model.setValue("/root/send/inptdt","");
  5072. if(model.getValue("/root/send/prcsstat") == '1' ){
  5073. searchListFlag = "1";
  5074. if (rdo_kind.value == 1) { // 병원
  5075. btn_regnewpatient.visible = false;
  5076. btn_receipt.visible = true;
  5077. //-----(20101119) 경북대
  5078. //btn_reqview.visible = true;
  5079. //btn_reqtrns.visible = true;
  5080. //-----(20101119) 경북대
  5081. btn_save.visible = true;
  5082. btn_save.disabled = false;
  5083. btn_confirm.visible = false;
  5084. btn_reqcancel.visible = false; // 2009.09.10 의뢰확정 후 의뢰취소는 하지 않기 때문에 의뢰취소버튼 비활성화 되도록 김숙인선생님 요청
  5085. // 구분이 가정간호 인 경우는 방문계약버튼 뜨도록 수정
  5086. if (model.getValue("/root/send/careflag")=='V') {
  5087. btn_regnewpatient.attribute("text") = "방문계약";
  5088. btn_regnewpatient.visible = true;
  5089. }
  5090. }else if (rdo_kind.value == 2){ // 본당
  5091. btn_regnewpatient.attribute("text") = "신환등록" ;
  5092. btn_regnewpatient.visible = true;
  5093. btn_receipt.visible = true;
  5094. //--(20101119) 경북대
  5095. //btn_reqview.visible = true;
  5096. //btn_reqtrns.visible = true;
  5097. //--(20101119) 경북대
  5098. btn_save.visible = true;
  5099. btn_save.disabled = false;
  5100. btn_confirm.visible = false;
  5101. btn_reqcancel.visible = false; // 2009.09.10 의뢰확정 후 의뢰취소는 하지 않기 때문에 의뢰취소버튼 비활성화 되도록 김숙인선생님 요청
  5102. }else{
  5103. btn_regnewpatient.attribute("text") = "신환등록" ;
  5104. btn_regnewpatient.visible = true;
  5105. btn_receipt.visible = true;
  5106. //--(20101119) 경북대
  5107. //btn_reqview.visible = true;
  5108. //btn_reqtrns.visible = true;
  5109. //--(20101119) 경북대
  5110. btn_save.visible = true;
  5111. btn_save.disabled = false;
  5112. btn_confirm.visible = false;
  5113. btn_reqcancel.visible = false; // 2009.09.10 의뢰확정 후 의뢰취소는 하지 않기 때문에 의뢰취소버튼 비활성화 되도록 김숙인선생님 요청
  5114. }
  5115. }else if(model.getValue("/root/send/prcsstat") == '2' ){
  5116. searchListFlag = "2";
  5117. if (rdo_kind.value == 1) { // 병원
  5118. btn_regnewpatient.visible = false;
  5119. btn_receipt.visible = false;
  5120. btn_reqview.visible = false;
  5121. btn_reqtrns.visible = false;
  5122. btn_save.visible = false;
  5123. btn_confirm.visible = true;
  5124. btn_confirm.disabled = false ;
  5125. btn_reqcancel.visible = true;
  5126. }else if (rdo_kind.value == 2){ // 본당
  5127. btn_regnewpatient.visible = false;
  5128. btn_receipt.visible = false;
  5129. btn_reqview.visible = false;
  5130. btn_reqtrns.visible = false;
  5131. btn_save.visible = false;
  5132. btn_confirm.visible = true;
  5133. btn_confirm.disabled = false ;
  5134. btn_reqcancel.visible = true;
  5135. }else{
  5136. btn_regnewpatient.visible = false;
  5137. btn_receipt.visible = false;
  5138. btn_reqview.visible = false;
  5139. btn_reqtrns.visible = false;
  5140. btn_save.visible = false;
  5141. btn_confirm.visible = true;
  5142. btn_confirm.disabled = false ;
  5143. btn_reqcancel.visible = true;
  5144. }
  5145. }else if(model.getValue("/root/send/prcsstat") == '3' ){
  5146. searchListFlag = "5";
  5147. if (rdo_kind.value == 1) { // 병원
  5148. btn_regnewpatient.visible = false;
  5149. btn_receipt.visible = true;
  5150. //--(20101119) 경북대
  5151. //btn_reqview.visible = true;
  5152. //btn_reqtrns.visible = true;
  5153. //--(20101119) 경북대
  5154. btn_save.visible = true;
  5155. btn_save.disabled = false;
  5156. btn_confirm.visible = false;
  5157. btn_reqcancel.visible = false; // 2009.09.10 의뢰확정 후 의뢰취소는 하지 않기 때문에 의뢰취소버튼 비활성화 되도록 김숙인선생님 요청
  5158. }else if (rdo_kind.value == 2){ // 본당
  5159. btn_regnewpatient.attribute("text") = "신환등록" ;
  5160. btn_regnewpatient.visible = true;
  5161. btn_receipt.visible = true;
  5162. //------(201011119) 경북대
  5163. //btn_reqview.visible = true;
  5164. //btn_reqtrns.visible = true;
  5165. //------(201011119) 경북대
  5166. btn_save.visible = true;
  5167. btn_save.disabled = false;
  5168. btn_confirm.visible = false;
  5169. btn_reqcancel.visible = false; // 2009.09.10 의뢰확정 후 의뢰취소는 하지 않기 때문에 의뢰취소버튼 비활성화 되도록 김숙인선생님 요청
  5170. }else{
  5171. btn_regnewpatient.attribute("text") = "신환등록" ;
  5172. btn_regnewpatient.visible = true;
  5173. btn_receipt.visible = true;
  5174. //------(201011119) 경북대
  5175. //btn_reqview.visible = true;
  5176. //btn_reqtrns.visible = true;
  5177. //------(201011119) 경북대
  5178. btn_save.visible = true;
  5179. btn_save.disabled = false;
  5180. btn_confirm.visible = false;
  5181. btn_reqcancel.visible = false; // 2009.09.10 의뢰확정 후 의뢰취소는 하지 않기 때문에 의뢰취소버튼 비활성화 되도록 김숙인선생님 요청
  5182. }
  5183. }else if(model.getValue("/root/send/prcsstat") == '4' ){
  5184. searchListFlag = "3";
  5185. if (rdo_kind.value == 1) { // 병원
  5186. btn_regnewpatient.visible = false;
  5187. btn_receipt.visible = false;
  5188. //-----(20101119) 경북대
  5189. //btn_reqview.visible = true;
  5190. btn_reqtrns.visible = false;
  5191. //-----(20101119) 경북대
  5192. btn_save.visible = true;
  5193. btn_save.disabled = false;
  5194. btn_confirm.visible = false;
  5195. btn_reqcancel.visible = false;
  5196. }else if (rdo_kind.value == 2){ // 본당
  5197. btn_regnewpatient.visible = false;
  5198. btn_receipt.visible = false;
  5199. //-----(20101119) 경북대
  5200. //btn_reqview.visible = true;
  5201. btn_reqtrns.visible = false;
  5202. //-----(20101119) 경북대
  5203. btn_save.visible = true;
  5204. btn_save.disabled = false;
  5205. btn_confirm.visible = false;
  5206. btn_reqcancel.visible = false;
  5207. }else{
  5208. btn_regnewpatient.visible = false;
  5209. btn_receipt.visible = false;
  5210. //-----(20101119) 경북대
  5211. //btn_reqview.visible = true;
  5212. btn_reqtrns.visible = false;
  5213. //-----(20101119) 경북대
  5214. btn_save.visible = true;
  5215. btn_save.disabled = false;
  5216. btn_confirm.visible = false;
  5217. btn_reqcancel.visible = false;
  5218. }
  5219. }
  5220. fDisableEnableBtn(searchListFlag) ;
  5221. if ( !fExcuteSearch(searchListFlag)){
  5222. return;
  5223. }
  5224. // 7.일자별 방문(예정)건수 조회
  5225. submit("TRMNF00107");
  5226. // 달력에 일자별 방문(예정)건수 대입
  5227. fDataDisplay();
  5228. ]]>
  5229. </script>
  5230. </select1>
  5231. <button id="btn_zoom" class="btn5_letter4" style="left:160px; top:81px; width:64px; height:19px; ">
  5232. <caption>확대보기</caption>
  5233. <script type="javascript" ev:event="DOMActivate">
  5234. <![CDATA[
  5235. var attr_value ;
  5236. if ( btn_zoom.attribute("text") == "확대보기" ) {
  5237. btn_zoom.attribute("text") = "기본보기";
  5238. caption1.attribute("height") = "26";
  5239. //searchListFlag = "1"; // Default "1" - 당일방문예정자 리스트
  5240. //searchListFlag = "2"; // "2" - 미확정 리스트
  5241. //searchListFlag = "3"; // "3" - 종결환자리스트
  5242. //searchListFlag = "4"; // "4" - 만료환자리스트
  5243. //searchListFlag = "5"; // "5" - 진행환자리스트
  5244. grd_patvisitlst.visible = false;
  5245. grup_patinfo.visible= false;
  5246. if(searchListFlag == "1" || searchListFlag == "5") {
  5247. attr_value = "1193";
  5248. grd_visitlst.attribute("left") = "0";
  5249. grd_visitlst.attribute("width") = attr_value ;
  5250. grd_patvisitlst.visible = false;
  5251. } else if(searchListFlag == "2") {
  5252. attr_value = "1193";
  5253. grd_reqlist.attribute("left") = "0";
  5254. grd_reqlist.attribute("width") = attr_value ;
  5255. } else if(searchListFlag == "3") {
  5256. attr_value = "1193";
  5257. grd_endlist.attribute("left") = "0";
  5258. grd_endlist.attribute("width") = attr_value ;
  5259. } else if(searchListFlag == "4") {
  5260. attr_value = "1193";
  5261. grd_explist.attribute("left") = "0";
  5262. grd_explist.attribute("width") = attr_value ;
  5263. }
  5264. /////line1.attribute("x2") = attr_value ;
  5265. caption1.attribute("width") = attr_value ;
  5266. /////line50.attribute("x2") = attr_value ;
  5267. //model.refresh();
  5268. } else {
  5269. btn_zoom.attribute("text") = "확대보기";
  5270. //attr_value = "442";
  5271. attr_value = "235";
  5272. /////line1.attribute("x2") = attr_value ;
  5273. caption1.attribute("height") = "23" ;
  5274. caption1.attribute("width") = attr_value ;
  5275. /////line50.attribute("x2") = attr_value ;
  5276. grd_patvisitlst.visible = true;
  5277. grup_patinfo.visible= true;
  5278. if(searchListFlag == "1" || searchListFlag == "5") {
  5279. grd_visitlst.attribute("left") = "0";
  5280. grd_visitlst.attribute("width") = attr_value ;
  5281. } else if(searchListFlag == "2") {
  5282. grd_reqlist.attribute("left") = "0";
  5283. grd_reqlist.attribute("width") = attr_value ;
  5284. } else if(searchListFlag == "3") {
  5285. grd_endlist.attribute("left") = "0";
  5286. grd_endlist.attribute("width") = attr_value ;
  5287. } else if(searchListFlag == "4") {
  5288. grd_explist.attribute("left") = "0";
  5289. grd_explist.attribute("width") = attr_value ;
  5290. }
  5291. }
  5292. //model.refresh();
  5293. ]]>
  5294. </script>
  5295. </button>
  5296. <caption id="cap_ym" style="left:1038px; top:81px; width:110px; height:20px; font-size:12pt; font-weight:bold; color:#3366ff; text-align:center; "/>
  5297. <caption id="caption34" class="search_name" visibility="hidden" style="left:710px; top:51px; width:99px; height:17px; ">구분 :</caption>
  5298. <output id="output23" ref="/root/main/procstat/procstatcnt/previsitlistcnt" class="output_search" style="left:215px; top:53px; width:50px; height:19px; text-align:center; "/>
  5299. <output id="output1" ref="/root/main/procstat/procstatcnt/reqlistcnt" class="output_search" style="left:345px; top:53px; width:50px; height:19px; text-align:center; "/>
  5300. <output id="output2" ref="/root/main/procstat/procstatcnt/visitlistcnt" class="output_search" style="left:460px; top:53px; width:50px; height:19px; text-align:center; "/>
  5301. <output id="output3" ref="/root/main/procstat/procstatcnt/endlistcnt" class="output_search" style="left:572px; top:53px; width:50px; height:19px; text-align:center; "/>
  5302. <button id="btn_regnewpatient" class="btn2_letter4" visibility="visible" style="left:484px; top:81px; width:64px; height:19px; ">
  5303. <caption>신환등록</caption>
  5304. <script type="javascript" ev:event="DOMActivate">
  5305. <![CDATA[
  5306. /*
  5307. model.resetInstanceNode("/root/main/patinfo");
  5308. model.resetInstanceNode("/root/main/newpatientinfo");
  5309. model.refresh() ;
  5310. grp_newpatientinput.visible = true;
  5311. btn_savenewpat.disabled = false ;
  5312. */
  5313. var flag = model.getValue("/root/send/careflag");
  5314. var kind = model.getValue("/root/send/kind");
  5315. // 방문간호일 경우 방문간호환자등록 화면이 뜨도록 수정 2009.01.28 정경화 추가
  5316. if ((model.getValue("/root/send/careflag") == 'V' ) &&(model.getValue("/root/send/kind") == '1' )){
  5317. var xpos = window.width / 2;
  5318. var ypos = window.height / 2;
  5319. modal("SPMNF00600", "", "", "", "SPMNF00600", "/root/main/patinfo/patinforesult", "/root/temp/transinfo/parameter");
  5320. //alert('a');
  5321. //0. 진행상태 : 당일방문예정, 미확정, 진행, 종결 카운트 조회
  5322. submit("TRMNF00115");
  5323. //본당인 경우는 신규등록 팝업 화면 뜨도록
  5324. } else {
  5325. model.resetInstanceNode("/root/main/patinfo");
  5326. model.resetInstanceNode("/root/main/newpatientinfo");
  5327. model.refresh() ;
  5328. grp_newpatientinput.visible = true;
  5329. btn_savenewpat.disabled = false ;
  5330. //alert('b');
  5331. }
  5332. //alert('c');
  5333. ]]>
  5334. </script>
  5335. </button>
  5336. <input id="ipt_pidsearch" ref="/root/main/condition/pid" class="input_search" autonext="false" style="left:56px; top:108px; width:66px; height:19px; ">
  5337. <script type="javascript" ev:event="onkeyup">
  5338. <![CDATA[
  5339. if(event.keyCode == 13) {
  5340. inputEnterKey("btn_pid", "DOMActivate");
  5341. model.resetInstanceNode("/root/main/condition/pid");
  5342. ipt_pidsearch.refresh();
  5343. }
  5344. ]]>
  5345. </script>
  5346. </input>
  5347. <button id="btn_pid" class="icon_search" visibility="hidden" style="left:106px; top:109px; width:16px; height:16px; ">
  5348. <caption/>
  5349. <script type="javascript" ev:event="DOMActivate">
  5350. <![CDATA[
  5351. //searchListFlag = "1"; // Default "1" - 당일방문예정자 리스트
  5352. //searchListFlag = "2"; // "2" - 미확정 리스트
  5353. //searchListFlag = "3"; // "3" - 종결환자리스트
  5354. //searchListFlag = "4"; // "4" - 만료환자리스트
  5355. //searchListFlag = "5"; // "5" - 진행환자리스트
  5356. var sGrid = "";
  5357. if ( searchListFlag == "1" || searchListFlag == "5" ){
  5358. sGrid = grd_visitlst
  5359. }
  5360. if ( searchListFlag == "2" ){
  5361. sGrid = grd_reqlist
  5362. }
  5363. if ( searchListFlag == "3" ){
  5364. sGrid = grd_endlist
  5365. }
  5366. if ( searchListFlag == "4" ){
  5367. sGrid = grd_explist
  5368. }
  5369. var row = fFindRow(model.getValue("/root/main/condition/pid"), sGrid.colRef("pid"));
  5370. sGrid.topRow = row;
  5371. if(row > 0) {
  5372. ipt_pidsearch.value = "";
  5373. ipt_patnm.value = "";
  5374. }
  5375. //model.refresh();
  5376. ]]>
  5377. </script>
  5378. </button>
  5379. <line id="line7" class="line_2" style="x1:-1px; y1:73px; x2:297px; y2:73px; "/>
  5380. <line id="line9" class="line_2" style="x1:-1px; y1:49px; x2:297px; y2:49px; "/>
  5381. <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; ">
  5382. <choices>
  5383. <itemset nodeset="/root/init/M0524/M0524">
  5384. <label ref="cdnm"/>
  5385. <value ref="cdid"/>
  5386. </itemset>
  5387. </choices>
  5388. <script type="javascript" ev:event="xforms-value-changed">
  5389. <![CDATA[
  5390. // 방문간호일 경우 신환등록버튼 활성화 2009.01.28 정경화 추가
  5391. /**** 구분선택시 신환등록, 방문계약 버튼 컨트롤 수정 2009.06.17 hhm
  5392. 병원 - 전체: 버튼없음
  5393. 병원- 가정간호 : 버튼 없음
  5394. 병원 - 방문간호 : 방문계약
  5395. 본당 - 전체: 신환등록
  5396. 본당 - 가정간호: 신환등록
  5397. 본당 - 방문간호: 버튼없음
  5398. **********/
  5399. fSelCareflag();
  5400. btn_search.dispatch("DOMActivate");
  5401. ]]>
  5402. </script>
  5403. </select1>
  5404. <button id="btn_dzoom" class="btn5_letter4" style="left:406px; top:81px; width:64px; height:19px; ">
  5405. <caption>확대보기</caption>
  5406. <script type="javascript" ev:event="DOMActivate">
  5407. <![CDATA[
  5408. var attr_value ;
  5409. if ( btn_dzoom.attribute("text") == "확대보기" ) {
  5410. btn_dzoom.attribute("text") = "기본보기";
  5411. caption11.attribute("height") = "26";
  5412. attr_value = "956";
  5413. //attr_value = "1012";
  5414. grup_patinfo.visible= false;
  5415. grd_patvisitlst.attribute("left") = "236";
  5416. grd_patvisitlst.attribute("width") = attr_value ;
  5417. caption11.attribute("width") = attr_value ;
  5418. } else {
  5419. btn_dzoom.attribute("text") = "확대보기";
  5420. attr_value = "235";
  5421. grup_patinfo.visible= true;
  5422. caption11.attribute("height") = "23" ;
  5423. caption11.attribute("width") = attr_value ;
  5424. grd_patvisitlst.attribute("left") = "236";
  5425. grd_patvisitlst.attribute("width") = attr_value ;
  5426. }
  5427. //model.refresh();
  5428. ]]>
  5429. </script>
  5430. </button>
  5431. <caption id="caption11" class="cell_1" style="left:236px; top:106px; width:232px; height:23px; text-align:center; "/>
  5432. <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; "/>
  5433. <output id="opt_patname" ref="/root/main/visitinfo/hngnm" class="output_fix" style="left:326px; top:108px; width:73px; height:19px; text-align:center; "/>
  5434. <output id="opt_sexage" ref="/root/main/visitinfo/sex" class="output_fix" style="left:404px; top:108px; width:60px; height:19px; text-align:center; "/>
  5435. <caption id="cap_careflagnm" visibility="hidden" style="left:899px; top:83px; width:115px; height:14px; font-weight:bold; vertical-align:middle; ">가정간호/방문간호</caption>
  5436. <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; ">
  5437. <col ref="careflag" style="text-align:center; "/>
  5438. <col ref="procstatus" visibility="hidden" style="text-align:center; "/>
  5439. <col ref="pid" style="text-align:center; "/>
  5440. <col ref="hngnm" style="text-align:right; "/>
  5441. <col ref="sex" style="text-align:center; "/>
  5442. <col ref="diaghngnm" visibility="hidden" style="text-align:left; "/>
  5443. <col ref="reqdeptnm" visibility="hidden" style="text-align:center; "/>
  5444. <col ref="reqdrnm" visibility="hidden" style="text-align:center; "/>
  5445. <col ref="reqdd" visibility="hidden" format="yyyy-mm-dd" style="left:517px; top:32px; width:120px; height:23px; text-align:center; "/>
  5446. <col ref="endreason" visibility="hidden" style="text-align:center; "/>
  5447. <col ref="enddd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  5448. <col ref="churchnm" type="combo" visibility="hidden" style="text-align:center; ">
  5449. <choices>
  5450. <itemset nodeset="/root/item/church/churchlist">
  5451. <label ref="churchnm"/>
  5452. <value ref="churchcd"/>
  5453. </itemset>
  5454. </choices>
  5455. </col>
  5456. <col ref="kind" visibility="hidden" style="text-align:center; "/>
  5457. <col ref="fromdd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  5458. <col ref="todd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  5459. <col ref="visitcnt" visibility="hidden" style="text-align:center; "/>
  5460. <col ref="diagcd" visibility="hidden" style="text-align:center; "/>
  5461. <col ref="reqdeptcd" visibility="hidden" style="text-align:center; "/>
  5462. <col ref="reqdrid" visibility="hidden" style="text-align:center; "/>
  5463. <col ref="formrecseq" visibility="hidden" style="text-align:center; "/>
  5464. <col ref="rereqyn" visibility="hidden" style="text-align:center; "/>
  5465. <col ref="patcareflag" visibility="hidden" style="text-align:center; "/>
  5466. <col ref="orddd" visibility="hidden" style="text-align:center; "/>
  5467. <col ref="cretno" visibility="hidden" style="text-align:center; "/>
  5468. <col ref="vorddd" visibility="hidden" style="text-align:center; "/>
  5469. <col ref="ordtype" visibility="hidden"/>
  5470. <script type="javascript" ev:event="onclick">
  5471. <![CDATA[
  5472. if(isDataCell()) {
  5473. delPatientInfos(); //화면상단정보 삭제
  5474. fClear();
  5475. var cur_row = grd_endlist.row;
  5476. if ( cur_row > 0 ) {
  5477. model.setValue("/root/send/pid", model.getValue("/root/main/grd_endlist/endlist["+cur_row+"]/pid"));
  5478. model.setValue("/root/send/inptdt", model.getValue("/root/main/grd_endlist/endlist["+cur_row+"]/inptdt"));
  5479. model.setValue("/root/send/instcd", model.getValue("/root/main/grd_endlist/endlist["+cur_row+"]/instcd"));
  5480. model.setValue("/root/send/patcareflag", model.getValue("/root/main/grd_endlist/endlist["+cur_row+"]/patcareflag"));
  5481. model.setValue("/root/send/vorddd", model.getValue("/root/main/grd_endlist/endlist["+cur_row+"]/orddd"));
  5482. model.setValue("/root/main/visitinfo/pid", model.getValue("/root/main/grd_endlist/endlist["+cur_row+"]/pid"));
  5483. model.setValue("/root/main/visitinfo/inptdt", model.getValue("/root/main/grd_endlist/endlist["+cur_row+"]/inptdt"));
  5484. model.setValue("/root/main/visitinfo/instcd", model.getValue("/root/main/grd_endlist/endlist["+cur_row+"]/instcd"));
  5485. model.setValue("/root/main/visitinfo/hngnm", model.getValue("/root/main/grd_endlist/endlist["+cur_row+"]/hngnm"));
  5486. model.setValue("/root/main/visitinfo/sex", model.getValue("/root/main/grd_endlist/endlist["+cur_row+"]/sex"));
  5487. }
  5488. // 환자선택시 환자별 histoy리스트 조회
  5489. submit("TRMNF00131");
  5490. }
  5491. ]]>
  5492. </script>
  5493. <script type="javascript" ev:event="onmousedown">
  5494. <![CDATA[
  5495. /*
  5496. setPopupMenu("grd_endlist", false, "/root/codedata/popupmenu/endpaper/item", "name", "func");
  5497. */
  5498. ]]>
  5499. </script>
  5500. <script type="javascript" ev:event="DOMFocusOut">
  5501. <![CDATA[
  5502. initPopupMenu();
  5503. ]]>
  5504. </script>
  5505. <script type="javascript" ev:event="onaftersort">
  5506. <![CDATA[
  5507. grd_endlist.gridToInstance();
  5508. ]]>
  5509. </script>
  5510. </datagrid>
  5511. <button id="button1" class="btn2_letter5" visibility="hidden" style="left:1037px; top:57px; width:75px; height:19px; ">
  5512. <caption>진단명 생성</caption>
  5513. <script type="javascript" ev:event="DOMActivate">
  5514. <![CDATA[
  5515. fOnClickDiagCreate();
  5516. ]]>
  5517. </script>
  5518. </button>
  5519. <button id="btn_patsearch" class="icon_search" style="left:245px; top:85px; width:16px; height:16px; ">
  5520. <caption/>
  5521. <script type="javascript" ev:event="DOMActivate">
  5522. <![CDATA[modal("SMMNF00700", "", "", "", "SMMNF00700", "", "");]]>
  5523. </script>
  5524. </button>
  5525. <group id="grup_patinfo" style="left:470px; top:100px; width:720px; height:675px; ">
  5526. <output id="output29" ref="/root/main/patinfo/patinforesult/insucd" class="output_fix" style="left:169px; top:119px; width:57px; height:19px; text-align:center; "/>
  5527. <output id="output28" ref="/root/main/patinfo/patinforesult/insukind" class="output_fix" style="left:169px; top:78px; width:57px; height:19px; text-align:center; "/>
  5528. <caption id="caption56" class="cell_1" style="left:53px; top:119px; width:114px; height:20px; font-family:돋움; text-align:left; vertical-align:middle; ">보험자기호</caption>
  5529. <caption id="caption55" class="cell_1" style="left:53px; top:77px; width:114px; height:20px; font-family:돋움; text-align:left; vertical-align:middle; ">보험유형</caption>
  5530. <caption id="caption66" class="cell_1" style="left:53px; top:161px; width:114px; height:20px; font-family:돋움; text-align:left; vertical-align:middle; ">피보험자 주민번호</caption>
  5531. <caption id="caption65" class="cell_1" style="left:53px; top:140px; width:114px; height:20px; font-family:돋움; text-align:left; vertical-align:middle; ">피보관계/피보성명</caption>
  5532. <output id="output36" ref="/root/main/patinfo/patinforesult/insucdnm" class="output_fix" style="left:229px; top:119px; width:186px; height:19px; text-align:center; "/>
  5533. <caption id="caption64" class="cell_1" style="left:53px; top:98px; width:114px; height:20px; font-family:돋움; text-align:left; vertical-align:middle; ">보험증번호</caption>
  5534. <output id="output35" ref="/root/main/patinfo/patinforesult/insukindnm" class="output_fix" style="left:229px; top:78px; width:186px; height:19px; text-align:center; "/>
  5535. <output id="output34" ref="/root/main/patinfo/patinforesult/insdrrgstno" class="output_fix" style="left:169px; top:161px; width:246px; height:19px; text-align:center; "/>
  5536. <output id="output33" ref="/root/main/patinfo/patinforesult/insdrelanm" class="output_fix" style="left:229px; top:140px; width:58px; height:19px; text-align:center; "/>
  5537. <line id="line8" class="line_3" style="x1:419px; y1:479px; x2:715px; y2:479px; "/>
  5538. <caption id="caption92" class="cell_1" style="left:603px; top:529px; width:33px; height:71px; font-family:돋움; text-align:center; vertical-align:middle; ">
  5539. <![CDATA[방
  5540. 호]]>
  5541. </caption>
  5542. <caption id="caption70" style="left:698px; top:341px; width:17px; height:19px; vertical-align:middle; ">회</caption>
  5543. <output id="output4" ref="/root/main/patinfo/outmedinfo/lusernm" class="output_fix" style="left:634px; top:620px; width:71px; height:19px; text-align:center; "/>
  5544. <output id="output41" ref="/root/main/patinfo/outmedinfo/fusernm" class="output_fix" style="left:634px; top:645px; width:71px; height:19px; text-align:center; "/>
  5545. <input id="ipt_hvisitpridtimes" ref="/root/main/visitinfo/visitpridtimes" class="input_default" style="left:672px; top:298px; width:25px; height:19px; text-align:right; "/>
  5546. <output id="output30" ref="/root/main/patinfo/patinforesult/insdnm" class="output_fix" style="left:290px; top:140px; width:125px; height:19px; text-align:center; "/>
  5547. <output id="output20" ref="/root/main/patinfo/visitaccount/monvisitcnt" class="output_fix" style="left:556px; top:530px; width:42px; height:19px; text-align:right; "/>
  5548. <output id="output5" ref="/root/main/patinfo/visitaccount/totvisitcnt" class="output_fix" style="left:556px; top:578px; width:42px; height:19px; text-align:right; "/>
  5549. <caption id="caption93" class="cell_1" style="left:637px; top:529px; width:33px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">당월</caption>
  5550. <button id="btn_savecycle" class="btn5_letter2" style="left:668px; top:270px; width:42px; height:19px; ">
  5551. <caption>저장</caption>
  5552. <script type="javascript" ev:event="DOMActivate">
  5553. <![CDATA[
  5554. // 방문주기 저장(UPDATE)
  5555. submit("TXMNF00101");
  5556. ]]>
  5557. </script>
  5558. </button>
  5559. <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; ">
  5560. <choices>
  5561. <item>
  5562. <label>월</label>
  5563. <value>1</value>
  5564. </item>
  5565. <item>
  5566. <label>화</label>
  5567. <value>2</value>
  5568. </item>
  5569. <item>
  5570. <label>수</label>
  5571. <value>3</value>
  5572. </item>
  5573. <item>
  5574. <label>목</label>
  5575. <value>4</value>
  5576. </item>
  5577. <item>
  5578. <label>금</label>
  5579. <value>5</value>
  5580. </item>
  5581. <item>
  5582. <label>토</label>
  5583. <value>6</value>
  5584. </item>
  5585. </choices>
  5586. </select>
  5587. <output id="output31" ref="/root/main/patinfo/patinforesult/insuno" class="output_fix" style="left:169px; top:98px; width:246px; height:19px; text-align:center; "/>
  5588. <input id="input8" ref="/root/main/patinfo/patinforesult/cphone2" class="input_default" maxlength="13" style="left:319px; top:54px; width:97px; height:19px; ">
  5589. <script type="javascript" ev:event="DOMFocusOut">
  5590. <![CDATA[
  5591. if( !isNull(model.getValue("/root/main/patinfo/patinforesult/cphone2")) && model.getValue("/root/main/patinfo/patinforesult/cphone2") != "-") {
  5592. if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/cphone2")) < 10 ||
  5593. getStringLength(model.getValue("/root/main/patinfo/patinforesult/cphone2")) > 13 ||
  5594. isMobileTelNo(model.getValue("/root/main/patinfo/patinforesult/cphone2").substr(0, 2)) == false) {
  5595. messageBox("올바른 휴대전화번호를","C001"); // 입력하십시오!
  5596. model.setFocus("input8") ;
  5597. return ;
  5598. }
  5599. if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/cphone2")) == 10) {
  5600. model.setValue("/root/main/patinfo/patinforesult/cphone2", input8.value.substr(0,3) + "-" +
  5601. input8.value.substr(3,3) + "-" +
  5602. input8.value.substr(6,4)) ;
  5603. } else if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/cphone2")) == 11) {
  5604. model.setValue("/root/main/patinfo/patinforesult/cphone2", input8.value.substr(0,3) + "-" +
  5605. input8.value.substr(3,4) + "-" +
  5606. input8.value.substr(7,4)) ;
  5607. }
  5608. //model.refresh();
  5609. input8.refresh();
  5610. }
  5611. ]]>
  5612. </script>
  5613. <script type="javascript" ev:event="onkeyup">
  5614. <![CDATA[
  5615. if((event.keyCode <48 || (event.keyCode > 57 && event.keyCode < 96 ) || event.keyCode > 105) && (event.keyCode != 8 && event.keyCode != 13 && event.keyCode != 46))
  5616. {
  5617. messageBox("숫자만","C001"); // 입력하십시오!
  5618. model.setFocus("input8") ;
  5619. return ;
  5620. }
  5621. ]]>
  5622. </script>
  5623. </input>
  5624. <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; "/>
  5625. <output id="output21" ref="/root/main/patinfo/visitaccount/vmonvisitcnt" class="output_fix" style="left:672px; top:530px; width:40px; height:19px; text-align:right; "/>
  5626. <caption id="caption94" class="cell_1" style="left:637px; top:553px; width:33px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">당해</caption>
  5627. <output id="output32" ref="/root/main/patinfo/patinforesult/insdrela" class="output_fix" style="left:169px; top:140px; width:58px; height:19px; text-align:center; "/>
  5628. <input id="input9" ref="/root/main/patinfo/patinforesult/cphone1owner" class="input_default" style="left:53px; top:30px; width:50px; height:19px; "/>
  5629. <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; ">
  5630. <col ref="insukind" visibility="visible" style="text-align:center; "/>
  5631. <col ref="insukindnm" visibility="visible" style="left:55px; top:32px; width:70px; height:23px; text-align:center; "/>
  5632. <col ref="insuno" visibility="visible" style="text-align:center; "/>
  5633. <col ref="insucd" visibility="visible" style="text-align:center; "/>
  5634. <col ref="insucdnm" style="text-align:center; "/>
  5635. <col ref="insdrela" style="text-align:center; "/>
  5636. <col ref="insdrelanm" style="text-align:center; "/>
  5637. <col ref="insdnm" style="text-align:center; "/>
  5638. <col ref="insdrrgstno" visibility="visible" style="text-align:left; "/>
  5639. <col ref="seqno" visibility="hidden"/>
  5640. </datagrid>
  5641. <caption id="caption84" class="cell_1" style="left:487px; top:505px; width:33px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">가정</caption>
  5642. <caption id="caption95" class="cell_1" style="left:637px; top:577px; width:33px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">총</caption>
  5643. <line id="line10" class="line_1" style="x1:0px; y1:613px; x2:705px; y2:613px; "/>
  5644. <caption id="caption40" class="cell_1" style="left:175px; top:619px; width:96px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">만료일</caption>
  5645. <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; "/>
  5646. <input id="input30" ref="/root/main/patinfo/patinforesult/address" class="input_default" style="left:167px; top:7px; width:249px; height:19px; text-align:left; "/>
  5647. <caption id="caption41" class="cell_1" style="left:419px; top:529px; width:67px; height:71px; font-family:돋움; text-align:center; vertical-align:middle; ">
  5648. <![CDATA[누적
  5649. 방문횟수]]>
  5650. </caption>
  5651. <caption id="caption85" class="cell_1" style="left:487px; top:481px; width:33px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">가정</caption>
  5652. <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; "/>
  5653. <line id="line12" class="line_3" style="x1:487px; y1:337px; x2:711px; y2:337px; "/>
  5654. <caption id="caption86" class="cell_1" style="left:603px; top:505px; width:33px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">방문</caption>
  5655. <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; "/>
  5656. <caption id="caption31" style="left:698px; top:298px; width:17px; height:19px; vertical-align:middle; ">회</caption>
  5657. <input id="input10" ref="/root/main/patinfo/patinforesult/cphone2owner" class="input_default" style="left:53px; top:54px; width:50px; height:19px; "/>
  5658. <caption id="caption87" class="cell_1" style="left:603px; top:481px; width:33px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">방문</caption>
  5659. <input id="input11" ref="/root/main/patinfo/patinforesult/zipcd2" class="input_default" style="left:114px; top:7px; width:50px; height:19px; "/>
  5660. <caption id="caption10" style="left:104px; top:7px; width:10px; height:20px; ">-</caption>
  5661. <caption id="caption21" class="cell_1" style="left:0px; top:5px; width:52px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">주소</caption>
  5662. <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; "/>
  5663. <output id="output47" ref="/root/main/patinfo/outmedinfo/fdepthngnm" class="output_fix" style="left:554px; top:645px; width:77px; height:19px; text-align:center; "/>
  5664. <line id="line13" class="line_3" style="x1:0px; y1:668px; x2:705px; y2:668px; "/>
  5665. <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; ">
  5666. <choices>
  5667. <item>
  5668. <label>월</label>
  5669. <value>1</value>
  5670. </item>
  5671. <item>
  5672. <label>화</label>
  5673. <value>2</value>
  5674. </item>
  5675. <item>
  5676. <label>수</label>
  5677. <value>3</value>
  5678. </item>
  5679. <item>
  5680. <label>목</label>
  5681. <value>4</value>
  5682. </item>
  5683. <item>
  5684. <label>금</label>
  5685. <value>5</value>
  5686. </item>
  5687. <item>
  5688. <label>토</label>
  5689. <value>6</value>
  5690. </item>
  5691. </choices>
  5692. </select>
  5693. <caption id="caption32" class="cell_1" style="left:487px; top:295px; width:33px; height:42px; font-family:돋움; text-align:left; vertical-align:middle; ">가정</caption>
  5694. <caption id="caption88" class="cell_1" style="left:487px; top:529px; width:33px; height:71px; font-family:돋움; text-align:center; vertical-align:middle; ">
  5695. <![CDATA[가
  5696. 호]]>
  5697. </caption>
  5698. <output id="output37" ref="/root/main/patinfo/visitaccount/vtotvisitcnt" class="output_fix" style="left:672px; top:578px; width:40px; height:19px; text-align:right; "/>
  5699. <caption id="caption44" class="cell_1" style="left:372px; top:619px; width:96px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">최종외래진료일</caption>
  5700. <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; ">
  5701. <col ref="pid" style="text-align:center; "/>
  5702. <col ref="visitdd" type="inputdate"/>
  5703. <col ref="inptdt" format="yyyy-mm-dd" style="text-align:center; "/>
  5704. <col ref="instcd" style="text-align:center; "/>
  5705. <col ref="careflagnm" style="text-align:center; "/>
  5706. <col ref="patcareflag" style="text-align:center; "/>
  5707. <script type="javascript" ev:event="onmousedown">
  5708. <![CDATA[
  5709. setPopupMenu("grd_previsitlist", false, "/root/codedata/popupmenu/grid/item", "name", "func");
  5710. ]]>
  5711. </script>
  5712. <script type="javascript" ev:event="DOMFocusOut">
  5713. <![CDATA[
  5714. initPopupMenu();
  5715. ]]>
  5716. </script>
  5717. </datagrid>
  5718. <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; "/>
  5719. <output id="output48" ref="/root/main/patinfo/outmedinfo/ldepthngnm" class="output_fix" style="left:554px; top:620px; width:77px; height:19px; text-align:center; "/>
  5720. <caption id="caption22" class="cell_1" style="left:105px; top:29px; width:59px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">전화번호</caption>
  5721. <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>
  5722. <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; "/>
  5723. <caption id="caption89" class="cell_1" style="left:521px; top:529px; width:33px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">당월</caption>
  5724. <output id="output38" ref="/root/main/patinfo/visitaccount/vyearvisitcnt" class="output_fix" style="left:672px; top:554px; width:40px; height:19px; text-align:right; "/>
  5725. <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; ">
  5726. <row>
  5727. <col class="color_sun" ref="sun" style="text-align:left; border-bottom-width:0px; "/>
  5728. <col ref="mon" style="text-align:left; border-bottom-width:0px; "/>
  5729. <col ref="tue" style="text-align:left; border-bottom-width:0px; "/>
  5730. <col ref="wed" style="text-align:left; border-bottom-width:0px; "/>
  5731. <col ref="thu" style="text-align:left; border-bottom-width:0px; "/>
  5732. <col ref="fri" style="text-align:left; border-bottom-width:0px; "/>
  5733. <col class="color_sat" ref="sat" style="text-align:left; border-bottom-width:0px; "/>
  5734. </row>
  5735. <row>
  5736. <col ref="sun_memo" type="input" style="border-top-width:0px; "/>
  5737. <col ref="mon_memo" type="input" style="border-top-width:0px; "/>
  5738. <col ref="tue_memo" type="input" style="border-top-width:0px; "/>
  5739. <col ref="wed_memo" type="input" style="border-top-width:0px; "/>
  5740. <col ref="thu_memo" type="input" style="border-top-width:0px; "/>
  5741. <col ref="fri_memo" type="input" style="border-top-width:0px; "/>
  5742. <col ref="sat_memo" type="input" style="border-top-width:0px; "/>
  5743. </row>
  5744. <script type="javascript" ev:event="onclick">
  5745. <![CDATA[
  5746. if(grd_calendar.isCell(event.target) && grd_calendar.row >= grd_calendar.fixedRows) {
  5747. model.setValue("/root/send/pid", "");
  5748. model.setValue("/root/send/inptdt", "");
  5749. model.setValue("/root/send/instcd", "");
  5750. //model.refresh();
  5751. //setCellColor(grd_calendar);
  5752. var row = grd_calendar.mouseRow;
  5753. var col = grd_calendar.mouseCol;
  5754. var newcol;
  5755. var calDate;
  5756. var baseDate;
  5757. var searchDate;
  5758. baseDate = model.getValue("/root/send/visitdd");
  5759. if(col >=7) {
  5760. newcol = col - 7;
  5761. } else {
  5762. newcol = col;
  5763. }
  5764. calDate = grd_calendar.valueMatrix(row, newcol);
  5765. if(calDate.length < 2) {
  5766. searchDate = baseDate.substr(0, 6) + "0" + calDate;
  5767. } else {
  5768. searchDate = baseDate.substr(0, 6) + calDate;
  5769. }
  5770. //alert("searchDate ::: " + searchDate);
  5771. model.setValue("/root/send/visitdd", searchDate);
  5772. //model.refresh();
  5773. fClear();
  5774. fDisableEnableBtn(searchListFlag) ;
  5775. if ( !fExcuteSearch(searchListFlag)){
  5776. return;
  5777. }
  5778. if(searchListFlag == "4") {
  5779. // 7.일자별 만료건수 조회
  5780. submit("TRMNF00121");
  5781. } else {
  5782. // 7.일자별 방문(예정)건수 조회
  5783. submit("TRMNF00107");
  5784. }
  5785. // 달력에 일자별 방문(예정)건수 대입
  5786. //fDataDisplayPat();
  5787. fDataDisplay();
  5788. model.removeNodeset("/root/main/procstat/procstatcnt");
  5789. //model.refresh();
  5790. //0. 진행상태 : 당일방문예정, 미확정, 진행, 종결 카운트 조회
  5791. submit("TRMNF00115");
  5792. }
  5793. ]]>
  5794. </script>
  5795. <script type="javascript" ev:event="onrowchanged">
  5796. <![CDATA[
  5797. //setCellColor(grd_calendar);
  5798. ]]>
  5799. </script>
  5800. <script type="javascript" ev:event="oncolchanged">
  5801. <![CDATA[
  5802. //setCellColor(grd_calendar);
  5803. ]]>
  5804. </script>
  5805. </multilinegrid>
  5806. <line id="line15" class="line_1" style="x1:419px; y1:0px; x2:712px; y2:0px; "/>
  5807. <caption id="caption45" class="cell_1" style="left:372px; top:643px; width:96px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">최근외래예약일</caption>
  5808. <caption id="caption23" class="cell_1" style="left:105px; top:53px; width:59px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">전화번호</caption>
  5809. <caption id="caption78" class="cell_1" style="left:0px; top:77px; width:52px; height:104px; font-family:돋움; text-align:center; vertical-align:middle; ">보험</caption>
  5810. <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; "/>
  5811. <caption id="caption35" class="cell_1" style="left:0px; top:643px; width:75px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">최초 의뢰일</caption>
  5812. <caption id="caption24" class="cell_1" style="left:259px; top:29px; width:59px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">휴대전화</caption>
  5813. <caption id="caption47" class="cell_1" style="left:419px; top:505px; width:67px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">최근방문일</caption>
  5814. <output id="output18" ref="/root/main/patinfo/visitaccount/yearvisitcnt" class="output_fix" style="left:556px; top:554px; width:42px; height:19px; text-align:right; "/>
  5815. <caption id="caption14" class="cell_1" style="left:419px; top:295px; width:67px; height:85px; font-family:돋움; text-align:left; vertical-align:middle; ">방문주기</caption>
  5816. <caption id="caption5" class="cell_1" style="left:0px; top:619px; width:75px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">의뢰/지시일</caption>
  5817. <caption id="caption25" class="cell_1" style="left:259px; top:53px; width:59px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">휴대전화</caption>
  5818. <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>
  5819. <caption id="caption48" class="cell_1" style="left:419px; top:481px; width:67px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">최초방문일</caption>
  5820. <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; "/>
  5821. <input id="input1" ref="/root/main/patinfo/patinforesult/zipcd1" class="input_default" style="left:53px; top:7px; width:50px; height:19px; "/>
  5822. <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; ">
  5823. <choices>
  5824. <item>
  5825. <label>월1회</label>
  5826. <value>1</value>
  5827. </item>
  5828. <item>
  5829. <label>격주</label>
  5830. <value>2</value>
  5831. </item>
  5832. <item>
  5833. <label>주당</label>
  5834. <value>3</value>
  5835. </item>
  5836. </choices>
  5837. <script type="javascript" ev:event="onclick">
  5838. <![CDATA[
  5839. if (rdo_vvisitprid.value == 3) {
  5840. ipt_vvisitpridtimes.value = "";
  5841. ipt_vvisitpridtimes.disabled = false;
  5842. } else {
  5843. ipt_vvisitpridtimes.value = "";
  5844. ipt_vvisitpridtimes.disabled = true;
  5845. }
  5846. ]]>
  5847. </script>
  5848. </select1>
  5849. <line id="line3" class="line_1" style="x1:419px; y1:290px; x2:715px; y2:290px; "/>
  5850. <caption id="caption7" class="cell_1" style="left:419px; top:381px; width:67px; height:97px; font-family:돋움; vertical-align:middle; ">방문예정일</caption>
  5851. <input id="ipt_vvisitpridtimes" ref="/root/main/visitinfo/vvisitpridtimes" class="input_default" style="left:672px; top:341px; width:25px; height:19px; text-align:right; "/>
  5852. <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; ">
  5853. <choices>
  5854. <item>
  5855. <label>월1회</label>
  5856. <value>1</value>
  5857. </item>
  5858. <item>
  5859. <label>격주</label>
  5860. <value>2</value>
  5861. </item>
  5862. <item>
  5863. <label>주당</label>
  5864. <value>3</value>
  5865. </item>
  5866. </choices>
  5867. <script type="javascript" ev:event="onclick">
  5868. <![CDATA[
  5869. if (rdo_hvisitprid.value == 3) {
  5870. ipt_hvisitpridtimes.value = "";
  5871. ipt_hvisitpridtimes.disabled = false;
  5872. } else {
  5873. ipt_hvisitpridtimes.value = "";
  5874. ipt_hvisitpridtimes.disabled = true;
  5875. }
  5876. ]]>
  5877. </script>
  5878. </select1>
  5879. <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; ">
  5880. <col ref="visitdd1" format="yyyy-mm-dd" style="text-align:center; "/>
  5881. <col ref="visitflag1" style="text-align:center; "/>
  5882. <col ref="visitdd2" format="yyyy-mm-dd" style="text-align:center; "/>
  5883. <col ref="visitflag2" style="text-align:center; "/>
  5884. <script type="javascript" ev:event="onmousedown">
  5885. <![CDATA[
  5886. model.setFocus("grd_viewprevisitlist");
  5887. if(event.button == 3 && getStringLength(model.getValue("/root/main/visitinfo/pid")) != 0) {
  5888. if(searchListFlag == "2" || searchListFlag == "3" || searchListFlag == "4") {
  5889. messageBox("가정간호 미확정, 기간만료 또는 종결된 환자는 방문정보를 입력", "E001") ; // 할 수 없습니다.
  5890. return ;
  5891. }
  5892. window.setPopupMenu(true, "/root/codedata/popupmenu/grid/item", "name", "func", false);
  5893. gRow = grd_viewprevisitlist.mouseRow;
  5894. gCol = grd_viewprevisitlist.mouseCol;
  5895. //alert('1:'+gRow+'/'+gCol);
  5896. // 간호구분위해 4개에서 2개로 수정
  5897. if(gRow == 0) {
  5898. if(gCol == 0 || gCol == 1) {
  5899. gRow = gRow+1; // grd_previsitlist 의 Row로 환산
  5900. } else if(gCol == 2 || gCol == 3) {
  5901. gRow = gRow+2; // grd_previsitlist 의 Row로 환산
  5902. }
  5903. } else {
  5904. if(gCol == 0 || gCol == 1) {
  5905. gRow = ( gRow * 2 )+1;
  5906. } else if(gCol == 2 || gCol == 3) {
  5907. gRow = ( gRow * 2 )+2;
  5908. }
  5909. }
  5910. //alert('2:'+gRow);
  5911. gPid = model.getValue("/root/main/grd_previsitlist/previsitlist[" + gRow + "]/pid");
  5912. gInptdt = model.getValue("/root/main/grd_previsitlist/previsitlist[" + gRow + "]/inptdt");
  5913. gInstcd = model.getValue("/root/main/grd_previsitlist/previsitlist[" + gRow + "]/instcd");
  5914. gVisitdd = model.getValue("/root/main/grd_previsitlist/previsitlist[" + gRow + "]/visitdd");
  5915. gPatcareflag = model.getValue("/root/main/grd_previsitlist/previsitlist[" + gRow + "]/patcareflag");
  5916. }
  5917. //alert(gVisitdd);
  5918. ]]>
  5919. </script>
  5920. <script type="javascript" ev:event="DOMFocusOut">
  5921. <![CDATA[
  5922. initPopupMenu();
  5923. ]]>
  5924. </script>
  5925. </datagrid>
  5926. <caption id="caption39" class="cell_1" style="left:175px; top:643px; width:96px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">최종의뢰일</caption>
  5927. <input id="input3" ref="/root/main/patinfo/patinforesult/telno1" class="input_default" maxlength="13" style="left:165px; top:30px; width:90px; height:19px; ">
  5928. <script type="javascript" ev:event="DOMFocusOut">
  5929. <![CDATA[
  5930. if( !isNull(model.getValue("/root/main/patinfo/patinforesult/telno1")) && model.getValue("/root/main/patinfo/patinforesult/telno1") != "-") {
  5931. if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/telno1")) < 9 ||
  5932. getStringLength(model.getValue("/root/main/patinfo/patinforesult/telno1")) > 13 ||
  5933. isHomeTelNo(model.getValue("/root/main/patinfo/patinforesult/telno1").substr(0, 3)) == false) {
  5934. messageBox("지역번호 포함하여 올바른 전화번호를","C001"); // 입력하십시오!
  5935. model.setFocus("input3") ;
  5936. return ;
  5937. }
  5938. if(model.getValue("/root/main/patinfo/patinforesult/telno1").substr(0, 2) == "02") { // 서울 지역번호
  5939. if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/telno1")) == 9) {
  5940. model.setValue("/root/main/patinfo/patinforesult/telno1", input3.value.substr(0,2) + "-" +
  5941. input3.value.substr(2,3) + "-" +
  5942. input3.value.substr(5,4)) ;
  5943. } else if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/telno1")) == 10) {
  5944. model.setValue("/root/main/patinfo/patinforesult/telno1", input3.value.substr(0,2) + "-" +
  5945. input3.value.substr(2,4) + "-" +
  5946. input3.value.substr(6,4)) ;
  5947. }
  5948. } else {
  5949. if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/telno1")) == 10) {
  5950. model.setValue("/root/main/patinfo/patinforesult/telno1", input3.value.substr(0,3) + "-" +
  5951. input3.value.substr(3,3) + "-" +
  5952. input3.value.substr(6,4)) ;
  5953. } else if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/telno1")) == 11) {
  5954. model.setValue("/root/main/patinfo/patinforesult/telno1", input3.value.substr(0,3) + "-" +
  5955. input3.value.substr(3,4) + "-" +
  5956. input3.value.substr(7,4)) ;
  5957. }
  5958. }
  5959. input3.refresh();
  5960. //model.refresh();
  5961. }
  5962. ]]>
  5963. </script>
  5964. <script type="javascript" ev:event="onkeyup">
  5965. <![CDATA[
  5966. if((event.keyCode <48 || (event.keyCode > 57 && event.keyCode < 96 ) || event.keyCode > 105) && (event.keyCode != 8 && event.keyCode != 13 && event.keyCode != 46)) {
  5967. messageBox("숫자만","C001"); // 입력하십시오!
  5968. model.setFocus("input3") ;
  5969. return ;
  5970. }
  5971. ]]>
  5972. </script>
  5973. </input>
  5974. <line id="line4" class="line_3" style="x1:418px; y1:257px; x2:714px; y2:257px; "/>
  5975. <line id="line5" class="line_3" style="x1:419px; y1:600px; x2:713px; y2:600px; "/>
  5976. <caption id="caption9" class="tit_2" style="left:419px; top:273px; width:157px; height:13px; ">
  5977. <![CDATA[개별 가정간호 방문정보]]>
  5978. <script type="javascript" ev:event="onclick">
  5979. <![CDATA[
  5980. fPreVisitDDInsert();
  5981. ]]>
  5982. </script>
  5983. </caption>
  5984. <caption id="caption18" class="cell_1" style="left:487px; top:338px; width:33px; height:42px; font-family:돋움; text-align:left; vertical-align:middle; ">방문</caption>
  5985. <input id="input4" ref="/root/main/patinfo/patinforesult/telno2" class="input_default" maxlength="13" style="left:165px; top:54px; width:90px; height:19px; ">
  5986. <script type="javascript" ev:event="DOMFocusOut">
  5987. <![CDATA[
  5988. if( !isNull(model.getValue("/root/main/patinfo/patinforesult/telno2")) && model.getValue("/root/main/patinfo/patinforesult/telno2") != "-") {
  5989. if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/telno2")) < 9 ||
  5990. getStringLength(model.getValue("/root/main/patinfo/patinforesult/telno2")) > 13 ||
  5991. isHomeTelNo(model.getValue("/root/main/patinfo/patinforesult/telno2").substr(0, 3)) == false) {
  5992. messageBox("지역번호 포함하여 올바른 전화번호를","C001"); // 입력하십시오!
  5993. model.setFocus("input4") ;
  5994. return ;
  5995. }
  5996. if(model.getValue("/root/main/patinfo/patinforesult/telno2").substr(0, 2) == "02") { // 서울 지역번호
  5997. if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/telno2")) == 9) {
  5998. model.setValue("/root/main/patinfo/patinforesult/telno2", input4.value.substr(0,2) + "-" +
  5999. input4.value.substr(2,3) + "-" +
  6000. input4.value.substr(5,4)) ;
  6001. } else if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/telno2")) == 10) {
  6002. model.setValue("/root/main/patinfo/patinforesult/telno2", input4.value.substr(0,2) + "-" +
  6003. input4.value.substr(2,4) + "-" +
  6004. input4.value.substr(6,4)) ;
  6005. }
  6006. } else {
  6007. if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/telno2")) == 10) {
  6008. model.setValue("/root/main/patinfo/patinforesult/telno2", input4.value.substr(0,3) + "-" +
  6009. input4.value.substr(3,3) + "-" +
  6010. input4.value.substr(6,4)) ;
  6011. } else if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/telno2")) == 11) {
  6012. model.setValue("/root/main/patinfo/patinforesult/telno2", input4.value.substr(0,3) + "-" +
  6013. input4.value.substr(3,4) + "-" +
  6014. input4.value.substr(7,4)) ;
  6015. }
  6016. }
  6017. input4.refresh();
  6018. // model.refresh();
  6019. }
  6020. ]]>
  6021. </script>
  6022. <script type="javascript" ev:event="onkeyup">
  6023. <![CDATA[
  6024. if((event.keyCode <48 || (event.keyCode > 57 && event.keyCode < 96 ) || event.keyCode > 105) && (event.keyCode != 8 && event.keyCode != 13 && event.keyCode != 46)) {
  6025. messageBox("숫자만","C001"); // 입력하십시오!
  6026. model.setFocus("input4") ;
  6027. return ;
  6028. }
  6029. ]]>
  6030. </script>
  6031. </input>
  6032. <caption id="caption90" class="cell_1" style="left:521px; top:553px; width:33px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">당해</caption>
  6033. <line id="line6" class="line_1" style="x1:0px; y1:0px; x2:421px; y2:0px; "/>
  6034. <caption id="caption19" class="tit_2" style="left:0px; top:596px; width:157px; height:13px; ">관리정보</caption>
  6035. <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; "/>
  6036. <button id="btn_addr" class="icon_search" style="left:31px; top:9px; width:16px; height:16px; ">
  6037. <caption/>
  6038. <script type="javascript" ev:event="DOMActivate">
  6039. <![CDATA[
  6040. zbcfOpenZipCodeList("combination", "", "/root/main/patinfo/patinforesult/zipcd1", "/root/main/patinfo/patinforesult/zipcd2", "/root/main/patinfo/patinforesult/zipcdseq", "/root/main/patinfo/patinforesult/address");
  6041. model.setFocus("input30"); // 주소입력란 포커스On
  6042. ]]>
  6043. </script>
  6044. </button>
  6045. <caption id="caption91" class="cell_1" style="left:521px; top:577px; width:33px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">총</caption>
  6046. <input id="input6" ref="/root/main/patinfo/patinforesult/cphone1" class="input_default" maxlength="13" style="left:319px; top:30px; width:97px; height:19px; ">
  6047. <script type="javascript" ev:event="DOMFocusOut">
  6048. <![CDATA[
  6049. if( !isNull(model.getValue("/root/main/patinfo/patinforesult/cphone1")) && model.getValue("/root/main/patinfo/patinforesult/cphone1") != "-") {
  6050. if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/cphone1")) < 10 ||
  6051. getStringLength(model.getValue("/root/main/patinfo/patinforesult/cphone1")) > 13 ||
  6052. isMobileTelNo(model.getValue("/root/main/patinfo/patinforesult/cphone1").substr(0, 2)) == false) {
  6053. messageBox("올바른 휴대전화번호를","C001"); // 입력하십시오!
  6054. model.setFocus("input6") ;
  6055. return ;
  6056. }
  6057. if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/cphone1")) == 10) {
  6058. model.setValue("/root/main/patinfo/patinforesult/cphone1", input6.value.substr(0,3) + "-" +
  6059. input6.value.substr(3,3) + "-" +
  6060. input6.value.substr(6,4)) ;
  6061. } else if(getStringLength(model.getValue("/root/main/patinfo/patinforesult/cphone1")) == 11) {
  6062. model.setValue("/root/main/patinfo/patinforesult/cphone1", input6.value.substr(0,3) + "-" +
  6063. input6.value.substr(3,4) + "-" +
  6064. input6.value.substr(7,4)) ;
  6065. }
  6066. input6.refresh();
  6067. // model.refresh();
  6068. }
  6069. ]]>
  6070. </script>
  6071. <script type="javascript" ev:event="onkeyup">
  6072. <![CDATA[
  6073. if((event.keyCode <48 || (event.keyCode > 57 && event.keyCode < 96 ) || event.keyCode > 105) && (event.keyCode != 8 && event.keyCode != 13 && event.keyCode != 46)) {
  6074. messageBox("숫자만","C001"); // 입력하십시오!
  6075. model.setFocus("input6") ;
  6076. return ;
  6077. }
  6078. ]]>
  6079. </script>
  6080. </input>
  6081. <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; ">
  6082. <input id="ipt_inputschedule" ref="/root/send/inputvisitdd" class="input_search" inputtype="date" style="left:73px; top:28px; width:100px; height:19px; "/>
  6083. <line id="line28" class="line_1" style="x1:0px; y1:22px; x2:173px; y2:22px; "/>
  6084. <caption id="caption8" class="tit_2" style="left:1px; top:5px; width:127px; height:13px; ">방문예정일 등록</caption>
  6085. <caption id="caption51" class="cell_1" style="left:0px; top:27px; width:72px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">방문예정일</caption>
  6086. <button id="btn_saveschedule" class="btn5_letter2" style="left:44px; top:59px; width:42px; height:19px; ">
  6087. <caption>저장</caption>
  6088. <script type="javascript" ev:event="DOMActivate">
  6089. <![CDATA[
  6090. if(getStringLength(model.getValue("/root/main/visitinfo/pid")) == 0) {
  6091. messageBox("등록번호를 ", "C001") ; // 입력하십시오!
  6092. return ;
  6093. }
  6094. //환자정보가 설정되지 않은 상태에서 시행하고자 할 경우 블로킹_20091028_SMY
  6095. if (isNull(model.getValue("/root/main/patinfo/patinforesult/pid"))){
  6096. messageBox("환자정보 설정 후 방문예정일 등록하시기 바랍니다. ", "E") ;
  6097. return ;
  6098. }
  6099. if(ipt_inputschedule.value < getCurrentDate()) {
  6100. messageBox("과거일자를 방문예정일로 등록", "E001") ; // 할 수 없습니다.
  6101. return ;
  6102. }
  6103. if(fIsPreVisitDay(ipt_inputschedule.value)) {
  6104. messageBox("해당 방문예정일이 이미 존재하므로 처리","E001"); // 할 수 없습니다.
  6105. return ;
  6106. }
  6107. if(opt_iuflag.label == "U" && getStringLength(gVisitdd) == 0 ) {
  6108. messageBox("변경할 방문예정일이", "I004", "방문예정일을 선택하십시오."); // 없습니다.
  6109. return ;
  6110. }
  6111. var row = grd_visitlst,row;
  6112. model.setValue("/root/send/pid", gPid); // pid
  6113. model.setValue("/root/send/inptdt", gInptdt); // inptdt
  6114. model.setValue("/root/send/instcd", gInstcd); // /root/send/instcd
  6115. model.setValue("/root/send/pid", model.getValue("/root/main/visitinfo/pid")); // 환자등록번호
  6116. model.setValue("/root/send/patcareflag", model.getValue("/root/main/visitinfo/patcareflag")); // 간호구분(H:가정간호 , V:방문간호)
  6117. //var sss = model.getValue("/root/main/visitinfo/patcareflag");
  6118. //alert(sss);
  6119. if((model.getValue("/root/send/inptdt") == "") && (model.getValue("/root/main/visitinfo/inptdt") != "")){
  6120. model.setValue("/root/send/inptdt", model.getValue("/root/main/visitinfo/inptdt")); // 환자입력일시
  6121. }else if((model.getValue("/root/send/inptdt") == "") && (model.getValue("/root/main/visitinfo/inptdt") == "") && (model.getValue("/root/main/patinfo/patinforesult/inptdt") != "")){
  6122. model.setValue("/root/send/inptdt", model.getValue("/root/main/patinfo/patinforesult/inptdt")); // 환자입력일시
  6123. }else if((model.getValue("/root/send/inptdt") == "") && (model.getValue("/root/main/visitinfo/inptdt") == "") && (model.getValue("/root/main/patinfo/patinforesult/inptdt") == "")){
  6124. model.setValue("/root/send/inptdt", model.getValue("/root/main/grd_visitlst/visitlist[" + row + "]/inptdt")); // 환자입력일시
  6125. }
  6126. model.setValue("/root/send/inputvisitdd", ipt_inputschedule.value); // 등록 방문예정일
  6127. //model.refresh();
  6128. submit("TRMNF00119");
  6129. if(model.getValue("/root/main/existinfo/existordddinfo/existordddyn") == "Y") {
  6130. var answer = messageBox("방문예정일에 환자의 외래예약 건이 존재합니다. ", "Q002") ; // 저장 하시겠습니까?
  6131. if(answer != 6) // vbYes가 아니면
  6132. return ;
  6133. }
  6134. // 7.개별 가정간호 방문조회 - 방문예정일 조회
  6135. model.resetInstanceNode("/root/main/grd_previsitlist");
  6136. model.resetInstanceNode("/root/main/visitcounts");
  6137. model.removeNodeset("/root/main/grd_viewprevisitlist");
  6138. // 저장 데이터 세팅(콤보 박스 값)
  6139. model.setValue("/root/send/visitdd", model.getValue("/root/send/visitdd")); // visitdd 조회를 위한 방문일자
  6140. model.setValue("/root/send/mode", model.getValue("/root/send/mode")); // visitdd 조회를 위한 모드
  6141. model.setValue("/root/send/kind", model.getValue("/root/send/kind")); // /root/send/kind 조회를 위한 모드
  6142. model.setValue("/root/send/pid", gPid); // pid
  6143. model.setValue("/root/send/inptdt", gInptdt); // inptdt
  6144. model.setValue("/root/send/instcd", gInstcd); // /root/send/instcd
  6145. //model.setValue("/root/send/patcareflag", gPatcareflag); // 간호구분(H:가정간호 , V:방문간호)
  6146. if(opt_iuflag.label == "I") { // 방문예정일 등록
  6147. model.setValue("/root/send/pid", model.getValue("/root/main/visitinfo/pid")); // 환자등록번호
  6148. if((model.getValue("/root/send/inptdt") == "") && (model.getValue("/root/main/visitinfo/inptdt") != "")){
  6149. model.setValue("/root/send/inptdt", model.getValue("/root/main/visitinfo/inptdt")); // 환자입력일시
  6150. }else if((model.getValue("/root/send/inptdt") == "") && (model.getValue("/root/main/visitinfo/inptdt") == "") && (model.getValue("/root/main/patinfo/patinforesult/inptdt") != "")){
  6151. model.setValue("/root/send/inptdt", model.getValue("/root/main/patinfo/patinforesult/inptdt")); // 환자입력일시
  6152. }else if((model.getValue("/root/send/inptdt") == "") && (model.getValue("/root/main/visitinfo/inptdt") == "") && (model.getValue("/root/main/patinfo/patinforesult/inptdt") == "")){
  6153. model.setValue("/root/send/inptdt", model.getValue("/root/main/grd_visitlst/visitlist[" + row + "]/inptdt")); // 환자입력일시
  6154. }
  6155. model.setValue("/root/send/inputvisitdd", ipt_inputschedule.value); // 등록 방문예정일
  6156. //model.setValue("/root/send/patcareflag", gPatcareflag); // 간호구분(H:가정간호 , V:방문간호)
  6157. //alert(gPatcareflag);
  6158. submit("TXMNF00104");
  6159. } else if(opt_iuflag.label == "U") { // 방문예정일 변경
  6160. model.setValue("/root/send/pid", model.getValue("/root/main/visitinfo/pid")); // 환자등록번호
  6161. if((model.getValue("/root/send/inptdt") == "") && (model.getValue("/root/main/visitinfo/inptdt") != "")){
  6162. model.setValue("/root/send/inptdt", model.getValue("/root/main/visitinfo/inptdt")); // 환자입력일시
  6163. }else if((model.getValue("/root/send/inptdt") == "") && (model.getValue("/root/main/visitinfo/inptdt") == "") && (model.getValue("/root/main/patinfo/patinforesult/inptdt") != "")){
  6164. model.setValue("/root/send/inptdt", model.getValue("/root/main/patinfo/patinforesult/inptdt")); // 환자입력일시
  6165. }else if((model.getValue("/root/send/inptdt") == "") && (model.getValue("/root/main/visitinfo/inptdt") == "") && (model.getValue("/root/main/patinfo/patinforesult/inptdt") == "")){
  6166. model.setValue("/root/send/inptdt", model.getValue("/root/main/grd_visitlst/visitlist[" + row + "]/inptdt")); // 환자입력일시
  6167. }
  6168. model.setValue("/root/send/inputvisitdd", ipt_inputschedule.value); // 등록 방문예정일
  6169. model.setValue("/root/send/currvisitdd", gVisitdd); // 변경시 사용 : 현재 방문예정일
  6170. //model.setValue("/root/send/patcareflag", gPatcareflag); // 간호구분(H:가정간호 , V:방문간호)
  6171. submit("TXMNF00105");
  6172. }
  6173. copyNodeListType("/root/main/visitcounts", "/root/main/grd_previsitlist/visitcount", "replace", model, model);
  6174. grp_inputschedule.visible = false;
  6175. // 달력에 일자별 방문(예정)건수 대입
  6176. fDataDisplayPat (); // 환자 선택했을 경우 색상 구분
  6177. //fMoveViewPreVisitLIst();
  6178. //model.refresh();
  6179. // 일자별 방문(예정)건수 재조회
  6180. submit("TRMNF00107");
  6181. fMoveViewPreVisitLIst();
  6182. // 진행상태 : 당일방문예정, 미확정, 진행, 종결 카운트 재조회
  6183. submit("TRMNF00115");
  6184. // 환자별 이력조회
  6185. submit("TRMNF00131");
  6186. ]]>
  6187. </script>
  6188. </button>
  6189. <line id="line32" class="line_3" style="x1:0px; y1:50px; x2:173px; y2:50px; "/>
  6190. <button id="btn_close" class="btn2_letter2" style="left:90px; top:59px; width:42px; height:19px; ">
  6191. <caption>닫기</caption>
  6192. <script type="javascript" ev:event="DOMActivate">
  6193. <![CDATA[
  6194. grp_inputschedule.visible = false;
  6195. ]]>
  6196. </script>
  6197. </button>
  6198. <output id="opt_iuflag" visibility="hidden" style="left:134px; top:2px; width:35px; height:19px; text-align:center; "/>
  6199. </group>
  6200. <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; ">
  6201. <caption id="caption37" class="tit_2" style="left:1px; top:5px; width:131px; height:14px; ">의뢰취소</caption>
  6202. <line id="line22" class="line_1" style="x1:0px; y1:22px; x2:298px; y2:22px; "/>
  6203. <select1 id="combo8" ref="/root/main/reqcancel/reqcancelreason" class="combo_search" appearance="minimal" style="left:87px; top:29px; width:205px; height:19px; ">
  6204. <choices>
  6205. <itemset nodeset="/root/item/reqcancelreason/M0387">
  6206. <label ref="cdnm"/>
  6207. <value ref="cdid"/>
  6208. </itemset>
  6209. </choices>
  6210. </select1>
  6211. <line id="line54" class="line_3" style="x1:-1px; y1:51px; x2:297px; y2:51px; "/>
  6212. <output id="output22" ref="/root/main/newpatientinfo/patinfo/ptbs_pid" visibility="visible" style="left:183px; top:2px; width:110px; height:19px; text-align:center; "/>
  6213. <button id="btn_savereqcancel" class="btn5_letter2" style="left:106px; top:64px; width:42px; height:19px; ">
  6214. <caption>저장</caption>
  6215. <script type="javascript" ev:event="DOMActivate">
  6216. <![CDATA[
  6217. fHomeCarePatientCancel("C"); //의뢰취소
  6218. grp_reqcancel.visible = false;
  6219. ]]>
  6220. </script>
  6221. </button>
  6222. <button id="button2" class="btn2_letter2" style="left:151px; top:64px; width:42px; height:19px; ">
  6223. <caption>닫기</caption>
  6224. <script type="javascript" ev:event="DOMActivate">
  6225. <![CDATA[
  6226. grp_reqcancel.visible = false;
  6227. ]]>
  6228. </script>
  6229. </button>
  6230. <caption id="caption4" class="cell_1" style="left:-1px; top:27px; width:84px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">의뢰취소사유</caption>
  6231. </group>
  6232. <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>
  6233. <line id="line11" class="line_3" style="x1:1px; y1:581px; x2:416px; y2:581px; "/>
  6234. <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>
  6235. <caption id="caption77" style="left:265px; top:429px; width:15px; height:20px; ">원</caption>
  6236. <select1 id="combo2" ref="/root/main/patinfo/patinforesult/chrgnursid1" class="combo_default" appearance="minimal" style="left:105px; top:182px; width:161px; height:19px; ">
  6237. <choices>
  6238. <itemset nodeset="/root/item/chargenurse/nurselist">
  6239. <label ref="usernm"/>
  6240. <value ref="userid"/>
  6241. </itemset>
  6242. </choices>
  6243. </select1>
  6244. <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; "/>
  6245. <caption id="caption46" class="cell_1" style="left:0px; top:425px; width:103px; height:21px; font-family:돋움; text-align:left; vertical-align:middle; ">현재금액</caption>
  6246. <caption id="caption36" class="cell_1" style="left:268px; top:182px; width:67px; height:21px; font-family:돋움; text-align:left; vertical-align:middle; ">의뢰기관</caption>
  6247. <input id="input15" ref="/root/main/patinfo/patinforesult/requnit" class="input_default" style="left:337px; top:182px; width:78px; height:19px; "/>
  6248. <caption id="caption26" class="cell_1" style="left:0px; top:447px; width:103px; height:55px; font-family:돋움; text-align:left; vertical-align:middle; ">
  6249. <![CDATA[의뢰별
  6250. Remark]]>
  6251. </caption>
  6252. <textarea id="textarea1" ref="/root/main/patinfo/patinforesult/comremark" scroll="auto" style="left:105px; top:503px; width:311px; height:57px; "/>
  6253. <textarea id="textarea2" ref="/root/main/patinfo/patinforesult/remark" scroll="auto" style="left:105px; top:448px; width:311px; height:53px; "/>
  6254. <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; ">
  6255. <choices>
  6256. <itemset nodeset="/root/item/churchregkind/churchregkindlist">
  6257. <label ref="nm"/>
  6258. <value ref="cd"/>
  6259. </itemset>
  6260. </choices>
  6261. <script type="javascript" ev:event="xforms-value-changed">
  6262. <![CDATA[
  6263. /********************가정간호팀, 병원, 간호행정팀은 수정가능하도록 수정 20081014 *************************************************/
  6264. // 가정간호센터(2361000000)에서 가정간호팀(3090100000)로 변경 2009.03.27
  6265. //if (( getUserInfo("dutplcecd") != "2361000000" ) && ( getUserInfo("dutplcecd") != "1000000000" ) && ( getUserInfo("dutplcecd") != "3041100000" )){
  6266. // 가정간호사업실(3090100000-> 3090000000)로 부서 및 부서코드변경_20120131.손성훈
  6267. if (( getUserInfo("dutplcecd") != "3090000000" ) && ( getUserInfo("dutplcecd") != "1000000000" ) && ( getUserInfo("dutplcecd") != "3041100000" )){
  6268. var row = grd_visitlst.row;
  6269. if(model.getValue("/root/send/prcsstat") == '2' ){
  6270. combo1.value = '1';
  6271. messageBox("무료, 기타 구분을 선택할 수 없습니다", "I004");
  6272. }else{
  6273. var chrrgstkind = model.getValue("/root/main/grd_visitlst/visitlist[" + row + "]/kind");
  6274. var kind = combo1.value;
  6275. if((chrrgstkind != '등록') && (combo1.value != '등록')){
  6276. if(combo1.value == '1'){
  6277. messageBox("등록 구분을 선택할 수", "I004");
  6278. if((chrrgstkind == '무료') || (kind == '무료')){
  6279. chrrgstkind = '2';
  6280. }else{
  6281. chrrgstkind = '3';
  6282. }
  6283. if(chrrgstkind != ""){
  6284. combo1.value = chrrgstkind;
  6285. }else{
  6286. combo1.value = kind;
  6287. }
  6288. }
  6289. }
  6290. }
  6291. }
  6292. ]]>
  6293. </script>
  6294. </select1>
  6295. <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>
  6296. <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>
  6297. <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>
  6298. <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; ">
  6299. <choices>
  6300. <itemset nodeset="/root/item/church/churchlist">
  6301. <label ref="churchnm"/>
  6302. <value ref="churchcd"/>
  6303. </itemset>
  6304. </choices>
  6305. <script type="javascript" ev:event="xforms-value-changed">
  6306. <![CDATA[
  6307. if(combo12.value != "") {
  6308. model.setValue("/root/send/churchcd", combo12.value) ;
  6309. // 조회조건의 선택된 본당의 가정간호 담당간호사 리스트를 조회, 콤보박스에 세팅한다.
  6310. submit("TRMNF00106");
  6311. //본당의 경우 간호사 한명이므로 세팅
  6312. //20080127 손은연
  6313. model.makeValue("root/temp/churchcd", model.getValue("/root/send/churchcd"));
  6314. model.makeValue("root/temp/chrgnursid", model.getValue("/root/send/chrgnursid"));
  6315. if ( combo13.length > 0 ){
  6316. combo13.select(1);
  6317. }
  6318. }
  6319. ]]>
  6320. </script>
  6321. </select1>
  6322. <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; ">
  6323. <choices>
  6324. <itemset nodeset="/root/item/chargenurse/nurselist">
  6325. <label ref="usernm"/>
  6326. <value ref="userid"/>
  6327. </itemset>
  6328. </choices>
  6329. </select1>
  6330. <caption id="caption81" class="cell_1" style="left:58px; top:337px; width:103px; height:21px; font-family:돋움; text-align:left; vertical-align:middle; ">등급</caption>
  6331. <caption id="caption82" class="cell_1" style="left:58px; top:381px; width:103px; height:21px; font-family:돋움; text-align:left; vertical-align:middle; ">본인부담 경감</caption>
  6332. <output id="output6" ref="/root/main/patinfo/patinforesult/vdctypenum" class="output_fix" style="left:163px; top:381px; width:53px; height:19px; text-align:center; "/>
  6333. <caption id="caption83" class="cell_1" style="left:58px; top:359px; width:103px; height:21px; font-family:돋움; text-align:left; vertical-align:middle; ">본인부담률</caption>
  6334. <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; "/>
  6335. <caption id="caption62" class="cell_1" style="left:0px; top:293px; width:103px; height:21px; font-family:돋움; text-align:left; vertical-align:middle; ">감면유형</caption>
  6336. <output id="dctypenum" ref="/root/main/patinfo/patinforesult/dctypenum" class="output_fix" style="left:105px; top:293px; width:53px; height:19px; text-align:center; "/>
  6337. <input id="input12" ref="/root/main/patinfo/patinforesult/longtermno" class="input_default" maxlength="25" style="left:163px; top:403px; width:253px; height:19px; "/>
  6338. <caption id="caption79" class="cell_1" style="left:58px; top:315px; width:103px; height:21px; font-family:돋움; text-align:left; vertical-align:middle; ">계약일</caption>
  6339. <caption id="caption57" class="cell_1" style="left:0px; top:315px; width:57px; height:109px; font-family:돋움; text-align:center; vertical-align:middle; ">방문간호</caption>
  6340. <select1 id="combo3" ref="/root/main/patinfo/patinforesult/dctype" class="combo_default" appearance="minimal" style="left:159px; top:293px; width:256px; height:19px; ">
  6341. <choices>
  6342. <itemset nodeset="/root/item/dctype/dctypelist">
  6343. <label ref="nm"/>
  6344. <value ref="cd"/>
  6345. </itemset>
  6346. </choices>
  6347. <script type="javascript" ev:event="xforms-value-changed">
  6348. <![CDATA[
  6349. //20081106 최지연 요청 번호로 보여달라
  6350. //감면유형 요청번호셋팅 하드코딩수정_20091230_SMY
  6351. model.makeValue("/root/main/patinfo/patinforesult/dctypenum", model.getValue("/root/item/dctype/dctypelist[cd = '" + model.getValue("/root/main/patinfo/patinforesult/dctype") + "']/sortseq"));
  6352. /*
  6353. if(combo3.value == '-'){
  6354. model.makeValue("/root/main/patinfo/patinforesult/dctypenum", "1");
  6355. }else if(combo3.value == 'D13'){
  6356. model.makeValue("/root/main/patinfo/patinforesult/dctypenum", "2");
  6357. }else if(combo3.value == 'D12'){
  6358. model.makeValue("/root/main/patinfo/patinforesult/dctypenum", "3");
  6359. }else if(combo3.value == 'D11'){
  6360. model.makeValue("/root/main/patinfo/patinforesult/dctypenum", "4");
  6361. }else if(combo3.value == 'S121'){ //빈센트병원 감면유형코드추가_20091022
  6362. model.makeValue("/root/main/patinfo/patinforesult/dctypenum", "2");
  6363. }
  6364. */
  6365. //model.refresh();
  6366. dctypenum.refresh();
  6367. ]]>
  6368. </script>
  6369. </select1>
  6370. <select1 id="combo4" ref="/root/main/patinfo/patinforesult/vdctype" class="combo_default" appearance="minimal" style="left:216px; top:381px; width:200px; height:19px; ">
  6371. <choices>
  6372. <itemset nodeset="/root/item/dctype/vdctypelist">
  6373. <label ref="nm"/>
  6374. <value ref="cd"/>
  6375. </itemset>
  6376. </choices>
  6377. <script type="javascript" ev:event="xforms-value-changed">
  6378. <![CDATA[
  6379. //20081106 최지연 요청 번호로 보여달라
  6380. //본인부담 경감 요청번호셋팅 하드코딩수정_20091230_SMY
  6381. model.makeValue("/root/main/patinfo/patinforesult/vdctypenum", model.getValue("/root/item/dctype/vdctypelist[cd = '" + model.getValue("/root/main/patinfo/patinforesult/vdctype") + "']/sortseq"));
  6382. /*
  6383. if(combo4.value == '-'){
  6384. model.makeValue("/root/main/patinfo/patinforesult/vdctypenum", "1");
  6385. }else if(combo4.value == 'D17'){
  6386. model.makeValue("/root/main/patinfo/patinforesult/vdctypenum", "2");
  6387. }
  6388. */
  6389. output6.refresh();
  6390. // model.refresh();
  6391. ]]>
  6392. </script>
  6393. </select1>
  6394. <select1 id="combo14" ref="/root/main/patinfo/patinforesult/qualflag" class="combo_default" appearance="minimal" style="left:163px; top:359px; width:253px; height:19px; ">
  6395. <choices>
  6396. <itemset nodeset="/root/item/dctype/qualflaglist">
  6397. <label ref="nm"/>
  6398. <value ref="cd"/>
  6399. </itemset>
  6400. </choices>
  6401. </select1>
  6402. <select1 id="combo9" ref="/root/main/patinfo/patinforesult/gradeflag" class="combo_default" appearance="minimal" style="left:163px; top:337px; width:253px; height:19px; ">
  6403. <choices>
  6404. <item>
  6405. <label>1등급</label>
  6406. <value>1</value>
  6407. </item>
  6408. <item>
  6409. <label>2등급</label>
  6410. <value>2</value>
  6411. </item>
  6412. <item>
  6413. <label>3등급</label>
  6414. <value>3</value>
  6415. </item>
  6416. </choices>
  6417. </select1>
  6418. <caption id="caption80" class="cell_1" style="left:58px; top:403px; width:103px; height:21px; font-family:돋움; text-align:left; vertical-align:middle; ">장기요양번호</caption>
  6419. <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>
  6420. <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>
  6421. <button id="button3" class="btn2_letter2" visibility="visible" style="left:373px; top:250px; width:42px; height:19px; ">
  6422. <caption>등록</caption>
  6423. <script type="javascript" ev:event="DOMActivate">
  6424. <![CDATA[
  6425. var xpos = window.width / 2 - 100;
  6426. var ypos = window.height / 2 - 200;
  6427. model.setValue("/root/diagtrnsdata/pid", model.getValue("/root/main/patinfo/patinforesult/pid"));
  6428. model.setValue("/root/diagtrnsdata/inptdt",model.getValue("/root/main/patinfo/patinforesult/inptdt"));
  6429. model.setValue("/root/diagtrnsdata/patcareflag",model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
  6430. // model.refresh();
  6431. if ( isNull(model.getValue("/root/diagtrnsdata/inptdt")) ) {
  6432. messageBox("확정된 환자에 대하여 등록이","I006","확정처리부터 하십시오");
  6433. }else {
  6434. open("SMMNF04000", "", "", "", "SMMNF04000", "/root/diagtrnsdata", "/root/main/parameter");
  6435. }
  6436. ]]>
  6437. </script>
  6438. </button>
  6439. <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; "/>
  6440. <button id="button7" class="btn2_letter2" visibility="visible" style="left:373px; top:272px; width:42px; height:19px; ">
  6441. <caption>등록</caption>
  6442. <script type="javascript" ev:event="DOMActivate">
  6443. <![CDATA[
  6444. var xpos = window.width / 2 - 100;
  6445. var ypos = window.height / 2 - 100;
  6446. var cur_row;
  6447. model.setValue("/root/intensivecaretrnsdata/pid", model.getValue("/root/main/patinfo/patinforesult/pid"));
  6448. model.setValue("/root/intensivecaretrnsdata/inptdt", model.getValue("/root/main/patinfo/patinforesult/inptdt"));
  6449. model.setValue("/root/intensivecaretrnsdata/instcd", model.getValue("/root/main/patinfo/patinforesult/instcd"));
  6450. model.setValue("/root/intensivecaretrnsdata/patcareflag", model.getValue("/root/main/patinfo/patinforesult/patcareflag"));
  6451. /*model.refresh();*/
  6452. if ( isNull(model.getValue("/root/intensivecaretrnsdata/inptdt")) ) {
  6453. messageBox("확정된 환자에 대하여 등록이","I006","확정처리부터 하십시오");
  6454. }else {
  6455. open("SMMNF01100", "", "", "", "SMMNF01100", "/root/intensivecaretrnsdata", "/root/main/parameter");
  6456. }
  6457. ]]>
  6458. </script>
  6459. </button>
  6460. <caption id="caption13" class="cell_1" style="left:268px; top:204px; width:67px; height:21px; font-family:돋움; text-align:left; vertical-align:middle; ">보조간호사</caption>
  6461. <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; ">
  6462. <script type="javascript" ev:event="onmouseover">
  6463. <![CDATA[
  6464. opt_cnstdiagnm.hint = model.getValue("/root/main/patinfo/patinforesult/cnstdiagconcat");
  6465. ]]>
  6466. </script>
  6467. </output>
  6468. <select1 id="combo10" ref="/root/main/patinfo/patinforesult/chrgnursid3" class="combo_default" appearance="minimal" style="left:337px; top:205px; width:78px; height:19px; ">
  6469. <choices>
  6470. <itemset nodeset="/root/item/chargenurse/nurselist">
  6471. <label ref="usernm"/>
  6472. <value ref="userid"/>
  6473. </itemset>
  6474. </choices>
  6475. </select1>
  6476. <select1 id="combo11" ref="/root/main/patinfo/patinforesult/healcntryn" class="combo_default" appearance="minimal" style="left:105px; top:205px; width:44px; height:19px; ">
  6477. <choices>
  6478. <itemset nodeset="/root/item/healcntryn/healcntrynlist">
  6479. <label ref="nm"/>
  6480. <value ref="cd"/>
  6481. </itemset>
  6482. </choices>
  6483. </select1>
  6484. <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; ">
  6485. <script type="javascript" ev:event="onmouseover">
  6486. <![CDATA[
  6487. opt_diagnm.hint = model.getValue("/root/main/patinfo/patinforesult/diagconcat");
  6488. ]]>
  6489. </script>
  6490. </output>
  6491. <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>
  6492. <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; ">
  6493. <script type="javascript" ev:event="onmouseover">
  6494. <![CDATA[
  6495. opt_cnstdiagcd.hint = model.getValue("/root/main/patinfo/patinforesult/cnstdiagconcat");
  6496. ]]>
  6497. </script>
  6498. </output>
  6499. <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>
  6500. <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; ">
  6501. <script type="javascript" ev:event="onmouseover">
  6502. <![CDATA[
  6503. opt_diagcd.hint = model.getValue("/root/main/patinfo/patinforesult/diagconcat");
  6504. ]]>
  6505. </script>
  6506. </output>
  6507. <input id="input5" ref="/root/main/patinfo/patinforesult/healcntrnm" class="input_default" style="left:151px; top:205px; width:115px; height:19px; "/>
  6508. <caption id="caption30" class="cell_1" style="left:0px; top:561px; width:103px; height:19px; font-family:돋움; text-align:left; vertical-align:middle; ">주거 지역</caption>
  6509. <select1 id="combo15" ref="/root/main/patinfo/patinforesult/vstarea" class="combo_default" appearance="minimal" style="left:105px; top:561px; width:100px; height:19px; ">
  6510. <choices>
  6511. <itemset nodeset="/root/item/visitarea/visitarealist">
  6512. <label ref="areanm"/>
  6513. <value ref="areaid"/>
  6514. </itemset>
  6515. </choices>
  6516. </select1>
  6517. <input id="ipt_areadtl" ref="/root/main/patinfo/patinforesult/areadtl" style="left:210px; top:561px; width:100px; height:19px; "/>
  6518. </group>
  6519. <!--(20101206) 경북대
  6520. <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; ">
  6521. -->
  6522. <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; ">
  6523. <!--(20101206) 경북대 -->
  6524. <col ref="ordtype" visibility="hidden"/>
  6525. <col ref="careflag" style="left:20px; top:32px; width:30px; height:23px; text-align:center; "/>
  6526. <col ref="procstatus" visibility="hidden" style="text-align:center; "/>
  6527. <col ref="pid" style="text-align:center; "/>
  6528. <col ref="hngnm" style="text-align:left; "/>
  6529. <col ref="sex" style="text-align:center; "/>
  6530. <col ref="diagname" visibility="hidden" style="text-align:left; "/>
  6531. <col ref="reqdeptnm" visibility="hidden" style="text-align:center; "/>
  6532. <col ref="reqdrnm" visibility="hidden" style="text-align:center; "/>
  6533. <col ref="reqdd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  6534. <col ref="inptstat" style="text-align:left; "/>
  6535. <col ref="receiptflag" visibility="hidden" style="left:420px; top:32px; width:40px; height:23px; text-align:center; "/>
  6536. <col disabled="true" ref="headquarter" type="combo" style="text-align:center; ">
  6537. <choices>
  6538. <itemset nodeset="/root/item/church/churchlist">
  6539. <label ref="churchnm"/>
  6540. <value ref="churchcd"/>
  6541. </itemset>
  6542. </choices>
  6543. </col>
  6544. <col ref="kind" style="text-align:center; "/>
  6545. <col ref="inptdt" visibility="hidden"/>
  6546. <col ref="diagcd" visibility="hidden"/>
  6547. <col ref="instcd" visibility="hidden"/>
  6548. <col ref="result" visibility="hidden"/>
  6549. <col ref="reqdeptcd" visibility="hidden" style="text-align:center; "/>
  6550. <col ref="reqdrid" visibility="hidden" style="text-align:center; "/>
  6551. <col ref="formrecseq" visibility="hidden" style="text-align:center; "/>
  6552. <col ref="rereqyn" visibility="hidden" style="text-align:center; "/>
  6553. <col ref="patcareflag" visibility="hidden" style="text-align:center; "/>
  6554. <col ref="orddd" visibility="hidden" style="text-align:center; "/>
  6555. <col ref="cretno" visibility="hidden" style="text-align:center; "/>
  6556. <col ref="vorddd" visibility="hidden" style="text-align:center; "/>
  6557. <script type="javascript" ev:event="onclick">
  6558. <![CDATA[
  6559. //alert("start"+'/'+isDataCell());
  6560. if(isDataCell()) {
  6561. //alert("ok");
  6562. delPatientInfos(); //화면상단정보 삭제
  6563. var cur_row = grd_visitlst.row;
  6564. fClear();
  6565. grd_patvisitlst.rebuildStyle();
  6566. // 기타, 무료환자는 접수버튼 비활성화
  6567. var kind = model.getValue("/root/main/grd_visitlst/visitlist[" + grd_visitlst.row + "]/kind");
  6568. if((kind == '무료') || (kind == '기타')){
  6569. btn_receipt.visible = false;
  6570. }else{
  6571. btn_receipt.visible = true;
  6572. }
  6573. if ( cur_row > 0 ) {
  6574. model.setValue("/root/send/pid", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/pid"));
  6575. model.setValue("/root/send/inptdt", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/inptdt"));
  6576. model.setValue("/root/send/instcd", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/instcd"));
  6577. model.setValue("/root/send/patcareflag", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/patcareflag"));
  6578. model.setValue("/root/send/vorddd", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/orddd"));
  6579. model.setValue("/root/main/visitinfo/pid", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/pid"));
  6580. model.setValue("/root/main/visitinfo/inptdt", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/inptdt"));
  6581. model.setValue("/root/main/visitinfo/instcd", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/instcd"));
  6582. model.setValue("/root/main/visitinfo/hngnm", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/hngnm"));
  6583. model.setValue("/root/main/visitinfo/sex", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/sex"));
  6584. model.setValue("/root/main/visitinfo/patcareflag", model.getValue("/root/main/grd_visitlst/visitlist["+cur_row+"]/patcareflag"));
  6585. // /*model.refresh();*/
  6586. }
  6587. // 환자선택시 환자별 histoy리스트 조회 , 환자정보조회
  6588. submit("TRMNF00131");
  6589. // 만료일 한달 전인 의뢰서 그리드에 색깔 셋팅
  6590. fSetGrdColorEndSche();
  6591. //model.refresh();
  6592. }
  6593. ]]>
  6594. </script>
  6595. <script type="javascript" ev:event="DOMFocusOut">
  6596. <![CDATA[
  6597. initPopupMenu();
  6598. ]]>
  6599. </script>
  6600. <script type="javascript" ev:event="onaftersort">
  6601. <![CDATA[
  6602. grd_visitlst.gridToInstance();
  6603. ]]>
  6604. </script>
  6605. </datagrid>
  6606. <datagrid id="grd_explist" nodeset="/root/main/grd_explist/explist" class="datagrid2" visibility="hidden" caption="구분^진행상태^등록번호^환자명^S/A^진단명^진료과^주&#52796;의^만료일^의뢰일^재원상태^미수^본당^분류^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; ">
  6607. <col ref="careflag" style="left:20px; top:32px; width:35px; height:23px; text-align:center; "/>
  6608. <col ref="procstatus" visibility="hidden" style="left:50px; top:32px; width:50px; height:23px; "/>
  6609. <col ref="pid"/>
  6610. <col ref="hngnm"/>
  6611. <col ref="sex"/>
  6612. <col ref="diagname" visibility="hidden"/>
  6613. <col ref="reqdeptnm" visibility="hidden" style="text-align:center; "/>
  6614. <col ref="reqdrnm" visibility="hidden" style="text-align:center; "/>
  6615. <col ref="expdd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  6616. <col ref="reqdd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  6617. <col ref="inptstat" visibility="visible" style="text-align:left; "/>
  6618. <col ref="receiptflag" visibility="hidden" style="left:420px; top:32px; width:40px; height:23px; text-align:center; "/>
  6619. <col ref="churchnm" visibility="visible"/>
  6620. <col ref="kind" visibility="visible"/>
  6621. <col ref="inptdt" visibility="hidden"/>
  6622. <col ref="diagcd" visibility="hidden"/>
  6623. <col ref="instcd" visibility="hidden"/>
  6624. <col ref="churchcd" visibility="hidden"/>
  6625. <col ref="result" visibility="hidden"/>
  6626. <col ref="reqdeptcd" visibility="hidden" style="text-align:center; "/>
  6627. <col ref="reqdrid" visibility="hidden" style="text-align:center; "/>
  6628. <col ref="formrecseq" visibility="hidden" style="text-align:center; "/>
  6629. <col ref="rereqyn" visibility="hidden" style="text-align:center; "/>
  6630. <col ref="patcareflag" visibility="hidden" style="text-align:center; "/>
  6631. <col ref="orddd" visibility="hidden" style="text-align:center; "/>
  6632. <col ref="cretno" visibility="hidden" style="text-align:center; "/>
  6633. <col ref="orddd" visibility="hidden" style="text-align:center; "/>
  6634. <script type="javascript" ev:event="onclick">
  6635. <![CDATA[
  6636. if(isDataCell()) {
  6637. delPatientInfos(); //화면상단정보 삭제
  6638. fClear();
  6639. var cur_row = grd_explist.row;
  6640. if ( cur_row > 0 ) {
  6641. model.setValue("/root/send/pid", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/pid"));
  6642. model.setValue("/root/send/inptdt", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/inptdt"));
  6643. model.setValue("/root/send/instcd", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/instcd"));
  6644. model.setValue("/root/send/patcareflag", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/patcareflag"));
  6645. model.setValue("/root/send/vorddd", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/orddd"));
  6646. model.setValue("/root/main/visitinfo/pid", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/pid"));
  6647. model.setValue("/root/main/visitinfo/inptdt", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/inptdt"));
  6648. model.setValue("/root/main/visitinfo/instcd", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/instcd"));
  6649. model.setValue("/root/main/visitinfo/hngnm", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/hngnm"));
  6650. model.setValue("/root/main/visitinfo/sex", model.getValue("/root/main/grd_explist/explist["+cur_row+"]/sex"));
  6651. //model.refresh();
  6652. }
  6653. // 환자선택시 환자별 histoy리스트 조회
  6654. submit("TRMNF00131");
  6655. }
  6656. ]]>
  6657. </script>
  6658. <script type="javascript" ev:event="DOMFocusOut">
  6659. <![CDATA[
  6660. initPopupMenu();
  6661. ]]>
  6662. </script>
  6663. <script type="javascript" ev:event="onaftersort">
  6664. <![CDATA[
  6665. grd_explist.gridToInstance();
  6666. ]]>
  6667. </script>
  6668. </datagrid>
  6669. <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; ">
  6670. <!--(20101206) 경북대 -->
  6671. <col ref="hcareflag" type="input" style="text-align:center; "/>
  6672. <col ref="procstatus" style="text-align:center; "/>
  6673. <col ref="pid" style="text-align:center; "/>
  6674. <col ref="hngnm" style="text-align:center; "/>
  6675. <col ref="sex" style="text-align:center; "/>
  6676. <col ref="cnstdiaghngnm" style="text-align:left; "/>
  6677. <col ref="reqdeptnm" style="text-align:center; "/>
  6678. <col ref="reqdrnm" style="text-align:center; "/>
  6679. <col ref="detail" style="text-align:center; "/>
  6680. <col ref="hisrecord" style="text-align:center; "/>
  6681. <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
  6682. <col ref="reqtm" format="hh:nn" style="text-align:center; "/>
  6683. <col ref="reqmode" style="text-align:center; "/>
  6684. <col ref="inptstat" style="text-align:left; "/>
  6685. <col ref="carerec" style="text-align:center; "/>
  6686. <col ref="churchnm" visibility="hidden" style="text-align:center; "/>
  6687. <col ref="kind" visibility="hidden" style="text-align:center; "/>
  6688. <col ref="churchcd" visibility="hidden" style="text-align:center; "/>
  6689. <col ref="cnstsdiagcd" visibility="hidden" style="text-align:center; "/>
  6690. <col ref="reqdeptcd" visibility="hidden" style="text-align:center; "/>
  6691. <col ref="reqdrid" visibility="hidden" style="text-align:center; "/>
  6692. <col ref="instcd" visibility="hidden" style="text-align:center; "/>
  6693. <col ref="formrecseq" visibility="hidden" style="text-align:center; "/>
  6694. <col ref="rereqyn" visibility="hidden" style="text-align:center; "/>
  6695. <col ref="patcareflag" visibility="hidden" style="text-align:center; "/>
  6696. <col ref="orddd" visibility="hidden" style="text-align:center; "/>
  6697. <col ref="cretno" visibility="hidden" style="text-align:center; "/>
  6698. <col ref="careflag" type="input" visibility="hidden" style="text-align:center; "/>
  6699. <col ref="ordtype" visibility="hidden"/>
  6700. <col ref="vstarea" visibility="hidden"/>
  6701. <script type="javascript" ev:event="onmousedown">
  6702. <![CDATA[
  6703. if(grd_reqlist.isCell(event.target) && grd_reqlist.mouseRow >= grd_reqlist.fixedrows) {
  6704. if(searchListFlag == "2") { // 미확정리스트 일때만 팝업메뉴 적용
  6705. if(isDataCell()) {
  6706. var cur_row = grd_reqlist.mouseRow;
  6707. if ( cur_row > 0 ) {
  6708. // 미확정 리스트에서 마우스 오른쪽 버튼 클릭시 "가정간호 의뢰서 보기" 팝업 메뉴 로드
  6709. if(event.button == 3) {
  6710. setPopupMenu("grd_reqlist", false, "/root/codedata/popupmenu/reqpaper/item", "name", "func");
  6711. gRow = grd_reqlist.mouseRow;
  6712. gCol = grd_reqlist.mouseCol;
  6713. gFormRecSeq = model.getValue("/root/main/grd_reqlist/reqlist[" + gRow + "]/formrecseq");
  6714. }
  6715. }
  6716. }
  6717. }
  6718. }
  6719. ]]>
  6720. </script>
  6721. <script type="javascript" ev:event="DOMFocusOut">
  6722. <![CDATA[
  6723. initPopupMenu();
  6724. ]]>
  6725. </script>
  6726. <script type="javascript" ev:event="onclick">
  6727. <![CDATA[
  6728. if(isDataCell()) {
  6729. var cur_row = grd_reqlist.row;
  6730. delPatientInfos(); //화면상단정보 삭제
  6731. fClear();
  6732. fcareSetting(); // 방문/가정 구분에 따른 화면활성화 제어
  6733. if ( cur_row > 0 ) {
  6734. model.setValue("/root/send/pid", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/pid"));
  6735. model.setValue("/root/send/inptdt", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/inptdt"));
  6736. model.setValue("/root/send/instcd", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/instcd"));
  6737. model.setValue("/root/send/patcareflag", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/patcareflag"));
  6738. model.setValue("/root/main/visitinfo/pid", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/pid"));
  6739. model.setValue("/root/main/visitinfo/instcd", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/instcd"));
  6740. model.setValue("/root/main/visitinfo/hngnm", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/hngnm"));
  6741. model.setValue("/root/main/visitinfo/sex", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/sex"));
  6742. // model.refresh();
  6743. }
  6744. // 환자선택시 환자별 histoy리스트 조회
  6745. //submit("TRMNF00131");
  6746. // 1.환자 기본정보 조회
  6747. submit("TRMNF00101");
  6748. model.makeValue("/root/main/patinfo/patinforesult/dctype","-");
  6749. combo3.refresh();
  6750. //20081106 최지연 요청 번호로 보여달라
  6751. //감면유형 요청번호셋팅 하드코딩수정_20091230_SMY
  6752. model.makeValue("/root/main/patinfo/patinforesult/dctypenum", model.getValue("/root/item/dctype/dctypelist[cd = '" + model.getValue("/root/main/patinfo/patinforesult/dctype") + "']/sortseq"));
  6753. if ( !isNull(model.getValue("/root/main/patinfo/patinforesult/pid")) ){
  6754. gNewPat = "N" ;
  6755. fDisableEnableBtn(searchListFlag) ;
  6756. //감면유형 요청번호셋팅_20100114_SMY
  6757. model.makeValue("/root/main/patinfo/patinforesult/dctypenum", model.getValue("/root/item/dctype/dctypelist[cd = '" + model.getValue("/root/main/patinfo/patinforesult/dctype") + "']/sortseq"));
  6758. //본인부담 경감 요청번호셋팅_20100114_SMY
  6759. model.makeValue("/root/main/patinfo/patinforesult/vdctypenum", model.getValue("/root/item/dctype/vdctypelist[cd = '" + model.getValue("/root/main/patinfo/patinforesult/vdctype") + "']/sortseq"));
  6760. // 담당간호사 매칭
  6761. fChrgNursIdMapping();
  6762. // 개별 가정간호 방문정보에 최근방문일 매칭
  6763. model.setValue("/root/main/visitinfo/lastvisitdd", model.getValue("/root/main/mnginfo/visitdate/lastvisitdd"));
  6764. //미확정인경우 의사진단이 저장되어야 하므로 클릭시 값을 전달한다.
  6765. //-->변경 : 미확정리스트의 환자정보 조회시 의뢰서진단과 이전에 확정된 가정간호 진단이 분리되서 조회되도록 수정변경. 저장시에는 가정간호 진단을 저장한다_20100108_SMY
  6766. model.setValue("/root/main/patinfo/patinforesult/cnstdiagcd", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/cnstdiagcd"));
  6767. model.setValue("/root/main/patinfo/patinforesult/cnstdiaghngnm", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/cnstdiaghngnm"));
  6768. model.setValue("/root/main/patinfo/patinforesult/cnstdiagconcat", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/cnstdiaghngnm"));
  6769. // 미확정 의뢰확정할때 patcareflag에 따라 insert 하는 항목이 달라지므로 patcareflag 셋팅 2009.05.13 황혜민
  6770. model.setValue("/root/main/patinfo/patinforesult/patcareflag", model.getValue("/root/main/grd_reqlist/reqlist["+cur_row+"]/careflag"));
  6771. //본당인 경우 의뢰를 하여 미확정 리스트에 들어온경우는 등록인 경우 뿐이므로... 등록으로 만들어 준다.
  6772. var kind = model.getValue("/root/send/kind");
  6773. if(kind == '2'){
  6774. model.makeValue("/root/main/patinfo/patinforesult/chrrgstkind", '1');
  6775. }
  6776. }
  6777. model.refresh();
  6778. }
  6779. ]]>
  6780. </script>
  6781. <script type="javascript" ev:event="onaftersort">
  6782. <![CDATA[
  6783. grd_reqlist.gridToInstance();
  6784. ]]>
  6785. </script>
  6786. </datagrid>
  6787. </group>
  6788. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:145px; height:18px; ">가정간호</caption>
  6789. </group>
  6790. <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; ">
  6791. <caption id="caption15" class="tit_2" style="left:1px; top:5px; width:131px; height:14px; ">신규환자 등록</caption>
  6792. <line id="line42" class="line_1" style="x1:0px; y1:22px; x2:298px; y2:22px; "/>
  6793. <caption id="caption38" class="cell_1" style="left:-1px; top:27px; width:84px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">주민등록번호</caption>
  6794. <caption id="caption42" style="left:187px; top:29px; width:15px; height:20px; ">-</caption>
  6795. <line id="line43" class="line_2" style="x1:-1px; y1:49px; x2:297px; y2:49px; "/>
  6796. <caption id="caption43" class="cell_1" style="left:-1px; top:51px; width:84px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">환자성명</caption>
  6797. <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; ">
  6798. <script type="javascript" ev:event="DOMFocusOut">
  6799. <![CDATA[
  6800. if( !isNull(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_rrgstno1")) ){
  6801. fRrgstNo1Veri();
  6802. }
  6803. //model.refresh();
  6804. ]]>
  6805. </script>
  6806. </input>
  6807. <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; ">
  6808. <script type="javascript" ev:event="DOMFocusOut">
  6809. <![CDATA[
  6810. if( !isNull(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_rrgstno2")) ){
  6811. fRrgstNo2Veri();
  6812. }
  6813. //model.refresh();
  6814. ]]>
  6815. </script>
  6816. </input>
  6817. <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; "/>
  6818. <caption id="caption52" class="cell_1" style="left:189px; top:75px; width:39px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">성별</caption>
  6819. <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; ">
  6820. <choices>
  6821. <item>
  6822. <label>M</label>
  6823. <value>M</value>
  6824. </item>
  6825. <item>
  6826. <label>F</label>
  6827. <value>F</value>
  6828. </item>
  6829. </choices>
  6830. </select1>
  6831. <caption id="caption53" class="cell_1" style="left:-1px; top:75px; width:84px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">생년월일</caption>
  6832. <line id="line44" class="line_2" style="x1:-1px; y1:73px; x2:297px; y2:73px; "/>
  6833. <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; "/>
  6834. <line id="line45" class="line_2" style="x1:-1px; y1:97px; x2:297px; y2:97px; "/>
  6835. <caption id="caption54" class="cell_1" style="left:-1px; top:99px; width:84px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">집전화번호</caption>
  6836. <caption id="caption67" class="cell_1" style="left:-1px; top:123px; width:84px; height:23px; font-family:돋움; text-align:left; vertical-align:middle; ">휴대전화번호</caption>
  6837. <line id="line46" class="line_2" style="x1:-1px; y1:121px; x2:297px; y2:121px; "/>
  6838. <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; ">
  6839. <script type="javascript" ev:event="DOMFocusOut">
  6840. <![CDATA[
  6841. if( !isNull(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_hometel")) && model.getValue("/root/main/newpatientinfo/patinfo/ptbs_hometel") != "-") {
  6842. if(getStringLength(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_hometel")) < 9 ||
  6843. getStringLength(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_hometel")) > 13 ||
  6844. isHomeTelNo(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_hometel").substr(0, 3)) == false) {
  6845. messageBox("지역번호 포함하여 올바른 집전화번호를","C001"); // 입력하십시오!
  6846. model.setFocus("ipt_hometel") ;
  6847. return ;
  6848. }
  6849. if(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_hometel").substr(0, 2) == "02") { // 서울 지역번호
  6850. if(getStringLength(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_hometel")) == 9) {
  6851. model.setValue("/root/main/newpatientinfo/patinfo/ptbs_hometel", ipt_hometel.value.substr(0,2) + "-" +
  6852. ipt_hometel.value.substr(2,3) + "-" +
  6853. ipt_hometel.value.substr(5,4)) ;
  6854. } else if(getStringLength(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_hometel")) == 10) {
  6855. model.setValue("/root/main/newpatientinfo/patinfo/ptbs_hometel", ipt_hometel.value.substr(0,2) + "-" +
  6856. ipt_hometel.value.substr(2,4) + "-" +
  6857. ipt_hometel.value.substr(6,4)) ;
  6858. }
  6859. } else {
  6860. if(getStringLength(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_hometel")) == 10) {
  6861. model.setValue("/root/main/newpatientinfo/patinfo/ptbs_hometel", ipt_hometel.value.substr(0,3) + "-" +
  6862. ipt_hometel.value.substr(3,3) + "-" +
  6863. ipt_hometel.value.substr(6,4)) ;
  6864. } else if(getStringLength(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_hometel")) == 11) {
  6865. model.setValue("/root/main/newpatientinfo/patinfo/ptbs_hometel", ipt_hometel.value.substr(0,3) + "-" +
  6866. ipt_hometel.value.substr(3,4) + "-" +
  6867. ipt_hometel.value.substr(7,4)) ;
  6868. }
  6869. }
  6870. ipt_hometel.refresh();
  6871. }
  6872. ]]>
  6873. </script>
  6874. <script type="javascript" ev:event="onkeyup">
  6875. <![CDATA[
  6876. if((event.keyCode <48 || (event.keyCode > 57 && event.keyCode < 96 ) || event.keyCode > 105) && (event.keyCode != 8 && event.keyCode != 13 && event.keyCode != 46)) {
  6877. messageBox("숫자만","C001"); // 입력하십시오!
  6878. model.setFocus("ipt_hometel") ;
  6879. return ;
  6880. }
  6881. ]]>
  6882. </script>
  6883. </input>
  6884. <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; ">
  6885. <script type="javascript" ev:event="DOMFocusOut">
  6886. <![CDATA[
  6887. if( !isNull(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_mpphontel")) && model.getValue("/root/main/newpatientinfo/patinfo/ptbs_mpphontel") != "-") {
  6888. if(getStringLength(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_mpphontel")) < 10 ||
  6889. getStringLength(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_mpphontel")) > 13 ||
  6890. isMobileTelNo(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_mpphontel").substr(0, 2)) == false) {
  6891. messageBox("올바른 휴대전화번호를","C001"); // 입력하십시오!
  6892. model.setFocus("ipt_moohontel") ;
  6893. return ;
  6894. }
  6895. if(getStringLength(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_mpphontel")) == 10) {
  6896. model.setValue("/root/main/newpatientinfo/patinfo/ptbs_mpphontel", ipt_moohontel.value.substr(0,3) + "-" +
  6897. ipt_moohontel.value.substr(3,3) + "-" +
  6898. ipt_moohontel.value.substr(6,4)) ;
  6899. } else if(getStringLength(model.getValue("/root/main/newpatientinfo/patinfo/ptbs_mpphontel")) == 11) {
  6900. model.setValue("/root/main/newpatientinfo/patinfo/ptbs_mpphontel", ipt_moohontel.value.substr(0,3) + "-" +
  6901. ipt_moohontel.value.substr(3,4) + "-" +
  6902. ipt_moohontel.value.substr(7,4)) ;
  6903. }
  6904. ipt_moohontel.refresh();
  6905. //model.refresh();
  6906. }
  6907. ]]>
  6908. </script>
  6909. <script type="javascript" ev:event="onkeyup">
  6910. <![CDATA[
  6911. if((event.keyCode <48 || (event.keyCode > 57 && event.keyCode < 96 ) || event.keyCode > 105) && (event.keyCode != 8 && event.keyCode != 13 && event.keyCode != 46)) {
  6912. messageBox("숫자만","C001"); // 입력하십시오!
  6913. model.setFocus("ipt_moohontel") ;
  6914. return ;
  6915. }
  6916. ]]>
  6917. </script>
  6918. </input>
  6919. <line id="line47" class="line_3" style="x1:-1px; y1:146px; x2:297px; y2:146px; "/>
  6920. <output id="output8" ref="/root/main/newpatientinfo/patinfo/ptbs_pid" visibility="visible" style="left:183px; top:2px; width:110px; height:19px; text-align:center; "/>
  6921. <button id="btn_savenewpat" class="btn5_letter2" style="left:106px; top:151px; width:42px; height:19px; ">
  6922. <caption>저장</caption>
  6923. <script type="javascript" ev:event="DOMActivate">
  6924. <![CDATA[
  6925. if(getStringLength(ipt_hngnm.value) == 0) {
  6926. messageBox("환자성명을","C001"); // 입력하십시오!
  6927. return ;
  6928. }
  6929. var retMsg = messageBox("신환등록을", "Q004"); // 실행 하시겠습니까? yes=6, no=7
  6930. if(retMsg != "6") {
  6931. return ;
  6932. }
  6933. //******************************************************************************************************
  6934. // 0.주민번호로 신환유무를 체크한다.
  6935. //******************************************************************************************************
  6936. submit("TRMNF00118");
  6937. if(model.getValue("/root/main/newpatientflag/newpatientyn/cnt") == 0) { // 원무에 등록되지 않은 신환환자일 경우.
  6938. model.setValue("/root/main/newpatientinfo/patinfo/ptbs_flag", "I"); // 환자기본정보('I' 추가 , 'U' 갱신)
  6939. // model.refresh();
  6940. // TXMNF00110 -->reqInsNewPatient
  6941. //******************************************************************************************************
  6942. // 1.신환일 경우 환자번호를 따온다. : pam/opatmngtmgr
  6943. // 2.신환환자 등록모듈을 호출한다. : COMPONENT/PAM/PAMLIB/PATINFOMNGT
  6944. //******************************************************************************************************
  6945. submit("TXMNF00110", false);
  6946. if(rdo_kind.value == "2") { // 본당인 경우 신환등록 이후 가정간호 환자정보 저장 및 가정간호대상자로 등록 허용
  6947. var retMsg = messageBox("본당 가정간호대상자로 등록", "Q004"); // 실행 하시겠습니까? yes=6, no=7
  6948. if(retMsg != "6") {
  6949. grp_newpatientinput.visible = false;
  6950. return ;
  6951. }
  6952. //******************************************************************************************************
  6953. // 0.주민번호로 신환등록번호를 조회한다.
  6954. //******************************************************************************************************
  6955. submit("TRMNF00118");
  6956. if(getStringLength(model.getValue("/root/main/newpatientflag/newpatientyn/pid")) == 0) {
  6957. messageBox("주민등록번호에 해당하는 환자등록번호를 조회", "E001"); // 할 수 없습니다.
  6958. grp_newpatientinput.visible = false;
  6959. return ;
  6960. }
  6961. model.setValue("/root/main/newpatientinfo/patinfo/ptbs_pid", model.getValue("/root/main/newpatientflag/newpatientyn/pid"));
  6962. model.setValue("/root/main/patinfo/patinforesult/pid", model.getValue("/root/main/newpatientflag/newpatientyn/pid"));
  6963. model.setValue("/root/main/patinfo/patinforesult/hngnm", ipt_hngnm.value);
  6964. model.setValue("/root/main/patinfo/patinforesult/sex", cmb_sex.value + "/" + getFullAge(ipt_brthdd.value));
  6965. model.setValue("/root/main/patinfo/patinforesult/telno1", ipt_hometel.value);
  6966. model.setValue("/root/main/patinfo/patinforesult/telno2", "-");
  6967. model.setValue("/root/main/patinfo/patinforesult/cphone1owner", ipt_hngnm.value);
  6968. model.setValue("/root/main/patinfo/patinforesult/cphone1", ipt_moohontel.value);
  6969. model.setValue("/root/main/patinfo/patinforesult/cphone2owner", "" );
  6970. model.setValue("/root/main/patinfo/patinforesult/cphone2", "-");
  6971. model.setValue("/root/main/patinfo/patinforesult/reqdd", "");
  6972. model.setValue("/root/main/patinfo/patinforesult/reqdeptcd", ""); // 의뢰진료과 없음(의뢰서 없이 직접 가정간호 등록하므로)
  6973. model.setValue("/root/main/patinfo/patinforesult/reqdrid", ""); // 의뢰의사 없음(의뢰서 없이 직접 가정간호 등록하므로)
  6974. model.setValue("/root/main/patinfo/patinforesult/patflag", "2"); // 본당 무료/기타 환자에 대해서만 의뢰서 없이 직접 가정간호 등록을 허용하므로
  6975. model.setValue("/root/main/patinfo/patinforesult/insdrrgstno", model.getValue(" /root/main/newpatientinfo/patinfo/ptbs_rrgstno1") + "-" + model.getValue(" /root/main/newpatientinfo/patinfo/ptbs_rrgstno2"));
  6976. model.setValue("/root/main/patinfo/patinforesult/formrecseq", "0"); // 산환등록은 서식번호가 없으므로 '0'
  6977. model.setValue("/root/main/patinfo/patinforesult/patcareflag", "H"); // 산환등록은 서식번호가 없으므로 '0'
  6978. if(combo5.value == '-'){
  6979. model.setValue("/root/main/patinfo/patinforesult/churchcd", getUserInfo("dutplcecd")); // 본당 세팅
  6980. }else{
  6981. combo12.value = combo5.value ; // 본당 설정
  6982. }
  6983. combo1.value = "2" ; // 본당 무료환자로 설정(1:등록, 2:무료, 3:기타)
  6984. if(combo7.value == '%'){
  6985. model.setValue("/root/main/patinfo/patinforesult/chrgnursid2", getUserId());
  6986. }else{
  6987. combo13.value = combo7.value ; // 본당 담당간호사
  6988. }
  6989. gNewPat = "Y" ; // 신환등록 시 본당 가정간호환자 등록여부 설정
  6990. btn_save.disabled = false ; // 저장버튼 활성화
  6991. btn_confirm.disabled = true ; // 확정버튼 비활성화
  6992. model.makeValue("/root/main/patinfo/patinforesult/isnewpat", "Y"); // 본당 신환등록여부 구분
  6993. model.makeValue("/root/main/patinfo/patinforesult/rereqyn", "N"); // 재의뢰 여부 구분
  6994. // 신환등록일때는 구분자가 없으므로
  6995. model.makeValue("/root/main/patinfo/patinforesult/rereqyn", "N"); // 재의뢰 여부 구분
  6996. // 본당 신규등록시는 가정간호만 등록되므로 2009.04.02
  6997. model.makeValue("/root/main/patinfo/patinforesult/patcareflag", "H");
  6998. model.makeValue("/root/main/patinfo/patinforesult/chrgnursid", getUserId()); // reqInsPatRegInfo()에 공통remark저장하는부분 때문에 chrgnursid null 값 넘어가 에러 나는 것 때문에 수정 (2009.11.05 hhm)
  6999. // 본당 가정간호 환자 대상자 등록(INSERT)
  7000. submit("TXMNF00103");
  7001. model.setValue("/root/main/patinfo/patinforesult/pid", model.getValue("/root/temp/patinfo/patinfo/pid"));
  7002. model.setValue("/root/main/patinfo/patinforesult/inptdt", model.getValue("/root/temp/patinfo/patinfo/inptdt"));
  7003. model.setValue("/root/main/patinfo/patinforesult/instcd", model.getValue("/root/temp/patinfo/patinfo/instcd"));
  7004. grp_newpatientinput.visible = false;
  7005. model.setFocus("input30") ; // 주소입력란 포커스On
  7006. } else {
  7007. // 환자정보 재조회
  7008. grd_visitlst.dispatch("onclick");
  7009. }
  7010. grp_newpatientinput.visible = false;
  7011. } else { //원무에 이미등록된 환자일 경우
  7012. messageBox("이미 등록된 환자", "E008"); // 입니다.
  7013. var retMsg = messageBox("본당 가정간호대상자로 등록", "Q004"); // 실행 하시겠습니까? yes=6, no=7
  7014. if(retMsg != "6") {
  7015. grp_newpatientinput.visible = false;
  7016. return ;
  7017. }
  7018. model.setValue("/root/main/newpatientinfo/patinfo/ptbs_pid", model.getValue("/root/main/newpatientflag/newpatientyn/pid"));
  7019. model.setValue("/root/main/patinfo/patinforesult/pid", model.getValue("/root/main/newpatientflag/newpatientyn/pid"));
  7020. model.setValue("/root/main/patinfo/patinforesult/hngnm", ipt_hngnm.value);
  7021. model.setValue("/root/main/patinfo/patinforesult/sex", cmb_sex.value + "/" + getFullAge(ipt_brthdd.value));
  7022. model.setValue("/root/main/patinfo/patinforesult/telno1", ipt_hometel.value);
  7023. model.setValue("/root/main/patinfo/patinforesult/telno2", "-");
  7024. model.setValue("/root/main/patinfo/patinforesult/cphone1owner", ipt_hngnm.value);
  7025. model.setValue("/root/main/patinfo/patinforesult/cphone1", ipt_moohontel.value);
  7026. model.setValue("/root/main/patinfo/patinforesult/cphone2owner", "" );
  7027. model.setValue("/root/main/patinfo/patinforesult/cphone2", "-");
  7028. model.setValue("/root/main/patinfo/patinforesult/reqdd", "");
  7029. model.setValue("/root/main/patinfo/patinforesult/reqdeptcd", ""); // 의뢰진료과 없음(의뢰서 없이 직접 가정간호 등록하므로)
  7030. model.setValue("/root/main/patinfo/patinforesult/reqdrid", ""); // 의뢰의사 없음(의뢰서 없이 직접 가정간호 등록하므로)
  7031. model.setValue("/root/main/patinfo/patinforesult/patflag", "2"); // 본당 무료/기타 환자에 대해서만 의뢰서 없이 직접 가정간호 등록을 허용하므로
  7032. model.setValue("/root/main/patinfo/patinforesult/insdrrgstno", model.getValue(" /root/main/newpatientinfo/patinfo/ptbs_rrgstno1") + "-" + model.getValue(" /root/main/newpatientinfo/patinfo/ptbs_rrgstno2"));
  7033. model.setValue("/root/main/patinfo/patinforesult/formrecseq", "0"); // 산환등록은 서식번호가 없으므로 '0'
  7034. if(combo5.value == '-'){
  7035. model.setValue("/root/main/patinfo/patinforesult/churchcd", getUserInfo("dutplcecd")); // 본당 세팅
  7036. }else{
  7037. combo12.value = combo5.value ; // 본당 설정
  7038. }
  7039. combo1.value = "2" ; // 본당 무료환자로 설정(1:등록, 2:무료, 3:기타)
  7040. if(combo7.value == '%'){
  7041. model.setValue("/root/main/patinfo/patinforesult/chrgnursid2", getUserId());
  7042. }else{
  7043. combo13.value = combo7.value ; // 본당 담당간호사
  7044. }
  7045. gNewPat = "Y" ; // 신환등록 시 본당 가정간호환자 등록여부 설정
  7046. btn_save.disabled = false ; // 저장버튼 활성화
  7047. btn_confirm.disabled = true ; // 확정버튼 비활성화
  7048. model.makeValue("/root/main/patinfo/patinforesult/isnewpat", "Y"); // 본당 신환등록여부 구분
  7049. model.makeValue("/root/main/patinfo/patinforesult/rereqyn", "N"); // 재의뢰 여부 구분
  7050. // 본당 신규등록시는 가정간호만 등록되므로 2009.04.02
  7051. model.makeValue("/root/main/patinfo/patinforesult/patcareflag", "H");
  7052. model.makeValue("/root/main/patinfo/patinforesult/chrgnursid", getUserId()); // reqInsPatRegInfo()에 공통remark저장하는부분 때문에 chrgnursid null 값 넘어가 에러 나는 것 때문에 수정 (2009.11.05 hhm)
  7053. // 본당 가정간호 환자 대상자 등록(INSERT)
  7054. submit("TXMNF00103");
  7055. model.setValue("/root/main/patinfo/patinforesult/pid", model.getValue("/root/temp/patinfo/patinfo/pid"));
  7056. model.setValue("/root/main/patinfo/patinforesult/inptdt", model.getValue("/root/temp/patinfo/patinfo/inptdt"));
  7057. model.setValue("/root/main/patinfo/patinforesult/instcd", model.getValue("/root/temp/patinfo/patinfo/instcd"));
  7058. // ipt_pid.refresh();
  7059. ipt_inptd.
  7060. grp_newpatientinput.visible = false;
  7061. model.setFocus("input30") ; // 주소입력란 포커스On
  7062. }
  7063. ]]>
  7064. </script>
  7065. </button>
  7066. <button id="btn_closenewpat" class="btn2_letter2" style="left:151px; top:151px; width:42px; height:19px; ">
  7067. <caption>닫기</caption>
  7068. <script type="javascript" ev:event="DOMActivate">
  7069. <![CDATA[
  7070. grp_newpatientinput.visible = false;
  7071. ]]>
  7072. </script>
  7073. </button>
  7074. <button id="button19" class="icon_search" style="left:274px; top:54px; width:16px; height:16px; ">
  7075. <caption/>
  7076. <script type="javascript" ev:event="DOMActivate">
  7077. <![CDATA[
  7078. model.makeNode("/root/main/patinfo/patinfolist");
  7079. //원무팀의 환자명을 받아오는 팝업창을 띄운다.
  7080. modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  7081. //input박스에 데이타를 받아온다.
  7082. var popupendflag = model.getValue("/root/main/popupendflag");
  7083. if (popupendflag == "ok"){
  7084. if(rdo_kind.value == 2) { // 본당인 경우
  7085. var retMsg = messageBox("본당 가정간호대상자로 등록", "Q004"); // 실행 하시겠습니까? yes=6, no=7
  7086. if(retMsg != "6") {
  7087. grp_newpatientinput.visible = false;
  7088. return ;
  7089. }
  7090. model.setValue("/root/main/patinfo/patinforesult/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  7091. model.setValue("/root/main/patinfo/patinforesult/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  7092. model.setValue("/root/main/patinfo/patinforesult/sex", model.getValue("/root/main/patinfo/patinfolist/sex") + "/" + model.getValue("/root/main/patinfo/patinfolist/age"));
  7093. model.setValue("/root/main/patinfo/patinforesult/address", model.getValue("/root/main/patinfo/patinfolist/detladdr"));
  7094. model.setValue("/root/main/patinfo/patinforesult/telno1", model.getValue("/root/main/patinfo/patinfolist/hometel"));
  7095. model.setValue("/root/main/patinfo/patinforesult/telno2", "-");
  7096. model.setValue("/root/main/patinfo/patinforesult/cphone1owner", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  7097. model.setValue("/root/main/patinfo/patinforesult/cphone1", model.getValue("/root/main/patinfo/patinfolist/mpphontel"));
  7098. model.setValue("/root/main/patinfo/patinforesult/cphone2owner", "" );
  7099. model.setValue("/root/main/patinfo/patinforesult/cphone2", "-");
  7100. model.setValue("/root/main/patinfo/patinforesult/reqdd", getCurrentDate());
  7101. model.setValue("/root/main/patinfo/patinforesult/reqdeptcd", ""); // 의뢰진료과 없음(의뢰서 없이 직접 가정간호 등록하므로)
  7102. model.setValue("/root/main/patinfo/patinforesult/reqdrid", ""); // 의뢰의사 없음(의뢰서 없이 직접 가정간호 등록하므로)
  7103. model.setValue("/root/main/patinfo/patinforesult/patflag", "2"); // 본당 무료/기타 환자에 대해서만 의뢰서 없이 직접 가정간호 등록을 허용하므로
  7104. model.setValue("/root/main/patinfo/patinforesult/insdrrgstno", model.getValue(" /root/main/newpatientinfo/patinfo/ptbs_rrgstno1") + "-" + model.getValue(" /root/main/newpatientinfo/patinfo/ptbs_rrgstno2"));
  7105. model.setValue("/root/main/patinfo/patinforesult/formrecseq", "0"); // 산환등록은 서식번호가 없으므로 '0'
  7106. if(combo5.value == '-'){
  7107. model.setValue("/root/main/patinfo/patinforesult/churchcd", getUserInfo("dutplcecd")); // 본당 세팅
  7108. }else{
  7109. combo12.value = combo5.value ; // 본당 설정
  7110. }
  7111. combo1.value = "2" ; // 본당 무료환자로 설정(1:등록, 2:무료, 3:기타)
  7112. if(combo7.value == '%'){
  7113. model.setValue("/root/main/patinfo/patinforesult/chrgnursid2", getUserId());
  7114. }else{
  7115. combo13.value = combo7.value ; // 본당 담당간호사
  7116. }
  7117. gNewPat = "Y" ; // 신환등록 시 본당 가정간호환자 등록여부 설정
  7118. btn_save.disabled = false ; // 저장버튼 활성화
  7119. btn_confirm.disabled = true ; // 확정버튼 비활성화
  7120. model.makeValue("/root/main/patinfo/patinforesult/isnewpat", "Y"); // 본당 신환등록여부 구분
  7121. model.makeValue("/root/main/patinfo/patinforesult/rereqyn", "N"); // 재의뢰 여부 구분
  7122. // 본당 신규등록시는 가정간호만 등록되므로 2009.04.02
  7123. model.setValue("/root/main/patinfo/patinforesult/patcareflag", "H");
  7124. //model.refresh();
  7125. // 본당 가정간호 환자 대상자 등록(INSERT)
  7126. submit("TXMNF00103");
  7127. model.setValue("/root/main/patinfo/patinforesult/pid", model.getValue("/root/temp/patinfo/patinfo/pid"));
  7128. model.setValue("/root/main/patinfo/patinforesult/inptdt", model.getValue("/root/temp/patinfo/patinfo/inptdt"));
  7129. model.setValue("/root/main/patinfo/patinforesult/instcd", model.getValue("/root/temp/patinfo/patinfo/instcd"));
  7130. //model.refresh();
  7131. grp_newpatientinput.visible = false;
  7132. model.setFocus("input30") ; // 주소입력란 포커스On
  7133. } else {
  7134. output8.value = model.getValue("/root/main/patinfo/patinfolist/pid") ;
  7135. ipt_rrgstno1.value = model.getValue("/root/main/patinfo/patinfolist/rrgstno1") ;
  7136. ipt_rrgstno2.value = model.getValue("/root/main/patinfo/patinfolist/rrgstno2") ;
  7137. ipt_hngnm.value = model.getValue("/root/main/patinfo/patinfolist/hngnm") ;
  7138. ipt_brthdd.value = model.getValue("/root/main/patinfo/patinfolist/brthdd") ;
  7139. cmb_sex.value = model.getValue("/root/main/patinfo/patinfolist/sex") ;
  7140. ipt_hometel.value = model.getValue("/root/main/patinfo/patinfolist/hometel") ;
  7141. ipt_moohontel.value = model.getValue("/root/main/patinfo/patinfolist/mpphontel") ;
  7142. //model.refresh() ;
  7143. btn_savenewpat.disabled = true ;
  7144. }
  7145. } else {
  7146. fClearChildNodeH("/root/main/newpatientinfo/patinfo");
  7147. model.setFocus("ipt_rrgstno1");
  7148. btn_savenewpat.disabled = false ;
  7149. }
  7150. ]]>
  7151. </script>
  7152. </button>
  7153. <shape id="roundrect2" appearance="roundrect" style="left:3px; top:176px; width:286px; height:25px; "/>
  7154. <caption id="caption20" style="left:13px; top:182px; width:266px; height:16px; font-weight:bold; ">* 신규등록시 가정간호 환자로 등록됩니다.</caption>
  7155. </group>
  7156. </xhtml:body>
  7157. </xhtml:html>