123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938 |
- <?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>
- <rsrvposstmlist>
- <rsrvposstm>
- <rsrvtm/>
- <count/>
- <max/>
- </rsrvposstm>
- <rsrvlist>
- <srchrsrvtm/>
- <pid/>
- <hngnm/>
- <age/>
- <prcpgenrflag/>
- <excutm/>
- <prcpcd/>
- <rgstdepthngnm/>
- <lastupdtrnm/>
- <lastupdtdt/>
- <prcpcmt/>
- <rsrvrem/>
- </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/>
- <onestop/>
- <specdrid/>
- <specdrnm/>
- <dschdd/>
- <ioflag/>
- <lastupdtnm/>
- <payflagnm/>
- <basecdcnts/>
- <calcamt/>
- </mainordlist5>
- <subordlist2>
- <rsrvflagyn/>
- <rcptyn/>
- <prcpdd/>
- <orddepthngnm/>
- <orddrnm/>
- <execprcpstatcd/>
- <calcscorcd/>
- <prcpnm/>
- <excuroom/>
- <prcphopedd/>
- <srchrsrvtm/>
- <exectm/>
- <excutm/>
- <endtime/>
- <rsrvrem/>
- </subordlist2>
- <subordlist3>
- <rows>
- <pid/>
- <cmtdd/>
- <patcmt/>
- <iudgb/>
- <upnm/>
- <updtm/>
- </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>
- <mainImpsirsrvlist>
- <calcscorcd/>
- </mainImpsirsrvlist>
- </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>
- <printinfo>
- <printlist>
- <printdata/>
- </printlist>
- </printinfo>
- <deptmemolist>
- <deptmemo>
- <memodt/>
- <memorem/>
- <lastupdtdt/>
- </deptmemo>
- </deptmemolist>
- </main>
- <send>
- <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/>
- <timeyn/>
- <ampmyn>9</ampmyn>
- <multiyn/>
- <cmb_info1>
- <initexcuroomgrp>
- <excuroomgrpcdid/>
- <excuroomgrpcdnm/>
- </initexcuroomgrp>
- </cmb_info1>
- <memodd/>
- <inptflag/>
- <passdataflag/>
- <serdiagtodd/>
- </data>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <req>
- <cnclcd/>
- <flag/>
- <chkflag/>
- <data/>
- </req>
- <req1>
- <data/>
- </req1>
- <rtfcode/>
- <filename/>
- <popup>
- <basecdflag/>
- </popup>
- <windowloadinstance>SMAEA02000</windowloadinstance>
- <rsrvsuppdeptcd/>
- <memodt1>00000000</memodt1>
- <memodt2>00000000</memodt2>
- <memorem/>
- </send>
- <send1>
- <suppdeptcd/>
- <excuroomcd/>
- <gb/>
- <instance1/>
- </send1>
- <send2>
- <instance1>0000000000</instance1>
- <grupcdid>A900</grupcdid>
- </send2>
- <send3>
- <instance1>0000000000</instance1>
- <memodt1>00000000</memodt1>
- <memodt2>00000000</memodt2>
- <memorem/>
- </send3>
- <init>
- <cmb_info>
- <initexecroom>
- <excuroomcdid/>
- <excuroomcdnm/>
- <userid/>
- </initexecroom>
- <initexecward>
- <execwardcdid/>
- <execwardcdnm/>
- </initexecward>
- </cmb_info>
- <cmb_info2>
- <initexecroom>
- <excuroomcdid/>
- <excuroomcdnm/>
- <userid/>
- </initexecroom>
- </cmb_info2>
- <cmb_info1>
- <initexcuroomgrp>
- <excuroomgrpcdid/>
- <excuroomgrpcdnm/>
- </initexcuroomgrp>
- </cmb_info1>
- <curerprescondlist>
- <curerprescond>
- <userid/>
- <usernm/>
- </curerprescond>
- <rsrvcalendar>
- <rsrvdd/>
- <count/>
- <max/>
- </rsrvcalendar>
- <orddeptlist>
- <orddeptcd/>
- </orddeptlist>
- </curerprescondlist>
- <curerprescondlist2>
- <orddeptlist>
- <orddeptcd/>
- </orddeptlist>
- </curerprescondlist2>
- <baseinfo>
- <initexecprcpstatcd/>
- <initprcpgenrflagcd/>
- </baseinfo>
- <calenlist>
- <calendinfo>
- <basedd/>
- <dutflag/>
- </calendinfo>
- </calenlist>
- <cmb_info3>
- <suppdeptlist>
- <suppdept>
- <suppdeptcd/>
- <depthngnm/>
- </suppdept>
- </suppdeptlist>
- <excuroomcdlist>
- <excuroom>
- <basecd/>
- <basecdflagdesc/>
- </excuroom>
- </excuroomcdlist>
- </cmb_info3>
- </init>
- <init1>
- <baseinfo>
- <initmulti/>
- <initsrchtm/>
- <initinptflag/>
- </baseinfo>
- <onestopordinfo>
- <codelist>
- <item>
- <suppdeptcd/>
- <grupcdid/>
- <cdid/>
- <cdnm/>
- <detldesc/>
- <useyn/>
- <dispseq/>
- <cntlyn1/>
- <cntlcd1/>
- </item>
- </codelist>
- </onestopordinfo>
- <onestoptminfo>
- <mintm/>
- </onestoptminfo>
- <onestopsuppdeptcd>
- <deptinfo/>
- </onestopsuppdeptcd>
- <onestopexcuroom>
- <roominfo/>
- </onestopexcuroom>
- <patcmt/>
- <rsrvidinfo/>
- </init1>
- <hidden>
- <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>
- <dd/>
- </calendar>
- <grdcellcolor>
- <calrow/>
- <calcol/>
- <bfcalrow/>
- <bfcalcol/>
- <color/>
- </grdcellcolor>
- <cnclcdlist>
- <cnclcd/>
- <cnclcdnm/>
- </cnclcdlist>
- <beforersrvtm>
- <rsrvdtlist>
- <before/>
- </rsrvdtlist>
- </beforersrvtm>
- <con>
- <date/>
- </con>
- <rsrvbtn>
- <rsrvyn/>
- </rsrvbtn>
- <autorsrvtmset>
- <autorsrvtm/>
- </autorsrvtmset>
- <boolcontrol>
- <bool/>
- </boolcontrol>
- <chkgam/>
- <orddeptcheck/>
- <tmp/>
- <rsrvrem/>
- <beforeorder>
- <brow/>
- <excuroomnm/>
- </beforeorder>
- </hidden>
- <hidden1>
- <popupmenu>
- <menu>
- <label>변경/취소사유조회</label>
- <func>ChangeCanFunc</func>
- </menu>
- <menu>
- <label>예약예문선택</label>
- <func>ChangeTmplcd</func>
- </menu>
- <menu>
- <label>예약 Remark 등록</label>
- <func>ChangeTmplcd</func>
- </menu>
- <menu>
- <label>추가예약</label>
- <func>fPseuRsrvInfo</func>
- </menu>
- </popupmenu>
- </hidden1>
- <hidden2>
- <popupmenu>
- <menu>
- <label>환자Comment조회</label>
- <func>ChangeCanFunc2</func>
- </menu>
- </popupmenu>
- </hidden2>
- <reqdata>
- <srchcond/>
- <pid/>
- <hngnm/>
- </reqdata>
- <reqdata1>
- <subordlist3>
- <rows>
- <pid/>
- <cmtdd/>
- <patcmt/>
- <iudgb/>
- <upnm/>
- <updtm/>
- </rows>
- </subordlist3>
- </reqdata1>
- <popdata>
- <poplist>
- <prcpnm/>
- <examroomnm/>
- <excuroomcd/>
- <suppdeptcd/>
- <rowcnt/>
- </poplist>
- </popdata>
- <temp/>
- <ctrl>
- <send>
- <rsrvinfo/>
- </send>
- <main>
- <ctrllist>
- <ctrlinfo>
- <rsrvplce/>
- <suppdeptcd/>
- <excuroomcd/>
- <excucd/>
- <ctrlseq/>
- <ctrldesc/>
- <ctrlflag/>
- <appflag/>
- </ctrlinfo>
- </ctrllist>
- </main>
- <temp>
- <ctrllist>
- <ctrlinfo/>
- </ctrllist>
- <termlist>
- <terminfo/>
- </termlist>
- </temp>
- <hidden>
- <excplist>
- <excpinfo>
- <userid/>
- </excpinfo>
- </excplist>
- </hidden>
- </ctrl>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- RSRV_PLCE = "T";
-
- // 예약 제어 정보 확인 기능 칠곡 제한
- if (getUserInfo("dutplceinstcd") == "032") {
-
- btn_ctrlshow.visible = false;
-
- switch1.attribute("width") = "1195px"
-
- grd_mainordlist5.attribute("width") = grd_anoprcplist.attribute("width") = "1193px";
- line16.attribute("x2") = line17.attribute("x2") = "1193px";
- }
-
- model.removeNodeset("/root/main/orddeptinfo/orddeptlist");
- model.removeNodeset("/root/main/exculist/subordlist3");
-
- aezfSetSuppDeptcd();
- model.setValue("/root/hidden/chkgam","");
- submit("TRAEA02002", false);
-
-
- // 미예약자(입원) 영상학과 전용화면
- ipt_date1.value = getCurrentDate();
- submit("TRAEA02014", false);
-
- //처방상태 공통코드 갖고오기
- zbcfGetCodeList( new Array("M0011", "M0010"), new Array("/root/init/baseinfo/initexecprcpstatcd", "/root/init/baseinfo/initprcpgenrflagcd") );
- submit("TRZBC00101", false);
-
- //20140911 by kya 추가예약할 수 있는 코드 : 핵의학과 MIBI 처방임
- model.setValue("/root/send2/instance1", "2180000000");
- model.setValue("/root/send2/grupcdid", "A0003");
- submit("TRAEB00010", false);
- model.removeNodeset("/root/init1/prsrcdinfo/codelist");
- model.makeNode("/root/init1/prsrcdinfo/codelist");
- model.copyNode("/root/init1/prsrcdinfo/codelist", "/root/init1/onestopordinfo/codelist" );
-
-
- //20100527 "A901","A902","A903"원스탑 시간,원스탑검사실 만든부서,원스탑검사실 가져오기 추가
- model.setValue("/root/send2/instance1", "0000000000");
- model.setValue("/root/send2/grupcdid", "A900");
- submit("TRAEB00010", false);
-
-
- //T0001 : 통합예약사용자
- astGetComboList( new Array("A630", "A640","A901","A902","A903","A660","T0001"), new Array("/root/init1/baseinfo/initmulti", "/root/init1/baseinfo/initsrchtm",
- "/root/init1/onestoptminfo/mintm","/root/init1/onestopsuppdeptcd/deptinfo","/root/init1/onestopexcuroom/roominfo","/root/init1/baseinfo/initinptflag","/root/init1/rsrvidinfo") );
- submit("TRAAA00001", false);
- model.removeNodeset("/root/init1/baseinfo/initmulti/A630[" + 1 + "]");
- if (model.getValue("/root/init1/baseinfo/initmulti/A630[" + 1 + "]/cdid") == "Y"){
- model.setValue("/root/send/data/multiyn", "Y");
- }
- model.removeNodeset("/root/init1/baseinfo/initsrchtm/A640[" + 1 + "]");
-
- //20100929 통합예약 입원조회 조건 여부 - 박재영
- model.removeNodeset("/root/init1/baseinfo/initinptflag/A660[" + 1 + "]");
- model.setValue("/root/send/data/inptflag",model.getValue("/root/init1/baseinfo/initinptflag/A660[" + 1 + "]/cdid") );
-
- submit("TRAEA05301", false); //지원부서
- //grd_mainordlist5.fixedcellcheckbox(0,0)=true;
- model.removeNodeset("/root/hidden/beforersrvtm/rsrvdtlist"); //변경전 시간 담아놓는 그리드
-
- //initCalendar();
- //setCurrentDate();
-
- model.toggle("case1");
- btn_case1.selected = true;
- btn_case2.selected = false;
- model.setValue("/root/send/data/timeyn", "N");
- model.setValue("/root/send/data/ampmyn", "9");
- model.setValue("/root/send/rsrvsuppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
- //타과링크시 등로
- //flag : T => 통합, A : 영상, S : 건진
- model.setValue("/root/send/data/chkflag", "T");
- /*
- param = "19526804" + "▦" + "S" + "▦" + "2160000000";
- condarray = param.split("▦");
- model.setValue("/root/send/data/srchpid", condarray[0]);
- model.setValue("/root/send/data/chkflag", condarray[1]);
- model.setValue("/root/send/data/suppdeptcd1", condarray[2]);
- //btn_sea.dispatch("DOMActivate");
- */
- if ( model.getValue("/root/send/data/srchpid") != "" ) {
- btn_sea.dispatch("DOMActivate");
- }else
- if(checkOpener()) //opener 검사
- {
- var param = opener.javascript.getParameter("opener_parameter_id"); //opener parameter value를 get
-
- if(param != "") // opener parameter value가 있는 경우
- {
- //parameter value를 이용하여 프로그램 수행
- condarray = param.split("▦");
- model.setValue("/root/send/data/srchpid", condarray[0]);
- model.setValue("/root/send/data/chkflag", condarray[1]);
-
- RSRV_PLCE = model.getValue("/root/send/data/chkflag");
-
- model.setValue("/root/send/data/suppdeptcd1", condarray[2]);
- btn_sea.dispatch("DOMActivate");
-
- // 영상의학과에서의 object에 제어를 하기 위해서 , 장준원(20080416)
- chkobjvisible( model.getValue("/root/send/data/chkflag") );
-
- }
- else // opener parameter가 없는 경우 화면 원무 정보 check
- {
- var paminfo = getGlobalVariable("paminfo"); //프로그램에 따라 원무정보(paminfo), 환자기본정보(patflag) get
-
- if(paminfo != "") //원무 정보(기본 정보)가 있는 경우
- {
- model.removeNodeset("/root/paminfo"); //여러개의 instance발생을 막기 위해 removeNodeset을 해줘야 함.
- model.makeNode("/root/paminfo");
- setCSVToNode("/root/paminfo", paminfo);
-
- //상단 정보를 이용하여 프로그램 수행
- var pid = model.getValue("/root/paminfo" + "/list/pid");
- model.setValue("/root/send/data/srchpid", pid);
- btn_sea.dispatch("DOMActivate");
- }
- else //원무 정보(기본 정보)가 없는 경우
- {
- //원무 정보가 없는 상태로 프로그램 수행
-
- }
- }
- }else {
- if ( model.getValue("/root/send/data/srchpid") != "" ) {
- btn_sea.dispatch("DOMActivate");
- }
- }
- model.setFocus("ipt_pid");
- if (model.getValue("/root/send/data/chkflag") != "T"){
- document.title = "자체예약관리";
- caption6.text = "자체예약관리";
- caption2.visible = true;
- cmb_excuroomgrp.visible = true;
- caption3.visible = true;
- ipt_date1.visible = true;
- caption18.visible = true;
- button23.visible = true;
- grd_mainordlist7.visible = true;
- caption8.visible = false;
- button2.visible = false;
- button24.visible = true;
- button25.visible = true;
- }else{
- caption2.visible = false;
- cmb_excuroomgrp.visible = false;
- caption3.visible = false;
- ipt_date1.visible = false;
- caption18.visible = false;
- button23.visible = false;
- grd_mainordlist7.visible = false;
- caption8.visible = true;
- button2.visible = true;
- button24.visible = false;
- button25.visible = false;
- }
-
- //2011.01.26 c y w 달력 현재 날짜로 초기화.
- initCalendar();
- // 2011.04.06 cyw 통합예약자만이 예약 가능하도록 수정.
- //2012.11.12 by kya 통합예약자만이 취소 가능하도록 수정.
- var idx_rsrv = 0;
- var rsrvidCnt = getNodesetCount("/root/init1/rsrvidinfo/T0001");
- for( var i = 1 ; i<= rsrvidCnt ; i++){
- if( model.getValue("/root/init1/rsrvidinfo/T0001["+ i +"]/cdid") == getUserId() ){
- idx_rsrv++;
- }
- }
-
- if( idx_rsrv == 0 ){
- btn_rsrv.disabled = true;
- btn_cncl.disabled = true;
- IS_RSRVUSER = false;
- }
-
- model.setValue("/root/send/data/passdataflag", "Y");
-
- //2013.2.06 by kya 임시예약 추가
- btn_temp.disabled = true;
- var dutplceinstcd = getUserInfo("dutplceinstcd");
-
- if ( dutplceinstcd == "031" ) {
- btn_temp.disabled = false;
- }
-
- //20130320 권영애 수행부서 비교위해 초기화
- //model.setValue("/root/hidden/beforeorder/brow", "");
- //model.setValue("/root/hidden/beforeorder/excuroom", "");
-
- model.resetInstanceNode("/root/hidden/beforeorder");
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRAEA02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordlist"/>
- <submission id="TRAEA02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
- <submission id="TRAEA02017" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info2"/>
- <submission id="TRAEA02003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/exculist"/>
- <submission id="TRAEA02004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/curerprescondlist"/>
- <submission id="TRAEA02005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsrvposstmlist"/>
- <submission id="TRAEA02010" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/exculist"/>
- <submission id="TXAEA02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/temp"/>
- <submission id="TXAEA02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req1" replace="instance" resultref="/root/temp"/>
- <submission id="TRAEA02009" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/reqdata1"/>
- <submission id="TRAEA02012" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/calenlist"/>
- <submission id="TRAEA02013" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordlist1"/>
- <submission id="TRAEA02016" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/curerprescondlist2"/>
- <bind id="bind_orddeptlist" ref="/root/main/orddeptinfo/orddeptlist/orddeptcd" readonly="../orddeptcd!=''"/>
- <bind id="bind_mainordlist5" ref="/root/main/exculist/mainordlist5/excuroom" readonly="../excuroom!=''"/>
- <submission id="TRAEA02008" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/autorsrvtmset" replace="instance" resultref="/root/hidden/autorsrvtmset"/>
- <submission id="TRZBC00101"/>
- <submission id="TRAAA00001"/>
- <submission id="TRAEA02014" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info1"/>
- <submission id="TRAEA05301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmb_info3/suppdeptlist"/>
- <submission id="TRAEA00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send1" resultref="/root/init/cmb_info3/excuroomcdlist"/>
- <submission id="TRAEB00010" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send2" replace="instance" resultref="/root/init1/onestopordinfo/codelist"/>
- <submission id="TRAEA00920" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/printinfo/printlist"/>
- <submission id="TRAEB00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send3" replace="instance" resultref="/root/main/deptmemolist"/>
- <submission id="TXAEB00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send3" replace="instance" resultref="/root/hidden/temp"/>
- <submission id="TRAEA01132" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send1" replace="instance" resultref="/root/hidden/excuroomgrplist"/>
- <submission id="TRPMC06904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/patprivacy" replace="instance" resultref="/root/temp/patprivacy"/>
- <submission id="TRPEA00210" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/ctrl/send/rsrvinfo" replace="instance" resultref="/root/ctrl/temp"/>
- <submission id="TRPEA00211" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/ctrl/hidden/excplist/excpinfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/combolist.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../pam/pamexcuweb/js/SMPEA00200.js"/>
- <script type="javascript">
- <![CDATA[
- /* @group : 임시예약
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc :
- */
- function fPseuRsrvInfo() {
-
- var i = grd_mainordlist5.row;
-
- var rsrvflagyn = model.getValue("/root/main/exculist/mainordlist5[" + i + "]/rsrvflagyn");
-
- if ( rsrvflagyn != "예약" )
- {
- messageBox("예약한 후에 추가예약을 해주세요!!.", "E999", "");
- return;
- }
-
- //검사실의 basecdcnts 정보가져오기
- var excuroomgrp = model.getValue("/root/main/exculist/mainordlist5[" + i + "]/basecdcnts");
-
- if (excuroomgrp == "") {
- messageBox("검사실을 ", "C002");
- return;
- }
-
- setParameter("excuroomgrp", excuroomgrp );
-
- model.makeValue("/root/hidden/pseursrvinfo/seq", model.getValue("/root/hidden/popupmenu/seq"));
- model.makeValue("/root/hidden/pseursrvinfo/suppdeptcd", model.getValue("/root/main/exculist/mainordlist5[" + i + "]/suppdeptcd"));
- model.makeValue("/root/hidden/pseursrvinfo/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/hidden/pseursrvinfo/rsrvdt", model.getValue("/root/main/exculist/mainordlist5[" + i + "]/rsrvdt"));
- model.makeValue("/root/hidden/pseursrvinfo/menuparam", "R");
- model.makeValue("/root/hidden/pseursrvinfo/excuroomcd", model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroomcd"));
- model.makeValue("/root/hidden/pseursrvinfo/pid", model.getValue("/root/main/exculist/mainordlist5[" + i + "]/pid"));
-
- model.makeValue("/root/hidden/pseursrvinfo/calcscorcd", model.getValue("/root/main/exculist/mainordlist5[" + i + "]/calcscorcd"));
- model.makeValue("/root/hidden/pseursrvinfo/hngnm", model.getValue("/root/main/exculist/patinfolist/hngnm"));
- model.makeValue("/root/hidden/pseursrvinfo/age", model.getValue("/root/main/exculist/patinfolist/age"));
- model.makeValue("/root/hidden/pseursrvinfo/sex", model.getValue("/root/main/exculist/patinfolist/sex"));
-
- var rrgstno = model.getValue("/root/main/exculist/patinfolist/rrgstno");
- model.makeValue("/root/hidden/pseursrvinfo/rrgstno1", rrgstno.substr(0, 6));
- model.makeValue("/root/hidden/pseursrvinfo/rrgstno2", rrgstno.substr(6, 1));
-
-
- //20140914 by kya 추가예약가능 품목인지 비교함
- var icount = 0;
- var pcode = model.getValue("/root/main/exculist/mainordlist5[" + i + "]/calcscorcd");
- var rowCnt = getNodesetCount("/root/init1/prsrcdinfo/codelist/item");
- for( var j = 1 ; j<= rowCnt ; j++){
- var cdid = model.getValue("/root/init1/prsrcdinfo/codelist/item["+ j +"]/cdid");
- if ( pcode == model.getValue("/root/init1/prsrcdinfo/codelist/item["+ j +"]/cdid") ) {
- icount++;
- }
- }
-
- if (icount > 0 ) {
- modal("SPAEA02201", "", "200", "200", "popup", "/root/hidden/pseursrvinfo", "/root/init/pseursrvinfo");
- } else {
- messageBox("추가예약이 가능한 처방이 아닙니다[진료지원A0003].", "E999", "");
- }
-
-
- //modal("SPAEA02201", "", "200", "200", "popup", "/root/main/exculist/mainordlist5[" + i + "]", "/root/init/pseursrvinfo");
- }
-
-
- /* @group : 통합예약관리
- * @ver : 2007.08.09
- * @by : 임헤정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 달력초기화
- */
-
- function initCalendar() {
-
- model.setValue("/root/send/data/memodd", getCurrentDate());
- if (model.getValue("/root/hidden/calendar/year") == ""){
- var curDate = getCurrentDate().toDate();
- model.setValue("/root/hidden/calendar/year", curDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", curDate.getDateFormat('MM'));
-
- setCalendar(curDate);
-
- // 현재일자 색상 표시
- setCurrentDate(grd_calendar);
- }else{
- curDate = model.getValue("/root/send/data/rsrvdd");
- model.setValue("/root/hidden/calendar/year", curDate.substr(0, 4));
- model.setValue("/root/hidden/calendar/month", curDate.substr(4, 2));
- //fCalendar();
- setRsrvPresCondByMonth();
- // 현재일자 색상 표시
- setCurrentDate(grd_calendar);
- }
- }
-
- function initCalendar2() {
-
- var curDate = getCurrentDate().toDate();
-
- model.setValue("/root/hidden/calendar/year", curDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", curDate.getDateFormat('MM'));
- model.refresh();
-
- // 그리드 초기화
- model.removeNodeset("/root/hidden/calendar/weeklist/list");
- model.removeNodeset("/root/init/curerprescondlist/rsrvcalendar");
-
- grd_calendar.rebuild();
-
- var dateObj = curDate;
-
- 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();
-
- var rowIndex = grd_calendar.fixedRows;
- var colIndex = startDay;
- for( var i = 1; i <= days; i++ ) {
- grd_calendar.valueMatrix(rowIndex, colIndex) = i;
- grd_calendar.valueMatrix(rowIndex, colIndex + 7) = "0/0";
- colIndex++;
- if( colIndex == 7 ) {
- colIndex = 0;
- rowIndex++;
-
- }
- }
- model.setValue("/root/send/data/rsrvdd",model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+"01");
-
- fCalendar();
- // 현재일자 색상 표시
- setCurrentDate(grd_calendar);
- }
-
- function fCalendar(){
-
- if (submit("TRAEA02012")){
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate();
-
- var startDay = isDate.getDay();
- for (var i = 1; i < datagrid3.rows; i++) {
- var dd = model.getValue("/root/init/calenlist/calendinfo[" + i + "]/basedd");
-
- var colidx = dd.toDate().getDay();
- var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
- //var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
- //alert("DD==" + dd + "==colidx==" + rowidx + "==rowidx");
- if (model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag") == "8"){
- grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "red";
- }else if (model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag") == "4"){
- grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "blue";
- }else{
- grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "black";
- }
- }
- grd_calendar.refresh();
- }
- }
- /* @group : 통합예약관리
- * @ver : 2007.08.09
- * @by : 임헤정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 선택날짜 색 주기
- */
-
- function setCalendar(dateObj) {
- // 그리드 초기화
- model.removeNodeset("/root/hidden/calendar/weeklist/list");
- model.removeNodeset("/root/init/curerprescondlist/rsrvcalendar");
-
- grd_calendar.refresh();
-
- 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();
- */
- if (rows != grd_calendar.rows - 1){
- model.removeNodeset("/root/hidden/calendar/weeklist/list");
- for( var i = 0; i < rows; i++ ){
- grd_calendar.addRow(false);
- }
- }else{
- model.setValue("/root/hidden/calendar/weeklist/list", "");
-
- }
- grd_calendar.refresh();
- var rowIndex = grd_calendar.fixedRows;
- var colIndex = startDay;
- for( var i = 1; i <= days; i++ ) {
- grd_calendar.valueMatrix(rowIndex, colIndex) = i;
- grd_calendar.valueMatrix(rowIndex, colIndex + 7) = "0/0";
- colIndex++;
- if( colIndex == 7 ) {
- colIndex = 0;
- rowIndex++;
-
- }
- }
-
- model.setValue("/root/send/data/rsrvdd",model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+"01");
-
- fCalendar(); //공휴일 표시
- setRsrvPresCondByMonth(); //가용인원표시
-
- }
-
-
- /* @group : 통합예약관리
- * @ver : 2007.08.09
- * @by : 임헤정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 선택날짜 색 주기
- */
-
- function setCellColor(gridObj) {
-
- var calRow = 0; //현재선택
- var calCol = 0; //현재선택
- var bfcalRow = 0; //전에 선택
- var bfcalCol = 0; //전에 선택
-
- var white = 1; //#ffffff
- var green = 2; //#c4e693
-
-
- calRow = Number(model.getValue("/root/hidden/grdcellcolor/calrow"));
- calCol = Number(model.getValue("/root/hidden/grdcellcolor/calcol"));
-
- bfcalRow = Number(model.getValue("/root/hidden/grdcellcolor/bfcalrow"));
- bfcalCol = Number(model.getValue("/root/hidden/grdcellcolor/bfcalcol"));
-
-
- // 1. 원래 색으로 돌려놓기
- if(model.getValue("/root/hidden/grdcellcolor/color") == "1" ) {
- gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
-
- if( bfcalCol < 7 )
- bfcalCol += 7;
- else
- bfcalCol -= 7;
-
- gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
- }
- else if (model.getValue("/root/hidden/grdcellcolor/color") == "2" ) {
- gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
-
- if( bfcalCol < 7 )
- bfcalCol += 7;
- else
- bfcalCol -= 7;
-
- gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
- }
-
-
- // 2. bf 인스턴스에 선택한 원래 셀 담아두기
-
- if(gridObj.cellStyle("background-color", calRow, calCol) == "#ffffff" ) {
- model.setValue("/root/hidden/grdcellcolor/color", "1");
- }
- if(gridObj.cellStyle("background-color", calRow, calCol) == "#c4e693" ) {
- model.setValue("/root/hidden/grdcellcolor/color", "2");
- }
- model.setValue("/root/hidden/grdcellcolor/bfcalrow",calRow);
- model.setValue("/root/hidden/grdcellcolor/bfcalcol",calCol);
- //alert("인스턴스 : "+model.getValue("/root/hidden/grdcellcolor/color"));
-
- // 3. 선택한 셀에 보라색 주기
-
-
- // gridObj.rebuildStyle();
-
- gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
-
- if( calCol < 7 )
- calCol += 7;
- else
- calCol -= 7;
-
- gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
-
- // 현재일자 색상 표시 2011.07.20 by kya
- var curdate = getCurrentDate();
- var caldate = model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month");
- var curday = curdate.substring(6,8);
- var calday = "";
-
- if ( curdate.substring(0,6) == caldate ) {
- for (i=0; i<gridObj.rows; i++) {
- for (j=0; j<gridObj.cols; j++) {
- calday = gridObj.valueMatrix(i,j);
- if (eval(curday) == calday) {
- calRow = i;
- calCol =j;
- // 현재일자 색상 표시
- gridObj.cellStyle("background-color", calRow, calCol) = "#95d4fb";
-
- if ( calCol < 7 ) {
- calCol += 7;
- } else {
- calCol -= 7;
- }
- gridObj.cellStyle("background-color", calRow, calCol) = "#95d4fb";
- }
- }
- }
- }
- }
-
- /* @group : 통합예약관리
- * @ver : 2007.08.09
- * @by : 장준원
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : Object Visible 체크
- * 1. 영상의학과의 자체예약일 경우
- * - 검사현황 Grid의 병실컬럼.
- */
- function chkobjvisible(check) {
- if ( check == "A" ) {
- grd_mainordlist5.colhidden(grd_mainordlist5.colref("roomcd")) = false;
- grd_mainordlist5.colhidden(grd_mainordlist5.colref("telrsrvyn")) = true;
- } else {
- grd_mainordlist5.colhidden(grd_mainordlist5.colref("roomcd")) = true;
- grd_mainordlist5.colhidden(grd_mainordlist5.colref("telrsrvyn")) = false;
- }
- }
-
-
-
- /* @group : 통합예약관리
- * @ver : 2007.05.18
- * @by : 이선경
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 달력에 일자별로 가용현황을 보여준다.
- */
-
- function setRsrvPresCondByMonth() {
-
- if (grd_mainordlist5.row > 0){
- model.setValue("/root/send/data/prcpgenrflag", model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/prcpgenrflag"));
- model.setValue("/root/send/data/excucd", model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/calcscorcd"));
- }
- /*
- if (model.getValue("/root/send/data/chkflag") != "T"){
- model.setValue("/root/send/data/prcpgenrflag", "");
- }
- */
- model.removeNodeset("/root/init/curerprescondlist/deptmemo");
- model.removeNodeset("/root/main/rsrvposstmlist/deptmemo");
- submit("TRAEA02004", false);
-
- // 수행부서 선택 시 수행부서/변동내역 Comment 조회 부분 추가 [2010.05.20 김건기]
- var rowCnt = getNodesetCount("/root/init/curerprescondlist/deptmemo");
- for (var i = 1; i <= rowCnt ; i++) {
- model.makeValue("/root/main/rsrvposstmlist/deptmemo[" + i + "]/memodt", model.getValue("/root/init/curerprescondlist/deptmemo[" + i + "]/memodt"));
- model.makeValue("/root/main/rsrvposstmlist/deptmemo[" + i + "]/memorem", model.getValue("/root/init/curerprescondlist/deptmemo[" + i + "]/memorem"));
- }
- grd_temp.refresh();
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate();
- var startDay = isDate.getDay();
- for (var i = 1; i < datagrid3.rows; i++) {
- var dd = model.getValue("/root/init/calenlist/calendinfo[" + i + "]/basedd");
- var colidx = dd.toDate().getDay();
- var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
- //var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
- //alert("DD==" + dd + "==colidx==" + rowidx + "==rowidx");
- grd_calendar.cellStyle("background-color", rowidx, colidx) = "white";
- grd_calendar.cellStyle("background-color", rowidx, colidx+7) = "white";
- //2010.09.25 예약스케줄없을시 기존검사실 캐퍼 그대로 적용되어 reset시킴 - 박재영
- grd_calendar.valueMatrix(rowidx, colidx+7) = "0/0";
- }
- grd_calendar.refresh();
- //grd_calendar.rebuildStyle();
- for (var i = 1; i < grd_temp.rows; i++) {
- var dd = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/rsrvdd");
- var colidx = dd.toDate().getDay();
- var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
- grd_calendar.valueMatrix(rowidx, colidx+7) = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count") + "/" + model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max") ;
- //예약가능일자 녹색주기
- if(parseFloat(model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count")) < parseFloat(model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max"))){
- grd_calendar.cellStyle("background-color", rowidx, colidx) = "#c4e693";
- grd_calendar.cellStyle("background-color", rowidx, colidx+7) = "#c4e693"; // #D9EFB9 < #C4E693 < #ABDC65
- }
- }
- model.refresh();
-
- // 수행부서 선택 시 수행부서/변동내역 Comment 조회 부분 추가 [2010.05.20 김건기]
- grd_momolist.autoResize = true;
- }
-
- function readfunc(){
- //initCalendar2();
- //setCurrentDate();
-
- //20140911 by kya 환자정보 초기화
- model.removeNodeset("/root/main/exculist/patinfolist");
- //end
-
- model.removeNodeset("root/main/exculist/mainordlist1");
- model.removeNodeset("root/main/exculist/mainordlist2");
- model.removeNodeset("root/main/exculist/mainordlist3");
- model.removeNodeset("root/main/exculist/mainordlist4");
- model.removeNodeset("root/main/exculist/mainordlist5");
- model.removeNodeset("root/main/exculist/mainordlist8");
- model.setValue("/root/send/data/orddeptcd","");
- //model.resetInstanceNode("/root/send/data/cmb_info/initexecroom/excuroomcdid");
-
- model.removeNodeset("/root/main/orddeptinfo/orddeptlist");
- model.removeNodeset("/root/main/rsrvposstmlist/rsrvlist");
- model.removeNodeset("/root/init/curerprescondlist/rsrvcalendar");
- model.removeNodeset("/root/hidden/beforersrvtm/rsrvdtlist");
- model.removeNodeset("/root/main/rsrvposstmlist/rsrvposstm");
- model.removeNodeset("/root/main/rsrvposstmlist/deptmemo");
- model.removeNodeset("/root/main/exculist/subordlist3");
- model.removeNodeset("/root/main/printinfo/printlist"); //20100927
- //20121030 중증만기일자표시
- model.setValue("/root/send/data/serdiagtodd","");
- // 환자내역
- //submit("TRAEA02001");
- //처방현황
- model.setValue("/root/send/data/srchpid",model.getValue("/root/send/data/srchpid"));
- model.setValue("/root/send/data/orddd","");
-
- // 2011.01.27 c y w 조회시 계속 현재일자 보여주기.
- // model.setValue("/root/hidden/calendar/year", "");
- // model.setValue("/root/hidden/calendar/month", "");
-
- if (submit("TRAEA02010")){
- for (var i = 1; i < grd_mainordlist2.rows; i++){
- if (model.getValue("/root/main/exculist/mainordlist2[" + i + "]/rsrvflag") == "2"){
- grd_mainordlist2.rowstyle(i, "data", "background-color") = "#ccffff";
- }else if (model.getValue("/root/main/exculist/mainordlist2[" + i + "]/calcyn") == "Y"){ //수납이 아니면
- grd_mainordlist2.rowstyle(i, "data", "background-color") = "#FF9A00";
- }else if (model.getValue("/root/main/exculist/mainordlist2[" + i + "]/calcyn") == "V"){ //VIP일 경우 2012.08.20 by kya
- grd_mainordlist2.rowstyle(i, "data", "background-color") = "#ffff00";
- }else{
- grd_mainordlist2.rowstyle(i, "data", "background-color") = "#ffffff";
- }
- }
- if (model.getValue("/root/init1/baseinfo/initsrchtm/A640[" + 1 + "]/cdid") == "N"){
- for (var i = 1; i < grd_mainordlist5.rows ; i++) {
- if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/rsrvflagyn") == "미예약" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/rsrvflagyn") == "예약취소"){
- model.setValue("/root/main/exculist/mainordlist5["+i+"]/srchrsrvtm", "");
- }
-
-
-
- }
- }
- // 영상의학과에서의 object에 제어를 하기 위해서 , 장준원(20080416)
- chkobjvisible( model.getValue("/root/send/data/chkflag") );
-
- patcmt();
-
- /* 2013.02.13 by kya 개정 : VIP 후불 수납체크 추가 */
- //20100824 외래미수납 처방만 (입원처방 통합예약에서 예약시 prcpgenrflag = 'I'제외되어야됨)
- //old===> var Impsirsrvcnt = getNodesetCount("/root/main/exculist/mainImpsirsrvlist[prcpgenrflag = 'O']");
- //new ====>
- var Impsirsrvcnt = getNodesetCount("/root/main/exculist/mainImpsirsrvlist[prcpgenrflag = 'O' && aftrcptinfo != 'V']");
-
- //var Impsirsrvcnt = getNodesetCount("/root/main/exculist/mainImpsirsrvlist[prcpgenrflag != 'S']");
- // var Impsirsrvcnt = getNodesetCount("/root/main/exculist/mainImpsirsrvlist");
- if ( Impsirsrvcnt > 0 ) {
- messageBox("미수납 검사처방이 있습니다. 처방 확인 요망 ","E999");
- }
-
- // 환자 조회시 중증이나 산정특례 만료일부터 6개월이내 환자 알림 기능
- var serdiagtodd = model.getValue("/root/main/exculist/patinfolist/serdiagtodd");
-
-
- //if ( ( grd_mainordlist2.rows > 1 ) && (serdiagtodd != "-" ) ) {
- if (serdiagtodd != "-" ) { //진료예약내역 여부와 상관없이 있으면 나오도록 함 20140307 by kya
- if (serdiagtodd.length == 8) {
- serdiagtodd = serdiagtodd.substr(0,4) + "년 " + serdiagtodd.substr(4,2) + "월 " + serdiagtodd.substr(6,2) + "일";
- //20121030 중증만기일자표시
- model.setValue("/root/send/data/serdiagtodd",serdiagtodd);
-
- messageBox("중증이나 산정특례 등록이 " + serdiagtodd + " 만료예정입니다","E999");
- } else {
- messageBox("중증이나 산정특례 등록이 " + serdiagtodd + " 만료예정입니다","E999");
- }
- }
-
- }
- }
-
- /* @group : 통합예약관리
- * @ver : 2007.08.10
- * @by : 임헤정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 오늘날짜 달력에 표시
- */
-
- function setCurrentDate() {
-
- var curDate = getCurrentDate().substr(6,2); //오늘날짜
- var curWeek = getCurrentDate().toDate().getDayOfWeek("E").toLowerCase(); //오늘요일
- if(curDate <10) {
- curDate= curDate.substr(1,1);
- }
-
- if(curWeek == "sun")
- model.setValue("/root/hidden/grdcellcolor/calcol",0);
- if(curWeek == "mon")
- model.setValue("/root/hidden/grdcellcolor/calcol",1);
- if(curWeek == "tue")
- model.setValue("/root/hidden/grdcellcolor/calcol",2);
- if(curWeek == "wed")
- model.setValue("/root/hidden/grdcellcolor/calcol",3);
- if(curWeek == "thu")
- model.setValue("/root/hidden/grdcellcolor/calcol",4);
- if(curWeek == "fri")
- model.setValue("/root/hidden/grdcellcolor/calcol",5);
- if(curWeek == "sat")
- model.setValue("/root/hidden/grdcellcolor/calcol",6);
-
- for(var i = 0 ; i <grd_calendar.rows; i++ ) {
- if(model.getValue("/root/hidden/calendar/weeklist/list["+i+"]/"+curWeek) ==curDate) {
- model.setValue("/root/hidden/grdcellcolor/calrow",i);
-
- }
- }
-
- setCellColor(grd_calendar);
- }
-
-
-
-
-
- /* @group : 통합예약관리
- * @ver : 2007.08.09
- * @by : 임헤정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 예약가능시간보여주기
- */
-
- function getRsrvPossTm(gridObj) {
-
- /*
- if(model.getValue("/root/send/ioflag") == "") {
- messageBox("입원,외래중","C002");
- return;
- } else if(model.getValue("/root/send/excuroomcd") == "") {
- messageBox("치료실","C002");
- return;
- } else { */
-
- // var calRow = gridObj.row;
- // var calCol = gridObj.col;
- var calRow = model.getValue("/root/hidden/grdcellcolor/calrow");
- var calCol = model.getValue("/root/hidden/grdcellcolor/calcol");
-
- if( calCol >= 7 )
- calCol -= 7;
-
- var yyyy = model.getValue("/root/hidden/calendar/year");
- var mm = model.getValue("/root/hidden/calendar/month");
- var dd = model.getValue("/root/hidden/calendar/weeklist/list[" + calRow + "]/" + gridObj.colAttribute(calCol, "ref"));
-
-
- if (getStringLength(dd) == 1) {
- dd = "0" + dd;
- }
-
- model.setValue("/root/send/data/rsrvdd", yyyy + mm + dd);
-
- model.setValue("/root/send/data/rsrvdate",model.getValue("/root/send/data/rsrvdd"));
-
- /*
- if (gridObj.cellStyle("background-color", calRow, calCol) == "#daa7d9") {
- grd_temp2.addRow();
- grd_temp2.setValue("/root/send/rsrvdd[" + grd_temp2.bottomRow + "]/yyyymmdd", yyyy + mm + dd);
- }*/
- if (grd_mainordlist5.row > 0){
- model.setValue("/root/send/data/prcpgenrflag", model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/prcpgenrflag"));
- model.setValue("/root/send/data/excucd", model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/calcscorcd"));
- }
- grd_momolist.autoResize = true;
- submit("TRAEA02005");
- var idx = 1;
- model.removeNodeset("/root/main/hidden3/rsrvtmlst");
-
- // 2011.01.28 c y w 예약시간 리스트 배경색 디폴드값 셋팅.
- for(var b = 1; b <= grd_rsrvposstm.rows ; b++ ){
- grd_rsrvposstm.rowstyle(b, "data", "background-color") = "#ffffff";
- }
-
- // 2011.01.28 c y w 예약내역에 소요시간이 있을경우 그 시간내에는 예약을 잡지 못하도록 배경색 변경
- for (var i = 1; i < grd_rsrvlist.rows; i++){
-
-
- //2011.01.28 c y w 소요시간이 0 이 아닐경우,
- if( parseInt(model.getValue("/root/main/rsrvposstmlist/rsrvlist[" + i +"]/excutm")) != 0 && model.getValue("/root/main/rsrvposstmlist/rsrvlist[" + i +"]/excutm") != "" ){
- for(var a = 1; a <= grd_rsrvposstm.rows ; a++ ){
- var rsrvcapatm = model.getValue("/root/main/rsrvposstmlist/rsrvposstm[" + a + "]/rsrvtm");
- var excutm = model.getValue("/root/main/rsrvposstmlist/rsrvlist[" + i +"]/excutm");
- var rsrvtm = model.getValue("/root/main/rsrvposstmlist/rsrvlist["+ i +"]/rsrvtm").substring(0,4);
- var addrsrvtext = model.getValue("/root/send/data/rsrvdd") + model.getValue("/root/main/rsrvposstmlist/rsrvlist["+ i +"]/rsrvtm").substring(0,4);
- var addrsrvtm = addrsrvtext.toDate("YYYYMMDDhhmm").getAddDate(parseInt(excutm),"m").getDateFormat("hhmm");
-
- // 예약시간 <= 예약켑파 && 예약시간+소요시간 >= 예약켑파
- if( rsrvtm < rsrvcapatm && addrsrvtm > rsrvcapatm ){
- grd_rsrvposstm.rowstyle(a, "data", "background-color") = "#99cc00";
- }
- }
- }
-
- if (model.getValue("/root/main/rsrvposstmlist/rsrvlist[" + i +"]/slepyn") == "Y"){
- grd_rsrvlist.rowstyle(i, "data", "background-color") = "#ffcc00";
- }else{
- grd_rsrvlist.rowstyle(i, "data", "background-color") = "#ffffff";
- }
-
- //2011.03.14 오전오후 구분 2011.03.21
- var srchrsrvtm = parseInt(model.getValue("/root/main/rsrvposstmlist/rsrvlist[" + i +"]/srchrsrvtm"));
-
- if(srchrsrvtm >= 1300){
- grd_rsrvlist.cellstyle("background-color", i, 1, i, 1) = "#ffcc00";
- }else{
- grd_rsrvlist.cellstyle("background-color", i, 1, i, 1) = "#ffffff";
- }
- }
- model.refresh();
- // }
- }
-
-
- /* @group : 통합예약
- * @ver : 2007.07.03
- * @by : 임혜정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 예약, 취소 버튼의 click 이벤트 처리
- */
- function exeRsrvTransaction(str) {
-
- var sColSep = "▦";
- var sRowSep = "▩";
- var rCSV = "";
-
- // PACS연동하기 위해 추가함. 20071017,장준원
- // pacsnocretyn,rgsttm,rgstrid,prcpdelivefact,orddepthngnm,prcpnm,orddd,rgstdepthngnm
- // 전화예약여부 컬럼 추가함. 20080603,장준원
- rCSV += "pid" + sColSep + "excuroomcd" + sColSep +"prcpdd" + sColSep + "execprcpuniqno" + sColSep + "rsrvflag" + sColSep + "rsrvdt" + sColSep
- + "srchrsrvtm" + sColSep + "prcpkindcd" + sColSep + "excupartcd" + sColSep + "indd" + sColSep + "actorddd" + sColSep + "orddeptcd" + sColSep
- + "orddrid" + sColSep + "calcscorcd" + sColSep+ "execrid" + sColSep+ "rsrvrem" + sColSep +"suppdeptcd" + sColSep+ "cnclresncd" + sColSep
- + "pacsnocretyn" + sColSep+ "rgsttm" + sColSep+ "rgstrid" + sColSep+ "prcpdelivefact" + sColSep+ "orddepthngnm" + sColSep+ "prcpnm" + sColSep
- + "orddd" + sColSep+ "rgstdepthngnm"+ sColSep+ "examroomnm" + sColSep+ "bf_srchrsrvtm" + sColSep+ "rsrvflagyn" + sColSep
- + "prcpexecdeptcd" + sColSep+ "rsrvtmcntlyn" + sColSep + "rsrvpsnnocntlyn" + sColSep + "excuroom" + sColSep + "telrsrvyn" + sColSep
- + "eqmtifyn" + sColSep + "glycosyn" + sColSep + "glycoscure" + sColSep + "reqhospcd" + sColSep + "prcpgenrflag" + sColSep + "rsrvtmplcd"
- + sColSep + "emryn" + sColSep + "timeyn" + sColSep + "rsrvsuppdeptcd" + sColSep + "prercptyn"+ sColSep + "rcptrsrvyn"+ sColSep + "prcptdayrcptyn" + sRowSep;
- //헤더인 excuroomcd를 앞에 붙여줘서 보냄.
-
- var k = 0;
- for (var i = 1;i < grd_mainordlist5.rows;i++){
- if (model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk")=="true"){
- if (str == "rsrv"){
- if (model.getValue("/root/main/exculist/mainordlist5["+i+"]/examroomnm") == ""){
- messageBox(i + "번째행에 수행부서를 선택하시기 바랍니다.", "E999", "");
- return false;
- }
- if (grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("srchrsrvtm")) == ""){
- messageBox(i + "번째행에 예약시간을 선택하시기 바랍니다.", "E999", "");
- return false;
- }
- }
- //rCSV += model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroomcd") + sColSep + sRowSep;
- rCSV += grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("pid")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("excuroomcd")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("prcpdd")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("execprcpuniqno")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rsrvflag")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rsrvdt")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("srchrsrvtm")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("prcpkindcd")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("excupartcd")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("indd")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("actorddd")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("orddeptcd")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("orddrid")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("calcscorcd")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("execrid")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rsrvrem")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("suppdeptcd")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("cnclresncd")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("pacsnocretyn")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rgsttm")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rgstrid")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("prcpdelivefact")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("orddepthngnm")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("prcpnm")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("orddd")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rgstdepthngnm")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("examroomnm")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("bf_srchrsrvtm")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rsrvflagyn")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("prcpexecdeptcd")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rsrvtmcntlyn")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rsrvpsnnocntlyn")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("excuroom")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("telrsrvyn")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("eqmtifyn")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("glycosyn")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("glycoscure")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("reqhospcd")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("prcpgenrflag")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rsrvtmplcd")) + sColSep
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("emryn")) + sColSep
- + model.getValue("/root/send/data/timeyn") + sColSep
- + model.getValue("/root/send/rsrvsuppdeptcd") + sColSep;
- //2015/02/02 이정택 추가
- if(grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("aftrcptinfo"))=="V" || // 후불 수납환자
- grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rcptyn"))=="수납" || // 기수납자
- grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("genrflag"))=="S" || // 건진환자
- grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("genrflag"))=="I" || // 입원환자
- grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("genrflag"))=="E"){ // 응급환자
- rCSV += "Y" + sColSep;
- }else{
- rCSV += "N" + sColSep;
- }
- //2015/02/02 이정택 추가
-
- rCSV += grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rcptrsrvyn")) + sColSep // 미수예약
- + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("prcptdayrcptyn")) + sRowSep; //당일선수납
-
- k = parseInt(k) + 1;
- }
- }
-
- model.resetInstanceNode("/root/send/req/data");
- // model.setValue("/root/send/req/data", rCSV);
- model.setValue("/root/send/req/flag", str);
- model.setValue("/root/send/req/chkflag", model.getValue("/root/send/data/chkflag"));
-
- model.removeNode("/root/temp");
- model.removeNode("/root/count/item");
- model.makeNode("/root/temp");
- setCSVToNode("/root/temp", rCSV);
- instance1.selectSingleNode("/root/temp").xml;
-
- model.copyNode("/root/send/req/data", "/root/temp");
- if (submit("TXAEA02001", false)){
- model.removeNodeset("/root/main/rehbprcpsubinfolist");
- return true;
- }else{
- return false;
- }
-
- // submit("TRAEA01905");
- // setTree(grd_prcpsubinfo, 1, 3, false);
-
- //getRsrvPossTm(grd_calendar);
-
- }
-
- /* @group : 통합예약
- * @ver : 2007.08.07
- * @by : 임혜정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 달력 월버튼 이벤트
- */
-
- function fGetCalendar(arg)
- {
-
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- //alert(isYear + "==" + isMonth);
- 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);
-
- // 2011.08.10 현재일자 색상 표시추가
- setCurrentDate(grd_calendar);
-
- }
-
- /* @group : 통합예약
- * @ver : 2007.08.21
- * @by : 임혜정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 예약증 출력
- */
- function fOpenRtfFileDialog() {
- var file = window.fileDialog("open","","false","","","RTF Files(*.rtf)|*.rtf");
- return file;
- }
-
-
- /* @group : 통합예약
- * @ver : 2007.08.21
- * @by : 임혜정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 예약증 출력
- */
- function fGetFileName(path) {
- var lastIdx = path.lastIndexOf("\\");
- if (lastIdx >= 0) {
- return path.substr(lastIdx+1);
- } else {
- return path;
- }
- }
-
-
-
- /* @group : 통합예약
- * @ver : 2007.08.21
- * @by : 임혜정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 예약증 출력 초기화
- */
- function fInitialize() {
- model.removeNodeset("/root/main/rtflist");
- model.resetInstanceNode("/root/main/curfile/filename");
- model.resetInstanceNode("/root/main/curfile/rtfcode");
- model.resetInstanceNode("/root/send/rtfcode");
- model.resetInstanceNode("/root/send/filename");
- rtfviewer.clear();
- model.refresh();
- }
-
-
-
- function fSetGrdMainordlist(){
-
-
- setRowStyle("grd_mainordlist5" , "5" , "미수납" , "rcptyn" ); //미수납
-
- // submit("TRPMC02500");
-
-
- //자동예약시간뿌려주기
- //미예약인 처방에 제일 빠른 시간 뿌려줌.
- /*
- var nodeList = instance1.selectNodes("/root/main/exculist/mainordlist5[rsrvflagyn='미예약']"); //미예약 다 뿌려줌
- var rCSV = getNodeListCSV(nodeList);
- */
- /* 유재정 처리 - 2007.10.25
- var sColSep = "▦";
- var sRowSep = "▩";
- var rCSV = "";
-
- rCSV += "excuroomcd" + sRowSep; //헤더인 excuroomcd를 앞에 붙여줘서 보냄.
-
- var k = 0;
- for (var i = 1;i < grd_mainordlist5.rows;i++){
- if (model.getValue("/root/main/exculist/mainordlist5[" + i + "]/rsrvflagyn") == "미예약" && model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroomnm") != ""){
- //rCSV += model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroomcd") + sColSep + sRowSep;
- rCSV += grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("excuroomcd")) + sRowSep;
- k = parseInt(k) + 1;
- }
- }
- model.setValue("/root/send/data/autorsrvtmset/autorsrvtm", rCSV);
- if (k > 0){
- submit("TRAEA02008");
- }
- */
- var j = 1;
- cap_sleep.visible = false;
- for(var i = 1 ; i < grd_mainordlist5.rows ; i++ ){
- /* 유재정 처리 - 2007.10.25
- if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/rsrvflagyn") == "미예약" && model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroomnm") != ""){
- 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++;
- }
- */
- grd_mainordlist5.rowstyle(i, "data", "background-color") = "#ffffff";
-
- model.setValue("/root/main/exculist/mainordlist5["+i+"]/rsrvdt",model.getValue("/root/main/exculist/mainordlist5["+i+"]/srchrsrvtm"));
-
- if (model.getValue("/root/main/exculist/mainordlist5[" + i + "]/rsrvtmcntlyn") == "Y"){
- grd_mainordlist5.isReadOnly(i, grd_mainordlist5.colRef("srchrsrvtm")) = true;
- }else{
- grd_mainordlist5.isReadOnly(i, grd_mainordlist5.colRef("srchrsrvtm")) = false;
- }
- if (model.getValue("/root/main/exculist/mainordlist5["+i+"]/slepyn") == "Y"){
- cap_sleep.visible = true;
- model.setValue("/root/hidden/chkgam","수면");
- }
- /* 수면코드는 검사치료코드에서 수면여부로 체크(향후 컬럼추가후 수정
- if ( model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GMA0001" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE761103G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE766002G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE766004G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE768002G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "RMAU00602G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "RNAU00702G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE764002G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE762101G") {
- cap_sleep.visible = true;
- model.setValue("/root/hidden/chkgam","수면");
- }
- */
- }
-
- /* 수면코드는 검사치료코드에서 수면여부로 체크(향후 컬럼추가후 수정
- for(var chk = 1; chk < grd_anoprcplist.rows; chk++){
- if ( model.getValue("/root/main/exculist/subordlist2["+chk+"]/calcscorcd") == "GMA0001" ||
- model.getValue("/root/main/exculist/subordlist2["+chk+"]/calcscorcd") == "GE761103G" ||
- model.getValue("/root/main/exculist/subordlist2["+chk+"]/calcscorcd") == "GE766002G" ||
- model.getValue("/root/main/exculist/subordlist2["+chk+"]/calcscorcd") == "GE766004G" ||
- model.getValue("/root/main/exculist/subordlist2["+chk+"]/calcscorcd") == "GE768002G" ||
- model.getValue("/root/main/exculist/subordlist2["+chk+"]/calcscorcd") == "RMAU00602G" ||
- model.getValue("/root/main/exculist/subordlist2["+chk+"]/calcscorcd") == "RNAU00702G" ||
- model.getValue("/root/main/exculist/subordlist2["+chk+"]/calcscorcd") == "GE764002G" ||
- model.getValue("/root/main/exculist/subordlist2["+chk+"]/calcscorcd") == "GE762101G") {
- cap_sleep.visible = true;
- model.setValue("/root/hidden/chkgam","수면");
- }
- }
- */
- fSetSubDetailGrid("/root/main/exculist/mainordlist5");
-
- model.refresh();
-
- }
-
- function fTopInfo(){
-
- //TOP 정보 보여주기
- // schk = "N";
-
- // var genrflag = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/genrflag");
- //
- //
- // if ( model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/genrflag") =="O" ){
- // var pat_info = "O▦"+ model.getValue("/root/send/data/srchpid") +"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd")+"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/cretno")+"▦"+getUserInfo("dutplcecd")+"▦1▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd");
- // schk = "Y";
- // }
- //
- // else if ( model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/genrflag") =="I" ||
- // model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/genrflag") =="D" ||
- // model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/genrflag") =="E" ){
- // //2010.12.23 cyw 상단정보 데이터 던져줄때 제일 마지막 데이터값은 입원일 경우 등록일자 말고 퇴원일자!!
- // var srchdd = "";
- // var dschdd = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/dschdd");
- // if (dschdd == "" || dschdd == "99991231") {
- // srchdd = getCurrentDate();
- // } else {
- // srchdd = dschdd;
- // }
- //
- // //var pat_infoready = "I▦"+ model.getValue("/root/send/data/srchpid") +"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd")+"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/cretno")+"▦"+"012"+"▦1▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd");
- // var pat_info = "I▦"+ model.getValue("/root/send/data/srchpid") +"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd")+"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/cretno")+"▦"+getUserInfo("dutplcecd")+"▦"+srchdd;
- // schk = "Y";
- // }
- // else if ( model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/genrflag") =="S" ){
- // //var pat_infoready = "I▦"+ model.getValue("/root/send/data/srchpid") +"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd")+"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/cretno")+"▦"+"012"+"▦1▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd");
- // var pat_info = "S▦"+ model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/prcpdd") +"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/execprcpuniqno")+"▦"+getUserInfo("dutplcecd");
- // schk = "Y";
- // }
- // 20140801 by kya 외래, 응급실->입원전환, 입원 상관없이 상단정보 띄우도록 수정함
-
- var pat_info = "S▦"+ model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/prcpdd") +"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/execprcpuniqno")+"▦"+getUserInfo("dutplcecd");
- schk = "Y";
-
- if (schk == "Y"){
- setParameter("condparam", pat_info);
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- }
- }
-
- function patcmt(){
- group4.visible = false;
- if (datagrid2.rows > 1){
- var irow = datagrid2.findRow(getCurrentDate(), 1, 1);
- if (irow < 1){
- datagrid2.insertRow(1, "above");
- model.setValue("/root/main/exculist/subordlist3/rows[" + 1 + "] /iudgb", "I");
- model.setValue("/root/main/exculist/subordlist3/rows[" + 1 + "] /cmtdd", getCurrentDate());
- }
-
- var patcmts1 = "";
- for (var i = 1; i < datagrid2.rows ; i++) {
- var patcmt = model.getValue("/root/main/exculist/subordlist3/rows["+i+"]/patcmt");
- var cmtdd = model.getValue("/root/main/exculist/subordlist3/rows["+i+"]/cmtdd");
- patcmts1 = patcmts1 + cmtdd.substr(0,4) + "-" + cmtdd.substr(4,2) + "-" + cmtdd.substr(6,2) + " : " + patcmt + "\n\n";//\n\r\n
- }
- model.setValue("/root/init1/patcmt", patcmts1);
- group4.visible = true;
-
- }else{
- //datagrid2.insertRow(0);
- datagrid2.addRow();
- model.setValue("/root/main/exculist/subordlist3/rows[" + 1 + "] /iudgb", "I");
- model.setValue("/root/main/exculist/subordlist3/rows[" + 1 + "] /cmtdd", getCurrentDate());
- }
- model.setValue("/root/main/exculist/subordlist3/rows[" + 1 + "] /pid", model.getValue("/root/send/data/srchpid"));
- //2010.11.01 환자주의정보 존재시 visible(true) 주석처리후 if문안에 넣음 -박재영
- //model.setValue("/root/main/exculist/subordlist3/rows[" + 1 + "] /cmtdd", getCurrentDate());
- button1.disabled = false;
- datagrid2.refresh();
- }
-
- function ChangeCanFunc(){
- model.setValue("/root/send/popup/basecdflag","A");
- modal("SPAEA01500", 0,100,150,"SPAEA01500", "/root/send/popup/basecdflag", "/root/hidden/receivedata");
- var srem = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/rsrvrem");
- if (srem == "-"){
- srem = "";
- }
- if (srem != ""){
- srem = srem + " ";
- }
- var srem = srem + model.getValue("/root/hidden/cnclcdlist/cnclcdnm");
- model.setValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/rsrvrem", srem);
- model.refresh();
- }
-
- function ChangeTmplcd(){
- var stmpcd = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row +"]/rsrvmultitmplcd");
- if (stmpcd == ""){
- messageBox("처리할 자료를 클릭한 후 처리하시기 바랍니다.", "E999", "");
- }
- var k =0;
- for(var j=0; j < stmpcd.length; j++){
- //var ch = escape(str.charAt(i));
- var ch = stmpcd.charAt(j);
- if (ch == "^"){
- k = parseInt(k) + 1;
- }
- }
- if (k == 0){
- messageBox("멀티예약예문이 아닙니다.", "E999", "");
- return;
- }
- model.makeValue("/root/hidden/checkseq","01");
- model.makeValue("/root/hidden/calcscorcd",model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/calcscorcd"));
- model.makeValue("/root/hidden/tmplcd",model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/rsrvmultitmplcd"));
- window.load( "SPAEA02303_예약예문코드조회.xrw","modal","code", "left:100px; top:150px; width:530px; height:380px;min:hidden;max:hidden;resize:false;" );
- model.refresh();
- }
-
- /* @group : 통합예약
- * @ver : 2007.08.21
- * @by : 임혜정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc :
- */
- function ChangeTmplcd(){
- var stmpcd = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row +"]/rsrvmultitmplcd");
- if (stmpcd == ""){
- messageBox("처리할 자료를 클릭한 후 처리하시기 바랍니다.", "E999", "");
- }
- var k =0;
- for(var j=0; j < stmpcd.length; j++){
- //var ch = escape(str.charAt(i));
- var ch = stmpcd.charAt(j);
- if (ch == "^"){
- k = parseInt(k) + 1;
- }
- }
- if (k == 0){
- messageBox("멀티예약예문이 아닙니다.", "E999", "");
- return;
- }
- model.makeValue("/root/hidden/checkseq","01");
- model.makeValue("/root/hidden/calcscorcd",model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/calcscorcd"));
- model.makeValue("/root/hidden/tmplcd",model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/rsrvmultitmplcd"));
- window.load( "SPAEA02303_예약예문코드조회.xrw","modal","code", "left:100px; top:150px; width:530px; height:380px;min:hidden;max:hidden;resize:false;" );
- model.refresh();
- }
- function ChangeCanFunc2(){
- model.setValue("/root/send/popup/basecdflag","Y");
- modal("SPAEA01500", 0,100,150,"SPAEA01500", "/root/send/popup/basecdflag", "/root/hidden/receivedata");
- var srem = model.getValue("/root/main/exculist/subordlist3/rows[" + datagrid2.row + "]/patcmt");
- if (srem == "-"){
- srem = "";
- }
- if (srem != ""){
- srem = srem + " ";
- }
- var srem = srem + model.getValue("/root/hidden/cnclcdlist/cnclcdnm");
- model.setValue("/root/main/exculist/subordlist3/rows[" + datagrid2.row + "]/patcmt", srem);
- model.refresh();
- }
- function DateChng(){
- var irow = grd_mainordlist5.row;
- irow = irow + 1;
- var sroom = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/excuroom");
- var sdatetime = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/srchrsrvtm");
- var stime = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/excutm");
- var sexamroomnm = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/sexamroomnm");
- for (var i = irow; i < grd_mainordlist5.rows; i ++){
- var sdate = sdatetime.substr(0, 8);
- var shh = sdatetime.substr(8, 2);
- var smm = sdatetime.substr(10, 2);
-
- // 20110915 by kya
- if (sroom == model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroom")){
- model.setValue("/root/main/exculist/mainordlist5["+ i +"]/excuroomcd",model.getValue("/root/main/orddeptinfo/orddeptlist["+grd_orddept.row+"]/orddeptcd"));
- model.setValue("/root/main/exculist/mainordlist5["+ i +"]/examroomnm",grd_orddept.labelmatrix(grd_orddept.row, grd_orddept.col));
- model.setValue("/root/main/exculist/mainordlist5["+ i +"]/pexcuroomnm",grd_orddept.labelmatrix(grd_orddept.row, grd_orddept.col));
-
- }
- //alert(shh + "==" + smm);
- if (stime == "" || stime == "0"){
- if (sroom == model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroom")){
- model.setValue("/root/main/exculist/mainordlist5[" + i + "]/srchrsrvtm",sdatetime);
- }
- }else{
- if (sroom == model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroom")){
- //sdatetime = sdate.toDate().getAddDate(stime,"m").getDateFormat("YYYYMMDDhhmm");
- smm = parseFloat(smm) + parseFloat(stime);
- if (parseFloat(smm) >= 60){
- shh = parseFloat(shh) + 1;
- smm = parseFloat(smm) - 60;
- if (parseFloat(shh) < 10){
- shh = "0" + shh;
- }
- if (parseFloat(smm) < 10){
- smm = "0" + smm;
- }
- }else{
- if (parseFloat(smm) < 10){
- smm = "0" + smm;
- }
- }
- sdatetime = sdate + shh + smm;
- model.setValue("/root/main/exculist/mainordlist5[" + i + "]/srchrsrvtm",sdatetime);
- }
- }
- stime = model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excutm");
- }
- model.refresh();
- }
-
- /* @group : 통합예약
- * @ver : 2010.05.27
- * @by : 박재영
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 원스탑환자 일자,시간 계산
- */
- function OnestopDateChng(){
- 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 { //현재시간 이후시간을 예약
-
- }
- }
- else if(curDate > rsrvdd) { //당일 이전 예약
- messageBox("예약일자가 과거일자", "E008");
- }
- else {
- }
- //model.refresh();
- }
- }else {
- //당일예약
- if(curDate == rsrvdd) {
- if(getCurrentTime().substr(0,4) > model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")) { //현재시간 이전시간을 예약
- messageBox("예약시간이 과거시간", "E008");
- }
- else { //현재시간 이후시간을 예약
-
- }
- }
-
- else if(curDate > rsrvdd) { //당일 이전 예약
- messageBox("예약일자가 과거일자", "E008");
- }
- else { // 당일 이후 예약
-
- }
- //model.refresh();
- }
-
- var rsrvtm = model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm");
- var rsrvdd = model.getValue("/root/send/data/rsrvdd")
-
- //20100527 첫째날의 예약시간과 같은 cdnm("A901")의 시간값을 예약일로부터 cntlyn1날짜만큼후의 날자값으로 셋팅한다.
- for (var i = 1; i < grd_mainordlist5.rows; i ++){
- var gonestop = model.getValue("/root/main/exculist/mainordlist5[" + i + "]/onestop");
- var gcalcscorcd = model.getValue("/root/main/exculist/mainordlist5[" + i + "]/calcscorcd");
- if(gonestop == "H"){
- var cnt = model.instances(0).selectNodes( "/root/init1/onestopordinfo/codelist/item" ).length + 1;
-
- for(var j = 1; j < cnt ; j++){
- var cdid = model.getValue("/root/init1/onestopordinfo/codelist/item["+j+"]/cdid");
- if(gcalcscorcd == cdid){
- var cntlyn1 = model.getValue("/root/init1/onestopordinfo/codelist/item["+j+"]/cntlyn1");
- }
- }
-
- if(cntlyn1 == "0"){
- model.setValue("/root/main/exculist/mainordlist5["+ i +"]/rsrvdt",rsrvdd+rsrvtm); // 예약시간
- model.setValue("/root/main/exculist/mainordlist5["+ i +"]/srchrsrvtm",rsrvdd+rsrvtm); // 예약시간
-
- }else{
- var cnt = model.instances(0).selectNodes( "/root/init1/onestoptminfo/mintm/A901" ).length + 1;
- var onestopchk = 0;
- for(var j = 1; j < cnt ; j++){
- var cdid = model.getValue("/root/init1/onestoptminfo/mintm/A901["+j+"]/cdid");
- if(rsrvtm == cdid){
- var cdnm = model.getValue("/root/init1/onestoptminfo/mintm/A901["+j+"]/cdnm");
- onestopchk = onestopchk + 1;
- }
- }
- if(onestopchk == 0){
- messageBox("예약시간이 Onestop으로 지정되지 않은 시간", "E008");
- return;
- }
- var grsrvdd = rsrvdd.toDate().getAddDate(parseInt( cntlyn1),"D").getDateFormat("YYYYMMDD");
- model.setValue("/root/main/exculist/mainordlist5["+ i +"]/rsrvdt",grsrvdd+cdnm); // 예약시간
- model.setValue("/root/main/exculist/mainordlist5["+ i +"]/srchrsrvtm",grsrvdd+cdnm); // 예약시간
- }
- }
- }
- model.refresh();
- }
-
- /* @group : 통합예약
- * @ver : 2007.08.21
- * @by : 임혜정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 후수납 구분 표시
- */
- function fSetSubDetailGrid(path) {
- // 통합예약에서 건진환자 오늘결과 FLAG 의 폰트색깔변경요청 20110706 BY kya
- //aezfSetCellStyle("grd_mainordlist5" , "0^1^2" , "V^P^A" , "aftrcptinfo", "rcptyn", "F");
- aezfSetCellStyle("grd_mainordlist5" , "0^2^2" , "V^P^A" , "aftrcptinfo", "rcptyn", "F");
- var k = 0;
- for (var i = 1; i < grd_mainordlist5.rows; i++){
- var stmpcd = model.getValue("/root/main/exculist/mainordlist5[" + i +"]/rsrvmultitmplcd");
- k =0;
- for(var j=0; j < stmpcd.length; j++){
- //var ch = escape(str.charAt(i));
- var ch = stmpcd.charAt(j);
- if (ch == "^"){
- k = parseInt(k) + 1;
- }
- }
- if (k > 0){
- grd_mainordlist5.cellstyle("color", i, grd_mainordlist5.colRef("prcpnm")) = "#0000ff";
- }else{
- grd_mainordlist5.cellstyle("color", i, grd_mainordlist5.colRef("prcpnm")) = "";
- }
- }
-
- // 구분컬럼 ( 예약일 경우 색변경 ) , 예약시간이 존재할 경우 색변경
- if( grd_mainordlist5.rows > 1 ) {
- for(var i = 1 ; i < grd_mainordlist5.rows ; i++ ) {
- if( model.getValue("/root/main/exculist/mainordlist5["+i+"]/rsrvflagyn") == "예약" ) {
- grd_mainordlist5.cellStyle("color", i, 1, i, 1) = "#ff0000";
- } else {
- grd_mainordlist5.cellStyle("color", i, 1, i, 1) = "#000000";
- }
- }
- }
- grd_mainordlist5.colStyle(2, "data", "font-weight") = "bold";
- model.refresh();
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption39" style="left:965px; top:220px; width:33px; height:15px; ">제어</caption>
- <caption id="caption38" style="left:911px; top:220px; width:27px; height:15px; ">확인</caption>
- <shape id="rectangle9" appearance="rectangle" style="left:892px; top:219px; width:15px; height:15px; background-color:#ffffff; border-color:#808080; "/>
- <shape id="rectangle10" appearance="rectangle" style="left:946px; top:219px; width:15px; height:15px; background-color:#ffffa0; border-color:#808080; "/>
- <shape id="rectangle11" appearance="rectangle" style="left:1001px; top:219px; width:15px; height:15px; background-color:#ffdcdc; border-color:#808080; "/>
- <caption id="caption40" style="left:1020px; top:220px; width:50px; height:15px; ">통합예약</caption>
- <shape id="rectangle1" appearance="rectangle" style="left:1081px; top:219px; width:15px; height:15px; background-color:#ebebff; border-color:#808080; "/>
- <caption id="caption1" style="left:1100px; top:220px; width:30px; height:15px; ">팝업</caption>
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">
- <![CDATA[통합예약관리]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- open("SMAEA04300", "","","", "SMAEA04300", "","");
- ]]>
- </script>
- </caption>
- </group>
- <input id="ipt_date1" ref="/root/send/data/srchdate1" class="input_default" visibility="hidden" inputtype="date" style="left:890px; top:54px; width:89px; height:19px; "/>
- <select id="chbx_passdata" ref="/root/send/data/passdataflag" overflow="visible" appearance="full" style="left:527px; top:198px; width:80px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>과거제외</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <button id="button37" class="btn2_letter6" style="left:788px; top:196px; width:86px; height:19px; ">
- <caption>검사주의사항</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //20100930 검사선택시 메세지처리되던것을 버튼으로 교체 - 박재영
- if (model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/excucdrem") != ""){
- //alert(model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/excucdrem"));
- messageBox(model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/excucdrem"), "E999", "");
- }else{
- messageBox("등록된 검사주의사항이 없습니다.", "E999", "");
- }
- ]]>
- </script>
- </button>
- <button id="button29" class="btn2_letter6" style="left:948px; top:54px; width:86px; height:19px; ">
- <caption>주간예약조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //2010.09.06 주간예약현황조회 추가 - 박재영
- open("SMAEA00910", "","","", "SMAEA00910", "","");
- ]]>
- </script>
- </button>
- <button id="button32" class="btn2_letter7" style="left:847px; top:54px; width:97px; height:19px; ">
- <caption>SMS 전송결과</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //2010.09.06 주간예약현황조회 추가 - 박재영
- open("SPCNS00500");
- ]]>
- </script>
- </button>
- <output id="output1" ref="/root/main/exculist/patinfolist/rrgstno" class="output_fix" format="999999-9999999" disabled="true" style="left:813px; top:28px; width:98px; height:19px; text-align:center; "/>
- <caption id="caption4" class="cell_1" style="left:755px; top:25px; width:55px; height:23px; vertical-align:middle; ">주민번호</caption>
- <shape id="rectangle6" appearance="rectangle" style="left:354px; top:199px; width:20px; height:15px; background-color:#0000ff; "/>
- <caption id="caption29" style="left:380px; top:199px; width:74px; height:15px; ">멀티예약예문</caption>
- <button id="button27" class="btn2_letter6" visibility="visible" style="left:942px; top:196px; width:86px; height:19px; ">
- <caption>골밀도현황</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- group3.visible = true;
- model.refresh();
-
- ]]>
- </script>
- </button>
- <button id="button17" class="icon_top" style="left:202px; top:604px; 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>
- <button id="button1" class="btn4_letter2" disabled="true" style="left:200px; top:673px; 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>
- <output id="opt_hngnm" ref="/root/main/exculist/patinfolist/hngnm" class="output_fix" disabled="true" style="left:547px; top:27px; width:63px; height:19px; "/>
- <output id="opt_vip" ref="/root/main/exculist/patinfolist/vip" class="output_fix" disabled="true" style="left:478px; top:27px; width:18px; height:19px; font-weight:bold; color:#ff0000; text-align:center; background-color:#ffff00; "/>
- <caption id="caption2" class="cell_1" style="left:500px; top:25px; width:46px; height:23px; vertical-align:middle; ">환자명</caption>
- <multilinegrid id="grd_calendar" nodeset="/root/hidden/calendar/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:261px; top:482px; width:390px; height:268px; ">
- <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_calendar.row != 0 ) {
- model.setValue("/root/hidden/grdcellcolor/calrow",grd_calendar.row);
- model.setValue("/root/hidden/grdcellcolor/calcol",grd_calendar.col);
-
- setCellColor(grd_calendar);
- getRsrvPossTm(grd_calendar);
-
- 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="datagrid1" nodeset="/root/main/rsrvposstmlist/updtlist" visibility="hidden" autoresize="true" caption="변동사유" colsep="^" colwidth="245" mergecellsfixedrows="bycolrec" rowsep="|" style="left:350px; top:680px; width:258px; height:71px; ">
- <col ref="updtresndesc"/>
- </datagrid>
- <caption id="caption11" class="cell_1" style="left:914px; top:25px; width:45px; height:23px; vertical-align:middle; ">집전화</caption>
- <caption id="caption5" class="cell_1" style="left:1049px; top:25px; width:45px; height:23px; vertical-align:middle; ">핸드폰</caption>
- <caption id="caption22" class="tit_2" style="left:4px; top:60px; width:107px; height:13px; ">환자내역(처방)</caption>
- <caption id="caption7" class="tit_2" style="left:238px; top:60px; width:95px; height:13px; color:#003366; ">진료예약내역</caption>
- <caption id="caption8" class="tit_2" style="left:573px; top:59px; width:121px; height:13px; ">당일검사예약현황</caption>
- <caption id="caption13" class="tit_2" style="left:4px; top:681px; width:106px; height:13px; ">
- <![CDATA[환자Comment]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var patcmts = "";
- for (var i = 1; i < datagrid2.rows ; i++) {
- var patcmt = model.getValue("/root/main/exculist/subordlist3/rows["+i+"]/patcmt");
- var cmtdd = model.getValue("/root/main/exculist/subordlist3/rows["+i+"]/cmtdd");
- patcmts = patcmts + cmtdd.substr(0,4) + "-" + cmtdd.substr(4,2) + "-" + cmtdd.substr(6,2) + " : " + patcmt + "\n\n";//\n\r\n
- //alert(patcmts);
- }
- model.setValue("/root/init1/patcmt", patcmts);
- group4.visible = true;
- model.refresh();
- ]]>
- </script>
- </caption>
- <caption id="caption14" class="tit_2" style="left:4px; top:413px; width:69px; height:14px; ">
- <![CDATA[검사실]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- combo1.visible = true;
- cmb_excuroom.visible = true;
- ]]>
- </script>
- </caption>
- <group id="grp_sea" style="left:0px; top:20px; width:440px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:435px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption17" class="search_name" style="left:10px; top:9px; width:91px; height:17px; ">
- <![CDATA[등록번호 :]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- /*
- caption30.visible = true;
- bool2.visible = true;
- */
- ]]>
- </script>
- </caption>
- <line id="line13" class="line_4" style="x1:365px; y1:5px; x2:365px; y2:27px; "/>
- <button id="btn_sea" class="btn1_letter2" navindex="3" style="left:375px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // 검사 예약 제어 정보 초기화
- fInitRsrvCtrl();
-
- group4.visible = false;
- grd_mainordlist5.attribute("color") = "#000000";
- grd_mainordlist5.attribute("font-weight") = "normal";
-
- //사생활보호 관리여부 확인 20140218 by kya 추가
- cap_privacy.visible = false; // 사생활보호 20140218 by kya
- fGetPatPrivacyInfo(model.getValue("/root/send/data/srchpid"));
-
- // 20090407, 장준원, 처방내역선택시 기본수행부서를 보이게금 한다.
- //model.removeNodeset("/root/init/cmb_info/initexecroom");
- model.setValue("/root/send/data/ampmyn", "9")
- var chkflag = model.getValue("/root/send/data/chkflag");
- if(ipt_pid.value == "" ) {
- if (chkflag == "T"){
- messageBox("환자번호를 ", "C001")
- return 0 ;
- }
- }
-
- else {
- // 2011.01.27 c y w 조회시 계속 현재일자 보여주기.
- model.removeNodeset("/root/hidden/calendar/weeklist/list");
- initCalendar2();
-
- model.setValue("/root/send/data/hngnm", "");
- readfunc();
- if (chkflag == "T"){
- if (grd_mainordlist5.rows > 1){
- grd_mainordlist5.row = 1;
- fTopInfo();
- }else{
- delPatientInfos();
- }
- }else{
- delPatientInfos();
- }
- //상태별 색상주기
- fSetGrdMainordlist();
-
- if (model.getValue("/root/send/data/srchpid") != ""){
- //btn_execcncl.dispatch("DOMActivate");
- var child = getOpenWindow("SMMMO02500") ;
- if (child != null ) {
- child.model.makeValue("/root/main/patinfolist/pid" , model.getValue("/root/send/data/srchpid"));
- setParameter ( "SMMMO02500_cond" , model.getValue("/root/send/data/srchpid"));
- //child.btn_bfprcpsrch.dispatch("DOMActivate");
- //child.ipt_pid.dispatch("onkeypress");
- 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();
- /*
- if (child.grd_patchosinfo.rows > 0){
- child.grd_patchosinfo.row = 1;
- }
- child.javascript.fPatChosInfo();
- */
- }
- var child = getOpenWindow("SMAEA00300") ;
- if (child != null ) {
- child.model.makeValue("/root/send/srchpid" , model.getValue("/root/send/data/srchpid"));
- child.btn_sea.dispatch("DOMActivate");
- child.model.refresh();
- }
- var child = getOpenWindow("SMAEA04400") ;
- if (child != null ) {
- child.model.makeValue("/root/send/pid" , model.getValue("/root/send/data/srchpid"));
- child.btn_sea.dispatch("DOMActivate");
- child.model.refresh();
- }
- }
-
- }
-
-
- ]]>
- </script>
- </button>
- <caption id="caption19" class="search_name" style="left:193px; top:9px; width:72px; height:17px; ">환자명 :</caption>
- <input id="ipt_pid" ref="/root/send/data/srchpid" class="input_search" navindex="1" style="left:98px; top:8px; width:87px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- // inputEnterKey("btn_pid","DOMActivate");
- if(event.keyCode == "13") {
- inputEnterKey("btn_sea","DOMActivate");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //btn_execcncl.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_pid" class="icon_search" style="left:341px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 환자조회
-
- model.makeValue("/root/send/data2/pid","");
- model.makeValue("/root/send/data2/srchcond","4");
- modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/data2","/root/send");
- if (model.getValue("/root/main/popupendflag") != "cancel"){
- model.setValue("/root/send/data/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- // 환자내역
- //submit("TRAEA02001");
- btn_sea.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/send/data/hngnm" navindex="2" imemode="hangul" style="left:265px; top:8px; width:70px; height:19px; text-align:left; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- if (input1.currentText == ""){
- model.setValue("/root/reqdata/srchcond", "3");
- model.setValue("/root/reqdata/hngnm", "");
- modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/reqdata","/root/send");
- model.setValue("/root/send/data/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/data/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- }else{
- model.setValue("/root/reqdata/srchcond", "2");
- model.setValue("/root/reqdata/hngnm", input1.currentText);
- modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/reqdata","/root/send");
- model.setValue("/root/send/data/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/data/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- }
- if (model.getValue("/root/main/popupendflag") != "cancel"){
- model.setValue("/root/send/data/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid"));
-
- // 환자내역
- //submit("TRAEA02001");
- btn_sea.dispatch("DOMActivate");
- }else{
- model.setValue("/root/send/data/hngnm", "");
- }
- model.refresh();
- }
- ]]>
- </script>
- </input>
- </group>
- <line id="line12" class="line_1" style="x1:440px; y1:20px; x2:1195px; y2:20px; "/>
- <line id="line1" class="line_1" style="x1:2px; y1:624px; x2:260px; y2:624px; "/>
- <line id="line7" class="line_1" style="x1:2px; y1:548px; x2:260px; y2:548px; "/>
- <caption id="caption20" class="tit_2" style="left:4px; top:534px; width:191px; height:14px; ">수행부서/변동내역 Comment</caption>
- <caption id="caption21" class="tit_2" style="left:4px; top:609px; width:173px; height:13px; ">처방 Comment</caption>
- <output id="opt_age" ref="/root/main/exculist/patinfolist/sex" class="output_fix" disabled="true" style="left:646px; top:27px; width:25px; height:19px; text-align:center; "/>
- <output id="opt_sex" ref="/root/main/exculist/patinfolist/age" class="output_fix" disabled="true" style="left:670px; top:27px; width:20px; height:19px; text-align:center; "/>
- <output id="opt_hometel" ref="/root/main/exculist/patinfolist/hometel" class="output_fix" style="left:960px; top:28px; width:90px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( model.getValue("/root/main/exculist/patinfolist/hngnm") != "" || model.getValue("/root/main/exculist/patinfolist/hngnm") != " " ) {
- // 전화번호 더블클릭시 해당환자의 '전화번호/주소 조회 및 수정 창' 팝업창을 호출!!!
- //예약내역이 없는 필드 체크
- var hngnm = model.getValue("/root/main/exculist/patinfolist/hngnm");
- var pid = model.getValue("/root/send/data/srchpid");
- if (hngnm == null && hngnm == "" && hngnm == " " && hngnm == "-"){
- return false;
- }
- //setParameter("opener_parameter_id", pid);
- model.removeNodeset("/root/temp/source");
- model.makeValue("/root/temp/source/srchcond", "1");
- model.makeValue("/root/temp/source/pid", pid);
- modal("SPPMO01400", "1", "100", "100", "SPPMO01400", "/root/temp/source", "/root/source");
-
- var hometel = getParameter("SMPMO01400_hometel");
- var mpphontel = getParameter("SMPMO01400_mpphontel");
- if( hometel != '' && mpphontel != '' ){
- model.setValue("/root/main/exculist/patinfolist/hometel", hometel) ;
- model.setValue("/root/main/exculist/patinfolist/mpphontel", mpphontel) ;
- }
- model.removeNodeset("/root/temp/source");
- model.refresh();
- }
- ]]>
- </script>
- </output>
- <output id="opt_mpphontel" ref="/root/main/exculist/patinfolist/mpphontel" class="output_fix" style="left:1098px; top:28px; width:90px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( model.getValue("/root/main/exculist/patinfolist/hngnm") != "" || model.getValue("/root/main/exculist/patinfolist/hngnm") != " " ) {
- // 전화번호 더블클릭시 해당환자의 '전화번호/주소 조회 및 수정 창' 팝업창을 호출!!!
- //예약내역이 없는 필드 체크
- var hngnm = model.getValue("/root/main/exculist/patinfolist/hngnm");
- var pid = model.getValue("/root/send/data/srchpid");
- if (hngnm == null && hngnm == "" && hngnm == " " && hngnm == "-"){
- return false;
- }
- //setParameter("opener_parameter_id", pid);
- model.removeNodeset("/root/temp/source");
- model.makeValue("/root/temp/source/srchcond", "1");
- model.makeValue("/root/temp/source/pid", pid);
- modal("SPPMO01400", "1", "100", "100", "SPPMO01400", "/root/temp/source", "/root/source");
-
- var hometel = getParameter("SMPMO01400_hometel");
- var mpphontel = getParameter("SMPMO01400_mpphontel");
- if( hometel != '' && mpphontel != '' ){
- model.setValue("/root/main/exculist/patinfolist/hometel", hometel) ;
- model.setValue("/root/main/exculist/patinfolist/mpphontel", mpphontel) ;
- }
- model.removeNodeset("/root/temp/source");
- model.refresh();
- }
- ]]>
- </script>
- </output>
- <datagrid id="grd_mainordlist1" nodeset="/root/main/exculist/mainordlist1" caption="진료과(진료의)^진료일시^진료의^진료과^orddd^pid^orddrid^orddeptcd" colsep="^" colwidth="107, 104, 44, 75, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:2px; top:79px; width:233px; height:96px; ">
- <col ref="ordnm" style="text-align:left; "/>
- <col ref="orddt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="orddrnm" visibility="hidden"/>
- <col ref="deptengabbr" visibility="hidden"/>
- <col ref="orddd"/>
- <col ref="pid"/>
- <col ref="orddrid"/>
- <col ref="orddeptcd"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- for (var i = 1 ; i < grd_mainordlist5.rows ; i++ ){
- if (model.getValue("/root/main/exculist/mainordlist5[" + i + "]/orddeptcd") == model.getValue("/root/main/exculist/mainordlist1[" + grd_mainordlist1.row + "]/orddeptcd")){
- grd_mainordlist5.rowHidden(i) = false;
- }else{
- model.setValue("/root/main/exculist/mainordlist5[" + i + "]/chk", "false");
- grd_mainordlist5.rowHidden(i) = true;
- }
- }
- /* 수면코드는 검사치료코드에서 수면여부로 체크(향후 컬럼추가후 수정
- for(var i = 1 ; i < grd_mainordlist5.rows ; i++ ){
- if ( model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GMA0001" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE761103G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE766002G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE766004G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE768002G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "RMAU00602G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "RNAU00702G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE764002G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE762101G") {
- cap_sleep.visible = true;
- model.setValue("/root/hidden/chkgam","수면");
- }
- }
- */
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_mainordlist2" nodeset="/root/main/exculist/mainordlist2" caption="진료과(진료의)^예약일시" colsep="^" colwidth="90, 103" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:238px; top:79px; width:211px; height:116px; ">
- <col ref="suminfo"/>
- <col ref="orddt" format="yyyy-mm-dd hh:nn"/>
- </datagrid>
- <datagrid id="grd_mainordlist3" nodeset="/root/main/exculist/mainordlist6" caption="입원예정일" colsep="^" colwidth="94" mergecellsfixedrows="bycolrec" rowsep="|" style="left:452px; top:79px; width:113px; height:48px; ">
- <col ref="inhopedd" format="yyyy-mm-dd" style="left:0px; top:23px; width:158px; height:23px; "/>
- </datagrid>
- <datagrid id="grd_mainordlist4" nodeset="/root/main/exculist/mainordlist4" caption="검사예약일^검사명^검사실^상태^실시시간^예약자^rsrvid" colsep="^" colwidth="100, 195, 99, 71, 58, 79, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:570px; top:79px; width:623px; height:116px; ">
- <col ref="rsrvdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="prcpnm"/>
- <col ref="basecdflagdesc"/>
- <col ref="execprcpstatcd"/>
- <col ref="acttime" format="hh:nn:ss" style="text-align:center; "/>
- <col ref="usernm"/>
- <col ref="rsrvrid"/>
- </datagrid>
- <datagrid id="grd_rsrvlist" nodeset="/root/main/rsrvposstmlist/rsrvlist" class="datagrid2" autoresize="true" caption="시간^등록번호^이름^나이^I/O^소요
시간^처방명^진료과
(진료의)^처방Comment^remark^예약자^예약잡은시간" colsep="^" colwidth="35, 55, 44, 30, 25, 32, 109, 72, 100,100, 51, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:806px; top:436px; width:385px; height:342px; ">
- <col ref="srchrsrvtm" format="hh:nn" style="text-align:center; "/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="age" style="text-align:center; "/>
- <col ref="prcpgenrflag" style="text-align:center; "/>
- <col ref="excutm" style="text-align:center; "/>
- <col ref="prcpnm"/>
- <col ref="rgstdepthngnm"/>
- <col ref="prcpcmt"/>
- <col ref="rsrvrem"/>
- <col ref="lastupdtrnm"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( isDataCell() ){
- model.setValue("/root/send/data/srchpid", model.getValue("/root/main/rsrvposstmlist/rsrvlist[" + grd_rsrvlist.row + "]/pid"));
- btn_sea.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_rsrvposstm" nodeset="/root/main/rsrvposstmlist/rsrvposstm" caption="시간^현황^가용" colsep="^" colwidth="41, 33, 32" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:656px; top:436px; width:144px; height:343px; ">
- <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_rsrvposstm.isCell(event.target)) {
- return;
- }
-
- if (model.getValue("/root/send1/gb") == "1"){
- if (+grd_mainordlist5.row != "" ) {
- var sonestop = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/onestop");
- //20100527 원스탑이면 시간지정을 따로관리한다.
- if(sonestop == "H"){
- OnestopDateChng();
- }else{
-
- 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;
- }
-
- var count = model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/count")
- var maxcnt = model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/max")
- //현황과 가용인원 같을 경우 예약 불가능
- if(eval(count) >= eval(maxcnt)) {
-
- 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");
-
- //2011.09.08 by kya
- 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));
-
- }
- }
-
- 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");
-
- //2011.09.08 by kya
- 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.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");
- //2011-09-08 by kya 예약시간시점에 넣음
- 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));
- }
- }
-
- 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");
- //2011-09-08 by kya 예약시간시점에 넣음
- 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.refresh();
- }
- DateChng();
-
- // 예약 제어 내역 확인
- fGetRsrvCtrlList(grd_mainordlist5);
-
- // start 2012.07.19 by kya
- // 중증 / 산정특례 종료일자 체크
- var sToDd, sEndMsg
-
- if ((isValidDateTime(model.getValue("/root/main/exculist/patinfolist/serdiagtodd"), 'YYYYMMDD')
- && rsrvdd > model.getValue("/root/main/exculist/patinfolist/serdiagtodd"))
- || (isValidDateTime(model.getValue("/root/main/exculist/patinfolist/rareobsttodd"), 'YYYYMMDD')
- && rsrvdd > model.getValue("/root/main/exculist/patinfolist/rareobsttodd"))) {
-
- var sEndMsg = "중증 및 희귀질환산정특례 자격 종료예정자입니다. \r\n\r\n";
-
- if (isValidDateTime(model.getValue("/root/main/exculist/patinfolist/serdiagtodd"), 'YYYYMMDD')
- && rsrvdd > model.getValue("/root/main/exculist/patinfolist/serdiagtodd")) {
-
- var sToDd = model.getValue("/root/main/exculist/patinfolist/serdiagtodd");
- sToDd = sToDd.substr(0,4) + "/" + sToDd.substr(4,2) + "/" + sToDd.substr(6,2);
-
- sEndMsg += " - 중증 종료예정일자 : " + sToDd + "\r\n\r\n";
- }
-
- if (isValidDateTime(model.getValue("/root/main/exculist/patinfolist/rareobsttodd"), 'YYYYMMDD')
- && rsrvdd > model.getValue("/root/main/exculist/patinfolist/rareobsttodd")) {
-
- var sToDd = model.getValue("/root/main/exculist/patinfolist/rareobsttodd");
- sToDd = sToDd.substr(0,4) + "/" + sToDd.substr(4,2) + "/" + sToDd.substr(6,2);
-
- sEndMsg += " - 희귀질환산정특례 종료예정일자 : " + sToDd + "\r\n\r\n";
- }
-
- sEndMsg += "진료당일의 자격이 변경될 가능성이 있음에 유의하시기 바랍니다.";
-
- messageBox(sEndMsg, "E999");
- }
- //end
- }
-
- }
- else {
- messageBox("처방을", "C002");
- }
- }
- ]]>
- </script>
- </datagrid>
- <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:831px; top:560px; width:175px; height:170px; ">
- <col ref="rsrvdd"/>
- <col ref="count"/>
- <col ref="max"/>
- </datagrid>
- <datagrid id="grd_orddept" nodeset="/root/main/orddeptinfo/orddeptlist" caption="검사실" colsep="^" colwidth="237" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="byrow" tooltip="true" style="left:0px; top:432px; width:258px; height:94px; ">
- <col disabled="true" ref="orddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmb_info2/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"));
-
- // 예약 제어 내역 확인
- fGetRsrvCtrlList(grd_mainordlist5);
-
- /* 2009-05-21 수정
- 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"));
-
-
- var sonestop = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/onestop");
- var sroom = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/excuroom");
- for (var i = 1; i < grd_mainordlist5.rows; i ++){
- //20100527 원스탑환자이면 ("A900") 기준자료의 각각 지정된 검사실로 excuroomcd을 셋팅한다.
- if(sonestop == "H"){
- var gonestop = model.getValue("/root/main/exculist/mainordlist5[" + i + "]/onestop");
- var gcalcscorcd = model.getValue("/root/main/exculist/mainordlist5[" + i + "]/calcscorcd");
- if(sonestop == gonestop){
- var cnt = model.instances(0).selectNodes( "/root/init1/onestopordinfo/codelist/item" ).length + 1;
-
- for(var j = 1; j < cnt ; j++){
- var cdid = model.getValue("/root/init1/onestopordinfo/codelist/item["+j+"]/cdid");
- if(gcalcscorcd == cdid){
- var cntlcd1 = model.getValue("/root/init1/onestopordinfo/codelist/item["+j+"]/cntlcd1");
-
- //alert(gcalcscorcd + " : " +cdid + " : " +cntlcd1);
- }
- }
- model.setValue("/root/main/exculist/mainordlist5["+ i +"]/excuroomcd",cntlcd1);
- model.setValue("/root/main/exculist/mainordlist5["+ i +"]/examroomnm",grd_orddept.labelmatrix(grd_orddept.row, grd_orddept.col));
- model.setValue("/root/main/exculist/mainordlist5["+ i +"]/pexcuroomnm",grd_orddept.labelmatrix(grd_orddept.row, grd_orddept.col));
-
- }
- }else{
-
- /****2011.09.08 by kya 예약시간 선택시 입력하도록 변경
- ----START
- if (sroom == model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroom")){
- model.setValue("/root/main/exculist/mainordlist5["+ i +"]/excuroomcd",model.getValue("/root/main/orddeptinfo/orddeptlist["+grd_orddept.row+"]/orddeptcd"));
- model.setValue("/root/main/exculist/mainordlist5["+ i +"]/examroomnm",grd_orddept.labelmatrix(grd_orddept.row, grd_orddept.col));
- model.setValue("/root/main/exculist/mainordlist5["+ i +"]/pexcuroomnm",grd_orddept.labelmatrix(grd_orddept.row, grd_orddept.col));
-
- }
- */
- }
- }
-
-
- initCalendar();
- model.setValue("/root/send1/gb", "1");
- //getRsrvPossTm(grd_calendar);
-
- //model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <button id="button5" class="icon_top" style="left:203px; top:528px; 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>
- <button id="button15" class="icon_bottom" style="left:203px; top:528px; 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>
- <button id="button16" class="icon_bottom" style="left:202px; top:604px; 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>
- <group id="group2" scroll="auto" style="left:261px; top:425px; width:394px; height:55px; ">
- <shape id="rectangle2" class="calendar_header" appearance="rectangle" style="left:0px; top:3px; width:390px; height:52px; "/>
- <button id="button7" 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="button8" 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="button9" 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="button10" 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="button11" 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="button12" 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="button13" 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="button14" 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="button18" 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="button19" 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="button20" 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="button21" 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="opt_month" ref="/root/hidden/calendar/month" class="calendar_output" style="left:200px; top:2px; width:20px; height:19px; "/>
- <caption id="caption24" class="calendar_output" style="left:178px; top:2px; width:20px; height:19px; ">년</caption>
- <caption id="caption25" class="calendar_output" style="left:220px; top:2px; width:20px; height:19px; ">월</caption>
- <button id="button31" 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="button33" 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();
-
- // if(model.getValue("/root/send/data/excuroomcd") == "") {
- // messageBox("치료실","C002");
- // return;
- // }
-
- setCalendar(isDate);
- // getCurerPresCond();
- ]]>
- </script>
- </button>
- <output id="opt_year" ref="/root/hidden/calendar/year" class="calendar_output" style="left:148px; top:2px; width:30px; height:19px; "/>
- <button id="button35" 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="button36" 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>
- <button id="btn_case1" class="btn_sw" group="tab" selected="true" style="left:3px; top:198px; width:72px; height:22px; ">
- <caption>검사현황</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case1");
- btn_case1.selected = true;
- btn_case2.selected = false;
- ]]>
- </script>
- </button>
- <button id="btn_case2" class="btn_sw" group="tab" selected="false" style="left:76px; top:198px; width:83px; height:22px; ">
- <caption>타검사현황</caption>
- <toggle case="case2" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case2");
- btn_case1.selected = false;
- btn_case2.selected = true;
- ]]>
- </script>
- </button>
- <button id="btn_execcncl" class="btn2_letter4" style="left:1065px; top:196px; width:64px; height:19px; ">
- <caption>처방조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- if ( model.getValue("/root/send/data/srchpid") == "" ) {
- messageBox("[조회필수항목-등록번호] 를 입력하십시오.","I999");
- model.setfocus( "ipt_pid" );
- return;
- }
- */
- 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.btn_bfprcpsrch.dispatch("DOMActivate");
- //child.ipt_pid.dispatch("onkeypress");
- 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();
- /*
- if (child.grd_patchosinfo.rows > 0){
- child.grd_patchosinfo.row = 1;
- }
- child.javascript.fPatChosInfo();
- */
- }else{
- setParameter ( "SMMMO02500_cond" , model.getValue("/root/send/data/srchpid"));
- open("SMMMO02500", "","","", "SMMMO02500", "/root/send/data/srchpid","/root/init/srchcond2");
- }
-
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter4" style="left:1038px; top:54px; width:64px; height:19px; ">
- <caption>예약현황</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //var child = getChildWindow("SMMMO02500");
- /*
- var child = getOpenWindow("SMMMO02500") ;
- if (child != null ) {
- child.close();
- }
- */
-
- /*
- if ( model.getValue("/root/send/data/srchpid") == "" ) {
- messageBox("[조회필수항목-등록번호] 를 입력하십시오.","I999");
- model.setfocus( "ipt_pid" );
- return;
- }
- */
- open("SMAEA00300", "","","", "SMAEA00300", "/root/send/data/srchpid","/root/send/srchpid");
- //modal("SMAEA00900", "1","150", "150", "SMAEA00900", "/root/send/data/srchpid", "/root/send/pid"); //팝업
-
- ]]>
- </script>
- </button>
- <line id="line11" class="line_1" style="x1:2px; y1:74px; x2:235px; y2:74px; "/>
- <line id="line3" class="line_1" style="x1:570px; y1:74px; x2:1195px; y2:74px; "/>
- <line id="line4" class="line_1" style="x1:238px; y1:74px; x2:449px; y2:74px; "/>
- <line id="line9" class="line_1" style="x1:2px; y1:695px; x2:260px; y2:695px; "/>
- <datagrid id="grd_rsrvtemp" nodeset="/root/hidden/beforersrvtm/rsrvdtlist" visibility="hidden" caption="변경전" colsep="^" colwidth="122" mergecellsfixedrows="bycolrec" rowsep="|" style="left:975px; top:490px; width:120px; height:235px; ">
- <col ref="before" style="left:0px; top:23px; width:159px; height:23px; "/>
- </datagrid>
- <caption id="caption9" class="tit_2" style="left:452px; top:60px; width:95px; height:13px; ">입원예정일</caption>
- <line id="line10" class="line_1" style="x1:452px; y1:74px; x2:567px; y2:74px; "/>
- <line id="line15" class="line_1" style="x1:452px; y1:142px; x2:567px; y2:142px; "/>
- <caption id="caption12" class="tit_2" style="left:450px; top:128px; width:95px; height:13px; ">수술예정일</caption>
- <datagrid id="grd_opschedd" nodeset="/root/main/exculist/mainordlist3" caption="수술예정일" colsep="^" colwidth="94" mergecellsfixedrows="bycolrec" rowsep="|" style="left:452px; top:147px; width:113px; height:48px; ">
- <col ref="opschedd" format="yyyy-mm-dd" style="left:0px; top:23px; width:159px; height:23px; "/>
- </datagrid>
- <object id="rtfviewer" clsid="{a4bf7e18-5f67-4868-a726-eed421632374}" visibility="hidden" style="left:855px; top:680px; width:40px; height:45px; "/>
- <caption id="cap_sleep" ref="/root/hidden/chkgam" visibility="hidden" style="left:1032px; top:196px; width:30px; height:20px; font-family:굴림; font-size:12pt; font-weight:bold; color:#ffffff; text-align:center; vertical-align:bottom; background-color:#ff0000; "/>
- <button id="btn_timecls" class="btn2_letter4" visibility="hidden" style="left:965px; top:196px; 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.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>
- <caption id="caption16" class="cell_1" style="left:610px; top:25px; width:34px; height:23px; vertical-align:middle; ">S/A</caption>
- <button id="button6" class="btn2_letter6" style="left:1106px; top:54px; width:86px; height:19px; ">
- <caption>예약변경조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- var child = getChildWindow("SMMMO02500");
- if (child != null ) {
- child.javascript.window.close();
- }
- */
- //2011.09.15 SMAEA04400 => SMAEA00800 변경 통합예약 기준수행부서관리의 부서만 조회
- // 할 경우 SMAEA00800 = > SMAEA04400로 변경해야됨
- //open("SMAEA04400", "","","", "SMAEA04400", "/root/send/data/srchpid","/root/send/pid");
- open("SMAEA00800", "","","", "SMAEA00800", "/root/send/data/srchpid","/root/send/pid");
- // window.setInterval("getChildWindow('SMAEA00800').window.activate()", 1000);
- ]]>
- </script>
- </button>
- <line id="line14" class="line_3" style="x1:440px; y1:50px; x2:1189px; y2:50px; "/>
- <line id="line2" class="line_1" style="x1:2px; y1:427px; x2:260px; y2:427px; "/>
- <button id="button22" class="btn2_letter6" style="left:172px; top:407px; width:86px; height:19px; ">
- <caption>휴검관리내역</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- var child = getChildWindow("SMMMO02500");
- if (child != null ) {
- child.javascript.window.close();
- }
- */
- // open("SMAEA00700", "","","", "SMAEA00700", "","");
- //2011.06.17 금요일 인증평가도 끝나고. by kya
- model.setValue("/root/send1/suppdeptcd", model.getValue("/root/send/data/suppdeptcd"));
- model.setValue("/root/send1/excuroomcd", model.getValue("/root/send/data/excuroomcd"));
- model.setValue("/root/send1/instance1", model.getValue("/root/send/globalinstance/instance1"));
- open("SMAEA00700", "","","", "SMAEA00700", "/root/send1","/root/send1");
- ]]>
- </script>
- </button>
- <button id="btn_rsrv" class="btn4_letter2" style="left:919px; top:408px; 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;
- var schkdate = "";
- var schkdate1 = "";
- var syn = "N";
- 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;
- }
- schkdate = model.getValue("/root/main/exculist/mainordlist5["+i+"]/srchrsrvtm").substr(0, 8);
- for (var j = 1; j < grd_anoprcplist.rows; j ++){
- if (model.getValue("/root/main/exculist/subordlist2["+j+"]/rsrvflagyn") == "예약"){
- schkdate1 = model.getValue("/root/main/exculist/subordlist2["+j+"]/srchrsrvtm").substr(0, 8);
- if (schkdate == schkdate1){
- syn = "Y";
- }
- }
- }
- /*
- var stmpcd = model.getValue("/root/main/exculist/mainordlist5[" + i +"]/rsrvexmptmplcd");
- var k =0;
- for(var j=0; j < stmpcd.length; j++){
- //var ch = escape(str.charAt(i));
- var ch = stmpcd.charAt(j);
- if (ch == "^"){
- k = parseInt(k) + 1;
- }
- }
- if (k >0){
- messageBox(i + "번째 멀티예약예문이 존재합니다.", "E999", "");
- return;
- }
- */
- }
- }
-
- if (syn == "Y"){
- if ( messageBox("타검사에서 동일한 예약일자가 존재합니다. ", "Q002", "") != 6 ) {
- 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") == "미예약" || model.getValue("/root/main/exculist/mainordlist5["+i+"]/rsrvflagyn") == "예약취소" )) {
- /* 20090409, 장준원, 검사실별 검사자에 대해서 제한을 풀어놓는다.
- 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+"]/chk") == "true" && 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);
- }
- var sexcuroomcd = "";
- var sgubun = "";
- 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 != "") {
- sgubun = "Y";
- if (bool3.value == "Y"){
- if (sexcuroomcd == model.getValue("/root/main/exculist/mainordlist5["+i+"]/excuroomcd")){
- sgubun = "N";
- }else{
- sexcuroomcd = model.getValue("/root/main/exculist/mainordlist5["+i+"]/excuroomcd");
- sgubun = "Y";
- }
- }
- 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 rcptyn = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/rcptyn");
- var vacntno = "";
-
- // if (rcptyn == "미수납") {
- // vacntno = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/vacntno");
- // vacntno = vacntno + "\n\n 위 계좌번호로 예약 3일전 입금해주세요";
- // alert("vacntno : " + vacntno);
- // }
-
- 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);
- //원스탑 당일,다음날 시간 추가 20100626
- var onehhmm = rsrvdt.substr(8,4);
- var hh2 = "";
- var mm2 = "";
- if(model.getValue("/root/main/exculist/mainordlist5["+ i +"]/onestop") == "H"){
- var cnt = model.instances(0).selectNodes( "/root/init1/onestoptminfo/mintm/A901" ).length + 1;
- for(var j = 1; j < cnt ; j++){
- var cdid = model.getValue("/root/init1/onestoptminfo/mintm/A901["+j+"]/cdid");
- if(onehhmm == cdid){
- var hhmm = model.getValue("/root/init1/onestoptminfo/mintm/A901["+j+"]/cdnm");
- hh2 = hhmm.substr(0,2);
- mm2 = hhmm.substr(2,2);
- }
- }
- }
-
- if(hh > 12)
- {
- hh = "오후 "+(hh-12);
- }
- else{
- hh = "오전 "+hh;
- }
- var mm = rsrvdt.substr(10,2);
- var yr1 = rsrvdt.substr(0,4);
- var mn1 = rsrvdt.substr(4,2);
- var dy1 = rsrvdt.substr(6,2);
- var daytmp = ((rsrvdt.substr(0,8)).toDate()).getAddDate(1).getDateFormat();
- //alert(daytmp);
- var yr2 = daytmp.substr(0,4);
- var mn2 = daytmp.substr(4,2);
- var dy2 = daytmp.substr(6,2);
- //예약증 출력
- if(tmpldata != "" && sgubun == "Y") {
- //1. 예약예문내용을 뷰어로 보여주기
- rtfviewer.TextRtf = tmpldata;
- var ssleep = "";
- /*
- if ( model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GMA0001" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE761103G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE766002G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE766004G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE768002G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "RMAU00602G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "RNAU00702G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE764002G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE762101G") {
- var ssleep = "(수면)";
- }
- */
- if (model.getValue("/root/main/exculist/mainordlist5["+i+"]/slepyn") == "Y"){
- var ssleep = "(수면)";
- }
- roomcd = roomcd + ssleep;
- //roomcd = ssleep;
- //2. 바꾸기
-
- 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); //분
- rtfviewer.ReplaceRtfCode("age",model.getValue("/root/main/exculist/patinfolist/age")); //나이
- rtfviewer.ReplaceRtfCode("sex",model.getValue("/root/main/exculist/patinfolist/sex")); //성병
- rtfviewer.ReplaceRtfCode("orddeptcd",model.getValue("/root/main/exculist/mainordlist5["+i+"]/orddepthngnm"))
- rtfviewer.ReplaceRtfCode("orddrid",model.getValue("/root/main/exculist/mainordlist5["+i+"]/orddrnm"))
- rtfviewer.ReplaceRtfCode("excucdnm",model.getValue("/root/main/exculist/mainordlist5["+i+"]/excucdnm"))
- // rtfviewer.ReplaceRtfCode("vacntno",vacntno); // 가상계좌
- rtfviewer.ReplaceRtfCode("yr1",yr1); //년
- rtfviewer.ReplaceRtfCode("mn1",mn1); //월
- rtfviewer.ReplaceRtfCode("dy1",dy1); //일
- rtfviewer.ReplaceRtfCode("yr2",yr2); //년
- rtfviewer.ReplaceRtfCode("mn2",mn2); //월
- rtfviewer.ReplaceRtfCode("dy2",dy2); //일
- rtfviewer.ReplaceRtfCode("hh2",hh2); //시
- rtfviewer.ReplaceRtfCode("mm2",mm2); //분
- //3. 현재내용을 파일에 저장
- //rtfviewer.SaveRtfFile();
-
- //4. 출력
- rtfviewer.print();
-
- //5. 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- //fInitialize();
- }
- }
- }
-
- }
- 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>
- <button id="btn_cncl" class="btn4_letter2" style="left:975px; top:408px; 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");
-
- // if ( messageBox(rsrvdt.substr(0,4)+"-"+rsrvdt.substr(4,2)+"-"+rsrvdt.substr(6,2)+" "+rsrvdt.substr(8,2)+":"+rsrvdt.substr(10,2)+" 예약취소를","Q002")==6 ) {
- var nodeList = instance1.selectNodes("/root/main/exculist/mainordlist5[chk='true' ]");
- var rCSV = getNodeListCSV(nodeList);
-
- if ( rCSV == null ) {
- messageBox("처방내역을 ","C002");
- return "0";
- }
-
-
- var message = messageBox("해당 예약을","Q007");
- if ( message == 6 ) {
- exeRsrvTransaction("cncl");
-
- readfunc();
- //상태별 색상주기
- fSetGrdMainordlist();
-
- model.setFocus("ipt_pid");
- }
- // }
-
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1125px; top:408px; 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(model.getValue("/root/main/exculist/mainordlist5["+i+"]/rsrvflagyn") == "미예약") {
- messageBox("미예약 검사가 있습니다. 예약 후 재출력 하십시요","E999");
- return;
- }
- }
-
- // if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/rsrvflagyn") == "미예약") {
- // messageBox("미예약 검사가 있습니다. 예약 후 재출력 하십시요","E999");
- // return;
- // }
-
- }
- 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 rcptyn = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/rcptyn");
- var vacntno = "";
-
- // if (rcptyn == "미수납") {
- // vacntno = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/vacntno");
- // vacntno = vacntno + "/n\n 위 계좌번호로 예약 3일전 입금해주세요";
- // alert("vacntno : " + vacntno);
- // }
-
- 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);
- //원스탑 당일,다음날 시간 추가 20100626
- var onestop = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/onestop");
- var onehhmm = rsrvdt.substr(8,4);
- var hh2 = "";
- var mm2 = "";
- if(onestop == "H"){
- var cnt = model.instances(0).selectNodes( "/root/init1/onestoptminfo/mintm/A901" ).length + 1;
- for(var j = 1; j < cnt ; j++){
- var cdid = model.getValue("/root/init1/onestoptminfo/mintm/A901["+j+"]/cdid");
- if(onehhmm == cdid){
- var hhmm = model.getValue("/root/init1/onestoptminfo/mintm/A901["+j+"]/cdnm");
- hh2 = hhmm.substr(0,2);
- mm2 = hhmm.substr(2,2);
- }
- }
- }
-
- if(hh > 12)
- {
- hh = "오후 "+(hh-12);
- }
- else{
- hh = "오전 "+hh;
- }
- var mm = rsrvdt.substr(10,2);
- var yr1 = rsrvdt.substr(0,4);
- var mn1 = rsrvdt.substr(4,2);
- var dy1 = rsrvdt.substr(6,2);
- var daytmp = ((rsrvdt.substr(0,8)).toDate()).getAddDate(1).getDateFormat();
- //alert(daytmp);
- var yr2 = daytmp.substr(0,4);
- var mn2 = daytmp.substr(4,2);
- var dy2 = daytmp.substr(6,2);
- if(tmpldata != "") {
- //1. 예약예문내용을 뷰어로 보여주기
- // alert(tmpldata);
- rtfviewer.TextRtf = tmpldata;
-
- //2. 바꾸기
- var ssleep = "";
- /*
- if ( model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GMA0001" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE761103G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE766002G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE766004G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE768002G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "RMAU00602G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "RNAU00702G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE764002G" ||
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE762101G") {
- 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); //분
- rtfviewer.ReplaceRtfCode("age",model.getValue("/root/main/exculist/patinfolist/age")); //나이
- rtfviewer.ReplaceRtfCode("sex",model.getValue("/root/main/exculist/patinfolist/sex")); //성병
- rtfviewer.ReplaceRtfCode("orddeptcd",model.getValue("/root/main/exculist/mainordlist5["+i+"]/orddepthngnm"))
- rtfviewer.ReplaceRtfCode("orddrid",model.getValue("/root/main/exculist/mainordlist5["+i+"]/orddrnm"))
- rtfviewer.ReplaceRtfCode("excucdnm",model.getValue("/root/main/exculist/mainordlist5["+i+"]/excucdnm"))
- // rtfviewer.ReplaceRtfCode("vacntno",vacntno); // 가상계좌
- rtfviewer.ReplaceRtfCode("yr1",yr1); //년
- rtfviewer.ReplaceRtfCode("mn1",mn1); //월
- rtfviewer.ReplaceRtfCode("dy1",dy1); //일
- rtfviewer.ReplaceRtfCode("yr2",yr2); //년
- rtfviewer.ReplaceRtfCode("mn2",mn2); //월
- rtfviewer.ReplaceRtfCode("dy2",dy2); //일
- rtfviewer.ReplaceRtfCode("hh2",hh2); //시
- rtfviewer.ReplaceRtfCode("mm2",mm2); //분
- //3. 현재내용을 파일에 저장
- //rtfviewer.SaveRtfFile();
-
- //4. 출력
- rtfviewer.print();
-
- //5. 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- //fInitialize();
-
- }
- else {
- //원스탑일경우 한장만 출력
- if(onestop == "H"){
-
- }else{
- messageBox(i + "번째의 등록된 예약예문이 ", "I004");
- }
- }
- }
- }
- if (max > 0){
- rtfviewer.CloseProgressBar();
- }
- model.setFocus("ipt_pid");
- ]]>
- </script>
- </button>
- <caption id="caption10" class="tit_2" style="left:806px; top:416px; width:85px; height:13px; ">예약내역</caption>
- <line id="line5" class="line_1" style="x1:806px; y1:431px; x2:1191px; y2:431px; "/>
- <line id="line6" class="line_1" style="x1:657px; y1:431px; x2:799px; y2:431px; "/>
- <caption id="caption15" class="tit_2" style="left:659px; top:416px; width:85px; height:13px; ">예약시간</caption>
- <datagrid id="datagrid2" nodeset="/root/main/exculist/subordlist3/rows" autoresize="true" caption="환자번호^일자^Comment^caption1^작성자^작성일시" colsep="^" colwidth="100, 77, 162, 100, 52, 120" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:700px; width:258px; height:79px; ">
- <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"/>
- <col ref="upnm"/>
- <col ref="updtm" format="yyyy/mm/dd hh:mm" style="text-align:center; "/>
- <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>
- <datagrid id="datagrid3" nodeset="/root/init/calenlist/calendinfo" visibility="hidden" caption="caption1^caption2" colsep="^" colwidth="100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:940px; top:620px; width:220px; height:150px; ">
- <col ref="basedd"/>
- <col ref="dutflag"/>
- </datagrid>
- <caption id="caption3" class="search_name" visibility="hidden" style="left:645px; top:56px; width:65px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">구분 :</caption>
- <caption id="caption18" class="search_name" visibility="hidden" style="left:804px; top:55px; width:91px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">적용일자 :</caption>
- <select1 id="cmb_excuroomgrp" ref="/root/send/data/cmb_info1/initexcuroomgrp/excuroomgrpcdid" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:705px; top:54px; width:95px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info1/initexcuroomgrp">
- <label ref="excuroomgrpcdnm"/>
- <value ref="excuroomgrpcdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption23" class="tit_2" visibility="hidden" style="left:573px; top:59px; width:66px; height:13px; ">미예약</caption>
- <datagrid id="grd_mainordlist7" nodeset="/root/main/ordlist1/mainordlist" visibility="hidden" caption="No^등록번호^환자명^구분^병실^과^처방일련번호^진료과코드^예약일자^execprcpstatcd^prcpdd^sna^roomcd^orddrid^rcptyn" colsep="^" colwidth="37, 74, 67, 81, 92, 244, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:570px; top:80px; width:625px; height:115px; ">
- <col ref="no"/>
- <col ref="pid"/>
- <col ref="patnm"/>
- <col disabled="true" ref="prcpgenrflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/initprcpgenrflagcd/M0010">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="roomcd"/>
- <col ref="depthngnm"/>
- <col ref="execprcpuniqno"/>
- <col ref="orddeptcd"/>
- <col ref="rsrvdd"/>
- <col ref="execprcpstatcd"/>
- <col ref="prcpdd"/>
- <col ref="sna"/>
- <col ref="roomcd"/>
- <col ref="orddrid"/>
- <col ref="rcptyn"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( isDataCell() ){
- model.setValue("/root/send/data/srchpid", model.getValue("/root/main/ordlist1/mainordlist[" + grd_mainordlist7.row + "]/pid"));
- switch1.attribute("width") = 1192;
- btn_sea.dispatch("DOMActivate");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- /*
- if ( (grd_mainordlist1.row >= grd_mainordlist1.fixedRows) && (grd_mainordlist1.isCell(event.target))) {
- fGetExamCurePrcpList(grd_mainordlist1);
- }
- */
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_mainordlist7.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="button23" class="btn1_letter2" navindex="3" visibility="hidden" style="left:980px; top:53px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRAEA02013");
- ]]>
- </script>
- </button>
- <button id="button24" class="icon_bottom" style="left:1045px; top:54px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_mainordlist7.attribute("height") = 115;
- grd_mainordlist7.attribute("height") = 115;
- switch1.attribute("width") = 1192;
- button24.visible = false;
- button25.visible = true;
- ]]>
- </script>
- </button>
- <button id="button25" class="icon_top" style="left:1045px; top:54px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_mainordlist7.attribute("height") = 320;
- grd_mainordlist7.attribute("height") = 320;
- switch1.attribute("width") = 550;
- button25.visible = false;
- button24.visible = true;
- ]]>
- </script>
- </button>
- <line id="line8" class="line_1" style="x1:805px; y1:235px; x2:1195px; y2:235px; "/>
- <caption id="caption37" class="tit_2" style="left:805px; top:220px; width:85px; height:14px; ">제어 내역</caption>
- <datagrid id="grd_ctrl" nodeset="/root/ctrl/main/ctrllist/ctrlinfo" autoresize="true" backcoloralternate="transparent" caption="예약처^수행부서^수행부서^검사실^검사실^검사코드^검사명^순번^제어^적용^제어 내용" colsep="^" colwidth="0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350" extendlastcol="scroll" focuscolor="transparent" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:805px; top:240px; width:390px; height:160px; ">
- <col ref="rsrvplce"/>
- <col ref="suppdeptcd"/>
- <col ref="suppdeptnm"/>
- <col ref="excuroomcd"/>
- <col ref="excuroomnm"/>
- <col ref="excucd"/>
- <col ref="excunm"/>
- <col ref="ctrlseq" style="text-align:center; "/>
- <col ref="ctrlflag" style="text-align:center; "/>
- <col ref="appflag" style="text-align:center; "/>
- <col ref="ctrldesc" style="text-align:left; padding-left:2; padding-right:2; "/>
- </datagrid>
- <textarea id="tar_prcpremfact" ref="/root/main/comment1/prcpcmt" disabled="true" style="left:0px; top:629px; width:258px; height:43px; font-size:10pt; font-weight:bold; "/>
- <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:0px; top:553px; width:258px; height:49px; ">
- <col ref="memodt"/>
- <col disabled="true" ref="memorem" type="input" style="left:0px; top:0px; width:54px; height:23px; "/>
- </datagrid>
- <shape id="rectangle3" appearance="rectangle" style="left:171px; top:199px; width:20px; height:15px; background-color:#ffff00; "/>
- <shape id="rectangle4" appearance="rectangle" style="left:212px; top:199px; width:20px; height:15px; background-color:#ccffcc; "/>
- <shape id="rectangle5" appearance="rectangle" style="left:290px; top:199px; width:20px; height:15px; background-color:#FF9A00; "/>
- <caption id="caption26" style="left:311px; top:199px; width:41px; height:15px; ">미수납</caption>
- <caption id="caption27" style="left:196px; top:199px; width:18px; height:15px; font-weight:bold; ">V</caption>
- <caption id="caption28" style="left:235px; top:199px; width:50px; height:15px; ">오늘결과</caption>
- <bool id="bool2" visibility="hidden" checkvalue="Y,N" ref="/root/send/data/timeyn" style="left:456px; top:196px; width:20px; height:19px; "/>
- <caption id="caption30" visibility="hidden" style="left:474px; top:197px; width:54px; height:20px; ">시간통제</caption>
- <select1 id="radio1" ref="/root/send/data/ampmyn" appearance="full" cols="3" overflow="visible" style="left:510px; top:410px; width:135px; height:17px; border-style:none; ">
- <choices>
- <item>
- <label>오전</label>
- <value>1</value>
- </item>
- <item>
- <label>오후</label>
- <value>2</value>
- </item>
- <item>
- <label>전체</label>
- <value>9</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- grd_calendar.dispatch("onclick");
- ]]>
- </script>
- </select1>
- <select1 id="combo1" ref="/root/send1/suppdeptcd" class="combo_search" visibility="visible" appearance="minimal" style="left:265px; top:760px; width:155px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info3/suppdeptlist/suppdept">
- <label ref="suppdeptnm"/>
- <value ref="suppdeptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send1/instance1", model.getValue("/root/send1/suppdeptcd"));
- model.setValue("/root/send1/excuroomcd", "");
- submit("TRAEA00902");
-
- ]]>
- </script>
- </select1>
- <select1 id="cmb_excuroom" ref="/root/send1/excuroomcd" class="combo_search" visibility="visible" appearance="minimal" style="left:430px; top:760px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info3/excuroomcdlist/excuroom">
- <label ref="basecdflagdesc"/>
- <value ref="basecd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /* 2013.02.06 by kya, 변경해도 영향을 주지않도록
- model.removeNodeset("/root/main/rsrvposstmlist/rsrvposstm");
- model.removeNodeset("/root/main/rsrvposstmlist/rsrvlist");
- model.setValue("/root/hidden/orddeptcheck","check");
- model.setValue("/root/send/data/suppdeptcd",model.getValue("/root/send1/suppdeptcd"));
- model.setValue("/root/send/data/excuroomcd",model.getValue("/root/send1/excuroomcd"));
- model.setValue("/root/send/data/prcpgenrflag", "O");
- initCalendar();
- model.setValue("/root/send1/gb", "2");
- */
- ]]>
- </script>
- </select1>
- <bool id="bool3" checkvalue="Y,N" ref="/root/send/data/multiyn" style="left:595px; top:196px; width:20px; height:20px; "/>
- <caption id="caption31" style="left:613px; top:197px; width:80px; height:20px; ">동일예문1장</caption>
- <button id="button28" class="btn2_letter4" style="left:876px; top:196px; width:64px; height:19px; ">
- <caption>멀티예약</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode("/root/popdata");
-
- var kcnt = 0;
-
-
- var excuroomcd = "";
- var excuroomnm = "";
- var excuroom = "";
- for (var i = 1; i < grd_mainordlist5.rows; i++){
- var schk = model.getValue("/root/main/exculist/mainordlist5[" + i + "]/chk");
- if (schk == "true") {
-
- var tempArray;
- var chkflag = "N";
-
- model.makeNode("/root/popdata/poplist");
- kcnt = parseInt(kcnt) + 1;
-
- excuroomcd = model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroomcd");
- excuroomnm = model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroomnm");
- excuroom = model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroom");
-
- model.makeValue("/root/popdata/poplist[" + kcnt + "]/rowcnt", i);
- model.makeValue("/root/popdata/poplist[" + kcnt + "]/prcpnm", model.getValue("/root/main/exculist/mainordlist5[" + i + "]/prcpnm"));
- model.makeValue("/root/popdata/poplist[" + kcnt + "]/suppdeptcd", model.getValue("/root/main/exculist/mainordlist5[" + i + "]/suppdeptcd"));
- model.makeValue("/root/popdata/poplist[" + kcnt + "]/examroomnm", model.getValue("/root/main/exculist/mainordlist5[" + i + "]/examroomnm"));
-
- // ##############################################################
- // 핵의학과 예약의 경우 기본 검사실과 예약을 가능한 수행부서가 다르기 때문에 일반 검사 예약과는 다르게 처리해야 하는 예외 사항이 발생함
- // 이에 따라 기본 검사실과 예약 가능한 수행부서가 다를 경우 예약 가능한 수행부서로 멀티 예약 가능하도록 기능 추가 [2010.05.19 김건기]
- tempArray = excuroomnm.split("^");
- for(var idx=0; idx < tempArray.length-1; idx++) {
- if (tempArray[idx] == excuroomcd && chkflag == "N") {
- chkflag = "Y";
- }
- }
- if (chkflag == "N") {
- excuroomcd = tempArray[0];
- }
- // ##############################################################
-
- model.makeValue("/root/popdata/poplist[" + kcnt + "]/excuroomcd", excuroomcd);
- }
- }
- if (kcnt > 5){
- messageBox("5개를 초과해서 처리할 수 없습니다.", "E999", "");
- return;
- }
- if (kcnt > 0){
- modal("SPAEA05500", "", "20", "100", "SPAEA05500","/root/popdata","/root/popdata");
- }
- ]]>
- </script>
- </button>
- <button id="button34" class="btn4_letter5" style="left:1032px; top:408px; width:92px; height:22px; ">
- <caption>예약일정표</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //********************************
- // ******예약증 일정표 출력 20100928******
- //********************************
- //if(model.getValue("/root/send/data/yesche") == "Y"){ //20100928 예약일정표 출력 - 박재영
- if (submit("TRAEA00920")){
- //exeReportPreview("RPAEA00920","XMLSTR");
- if( model.getValue("/root/main/printinfo/printlist/printdata/pid") != null ) {
-
- model.makeValue("/root/main/printinfo/printlist/instcd", getUserInfo("dutplceinstcd") );
- //2015/08/12 출력물 수정(이정택)
- var cnt = getNodesetCount("/root/main/printinfo/printlist/printdata");
- for(var i=1; i<=cnt; i++){
- model.makeValue("/root/main/printinfo/printlist/printdata[" + i + "]/dutplcecd", getUserInfo("dutplcecd"));
- }
- //2015/08/12 출력물 수정(이정택)
-
- exeReportPreview("RPAEA00920", "XMLSTR", "", "", "false","","","","","false");
- model.removenode("/root/main/printinfo/printlist/instcd");
- } else {
- messageBox("예약", "E013");
- }
- }
- //}
- ]]>
- </script>
- </button>
- <button id="btn_patinfo" class="btn2_letter7" style="left:689px; top:196px; width:97px; height:19px; ">
- <caption>개인별처방이력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMAEA00400", "","","", "SMAEA00400", "/root/send/data/srchpid","/root/send/pid");
- ]]>
- </script>
- </button>
- <button id="button63" class="icon_list" style="left:1178px; top:1px; width:14px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //2011.05.12 메모기능 추가 - 박재영
- model.setValue("/root/send3/instance1",model.getValue("root/send/rsrvsuppdeptcd"));
- if(submit("TRAEB00501")){
- grp_memo.visible = true;
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <caption id="caption34" class="cell_1" style="left:690px; top:25px; width:35px; height:23px; vertical-align:middle; ">SMS</caption>
- <output id="opt_smsflag" ref="/root/main/exculist/patinfolist/smsaprvyn" class="output_fix" disabled="true" style="left:727px; top:27px; width:25px; height:19px; text-align:center; "/>
- <output id="output2" ref="/root/send/data/serdiagtodd" style="left:105px; top:175px; width:130px; height:19px; font-weight:bold; color:#ff0000; "/>
- <caption id="caption35" class="tit_2" style="left:5px; top:180px; width:95px; height:14px; color:#003366; ">중증만기일자</caption>
- <button id="btn_temp" class="btn2_letter4" disabled="true" style="left:585px; top:760px; width:64px; height:19px; ">
- <caption>임시예약</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- submit("TRAEA01132");
-
- var excuroomgrp = model.getValue("/root/hidden/excuroomgrplist/excuroomgrpcdlist/basecdcnts");
-
- if (excuroomgrp == "") {
- messageBox("검사실을 ", "C002");
- return;
- }
-
- setParameter("excuroomgrp", excuroomgrp );
- setParameter("menuparam", "R");
- setParameter("suppdeptcd", model.getValue("/root/send1/suppdeptcd"));
-
- modal("SPAEA02201", "", "200", "200", "popup", "", "");
- model.setValue("/root/send1/suppdeptcd","");
- model.setValue("/root/send1/excuroomcd","");
- model.refresh();
- ]]>
- </script>
- </button>
- <group id="group4" visibility="hidden" style="left:80px; top:435px; width:365px; height:235px; ">
- <button id="button30" class="btn4_letter2" style="left:295px; top:205px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group4.visible = false;
- ]]>
- </script>
- </button>
- <caption id="caption32" class="tit_2" style="left:10px; top:13px; width:173px; height:14px; ">환자 Comment</caption>
- <shape id="rectangle7" appearance="rectangle" style="left:2px; top:2px; width:360px; height:232px; "/>
- <textarea id="textarea1" ref="/root/init1/patcmt" style="left:5px; top:30px; width:350px; height:170px; "/>
- </group>
- <group id="group3" visibility="hidden" style="left:455px; top:485px; width:485px; height:235px; ">
- <button id="button26" class="btn4_letter2" style="left:406px; top:208px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group3.visible = false;
- ]]>
- </script>
- </button>
- <caption id="caption33" class="tit_2" style="left:11px; top:8px; width:113px; height:13px; ">골밀도 검사현황</caption>
- <shape id="rectangle8" appearance="rectangle" style="left:2px; top:3px; width:480px; height:230px; font-weight:bold; "/>
- <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>
- </group>
- <caption id="caption36" class="cell_1" style="left:445px; top:25px; width:31px; height:23px; font-weight:bold; text-align:center; vertical-align:middle; background-color:#ccecff; ">VIP</caption>
- <caption id="cap_privacy" visibility="hidden" style="left:120px; top:55px; width:80px; height:20px; font-weight:bold; color:#000000; text-align:center; background-color:#ff0000; border-color:#000000; border-style:solid; ">사생활보호</caption>
- <button id="button4" class="icon_top" visibility="hidden" style="left:1160px; top:165px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // switch1.attribute("height") = 132;
- // grd_mainordlist5.attribute("height") = 123;
- // grd_anoprcplist.attribute("height") = 123;
- 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;
-
- rectangle3.visible = false;
- rectangle4.visible = false;
- rectangle5.visible = false;
- caption26.visible = false;
- caption27.visible = false;
- caption28.visible = false;
- btn_patinfo.visible = false;
- bool3.visible = false;
- caption31.visible = false;
- button28.visible = false;
- ]]>
- </script>
- </button>
- <button id="button3" class="icon_bottom" visibility="hidden" style="left:1125px; top:165px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // switch1.attribute("height") = 501;
- // grd_mainordlist5.attribute("height") = 490;
- // grd_anoprcplist.attribute("height") = 490;
- 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;
-
- rectangle3.visible = true;
- rectangle4.visible = true;
- rectangle5.visible = true;
- caption26.visible = true;
- caption27.visible = true;
- caption28.visible = true;
- btn_patinfo.visible = true;
-
- bool3.visible = true;
- caption31.visible = true;
- button28.visible = true;
- ]]>
- </script>
- </button>
- <button id="btn_ctrlshow" class="btn2_letter4" style="left:1131px; top:196px; width:64px; height:19px; ">
- <caption>제어내역</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (switch1.attribute("width") == "802px") {
- switch1.attribute("width") = "1195px"
-
- grd_mainordlist5.attribute("width") = grd_anoprcplist.attribute("width") = "1193px";
- line16.attribute("x2") = line17.attribute("x2") = "1193px";
-
- } else {
- grd_mainordlist5.attribute("width") = grd_anoprcplist.attribute("width") = "800px";
- line16.attribute("x2") = line17.attribute("x2") = "800px";
-
- switch1.attribute("width") = "802px"
- }
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:0px; top:216px; width:802px; height:189px; ">
- <case id="case1" selected="true">
- <line id="line16" class="line_1" style="x1:0px; y1:1px; x2:800px; y2:1px; "/>
- <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[
-
- // var execprcpuniqno = model.getValue("/root/main/exculist/mainordlist5[" + ( grd_mainordlist5.row - grd_mainordlist5.fixedRows + 1 ) + "]/rsrvflagyn");
- /*
- var nodeList = instance1.selectNodes("/root/main/exculist/mainordlist5[rsrvflagyn='미예약']");
- var node;
- while( node = nodeList.nextNode() ) {
- node.check.text = "true";
- }
- */
- 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[
-
- // var execprcpuniqno = model.getValue("/root/main/exculist/mainordlist5[" + ( grd_mainordlist5.row - grd_mainordlist5.fixedRows + 1 ) + "]/execprcpuniqno");
- // var nodeList = instance1.selectNodes("/root/main/exculist/mainordlist5[execprcpuniqno!='" + execprcpuniqno + "']");
- /*
- var nodeList = instance1.selectNodes("/root/main/exculist/mainordlist5[chk='true']");
- var node;
- while( node = nodeList.nextNode() ) {
- node.check.text = "false";
- }
- */
- 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>
- <datagrid id="grd_mainordlist5" nodeset="/root/main/exculist/mainordlist5" caption="^구분^수납^전화^처방일자^처방일자^진료과^처방의^지정의^I/O^급/비^검사명^수행부서^검사실^검사실^희망일자^예약시간^소요^병실^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^rgstrid^orddeptcd^rsrvtmcntlyn^rsrvpsnnocntlyn^excucdrem^prcpgenrflag^pexcuroomnm^prcpexecdeptcd^eqmtifyn^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^rcptrsrvyn^prcptdayrcptyn^calcyn^gunjingubun" colsep="^" colwidth="26, 60, 47, 30, 68, 54, 70, 50, 50, 25, 54, 330, 0, 120, 100, 0, 120, 33, 58, 524, 88, 59, 100, 48, 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, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 100" ellipsis="true" explorerbar="sortshow" frozencols="7" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:6px; width:800px; height:179px; ">
- <col checkvalue="true,false" ref="chk" type="checkbox"/>
- <col ref="rsrvflagyn" style="font-weight:bold; text-align:center; "/>
- <col ref="rcptyn" style="font-weight:bold; text-align:center; "/>
- <col checkvalue="Y,N" ref="telrsrvyn" type="checkbox" visibility="hidden"/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rgsttm" format="hh:nn:ss"/>
- <col ref="orddepthngnm" style="text-align:center; "/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="specdrnm" style="text-align:center; "/>
- <col ref="genrflag" style="text-align:center; "/>
- <col ref="payflagnm" style="text-align:center; "/>
- <col disabled="true" ref="prcpnm"/>
- <col ref="suppdeptnm" style="text-align:center; "/>
- <col ref="examroomnm" style="font-weight:bold; color:#6600cc; text-align:center; "/>
- <col ref="excuroom" type="combo" visibility="hidden">
- <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" style="text-align:center; "/>
- <col ref="srchrsrvtm" type="input" format="yyyy-mm-dd hh:nn" style="font-weight:bold; color:#ff0000; text-align:center; "/>
- <col ref="excutm" style="text-align:center; "/>
- <col ref="roomcd" visibility="hidden"/>
- <col ref="rsrvrem" type="input"/>
- <col ref="calcamt" style="text-align:right; "/>
- <col ref="endtime" format="hh:nn" style="text-align:center; "/>
- <col ref="calcscorcd" style="text-align:center; "/>
- <col ref="lastupdtnm" style="text-align:right; "/>
- <col ref="excuroomnm" visibility="hidden"/>
- <col ref="genrflag" visibility="hidden" style="font-weight:bold; "/>
- <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="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"/>
- <col ref="aftrcptinfo" visibility="hidden"/>
- <col ref="rsrvtmplcd" visibility="hidden"/>
- <col ref="rsrvmultitmplcd" visibility="hidden"/>
- <col ref="emryn" visibility="hidden"/>
- <col ref="onestop" visibility="hidden"/>
- <col ref="specdrid" visibility="hidden"/>
- <col ref="dschdd" visibility="hidden"/>
- <col ref="basecdcnts" visibility="hidden"/>
- <col ref="rcptrsrvyn" visibility="hidden"/>
- <col ref="prcptdayrcptyn" visibility="hidden"/>
- <col ref="calcyn" visibility="hidden"/>
- <col ref="gunjingubun" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- //스크롤 조작시 온클릭 이벤트 안타도록
- if( isDataCell() ){
- //2015/07/10 이정택 추가
- if(grd_mainordlist5.row>=grd_mainordlist5.fixedRows){
- var prcpgenrflag = grd_mainordlist5.valueMatrix(grd_mainordlist5.row, grd_mainordlist5.colRef("prcpgenrflag"));
- var gunjingubun = grd_mainordlist5.valueMatrix(grd_mainordlist5.row, grd_mainordlist5.colRef("gunjingubun"));
- var rcptyn = grd_mainordlist5.valueMatrix(grd_mainordlist5.row, grd_mainordlist5.colRef("rcptyn"));
- if(prcpgenrflag=="S" && rcptyn=="미수납" && gunjingubun=="G"){
- messageBox("통합건진에서 처방된 검사는 수납 후 예약하셔야 합니다.", "E");
- return;
- }
- }
- //2015/07/10 이정택 추가
-
- fGetRsrvCtrlList(grd_mainordlist5);
-
- // Grid Colidx 정리함. 장준원 20080603
- // 기존 grd_mainordlist5.col != 0 ==> grd_mainordlist5.colAttribute(colidx, "ref") == "chk" 로 변경처리함.
- var colidx = grd_mainordlist5.col;
- /*
- var rownum = grd_mainordlist5.row;
- if(grd_mainordlist5.valueMatrix(rownum, grd_mainordlist5.colRef("calcyn"))=="N" &&
- grd_mainordlist5.valueMatrix(rownum, grd_mainordlist5.colRef("genrflag"))!="S" &&
- grd_mainordlist5.valueMatrix(rownum, grd_mainordlist5.colRef("aftrcptinfo"))!="V"){
- messageBox("수납 후 예약하도록 안내 부탁드립니다.", "E");
- grd_mainordlist5.valueMatrix(rownum, grd_mainordlist5.colRef("chk"))="false";
- grd_mainordlist5.refresh();
- return;
- }
- */
-
- //20100930 버튼으로 교체(매번메세지가나와서 불편) - 박재영
- //if (model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/excucdrem") != ""){
- // //alert(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" ) {
- //if(grd_mainordlist5.col != 0 && grd_mainordlist5.col != 10 && grd_mainordlist5.col != 13 ) {
- // 예약 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");
- var sonestop = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/onestop");
- var sprcpdd = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/prcpdd");
- if (schk == "true") {
- //20100527 선택한 row가 원스탑이면 같은 prcpdd인 오더는 같이 True or false가 된다.(묶음)
- if(sonestop == "H"){
- for (var i = 1; i < grd_mainordlist5.rows ; i++) {
- var oprcpdd = model.getValue("/root/main/exculist/mainordlist5["+i+"]/prcpdd");
- var oonestop = model.getValue("/root/main/exculist/mainordlist5["+i+"]/onestop");
- //if(sprcpdd == oprcpdd && sonestop == oonestop){
- model.setValue("/root/main/exculist/mainordlist5["+i+"]/chk", "false");
- //}
- }
- }else{
- //20100527 선택한 row가 원스탑이 아니고 원스탑오더가 있으면 원스탑은 False가 된다.
- for (var i = 1; i < grd_mainordlist5.rows ; i++) {
- var oonestop = model.getValue("/root/main/exculist/mainordlist5["+i+"]/onestop");
- if(oonestop == "H"){
- model.setValue("/root/main/exculist/mainordlist5["+i+"]/chk", "false");
- }
- }
- //2010.12.08 체크된 처방은 체크를 풀지않는다. 직접chk체크해서 체크해제(주석처리) - 박재영
- //model.setValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/chk", "false");
- }
- } else {
- //20100527 선택한 row가 원스탑이면 같은 prcpdd인 오더는 같이 True or false가 된다.(묶음)
- if(sonestop == "H"){
- //20100527 등록된 원스탑오더와 환자의 오더가 다르면 원스탑예약못하게 함.
- var cnt = model.instances(0).selectNodes( "/root/init1/onestopordinfo/codelist/item" ).length;
- var ordcnt = 0;
- for(var j = 1; j < cnt +1 ; j++){
- var cdid = model.getValue("/root/init1/onestopordinfo/codelist/item["+j+"]/cdid");
- for (var i = 1; i < grd_mainordlist5.rows ; i++) {
- var oprcpdd = model.getValue("/root/main/exculist/mainordlist5["+i+"]/prcpdd");
- var oonestop = model.getValue("/root/main/exculist/mainordlist5["+i+"]/onestop");
- var ocalcscorcd = model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd ");
- if(sprcpdd == oprcpdd && sonestop == oonestop && cdid == ocalcscorcd){
- model.setValue("/root/main/exculist/mainordlist5["+i+"]/chk", "true");
- ordcnt ++;
- }else if(oonestop != "H"){
- model.setValue("/root/main/exculist/mainordlist5["+i+"]/chk", "false");
- }
-
- }
- }
- //20100527 등록된 원스탑오더와 환자의 오더가 다르면 원스탑예약못하게 함.
- if(ordcnt != cnt ){
- messageBox(cdid + " 처방코드가 없어 예약 ", "E001");
- for (var k = 1; k < grd_mainordlist5.rows ; k++) {
- model.setValue("/root/main/exculist/mainordlist5["+k+"]/chk", "false");
- }
- return;
- }
- }else{
- //20100527 선택한 row가 원스탑이 아니고 원스탑오더가 있으면 원스탑은 False가 된다.
- for (var i = 1; i < grd_mainordlist5.rows ; i++) {
- var oonestop = model.getValue("/root/main/exculist/mainordlist5["+i+"]/onestop");
- if(oonestop == "H"){
- model.setValue("/root/main/exculist/mainordlist5["+i+"]/chk", "false");
- }
- }
- model.setValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/chk", "true");
- }
- }
-
- /***********start ****/
- //앞처방과 비교하여 check 없애기
- //20130320 권영애
-
- var c_row = grd_mainordlist5.row;
- var c_excuroomnm = model.getValue("/root/main/exculist/mainordlist5["+c_row+"]/examroomnm");
- var b_row = model.getValue("/root/hidden/beforeorder/brow");
- var b_excuroomnm = model.getValue("/root/hidden/beforeorder/excuroomnm");
-
- //처음
- if (b_row =="") {
- model.setValue("/root/hidden/beforeorder/brow", c_row);
- model.setValue("/root/hidden/beforeorder/excuroomnm", c_excuroomnm );
- }else{
- if (c_excuroomnm != b_excuroomnm ) {
- //alert("b_row = " + b_row);
- model.setValue("/root/hidden/beforeorder/brow", c_row);
- model.setValue("/root/hidden/beforeorder/excuroomnm", c_excuroomnm );
- model.setValue("/root/main/exculist/mainordlist5[" + b_row + "]/chk", "false");
- }
- }
- /***end ******************/
-
- grd_mainordlist5.refresh();
- // 달력에 처음 로딩시 color값 안들어 가기 위해
- model.setValue("/root/hidden/grdcellcolor/color","");
- //tar_prcpremfact.value = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/prcpdelivefact");
- model.setValue("/root/main/comment1/prcpcmt", model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/prcpdelivefact"));
- // model.setValue("/root/main/comment1/prcpcmt",model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/prcpdelivefact"));
- model.setValue("/root/send/data/suppdeptcd",model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/suppdeptcd"));
- model.removeNodeset("/root/main/orddeptinfo/orddeptlist");
- model.removeNodeset("/root/main/rsrvposstmlist/deptmemo");
- grd_orddept.refresh();
-
- model.removeNodeset("/root/main/rsrvposstmlist/rsrvposstm");
- model.removeNodeset("/root/main/rsrvposstmlist/rsrvlist");
- grd_rsrvposstm.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"));
-
- /*
- var str = excuroomnm.split("^");
- var row = 1;
- for(var i =0 ; i < str.length ; i++ ) {
- grd_orddept.addRow(false);
- var aa = str[i];
- model.setValue("/root/main/orddeptinfo/orddeptlist["+row+"]/orddeptcd",aa.getTrim());
- row++ ;
- }
- grd_orddept.refresh();
- if(model.getValue("/root/main/orddeptinfo/orddeptlist["+grd_orddept.bottomRow+"]/orddeptcd") == "")
- {
- grd_orddept.deleteItem(grd_orddept.bottomRow);
- }
-
- model.setValue("/root/send/data/excuroomcd",str[0]);
- */
- 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"){
- // 20090407, 장준원, 처방내역선택시 기본수행부서를 보이게금 한다.
- //20100527 원스탑환자이면 A902,A903의값을 excuroomcd,excuroomnm에 넣는다.
- //수행부서가 원스탑검사실만 조회된다.
- if(sonestop == "H"){
- var gexcuroomcd = model.getValue("/root/init1/onestopsuppdeptcd/deptinfo/A902["+2+"]/cdid");
- var gexcuroomnm = model.getValue("/root/init1/onestopexcuroom/roominfo/A903["+2+"]/cdid");
- model.setValue("/root/send/globalinstance/instance1", gexcuroomcd);
- model.setValue("/root/send/data/excuroomcd", gexcuroomcd);
- model.setValue("/root/send/data/excuroomnm", gexcuroomnm);
- }else{
- model.setValue("/root/send/globalinstance/instance1", model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/suppdeptcd"));
- }
- submit("TRAEA02017", false);
-
- submit("TRAEA02016");
- model.makeNode("/root/main/orddeptinfo/orddeptlist");
- copyNodesetType("/root/main/orddeptinfo/orddeptlist", "/root/init/curerprescondlist2/orddeptlist", "replace");
- grd_orddept.refresh();
- /*
- return;
- }else{
- initCalendar();
- setCurrentDate();
- model.makeNode("/root/main/orddeptinfo/orddeptlist");
- copyNodesetType("/root/main/orddeptinfo/orddeptlist", "/root/init/curerprescondlist/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.makeValue("/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();
- }
- //처방선택시 자동으로 달력에서 오늘날짜 onclick 이벤트 처리
- //getRsrvPossTm(grd_calendar);
-
- }
-
- 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("PET-CT실 예약인 경우 추가 정보는","I003");
- 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") {
- // if(grd_mainordlist5.col == "10") {
-
- 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 ;
- }
- //수기로 입력시 미래일자 체크
- /*
- if( srchrsrvtm.substr(0,8) != rsrvtm.substr(0,8) ) {
- messageBox("수정일자와 선택일자가", "E004");
- 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);
- // alert("후 : " + dateObj.getHours()+ "시" + dateObj.getMinutes() + "분");
- // alert("후 : " + dateObj2.getHours()+ "시" + dateObj2.getMinutes() + "분");
- // alert(dateObj.getHours()+ "" + dateObj.getMinutes() );
-
- 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","-");
- return;
- }
- 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.col == 10 || grd_mainordlist5.col == 13){
- //if (grd_mainordlist5.col == 10 && model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excuroom") == ""){
- if (grd_mainordlist5.colAttribute(colidx, "ref") == "srchrsrvtm" && model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/examroomnm") == ""){
- // if (grd_mainordlist5.col == 10 && 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>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_mainordlist5.colAttribute(colidx, "ref") == "rsrvtmplcd")
- {
- model.makeValue("/root/hidden/checkseq","01")
- ;model.makeValue("/root/hidden/calcscorcd",model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row +"]/calcscorcd"))
- window.load( "SPAEA02301_코드조회.xrw","modal","code", "left:100px; top:150px; width:530px; height:380px;min:hidden;max:hidden;resize:false;" );
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseup">
- <![CDATA[
- var colidx = grd_mainordlist5.col;
- if (isDataCell()) {
- 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" ) {
- for ( var i =0 ; i< grd_mainordlist5.selectedRows;i++){
- if(grd_mainordlist5.valueMatrix(grd_mainordlist5.selectedRow(i), grd_mainordlist5.colRef("calcyn"))=="N" &&
- grd_mainordlist5.valueMatrix(grd_mainordlist5.selectedRow(i), grd_mainordlist5.colRef("genrflag"))!="S" &&
- grd_mainordlist5.valueMatrix(grd_mainordlist5.selectedRow(i), grd_mainordlist5.colRef("aftrcptinfo"))!="V" ){
- model.setValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.selectedRow(i) + "]/chk", "false");
- }else{
- model.setValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.selectedRow(i) + "]/chk", "true");
- }
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case2">
- <line id="line17" class="line_1" style="x1:0px; y1:1px; x2:800px; 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, 720" explorerbar="sortshow" frozencols="7" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:6px; width:800px; height:179px; ">
- <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>
- <group id="grp_memo" visibility="hidden" style="left:685px; top:65px; width:505px; height:375px; ">
- <shape id="rectangle12" appearance="rectangle" style="left:2px; top:2px; width:503px; height:418px; "/>
- <button id="button38" class="btn4_letter2" style="left:435px; top:395px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_memo.visible = false;
- ]]>
- </script>
- </button>
- <caption id="caption41" class="tit_2" style="left:10px; top:8px; width:60px; height:13px; ">메모</caption>
- <button id="btn_savememo" class="btn4_letter2" style="left:375px; top:395px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var memorem = model.getValue("/root/main/deptmemolist/deptmemo/memorem");
- model.setValue("/root/send3/memorem", memorem);
- submit("TXAEB00501");
- ]]>
- </script>
- </button>
- <textarea id="textarea2" ref="/root/main/deptmemolist/deptmemo/memorem" style="left:10px; top:25px; width:485px; height:365px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|