123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>전화예약</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <patinfo>
- <patinfolist>
- <pid/>
- <hngnm/>
- <engnm/>
- <chinm/>
- <rrgstno1/>
- <rrgstno2/>
- <brthdd/>
- <sex/>
- <age/>
- <bindpid/>
- <hometel/>
- <mpphontel/>
- <etctel1/>
- <etctel2/>
- <smsaprvyn/>
- <email/>
- <zipcd1/>
- <zipcd2/>
- <zipcdseq/>
- <addr/>
- <detladdr/>
- <btype/>
- <rh/>
- <forgeryn/>
- <nati/>
- <psptno/>
- <recmyn/>
- <recmerid/>
- <recmerrela/>
- <vipyn/>
- <viprem/>
- <religncd/>
- <baptnm/>
- <chchnm/>
- <dethyn/>
- <dethdt/>
- <chosresn/>
- <animyn/>
- <exptresncd/>
- <inhospyn/>
- <remfact/>
- <outuncoamt/>
- <dschuncoamt/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- <flag/>
- </patinfolist>
- </patinfo>
- <popupendflag/>
- <reservation>
- <orddeptcd/>
- <orddeptnm/>
- <orddrid/>
- <specordyn/>
- <ordfild/>
- <fstexamrem/>
- <reexamrem/>
- <orddd/>
- <ordtm/>
- <specorddescyn>N</specorddescyn>
- <insuchrgyn>N</insuchrgyn>
- <ordreqdescyn>N</ordreqdescyn>
- <ordreqhospgrde>1</ordreqhospgrde>
- <acptdd/>
- <acptno/>
- <rsrvflag/>
- <fstacptid/>
- <fstacptdt/>
- <cretno/>
- <acptseqno/>
- <oldorddd/>
- <telrsrvrem/>
- <telrsrvremcd/>
- <updtcnclresn/>
- <rqstflag/>
- <rqsthospcd/>
- <rqstdrid/>
- <onestop/>
- <fsexamflag/>
- <calcyn/>
- <calcflag/>
- <medamtestmyn/>
- <histstat/>
- <dracptyn/>
- <prcpgenryn/>
- <tablename/>
- <remark/>
- <centcd/>
- <subdeptcd/>
- <etcordflag/>
- <centcd/>
- <cnstteamnm/>
- </reservation>
- <result>
- <outhist>
- <outhistlist/>
- </outhist>
- <temp/>
- <chart>
- <chartlist/>
- </chart>
- </result>
- <outhist>
- <outhistlist/>
- </outhist>
- <outrgst>
- <outrgstlist/>
- </outrgst>
- <outtelrsrv>
- <outtelrsrvlist/>
- </outtelrsrv>
- <rsrvflag>T</rsrvflag>
- <h_dcuc>
- <dcuc>
- <disccd/>
- <discunconm/>
- </dcuc>
- </h_dcuc>
- <caloption>1</caloption>
- <oneminute/>
- <srchtelrsrv>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <fromdd/>
- <todd/>
- </srchtelrsrv>
- <patdetlinfo>
- <rsrvinfocnt>
- <ordrsrvinfocnt/>
- <testrsrvinfocnt/>
- </rsrvinfocnt>
- <ordinfo>
- <inreq/>
- <opdd/>
- <reqcnst/>
- <ordcost/>
- <diagdocu/>
- <copyiss/>
- <serdiag/>
- <rem/>
- <formrecseq/>
- </ordinfo>
- <prcpspec>
- <acptyn/>
- <prcpflag/>
- <prcphngflag/>
- <prcpspec/>
- <execdept/>
- <rcptflag/>
- <precureprcpflag/>
- <erprcpflag/>
- <prcpdelivefact/>
- <prcpcd/>
- <prcpnm/>
- <prcpengnm/>
- <prcpvol/>
- <prcpvolunit/>
- <prcpqty/>
- <prcpqtyunit/>
- <prcptims/>
- <drugmthdspccd/>
- <abbrnm/>
- <prcpdayno/>
- <payflagcd/>
- <prcphopedd/>
- <c2yn/>
- <orddd/>
- <orddeptcd/>
- <cretno/>
- <prcpdd/>
- <pid/>
- </prcpspec>
- <outerspec>
- <acptdt/>
- <centcdnm/>
- <orddeptnm/>
- <subdeptcdnm/>
- <usernm/>
- <diagnm/>
- <rem/>
- <orddeptcd/>
- </outerspec>
- <inspec>
- <indd/>
- <dschdd/>
- <orddeptnm/>
- <orddrid/>
- <diagnm/>
- <dschward/>
- </inspec>
- <ordrsrvinfo>
- <prcsstat/>
- <rsrvdt/>
- <centcdnm/>
- <orddeptnm/>
- <subdeptcdnm/>
- <usernm/>
- <rcptflag/>
- <execflag/>
- <rem/>
- </ordrsrvinfo>
- <testrsrvinfo>
- <rsrvdt/>
- <prcpcd/>
- <prcpnm/>
- <execdept/>
- <rcptflag/>
- <execflag/>
- <rem/>
- </testrsrvinfo>
- <prcpcmbdatainfo>
- <pid/>
- <orddd/>
- <orddeptcd/>
- <orddrid/>
- <instcd/>
- <cdid/>
- <cdnm/>
- </prcpcmbdatainfo>
- <cpginfo>
- <cpgyn/>
- </cpginfo>
- </patdetlinfo>
- <chosspecflag>1</chosspecflag>
- <rsrvinfoflag>1</rsrvinfoflag>
- <ebulstat/>
- <rsrvposstmlist>
- <rsrvposstm>
- <rsrvtm/>
- <count/>
- <max/>
- </rsrvposstm>
- <rsrvlist>
- <srchrsrvtm/>
- <pid/>
- <hngnm/>
- <prcpcd/>
- <rgstdepthngnm/>
- </rsrvlist>
- <deptmemo>
- <memodt/>
- <memorem/>
- </deptmemo>
- <updtlist>
- <updtresndesc/>
- </updtlist>
- </rsrvposstmlist>
- <exculist>
- <mainordlist5>
- <chk/>
- <rsrvflagyn/>
- <rcptyn/>
- <telrsrvyn/>
- <prcpdd/>
- <orddepthngnm/>
- <orddrnm/>
- <calcscorcd/>
- <prcpnm/>
- <excuroom/>
- <prcphopedd/>
- <srchrsrvtm/>
- <excutm/>
- <endtime/>
- <roomcd/>
- <rsrvrem/>
- <excuroomnm/>
- <genrflag/>
- <prcpdd/>
- <execprcpuniqno/>
- <execprcpstatcd/>
- <prcpkindcd/>
- <excupartcd/>
- <indd/>
- <actorddd/>
- <orddrid/>
- <execrid/>
- <suppdeptcd/>
- <cnclrescd/>
- <pid/>
- <prcpdelivefact/>
- <rsrvplceflag/>
- <rsrvexcupossyn/>
- <rsrvexmptmplcd/>
- <tmpldata/>
- <rsrvflag/>
- <cretno/>
- <orddd/>
- <rsrvdt/>
- <excuroomcd/>
- <bf_srchrsrvtm/>
- <pacsnocretyn/>
- <rgsttm/>
- <rgstrid/>
- <orddeptcd/>
- <rsrvtmcntlyn/>
- <rsrvpsnnocntlyn/>
- <excucdrem/>
- <prcpgenrflag/>
- <pexcuroomnm/>
- <prcpexecdeptcd/>
- <eqmtifyn/>
- <baseexcuroomcd/>
- <glycostestyn/>
- <bonedentestyn/>
- <glycosyn/>
- <glycoscure/>
- <reqhospcd/>
- </mainordlist5>
- <subordlist2>
- <rsrvflagyn/>
- <rcptyn/>
- <prcpdd/>
- <orddepthngnm/>
- <orddrnm/>
- <execprcpstatcd/>
- <calcscorcd/>
- <prcpnm/>
- <excuroom/>
- <prcphopedd/>
- <srchrsrvtm/>
- <exectm/>
- <excutm/>
- <endtime/>
- <rsrvrem/>
- </subordlist2>
- <subordlist3>
- <rows>
- <pid/>
- <cmtdd/>
- <patcmt/>
- <iudgb/>
- </rows>
- </subordlist3>
- <mainordlist1>
- <ordnm/>
- <orddt/>
- <orddrnm/>
- <deptengabbr/>
- <orddd/>
- <pid/>
- <orddrid/>
- <orddeptcd/>
- </mainordlist1>
- <mainordlist2>
- <suminfo/>
- <orddt/>
- </mainordlist2>
- <mainordlist3>
- <opschedd/>
- </mainordlist3>
- <mainordlist4>
- <rsrvdt/>
- <prcpnm/>
- <basecdflagdesc/>
- <execprcpstatcd/>
- <acttime/>
- <usernm/>
- <rsrvrid/>
- </mainordlist4>
- <mainordlist6>
- <inhopedd/>
- </mainordlist6>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <mainordlist8>
- <prcpcd/>
- <prcpdd/>
- <rsrvdd/>
- <execdd/>
- <payflagcdnm/>
- <prcpgenrflag/>
- </mainordlist8>
- </exculist>
- <orddeptinfo>
- <orddeptlist>
- <orddeptcd/>
- </orddeptlist>
- </orddeptinfo>
- <exculist2>
- <subordlist2>
- <excuroomnm/>
- <prcpdd/>
- <prcpnm/>
- <calcscorcd/>
- <execprcpstatcd/>
- </subordlist2>
- </exculist2>
- <curfile>
- <filename/>
- <rtfcode/>
- </curfile>
- <rtflist/>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <comment1>
- <prcpcmt/>
- </comment1>
- <popupendflag/>
- <ordlist1>
- <mainordlist>
- <no/>
- <pid/>
- <patnm/>
- <prcpgenrflag/>
- <roomcd/>
- <depthngnm/>
- <execprcpuniqno/>
- <orddeptcd/>
- <rsrvdd/>
- <execprcpstatcd/>
- <prcpdd/>
- <sna/>
- <roomcd/>
- <orddrid/>
- <rcptyn/>
- </mainordlist>
- </ordlist1>
- </main>
- <send>
- <pid/>
- <checkfnexam/>
- <acptdd/>
- <acptno/>
- <orddrid/>
- <orddeptcd/>
- <subdeptcd/>
- <orddd/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <date/>
- <updatedata>
- </updatedata>
- <reqpredata/>
- <data>
- <cmb_info>
- <initexecroom>
- <excuroomcdid/>
- </initexecroom>
- </cmb_info>
- <srchpid/>
- <hngnm/>
- <acptlistflag/>
- <orddd/>
- <rsrvdd/>
- <excuroomcd/>
- <suppdeptcd/>
- <suppdeptcd1/>
- <chkflag/>
- <rsrvdate/>
- <orddeptcd/>
- <autorsrvtmset>
- <autorsrvtm/>
- </autorsrvtmset>
- <excuroomnm/>
- <print/>
- <prcpgenrflag/>
- <excucd/>
- <srchdate1/>
- <cmb_info1>
- <initexcuroomgrp>
- <excuroomgrpcdid/>
- <excuroomgrpcdnm/>
- </initexcuroomgrp>
- </cmb_info1>
- </data>
- </send>
- <init>
- <orddeptcd>
- <orddeptcdlist>
- <cd/>
- <nm/>
- <deptengabbr/>
- </orddeptcdlist>
- </orddeptcd>
- <orddrid>
- <orddridlist>
- <cd/>
- <nm/>
- <dp/>
- <sp/>
- <nmsp/>
- </orddridlist>
- </orddrid>
- <P0021list>
- <P0021>
- <cdnm/>
- <cdid/>
- </P0021>
- </P0021list>
- <P0008list>
- <P0008>
- <cdnm/>
- <cdid/>
- </P0008>
- </P0008list>
- <P0341list>
- <P0341>
- <cdnm/>
- <cdid/>
- </P0341>
- </P0341list>
- <P0313list>
- <P0313>
- <cdnm/>
- <cdid/>
- </P0313>
- </P0313list>
- <P0020list>
- </P0020list>
- <P0329list>
- <P0329>
- <cdnm/>
- <cdid/>
- </P0329>
- </P0329list>
- <A0420list>
- <A0420>
- <cdnm/>
- <cdid/>
- </A0420>
- </A0420list>
- <P0414list>
- <P0414>
- <cdnm/>
- <cdid/>
- </P0414>
- </P0414list>
- <P0029list>
- <P0029>
- <cdnm/>
- <cdid/>
- </P0029>
- </P0029list>
- <subdeptcd>
- <subdeptcdlist>
- <dp/>
- </subdeptcdlist>
- </subdeptcd>
- <P0022list>
- <P0022>
- <cdnm/>
- <cdid/>
- </P0022>
- </P0022list>
- <P0380list>
- <P0380>
- <cdnm/>
- <cdid/>
- </P0380>
- </P0380list>
- </init>
- <hidden>
- <source>
- <srchcond/>
- <autoflag/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <acptdd/>
- <fromdd/>
- <todd/>
- <checkfnexam/>
- </source>
- <calendarinfo>
- <calendarinfolist/>
- </calendarinfo>
- <holdrrgstno>
- <rrgstno1/>
- <rrgstno2/>
- <hngnm/>
- </holdrrgstno>
- <session/>
- <init>
- <cntrorddeptdoctorlist>
- <user/>
- </cntrorddeptdoctorlist>
- </init>
- <calendar>
- <year/>
- <month/>
- <weeklist>
- <list>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- <sun_memo/>
- <mon_memo/>
- <tue_memo/>
- <wed_memo/>
- <thu_memo/>
- <fri_memo/>
- <sat_memo/>
- </list>
- </weeklist>
- </calendar>
- <calendar1>
- <year/>
- <month/>
- <weeklist>
- <list>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- <sun_memo/>
- <mon_memo/>
- <tue_memo/>
- <wed_memo/>
- <thu_memo/>
- <fri_memo/>
- <sat_memo/>
- </list>
- </weeklist>
- </calendar1>
- <boolcontrol>
- <bool/>
- </boolcontrol>
- <rsrvrem/>
- <grdcellcolor>
- <calrow/>
- <calcol/>
- <bfcalrow/>
- <bfcalcol/>
- <color/>
- </grdcellcolor>
- </hidden>
- <tmp>
- <patinfolist/>
- <reservation/>
- <cellColor/>
- <userinfo>
- <userinfolist>
- <deptcd/>
- <depthngnm/>
- <userid/>
- <usernm/>
- </userinfolist>
- </userinfo>
- </tmp>
- <sd>
- <deptcd/>
- <deptnm/>
- </sd>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fGetUserInfosSampling(); //세션/root/hidden/session
-
- zbcfGetCodeList(new Array("P0021", "P0008", "P0341", "P0313", "P0020", "P0329", "A0420", "P0414", "P0029", "P0022", "P0380"),
- new Array("/root/init/P0021list", "/root/init/P0008list", "/root/init/P0341list", "/root/init/P0313list", "/root/init/P0020list", "/root/init/P0329list", "/root/init/A0420list", "/root/init/P0414list", "/root/init/P0029list", "/root/init/P0022list", "/root/init/P0380list"),false);
-
- //협력의뢰시 초기 세팅.
- RC = getScreenMenuParameter();
- //RC = '1';
- //alert( RC );
- if( RC == '1' ){
-
- //협진 그룹을 표시한다.
- cmb_rqstflag.visible = true;
- caption33.visible = true;
- cmb_onestop.visible = true;
- caption36.visible = true;
- ipt_rqsthospcd.visible = true;
- caption51.visible = true;
- ipt_rqstdrid.visible = true;
-
- model.setValue("/root/main/reservation/rqstflag", '1');
- RSRVFLAG = '1'; //협력의뢰
- }else{
-
- //협진 그룹을 숨긴다.
- cmb_rqstflag.visible = false;
- caption33.visible = false;
- cmb_onestop.visible = false;
- caption36.visible = false;
- ipt_rqsthospcd.visible = false;
- caption51.visible = false;
- ipt_rqstdrid.visible = false;
-
- model.setValue("/root/main/reservation/rqstflag", '-');
- RSRVFLAG = '2'; //전화예약
- }
-
- //센터 선 적용 여부 체크
- CENTERYN = fCheckCenterYN();
-
- if( CENTERYN == 'Y' ){
- cmb_centcd.disabled = false;
- cnstteamnm.disabled = false;
- combo5.visible = false;
- combo6.visible = false;
- }else{
- cmb_centcd.disabled = true;
- cnstteamnm.disabled = true;
- combo5.visible = false;
- combo6.visible = false;
- }
-
- //진료과코드 진료의사ID 조회
- pamGetDeptCDDrIDList();
-
- //초기화
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
- fInitialize();
-
- //접속user 정보
- submit("TRPMC02511");
-
- //외래이력 라디오버튼 초기화
- radio13.dispatch("xforms-value-changed");
-
- btn_case1.selected = true;
- model.toggle("case5");
-
- btn_sel1.selected = true;
- model.toggle("case1");
-
- initCalendar();
- fChangeButtonColor();
-
- model.refresh();
-
- model1.setFocus("ipt_rrgstno1");
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPMO00123" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/centeryn"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
- <submission id="TRPMO10013" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rsrvpossyn" resultref="/root/send/rsrvpossyn/result"/>
- <submission id="TRPMO00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/result"/>
- <submission id="TRPMO00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/result"/>
- <submission id="TRPMO00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/outrgst"/>
- <submission id="TRPMO00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/h_dcuc"/>
- <submission id="TRPMO00207" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/getfsexamflag" resultref="/root/main/result/fsexam"/>
- <submission id="TRPMB01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/calendarinfo"/>
- <submission id="TRPMC02511" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/tmp/userinfo"/>
- <submission id="TXPMO00208" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/patinfo/patinfolist" resultref="/root/main/result/temp"/>
- <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/source" resultref="/root/main/result/patinfo"/>
- <submission id="TRMNO00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqpredata" resultref="/root/main/patdetlinfo"/>
- <submission id="TRPMO00116" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/erpat" resultref="/root/hidden/rcv/temp"/>
- <submission id="TRPAC00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/emrcnst/send" resultref="/root/temp/emrcnst/temp"/>
- <submission id="TRPMO01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/ordreqform/send" resultref="/root/temp/ordreqform"/>
- <submission id="submission1" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rsrvpossyn" resultref="/root/send/rsrvpossyn/result"/>
- <submission id="TRPMO00112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/temp/send" resultref="/root/hidden/temp/result"/>
- <submission id="TXPMO00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata" resultref="/root/main/result"/>
- <submission id="TXPMO00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/chart" resultref="/root/result/rcv"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../pam/opatmngtweb/js/PMO001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
- <script type="javascript">
- <![CDATA[
-
- //global variable
- var CENTERYN = 'N';
- var RC = '';
- var RSRVFLAG = '2'; //예약구분 : default '2' - 전화예약
- var INSUKIND = gsInsu_IlBan; //보험유형 일반
- //var ETCORDFLAG = '-'; //기타구분 : default '-'
-
- //최근 보험정보 조회
- function fGetInsuKind(){
-
- //최근 접수한 내역에서 보험유형을 구한다. 접수한건이 없을 경우 일반으로 세팅
- var cnt = getNodesetCount("/root/main/outhist/outhistlist/histstat");
- var insukindtmp = '';
- for( var i = 0; i <= cnt; i++){
-
- if( model.getValue("/root/main/outhist/outhistlist[" + i + "]/histstat") == 'R' ){
-
- insukindtmp = model.getValue("/root/main/outhist/outhistlist[" + i + "]/insukind");
- if( insukindtmp != '' && insukindtmp != '-' && insukindtmp != ' ' ){
- INSUKIND = insukindtmp;
- return true;
- }
- }
- }
-
- INSUKIND = gsInsu_IlBan; //보험유형 일반
- return false;
- }
-
- //예약내역 체크
- function fCheckRsrvHist(){
-
- //해당과에 이미 예약된 내역이 있는지 체크
- model.makeNode("/root/send/rsrvpossyn/orddeptcd");
- model.makeNode("/root/send/rsrvpossyn/hngnm");
- model.makeNode("/root/send/rsrvpossyn/rrgstno1");
- model.makeNode("/root/send/rsrvpossyn/rrgstno2");
- model.makeNode("/root/send/rsrvpossyn/result");
-
- model.setValue("/root/send/rsrvpossyn/orddeptcd", model.getValue("/root/main/reservation/orddeptcd"));
- model.setValue("/root/send/rsrvpossyn/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/send/rsrvpossyn/rrgstno1", model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
- model.setValue("/root/send/rsrvpossyn/rrgstno2", model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
-
- var fsexamflag = model.getValue("/root/main/reservation/fsexamflag");
- if( submit("TRPMO10013") ){
- var possyn = model.getValue("/root/send/rsrvpossyn/result/rsrvpossyn/possyn");
-
- if( model.getValue("/root/send/rsrvpossyn/result/rsrvpossyn/possyn") != 'Y' ){
-
- if( messageBox("해당 진료과로 이미 예약된 내역이 있습니다. ", "E999", "") != 6 ){
- model.removeNodeset("/root/send/rsrvpossyn");
- return false;
- }
-
- }
- }else{
-
- if( messageBox("해당 진료과 예약내역 조회에 실패했습니다. 무시하고 계속 진행하시겠습니까?", "Q999", "") != 6 ){
- model.removeNodeset("/root/send/rsrvpossyn");
- return false;
- }
- }
- model.removeNodeset("/root/send/rsrvpossyn");
- return true;
- }
-
- //외래이력 조회
- function fSearch(){
-
- model.copyNode("/root/tmp/patinfolist", "/root/main/patinfo/patinfolist");
-
- //예약정보 / 외래등록내역(달력) / 외래등록내역 초기화
- btn_clear.dispatch("DOMActivate");
-
- if( model.getValue("/root/main/popupendflag") == "ok" ){
-
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- model.setValue("/root/send/pid", pid );
- if( pid.length > 1 ){
- //구환
- model.setValue("/root/send/checkfnexam", 2);
- }else{
- //신환
- model.setValue("/root/send/checkfnexam", 1);
- }
-
- model.setValue("/root/send/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm") );
- model.setValue("/root/send/rrgstno1", model.getValue("/root/main/patinfo/patinfolist/rrgstno1") );
- model.setValue("/root/send/rrgstno2", model.getValue("/root/main/patinfo/patinfolist/rrgstno2") );
- model.resetInstanceNode("/root/main/result");
- model.makeNode("/root/main/result/outhist");
-
- if( submit("TRPMO00201") ){
- model.copyNode("/root/main/outhist", "/root/main/result/outhist");
- fGetInsuKind(); //최근보험유형 검색
- model.refresh();
-
- }
-
- //재원체크
- fInhospynCheck();
- }
- }
-
- //재원환자체크
- function fInhospynCheck()
- {
- if (model.getValue("/root/main/patinfo/patinfolist/inhospyn") == "I")
- {
- messageBox("확인! " + model.getValue("/root/main/patinfo/patinfolist/hngnm") + " 환자는 현재 재원 중입니다!","E999","");
- return false;
-
- }else if (model.getValue("/root/main/patinfo/patinfolist/inhospyn") == "D")
- {
- messageBox("확인! " + model.getValue("/root/main/patinfo/patinfolist/hngnm") + " 환자는 당일 DSC/CHEMO 환자입니다. 입원수납에서 수납하세요!","E999","");
- return false;
-
- }else if (model.getValue("/root/main/patinfo/patinfolist/inhospyn") == "E")
- {
- messageBox("확인! " + model.getValue("/root/main/patinfo/patinfolist/hngnm") + " 환자는 응급 환자입니다!","E999","");
- return false;
-
- }
- return true;
- }
-
- function fDisableInputBox(){
-
- if( model.getValue("/root/hidden/source/checkfnexam") == "1" ){
- ipt_pid.disabled = true;
- cmb_sex.disabled = false;
- ipt_hometel.disabled = false;
- ipt_mpphontel.disabled = false;
- ipt_etctel1.disabled = false;
- ipt_engnm.disabled = false;
- ipt_zipcd1.disabled = false;
- ipt_zipcd2.disabled = false;
- ipt_zipcdseq.disabled = false;
- ipt_detladdr.disabled = false;
-
- model.setFocus("ipt_hngnm");
- }else if( model.getValue("/root/hidden/source/checkfnexam") == "2" ){
- ipt_pid.disabled = false;
- cmb_sex.disabled = true;
- ipt_hometel.disabled = true;
- ipt_mpphontel.disabled = true;
- ipt_etctel1.disabled = true;
- ipt_engnm.disabled = true;
- ipt_zipcd1.disabled = true;
- ipt_zipcd2.disabled = true;
- ipt_zipcdseq.disabled = true;
- ipt_detladdr.disabled = true;
-
- model.setFocus("ipt_rrgstno1");
- }
- }
-
- function fMakeRsrv( histstat ){
-
- //send node reset
- model.resetInstanceNode("/root/send/updatedata");
- model.refresh();
- //make nodes
- model.makeNode("/root/send/updatedata/patinfolist");
- model.makeNode("/root/send/updatedata/reservation");
- model.makeNode("/root/send/updatedata/checkfnexam");
-
- var dd = model.getValue("/root/main/reservation/orddd");
- var fsexamflag = model.getValue("/root/main/reservation/fsexamflag")
- var etcordflag = model.getValue("/root/main/reservation/etcordflag");
-
- //기타진료에 null값 들어가는 문제 방지
- if(etcordflag == '' || etcordflag == ' '){
- model.setValue("/root/main/reservation/etcordflag", '-');
- }
- fGetBirthDD();
-
- var remark = model.getValue("/root/main/reservation/onestop");
-
- if(remark == '-' || remark == ''){
- model.setValue("/root/main/reservation/onestop" , '');
- }else{
- model.setValue("/root/main/reservation/remark" , "ONE STOP:" + cmb_onestop.label );
- }
-
- // //send node 값 세팅..
- var rsrvflag;
- if( histstat == 'T' ){
-
- if(fsexamflag == 'R' || fsexamflag == 'S')
- {
- if( getDateInterval( getCurrentDate(), dd) <= 1 ){
-
- messageBox("재진환자 예약은 2일후 부터가능합니다.", "E999", "");
- model.removeNodeset("/root/main/outrgst/outrgstlist");
- grd_outrgst.refresh();
- return false;
- }
- }else if(fsexamflag == 'F' || fsexamflag == 'D' || fsexamflag == '4'){
- if( getDateInterval( getCurrentDate(), dd) <= 0 ){
-
- messageBox("초진환자는 금일 혹은 금일 이전으로 예약 불가능합니다.", "E999", "");
- model.removeNodeset("/root/main/outrgst/outrgstlist");
- grd_outrgst.refresh();
- return false;
- }
- }
-
- //예약구분
- if(RSRVFLAG == '1'){
- model.setValue("/root/main/reservation/rsrvflag", RSRVFLAG);
- }else{
- model.setValue("/root/main/reservation/rsrvflag", '2'); //전화예약
- }
-
- }else{
- }
-
- model.setValue("/root/send/updatedata/checkfnexam", model.getValue("/root/hidden/source/checkfnexam"));
-
- //환자정보 값을 send 노드 아래로 복사한다.
- model.copyNode("/root/send/updatedata/patinfolist", "/root/main/patinfo/patinfolist");
-
- //환자정보에 있는 진료일자, 진료과, 접수일, 접수번호, 예약 구분 플래그를 삭제한다. - PMOHTEMP 테이블에서 초진환자 정보를 가져올때 같이 가져오기 때문에..
- model.removenode("/root/send/updatedata/patinfolist/orddd");
- model.removenode("/root/send/updatedata/patinfolist/orddeptcd");
- model.removenode("/root/send/updatedata/patinfolist/acptdd");
- model.removenode("/root/send/updatedata/patinfolist/acptno");
- model.removenode("/root/send/updatedata/patinfolist/rsrvflag");
-
- //예약정보를 SEND로 복사한다.
- model.copyNode("/root/send/updatedata/reservation", "/root/main/reservation");
- //alert(instance1.selectNodesXml("/root/send/updatedata/reservation"));
- model.setValue("/root/send/updatedata/reservation/histstat", histstat);
- //변경전 데이터를 가져가기 위해 변경전의 데이터도 함께 SEND로 복사한다.
- if( histstat == 'C'){
- //변경전의 데이터 세팅..
- model.makeNode("/root/send/updatedata/reservation/bforddd");
- model.makeNode("/root/send/updatedata/reservation/bfordtm");
- model.makeNode("/root/send/updatedata/reservation/bforddeptcd");
- model.makeNode("/root/send/updatedata/reservation/bforddrid");
- model.makeNode("/root/send/updatedata/reservation/bfacptseqno");
- model.makeNode("/root/send/updatedata/reservation/bfcretno");
- //model.makeNode("/root/send/updatedata/reservation/updtcnclresn");
- model.makeNode("/root/send/updatedata/reservation/bfhiststat");
-
- model.setValue("/root/send/updatedata/reservation/bforddd", model.getValue("/root/tmp/reservation/orddd"));
- model.setValue("/root/send/updatedata/reservation/bfordtm", model.getValue("/root/tmp/reservation/ordtm"));
- model.setValue("/root/send/updatedata/reservation/bforddeptcd", model.getValue("/root/tmp/reservation/orddeptcd"));
- model.setValue("/root/send/updatedata/reservation/bforddrid", model.getValue("/root/tmp/reservation/orddrid"));
- model.setValue("/root/send/updatedata/reservation/bfhiststat", model.getValue("/root/tmp/reservation/histstat"));
- model.setValue("/root/send/updatedata/reservation/bfacptseqno", model.getValue("/root/tmp/reservation/acptseqno"));
- model.setValue("/root/send/updatedata/reservation/bfcretno", model.getValue("/root/tmp/reservation/cretno"));
- }else if( histstat == 'X'){
-
- }
- //2007-10-08 이동식 추가
- if( histstat != 'X' ){
- if(histstat == 'C'){
- if( model.getValue("/root/main/reservation/orddeptcd") != model.getValue("/root/tmp/reservation/orddeptcd") ||
- model.getValue("/root/main/reservation/orddrid") != model.getValue("/root/tmp/reservation/orddrid") ||
- model.getValue("/root/main/reservation/orddd") != model.getValue("/root/tmp/reservation/orddd") ||
- model.getValue("/root/main/reservation/ordtm") != model.getValue("/root/tmp/reservation/ordtm")){
- var orddrid = model.getValue("/root/main/reservation/orddrid");
- var orddeptcd = model.getValue("/root/main/reservation/orddeptcd");
- var orddd = model.getValue("/root/main/reservation/orddd");
- var ordtm = model.getValue("/root/main/reservation/ordtm");
- var fsexamflag = model.getValue("/root/main/reservation/fsexamflag");
- var subdeptcd = model.getValue("/root/main/reservation/subdeptcd");
- var retVal = fGetVerifyHoli(orddrid, orddeptcd, subdeptcd, orddd, ordtm, fsexamflag, RSRVFLAG);
- if( retVal == false ){
-
- return false;
- }else if( retVal != true ){
- if( CENTERYN != 'Y' ){
- //센터접수
- model.setValue("/root/send/updatedata/reservation/centcd", retVal);
- model.setValue("/root/main/reservation/centcd", retVal);
- }
- }else{
- if( CENTERYN != 'Y' ){
- //센터코드 초기화
- model.setValue("/root/send/updatedata/reservation/centcd", '-');
- model.setValue("/root/main/reservation/centcd", '-');
- }
- }
- }
- }else{
- var orddrid = model.getValue("/root/main/reservation/orddrid");
- var orddeptcd = model.getValue("/root/main/reservation/orddeptcd");
- var orddd = model.getValue("/root/main/reservation/orddd");
- var ordtm = model.getValue("/root/main/reservation/ordtm");
- var fsexamflag = model.getValue("/root/main/reservation/fsexamflag");
- var subdeptcd = model.getValue("/root/main/reservation/subdeptcd");
- var retVal = fGetVerifyHoli(orddrid, orddeptcd, subdeptcd, orddd, ordtm, fsexamflag, RSRVFLAG);
- if( retVal == false ){
-
- return false;
- }else if( retVal != true ){
-
- //센터접수
- model.setValue("/root/send/updatedata/reservation/centcd", retVal);
- model.setValue("/root/main/reservation/centcd", retVal);
- }else{
-
- //센터코드 초기화
- model.setValue("/root/send/updatedata/reservation/centcd", '-');
- model.setValue("/root/main/reservation/centcd", '-');
- }
-
- }
- }
- //END..
- //reset result node
- model.resetInstanceNode("/root/main/result");
- model.makeNode("/root/main/result/outhist");
-
-
- if(submit("TXPMO00202")){
- model.copyNode("/root/main/outhist", "/root/main/result/outhist");
- model.refresh();
- }else{
- return false;
- }
-
- //2007-10-22 이동식 추가
- if( model.getValue("/root/main/patinfo/patinfolist/pid").length > 1 ){ //신환일경우 차트대출 안함.
-
- if( getNodesetCount("/root/main/result/chart/chartlist") < 1 || model.getValue("/root/main/reservation/tablename") == 'temp'){
-
- return false;
- }
-
- model.removeNodeset("/root/send/chart");
- if( histstat == 'T' ){ //예약
- model.makeValue("/root/send/chart/high_flag", "I");
- model.makeValue("/root/send/chart/flag", "I");
- model.makeValue("/root/send/chart/pid", model.getValue("/root/main/result/chart/chartlist/pid"));
- model.makeValue("/root/send/chart/orddd", model.getValue("/root/main/result/chart/chartlist/orddd"));
- model.makeValue("/root/send/chart/cretno", model.getValue("/root/main/result/chart/chartlist/cretno"));
- model.makeValue("/root/send/chart/acptseqno", model.getValue("/root/main/result/chart/chartlist/acptseqno"));
- model.makeValue("/root/send/chart/orddeptcd", model.getValue("/root/main/result/chart/chartlist/orddeptcd"));
- model.makeValue("/root/send/chart/orddrid", model.getValue("/root/main/result/chart/chartlist/orddrid"));
- model.makeValue("/root/send/chart/ordtm", model.getValue("/root/main/result/chart/chartlist/ordtm"));
- model.makeValue("/root/send/chart/fsexamflag", model.getValue("/root/main/result/chart/chartlist/fsexamflag"));
- model.makeValue("/root/send/chart/rsrvflag", '2');
- model.makeValue("/root/send/chart/msgcnts", '-');
- model.makeValue("/root/send/chart/subdeptcd", model.getValue("/root/main/reservation/subdeptcd"));
- model.makeValue("/root/send/chart/centcd", model.getValue("/root/main/reservation/centcd"));
- //alert( instance1.selectSingleNode("/root/send/chart").xml);
- }else if( histstat == 'C' ){ //변경
-
- model.makeValue("/root/send/chart[1]/high_flag", "U");
- model.makeValue("/root/send/chart[1]/flag", "D");
- model.makeValue("/root/send/chart[1]/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.makeValue("/root/send/chart[1]/orddd", model.getValue("/root/tmp/reservation/orddd"));
- model.makeValue("/root/send/chart[1]/cretno", model.getValue("/root/tmp/reservation/cretno"));
- model.makeValue("/root/send/chart[1]/acptseqno", model.getValue("/root/tmp/reservation/acptseqno"));
- model.makeValue("/root/send/chart[1]/orddeptcd", model.getValue("/root/tmp/reservation/orddeptcd"));
- model.makeValue("/root/send/chart[1]/orddrid", model.getValue("/root/tmp/reservation/orddrid"));
- model.makeValue("/root/send/chart[1]/ordtm", model.getValue("/root/tmp/reservation/ordtm"));
- model.makeValue("/root/send/chart[1]/fsexamflag", model.getValue("/root/tmp/reservation/fsexamflag"));
- model.makeValue("/root/send/chart[1]/rsrvflag", model.getValue("/root/tmp/reservation/rsrvflag"));
- model.makeValue("/root/send/chart[1]/msgcnts", '-');
- model.makeValue("/root/send/chart[1]/subdeptcd", model.getValue("/root/tmp/reservation/subdeptcd"));
- model.makeValue("/root/send/chart[1]/centcd", model.getValue("/root/tmp/reservation/centcd"));
-
- model.makeValue("/root/send/chart[2]/high_flag", "U");
- model.makeValue("/root/send/chart[2]/flag", "I");
- model.makeValue("/root/send/chart[2]/pid", model.getValue("/root/main/result/chart/chartlist/pid"));
- model.makeValue("/root/send/chart[2]/orddd", model.getValue("/root/main/result/chart/chartlist/orddd"));
- model.makeValue("/root/send/chart[2]/cretno", model.getValue("/root/main/result/chart/chartlist/cretno"));
- model.makeValue("/root/send/chart[2]/acptseqno", model.getValue("/root/main/result/chart/chartlist/acptseqno"));
- model.makeValue("/root/send/chart[2]/orddeptcd", model.getValue("/root/main/result/chart/chartlist/orddeptcd"));
- model.makeValue("/root/send/chart[2]/orddrid", model.getValue("/root/main/result/chart/chartlist/orddrid"));
- model.makeValue("/root/send/chart[2]/ordtm", model.getValue("/root/main/result/chart/chartlist/ordtm"));
- model.makeValue("/root/send/chart[2]/fsexamflag", model.getValue("/root/main/result/chart/chartlist/fsexamflag"));
- model.makeValue("/root/send/chart[2]/rsrvflag", model.getValue("/root/main/reservation/rsrvflag"));
- model.makeValue("/root/send/chart[2]/msgcnts", '-');
- model.makeValue("/root/send/chart[2]/subdeptcd", model.getValue("/root/main/reservation/subdeptcd"));
- model.makeValue("/root/send/chart[2]/centcd", model.getValue("/root/main/reservation/centcd"));
-
- }else if( histstat == 'X' ){ //취소
- model.makeValue("/root/send/chart/high_flag", "D");
- model.makeValue("/root/send/chart/flag", "D");
- model.makeValue("/root/send/chart/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.makeValue("/root/send/chart/orddd", model.getValue("/root/tmp/reservation/orddd"));
- model.makeValue("/root/send/chart/cretno", model.getValue("/root/tmp/reservation/cretno"));
- model.makeValue("/root/send/chart/acptseqno", model.getValue("/root/tmp/reservation/acptseqno"));
- model.makeValue("/root/send/chart/orddeptcd", model.getValue("/root/tmp/reservation/orddeptcd"));
- model.makeValue("/root/send/chart/orddrid", model.getValue("/root/tmp/reservation/orddrid"));
- model.makeValue("/root/send/chart/ordtm", model.getValue("/root/tmp/reservation/ordtm"));
- model.makeValue("/root/send/chart/fsexamflag", model.getValue("/root/tmp/reservation/fsexamflag"));
- model.makeValue("/root/send/chart/rsrvflag", model.getValue("/root/tmp/reservation/rsrvflag"));
- model.makeValue("/root/send/chart/msgcnts", '-');
- model.makeValue("/root/send/chart/subdeptcd", model.getValue("/root/main/reservation/subdeptcd"));
- model.makeValue("/root/send/chart/centcd", model.getValue("/root/main/reservation/centcd"));
-
- }
-
- submit("TXPMO00105");
- model.removeNodeset("/root/send/chart");
- //END..
- }
-
- //예약/수정/취소가 성공하면 화면 클리어한다.
- fClearAfterSave();
- model.resetInstanceNode("/root/main/h_dcuc/dcuc");
- model.refresh();
- return true;
- }
-
- function fInitialize(){
- model.resetInstanceNode("/root/main/reservation");
- model.resetInstanceNode("/root/main/srchtelrsrv");
- model.resetInstanceNode("/root/hidden/holdrrgstno");
- model.resetInstanceNode("/root/main/h_dcuc/dcuc");
- model.removeNodeset("/root/main/outhist/outhistlist");
- model.removeNodeset("/root/main/outrgst/outrgstlist");
- model.removeNodeset("/root/main/outtelrsrv/outtelrsrvlist");
-
- model.resetInstanceNode("/root/tmp");
-
- //1분 간격 풀기 초기화
- model.setValue("/root/main/oneminute", "");
-
- //달력 초기화
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate();
- setCalendar(isDate);
-
- //환자특이내역 존재여부 표기 초기화
- btn_patspcfyn.attribute("background-color") = "#c0c0c0";
-
- //설명여부 디폴트값 세팅
- model.setValue("/root/main/reservation/specorddescyn", 'N');
- model.setValue("/root/main/reservation/insuchrgyn", 'N');
- model.setValue("/root/main/reservation/ordreqdescyn", ' ');
- model.setValue("/root/main/reservation/ordreqhospgrde", '1');
-
- model.setValue("/root/main/patinfo/patinfolist/zipcd1", '000');
- model.setValue("/root/main/patinfo/patinfolist/zipcd2", '000');
- model.setValue("/root/main/patinfo/patinfolist/zipcdseq", '0');
- //예약 세팅
- model.setValue("/root/main/reservation/telrsrvrem", '-');
- model.setValue("/root/main/reservation/updtcnclresn", '-');
-
- //신환 + 구환 조회 플래그 세팅
- model.setValue("/root/hidden/source/checkfnexam", "1");
-
- //협력의뢰 디폴트 세팅
- if( RC == '1' ){
- model.setValue("/root/main/reservation/rqstflag", '1');
- }
-
- model.setValue("/root/main/reservation/etcordflag", "-");
- //보험정보 초기화
- INSUKIND = gsInsu_IlBan; //보험유형 일반
- model.refresh();
- }
-
- function fGetOutRgst(){
-
- model.setValue("/root/send/orddeptcd", model.getValue("/root/main/reservation/orddeptcd"));
- model.setValue("/root/send/subdeptcd", model.getValue("/root/main/reservation/subdeptcd"));
- model.setValue("/root/send/orddrid", model.getValue("/root/main/reservation/orddrid"));
- model.setValue("/root/send/orddd", model.getValue("/root/main/reservation/orddd"));
-
- if( submit("TRPMO00204") ){
- grd_outrgst.rebuildStyle();
- setRowStyle("grd_outrgst", "4^4^4", "F^D", "fsexamflag");
- }
- }
-
- //검사일정 정원 지우기
- function fRemoveCapa(){
- var rows = grd_calendar.rows;
- var cols = grd_calendar.cols;
- var cellColor = '';
- for( var row = 1; row < rows; row++ ){
-
- for( var col = 0; col < 7; col++){
-
- cellColor = grd_calendar.cellStyle("background-color", row, col);
- if( cellColor == "#99ff66" ){
-
- grd_calendar.valueMatrix(row , col + 7) = '';
- }
- }
- }
-
- grd_calendar.refresh();
- }
-
- //달력을 클릭(선택) 했을 때
- function fClickOnCalendar(){
- var calRow = grd_calendar.row;
- var calCol = grd_calendar.col;
-
- if(calRow > 0 && calCol >= 0 ){
- calCol = calCol % 7;
- }else{
- return false;
- }
-
- //달력색상을 저장을 위한 노드
- model.makeNode("/root/tmp/cellColor");
-
- //검사일정 체크위해
- var cellColor = grd_calendar.cellStyle("background-color", calRow, calCol);
- //선택된 셀 표시
- setCellColor(calRow, calCol);
-
- //달력색상을 저장(예약시 마감된 날짜를 처리하기 위해)
- model.setValue("/root/tmp/cellColor", cellColor);
-
- var isDay = grd_calendar.valueMatrix(calRow, calCol);
- if( isDay != "" ){
- if( isDay.length == 1 ) isDay = "0" + isDay;
-
- var dd = ( (model.getValue("/root/hidden/calendar/year")).concat(model.getValue("/root/hidden/calendar/month")) ).concat(isDay);
- if( cellColor == "#99ff66" ){
- messageBox("의사일정이 검사로 잡힌 날은 전화예약 할 수 없습니다.", "E999", "");
- model.removeNodeset("/root/main/outrgst/outrgstlist");
- grd_outrgst.refresh();
- return false;
- }else if( grd_calendar.valueMatrix(calRow, calCol + 7) == '' || grd_calendar.valueMatrix(calRow, calCol + 7) == ' ' || grd_calendar.valueMatrix(calRow, calCol + 7).getTrim() == '\n'){
-
- var userid = model.getValue("/root/tmp/userinfo/userinfolist/userid");
- if( userid != '81030220'){
- messageBox("의사 진료일정이 없는 날입니다.", "E999", "");
- model.removeNodeset("/root/main/outrgst/outrgstlist");
- grd_outrgst.refresh();
- return false;
- }
- }
- //달력날짜 세팅
- model.setValue("/root/main/reservation/orddd", dd);
- model.refresh();
- ipt_orddd.dispatch("xforms-value-changed");
-
- if( model.getValue("/root/main/reservation/orddeptcd") != "" && model.getValue("/root/main/reservation/orddrid") != ""
- && model.getValue("/root/main/reservation/orddd") != ""){
-
- fGetOutRgst();
- }
-
- }
- }
-
- function fGetCalendarData(){
-
- //1분 간격 풀기 초기화
- model.setValue("/root/main/oneminute", "");
-
- //외래등록내역 삭제
- model.removeNodeset("/root/main/outrgst/outrgstlist");
-
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/orddeptcd", model.getValue("/root/main/reservation/orddeptcd"));
- model.setValue("/root/send/subdeptcd", model.getValue("/root/main/reservation/subdeptcd"));
- model.setValue("/root/send/orddrid", model.getValue("/root/main/reservation/orddrid"));
- model.setValue("/root/send/date", model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month"));
-
- model.resetInstanceNode("/root/main/result");
- model.makeNode("/root/main/result/orddrfild");
- model.makeNode("/root/main/result/calendarinfo");
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate();
-
- //진료의사 정보가 없을 경우
- if( model.getValue("/root/send/orddrid") == '' ){
-
- setCalendar(isDate);
- }else{
-
- if(submit("TRPMO00203")){
- if( getNodesetCount("/root/main/result/calendarinfo/calendarinfolist") > 0 ){
- model.copyNode("/root/hidden/calendarinfo", "/root/main/result/calendarinfo");
- setCalendar2(isDate);
- }else{
- setCalendar(isDate);
- }
-
- model.setValue("/root/main/reservation/ordfild", model.getValue("/root/main/result/orddrfild/orddrfildlist/ordfild"));
- model.setValue("/root/main/reservation/fstexamrem", model.getValue("/root/main/result/orddrfild/orddrfildlist/fstexamrem"));
- model.setValue("/root/main/reservation/reexamrem", model.getValue("/root/main/result/orddrfild/orddrfildlist/reexamrem"));
- model.refresh();
-
- }
- }
- }
-
- function fCheckSearchCond(){
-
- if( model.getValue("/root/hidden/source/checkfnexam") == '1' ){
- return true;
- }else{
- model.setValue("/root/hidden/source/checkfnexam", '1');
- fDisableInputBox();
- model.refresh();
- return true;
- }
- }
-
- function fOneMinuteSpread(){
- if( model.getValue("/root/main/oneminute") == 'Y' || model.getValue("/root/main/oneminute") == 'y' ){
- var rowCount = grd_outrgst.rows - grd_outrgst.fixedRows;
- var timeNow;
- var timeNext;
- var orddd;
- var interval;
- for( var outer = 1; outer < rowCount; outer++ ){
-
- orddd = grd_outrgst.valueMatrix( outer, 4);
- timeNow = grd_outrgst.valueMatrix( outer, 0);
- timeNext = grd_outrgst.valueMatrix( outer + 1, 0);
- interval = getTimeInterval( timeNow, timeNext ) / 60;
-
- for( inner = 1; inner < interval; inner++ ){
-
- grd_outrgst.insertRow(outer, 'below', false, false);
- outer = outer + 1;
- rowCount = rowCount + 1;
-
- timeNow = ((timeNow.toDate("hhmm")).getAddDate(1, 'm')).getDateFormat("hhmm");
- grd_outrgst.valueMatrix(outer, 0) = timeNow;
- grd_outrgst.valueMatrix(outer, 4) = orddd;
-
- }
- }
- grd_outrgst.rebuild();
- }else{
- fGetOutRgst();
- grd_outrgst.rebuild();
- }
- }
-
- function fGetSexAgeBirthDD(){
-
- model.resetInstanceNode("/root/main/patinfo/patinfolist/brthdd");
-
- var brthdd;
- var rrgstno1 = model.getValue("/root/main/patinfo/patinfolist/rrgstno1");
- var rrgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
-
- if (rrgstno1.length != 6) {
- model.setFocus("ipt_rrgstno1");
- return false;
- }
-
- if (rrgstno2.length != 7) {
- model.setFocus("ipt_rrgstno2");
- return false;
- }
- var gubn = rrgstno2.substr(0,1);
- switch(gubn){
- case '1' :
- case '2' :
- case '5' :
- case '6' :
- brthdd = '19'.concat(rrgstno1);
- break;
- case '3' :
- case '4' :
- case '7' :
- case '8' :
- brthdd = '20'.concat(rrgstno1);
- break;
- case '9' :
- case '0' :
- brthdd = '18'.concat(rrgstno1);
- break;
- default :
- brthdd = '19'.concat(rrgstno1);
- break;
- }
-
- if (isValidDateTime(brthdd, "YYYYMMDD") == false) {
- messageBox("주민번호 앞6자리 형식오류입니다. 올바른 일자형태로 입력하십시요!","E999","");
- model.setValue("/root/main/patinfo/patinfolist/brthdd","00000000");
- model.setFocus("ipt_rrgstno1");
- return false;
- }
-
- if( isValidDateTime(model.getValue("/root/main/patinfo/patinfolist/brthdd")) == false){
- model.setValue("/root/main/patinfo/patinfolist/brthdd",brthdd);
- }
-
- var sex = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
- if( model.getValue("/root/main/patinfo/patinfolist/sex") != 'M' || model.getValue("/root/main/patinfo/patinfolist/sex") != 'F' ){
- model.setValue("/root/main/patinfo/patinfolist/sex",getGender(sex));
- }
-
- var rrgstno = rrgstno1.concat(rrgstno2);
-
- model.setValue("/root/main/patinfo/patinfolist/age",getFullAge(model.getValue("/root/main/patinfo/patinfolist/brthdd")));
-
- if (isResidentNo(rrgstno) == false)
- {
- messageBox("유효하지 않은 주민번호입니다!","E999","");
- model.setFocus("ipt_rrgstno1");
- return false;
- }
-
- return true;
- }
-
- //예약데이터가 정상적으로 모두 입력되었는지 체크한다.
- function fIsRsrvDataOK(){
-
- //환자이름 체크
- if( model.getValue("/root/main/patinfo/patinfolist/hngnm").getTrim().length < 2 ){
- messageBox("환자 이름을 정확히 입력하지 않았습니다. 다시 시도해 주십시오.", "E999", "" );
- model.setFocus("ipt_pid");
- return false;
-
- }
-
- //환자 휴대전화번호 체크
- if( model.getValue("/root/main/patinfo/patinfolist/mpphontel").getTrim().length < 1 && model.getValue("/root/main/patinfo/patinfolist/hometel").getTrim().length < 1 ){
- messageBox("환자 휴대전화 번호 또는 연락처는 필수 입력입니다. 다시 시도해 주십시오.", "E999", "" );
- if(model.getValue("/root/main/patinfo/patinfolist/mpphontel").getTrim().length < 1){
- model.setFocus("ipt_mpphontel");
- }else{
- model.setFocus("ipt_hometel");
- }
- return false;
-
- }
-
- //환자 주민번호 체크
- var rrgstno1 = model.getValue("/root/main/patinfo/patinfolist/rrgstno1").getTrim();
- var rrgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2").getTrim();
- var rrgstno = rrgstno1.concat(rrgstno2);
-
- if( rrgstno1.length != 6 || rrgstno2.length != 7){
- if( messageBox("주민등록번호를 정확히 입력하지 않았습니다. 무시하고 계속 진행하시겠습니까?", "Q999", "") != 6){
- model.setFocus("ipt_rrgstno1");
- return false;
- }
-
- //사용자 요청사항 주민등록번호를 입력하지 않아도 예약이 진행되도록!!
- if(rrgstno1.length != 6){
- model.setValue("/root/main/patinfo/patinfolist/rrgstno1", "000000");
- }
-
- if(rrgstno2.length != 7){
- model.setValue("/root/main/patinfo/patinfolist/rrgstno2", "0000000");
- }
-
- }else if (isResidentNo(rrgstno) == false){
- if( messageBox("유효하지 않은 주민등록번호입니다. 무시하고 계속 진행하시겠습니까?", "Q999", "") != 6){
- model.setFocus("ipt_rrgstno1");
- return false;
- }
- }
-
- //환자 주소 체크 - 우편번호 포함. 2007-10-06 수정 - 조주희 선생님 요구사항 오류체크하지 말것!
- var zipcd1 = model.getValue("/root/main/patinfo/patinfolist/zipcd1");
- var zipcd2 = model.getValue("/root/main/patinfo/patinfolist/zipcd2");
- if( zipcd1.length != 3 || zipcd2.length != 3 ){
- model.setValue("/root/main/patinfo/patinfolist/zipcd1", '000');
- model.setValue("/root/main/patinfo/patinfolist/zipcd2", '000');
- model.setValue("/root/main/patinfo/patinfolist/zipcdseq", '0');
- model.refresh();
- }
-
- var orddeptcd = model.getValue("/root/main/reservation/orddeptcd");
- var orddrid = model.getValue("/root/main/reservation/orddrid");
- var orddd = model.getValue("/root/main/reservation/orddd");
- var ordtm = model.getValue("/root/main/reservation/ordtm");
- var nowDD = getCurrentDate();
- var nowTM = getCurrentTime();
-
- if( orddeptcd == '' || orddeptcd == null || orddeptcd == '-' || orddeptcd == ' ' ){
-
- messageBox("진료과가 선택되지 않았습니다. 다시 시도해 주십시오.", "E999", "" );
- model.setFocus("cmb_deptcd");
- return false;
- }else if( orddrid == '' || orddrid == null || orddrid == '-' || orddrid == ' ' ){
-
- messageBox("진료의사가 선택되지 않았습니다. 다시 시도해 주십시오.", "E999", "" );
- model.setFocus("cmb_orddrid");
- return false;
- }else if( ! isValidDateTime( orddd, "YYYYMMDD")){
-
- messageBox("잘못된 진료일자를 입력하셨습니다. 다시 시도해 주십시오.", "E999", "" );
- model.setFocus("ipt_orddd");
- return false;
- }else if( ! isValidDateTime( ordtm, "hhmm")){
-
- messageBox("잘못된 진료시간을 입력하셨습니다. 다시 시도해 주십시오.", "E999", "" );
- model.setFocus("ipt_ordtm");
- return false;
- }
- var ordreqdesc = model.getValue("/root/main/reservation/ordreqdescyn");
-
- //의뢰서 설명 여부 체크
- if( ordreqdesc == '' || ordreqdesc == null || ordreqdesc == '-' || ordreqdesc == ' ')
- {
- messageBox("의뢰서 설명 여부가 선택되지 않았습니다. 다시 시도해 주십시오", "E999");
- return false;
- }
-
- return true;
- }
-
- //예약/접수 정보 변경시 변경 할 수 있는 정보인지 또는 데이터를 올바르게 변경하였는지 등을 체크한다.
- function fIsRsrvUpdtDataOK(){
- var histstat = model.getValue("/root/main/reservation/histstat");
- var dracptyn = model.getValue("/root/main/reservation/dracptyn");
- var prcpgenryn = model.getValue("/root/main/reservation/prcpgenryn");
-
- //예약이력
- if( histstat == 'T' ){
- return true;
-
- //접수이력
- }else if( histstat == 'R' ){
-
- //의사접수여부가 'Y'인 내역은 변경/취소할 수 없습니다.
- if( dracptyn == 'Y' ){
-
- messageBox("의사가 접수한 내역은 변경/취소할 수 없습니다.", "E999", "");
- return false;
-
- //처방발생여부가 'Y'인 내역은 변경/취소할 수 없습니다.
- }else if( prcpgenryn != '-' && prcpgenryn != '1A' && prcpgenryn != '1C'){
-
- messageBox("처방이 발생한 내역은 변경/취소할 수 없습니다.", "E999", "");
- return false;
- }else{
-
- var specordyn = model.getValue("/root/main/reservation/specorddescyn");
- var specordyn_old = model.getValue("/root/tmp/reservation/specorddescyn");
- var fsexamflag = model.getValue("/root/main/reservation/fsexamflag");
- var fsexamflag_old = model.getValue("/root/tmp/reservation/fsexamflag");
-
- //선택진료여부가 변경될 경우
- if( specordyn != specordyn_old ){
-
- model.setValue("/root/main/reservation/calcyn", 'Y');
- model.setValue("/root/main/reservation/calcflag", 'Y');
- messageBox("선택진료여부가 변경되었습니다. 진찰료에 대해 추가금액 또는 환불금액이 발생할 수 있습니다.", "I999", "");
-
- }
-
- //초재진구분이 변경될 경우
- if( (fsexamflag != fsexamflag_old) && (fsexamflag == 'R' || fsexamflag_old=='R') ){
-
- model.setValue("/root/main/reservation/calcyn", 'Y');
- model.setValue("/root/main/reservation/calcflag", 'Y');
- messageBox("초재진구분이 변경되었습니다. 진찰료에 대해 추가금액 또는 환불금액이 발생할 수 있습니다.", "I999", "");
- }
-
- return true;
- }
-
- //변경/취소할 수 없는 이력내역
- }else{
- messageBox("수정/삭제 하실 수 없는 외래이력내역입니다.", "E999", "");
- return false;
- }
- }
-
- //초재진여부 조회
- function fGetFsexamFlag(){
-
- //신환/구환 체크
- if( model.getValue("/root/main/patinfo/patinfolist/pid") == '' || model.getValue("/root/main/patinfo/patinfolist/pid") == null ){
-
- model.setValue("/root/hidden/source/checkfnexam", "1");
- }else{
- model.setValue("/root/hidden/source/checkfnexam", "2");
- }
-
- //구환환자
- if( model.getValue("/root/hidden/source/checkfnexam") == 2 ){
-
- var orddd = model.getValue("/root/main/reservation/orddd");
- var nowDD = getCurrentDate();
- var orddeptcd = model.getValue("/root/main/reservation/orddeptcd");
- var orddrid = model.getValue("/root/main/reservation/orddrid");
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
-
- var oldcretno = model.getValue("/root/tmp/reservation/cretno");
- var oldacptseqno = model.getValue("/root/tmp/reservation/acptseqno");
- var oldorddd = model.getValue("/root/tmp/reservation/orddd");
-
-
-
- if( orddd == '' ){
- orddd = nowDD;
- }
-
- if( isValidDateTime(orddd, "YYYYMMDD") && getDateInterval( nowDD, orddd) >= 0 ){
-
- var fsexamflag = model.getValue("/root/main/reservation/fsexamflag");
- model.setValue("/root/main/reservation/fsexamflag", '');
-
- if( orddeptcd == '' ){ // || orddrid == '' ){
- return false;
-
- }else if( pid == '' ){
- return false;
- }else{
-
- model.removeNodeset("/root/send/getfsexamflag");
-
- model.makeValue("/root/send/getfsexamflag/flag", 'B');
- model.makeValue("/root/send/getfsexamflag/mskind", 'M');
- model.makeValue("/root/send/getfsexamflag/ordtype", 'O');
- model.makeValue("/root/send/getfsexamflag/tmp", '-');
- model.makeValue("/root/send/getfsexamflag/pid", pid);
- model.makeValue("/root/send/getfsexamflag/orddrid", orddrid);
- model.makeValue("/root/send/getfsexamflag/orddeptcd", orddeptcd);
- model.makeValue("/root/send/getfsexamflag/orddd", orddd);
- model.makeValue("/root/send/getfsexamflag/oldcretno", oldcretno);
- model.makeValue("/root/send/getfsexamflag/oldacptseqno", oldacptseqno);
- model.makeValue("/root/send/getfsexamflag/oldorddd", oldorddd);
-
- model.makeNode("/root/main/result/fsexam");
- if(submit("TRPMO00207")){
-
- var fsexamflag = model.getValue("/root/main/result/fsexam/otpt/fsexamflag");
- model.setValue("/root/main/reservation/fsexamflag", fsexamflag);
-
- // model.alert(fsexamflag);
- if( fsexamflag == "R" ){
- //alert( fsexamflag );
- opt_remfact.attribute("ref") = "/root/main/reservation/reexamrem";
- model.refresh();
- }else{
- //alert( fsexamflag );
- opt_remfact.attribute("ref") = "/root/main/reservation/fstexamrem";
- model.refresh();
- }
- }
-
- model.removeNodeset("/root/main/result/fsexam");
- model.removeNodeset("/root/send/getfsexamflag");
- }
-
- }
-
- //신환환자
- }else{
-
- model.setValue("/root/main/reservation/fsexamflag", 'F');
-
- opt_remfact.attribute("ref") = "/root/main/reservation/fstexamrem";
- model.refresh();
- }
- }
-
- //2007-10-05 이동식 - 예약/변경/취소 후 화면 클리어, 주민등록번호는 하단에 따로 보관한다.
- function fClearAfterSave(){
- //주민등록번호 보관
- var rrgstno1 = model.getValue("/root/main/patinfo/patinfolist/rrgstno1");
- var rrgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
- var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
-
- //화면클리어
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
-
- //fInitialize();
- btn_clear.dispatch("DOMActivate");
-
- //주민등록번호를 화면 하단에 저장.
- model.setValue("/root/hidden/holdrrgstno/rrgstno1", rrgstno1);
- model.setValue("/root/hidden/holdrrgstno/rrgstno2", rrgstno2);
- model.setValue("/root/hidden/holdrrgstno/hngnm", hngnm);
- model.refresh();
- }
- //END..
-
- //2008-04-23일 김상민 - 취소시 변경 내역 체크
- function fCnclCheck() {
-
- if ( (model.getValue("/root/main/reservation/orddeptcd") ) != ( model.getValue("/root/tmp/reservation/orddeptcd")) ) return true; //진료과
- if ( (model.getValue("/root/main/reservation/orddrid") ) != ( model.getValue("/root/tmp/reservation/orddrid")) ) return true; //진료의
- if ( (model.getValue("/root/main/reservation/orddd") ) != ( model.getValue("/root/tmp/reservation/orddd")) ) return true; //진료일자
- if ( (model.getValue("/root/main/reservation/ordtm") ) != ( model.getValue("/root/tmp/reservation/ordtm")) ) return true; //진료시간
- if ( (model.getValue("/root/main/reservation/specorddescyn") ) != ( model.getValue("/root/tmp/reservation/specorddescyn")) ) return true; //선택진료설명여부
- if ( (model.getValue("/root/main/reservation/insuchrgyn") ) != ( model.getValue("/root/tmp/reservation/insuchrgyn")) ) return true; //보험회사직원여부
- if ( (model.getValue("/root/main/reservation/ordreqdescyn") ) != ( model.getValue("/root/tmp/reservation/ordreqdescyn")) ) return true; //의뢰서설명여부
- if ( (model.getValue("/root/main/reservation/ordreqhospgrde") ) != ( model.getValue("/root/tmp/reservation/ordreqhospgrde")) ) return true; //의뢰서병원등급
- if ( (model.getValue("/root/main/reservation/telrsrvrem") ) != ( model.getValue("/root/tmp/reservation/telrsrvrem")) ) return true; //통화내용
- return false;
- }
-
- //예약시 생일 한번더 체크
- function fGetBirthDD(){
-
- model.resetInstanceNode("/root/main/patinfo/patinfolist/brthdd");
-
- var brthdd;
- var rrgstno1 = model.getValue("/root/main/patinfo/patinfolist/rrgstno1");
- var rrgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
-
-
- var gubn = rrgstno2.substr(0,1);
- switch(gubn){
- case '1' :
- case '2' :
- case '5' :
- case '6' :
- brthdd = '19'.concat(rrgstno1);
- break;
- case '3' :
- case '4' :
- case '7' :
- case '8' :
- brthdd = '20'.concat(rrgstno1);
- break;
- case '9' :
- case '0' :
- brthdd = '18'.concat(rrgstno1);
- break;
- default :
- brthdd = '19'.concat(rrgstno1);
- break;
- }
-
-
- if( isValidDateTime(model.getValue("/root/main/patinfo/patinfolist/brthdd")) == false){
- model.setValue("/root/main/patinfo/patinfolist/brthdd",brthdd);
- }
-
-
- var sex = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
- if( model.getValue("/root/main/patinfo/patinfolist/sex") != 'M' || model.getValue("/root/main/patinfo/patinfolist/sex") != 'F' ){
- model.setValue("/root/main/patinfo/patinfolist/sex",getGender(sex));
- }
-
- var rrgstno = rrgstno1.concat(rrgstno2);
-
- model.setValue("/root/main/patinfo/patinfolist/age",getFullAge(model.getValue("/root/main/patinfo/patinfolist/brthdd")));
-
-
-
- return true;
- }
-
- function outhistColorChange(){
-
- grd_outhist.allStyle("all","background-color") = "#ffffff"; // 배경색을 초기화 한다.
- setRowStyle("grd_outhist", "2","Y","holiyn","equal"); //row의 색상을 변경한다.
- grd_outhist.rebuild();
- }
-
- // 달력
- var beforeId = "";
- function fChangeButtonColor(){
- var curMonth = model.getValue("/root/hidden/calendar/month");
- //alert( curMonth );
- switch( curMonth ){
-
- case '01' : //button1.attribute("class") = "btn5_letter2";
- btn_jan.disabled = true;
- beforeId = 'btn_jan';
- break;
- case '02' : //button2.attribute("class") = "btn5_letter2";
- btn_feb.disabled = true;
- beforeId = 'btn_feb';
- break;
- case '03' : //button3.attribute("class") = "btn5_letter2";
- btn_mar.disabled = true;
- beforeId = 'btn_mar';
- break;
- case '04' : //button4.attribute("class") = "btn5_letter2";
- btn_apr.disabled = true;
- beforeId = 'btn_apr';
- break;
- case '05' : //button5.attribute("class") = "btn5_letter2";
- btn_may.disabled = true;
- beforeId = 'btn_may';
- break;
- case '06' : //button6.attribute("class") = "btn5_letter2";
- btn_jun.disabled = true;
- beforeId = 'btn_jun';
- break;
- case '07' : //button7.attribute("class") = "btn5_letter2";
- btn_jul.disabled = true;
- beforeId = 'btn_jul';
- break;
- case '08' : //button8.attribute("class") = "btn5_letter2";
- btn_aug.disabled = true;
- beforeId = 'btn_aug';
- break;
- case '09' : //button9.attribute("class") = "btn5_letter2";
- btn_sep.disabled = true;
- beforeId = 'btn_sep';
- break;
- case '10' : //button10.attribute("class") = "btn5_letter2";
- btn_oct.disabled = true;
- beforeId = 'btn_oct';
- break;
- case '11' : //button11.attribute("class") = "btn5_letter2";
- btn_nov.disabled = true;
- beforeId = 'btn_nov';
- break;
- case '12' : //button12.attribute("class") = "btn5_letter2";
- btn_dec.disabled = true;
- beforeId = 'btn_dec';
- break;
- }
- }
-
- function initCalendar() {
- if( model.getValue("/root/hidden/calendar/year") == "" || model.getValue("/root/hidden/calendar/month") == "" ){
- var curDate = getCurrentDate().toDate();
-
- model.setValue("/root/hidden/calendar/year", curDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", curDate.getDateFormat('MM'));
- model.refresh();
-
- setCalendar(curDate);
- }
- }
-
- function fGetHospitalCalendar(){
-
- var dd = (model.getValue("/root/hidden/calendar/year")).concat(model.getValue("/root/hidden/calendar/month"));
- model.makeNode("/root/send/date");
- model.setValue("/root/send/date",dd);
-
- if (submit("TRPMB01001") == true) return true;
- else return false;
- }
-
- function setCalendar(dateObj) {
-
- //서버로 자료 요청
- if ( fGetHospitalCalendar() != true ){
- messageBox("병원일정 데이터를 가져올 수", "I004");
- }
-
- // 그리드 초기화
- model.removeNodeset("/root/hidden/calendar/weeklist/list");
- //grd_calendar.rebuild()
-
- dateObj.setDate(1);
- var startDay = dateObj.getDay();
- var days = dateObj.getMonthDay();
-
- var rows = Math.ceil( ( startDay + days ) / 7 );
- for( var i = 0; i < rows; i++ )
- grd_calendar.addRow(false);
-
- grd_calendar.rebuild();
- grd_calendar.rebuildStyle();
- var rowIndex = grd_calendar.fixedRows;
- var colIndex = startDay;
- var dutflag = '';
-
- for( var i = 1; i <= days; i++ ) {
- //write date
- grd_calendar.valueMatrix(rowIndex, colIndex) = i;
- grd_calendar.cellStyle("font-weight", rowIndex, colIndex) = "bold";
- //write memo
- grd_calendar.valueMatrix(rowIndex , colIndex + 7) = fGetCalendarMemo( i );
-
- dutflag = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/dutflag");
-
- if( dutflag == '8' ){ //'0' 평일, '4' 토요일, '8' 휴일
- fSetTextColor(rowIndex, colIndex, '#ff0000');
- }
-
- colIndex++;
- if( colIndex == 7 ) {
- colIndex = 0;
- rowIndex++;
- }
- }
-
- grd_calendar.resizeCells();
- }
-
- function setCalendar2(dateObj) {
-
- // 그리드 초기화
- model.removeNodeset("/root/hidden/calendar/weeklist/list");
-
- dateObj.setDate(1);
- var startDay = dateObj.getDay();
- var days = dateObj.getMonthDay();
-
-
- var rows = Math.ceil( ( startDay + days ) / 7 );
- for( var i = 0; i < rows; i++ )
- grd_calendar.addRow(false);
-
- grd_calendar.rebuild();
- grd_calendar.rebuildStyle();
- var rowIndex = grd_calendar.fixedRows;
- var colIndex = startDay;
- var ampmflag = '';
- var dutflag = '';
- var ordendresn = '';
- //var holiflag = '';
- var reglscheflag = '';
-
- for( var i = 1; i <= days; i++ ) {
- //write date
- grd_calendar.valueMatrix(rowIndex, colIndex) = i;
- grd_calendar.cellStyle("font-weight", rowIndex, colIndex) = "bold";
-
- ampmflag = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/ampmflag");
- dutflag = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/dutflag");
- ordendresn = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/ordendresn");
- ordendresnmin = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/ordendresnmin"); //휴진구분
- reglscheflag = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/reglscheflag");
-
- //write memo
- if((reglscheflag != 'X') || (ordendresnmin != 'H' && ordendresnmin != 'T')){ //검사일정이고, 마감이 아닐경우 정원표시 안함.!
- //if((reglscheflag != 'X') || (ordendresnmin != "-")){ //검사일정이고, 마감일 경우 정원표시 안함.!
- grd_calendar.valueMatrix(rowIndex , colIndex + 7) = fGetCalendarMemo2( i );
- grd_calendar.tooltipText(rowIndex, colIndex) = ordendresn;
- grd_calendar.tooltipText(rowIndex, colIndex + 7) = ordendresn;
- }
- if( ordendresnmin != 'H' && ordendresnmin != 'T'){
- //if( ordendresnmin == '-' ){
- if( ampmflag == '1' ){ //오전
- if( reglscheflag == 'Y' ){ //정규일정
- fSetBGColor(rowIndex, colIndex, '#ffff99');
- }else if( reglscheflag == 'N' ){ //임시일정
- fSetBGColor(rowIndex, colIndex, '#c9c299');
- grd_calendar.tooltipText(rowIndex, colIndex) = '임시';
- grd_calendar.tooltipText(rowIndex, colIndex + 7) = '임시';
- }else if( reglscheflag == 'Z' ){ //대진
- fSetBGColor(rowIndex, colIndex, '#c9c299');
- grd_calendar.tooltipText(rowIndex, colIndex) = '대진';
- grd_calendar.tooltipText(rowIndex, colIndex + 7) = '대진';
- }
- }else if( ampmflag == '10' ){ //오후
- if( reglscheflag == 'Y' ){ //정규일정
- fSetBGColor(rowIndex, colIndex, '#ccffff');
- }else if( reglscheflag == 'N' ){ //임시일정
- fSetBGColor(rowIndex, colIndex, '#ffccff');
- grd_calendar.tooltipText(rowIndex, colIndex) = '임시';
- grd_calendar.tooltipText(rowIndex, colIndex + 7) = '임시';
- }else if( reglscheflag == 'Z' ){ //대진
- fSetBGColor(rowIndex, colIndex, '#ffccff');
- grd_calendar.tooltipText(rowIndex, colIndex) = '대진';
- grd_calendar.tooltipText(rowIndex, colIndex + 7) = '대진';
- }
- }else if( ampmflag == '11' || ampmflag == '110' || ampmflag == '101' || ampmflag == '111' || ampmflag == '100'){ //전일, 야간포함
- if( reglscheflag == 'Y' ){ //정규일정
- fSetBGColor(rowIndex, colIndex, '#ffcc99');
- }else if( reglscheflag == 'N' ){ //임시일정
- fSetBGColor(rowIndex, colIndex, '#ffcc99');
- grd_calendar.tooltipText(rowIndex, colIndex) = '임시';
- grd_calendar.tooltipText(rowIndex, colIndex + 7) = '임시';
- }else if( reglscheflag == 'Z' ){ //대진
- fSetBGColor(rowIndex, colIndex, '#ffcc99');
- grd_calendar.tooltipText(rowIndex, colIndex) = '대진';
- grd_calendar.tooltipText(rowIndex, colIndex + 7) = '대진';
- }
- }
- }else{
- if( ordendresnmin == 'H' ){
- fSetBGColor(rowIndex, colIndex, '#ffffff'); //휴진마감
- }else if( ordendresnmin == 'T' ){
- fSetBGColor(rowIndex, colIndex, '#999999'); //부분마감
- }
- }
-
- if( dutflag == '8' ){
- fSetTextColor(rowIndex, colIndex, '#ff0000');
- }
-
- colIndex++;
- if( colIndex == 7 ) {
- colIndex = 0;
- rowIndex++;
- }
- }
-
- grd_calendar.resizeCells();
-
- }
-
- //그리드의 배경색상을 변경한다.
- function fSetBGColor(calRow, calCol, bgColor) {
-
- if( calCol < 7 ){
- //calCol = calCol + 7;
- grd_calendar.cellStyle("background-color", calRow, calCol) = bgColor;
- grd_calendar.cellStyle("background-color", calRow, calCol + 7) = bgColor;
- }else{
- //calCol = calCol - 7;
- grd_calendar.cellStyle("background-color", calRow, calCol) = bgColor;
- grd_calendar.cellStyle("background-color", calRow, calCol - 7) = bgColor;
- }
-
- }
-
- //그리드의 폰트 색상을 변경한다.
- function fSetTextColor(calRow, calCol, bgColor) {
-
- if( calCol < 7 ){
- //calCol = calCol + 7;
- grd_calendar.cellStyle("color", calRow, calCol) = bgColor;
- grd_calendar.cellStyle("color", calRow, calCol + 7) = bgColor;
- }else{
- //calCol = calCol - 7;
- grd_calendar.cellStyle("color", calRow, calCol) = bgColor;
- grd_calendar.cellStyle("color", calRow, calCol - 7) = bgColor;
- }
-
- }
-
- function setCellColor(calRow, calCol) {
-
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate();
- setCalendar2(isDate);
-
- if( calCol < 7 ){
- //calCol = calCol + 7;
- grd_calendar.cellStyle("background-color", calRow, calCol) = "#c0c0c0";
- grd_calendar.cellStyle("background-color", calRow, calCol + 7) = "#c0c0c0";
- }else{
- //calCol = calCol - 7;
- grd_calendar.cellStyle("background-color", calRow, calCol) = "#c0c0c0";
- grd_calendar.cellStyle("background-color", calRow, calCol - 7) = "#c0c0c0";
- }
-
- }
-
-
- //해당 일자의 병원 일정 정보를 얻어 온다
- function fGetCalendarMemo( i )
- {
- var holiflag = "";
- var holinm = "";
-
- holiflag = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/holiflag");
- holinm = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/holinm");
-
- if( holinm == '-' ){
- holinm = "";
- }
- return holinm;
- }
- //달력에 예약인원 및 예약현황 메모
- function fGetCalendarMemo2( i )
- {
- //var holiflag = "";
- //var dutflag = "";
- var holinm = "";
- var ordendresn = "";
- var fstexamcnt = 0;
- var reexamcnt = 0;
- var totalexamcnt = 0;
- //var fstexamcap = 0;
- //var reexamcap = 0;
- var totalexamcap = 0;
- var totalrsrvcnt = 0;
- var telrsrvcnt = 0;
- var reglscheflag = '';
-
- holinm = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/holinm");
- if( holinm == '-' ){
- holinm = "";
- }
- ordendresn = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/ordendresn");
- ordendresnmin = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/ordendresnmin");
-
- var caloption = model.getValue("/root/main/caloption");
-
- var retValue = "";
- var memo = "";
- var checkSche = '';
- //예약 현황
- if( caloption == '2' ){
- totalrsrvcnt = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/totalrsrvcnt");
- telrsrvcnt = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/telrsrvcnt");
- totalexamcap = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/totalexamcap");
- //의사일정이 있을 경우
- if( ordendresn == "" || ordendresn == null || ordendresn == "0" || ordendresn == "00" || ordendresn == "-"){
-
- memo = telrsrvcnt + "/" + totalrsrvcnt;
- checkSche = totalexamcap + totalrsrvcnt;
- if( memo.getTrim() == '/' || checkSche.getTrim() == '0'){
- memo = '';
- }
-
- retValue = holinm + "\n" + memo;
-
- }else{ //의사진료일정이 없을 경우
-
- memo = telrsrvcnt + "/" + totalrsrvcnt;
- checkSche = totalexamcap + totalrsrvcnt;
- if( memo.getTrim() == '/' || checkSche.getTrim() == '0'){
- memo = '';
- }
-
- if(ordendresnmin == 'H'){
- retValue = "휴진" + "\n" + memo;
- }else if(ordendresnmin == 'T'){
- retValue = "당일" + "\n" + memo;
- }else{
- retValue = "\n" + memo;
- }
- }
-
- //예약가능 인원
- }else{
- fstexamcnt = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/fstexamcnt");
- reexamcnt = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/reexamcnt");
- totalexamcnt = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/totalexamcnt");
- totalexamcap = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/totalexamcap");
-
- if( ordendresn == "" || ordendresn == null || ordendresn == "0" || ordendresn == "00" || ordendresn == "-"){
- if( totalexamcap == '0' || totalexamcap == ''){
-
- memo = fstexamcnt + "/" + reexamcnt;
- if( memo.getTrim() == '/' || memo.getTrim() == '0/0'){
- memo = '';
- }
-
- retValue = holinm + "\n" + memo;
-
- //전일마감
- if( ordendresn == ordendresnmin ){
- //retValue = holinm + "\n" + fstexamcnt + "/" + reexamcnt;
- }else { //부분마감
- retValue = holinm + "\n" + memo;
- }
-
- }else{
-
- retValue = holinm + "\n" + totalexamcnt;
- }
- }else{
- if( totalexamcap == '0' || totalexamcap == ''){
-
- memo = fstexamcnt + "/" + reexamcnt;
- if( memo.getTrim() == '/' || memo.getTrim() == '0/0'){
- memo = '';
- }
-
- //전일마감
- if( ordendresn == ordendresnmin ){
- //retValue = holinm + "\n" + fstexamcnt + "/" + reexamcnt;
- }else { //부분마감
- if(ordendresnmin == 'H'){
- retValue = "휴진" + "\n" + memo;
- }else if(ordendresnmin == 'T'){
- retValue = "당일" + "\n" + memo;
- }else{
- retValue = "\n" + memo;
- }
- }
-
- }else{
- }
-
- }
- }
-
- return retValue;
- }
- function fSetMonth(newMonth){
-
- model.setValue("/root/hidden/calendar/month", newMonth);
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate();
-
- fGetCalendarData();
-
- }
-
- function fGetCalendar(arg) {
-
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- if(model.getValue("/root/hidden/calendar/month") < arg) {
- var num = arg- isMonth ;
- var isDate = (isYear+isMonth+1).toDate().getAddDate(+num,'M');
-
- }
- if(model.getValue("/root/hidden/calendar/month") > arg) {
- var num = isMonth - arg ;
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-num,'M');
- }
-
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
- setCalendar(isDate);
-
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1196;" style="vertical-align:top; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:93px; height:14px; ">콜센터접수</caption>
- </group>
- <group id="group2" style="left:0px; top:15px; width:1195; height:719px; ">
- <line id="line5" class="line_2" style="x1:0px; y1:152px; x2:397px; y2:152px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:127px; x2:397px; y2:127px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:103px; x2:397px; y2:103px; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:52px; x2:397px; y2:52px; "/>
- <input id="ipt_hometel" ref="/root/main/patinfo/patinfolist/hometel" class="input_default" navindex="6" maxlength="13" appearance="input" style="left:88px; top:105px; width:127px; height:19px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:74px; height:13px; ">인적사항</caption>
- <input id="ipt_hngnm" ref="/root/main/patinfo/patinfolist/hngnm" class="input_s_essential" navindex="3" imemode="hangul" style="left:88px; top:55px; width:103px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13")
- {
- model.setValue("/root/main/patinfo/patinfolist/hngnm", ipt_hngnm.currentText);
- model.setFocus("ipt_rrgstno1");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_engnm" ref="/root/main/patinfo/patinfolist/engnm" class="input_default" navindex="4" appearance="input" style="left:219px; top:55px; width:182px; height:19px; "/>
- <input id="ipt_mpphontel" ref="/root/main/patinfo/patinfolist/mpphontel" class="input_default" navindex="5" maxlength="13" appearance="input" style="left:219px; top:105px; width:182px; height:19px; "/>
- <input id="ipt_detladdr" ref="/root/main/patinfo/patinfolist/detladdr" class="input_default" navindex="9" appearance="input" style="left:87px; top:155px; width:315px; height:19px; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:401px; y2:25px; "/>
- <input id="ipt_rrgstno1" ref="/root/main/patinfo/patinfolist/rrgstno1" class="input_s_essential" navindex="1" format="999999" style="left:88px; top:80px; width:60px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- var hngnm = ipt_hngnm.currentText;
- var rrgstno1 = ipt_rrgstno1.currentText;
- var rrgstno2 = ipt_rrgstno2.currentText;
-
- if( hngnm.length > 1 ){
-
- model.setValue("/root/hidden/source/srchcond", "4");
- model.setValue("/root/hidden/source/hngnm", hngnm);
- model.setValue("/root/hidden/source/rrgstno1", rrgstno1);
- model.setValue("/root/hidden/source/rrgstno2", rrgstno2);
- }else{
-
- model.setValue("/root/hidden/source/srchcond", "3");
- model.setValue("/root/hidden/source/rrgstno1", rrgstno1);
- model.setValue("/root/hidden/source/rrgstno2", rrgstno2);
- }
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_pid" ref="/root/main/patinfo/patinfolist/pid" class="input_s_essential" appearance="input" style="left:88px; top:31px; width:127px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
-
- //환자등록번호 체크
- if(ipt_pid.currentText.length > 0 ){
- //조회 조건 세팅.
-
- model.setValue("/root/hidden/source/srchcond", "1");
- model.setValue("/root/hidden/source/pid", ipt_pid.currentText);
-
- model.resetInstanceNode("/root/main/result");
- model.makeNode("/root/main/result/patinfo");
- if(submit("TRPMC02500")){
- if( getNodesetCount("/root/main/result/patinfo/patinfolist") > 0 ){
- model.copyNode("/root/main/patinfo", "/root/main/result/patinfo");
- model.setValue("/root/main/popupendflag", "ok");
- //구환 표시
- model.setValue("/root/hidden/source/checkfnexam", "2");
- //환자특이내역 존재여부 표시
- var patspcfyn = model.getValue("/root/main/patinfo/patinfolist/patspcfyn");
- //alert( patspcfyn );
- if( patspcfyn == 'Y' || patspcfyn == 'y'){
- btn_patspcfyn.attribute("background-color") = "#ff0000";
- //alert( 'Y' );
- }else{
- btn_patspcfyn.attribute("background-color") = "#c0c0c0";
- //alert( 'N' );
- }
-
- //감면 내역 있으면 표시
- var pid = model.getvalue("/root/main/patinfo/patinfolist/pid");
- if( pid != '' && pid != ' ' && pid != '-' ){
- model.setValue( "/root/send/pid", pid);
- submit("TRPMO00205");
- }
- //감면 내역 있으면 표시 끝
-
- fSearch();
- }else{
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
- model.resetInstanceNode("/root/main/reservation");
- model.setValue("/root/main/popupendflag", "cancel");
- messageBox("없는 환자 번호 입니다.", "E999", "");
- model.removenode("/root/main/outhist/outhistlist");
- //model.resetInstanceNode("");
-
- }
- }
-
- }else{
- messageBox("환자등록번호를 정확히", "C001");
- }
-
- //팝업으로 넘겨준 데이터 초기화
- var checkfnexam = model.getValue("/root/hidden/source/checkfnexam");
- model.resetInstanceNode("/root/hidden/source");
- model.setValue("/root/hidden/source/checkfnexam", checkfnexam);
-
- outhistColorChange();
-
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <input id="opt_age" ref="/root/main/patinfo/patinfolist/age" class="input_default" appearance="input" style="left:346px; top:31px; width:55px; height:19px; "/>
- <caption id="caption10" class="cell_1" style="left:0px; top:129px; width:85px; height:23px; vertical-align:middle; ">우편번호</caption>
- <caption id="caption11" class="cell_1" style="left:0px; top:54px; width:85px; height:23px; vertical-align:middle; ">성명[한/영]</caption>
- <caption id="caption13" class="cell_1" style="left:0px; top:154px; width:85px; height:23px; vertical-align:middle; ">하위주소</caption>
- <caption id="caption14" class="cell_1" style="left:0px; top:79px; width:85px; height:23px; vertical-align:middle; ">주민번호</caption>
- <caption id="caption7" class="cell_1" style="left:0px; top:30px; width:85px; height:23px; vertical-align:middle; ">등록번호</caption>
- <caption id="caption8" class="cell_1" style="left:219px; top:30px; width:67px; height:23px; vertical-align:middle; ">성별/나이</caption>
- <caption id="caption9" class="cell_1" style="left:0px; top:104px; width:85px; height:23px; vertical-align:middle; ">연락처/휴대폰</caption>
- <input id="ipt_rrgstno2" ref="/root/main/patinfo/patinfolist/rrgstno2" class="input_s_essential" navindex="2" autonext="false" format="9999999" style="left:151px; top:80px; width:63px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13"){
-
- var hngnm = ipt_hngnm.currentText;
- var rrgstno1 = ipt_rrgstno1.currentText;
- var rrgstno2 = ipt_rrgstno2.currentText;
-
- var rgstno1 = model.getValue("/root/main/patinfo/patinfolist/rrgstno1");
- var rgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
-
- if( hngnm.length > 1 ){
-
- model.setValue("/root/hidden/source/srchcond", "4");
- model.setValue("/root/hidden/source/hngnm", hngnm);
- model.setValue("/root/hidden/source/rrgstno1", rrgstno1);
- model.setValue("/root/hidden/source/rrgstno2", rrgstno2);
- }else{
-
- model.setValue("/root/hidden/source/srchcond", "3");
- model.setValue("/root/hidden/source/rrgstno1", rrgstno1);
- model.setValue("/root/hidden/source/rrgstno2", rrgstno2);
- }
- //model.alert(rrgstno2);
- model.setValue("/root/main/patinfo/patinfolist/rrgstno2", rrgstno2);
-
-
- if(rgstno1 == "000000" ){
- messageBox("주민번호 앞6자리 형식오류입니다. 올바른 일자형태로 입력하십시요!","E999","");
- model.setFocus("ipt_rrgstno1");
- return;
- }else if(rgstno2 == "0000000 "){
- messageBox("주민번호 뒤7자리 형식오류입니다. 올바른 일자형태로 입력하십시요!","E999","");
- model.setFocus("ipt_rrgstno2");
- return;
- }
-
- if( rrgstno1.length == 6 && rrgstno2.length == 7 ){
-
- if(submit("TRPMC02500")){
-
- if( getNodesetCount("/root/main/result/patinfo/patinfolist") == 1 ){
-
- model.copyNode("/root/main/patinfo", "/root/main/result/patinfo");
- model.setValue("/root/main/popupendflag", "ok");
- //구환 표시
- if( model.getValue("/root/main/patinfo/patinfolist/pid").length > 2 ){
- model.setValue("/root/hidden/source/checkfnexam", "2");
- }else{
- model.setValue("/root/hidden/source/checkfnexam", "1");
- }
-
- //환자특이내역 존재여부 표시
- var patspcfyn = model.getValue("/root/main/patinfo/patinfolist/patspcfyn");
- //alert( patspcfyn );
- if( patspcfyn == 'Y' || patspcfyn == 'y'){
- btn_patspcfyn.attribute("background-color") = "#ff0000";
- //alert( 'Y' );
- }else{
- btn_patspcfyn.attribute("background-color") = "#c0c0c0";
- //alert( 'N' );
- }
-
- //감면 내역 있으면 표시
- var pid = model.getvalue("/root/main/patinfo/patinfolist/pid");
- if( pid != '' && pid != ' ' && pid != '-' ){
- model.setValue( "/root/send/pid", pid);
- submit("TRPMO00205");
- }
- //감면 내역 있으면 표시 끝
-
- fSearch();
-
- }else if(getNodesetCount("/root/main/result/patinfo/patinfolist") > 1 ){
- inputEnterKey("btn_search", "DOMActivate");
- }else{
- model.setValue("/root/main/popupendflag", "cancel");
- messageBox("일치하는 환자가 없습니다.", "E999", "");
- }
- }
- }else{
- inputEnterKey("btn_search", "DOMActivate");
- }
- fGetSexAgeBirthDD();
-
- //외래이력 휴진일 구분
- outhistColorChange();
-
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_zipcd1" ref="/root/main/patinfo/patinfolist/zipcd1" class="input_default" appearance="input" style="left:88px; top:130px; width:30px; height:19px; "/>
- <output id="opt_addr" ref="/root/main/patinfo/patinfolist/addr" class="output_fix" appearance="output" style="left:195px; top:130px; width:207px; height:19px; "/>
- <input id="ipt_zipcd2" ref="/root/main/patinfo/patinfolist/zipcd2" class="input_default" appearance="input" style="left:121px; top:130px; width:30px; height:19px; "/>
- <input id="ipt_zipcdseq" ref="/root/main/patinfo/patinfolist/zipcdseq" class="input_default" appearance="input" style="left:154px; top:130px; width:15px; height:19px; "/>
- <button id="btn_srchzipcd" accesskey="f2" class="icon_search" navindex="8" style="left:175px; top:131px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- zbcfOpenZipCodeList("combination", "", "/root/main/patinfo/patinfolist/zipcd1", "/root/main/patinfo/patinfolist/zipcd2", "/root/main/patinfo/patinfolist/zipcdseq", "/root/main/patinfo/patinfolist/addr")
- ]]>
- </script>
- </button>
- <select1 id="cmb_sex" ref="/root/main/patinfo/patinfolist/sex" class="combo_default" appearance="minimal" style="left:289px; top:31px; width:54px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0313list/P0313">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="button4" class="btn5_letter6" style="left:306px; top:4px; width:86px; height:19px; ">
- <caption>인적정보수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var acptdd = model.getValue("/root/main/patinfo/patinfolist/acptdd");
- var acptno = model.getValue("/root/main/patinfo/patinfolist/acptno");
-
- if( pid.length > 1 ){
- model.makeNode("/root/main/patinfo/patinfolist/flag");
- model.setValue("/root/main/patinfo/patinfolist/flag", 's')
- if( ! pamCompareNodes( "/root/main/patinfo/patinfolist", "/root/tmp/patinfolist" ) ){
- if( model.getValue("/root/tmp/patinfolist/pid") != ''){
-
- model.makeNode("/root/main/patinfo/patinfolist/oldpid");
-
- model.setValue("/root/main/patinfo/patinfolist/oldpid", model.getValue("/root/tmp/patinfolist/pid"));
-
- if( submit("TXPMO00208") ){
-
- model.setValue("/root/main/popupendflag", "ok");
- fSearch();
- messageBox("환자정보가 정상적으로 수정되었습니다.", "I999", "");
- }
- }
- }else{
-
- messageBox("변경된 사항이 없거나 환자정보가 잘못 수정되었습니다. 환자인적사항을 재조회 후 다시 수정하세요.", "E999", "");
- return false;
- }
- }else{
- model.makeNode("/root/main/patinfo/patinfolist/flag");
- model.setValue("/root/main/patinfo/patinfolist/flag", 'f')
- if( ! pamCompareNodes( "/root/main/patinfo/patinfolist", "/root/tmp/patinfolist" ) ){
- if( model.getValue("/root/tmp/patinfolist/rrgstno1") != ''
- && model.getValue("/root/tmp/patinfolist/rrgstno2") != ''
- && model.getValue("/root/tmp/patinfolist/hngnm") != ''){
-
- model.makeNode("/root/main/patinfo/patinfolist/oldhngnm");
- model.makeNode("/root/main/patinfo/patinfolist/oldrrgstno1");
- model.makeNode("/root/main/patinfo/patinfolist/oldrrgstno2");
-
- model.setValue("/root/main/patinfo/patinfolist/oldhngnm", model.getValue("/root/tmp/patinfolist/hngnm"));
- model.setValue("/root/main/patinfo/patinfolist/oldrrgstno1", model.getValue("/root/tmp/patinfolist/rrgstno1"));
- model.setValue("/root/main/patinfo/patinfolist/oldrrgstno2", model.getValue("/root/tmp/patinfolist/rrgstno2"));
-
- if( submit("TXPMO00208") ){
-
- model.setValue("/root/main/popupendflag", "ok");
- fSearch();
- messageBox("환자정보가 정상적으로 수정되었습니다.", "I999", "");
-
- }
- }
- }else{
-
- messageBox("변경된 사항이 없거나 환자정보가 잘못 수정되었습니다. 환자인적사항을 재조회 후 다시 수정하세요.", "E999", "");
- return false;
- }
-
- }
- ]]>
- </script>
- </button>
- <line id="line6" class="line_2" style="x1:0px; y1:77px; x2:397px; y2:77px; "/>
- <line id="line7" class="line_3" style="x1:0px; y1:179px; x2:402px; y2:179px; "/>
- <switch id="switch1" style="left:0px; top:205px; width:1185px; height:510px; ">
- <case id="case1">
- <line id="line51" class="line_1" style="x1:565px; y1:25px; x2:952px; y2:25px; "/>
- <caption id="caption32" class="tit_2" style="left:964px; top:10px; width:144px; height:13px; ">외래등록내역</caption>
- <caption id="caption38" class="tit_2" style="left:570px; top:10px; width:154px; height:13px; ">외래등록내역</caption>
- <group id="group4" style="left:565px; top:30px; width:390px; height:465px; ">
- <shape id="rectangle1" class="calendar_header" appearance="rectangle" style="left:0px; top:1px; width:387px; height:30px; "/>
- <group id="group5" style="left:15px; top:38px; width:360px; height:30px; ">
- <button id="btn_jan" class="icon_month" style="left:0px; top:3px; width:27px; height:27px; ">
- <caption>1</caption>
- </button>
- <button id="btn_feb" class="icon_month" style="left:30px; top:3px; width:27px; height:27px; ">
- <caption>2</caption>
- </button>
- <button id="btn_mar" class="icon_month" style="left:60px; top:3px; width:27px; height:27px; ">
- <caption>3</caption>
- </button>
- <button id="btn_apr" class="icon_month" style="left:90px; top:3px; width:27px; height:27px; ">
- <caption>4</caption>
- </button>
- <button id="btn_may" class="icon_month" style="left:120px; top:3px; width:27px; height:27px; ">
- <caption>5</caption>
- </button>
- <button id="btn_jun" class="icon_month" style="left:150px; top:3px; width:27px; height:27px; ">
- <caption>6</caption>
- </button>
- <button id="btn_jul" class="icon_month" style="left:180px; top:3px; width:27px; height:27px; ">
- <caption>7</caption>
- </button>
- <button id="btn_aug" class="icon_month" style="left:210px; top:3px; width:27px; height:27px; ">
- <caption>8</caption>
- </button>
- <button id="btn_sep" class="icon_month" style="left:240px; top:3px; width:27px; height:27px; ">
- <caption>9</caption>
- </button>
- <button id="btn_oct" class="icon_month" style="left:270px; top:3px; width:27px; height:27px; ">
- <caption>10</caption>
- </button>
- <button id="btn_nov" class="icon_month" style="left:300px; top:3px; width:27px; height:27px; ">
- <caption>11</caption>
- </button>
- <button id="btn_dec" class="icon_month" style="left:330px; top:3px; width:27px; height:27px; ">
- <caption>12</caption>
- </button>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var trgObj = document.controls.item(event.target);
-
- if( trgObj.elementName == "xforms:button" ) {
- var btnMark = trgObj.label;
-
- if(beforeId != ""){
- beforeObj = document.controls(beforeId);
- if(beforeObj != null) beforeObj.disabled = "false";
- }
- trgObj.disabled = "true";
- beforeId = trgObj.attribute("id");
-
- //달력 변경
- if( btnMark.length == 1 ){
- btnMark = '0' + btnMark;
- }
- fSetMonth(btnMark);
- }
- ]]>
- </script>
- </group>
- <output id="opt_month" ref="/root/hidden/calendar/month" class="calendar_output" visibility="hidden" style="left:310px; top:5px; width:30px; height:19px; "/>
- <caption id="caption12" class="calendar_output" style="left:208px; top:7px; width:20px; height:19px; ">년</caption>
- <caption id="caption15" class="calendar_output" visibility="hidden" style="left:340px; top:5px; width:20px; height:19px; ">월</caption>
- <button id="btn_premonth" class="icon_pre_month" visibility="hidden" style="left:117px; top:9px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
- model.resetInstanceNode("/root/hidden/calendarinfo")
- fGetCalendarData();
- ]]>
- </script>
- </button>
- <caption id="caption16" style="left:0px; top:437px; width:35px; height:20px; text-align:center; background-color:#ffff99; ">오전</caption>
- <multilinegrid id="grd_calendar" nodeset="/root/hidden/calendar/weeklist/list" class="gridcalendar" autoresize="true" backcoloralternate="transparent" caption="일^월^화^수^목^금^토" colsep="^" colwidth="55, 55, 55, 55, 55, 55, 55" ellipsis="true" focuscolor="transparent" rowsep="|" tooltip="true" selectionmode="free" mergecellsfixedrows="bycolrec" style="left:0px; top:75px; width:387px; height:355px; font-size:10pt; ">
- <row>
- <col class="color_sun" ref="sun"/>
- <col ref="mon"/>
- <col ref="tue"/>
- <col ref="wed"/>
- <col ref="thu"/>
- <col ref="fri"/>
- <col class="color_sat" ref="sat"/>
- </row>
- <row>
- <col ref="sun_memo"/>
- <col ref="mon_memo"/>
- <col ref="tue_memo"/>
- <col ref="wed_memo"/>
- <col ref="thu_memo"/>
- <col ref="fri_memo" style="height:46; "/>
- <col ref="sat_memo"/>
- </row>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fClickOnCalendar();
- ]]>
- </script>
- </multilinegrid>
- <caption id="caption17" style="left:31px; top:437px; width:35px; height:20px; text-align:center; background-color:#ccffff; ">오후</caption>
- <caption id="caption18" style="left:67px; top:437px; width:35px; height:20px; text-align:center; background-color:#ffcc99; ">전일</caption>
- <button id="button31" class="icon_pre_year" style="left:140px; top:9px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
-
- model.resetInstanceNode("/root/hidden/calendarinfo")
- fGetCalendarData();
- ]]>
- </script>
- </button>
- <caption id="caption19" style="left:215px; top:438px; width:55px; height:20px; text-align:center; background-color:#999999; ">당일마감</caption>
- <button id="button1" class="icon_next_year" style="left:231px; top:9px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
-
- model.resetInstanceNode("/root/hidden/calendarinfo")
- fGetCalendarData();
- ]]>
- </script>
- </button>
- <caption id="caption20" style="left:103px; top:437px; width:55px; height:20px; text-align:center; background-color:#c9c299; ">임시오전</caption>
- <output id="opt_year" ref="/root/hidden/calendar/year" class="calendar_output" style="left:158px; top:7px; width:50px; height:19px; "/>
- <button id="button2" class="icon_next_month" visibility="hidden" style="left:254px; top:9px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
-
- model.resetInstanceNode("/root/hidden/calendarinfo")
- fGetCalendarData();
- ]]>
- </script>
- </button>
- <caption id="caption5" style="left:159px; top:437px; width:55px; height:20px; text-align:center; background-color:#ffccff; ">임시오후</caption>
- </group>
- <select id="checkbox1" ref="/root/main/oneminute" overflow="visible" appearance="full" style="left:1065px; top:5px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>1분간격 풀기</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( getNodesetCount("/root/main/outrgst/outrgstlist") > 1 ){
- fOneMinuteSpread();
- }
- ]]>
- </script>
- </select>
- <datagrid id="grd_outrgst" nodeset="/root/main/outrgst/outrgstlist" class="datagrid2" backcoloralternate="transparent" caption="시간^등록번호^환자명^초/재^예약
구분^최초접수시간^통화내용" colsep="^" colwidth="39, 71, 57, 60, 50, 130, 100" dataheight="23" defaultrows="2" extendlastcol="scroll" rowheight="23" rowsep="|" style="left:960px; top:30px; width:219px; height:430px; ">
- <col ref="ordtm" format="hh:nn"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="fsexamflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0021list/P0021">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="rsrvflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0341list/P0341">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="fstacptdt" visibility="hidden" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="telrsrvrem"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var cur_row = grd_outrgst.row;
- var cur_col = grd_outrgst.col;
- var checkflag = model.getValue("/root/main/outrgst/outrgstlist[" + cur_row + "]/fsexamflag");
- var fsexamflag = model.getValue("/root/main/reservation/fsexamflag");
- var hngnm = model.getValue("/root/main/outrgst/outrgstlist[" + cur_row + "]/hngnm");
-
- if(cur_row > 0 && cur_col >= 0){
- if(fsexamflag == 'R' || fsexamflag == 'S'){
- if(checkflag == 'F' || checkflag == 'D'){
- messageBox("재진환자는 재진시간만 예약이 가능합니다.", "E999", "");
- return;
-
- }
- if( hngnm.length != 0){
- messageBox("이미 예약이 되어 있는 시간입니다.", "E999", "");
- return;
- }
-
- }else if(fsexamflag == 'F' || fsexamflag == 'D' || fsexamflag == '4'){
- if(checkflag == 'R' || checkflag == 'S'){
- messageBox("초진환자는 초진시간만 예약이 가능합니다.", "E999", "");
- return;
- }
-
- if(hngnm.length != 0){
- // model.alert("kkk");
- messageBox("이미 예약이 되어 있는 시간입니다.", "E999", "");
- return;
- }
- }
- model.setValue("/root/main/reservation/ordtm", model.getValue("/root/main/outrgst/outrgstlist[" + cur_row + "]/ordtm"));
- //model.setValue("/root/main/reservation/orddd", model.getValue("/root/main/outrgst/outrgstlist[" + cur_row + "]/orddd"));
-
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <line id="line28" class="line_1" style="x1:959px; y1:25px; x2:1179px; y2:25px; "/>
- <input id="input2" ref="/root/main/reservation/ordtm" format="hh:nn" style="left:1023px; top:471px; width:55px; height:19px; "/>
- <caption id="caption26" class="cell_1" style="left:960px; top:470px; width:60px; height:23px; vertical-align:middle; ">진료시간</caption>
- <shape id="roundrect1" class="roundrect_example" appearance="roundrect" style="left:1084px; top:468px; width:96px; height:26px; "/>
- <caption id="caption21" style="left:1153px; top:474px; width:27px; height:15px; ">초진</caption>
- <caption id="caption22" style="left:1135px; top:473px; width:15px; height:15px; background-color:#b9e5fb; "/>
- <caption id="caption23" class="cell_2" style="left:1090px; top:471px; width:42px; height:20px; ">범 례</caption>
- <button id="button3" class="btn2_letter2" style="left:459px; top:4px; width:42px; height:19px; ">
- <caption>선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var rrgstno1 = model.getValue("/root/hidden/holdrrgstno/rrgstno1");
- var rrgstno2 = model.getValue("/root/hidden/holdrrgstno/rrgstno2");
- var hngnm = model.getValue("/root/hidden/holdrrgstno/hngnm");
- if( rrgstno1 == '' || rrgstno2 == '' ){
-
- return false;
- }else{
-
- model.setValue("/root/main/patinfo/patinfolist/rrgstno1", rrgstno1);
- model.setValue("/root/main/patinfo/patinfolist/rrgstno2", rrgstno2);
- model.setValue("/root/main/patinfo/patinfolist/hngnm", hngnm);
-
- model.setValue("/root/hidden/source/srchcond", "4");
- model.setValue("/root/hidden/source/rrgstno1", rrgstno1);
- model.setValue("/root/hidden/source/rrgstno2", rrgstno2);
- model.setValue("/root/hidden/source/hngnm", hngnm);
- //btn_search.dispatch("DOMActivate");
-
- if(submit("TRPMC02500")){
-
- if( getNodesetCount("/root/main/result/patinfo/patinfolist") == 1 ){
- model.copyNode("/root/main/patinfo", "/root/main/result/patinfo");
- model.setValue("/root/main/popupendflag", "ok");
- //구환 표시
- if( model.getValue("/root/main/patinfo/patinfolist/pid").length > 2 ){
- model.setValue("/root/hidden/source/checkfnexam", "2");
- }else{
- model.setValue("/root/hidden/source/checkfnexam", "1");
- }
-
- //환자특이내역 존재여부 표시
- var patspcfyn = model.getValue("/root/main/patinfo/patinfolist/patspcfyn");
- //alert( patspcfyn );
- if( patspcfyn == 'Y' || patspcfyn == 'y'){
- btn_patspcfyn.attribute("background-color") = "#ff0000";
- //alert( 'Y' );
- }else{
- btn_patspcfyn.attribute("background-color") = "#c0c0c0";
- //alert( 'N' );
- }
-
- //감면 내역 있으면 표시
- var pid = model.getvalue("/root/main/patinfo/patinfolist/pid");
- if( pid != '' && pid != ' ' && pid != '-' ){
- model.setValue( "/root/send/pid", pid);
- submit("TRPMO00205");
- }
- //감면 내역 있으면 표시 끝
-
- fSearch();
-
- }else if(getNodesetCount("/root/main/result/patinfo/patinfolist") > 1 ){
-
- inputEnterKey("btn_search", "DOMActivate");
- }else{
-
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
- model.resetInstanceNode("/root/main/reservation");
- model.setValue("/root/main/popupendflag", "cancel");
- messageBox("일치하는 환자가 없습니다.", "E999", "");
- //model.resetInstanceNode("");
-
- }
- }
-
- //fSearch();
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_rqstflag" ref="/root/main/reservation/rqstflag" class="combo_default" visibility="hidden" appearance="minimal" style="left:58px; top:5px; width:75px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0329list/P0329">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption27" class="tit_2" style="left:5px; top:10px; width:43px; height:13px; ">예약</caption>
- <output id="opt_rrgstno1" ref="/root/hidden/holdrrgstno/rrgstno1" class="output_fix" format="999999" appearance="output" style="left:330px; top:4px; width:60px; height:19px; "/>
- <output id="opt_rrgstno2" ref="/root/hidden/holdrrgstno/rrgstno2" class="output_fix" format="9999999" appearance="output" style="left:393px; top:4px; width:63px; height:19px; "/>
- <button id="btn_clear" class="btn2_letter3" style="left:504px; top:4px; width:53px; height:19px; ">
- <caption>Clear</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.resetInstanceNode("/root/main/reservation");
- model.removeNodeset("/root/main/outrgst/outrgstlist");
- model.resetInstanceNode("/root/tmp/reservation");
- model.resetInstanceNode("/root/main/outhist/outhistlist");
- //1분 간격 풀기 초기화
- model.setValue("/root/main/oneminute", "");
-
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate();
- setCalendar(isDate);
-
- //설명여부 디폴트값 세팅
- model.setValue("/root/main/reservation/specorddescyn", 'N');
- model.setValue("/root/main/reservation/insuchrgyn", 'N');
- model.setValue("/root/main/reservation/ordreqdescyn", ' ');
- model.setValue("/root/main/reservation/ordreqhospgrde", '1');
- model.setValue("/root/main/reservation/etcordflag", "-");
- //협력의뢰 디폴트 세팅
- if( RC == '1' ){
- model.setValue("/root/main/reservation/rqstflag", '1');
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_outhist" nodeset="/root/main/outhist/outhistlist" class="datagrid2" caption="진료일자^시간^진료과ID^진료과^진료의ID^진료의사^선택진료^진료여부^변경
여부^예약
구분^접수상태^초/재^보험유형^의뢰서구분^선후불^수납여부^최초입력자ID^최초입력시간^가예약
접수일자^가예약
접수일련번호^선택진료
설명여부^보험회사
직원여부^진료의뢰서
설명여부^의뢰서
병원등급^최초접수자
ID^최초접수
일시^외래등록
생성번호^외래등록
생성일련번호^전화예약
통화내용^변경취소사유^정산여부^계산구분^진찰료산정여부^처방발생여부^협력의뢰구분^협력의뢰
병원코드^협력의뢰의ID^원스탑^테이블명^센터코드^sub진료과^기타진료구분^최종수정자^최종수정일시^휴진여부" colsep="^" colwidth="70, 40, 90, 110, 64, 60, 35, 35, 35, 65, 54, 60, 80, 80, 42, 35, 78, 107, 60, 87, 60, 60, 82, 67, 81, 63, 75, 90, 67, 100, 100, 100, 100, 100, 84, 70, 100, 100, 100, 100, 100, 50, 100, 100, 100" dataheight="23" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:5px; top:370px; width:545px; height:125px; ">
- <col ref="orddd" format="yyyy-mm-dd"/>
- <col ref="ordtm" format="hh:nn"/>
- <col disabled="true" ref="orddeptcd" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="orddeptnm"/>
- <col ref="orddrid" visibility="hidden"/>
- <col ref="orddrnm"/>
- <col ref="specordyn"/>
- <col ref="dracptyn"/>
- <col ref="bfordddyn"/>
- <col disabled="true" ref="rsrvflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0341list/P0341">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="histstat" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0029list/P0029">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="fsexamflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0021list/P0021">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="insukind" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0008list/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="ordreqformflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0380list/P0380">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="medamtpostyn"/>
- <col ref="rcptyn"/>
- <col ref="fstacptid" visibility="hidden"/>
- <col ref="fstacptdt" visibility="hidden" format="yyyy-mm-dd hh:nn"/>
- <col ref="acptdd" visibility="hidden"/>
- <col ref="acptno" visibility="hidden"/>
- <col ref="specorddescyn" visibility="hidden"/>
- <col ref="insuchrgyn" visibility="hidden"/>
- <col ref="ordreqdescyn" visibility="hidden"/>
- <col ref="ordreqhospgrde" visibility="hidden"/>
- <col ref="fstacptid" visibility="hidden"/>
- <col ref="fstacptdt" visibility="hidden"/>
- <col ref="acptseqno" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="telrsrvrem" visibility="hidden"/>
- <col ref="updtcnclresn" visibility="hidden"/>
- <col ref="calcyn" visibility="hidden"/>
- <col ref="calcflag" visibility="hidden"/>
- <col ref="medamtestmyn" visibility="hidden"/>
- <col ref="prcpgenryn" visibility="hidden"/>
- <col ref="rqspflag" visibility="hidden" style="left:1679px; top:32px; width:84px; height:23px; "/>
- <col ref="rqsthospcd" visibility="hidden"/>
- <col ref="rqstdrid" visibility="hidden"/>
- <col ref="onestop" visibility="hidden"/>
- <col ref="tablename" visibility="hidden"/>
- <col ref="centcd" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="subdeptcd" visibility="hidden"/>
- <col ref="etcordflag"/>
- <col ref="lastupdtrid"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="holiyn" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- var cur_col = grd_outhist.col;
- var cur_row = grd_outhist.row;
- if( cur_col == grd_outhist.colRef("bfordddyn") && cur_row > 0 && isDataCell()){
-
- if(grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("bfordddyn")) == "Y" ) {
-
- if(grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("histstat")) == "X"){
- messageBox("취소 내역은 변경이력을 조회할 수 없습니다.", "E999", "");
- return false;
-
- }
-
- setParameter("openflag", 'T');
- setParameter("pid", model.getvalue("/root/main/patinfo/patinfolist/pid"));
- setParameter("hngnm", model.getvalue("/root/main/patinfo/patinfolist/hngnm"));
- setParameter("rrgstno1", model.getvalue("/root/main/patinfo/patinfolist/rrgstno1"));
- setParameter("rrgstno2", model.getvalue("/root/main/patinfo/patinfolist/rrgstno2"));
- setParameter("fromdd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddd")));
- setParameter("todd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddd")));
- setParameter("orddeptcd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddeptcd")));
- setParameter("orddrid", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddrid")));
- setParameter("specordyn", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("specordyn")));
- setParameter("rsrvflag", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("rsrvflag")));
- setParameter("insukind", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("insukind")));
- setParameter("acptdd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("acptdd")));
- setParameter("acptno", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("acptno")));
- setParameter("tablename", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("tablename")));
- modal("SMPMO00600", "1", "50", "50" ,"SMPMO00600", "", "");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if( model.getValue("/root/main/patinfo/patinfolist/pid") == '' && model.getValue("/root/main/patinfo/patinfolist/hngnm") == '' ){
- messageBox("환자조회 후 작업해 주세요.!!","E999", "");
- return false;
- }
-
- var cur_col = grd_outhist.col;
- var cur_row = grd_outhist.row;
- var curDate = getCurrentDate();
-
- if(cur_col == grd_outhist.colRef("bfordddyn")){
- return;
- }
-
- if( cur_row > 0 && cur_col > 0 && isDataCell() ){ // && grd_outhist.colRef("bfordddyn") != cur_col ){
-
- var histstat = model.getValue("/root/main/rsrvflag");
- if( histstat == 'X' ){
-
- return false;
- }
-
- //예약내역 노드 초기화
- model.resetInstanceNode("/root/main/reservation");
-
- //수정 불가능한 내역을 선택했을 경우!!
- if( grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("histstat")) == 'R' ){
-
- //의사접수여부가 'Y'인 내역은 변경/취소할 수 없습니다.
- if( grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("dracptyn")) == 'Y' ){
-
- messageBox("진료본 내역은 변경/취소할 수 없습니다.", "E999", "");
- return false;
-
- //처방발생여부가 'Y'인 내역은 변경/취소할 수 없습니다.
- }else if( grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("prcpgenryn")) == 'Y' ){
-
- messageBox("처방이 발생한 내역은 변경/취소할 수 없습니다.", "E999", "");
- return false;
- }else if( grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("rsrvflag")) == 'X' ){
-
- messageBox("6시간 이내 응급내역은 변경/취소할 수 없습니다.", "E999", "");
- return false;
- }
- }else if( grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("histstat")) == 'X' ){
- messageBox("예약취소한 내역은 변경할 수 없습니다.", "E999", "");
- return false;
- }else if(grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddd")) < curDate ){
- messageBox("미진료 이력은 변경/취소할 수 없습니다.", "E999", "");
- return false;
- }
-
- if( grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("etcordflag")) != 'B' || grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("etcordflag")) != '-' ) {
- model.setValue("/root/main/reservation/etcordflag", '-');
- model.setValue("/root/main/reservation/etcordflag", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("etcordflag")) );
- }
-
- //선택된 행의 값을 예약 파트로 복사
- model.setValue("/root/main/reservation/acptdd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("acptdd")) );
- model.setValue("/root/main/reservation/acptno", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("acptno")) );
- model.setValue("/root/main/reservation/specorddescyn", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("specorddescyn")) );
- model.setValue("/root/main/reservation/insuchrgyn", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("insuchrgyn")) );
- model.setValue("/root/main/reservation/ordreqdescyn", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("ordreqdescyn")) );
- model.setValue("/root/main/reservation/ordreqhospgrde", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("ordreqhospgrde")) );
- model.setValue("/root/main/reservation/fstacptid", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("fstacptid")) );
- model.setValue("/root/main/reservation/fstacptdt", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("fstacptdt")) );
- model.setValue("/root/main/reservation/acptseqno", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("acptseqno")) );
- model.setValue("/root/main/reservation/cretno", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("cretno")) );
- model.setValue("/root/main/reservation/oldorddd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddd")) );
- model.setValue("/root/main/reservation/telrsrvrem", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("telrsrvrem")) );
- model.setValue("/root/main/reservation/updtcnclresn", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("updtcnclresn")) );
- model.setValue("/root/main/reservation/calcyn", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("calcyn")) );
- model.setValue("/root/main/reservation/calcflag", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("calcflag")) );
- model.setValue("/root/main/reservation/medamtestmyn", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("medamtestmyn")) );
- model.setValue("/root/main/reservation/histstat", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("histstat")) );
- model.setValue("/root/main/reservation/rsrvflag", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("rsrvflag")) );
- model.setValue("/root/main/reservation/dracptyn", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("dracptyn")) );
- model.setValue("/root/main/reservation/prcpgenryn", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("prcpgenryn")) );
-
- if( grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("etcordflag")) != 'B') {
- model.setValue("/root/main/reservation/etcordflag", '-');
- }else{
- model.setValue("/root/main/reservation/etcordflag", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("etcordflag")) );
- }
-
- //협진
- model.setValue("/root/main/reservation/rqstflag", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("rqstflag")) );
- model.setValue("/root/main/reservation/rqsthospcd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("rqsthospcd")) );
- model.setValue("/root/main/reservation/rqstdrid", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("rqstdrid")) );
- model.setValue("/root/main/reservation/onestop", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("onestop")) );
-
- //진료일,시간, 진료과,의사
- model.setValue("/root/main/reservation/orddd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddd")) );
- model.setValue("/root/main/reservation/ordtm", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("ordtm")) );
-
- model.setValue("/root/main/reservation/orddeptcd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddeptcd")) );
- var deptengabbr = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/deptengabbr");
- model.setValue("/root/main/reservation/orddeptnm", deptengabbr);
- cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_deptcd.value + "']";
-
- model.setValue("/root/main/reservation/subdeptcd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("subdeptcd")) );
-
- //cmb_deptcd.dispatch("xforms-value-changed");
- model.setValue("/root/main/reservation/orddrid", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddrid")) );
- model.setValue("/root/main/reservation/fsexamflag", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("fsexamflag")) );
- cmb_orddrid.dispatch("xforms-value-changed");
-
- model.setValue("/root/main/reservation/tablename", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("tablename")) );
-
- model.setValue("/root/main/reservation/centcd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("centcd")) );
-
- model.refresh();
-
- model.removeNodeset("/root/tmp/reservation");
- model.makeNode("/root/tmp/reservation");
- model.copyNode("/root/tmp/reservation", "/root/main/reservation");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </datagrid>
- <caption id="caption41" class="tit_2" style="left:5px; top:348px; width:108px; height:13px; ">외래이력</caption>
- <select1 id="radio13" ref="/root/main/rsrvflag" appearance="full" cellspacing="8" cols="5" rows="1" overflow="visible" style="left:93px; top:346px; width:407px; height:15px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>전화/인터넷예약</label>
- <value>T</value>
- </item>
- <item>
- <label>접수이력</label>
- <value>R</value>
- </item>
- <item>
- <label>미진료이력</label>
- <value>N</value>
- </item>
- <item>
- <label>취소이력</label>
- <value>X</value>
- </item>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var rsrvFlag = radio13.value;
- var curDate = getCurrentDate();
-
- if( rsrvFlag == "R" ){ //접수이력
- grd_outhist.attribute("nodeset") = "/root/main/outhist/outhistlist[ histstat ='R' ]";
- grd_outhist.rebuild();
- }else if( rsrvFlag == "T"){ //전화/인터넷예약
- grd_outhist.attribute("nodeset") = "/root/main/outhist/outhistlist[ (histstat ='T' or histstat = 'R') and ( rsrvflag = '2' or rsrvflag = '5' or rsrvflag = '1') and orddd>="+curDate+"]";
- grd_outhist.rebuild();
- }else if( rsrvFlag == "X"){ //취소이력
- grd_outhist.attribute("nodeset") = "/root/main/outhist/outhistlist[ histstat ='X' ]";
- grd_outhist.rebuild();
- }else if( rsrvFlag == "N"){ //미진료이력
- grd_outhist.attribute("nodeset") = "/root/main/outhist/outhistlist[ dracptyn != 'Y' and (histstat = 'T' or histstat = 'R') and orddd>="+curDate+"]";
- grd_outhist.rebuild();
- }else{
- grd_outhist.attribute("nodeset") = "/root/main/outhist/outhistlist";
- grd_outhist.rebuild();
- }
-
- grd_outhist.allStyle("all","background-color") = "#ffffff"; // 배경색을 초기화 한다.
- setRowStyle("grd_outhist", "2","Y","holiyn","equal"); //row의 색상을 변경한다.
- grd_outhist.rebuild();
-
- ]]>
- </script>
- </select1>
- <line id="line17" class="line_1" style="x1:5px; y1:364px; x2:551px; y2:364px; "/>
- <select1 id="cmb_onestop" ref="/root/main/reservation/onestop" class="combo_default" visibility="hidden" appearance="minimal" style="left:65px; top:296px; width:155px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/A0420list/A0420">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_rqstdrid" ref="/root/main/reservation/rqstdrid" class="input_default" visibility="hidden" style="left:494px; top:271px; width:61px; height:19px; "/>
- <line id="line10" class="line_3" style="x1:5px; y1:317px; x2:220px; y2:317px; "/>
- <textarea id="opt_remfact" ref="/root/main/reservation/fstexamrem" disabled="true" appearance="textarea" style="left:113px; top:103px; width:442px; height:43px; "/>
- <select1 id="cmb_orddrid" ref="/root/main/reservation/orddrid" class="combo_default" navindex="12" appearance="minimal" style="left:113px; top:56px; width:131px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddrid/orddridlist">
- <label ref="nmsp"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var orddeptcd1 = model.getValue("/root/main/outhist/outhistlist/orddeptcd");
- var orddeptcd2 = model.getValue("/root/main/reservation/orddeptcd");
- var orddrid1 = model.getValue("/root/main/outhist/outhistlist/orddrid");
- var orddrid2 = model.getValue("/root/main/reservation/orddrid");
-
- fGetCalendarData();
- cmb_orddrid.refresh();
-
- var orddrabbr = model.getValue("/root/init/orddrid/orddridlist[ cd = '" + cmb_orddrid.value + "']/drengabbr");
- model.setValue("/root/main/reservation/orddeptnm", orddrabbr);
-
- var sp = model.getValue("/root/init/orddrid/orddridlist[cd = '" + cmb_orddrid.value + "']/sp");
- if( sp == 'Y' || sp == 'y' ){
- model.setValue("/root/main/reservation/specordyn", sp);
- }else{
- model.setValue("/root/main/reservation/specordyn", 'N');
- }
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <line id="line30" class="line_2" style="x1:5px; y1:268px; x2:556px; y2:268px; "/>
- <select1 id="cmb_deptcd" ref="/root/main/reservation/orddeptcd" class="combo_default" navindex="11" appearance="minimal" style="left:391px; top:31px; width:99px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //노드와 컨트롤의 값 동기화를 위해 리풀레쉬 해준다.
- cmb_deptcd.refresh();
-
- model.setValue("/root/main/reservation/subdeptcd", "-");
-
-
- //응급의학과 블럭킹
- if( cmb_deptcd.value == '2280000000' ){
- messageBox("응급의학과는 전화예약에서 접수할 수 없습니다.", "E999", "");
- model.setValue("/root/main/reservation/orddrid", "");
- model.setValue("/root/main/reservation/orddeptcd", "");
- model.setValue("/root/main/reservation/subdeptcd", "-");
- model.setValue("/root/main/reservation/orddeptnm", "");
- // model.setValue("/root/main/reservation/centcd", "-");
- model.refresh();
- model.setFocus("cmb_deptcd");
- return false;
- }
-
- combo6.visible = false;
- cmb_orddrid.visible = true;
-
- //sub진료과 세팅 2008-09-12 추가
- cmb_subdeptcd.choices.itemset.attribute("nodeset") = "/root/init/subdeptcd/subdeptcdlist[dp = '"+ cmb_deptcd.value +"' or dp = '-']";
- cmb_subdeptcd.refresh();
-
-
- //2007-08-17 이동식 추가 - 진료과 선택시 영문약어표시
- var deptengabbr = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/deptengabbr");
- model.setValue("/root/main/reservation/orddeptnm", deptengabbr);
- //END..
-
- cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_deptcd.value + "']";
- model.setValue("/root/main/reservation/orddrid", "");
- fGetFsexamFlag();
- model.refresh();
-
- if( model.getValue("/root/main/patinfo/patinfolist/pid").length < 2 && model.getValue("/root/main/patinfo/patinfolist/hngnm").length < 2 ){
- //환자정보 없을 경우 진료의뢰서 체크 안함!!!
-
- }else if( model.getValue("/root/main/patinfo/patinfolist/pid").length < 2 && model.getValue("/root/main/patinfo/patinfolist/hngnm").length > 1 ){
-
- var reqdeptno = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/reqdeptno");
-
- //등록번호 없고 환자 이름이 입력된 경우 - 신환! 무조건 메세지 출력!!
- if( reqdeptno == "55" || reqdeptno == "23" || reqdeptno == "21" ){
- //alert("건강보험" + insukind + " " + reqdeptno);
- model.setValue("/root/main/reservation/ordreqdescyn", 'Y');
- //진료의뢰서가 필요 없을경우 선택진료설명여부 Yes 세팅
- model.setValue("/root/main/reservation/specorddescyn", 'Y');
-
- }else {
- messageBox("진료의뢰서가 필요합니다.", "E999", "");
- model.setValue("/root/main/reservation/ordreqdescyn", '');
- }
-
- }else{
-
- //진료의뢰서 확인
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var fsexamflag = model.getValue("/root/main/reservation/fsexamflag");
- var orddeptcd = cmb_deptcd.value;
- //var deptengabbr = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/deptengabbr");
- var reqdeptno = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/reqdeptno");
- var outhistpath = "/root/main/outhist/outhistlist"; //외래이력노드
-
- if( ! fCheckOrdCnst(pid, fsexamflag, orddeptcd, deptengabbr, reqdeptno, outhistpath, INSUKIND) ){
-
- messageBox("진료의뢰서가 필요합니다.", "E999", "");
- model.setValue("/root/main/reservation/ordreqdescyn", '');
- }else {
- model.setValue("/root/main/reservation/ordreqdescyn", 'Y');
- //진료의뢰서가 필요 없을경우 선택진료설명여부 Yes 세팅
- model.setValue("/root/main/reservation/specorddescyn", 'Y');
-
- }
-
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <line id="line31" class="line_2" style="x1:5px; y1:148px; x2:556px; y2:148px; "/>
- <input id="ipt_ordtm" ref="/root/main/reservation/ordtm" class="input_default" navindex="14" format="hh:nn" style="left:223px; top:79px; width:50px; height:19px; "/>
- <caption id="caption40" class="cell_1" style="left:5px; top:30px; width:105px; height:23px; vertical-align:middle; ">센터</caption>
- <line id="line11" class="line_2" style="x1:5px; y1:100px; x2:556px; y2:100px; "/>
- <line id="line32" class="line_2" style="x1:5px; y1:196px; x2:556px; y2:196px; "/>
- <caption id="caption30" class="cell_1" style="left:5px; top:150px; width:105px; height:47px; vertical-align:middle; ">의사 전문분야</caption>
- <line id="line12" class="line_2" style="x1:5px; y1:220px; x2:220px; y2:220px; "/>
- <select1 id="cnstteamnm" ref="/root/main/reservation/cnstteamnm" class="combo_default" appearance="minimal" style="left:437px; top:55px; width:118px; height:19px; "/>
- <select1 id="cmb_centcd" ref="/root/main/reservation/centcd" class="combo_default" appearance="minimal" style="left:113px; top:31px; width:131px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/centcd/centcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var centcd = model.getValue("/root/main/reservation/centcd");
-
- if( centcd == '' || centcd == '-' ){
- combo5.visible = false;
- combo6.visible = false;
-
- cmb_deptcd.visible = true;
- cmb_orddrid.visible = true;
-
- model.setValue("/root/main/reservation/orddeptcd", '');
- model.setValue("/root/main/reservation/orddrid", '');
- model.setValue("/root/main/reservation/orddeptnm", '');
-
- cmb_deptcd.refresh();
- cmb_orddrid.refresh();
- ipt_orddeptnm.refresh();
-
- }else{
- var instcd = model.getValue("/root/hidden/session/sess_dutplceinstcd");
- var deptcd = centcd;
- var base_dd = new Date().getDateFormat("YYYYMMDD");
- var sort_field = "dispseq";//정렬필드(출력순서:'dispseq')
- var sort_method = "asc"; //정렬방법(오름차순:'asc')
- zsufGetCntrSubOrdDepartmentList(instcd, deptcd, 'O', "/root/hidden/init/cntrsuborddeptlist", base_dd);
- zsufGetCntrOrdDeptDoctorList(instcd, deptcd, 'O', "/root/hidden/init/cntrorddeptdoctorlist",sort_field, sort_method, base_dd);
-
- combo5.visible = true;
- combo6.visible = true;
-
- cmb_deptcd.visible = false;
- cmb_orddrid.visible = false;
-
- model.setValue("/root/main/reservation/orddeptcd", '');
- model.setValue("/root/main/reservation/orddrid", '');
- model.setValue("/root/main/reservation/orddeptnm", '');
- model.setValue("/root/main/reservation/subdeptcd", '');
- model.setValue("/root/main/reservation/specordyn", '');
-
- cmb_deptcd.refresh();
- cmb_orddrid.refresh();
- ipt_orddeptnm.refresh();
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption31" class="cell_1" style="left:5px; top:102px; width:105px; height:47px; vertical-align:middle; ">특이사항</caption>
- <caption id="caption42" class="cell_1" style="left:5px; top:78px; width:105px; height:23px; vertical-align:middle; ">진료일자/시간</caption>
- <textarea id="output132" ref="/root/main/reservation/ordfild" disabled="true" appearance="textarea" style="left:113px; top:151px; width:442px; height:43px; "/>
- <caption id="caption2" class="cell_1" style="left:371px; top:78px; width:63px; height:23px; vertical-align:middle; ">기타진료</caption>
- <line id="line24" class="line_2" style="x1:5px; y1:76px; x2:556px; y2:76px; "/>
- <line id="line14" class="line_2" style="x1:5px; y1:244px; x2:556px; y2:244px; "/>
- <caption id="caption33" class="cell_1" visibility="hidden" style="left:5px; top:294px; width:55px; height:23px; vertical-align:middle; ">원스탑</caption>
- <select1 id="combo1" ref="/root/main/reservation/fsexamflag" class="combo_default" disabled="true" appearance="minimal" style="left:276px; top:79px; width:92px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0021list/P0021">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption24" class="cell_1" style="left:225px; top:246px; width:85px; height:23px; vertical-align:middle; ">변경/취소사유</caption>
- <select1 id="radio15" ref="/root/main/reservation/insuchrgyn" navindex="16" appearance="full" cellspacing="8" cols="2" rows="1" overflow="visible" style="left:114px; top:224px; width:106px; height:20px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>Yes</label>
- <value>Y</value>
- </item>
- <item>
- <label>No</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption44" class="cell_1" style="left:5px; top:198px; width:105px; height:23px; vertical-align:middle; ">선택진료설명여부</caption>
- <caption id="caption25" class="cell_1" style="left:247px; top:30px; width:79px; height:23px; vertical-align:middle; ">진료과</caption>
- <group id="group6" style="left:305px; top:300px; width:247px; height:31px; ">
- <button id="button10" class="btn4_letter2" navindex="23" style="left:120px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //변경/취소 모드인지 체크
- var rsrvflag = model.getValue("/root/main/reservation/rsrvflag");
- var histstat = model.getValue("/root/main/reservation/histstat");
- if( grd_outhist.row < 1 || rsrvflag == '' || histstat == ''){
-
- messageBox("취소할 내역이 선택되지 않았습니다.", "E999", "");
- return false;
- }
-
- //alert( pamCompareNodes("/root/main/patinfo/patinfolist", "/root/tmp/patinfolist") );
- //alert( pamCompareNodes("/root/main/reservation", "/root/tmp/reservation") );
-
- //의사접수여부가 'Y'인 내역은 변경/취소할 수 없습니다.
- var rcptyn = grd_outhist.valueMatrix( grd_outhist.row, grd_outhist.colRef("rcptyn"));
- var histstat = grd_outhist.valueMatrix( grd_outhist.row, grd_outhist.colRef("histstat"));
- if( rcptyn == 'Y' || histstat == 'R'){
-
- messageBox("수납내역이 있는 외래내역은 취소할 수 없습니다.", "E999", "");
- return false;
-
- //처방발생여부가 'Y'인 내역은 변경/취소할 수 없습니다.
- }
-
- // 신환/구환을 구분한다.
- if( model.getValue("/root/main/reservation/cretno") != '' &&
- model.getValue("/root/main/reservation/acptseqno") != '' &&
- model.getValue("/root/main/patinfo/patinfolist/pid").length > 1 &&
- model.getValue("/root/main/reservation/acptno") == '0' ){
-
- model.setValue("/root/hidden/source/checkfnexam", '2');
- }else{
-
- model.setValue("/root/hidden/source/checkfnexam", '1');
- }
-
- // if( pamCompareNodes("/root/main/patinfo/patinfolist", "/root/tmp/patinfolist")
- // && (!fCnclCheck())){
- if( (!fCnclCheck())){
- if( messageBox("예약정보를 정말 취소하시겠습니까?", "Q003") == 6){
-
- fMakeRsrv('X');
- }
- }else{
-
- messageBox("예약정보가 수정되었습니다. 수정된 정보는 취소할 수 없습니다.", "E999", "");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button11" class="btn4_letter2" navindex="21" style="left:0px; top:5px; width:56px; height:22px; ">
- <caption>예약</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //치과는 재진 예약시 예약 불가(초진만 가능)
- var reqdeptno = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/reqdeptno");
- var check = model.getValue("/root/main/reservation/fsexamflag");
- var cellColor = model.getValue("/root/tmp/cellColor");
- var orddd = model.getValue("/root/main/reservation/orddd");
- var curDate = getCurrentDate();
- var userid = model.getValue("/root/tmp/userinfo/userinfolist/userid");
-
- if(orddd <= curDate){
- messageBox("오늘날짜 이전으로는 예약 할 수 없습니다.", "E999");
- return;
- }
-
- if( userid != '81030220'){
- if(cellColor == '#ffffff'){
- messageBox("휴진일자에는 예약할 수 없습니다.", "E999");
- return false;
- }
- }
-
- if(reqdeptno == '55' && check == 'R'){
- messageBox("치과는 전화예약에서 초진만 가능합니다.", "E999");
- return false;
- }
-
- //재원여부체크
- if( ! fInhospynCheck() ){
- return false;
- }
-
- //변경/취소 모드인지 체크
- var acptdd = model.getValue("/root/main/reservation/acptdd");
- var acptno = model.getValue("/root/main/reservation/acptno");
- var cretno = model.getValue("/root/main/reservation/cretno");
- var acptseqno = model.getValue("/root/main/reservation/acptseqno");
-
- if( acptdd != '' && acptno != '' && cretno != '' && acptseqno != ''){
- messageBox("변경/취소할 내역이 선택되었습니다. Clear버튼을 눌러 예약내역을 지운 후 예약해주세요", "E999", "");
- return false;
- }
-
- //예약내역체크
- if( ! fCheckRsrvHist() ){
- return false;
- }
- // 신환/구환을 구분한다.
- if( model.getValue("/root/main/patinfo/patinfolist/pid").length > 1 ){
-
- model.setValue("/root/hidden/source/checkfnexam", '2');
- }else{
-
- model.setValue("/root/hidden/source/checkfnexam", '1');
- }
- if( fIsRsrvDataOK() ){
- fMakeRsrv('T');
- // model.resetInstanceNode("/root/main/outhist/outhistlist");
- model.removenode("/root/main/outhist/outhistlist");
- }
- ]]>
- </script>
- </button>
- <button id="button12" class="btn4_letter2" navindex="22" style="left:59px; top:5px; width:56px; height:22px; ">
- <caption>변경</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var orddd = model.getValue("/root/main/reservation/orddd");
- var curDate = getCurrentDate();
-
- if(orddd <= curDate){
- messageBox("오늘날짜 이전으로는 변경 할 수 없습니다.", "E999");
- return;
- }
-
- //재원여부체크
- if( ! fInhospynCheck() ){
- return false;
- }
-
- //변경/취소 모드인지 체크
- var rsrvflag = model.getValue("/root/main/reservation/rsrvflag");
- var histstat = model.getValue("/root/main/reservation/histstat");
- if( grd_outhist.row < 1 || rsrvflag == '' || histstat == ''){
-
- messageBox("변경할 내역이 선택되지 않았습니다.", "E999", "");
- return false;
- }
-
- //예약내역 체크!!!
- if( model.getValue("/root/main/reservation/orddeptcd") != model.getValue("/root/tmp/reservation/orddeptcd") ){
- if( ! fCheckRsrvHist() ){
- return false;
- }
- }
-
- // 신환/구환을 구분한다.
- if( model.getValue("/root/main/reservation/cretno") != '' &&
- model.getValue("/root/main/reservation/acptseqno") != '' &&
- model.getValue("/root/main/patinfo/patinfolist/pid").length > 1 &&
- model.getValue("/root/main/reservation/acptno") == '0' ){
- model.setValue("/root/hidden/source/checkfnexam", '2');
- }else{
-
- model.setValue("/root/hidden/source/checkfnexam", '1');
- }
-
- if( pamCompareNodes("/root/main/patinfo/patinfolist", "/root/tmp/patinfolist")
- && pamCompareNodes("/root/main/reservation", "/root/tmp/reservation") ){
-
- if( messageBox("변경된 데이터가 없습니다.", "Q003") == 6){
-
- if( fIsRsrvDataOK() ){
- //진찰료가 수납된 내역(HISTSTAT=R) 변경 시(OTPT),
- //초재진구분,선택진료여부가 변경될 경우 기존내역 C, 신규내역 R 로 생성하면서,
- //CALCYN = Y 로 세팅,CALCFLAG=Y
- if( fIsRsrvUpdtDataOK() ){
- fMakeRsrv('C');
- }
- }
- }
- }else{
- if( fIsRsrvDataOK() ){
- if( fIsRsrvUpdtDataOK() ){
- fMakeRsrv('C');
- }
- }
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" navindex="24" style="left:179px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line15" class="line_6" style="x1:0px; y1:0px; x2:247px; y2:0px; "/>
- </group>
- <caption id="caption28" class="cell_1" style="left:5px; top:222px; width:105px; height:23px; vertical-align:middle; ">보험회사직원여부</caption>
- <select1 id="combo2" ref="/root/main/reservation/updtcnclresn" class="combo_default" navindex="20" appearance="minimal" style="left:313px; top:247px; width:242px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0020list/P0020">
- <label ref="cdnm"/>
- <value ref="cdnm"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption29" class="cell_1" style="left:371px; top:54px; width:63px; height:23px; vertical-align:middle; ">협진팀명</caption>
- <select1 id="combo3" ref="/root/main/reservation/telrsrvremcd" class="combo_default" appearance="minimal" style="left:225px; top:225px; width:85px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0414list/P0414">
- <label ref="cdnm"/>
- <value ref="cdnm"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var telrsrvrem = combo3.value;
- var bfTelRsrvRem = model.getValue("/root/main/reservation/telrsrvrem");
- if( bfTelRsrvRem == '-' || bfTelRsrvRem == '' || bfTelRsrvRem == ' '){
- //bfTelRsrvRem = telrsrvrem;
- }else{
- telrsrvrem = bfTelRsrvRem + " " + telrsrvrem;
- }
- model.setValue("/root/main/reservation/telrsrvrem", telrsrvrem);
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption35" class="cell_1" style="left:5px; top:54px; width:105px; height:23px; vertical-align:middle; ">전문의</caption>
- <input id="ipt_orddeptnm" ref="/root/main/reservation/orddeptnm" class="input_default" navindex="10" imemode="disabled" maxlength="6" _chartype="upper" appearance="input" style="left:328px; top:31px; width:60px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- var abbr = ipt_orddeptnm.value;
- var orddrabbr = '';
- var orddeptabbr = '';
- if( abbr.length >= 4 ){
- orddrabbr = abbr;
- // orddeptabbr = abbr.substr(0,2);
- }else if( abbr.length == 0 ){
- return false;
- }else{
- orddeptabbr = abbr.substr(0,2);
-
- }
-
- var orddeptcd = '';
- var orddrid = '';
- var ordid = model.getValue("/root/main/reservation/orddrid");
- var ordept = model.getValue("/root/main/reservation/orddeptcd");
-
- //진료의 세팅
- if( orddrabbr != '' ){
- orddrid = model.getValue("/root/init/orddrid/orddridlist[ drengabbr = '" + orddrabbr.toUpperCase() + "']/cd");
- orddeptcd = model.getValue("/root/init/orddrid/orddridlist[ drengabbr = '" + orddrabbr.toUpperCase() + "']/dp");
- //진료과세팅
- model.setValue("/root/main/reservation/orddeptcd", orddeptcd );
- cmb_deptcd.refresh();
- cmb_deptcd.dispatch("xforms-value-changed");
- //진료의 세팅
- model.setValue("/root/main/reservation/orddrid", orddrid );
- cmb_orddrid.refresh();
- cmb_orddrid.dispatch("xforms-value-changed");
- model.setFocus("ipt_orddd");
- }else if( orddeptabbr != '' ){
- //진료과 세팅
- var orddeptcd = model.getValue("/root/init/orddeptcd/orddeptcdlist[ deptengabbr = '" + orddeptabbr.toUpperCase() + "']/cd");
- model.setValue("/root/main/reservation/orddeptcd", orddeptcd );
- cmb_deptcd.refresh();
- cmb_deptcd.dispatch("xforms-value-changed");
- }else{
- model.setFocus("cmb_deptcd") ;
- }
- //model.setFocus("ipt_orddeptdrabbr")
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13"){
- model.setFocus("cmb_orddrid")
- }
- ]]>
- </script>
- </input>
- <caption id="caption34" class="cell_1" style="left:5px; top:246px; width:105px; height:23px; vertical-align:middle; ">의뢰서설명여부</caption>
- <select1 id="combo4" ref="/root/main/reservation/etcordflag" class="combo_default" navindex="12" appearance="minimal" style="left:437px; top:79px; width:118px; height:19px; ">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>신체감정</label>
- <value>B</value>
- </item>
- </choices>
- </select1>
- <caption id="caption36" class="cell_1" visibility="hidden" style="left:225px; top:270px; width:85px; height:23px; vertical-align:middle; ">협력의뢰병원</caption>
- <caption id="caption37" class="cell_1" style="left:5px; top:270px; width:105px; height:23px; vertical-align:middle; ">의뢰서병원등급</caption>
- <select1 id="radio1" ref="/root/main/reservation/ordreqhospgrde" navindex="18" appearance="full" cellspacing="11" cols="2" rows="1" overflow="visible" style="left:114px; top:273px; width:105px; height:15px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>1차</label>
- <value>1</value>
- </item>
- <item>
- <label>2차</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_orddd" ref="/root/main/reservation/orddd" class="input_default" disabled="true" navindex="13" inputtype="date" style="left:113px; top:79px; width:107px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( model.getValue("/root/main/reservation/rsrvflag") != '9' ){
- fGetFsexamFlag();
- }
- model.setFocus("ipt_ordtm");
- model.refresh();
- ]]>
- </script>
- </input>
- <select1 id="combo5" ref="/root/main/reservation/orddeptcd" class="combo_default" appearance="minimal" style="left:391px; top:31px; width:99px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/cntrsuborddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //노드와 컨트롤의 값 동기화를 위해 리풀레쉬 해준다.
- cmb_deptcd.refresh();
-
- model.setValue("/root/main/reservation/subdeptcd", "-");
-
-
- //응급의학과 블럭킹
- if( cmb_deptcd.value == '2280000000' ){
- messageBox("응급의학과는 전화예약에서 접수할 수 없습니다.", "E999", "");
- model.setValue("/root/main/reservation/orddrid", "");
- model.setValue("/root/main/reservation/orddeptcd", "");
- model.setValue("/root/main/reservation/subdeptcd", "-");
- model.setValue("/root/main/reservation/orddeptnm", "");
- // model.setValue("/root/main/reservation/centcd", "-");
- model.refresh();
- model.setFocus("cmb_deptcd");
- return false;
- }
-
- combo6.visible = false;
- cmb_orddrid.visible = true;
-
- //sub진료과 세팅 2008-09-12 추가
- cmb_subdeptcd.choices.itemset.attribute("nodeset") = "/root/init/subdeptcd/subdeptcdlist[dp = '"+ cmb_deptcd.value +"' or dp = '-']";
- cmb_subdeptcd.refresh();
-
-
- //2007-08-17 이동식 추가 - 진료과 선택시 영문약어표시
- var deptengabbr = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/deptengabbr");
- model.setValue("/root/main/reservation/orddeptnm", deptengabbr);
- //END..
-
- cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_deptcd.value + "']";
- model.setValue("/root/main/reservation/orddrid", "");
- fGetFsexamFlag();
- model.refresh();
-
- if( model.getValue("/root/main/patinfo/patinfolist/pid").length < 2 && model.getValue("/root/main/patinfo/patinfolist/hngnm").length < 2 ){
- //환자정보 없을 경우 진료의뢰서 체크 안함!!!
-
- }else if( model.getValue("/root/main/patinfo/patinfolist/pid").length < 2 && model.getValue("/root/main/patinfo/patinfolist/hngnm").length > 1 ){
-
- var reqdeptno = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/reqdeptno");
-
- //등록번호 없고 환자 이름이 입력된 경우 - 신환! 무조건 메세지 출력!!
- if( reqdeptno == "55" || reqdeptno == "23" || reqdeptno == "21" ){
- //alert("건강보험" + insukind + " " + reqdeptno);
- model.setValue("/root/main/reservation/ordreqdescyn", 'Y');
- //진료의뢰서가 필요 없을경우 선택진료설명여부 Yes 세팅
- model.setValue("/root/main/reservation/specorddescyn", 'Y');
-
- }else {
- messageBox("진료의뢰서가 필요합니다.", "E999", "");
- model.setValue("/root/main/reservation/ordreqdescyn", '');
- }
-
-
- }else{
-
- //진료의뢰서 확인
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var fsexamflag = model.getValue("/root/main/reservation/fsexamflag");
- var orddeptcd = cmb_deptcd.value;
- //var deptengabbr = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/deptengabbr");
- var reqdeptno = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/reqdeptno");
- var outhistpath = "/root/main/outhist/outhistlist"; //외래이력노드
-
- if( ! fCheckOrdCnst(pid, fsexamflag, orddeptcd, deptengabbr, reqdeptno, outhistpath, INSUKIND) ){
-
- messageBox("진료의뢰서가 필요합니다.", "E999", "");
- model.setValue("/root/main/reservation/ordreqdescyn", '');
- }else {
- model.setValue("/root/main/reservation/ordreqdescyn", 'Y');
- //진료의뢰서가 필요 없을경우 선택진료설명여부 Yes 세팅
- model.setValue("/root/main/reservation/specorddescyn", 'Y');
-
- }
-
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption39" class="cell_1" style="left:247px; top:56px; width:79px; height:23px; vertical-align:middle; ">선택진료여부</caption>
- <select1 id="combo6" ref="/root/main/reservation/orddrid" class="combo_default" appearance="minimal" style="left:113px; top:56px; width:131px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/cntrorddeptdoctorlist/user">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var orddeptcd1 = model.getValue("/root/main/outhist/outhistlist/orddeptcd");
- var orddeptcd2 = model.getValue("/root/main/reservation/orddeptcd");
- var orddrid1 = model.getValue("/root/main/outhist/outhistlist/orddrid");
- var orddrid2 = model.getValue("/root/main/reservation/orddrid");
-
- fGetCalendarData();
- cmb_orddrid.refresh();
-
- var orddrabbr = model.getValue("/root/init/orddrid/orddridlist[ cd = '" + cmb_orddrid.value + "']/drengabbr");
- model.setValue("/root/main/reservation/orddeptnm", orddrabbr);
-
- var sp = model.getValue("/root/init/orddrid/orddridlist[cd = '" + cmb_orddrid.value + "']/sp");
- if( sp == 'Y' || sp == 'y' ){
- model.setValue("/root/main/reservation/specordyn", sp);
- }else{
- model.setValue("/root/main/reservation/specordyn", 'N');
- }
-
- model.refresh();
-
- ]]>
- </script>
- </select1>
- <caption id="caption49" class="cell_1" style="left:225px; top:198px; width:85px; height:47px; vertical-align:middle; ">
- <![CDATA[통화내용
- ]]>
- </caption>
- <input id="input3" ref="/root/main/reservation/updtcnclresn" class="input_default" style="left:313px; top:247px; width:217px; height:19px; "/>
- <select1 id="cmb_subdeptcd" ref="/root/main/reservation/subdeptcd" class="combo_default" appearance="minimal" style="left:490px; top:31px; width:65px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/subdeptcd/subdeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var orddeptcd = model.getValue("/root/main/reservation/orddeptcd");
- var subdeptcd = model.getValue("/root/main/reservation/subdeptcd");
-
- if( subdeptcd != '' && subdeptcd != '-' ){
-
- cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + subdeptcd + "']";
- }else{
- cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + orddeptcd + "']";
-
- }
-
- cmb_orddrid.refresh();
- model.setValue("/root/main/reservation/orddrid", "");
- //2007-08-17 이동식 추가 - 진료과 선택시 영문약어표시
- var deptengabbr = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/deptengabbr");
- model.setValue("/root/main/reservation/orddeptnm", deptengabbr);
- //END..
- ]]>
- </script>
- </select1>
- <caption id="caption51" class="cell_1" visibility="hidden" style="left:436px; top:270px; width:55px; height:23px; vertical-align:middle; ">통화자</caption>
- <input id="ipt_rqsthospcd" ref="/root/main/reservation/rqsthospcd" class="input_default" visibility="hidden" style="left:313px; top:271px; width:122px; height:19px; "/>
- <textarea id="textarea3" ref="/root/main/reservation/telrsrvrem" navindex="19" scroll="vertical" style="left:313px; top:199px; width:242px; height:43px; "/>
- <select1 id="radio5" ref="/root/main/reservation/specorddescyn" navindex="15" appearance="full" cellspacing="8" cols="2" rows="1" overflow="visible" style="left:114px; top:200px; width:106px; height:20px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>Yes</label>
- <value>Y</value>
- </item>
- <item>
- <label>No</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <output id="output2" ref="/root/main/reservation/specordyn" class="output_fix" appearance="output" style="left:328px; top:56px; width:40px; height:19px; "/>
- <select1 id="radio6" ref="/root/main/reservation/ordreqdescyn" navindex="17" appearance="full" cellspacing="8" cols="2" rows="1" overflow="visible" style="left:114px; top:249px; width:106px; height:15px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>Yes</label>
- <value>Y</value>
- </item>
- <item>
- <label>No</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <line id="line16" class="line_1" style="x1:5px; y1:25px; x2:556px; y2:25px; "/>
- </case>
- <case id="case2" selected="true">
- <button id="button15" class="icon_bottom" style="left:206px; top:251px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_momolist.attribute("height") = 142;
- button5.visible = true;
- button15.visible = false;
- ]]>
- </script>
- </button>
- <datagrid id="datagrid2" nodeset="/root/main/exculist/subordlist3/rows" autoresize="true" caption="환자번호^일자^Comment^caption1" colsep="^" colwidth="100, 77, 162, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:413px; width:258px; height:77px; ">
- <col ref="pid" visibility="hidden"/>
- <col ref="cmtdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="patcmt" type="input"/>
- <col ref="iudgb" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/main/exculist/subordlist3/rows[" + datagrid2.row + "]/iudgb") != "I"){
- model.setValue("/root/main/exculist/subordlist3/rows[" + datagrid2.row + "]/iudgb", "U");
- }
- datagrid2.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("datagrid2", false, "/root/hidden2/popupmenu/menu", "label", "func");
- ]]>
- </script>
- </datagrid>
- <button id="button7" class="btn4_letter2" disabled="true" style="left:203px; top:386px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var update = getGridUpdateData(datagrid2);
- if(update == ""){
- messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
-
- } else {
- model.setValue("/root/send/req1/data", update);
- if (submit("TXAEA02002", false)){
- if (submit("TRAEA02009", false)){
- //model.removeNodeset("/root/main/exculist/subordlist3");
- //model.makeNode("/root/main/exculist/subordlist3");
- //model.resetInstanceNode("/root/main/exculist/subordlist3/rows");
- model.removeNodeset("/root/main/exculist/subordlist3/rows");
- copyNodeType("/root/main/exculist/subordlist3", "/root/reqdata1/subordlist3", "replace");
- datagrid2.refresh();
- patcmt();
- }
- }
- }
- ]]>
- </script>
- </button>
- <button id="button16" class="icon_bottom" style="left:205px; top:327px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- tar_prcpremfact.attribute("height") = 142;
- button17.visible = true;
- button16.visible = false;
- ]]>
- </script>
- </button>
- <line id="line20" class="line_1" style="x1:5px; y1:408px; x2:263px; y2:408px; "/>
- <datagrid id="datagrid3" nodeset="/root/init/calenlist/calendinfo" visibility="hidden" caption="caption1^caption2" colsep="^" colwidth="100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:930px; top:285px; width:220px; height:150px; ">
- <col ref="basedd"/>
- <col ref="dutflag"/>
- </datagrid>
- <button id="button17" class="icon_top" style="left:205px; top:327px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- tar_prcpremfact.attribute("height") = 43;
- button17.visible = false;
- button16.visible = true;
- ]]>
- </script>
- </button>
- <datagrid id="grd_rsrvtemp" nodeset="/root/hidden/beforersrvtm/rsrvdtlist" visibility="hidden" caption="변경전" colsep="^" colwidth="122" mergecellsfixedrows="bycolrec" rowsep="|" style="left:983px; top:233px; width:120px; height:235px; ">
- <col ref="before" style="left:0px; top:23px; width:159px; height:23px; "/>
- </datagrid>
- <button id="btn_rsrv" class="btn4_letter2" style="left:986px; top:151px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var nodeList = instance1.selectNodes("/root/main/exculist/mainordlist5[chk='true' ]");
- var rCSV = getNodeListCSV(nodeList);
-
- var nodeList2= instance1.selectNodes("/root/main/exculist/mainordlist5[srchrsrvtm='-' ]");
- var rCSV2 = getNodeListCSV(nodeList2);
-
-
- if ( rCSV == null ) {
- messageBox("처방내역을 ","C002");
- return "0";
- }
- if ( rCSV != null && rCSV2 != null ) {
- messageBox("예약시간을 ","C002");
- return "0";
- }
-
- //얘약 수정시 메시지박스 띄워주기
- var modifyinfo = "";
- var j = 1;
- var checknum = 0;
-
- for (var i = 1; i < grd_mainordlist5.rows ; i++) {
- if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk") == "true"){
- var rsrvdt = model.getValue("/root/main/exculist/mainordlist5["+i+"]/srchrsrvtm");
- //alert(isValidDateTime(rsrvdt, "YYYYMMDDhhmm"));
- if (isValidDateTime(rsrvdt, "YYYYMMDDhhmm") == false){
- messageBox("예약시간 형식이 잘못 입력되었습니다. 확인바랍니다.", "E999", "");
- return;
- }
- }
- }
- for(var i = 0; i < grd_mainordlist5.rows ; i++) {
- if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk") == "true" && model.getValue("/root/main/exculist/mainordlist5["+i+"]/rsrvflagyn") == "예약" ) {
- var before =model.getValue("/root/main/exculist/mainordlist5["+i+"]/bf_srchrsrvtm");
- var rsrvdt = model.getValue("/root/main/exculist/mainordlist5["+i+"]/srchrsrvtm");
- var bf_cdnm = model.getValue("/root/main/exculist/mainordlist5["+i+"]/prcpnm");
- checknum = checknum +1;
- modifyinfo +=checknum +"."+ bf_cdnm+" \r\n"+ " → 전 :"+before.substr(0,4)+"-"+before.substr(4,2)+"-"+before.substr(6,2)+" "+before.substr(8,2)+":"+before.substr(10,2) +" / 후 : "+rsrvdt.substr(0,4)+"-"+rsrvdt.substr(4,2)+"-"+rsrvdt.substr(6,2)+" "+rsrvdt.substr(8,2)+":"+rsrvdt.substr(10,2)+" \r\n\r\n" ;
- j++;
- }
- }
- for(var i = 0; i < grd_mainordlist5.rows ; i++) {
- if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk") == "true" && model.getValue("/root/main/exculist/mainordlist5["+i+"]/rsrvflagyn") == "미예약" ) {
- var sexcuroomcd = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/excuroomcd");
- if (sexcuroomcd.length > 3){
- var ssonogb = sexcuroomcd.substring(0, 4)
- if (ssonogb == "SONO"){
- messageBox("수행부서를 선택하시기 바랍니다.", "E999", "");
- return;
- }
- }
- if (model.getValue("/root/main/exculist/mainordlist5["+i+"]/glycostestyn") == "Y" && model.getValue("/root/main/exculist/mainordlist5["+i+"]/glycosyn") == ""){
- messageBox("해당 처방코드는 당뇨유무 체크가 필수 항목입니다", "E999", "");
- return;
- }
- if (model.getValue("/root/main/exculist/mainordlist5["+i+"]/bonedentestyn") == "Y"){
- if (datagrid4.rows > 1){
- if (model.getValue("/root/main/exculist/mainordlist8[" + 1 + "]/payflagcd") == "0" && (model.getValue("/root/main/exculist/mainordlist8[" + 1 + "]/prcpdd") != model.getValue("/root/main/exculist/mainordlist5["+i+"]/prcpdd"))){
- var rsrvdt1 = model.getValue("/root/main/exculist/mainordlist5["+i+"]/srchrsrvtm");
- var rsrvdt = rsrvdt1.substr(0, 8);
- var sdate1 = model.getValue("/root/main/exculist/mainordlist8[" + 1 + "]/execdd");
- var sdate = sdate1.toDate().getAddDate(+365,"D").getDateFormat("YYYYMMDD");
- if (sdate > rsrvdt){
- messageBox("해당 골밀도 처방코드는 1년이 지나지 않아 예약할 수 없습니다. ", "E999", "");
- return;
- }
- }
- }
- }
- }
- }
-
- if (model.getValue("/root/send/data/chkflag") == "T"){
- var message = messageBox( modifyinfo +"\r\n\r\n예약(수정) 저장 후 예약증 출력","S001","\r\n예약(수정)를 취소하시려면 취소를 누르십시오.");
- var chk = "N";
- if ( message == 6 ) { //예
- if (exeRsrvTransaction("rsrv") == true){
- chk = "Y";
- var max = 0;
- for(var i = 1 ; i < grd_mainordlist5.rows; i ++) {
- var tmpldata = model.getValue("/root/main/exculist/mainordlist5["+i+"]/tmpldata");
- if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk") == "true" && tmpldata != "") {
- max = parseInt(max) + 1;
- }
- }
- if (max > 0){
- rtfviewer.OpenProgressBar(max);
- }
- for(var i = 1 ; i < grd_mainordlist5.rows; i ++) {
- var tmpldata = model.getValue("/root/main/exculist/mainordlist5["+i+"]/tmpldata");
- if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk") == "true" && tmpldata != "") {
- var rsrvdt = model.getValue("/root/main/exculist/mainordlist5["+i+"]/srchrsrvtm");
- var prcpnm = model.getValue("/root/main/exculist/mainordlist5["+i+"]/prcpnm");
- var roomcd = model.getValue("/root/main/exculist/mainordlist5["+i+"]/pexcuroomnm");
- var sna = model.getValue("/root/main/exculist/patinfolist/sex") + "/" + model.getValue("/root/main/exculist/patinfolist/age");
- //var sna = opt_sex.value+"/"+opt_age.value ;
-
- var year = rsrvdt.substr(0,4);
- var month = rsrvdt.substr(4,2);
- var day = rsrvdt.substr(6,2);
- var week = rsrvdt.substr(0,8).toDate().getDayOfWeek("K");
- var hh = rsrvdt.substr(8,2);
- if(hh > 12)
- {
- hh = "오후 "+(hh-12);
- }
- else{
- hh = "오전 "+hh;
- }
- var mm = rsrvdt.substr(10,2);
-
- //예약증 출력
- if(tmpldata != "") {
- //1. 예약예문내용을 뷰어로 보여주기
- rtfviewer.TextRtf = tmpldata;
- var ssleep = "";
-
- if (model.getValue("/root/main/exculist/mainordlist5["+i+"]/slepyn") == "Y"){
- var ssleep = "(수면)";
- }
- roomcd = roomcd + ssleep;
-
- rtfviewer.ReplaceRtfCode("pid",model.getValue("/root/send/data/srchpid")); //등록번호
- rtfviewer.ReplaceRtfCode("patnm",model.getValue("/root/main/exculist/patinfolist/hngnm")); //성명
- rtfviewer.ReplaceRtfCode("roomcd",roomcd); //검사실명
- rtfviewer.ReplaceRtfCode("year",year); //년
- rtfviewer.ReplaceRtfCode("month",month); //월
- rtfviewer.ReplaceRtfCode("day",day); //일
- rtfviewer.ReplaceRtfCode("week",week); //요일
- rtfviewer.ReplaceRtfCode("hh",hh); //시
- rtfviewer.ReplaceRtfCode("mm",mm); //분
-
- //4. 출력
- rtfviewer.print();
-
- }
- }
- }
- }
- if (max > 0){
- rtfviewer.CloseProgressBar();
- }
- }
- if (message == 7 ) { //아니오
- if (exeRsrvTransaction("rsrv") == true){
- chk = "Y";
- }
- }
- }else{
- //if( messageBox("해당 선택 정보내역을 " , "Q002" ) == 6 ){
- if (exeRsrvTransaction("rsrv") == true){
- chk = "Y";
- }
- //}
- }
- if (chk == "Y"){
- readfunc();
- //상태별 색상주기
- fSetGrdMainordlist();
- }
- model.setFocus("ipt_pid");
- ]]>
- </script>
- </button>
- <caption id="caption43" class="tit_2" style="left:7px; top:257px; width:191px; height:13px; ">수행부서/변동내역 Comment</caption>
- <button id="button9" class="icon_top" style="left:206px; top:251px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_momolist.attribute("height") = 49;
- button5.visible = false;
- button15.visible = true;
- ]]>
- </script>
- </button>
- <textarea id="tar_prcpremfact" ref="/root/main/comment1/prcpcmt" disabled="true" style="left:5px; top:352px; width:258px; height:33px; "/>
- <caption id="caption45" class="tit_2" style="left:7px; top:332px; width:173px; height:13px; ">처방 Comment</caption>
- <group id="group7" scroll="auto" style="left:268px; top:143px; width:394px; height:55px; ">
- <shape id="rectangle2" class="calendar_header" appearance="rectangle" style="left:0px; top:3px; width:390px; height:52px; "/>
- <button id="button13" class="icon_month" style="left:20px; top:25px; width:27px; height:27px; ">
- <caption>1</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "01") {
- fGetCalendar("01");
- }
- ]]>
- </script>
- </button>
- <button id="button14" class="icon_month" style="left:50px; top:25px; width:27px; height:27px; ">
- <caption>2</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "02") {
- fGetCalendar("02");
- }
- ]]>
- </script>
- </button>
- <button id="button18" class="icon_month" style="left:80px; top:25px; width:27px; height:27px; ">
- <caption>3</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "03") {
- fGetCalendar("03");
- }
- ]]>
- </script>
- </button>
- <button id="button19" class="icon_month" style="left:110px; top:25px; width:27px; height:27px; ">
- <caption>4</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "04") {
- fGetCalendar("04");
- }
- ]]>
- </script>
- </button>
- <button id="button20" class="icon_month" style="left:140px; top:25px; width:27px; height:27px; ">
- <caption>5</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "05") {
- fGetCalendar("05");
- }
- ]]>
- </script>
- </button>
- <button id="button21" class="icon_month" style="left:170px; top:25px; width:27px; height:27px; ">
- <caption>6</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "06") {
- fGetCalendar("06");
- }
- ]]>
- </script>
- </button>
- <button id="button22" class="icon_month" style="left:200px; top:25px; width:27px; height:27px; ">
- <caption>7</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "07") {
- fGetCalendar("07");
- }
- ]]>
- </script>
- </button>
- <button id="button23" class="icon_month" style="left:230px; top:25px; width:27px; height:27px; ">
- <caption>8</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "08") {
- fGetCalendar("08");
- }
- ]]>
- </script>
- </button>
- <button id="button24" class="icon_month" style="left:260px; top:25px; width:27px; height:27px; ">
- <caption>9</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "09") {
- fGetCalendar("09");
- }
- ]]>
- </script>
- </button>
- <button id="button25" class="icon_month" style="left:290px; top:25px; width:27px; height:27px; ">
- <caption>10</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "10") {
- fGetCalendar("10");
- }
- ]]>
- </script>
- </button>
- <button id="button26" class="icon_month" style="left:320px; top:25px; width:27px; height:27px; ">
- <caption>11</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "11") {
- fGetCalendar("11");
- }
- ]]>
- </script>
- </button>
- <button id="button28" class="icon_month" style="left:350px; top:25px; width:27px; height:27px; ">
- <caption>12</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "12") {
- fGetCalendar("12");
- }
- ]]>
- </script>
- </button>
- <output id="output1" ref="/root/hidden/calendar/month" class="calendar_output" style="left:200px; top:2px; width:20px; height:19px; "/>
- <caption id="caption46" class="calendar_output" style="left:178px; top:2px; width:20px; height:19px; ">년</caption>
- <caption id="caption47" class="calendar_output" style="left:220px; top:2px; width:20px; height:19px; ">월</caption>
- <button id="button29" class="icon_next_year" style="left:270px; top:5px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_next_y.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
-
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
-
-
- setCalendar(isDate);
- // getCurerPresCond();
- ]]>
- </script>
- </button>
- <button id="button30" class="icon_pre_month" visibility="hidden" style="left:121px; top:5px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_pre_m.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
-
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
-
- setCalendar(isDate);
-
- ]]>
- </script>
- </button>
- <output id="output3" ref="/root/hidden/calendar/year" class="calendar_output" style="left:148px; top:2px; width:30px; height:19px; "/>
- <button id="button36" class="icon_next_month" visibility="hidden" style="left:246px; top:5px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_next_m.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
-
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
-
- if(model.getValue("/root/send/data/excuroomcd") == "") {
- messageBox("치료실","C002");
- return;
- }
-
- setCalendar(isDate);
- // getCurerPresCond();
- ]]>
- </script>
- </button>
- <button id="button38" class="icon_pre_year" style="left:98px; top:5px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_pre_y.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
-
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
-
- setCalendar(isDate);
- // getCurerPresCond();
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption52" class="tit_2" style="left:814px; top:159px; width:85px; height:13px; ">예약내역</caption>
- <datagrid id="grd_rsrvposstm" nodeset="/root/main/rsrvposstmlist/rsrvposstm" caption="시간^현황^가용" colsep="^" colwidth="41, 33, 32" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:664px; top:179px; width:144px; height:311px; ">
- <col ref="rsrvtm" format="hh:nn" style="text-align:center; "/>
- <col ref="count" style="text-align:center; "/>
- <col ref="max" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (+grd_mainordlist5.row != "" ) {
- var curDate = getCurrentDate().substr(0,8); //오늘날짜
- var rsrvdd =model.getValue("/root/send/data/rsrvdd"); //선택일자
- if (model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/rsrvtmcntlyn") == "Y"){
- messageBox("예약시간을 변경할 수 없는 검사/치료실입니다.", "E999", "");
- return;
- }
- //현황과 가용인원 같을 경우 예약 불가능
- if(model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/count") >= model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/max")) {
- if (messageBox("가용인원을 초과하였습니다.", "Q003") != 6) {
-
- }else {
- //당일예약
- if(curDate == rsrvdd) {
- if(getCurrentTime().substr(0,4) > model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")) { //현재시간 이전시간을 예약
- messageBox("예약시간이 과거시간", "E008");
- }
- else { //현재시간 이후시간을 예약
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvdt",model.getValue("/root/send/data/rsrvdd")+model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")); // 예약시간
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/srchrsrvtm",model.getValue("/root/send/data/rsrvdd")+model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")); // 예약시간
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/chk", "true");
- }
- }
-
- else if(curDate > rsrvdd) { //당일 이전 예약
- messageBox("예약일자가 과거일자", "E008");
- }
- else { // 당일 이후 예약
-
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvdt",model.getValue("/root/send/data/rsrvdd")+model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")); // 예약시간
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/srchrsrvtm",model.getValue("/root/send/data/rsrvdd")+model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")); // 예약시간
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/chk", "true");
- }
- //model.refresh();
- }
- }else {
- //당일예약
- if(curDate == rsrvdd) {
- if(getCurrentTime().substr(0,4) > model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")) { //현재시간 이전시간을 예약
- messageBox("예약시간이 과거시간", "E008");
- }
- else { //현재시간 이후시간을 예약
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvdt",model.getValue("/root/send/data/rsrvdd")+model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")); // 예약시간
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/srchrsrvtm",model.getValue("/root/send/data/rsrvdd")+model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")); // 예약시간
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/chk", "true");
- }
- }
-
- else if(curDate > rsrvdd) { //당일 이전 예약
- messageBox("예약일자가 과거일자", "E008");
- }
- else { // 당일 이후 예약
-
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvdt",model.getValue("/root/send/data/rsrvdd")+model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")); // 예약시간
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/srchrsrvtm",model.getValue("/root/send/data/rsrvdd")+model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")); // 예약시간
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/chk", "true");
- }
- //model.refresh();
- }
- DateChng();
-
- }
- else {
- messageBox("처방을", "C002");
- }
- ]]>
- </script>
- </datagrid>
- <multilinegrid id="grd_calendar1" nodeset="/root/hidden/calendar1/weeklist/list" class="gridcalendar" autoresize="true" caption="일^월^화^수^목^금^토" colsep="^" colwidth="56, 55, 55, 55, 55, 56, 56" dataheight="20" extendlastcol="noscroll" focuscolor="transparent" rowsep="|" mergecellsfixedrows="bycolrec" style="left:268px; top:200px; width:390px; height:290px; ">
- <row>
- <col class="color_sun" ref="sun" style="border-bottom-width:0px; "/>
- <col ref="mon" style="border-bottom-width:0px; "/>
- <col ref="tue" style="border-bottom-width:0px; "/>
- <col ref="wed" style="border-bottom-width:0px; "/>
- <col ref="thu" style="border-bottom-width:0px; "/>
- <col ref="fri" style="border-bottom-width:0px; "/>
- <col class="color_sat" ref="sat" style="border-bottom-width:0px; "/>
- </row>
- <row>
- <col ref="sun_memo" style="border-top-width:0px; "/>
- <col ref="mon_memo" style="border-top-width:0px; "/>
- <col ref="tue_memo" style="border-top-width:0px; "/>
- <col ref="wed_memo" style="border-top-width:0px; "/>
- <col ref="thu_memo" style="border-top-width:0px; "/>
- <col ref="fri_memo" style="border-top-width:0px; "/>
- <col ref="sat_memo" style="border-top-width:0px; "/>
- </row>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- /*
- if(grd_calendar1.row != 0 ) {
-
- model.setValue("/root/hidden/grdcellcolor/calrow",grd_calendar1.row);
- model.setValue("/root/hidden/grdcellcolor/calcol",grd_calendar1.col);
-
- setCellColor(grd_calendar1);
- getRsrvPossTm(grd_calendar1);
-
-
- var curDate = getCurrentDate().substr(0,8); //오늘날짜
- var rsrvdd =model.getValue("/root/send/data/rsrvdd"); //선택일자
-
- if(curDate <= rsrvdd) {
- for(var i = 1; i <grd_rsrvlist.rows ; i++ ) {
-
- if(model.getValue("/root/main/exculist/patinfolist/hngnm")== model.getValue("/root/main/rsrvposstmlist/rsrvlist["+i+"]/hngnm") && model.getValue("/root/send/data/srchpid") != model.getValue("/root/main/rsrvposstmlist/rsrvlist["+i+"]/pid") ) {
- messageBox("동명이인 예약", "E008");
- return 0;
- }
- }
- }
- }
- */
- ]]>
- </script>
- </multilinegrid>
- <datagrid id="grd_temp" nodeset="/root/init/curerprescondlist/rsrvcalendar" visibility="hidden" caption="일자(dd)^가용현황^max^caption3" colsep="^" colwidth="76, 62, 32" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:839px; top:303px; width:175px; height:170px; ">
- <col ref="rsrvdd"/>
- <col ref="count"/>
- <col ref="max"/>
- </datagrid>
- <caption id="caption55" class="tit_2" style="left:7px; top:394px; width:106px; height:13px; ">환자Comment</caption>
- <object id="rtfviewer" clsid="{a4bf7e18-5f67-4868-a726-eed421632374}" visibility="hidden" style="left:863px; top:423px; width:40px; height:45px; "/>
- <caption id="caption56" class="tit_2" style="left:7px; top:159px; width:69px; height:13px; ">수행부서</caption>
- <line id="line21" class="line_1" style="x1:5px; y1:347px; x2:263px; y2:347px; "/>
- <datagrid id="grd_orddept" nodeset="/root/main/orddeptinfo/orddeptlist" caption="수행부서" colsep="^" colwidth="237" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="byrow" style="left:5px; top:180px; width:258px; height:70px; ">
- <col disabled="true" ref="orddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexecroom">
- <label ref="excuroomcdnm"/>
- <value ref="excuroomcdid"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( (grd_orddept.row >= grd_orddept.fixedRows) && (grd_orddept.isCell(event.target))) {
- model.removeNodeset("/root/main/rsrvposstmlist/rsrvposstm");
- model.removeNodeset("/root/main/rsrvposstmlist/rsrvlist");
- model.setValue("/root/hidden/orddeptcheck","check");
-
- model.setValue("/root/send/data/excuroomcd",model.getValue("/root/main/orddeptinfo/orddeptlist["+grd_orddept.row+"]/orddeptcd"));
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excuroomcd",model.getValue("/root/main/orddeptinfo/orddeptlist["+grd_orddept.row+"]/orddeptcd"));
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/examroomnm",grd_orddept.labelmatrix(grd_orddept.row, grd_orddept.col));
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/pexcuroomnm",grd_orddept.labelmatrix(grd_orddept.row, grd_orddept.col));
- //model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/examroomnm",model.getValue("/root/main/orddeptinfo/orddeptlist["+grd_orddept.row+"]/orddeptcd"));
-
- initCalendar();
-
- }
- ]]>
- </script>
- </datagrid>
- <line id="line22" class="line_1" style="x1:5px; y1:175px; x2:263px; y2:175px; "/>
- <button id="btn_can" class="btn4_letter2" style="left:1044px; top:151px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rsrvdt = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvdt");
- var nodeList = instance1.selectNodes("/root/main/exculist/mainordlist5[chk='true' ]");
- var rCSV = getNodeListCSV(nodeList);
-
- if ( rCSV == null ) {
- messageBox("처방내역을 ","C002");
- return "0";
- }
-
- exeRsrvTransaction("cncl");
-
- readfunc();
- //상태별 색상주기
- fSetGrdMainordlist();
- model.setFocus("ipt_pid");
- ]]>
- </script>
- </button>
- <caption id="caption57" class="tit_2" style="left:667px; top:159px; width:85px; height:13px; ">예약시간</caption>
- <datagrid id="grd_momolist" nodeset="/root/main/rsrvposstmlist/deptmemo" class="datagrid0" scroll="vertical" autoresize="true" caption="일자^메모내용" colsep="^" colwidth="0, 245" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:5px; top:276px; width:258px; height:49px; ">
- <col ref="memodt"/>
- <col disabled="true" ref="memorem" type="input" style="left:0px; top:0px; width:54px; height:23px; "/>
- </datagrid>
- <datagrid id="grd_rsrvlist" nodeset="/root/main/rsrvposstmlist/rsrvlist" autoresize="true" caption="시간^등록번호^이름^처방명^진료과(진료의)" colsep="^" colwidth="35, 66, 44, 109, 91" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:814px; top:179px; width:356px; height:311px; ">
- <col ref="srchrsrvtm" format="hh:nn" style="text-align:center; "/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="prcpnm"/>
- <col ref="rgstdepthngnm"/>
- </datagrid>
- <button id="button39" class="btn2_letter6" style="left:175px; top:155px; width:86px; height:19px; ">
- <caption>휴검관리내역</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMAEA00700", "","","", "SMAEA00700", "","");
- ]]>
- </script>
- </button>
- <button id="button40" class="btn4_letter3" style="left:1103px; top:151px; width:68px; height:22px; ">
- <caption>재출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //********************************
- // ******예약증 출력 20070821******
- //********************************
- var max = 0;
- for (var i = 1; i < +grd_mainordlist5.rows; i ++){
- if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk") == "true") {
- max = parseInt(max) + 1;
- }
- }
- if (max > 0){
- rtfviewer.OpenProgressBar(max);
- }
- for (var i = 1; i < +grd_mainordlist5.rows; i ++){
- if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk") == "true") {
- var rsrvdt = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/srchrsrvtm");
- var prcpnm = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/prcpnm");
- var roomcd = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/pexcuroomnm");
- var sna = model.getValue("/root/main/exculist/patinfolist/sex") + "/" + model.getValue("/root/main/exculist/patinfolist/age");
- var tmpldata = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/tmpldata");
-
- var year = rsrvdt.substr(0,4);
- var month = rsrvdt.substr(4,2);
- var day = rsrvdt.substr(6,2);
- var week = rsrvdt.substr(0,8).toDate().getDayOfWeek("K");
- var hh = rsrvdt.substr(8,2);
- var mm = rsrvdt.substr(10,2);
- if(hh > 12)
- {
- hh = "오후 "+(hh-12);
- }
- else{
- hh = "오전 "+hh;
- }
- var mm = rsrvdt.substr(10,2);
-
- if(tmpldata != "") {
- //1. 예약예문내용을 뷰어로 보여주기
- rtfviewer.TextRtf = tmpldata;
-
- //2. 바꾸기
- var ssleep = "";
- if (model.getValue("/root/main/exculist/mainordlist5["+i+"]/slepyn") == "Y"){
- var ssleep = "(수면)";
- }
-
- roomcd = roomcd + ssleep;
- //roomcd = ssleep;
- rtfviewer.ReplaceRtfCode("pid", model.getValue("/root/send/data/srchpid")); //등록번호
- rtfviewer.ReplaceRtfCode("patnm",model.getValue("/root/main/exculist/patinfolist/hngnm")); //성명
- rtfviewer.ReplaceRtfCode("roomcd",roomcd); //검사실명
- // rtfviewer.ReplaceRtfCode("@@gender/age",sna); //성별,연령
- // rtfviewer.ReplaceRtfCode("@@prcpnm",prcpnm); //검사명
- rtfviewer.ReplaceRtfCode("year",year); //년
- rtfviewer.ReplaceRtfCode("month",month); //월
- rtfviewer.ReplaceRtfCode("day",day); //일
- rtfviewer.ReplaceRtfCode("week",week); //요일
- rtfviewer.ReplaceRtfCode("hh",hh); //시
- rtfviewer.ReplaceRtfCode("mm",mm); //분
- }
- else {
- messageBox(i + "번째의 등록된 예약예문이 ", "I004");
- }
- }
- }
- if (max > 0){
- rtfviewer.CloseProgressBar();
- }
- model.setFocus("ipt_pid");
- ]]>
- </script>
- </button>
- <line id="line23" class="line_1" style="x1:814px; y1:174px; x2:1170px; y2:174px; "/>
- <line id="line25" class="line_1" style="x1:663px; y1:174px; x2:809px; y2:174px; "/>
- <datagrid id="datagrid1" nodeset="/root/main/rsrvposstmlist/updtlist" visibility="hidden" autoresize="true" caption="변동사유" colsep="^" colwidth="245" mergecellsfixedrows="bycolrec" rowsep="|" style="left:353px; top:398px; width:258px; height:71px; ">
- <col ref="updtresndesc"/>
- </datagrid>
- <line id="line26" class="line_1" style="x1:5px; y1:271px; x2:263px; y2:271px; "/>
- <button id="btn_execcncl" class="btn2_letter4" style="left:1054px; top:11px; width:64px; height:19px; ">
- <caption>처방조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var child = getOpenWindow("SMMMO02500") ;
- if (child != null ) {
- child.model.setValue("/root/main/patinfolist/pid" , model.getValue("/root/send/data/srchpid"));
- setParameter ( "SMMMO02500_cond" , model.getValue("/root/send/data/srchpid"));
- child.javascript.fReqGetPatComnInfo("/root/send/reqdata", model.getValue("/root/send/data/srchpid"));
- child.button1.selected = true;
- child.model.toggle("case1");
-
- child.model.copyNode("/root/main/patinfolist", "/root/main/srchinfo/patinfolist");
- child.model.removeNodeset("/root/main/bfprcp/prcplist");
- child.model.removeNodeset("/root/main/bfprcpday/bfprcpday");
- child.grd_prcpdd.visible = false;
- child.grd_bfprcplist.attribute("left") = 2;
- child.grd_bfprcplist.attribute("width")= 1190;
- child.model.refresh();
- }else{
- setParameter ( "SMMMO02500_cond" , model.getValue("/root/send/data/srchpid"));
- open("SMMMO02500", "","","", "SMMMO02500", "/root/send/data/srchpid","/root/init/srchcond2");
- }
-
- ]]>
- </script>
- </button>
- <button id="button27" class="btn2_letter6" visibility="visible" style="left:895px; top:10px; width:86px; height:19px; ">
- <caption>골밀도현황</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group8.visible = true;
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button5" class="icon_bottom" style="left:1132px; top:11px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- switch1.attribute("top") = 216;
- switch1.attribute("height") = 189;
- case1.attribute("height") = 212;
- case2.attribute("height") = 212;
- grd_mainordlist5.attribute("height") = 179;
- grd_anoprcplist.attribute("height") = 179;
-
- //btn_timecls.attribute("top") = 236;
- cap_sleep.attribute("top") = 197;
- btn_execcncl.attribute("top") = 197;
- button4.attribute("top") = 197;
- button3.attribute("top") = 197;
- button4.visible = true;
- button3.visible = false;
- ]]>
- </script>
- </button>
- <button id="btn_case1" class="btn_sw" group="tab1" selected="true" style="left:6px; top:7px; width:72px; height:22px; ">
- <caption>검사현황</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case5");
- btn_case1.selected = true;
- btn_case2.selected = false;
- ]]>
- </script>
- </button>
- <button id="button6" class="icon_top" style="left:1132px; top:11px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- switch1.attribute("top") = 20;
- switch1.attribute("height") = 356;
- case1.attribute("height") = 379;
- case2.attribute("height") = 379;
- grd_mainordlist5.attribute("height") = 347;
- grd_anoprcplist.attribute("height") = 347;
- //btn_timecls.attribute("top") = 358;
- cap_sleep.attribute("top") = 383;
- btn_execcncl.attribute("top") = 383;
- button4.attribute("top") = 383;
- button3.attribute("top") = 383;
- button4.visible = false;
- button3.visible = true;
- ]]>
- </script>
- </button>
- <button id="btn_case2" class="btn_sw" group="tab1" selected="false" style="left:79px; top:7px; width:83px; height:22px; ">
- <caption>타검사현황</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case6");
- btn_case1.selected = false;
- btn_case2.selected = true;
- ]]>
- </script>
- </button>
- <caption id="cap_sleep" ref="/root/hidden/chkgam" visibility="hidden" style="left:985px; top:10px; width:63px; height:20px; font-family:굴림; font-size:12pt; font-weight:bold; color:#ffffff; text-align:center; vertical-align:bottom; background-color:#ff0000; "/>
- <switch id="switch3" style="left:0px; top:30px; width:1175px; height:110px; ">
- <case id="case5" selected="true" style="left:0px; top:0px; width:1170px; height:110px; ">
- <line id="line18" class="line_1" style="x1:0px; y1:1px; x2:1145px; y2:1px; "/>
- <datagrid id="grd_mainordlist5" nodeset="/root/main/exculist/mainordlist5" caption="^구분^수납^전화^처방일자^진료과^처방의^검사코드^검사명^수행부서^희망일자^예약시간^소요시간^종료시간^병실^Remark^수행가능부서^prcpgenflag^prcpdd^execprcpuniqno^execprcpstatcd^prcpkindcd^excupartcd^indd^actorddd^orddrid^execrid^suppdeptcd^cnclresncd^pid^prcpdelivefact^rsrvplceflag^rsrvexcupossyn^rsrvexmptmplcd^tmpldata^rsrvflag^cretno^orddd^rsrvdt^excuroomcd^bf_srchrsrvtm^pacsnocretyn^rgsttm^rgstrid^orddeptcd^rsrvtmcntlyn^rsrvpsnnocntlyn^excucdrem^prcpgenrflag^pexcuroomnm^prcpexecdeptcd^eqmtifyn^caption1" colsep="^" colwidth="26, 49, 53, 30, 77, 89, 54, 73, 280, 100, 77, 109, 60, 58, 38, 360, 147, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" frozencols="7" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:6px; width:1145px; height:79px; ">
- <col checkvalue="true,false" ref="chk" type="checkbox"/>
- <col ref="rsrvflagyn"/>
- <col ref="rcptyn"/>
- <col checkvalue="Y,N" ref="telrsrvyn" type="checkbox"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="orddepthngnm"/>
- <col ref="orddrnm"/>
- <col ref="calcscorcd"/>
- <col disabled="true" ref="prcpnm"/>
- <col disabled="true" ref="excuroom" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexecroom">
- <label ref="excuroomcdnm"/>
- <value ref="excuroomcdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcphopedd" format="yyyy-mm-dd hh:nn"/>
- <col ref="srchrsrvtm" type="input" format="yyyy-mm-dd hh:nn"/>
- <col ref="excutm" style="text-align:center; "/>
- <col ref="endtime" format="hh:nn" style="text-align:center; "/>
- <col ref="roomcd" visibility="hidden"/>
- <col ref="rsrvrem" type="input"/>
- <col ref="excuroomnm" visibility="hidden"/>
- <col ref="genrflag" visibility="hidden"/>
- <col ref="prcpdd" visibility="hidden"/>
- <col ref="execprcpuniqno" visibility="hidden"/>
- <col ref="execprcpstatcd" visibility="hidden"/>
- <col ref="prcpkindcd" visibility="hidden"/>
- <col ref="excupartcd" visibility="hidden"/>
- <col ref="indd" visibility="hidden"/>
- <col ref="actorddd" visibility="hidden"/>
- <col ref="orddrid" visibility="hidden"/>
- <col ref="execrid" visibility="hidden"/>
- <col ref="suppdeptcd" visibility="hidden"/>
- <col ref="cnclrescd" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="prcpdelivefact" visibility="hidden"/>
- <col ref="rsrvplceflag" visibility="hidden"/>
- <col ref="rsrvexcupossyn" visibility="hidden"/>
- <col ref="rsrvexmptmplcd" visibility="hidden"/>
- <col ref="tmpldata" visibility="hidden"/>
- <col ref="rsrvflag" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="rsrvdt" visibility="hidden"/>
- <col ref="excuroomcd" visibility="hidden"/>
- <col ref="bf_srchrsrvtm" visibility="hidden"/>
- <col ref="pacsnocretyn" visibility="hidden"/>
- <col ref="rgsttm" visibility="hidden"/>
- <col ref="rgstrid" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="rsrvtmcntlyn" visibility="hidden"/>
- <col ref="rsrvpsnnocntlyn" visibility="hidden"/>
- <col ref="excucdrem" visibility="hidden"/>
- <col ref="prcpgenrflag" visibility="hidden"/>
- <col ref="pexcuroomnm" visibility="hidden"/>
- <col ref="prcpexecdeptcd" visibility="hidden"/>
- <col ref="eqmtifyn" visibility="hidden"/>
- <col ref="baseexcuroomcd" visibility="hidden"/>
- <col ref="glycostestyn" visibility="hidden"/>
- <col ref="bonedentestyn" visibility="hidden"/>
- <col ref="glycosyn" visibility="hidden"/>
- <col ref="glycoscure" visibility="hidden"/>
- <col ref="reqhospcd" visibility="hidden"/>
- <col ref="slepyn" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- //스크롤 조작시 온클릭 이벤트 안타도록
- if( isDataCell() ){
-
- // Grid Colidx 정리함. 장준원 20080603
- // 기존 grd_mainordlist5.col != 0 ==> grd_mainordlist5.colAttribute(colidx, "ref") == "chk" 로 변경처리함.
- var colidx = grd_mainordlist5.col;
-
- if (model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/excucdrem") != ""){
- messageBox(model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/excucdrem"), "E999", "");
- }
-
- if(grd_mainordlist5.colAttribute(colidx, "ref") != "chk" && grd_mainordlist5.colAttribute(colidx, "ref") != "telrsrvyn" && grd_mainordlist5.colAttribute(colidx, "ref") != "srchrsrvtm" && grd_mainordlist5.colAttribute(colidx, "ref") != "rsrvrem" ) {
- // 예약 Comment 복사
- model.setValue("/root/hidden/rsrvrem", model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/rsrvrem"));
- var schk = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/chk");
- if (schk == "true"){
- model.setValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/chk", "false");
- }else{
- model.setValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/chk", "true");
- }
- grd_mainordlist5.refresh();
- // 달력에 처음 로딩시 color값 안들어 가기 위해
- model.setValue("/root/hidden/grdcellcolor/color","");
- model.setValue("/root/send/data/suppdeptcd",model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/suppdeptcd"));
- model.removeNodeset("/root/main/orddeptinfo/orddeptlist");
- grd_orddept.refresh();
- //수행부서 리스트 담기
- //var excuroomnm = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excuroomnm");
- model.setValue("/root/send/data/excuroomnm", model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excuroomnm"));
- model.setValue("/root/send/data/excuroomcd", model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excuroom"));
-
- if (model.getValue("/root/send/data/chkflag") == "A" || model.getValue("/root/send/data/chkflag") == "T" || model.getValue("/root/send/data/chkflag") == "S"){
- submit("TRAEA02016");
- model.makeNode("/root/main/orddeptinfo/orddeptlist");
- copyNodesetType("/root/main/orddeptinfo/orddeptlist", "/root/init/curerprescondlist2/orddeptlist", "replace");
- grd_orddept.refresh();
- }
-
- model.setValue("/root/send/data/excuroomnm", "");
- if (model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvflagyn") == "예약"){
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/examroomnm",grd_mainordlist5.labelmatrix(grd_mainordlist5.row, grd_mainordlist5.colRef("excuroom")));
- }else{
- var iname = grd_mainordlist5.labelmatrix(grd_mainordlist5.row, grd_mainordlist5.colRef("excuroom"));
- if (iname == ""){
- iname = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddrnm");
- }
- if (instance1.selectSingleNode("/root/init/cmb_info/initexecroom[excuroomcdnm='" + iname + "']") == null){
- var icode = "";
- }else{
- var icode = instance1.selectSingleNode("/root/init/cmb_info/initexecroom[excuroomcdnm='" + iname + "']").excuroomcdid.nodeValue;
- }
- var irow = grd_orddept.findRow(icode, 1, 0, false, true);
- if (irow > 0){
- grd_orddept.row = irow;
- grd_orddept.topRow = irow;
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excuroomcd", icode);
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/examroomnm",grd_orddept.labelmatrix(irow, 0));
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/pexcuroomnm",grd_orddept.labelmatrix(irow, 0));
- model.refresh();
- }else{
- var sbaseexcuroomcd = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/baseexcuroomcd");
- if (sbaseexcuroomcd != ""){
- var irow1 = grd_orddept.findRow(sbaseexcuroomcd, 1, 0, false, true);
- if (irow1 > 0){
- grd_orddept.row = irow1;
- grd_orddept.topRow = irow1;
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excuroomcd", sbaseexcuroomcd);
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/examroomnm",grd_orddept.labelmatrix(irow1, 0));
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/pexcuroomnm",grd_orddept.labelmatrix(irow1, 0));
- model.refresh();
- }
- }
- }
- }
- if( grd_mainordlist5.valueMatrix(grd_mainordlist5.row, 0) == "true" && model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvplceflag") !="1") {
- if (model.getValue("/root/send/data/chkflag") == "T"){
- messageBox("통합예약실에서 예약", "E001");
- model.setValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/chk", "false");
- }
- }
- else{
- if(model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvflagyn") == "예약"){
- grd_rsrvtemp.addRow();
- model.setValue("/root/hidden/beforersrvtm/rsrvdtlist["+grd_rsrvtemp.bottomRow+"]/before",model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/srchrsrvtm"));
- }
- }
-
- var chkflag = model.getValue("/root/send/data/chkflag");
- if (chkflag == "T"){
- fTopInfo();
- }
-
- }
-
- if (model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/chk") == "true" && colidx == 8){
- //grd_mainordlist5.rowstyle(i, "data", "background-color") = "#ece1ec";
- grd_mainordlist5.rowstyle(grd_mainordlist5.row, "data", "background-color") = "#f4d2fc";
- if (model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/glycostestyn") == "Y"){
- model.removeNodeset("/root/hidden/popup/rsrvaddinfo");
- model.removeNodeset("/root/main/subordlist/subordlist1");
- model.makeValue("/root/hidden/popup/rsrvaddinfo/glycosyn", model.getValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/glycosyn"));
- model.makeValue("/root/hidden/popup/rsrvaddinfo/glycoscure", model.getValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/glycoscure"));
- model.makeValue("/root/hidden/popup/rsrvaddinfo/reqhospcd", model.getValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/reqhospcd"));
- model.makeValue("/root/hidden/popup/rsrvaddinfo/rsrvrem", model.getValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/rsrvrem"));
- model.makeValue("/root/hidden/popup/rsrvaddinfo/phone", model.getValue("/root/main/exculist/patinfolist/hometel"));
-
- model.makeValue("/root/hidden/popup/rsrvaddinfo/rownum", 1);
- model.makeValue("/root/hidden/popup/rsrvaddinfo/srchrsrvtm", model.getValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/srchrsrvtm"));
-
- modal("SPAEA05000", "", "200", "200", "SPAEA05000","/root/hidden/popup/rsrvaddinfo","/root/hidden");
- var glycosyn = model.getValue("/root/main/subordlist/subordlist1["+ 1 +"]/glycosyn");
- if (glycosyn == "") {
- messageBox("해당 처방코드는 당뇨유무 체크가 필수 항목입니다", "E999", "");
- return;
- }
- model.setValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/glycosyn", model.getValue("/root/main/subordlist/subordlist1/glycosyn"));
- model.setValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/glycoscure", model.getValue("/root/main/subordlist/subordlist1/glycoscure"));
- model.setValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/reqhospcd", model.getValue("/root/main/subordlist/subordlist1/reqhospcd"));
- model.setValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/rsrvrem", model.getValue("/root/main/subordlist/subordlist1/rsrvrem"));
- model.refresh();
- }
- }else{
- grd_mainordlist5.rowstyle(grd_mainordlist5.row, "data", "background-color") = "#ffffff";
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- // Grid Colidx 정리함. 장준원 20080603
- // 기존 grd_mainordlist5.col != 0 ==> grd_mainordlist5.colAttribute(colidx, "ref") == "chk" 로 변경처리함.
- var colidx = grd_mainordlist5.col;
-
- //예약시간 수정후
- if(grd_mainordlist5.colAttribute(colidx, "ref") == "srchrsrvtm") {
-
- var srchrsrvtm = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/srchrsrvtm");
- var rsrvtm = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvdt");
- var term = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excutm");
- var posstm ="";
-
- //수기로 입력시 과거시간 체크
- if( srchrsrvtm < getCurrentDate().substr(0,8) + getCurrentTime().substr(0,4) ) {
- messageBox("예약시간이 과거시간", "E008");
- return ;
- }
- else {
- for( var i = 1 ; i < grd_rsrvlist.rows ; i++ ) {
- var min = model.getValue("/root/main/rsrvposstmlist/rsrvlist["+i+"]/srchrsrvtm");
- if(srchrsrvtm.substr(8,4) > min.substr(0,4) ) {
- posstm = min.substr(0,4);
- }
- else {
- posstm = min.substr(0,4);
- break;
- }
- }
- var dateObj = new Date();
- var dateObj2 = new Date();
- // alert("posstm : "+posstm);
-
-
- if(posstm > srchrsrvtm.substr(8,4) ) {
- dateObj.setHours(posstm.substr(0,2)- srchrsrvtm.substr(8,2), posstm.substr(2,2)- srchrsrvtm.substr(10,2));
- dateObj2.setHours(00,term);
-
- if( dateObj.setHours(posstm.substr(0,2)- srchrsrvtm.substr(8,2), posstm.substr(2,2)- srchrsrvtm.substr(10,2)) < dateObj2.setHours(00,term)) {
- messageBox("소요시간 초과로 예약", "E001");
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/srchrsrvtm","-");
-
- }
- model.refresh();
- }
- }
- DateChng();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // Grid Colidx 정리함. 장준원 20080603
- // 기존 grd_mainordlist5.col != 0 ==> grd_mainordlist5.colAttribute(colidx, "ref") == "chk" 로 변경처리함.
- var colidx = grd_mainordlist5.col;
-
- //예약시간이 변경되거나 Remark가 변경된 경우
- if(grd_mainordlist5.colAttribute(colidx, "ref") == "srchrsrvtm" || grd_mainordlist5.colAttribute(colidx, "ref") == "rsrvrem"){
- if (grd_mainordlist5.colAttribute(colidx, "ref") == "srchrsrvtm" && model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/examroomnm") == ""){
- messageBox("미예약된 항목의 예약시간 수정을 위해서 수행부서 선택은 필수", "E008", "수행부서를 선택해 주세요");
- return false;
- }
-
- if (model.getValue("/root/hidden/orddeptcheck") != "check"){
- //model.alert("aaa");
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/examroomnm",grd_mainordlist5.labelmatrix(grd_mainordlist5.row,8));
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excuroomcd", model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excuroom"));
-
- }
- model.setValue("/root/hidden/orddeptcheck","");
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/chk" ,"true");
- model.refresh();
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_mainordlist5", false, "/root/hidden1/popupmenu/menu", "label", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_mainordlist5.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <bool id="bool1" ref="/root/hidden/boolcontrol/bool" style="left:4px; top:9px; width:20px; height:20px; ">
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- for (var i = 1; i < grd_mainordlist5.rows; i ++){
- if (model.getValue("/root/send/data/chkflag") == "T"){
- if (model.getValue("/root/main/exculist/mainordlist5[" + i + "]/rsrvflagyn") == "미예약"){
- model.setValue("/root/main/exculist/mainordlist5[" + i + "]/chk", "true");
- }
- }else{
- model.setValue("/root/main/exculist/mainordlist5[" + i + "]/chk", "true");
- }
- }
- grd_mainordlist5.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- for (var i = 1; i < grd_mainordlist5.rows; i ++){
- if (model.getValue("/root/send/data/chkflag") == "T"){
- if (model.getValue("/root/main/exculist/mainordlist5[" + i + "]/rsrvflagyn") == "미예약"){
- model.setValue("/root/main/exculist/mainordlist5[" + i + "]/chk", "false");
- }
- }else{
- model.setValue("/root/main/exculist/mainordlist5[" + i + "]/chk", "false");
- }
- }
- grd_mainordlist5.refresh();
- ]]>
- </script>
- </bool>
- </case>
- <case id="case6">
- <line id="line19" class="line_1" style="x1:0px; y1:1px; x2:1145px; y2:1px; "/>
- <datagrid id="grd_anoprcplist" nodeset="/root/main/exculist/subordlist2" caption="구분^수납^처방일자^진료과^처방의^처방상태^검사코드^검사명^수행부서^희망일자^예약시간^실시시간^소요시간^종료시간^Remark^prcpgenflag^prcpdd^execprcpuniqno^execprcpstatcd^prcpkindcd^excupartcd^indd^actorddd^orddrid^execrid^suppdeptcd^cnclresncd^pid^prcpdelivefact^rsrvplceflag^rsrvexcupossyn^rsrvexmptmplcd^tmpldata^rsrvflag^cretno^orddd" colsep="^" colwidth="49, 53, 77, 89, 54, 100, 73, 280, 100, 77, 109, 100, 60, 58, 360" explorerbar="sortshow" frozencols="7" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:6px; width:1145px; height:79px; ">
- <col ref="rsrvflagyn" visibility="hidden"/>
- <col ref="rcptyn"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="orddepthngnm"/>
- <col ref="orddrnm"/>
- <col disabled="true" ref="execprcpstatcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/initexecprcpstatcd/M0011">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="calcscorcd"/>
- <col disabled="true" ref="prcpnm"/>
- <col disabled="true" ref="excuroom"/>
- <col ref="prcphopedd" format="yyyy-mm-dd hh:nn"/>
- <col ref="srchrsrvtm" format="yyyy-mm-dd hh:nn"/>
- <col ref="exectm" format="yyyy-mm-dd hh:nn"/>
- <col ref="excutm" style="text-align:center; "/>
- <col ref="endtime" format="hh:nn" style="text-align:center; "/>
- <col ref="rsrvrem"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_anoprcplist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <button id="btn_timecls" class="btn2_letter4" visibility="hidden" style="left:918px; top:10px; width:64px; height:19px; ">
- <caption>시간배정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var nodeList = instance1.selectNodes("/root/main/exculist/mainordlist5[rsrvflagyn='미예약' & excuroomnm != '' ]"); //미예약 다 뿌려줌
- var rCSV = getNodeListCSV(nodeList);
-
- model.setValue("/root/send/data/autorsrvtmset/autorsrvtm", rCSV);
-
- submit("TRAEA02008");
-
- var j = 1;
- for(var i = 0 ; i < grd_mainordlist5.rows ; i++ ){
-
- if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/rsrvflagyn") == "미예약") {
- model.setValue("/root/main/exculist/mainordlist5["+i+"]/rsrvdt",model.getValue("/root/hidden/autorsrvtmset/autorsrvtm["+j+"]/rsrvdt"));
- model.setValue("/root/main/exculist/mainordlist5["+i+"]/srchrsrvtm",model.getValue("/root/hidden/autorsrvtmset/autorsrvtm["+j+"]/rsrvdt"));
- j++;
- }
-
- }
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <group id="group8" visibility="hidden" style="left:475px; top:90px; width:485px; height:235px; ">
- <datagrid id="datagrid4" nodeset="/root/main/exculist/mainordlist8" caption="검사코드^처방일^예약일^검사일^구분^발생구분" colsep="^" colwidth="100, 78, 80, 78, 59, 64" mergecellsfixedrows="bycolrec" rowsep="|" style="left:11px; top:28px; width:463px; height:175px; ">
- <col ref="prcpcd" style="text-align:left; "/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rsrvdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="execdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="payflagcdnm"/>
- <col ref="prcpgenrflag"/>
- </datagrid>
- <button id="button37" class="btn4_letter2" style="left:406px; top:208px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group8.visible = false;
- ]]>
- </script>
- </button>
- <caption id="caption48" class="tit_2" style="left:11px; top:8px; width:113px; height:13px; ">골밀도 검사현황</caption>
- <shape id="rectangle3" appearance="rectangle" style="left:2px; top:3px; width:480px; height:230px; font-weight:bold; "/>
- </group>
- </case>
- </switch>
- <line id="line9" class="line_1" style="x1:440px; y1:24px; x2:1186px; y2:24px; "/>
- <caption id="caption4" class="tit_2" style="left:445px; top:10px; width:78px; height:13px; vertical-align:middle; ">내원내역</caption>
- <select1 id="rdo_chosspec" ref="/root/main/chosspecflag" visibility="hidden" appearance="full" cellspacing="80" cols="2" overflow="visible" style="left:540px; top:9px; width:215px; height:14px; border-style:none; ">
- <choices>
- <item>
- <label>외래/ER</label>
- <value>1</value>
- </item>
- <item>
- <label>입원내역</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/chosspecflag") == 1)
- model.toggle("case3");
- else if(model.getValue("/root/main/chosspecflag") == 2)
- model.toggle("case4");
- ]]>
- </script>
- </select1>
- <switch id="switch2" style="left:440px; top:28px; width:745px; height:152px; ">
- <case id="case3" selected="true" style="left:0px; top:0px; width:745px; height:145px; ">
- <datagrid id="grd_outerspec" nodeset="/root/main/outhist/outhistlist" caption="진료일시^센터^진료과^하위부서^진료의^진단명^퇴원일^퇴원병동^Remark" colsep="^" colwidth="102, 48, 71, 60, 62, 75, 100, 83, 113" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:0px; width:735px; height:135px; ">
- <col ref="orddd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="centcdnm"/>
- <col ref="orddeptnm"/>
- <col ref="subdeptcdnm"/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="diagnm"/>
- <col ref="dschdd" format="yyyy-mm-dd"/>
- <col ref="dschward" style="text-align:center; "/>
- <col ref="rem"/>
- </datagrid>
- </case>
- <case id="case4">
- <datagrid id="grd_inspec" nodeset="/root/main/patdetlinfo/inspec" caption="입원일^퇴원일^진료과^진료의^진단명^퇴원병동" colsep="^" colwidth="75, 75, 70, 60, 70, 65" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:0px; width:715px; height:135px; ">
- <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="orddept"/>
- <col ref="orddrid" style="text-align:center; "/>
- <col ref="diagnm"/>
- <col ref="dschward" style="text-align:center; "/>
- </datagrid>
- </case>
- </switch>
- <button id="btn_sel1" class="btn_sw" group="tab" selected="true" style="left:0px; top:185px; width:90px; height:22px; ">
- <caption>진료예약</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case1");
- btn_sel1.selected = true;
- btn_sel2.selected = false;
- ]]>
- </script>
- </button>
- <button id="btn_sel2" class="btn_sw" group="tab" selected="true" style="left:90px; top:185px; width:90px; height:22px; ">
- <caption>검사예약</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case2");
- btn_sel2.selected = true;
- btn_sel1.selected = false;
- ]]>
- </script>
- </button>
- <button id="btn_search" accesskey="f2" class="icon_search" style="left:197px; top:57px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //초기화
- //fInitialize();
- model.setValue("/root/hidden/source/checkfnexam", "1");
- model.setValue("/root/hidden/source/autoflag", "N");
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/hidden/source", "/root/send");
-
- var popupendflag = model.getValue("/root/main/popupendflag");
-
- if (popupendflag == "ok")
- {
- //초재진 구분
- if( model.getValue("/root/main/patinfo/patinfolist/pid").length > 1 ){
-
- model.setValue("/root/hidden/source/checkfnexam", '2');
- }else{
- model.setValue("/root/main/patinfo/patinfolist/pid", "");
- model.setValue("/root/hidden/source/checkfnexam", '1');
- }
-
- //감면 내역 있으면 표시
- var pid = model.getvalue("/root/main/patinfo/patinfolist/pid");
- if( pid != '' && pid != ' ' && pid != '-' ){
- model.setValue( "/root/send/pid", pid);
- submit("TRPMO00205");
- }
- //감면 내역 있으면 표시 끝
-
- //환자특이내역 존재여부 표시
- if( model.getValue("/root/main/patinfo/patinfolist/patspcfyn") == 'Y'){
- btn_patspcfyn.attribute("background-color") = "#ff0000";
- }else{
- btn_patspcfyn.attribute("background-color") = "#c0c0c0";
- }
-
- fSearch();
-
- }else{
-
- var srchcond = model.getValue("/root/hidden/source/srchcond");
- if( srchcond == '4' || srchcond == '3' ){
-
- // fGetSexAgeBirthDD();
- }
- }
-
- //팝업으로 넘겨준 데이터 초기화
- var checkfnexam = model.getValue("/root/hidden/source/checkfnexam");
- model.resetInstanceNode("/root/hidden/source");
- model.setValue("/root/hidden/source/checkfnexam", checkfnexam);
-
- //외래이력 휴진색상 체크
- outhistColorChange();
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button41" class="btn2_letter8" style="left:104px; top:4px; width:111px; height:19px; ">
- <caption>외래진료예약변경</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter("openflag", 'T');
- modal("SMPMO00300", "1", "50", "50", "SMPMO00300", "", "");
- ]]>
- </script>
- </button>
- <button id="button42" class="btn2_letter5" style="left:216px; top:4px; width:75px; height:19px; ">
- <caption>예약자조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- setParameter("SPPMO00800_NODEPATH", "/root/main/patinfo/patinfolist/");
-
- modal("SPPMO00800", "1","150", "150", "SPPMO00800", "", "");
-
- var hngnm = ipt_hngnm.currentText;
- var rrgstno1 = ipt_rrgstno1.currentText;
- var rrgstno2 = ipt_rrgstno2.currentText;
-
- var rgstno1 = model.getValue("/root/main/patinfo/patinfolist/rrgstno1");
- var rgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
-
- if( hngnm.length > 1 ){
-
- model.setValue("/root/hidden/source/srchcond", "4");
- model.setValue("/root/hidden/source/hngnm", hngnm);
- model.setValue("/root/hidden/source/rrgstno1", rrgstno1);
- model.setValue("/root/hidden/source/rrgstno2", rrgstno2);
- }else{
-
- model.setValue("/root/hidden/source/srchcond", "3");
- model.setValue("/root/hidden/source/rrgstno1", rrgstno1);
- model.setValue("/root/hidden/source/rrgstno2", rrgstno2);
- }
- //model.alert(rrgstno2);
- model.setValue("/root/main/patinfo/patinfolist/rrgstno2", rrgstno2);
-
- if(rgstno1 == "000000" ){
- messageBox("주민번호 앞6자리 형식오류입니다. 올바른 일자형태로 입력하십시요!","E999","");
- model.setFocus("ipt_rrgstno1");
- return;
- }else if(rgstno2 == "0000000 "){
- messageBox("주민번호 뒤7자리 형식오류입니다. 올바른 일자형태로 입력하십시요!","E999","");
- model.setFocus("ipt_rrgstno2");
- return;
- }
-
- if( rrgstno1.length == 6 && rrgstno2.length == 7 ){
-
- if(submit("TRPMC02500")){
- if( getNodesetCount("/root/main/result/patinfo/patinfolist") == 1 ){
-
- model.copyNode("/root/main/patinfo", "/root/main/result/patinfo");
- model.setValue("/root/main/popupendflag", "ok");
- //구환 표시
- if( model.getValue("/root/main/patinfo/patinfolist/pid").length > 2 ){
- model.setValue("/root/hidden/source/checkfnexam", "2");
- }else{
- model.setValue("/root/hidden/source/checkfnexam", "2");
- }
- //환자특이내역 존재여부 표시
- var patspcfyn = model.getValue("/root/main/patinfo/patinfolist/patspcfyn");
- //alert( patspcfyn );
- if( patspcfyn == 'Y' || patspcfyn == 'y'){
- btn_patspcfyn.attribute("background-color") = "#ff0000";
- //alert( 'Y' );
- }else{
- btn_patspcfyn.attribute("background-color") = "#c0c0c0";
- //alert( 'N' );
- }
-
- //감면 내역 있으면 표시
- var pid = model.getvalue("/root/main/patinfo/patinfolist/pid");
- if( pid != '' && pid != ' ' && pid != '-' ){
- model.setValue( "/root/send/pid", pid);
- submit("TRPMO00205");
- }
- //감면 내역 있으면 표시 끝
- fSearch();
-
- }else if(getNodesetCount("/root/main/result/patinfo/patinfolist") > 1 ){
-
- inputEnterKey("btn_search", "DOMActivate");
- }else{
-
- model.setValue("/root/main/popupendflag", "cancel");
- messageBox("일치하는 환자가 없습니다.", "E999", "");
- }
- }
- }else{
-
- inputEnterKey("btn_search", "DOMActivate");
- }
- fGetSexAgeBirthDD();
-
- //외래이력 휴진 체크
- outhistColorChange();
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_patspcfyn" style="left:80px; top:3px; width:20px; height:20px; background-color:#c0c0c0; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/hidden/source/srchcond", 1);
- model.setValue("/root/hidden/source/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- modal("SMPMC01300", "1", "", "", "SMPMC01300", "/root/hidden/source", "/root/source");
- ]]>
- </script>
- </button>
- </group>
- <group id="group3" style="left:0px; top:734px; width:1195px; height:31px; ">
- <button id="button8" class="btn3_letter5" style="left:1px; top:5px; width:92px; height:22px; ">
- <caption>진료의뢰서</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ]]>
- </script>
- </button>
- <button id="button32" class="btn4_letter2" visibility="hidden" style="left:1067px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- ]]>
- </script>
- </button>
- <button id="button33" class="btn4_letter2" visibility="hidden" style="left:949px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- ]]>
- </script>
- </button>
- <button id="button34" class="btn4_letter2" visibility="hidden" style="left:1008px; top:5px; width:56px; height:22px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- ]]>
- </script>
- </button>
- <button id="button35" class="btn4_letter3" visibility="hidden" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- ]]>
- </script>
- </button>
- <line id="line88" class="line_6" style="x1:0px; y1:0px; x2:1195px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|