1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>검사예약</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <init>
- <pseu>
- <pseulist>
- <pseuinfo>
- <cdid/>
- <cdnm/>
- <detldesc/>
- </pseuinfo>
- </pseulist>
- <roomlist>
- <roomgrp>
- <basesuppdeptcd/>
- <basecd/>
- <basecdflagdesc/>
- <basecdcnts/>
- </roomgrp>
- </roomlist>
- </pseu>
- <srchdeptlist>
- <deptinfo>
- <deptcd/>
- <deptnm/>
- </deptinfo>
- </srchdeptlist>
- <srchroomlist>
- <roominfo>
- <chk/>
- <roomcd/>
- <roomnm/>
- </roominfo>
- </srchroomlist>
- <stafflist>
- <P0127info>
- <cdid/>
- <cdnm/>
- </P0127info>
- </stafflist>
- <init_pam>
- <P6588list/>
- <P0130list/>
- </init_pam>
- </init>
- <main>
- <ptinfo>
- <hngnm/>
- <sex/>
- <age/>
- <rrgstno/>
- <hometel/>
- <mpphontel/>
- <addr/>
- <serdiagtodd/>
- <rareobsttodd/>
- <smsaprvyn/>
- <vip/>
- <privacy/>
- <no/>
- <request/>
- <requestetc/>
- <target/>
- <targetetc/>
- <type/>
- <typeetc/>
- <rmk/>
- <isolflag/>
- <isolinfo/>
- <creatine/>
- <hivflag/>
- </ptinfo>
- <ordlist>
- <ordinfo>
- <orddt/>
- <orddeptcd/>
- <depthngnm/>
- <orddrid/>
- <orddrnm/>
- <rsrvflag/>
- <rsrvflagnm/>
- <rcptflag/>
- </ordinfo>
- </ordlist>
- <tdrvlist>
- <tdrvinfo>
- <rsrvdt/>
- <rsrvtm/>
- <excuroomcd/>
- <excuroomnm/>
- <exectm/>
- <prcpcd/>
- <prcpnm/>
- <rsrvflag/>
- <prcpstatcd/>
- <rsrvrid/>
- <rsrvrnm/>
- </tdrvinfo>
- </tdrvlist>
- <ptcmtlist>
- <ptcmtinfo>
- <pid/>
- <cmtdd/>
- <usernm/>
- <lastupdtdt/>
- <patcmt/>
- <bf_patcmt/>
- </ptcmtinfo>
- </ptcmtlist>
- <exculist>
- <excuinfo>
- <chk/>
- <rsrvflagyn/>
- <roomcnt/>
- <rcptyn/>
- <prcpdd/>
- <rgsttm/>
- <orddeptcd/>
- <orddepthngnm/>
- <orddrid/>
- <orddrnm/>
- <specdrid/>
- <specdrnm/>
- <genrflag/>
- <hiflag/>
- <payflagnm/>
- <calcscorcd/>
- <prcpnm/>
- <excucdnm/>
- <suppdeptcd/>
- <suppdeptnm/>
- <basecdcnts/>
- <excuroom/>
- <excuroomnm/>
- <rsrvexcuroomposscd/>
- <rsrvexcuroompossnm/>
- <excuroomcd/>
- <examroomnm/>
- <bf_excuroomcd/>
- <rsrvdt/>
- <srchrsrvtm/>
- <bf_srchrsrvtm/>
- <excutm/>
- <calcamt/>
- <endtime/>
- <telrsrvyn/>
- <rsrvrem/>
- <bf_rsrvrem/>
- <lastupdtnm/>
- <rsrvplceflag/>
- <aftrcptinfo/>
- <rcptrsrvyn/>
- <prcptdayrcptyn/>
- <pid/>
- <orddd/>
- <indd/>
- <dschdd/>
- <cretno/>
- <actorddd/>
- <prcphopedd/>
- <prcpexecdeptcd/>
- <rgstdeptcd/>
- <rgstdepthngnm/>
- <roomcd/>
- <rgstrid/>
- <rgstridnm/>
- <execrid/>
- <prcpgenrflag/>
- <rsrvflag/>
- <execprcpstatcd/>
- <prcpkindcd/>
- <execprcpuniqno/>
- <excupartcd/>
- <prcpdelivefact/>
- <ioflag/>
- <reqhospcd/>
- <excucdrem/>
- <rsrvtmcntlyn/>
- <rsrvpsnnocntlyn/>
- <pacsnocretyn/>
- <eqmtifyn/>
- <emryn/>
- <glycosyn/>
- <glycoscure/>
- <glycostestyn/>
- <slepyn/>
- <bonedentestyn/>
- <rsrvexcupossyn/>
- <rsrvexmptmplcd/>
- <tmpldata/>
- <rsrvtmplcd/>
- <rsrvmultitmplcd/>
- <diag/>
- </excuinfo>
- </exculist>
- <fcexlist>
- <fcexinfo>
- <chk/>
- <pid/>
- <hngnm/>
- <sex/>
- <age/>
- <rrgstno1/>
- <rrgstno2/>
- <bdwt/>
- <bdht/>
- <hometel/>
- <mpphontel/>
- <rsrvflag/>
- <prcpdd/>
- <prcpdt/>
- <ioflag/>
- <orddeptcd/>
- <orddepthngnm/>
- <orddd/>
- <insukind/>
- <emryn/>
- <cretno/>
- <orddrid/>
- <orddrnm/>
- <choiordflag/>
- <specdrid/>
- <specdrnm/>
- <prcpgenrflag/>
- <calcscorcd/>
- <prcpnm/>
- <prcphistno/>
- <prcpno/>
- <execprcpuniqno/>
- <prcpkindcd/>
- <prcpclscd/>
- <prcpqty/>
- <execprcptims/>
- <inclprcpcd/>
- <statcd/>
- <execprcpstatcd/>
- <basesuppdeptcd/>
- <prcpexecdeptcd/>
- <suppdeptcd/>
- <suppdeptnm/>
- <rsrvexcuroomposscd/>
- <rsrvexcuroompossnm/>
- <excuroomcd/>
- <bf_excuroomcd/>
- <examroomnm/>
- <excutm/>
- <tmpldata/>
- <slepyn/>
- <excucdrem/>
- <prcpdelivefact/>
- <srchrsrvdt/>
- <bf_srchrsrvtm/>
- <rsrvdt/>
- <rsrvrid/>
- <rsrvrnm/>
- <actorddd/>
- <execdt/>
- <execrid1/>
- <execrnm/>
- <actcretno/>
- <rehbprcpcurepartnm/>
- <prcpdirecnm/>
- <rehbprcpcurefreqnm/>
- <execrem/>
- <basecd/>
- <eqmtifyn/>
- <pacsnocretyn/>
- <portprcpflag/>
- <centcd/>
- <wardcd/>
- <wardengabbr/>
- <roomcd/>
- <roomnm/>
- <carecnfmdd/>
- <prcphopedd/>
- <unrsrvexecyn/>
- <precureprcpflag/>
- <aftrcptinfo/>
- <rcptyn/>
- <rcptdd/>
- <rcptrsrvyn/>
- <rcptacptyn/>
- <execbaseflag/>
- <lrgcd/>
- <mdlcd/>
- <modality/>
- <rsrvexmptmplcd/>
- <clincstdycd/>
- <ordrsrvdt/>
- <rgstdeptcd/>
- <rgstrid/>
- </fcexinfo>
- </fcexlist>
- <anexlist>
- <anexinfo>
- <rsrvflagyn/>
- <rcptyn/>
- <prcpdd/>
- <orddeptnm/>
- <orddrnm/>
- <calcscorcd/>
- <prcpnm/>
- <excuroomnm/>
- <prcphopedd/>
- <srchrsrvtm/>
- <excutm/>
- <endtime/>
- <rsrvrem/>
- <execprcpuniqno/>
- <execprcpstatcd/>
- <execprcpstatnm/>
- <exectm/>
- </anexinfo>
- </anexlist>
- <rcptprcpinfo>
- <cnt/>
- </rcptprcpinfo>
- <excuroomlist>
- <excuroominfo>
- <excuroomcd/>
- <excuroomnm/>
- </excuroominfo>
- </excuroomlist>
- </main>
- <main2>
- <ddrvlist>
- <ddrvinfo>
- <rsrvdd/>
- <maxcnt/>
- <rsrvcnt/>
- <capaflag/>
- </ddrvinfo>
- </ddrvlist>
- </main2>
- <main3>
- <rmrvlist>
- <rmrvinfo>
- <ptacc/>
- <rsrvtm/>
- <excuroomcd/>
- <excuroomnm/>
- <stat/>
- <capa/>
- <tmrank/>
- <tmflag/>
- <pid/>
- <hngnm/>
- <age/>
- <prcpgenrflag/>
- <excutm/>
- <calcscorcd/>
- <excucdnm/>
- <rsrvstatcd/>
- <rsrvstatnm/>
- <orddeptcd/>
- <deptengabbr/>
- <orddrid/>
- <orddrnm/>
- <prcpdelivefact/>
- <rsrvrem/>
- <lastupdtdt/>
- <lastupdtrnm/>
- <execprcpuniqno/>
- </rmrvinfo>
- </rmrvlist>
- </main3>
- <send>
- <data>
- <rsrvplce/>
- <srchdeptcd/>
- <srchroomcd/>
- <pid/>
- <fromdd/>
- <todd/>
- <inptflag>Y</inptflag>
- <centflag/>
- <rsrvdd/>
- <suppdeptcd/>
- <excuroomcd/>
- <excucd/>
- <prtpid/>
- <srchdd/>
- <genrflag/>
- <totflag/>
- <excuroomcdarr/>
- <ftflag/>
- <statflag>C</statflag>
- </data>
- <stat>
- <suppdeptcd/>
- <excuroomcd/>
- <rsrvdd/>
- <rsrvtm/>
- </stat>
- <ptcmt>
- <pid/>
- <cmtdd/>
- <patcmt/>
- </ptcmt>
- <rsrv>
- </rsrv>
- <funcrsrv>
- <data/>
- <flag/>
- <pamifyn/>
- </funcrsrv>
- <temp>
- <srchflag/>
- <deptcd/>
- <roomcd/>
- </temp>
- <ptinfo>
- <pid/>
- <srchcond/>
- </ptinfo>
- <chng>
- <pid/>
- <execprcpuniqno/>
- <rsrvdeptcd/>
- <excuroomcd/>
- <examroomnm/>
- <rsrvdt/>
- <srchrsrvtm/>
- </chng>
- </send>
- <hidden>
- <dutlist>
- <dutinfo>
- <basedd/>
- <dutflag/>
- </dutinfo>
- </dutlist>
- <calendar>
- <year/>
- <month/>
- <weeklist>
- <list>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- <sun_memo/>
- <mon_memo/>
- <tue_memo/>
- <wed_memo/>
- <thu_memo/>
- <fri_memo/>
- <sat_memo/>
- </list>
- </weeklist>
- </calendar>
- <grdcellcolor>
- <bfrow/>
- <bfcol/>
- <bfclr/>
- </grdcellcolor>
- <prtlist>
- <prtinfo/>
- </prtlist>
- <prcpcmt/>
- <statlist>
- <statinfo>
- <stat/>
- </statinfo>
- </statlist>
- <pseursrvinfo/>
- <roomgrp/>
- <dutplcenm/>
- <memoinfo>
- <diag/>
- <ptmemo/>
- <drflag>D</drflag>
- <drmemo/>
- </memoinfo>
- <multrsrv>
- <excuinfo/>
- </multrsrv>
- <popupmenu_rmrv>
- <item>
- <name>예약 맞바꾸기</name>
- <func>fChangeRsrv</func>
- </item>
- </popupmenu_rmrv>
- <smslist>
- <smsinfo>
- <orddeptcd/>
- <msgcnts/>
- </smsinfo>
- </smslist>
- </hidden>
- <temp>
- <ptcmtlist>
- <ptcmtinfo>
- <pid/>
- <cmtdd/>
- <patcmt/>
- <usernm/>
- <lastupdtdt/>
- </ptcmtinfo>
- </ptcmtlist>
- <ptcmt/>
- <rsrv/>
- <rsrvrtn>
- <rtninfo/>
- </rsrvrtn>
- <exculist/>
- <chngrslt>
- <rsltinfo>
- <count/>
- <rsltflag/>
- <rsltmsg/>
- </rsltinfo>
- </chngrslt>
- <exstlist>
- <exstinfo>
- <rowidx/>
- <prcpdt/>
- <orddept/>
- <prcpnm/>
- <suppdeptcd/>
- <suppdeptnm/>
- <excuroomcd/>
- <excuroomnm/>
- <rsrvdd/>
- <rsrvtm/>
- <stat/>
- </exstinfo>
- </exstlist>
- <alertmsg/>
- <pmsglist>
- <pmsginfo>
- <msg/>
- </pmsginfo>
- </pmsglist>
- <tmsum/>
- <endtm/>
- <smsresult>
- <temp>
- <succnt>
- <getV/>
- </succnt>
- </temp>
- </smsresult>
- </temp>
- <ctrl>
- <send>
- <rsrvinfo/>
- </send>
- <main>
- <ctrllist>
- <ctrlinfo>
- <rsrvplce/>
- <suppdeptcd/>
- <excuroomcd/>
- <excucd/>
- <ctrlseq/>
- <ctrldesc/>
- <ctrlyn/>
- </ctrlinfo>
- </ctrllist>
- </main>
- <temp>
- <ctrllist>
- <ctrlinfo/>
- </ctrllist>
- <termlist>
- <terminfo/>
- </termlist>
- </temp>
- <hidden>
- <excplist>
- <excpinfo>
- <userid/>
- </excpinfo>
- </excplist>
- <rsrvplce/>
- </hidden>
- </ctrl>
- </root>
- </instance>
- <submission id="TRPEA00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/dutlist/dutinfo"/>
- <submission id="TRPEA00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main"/>
- <submission id="TRPEA00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main2/ddrvlist/ddrvinfo"/>
- <submission id="TRPEA00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main3/rmrvlist/rmrvinfo"/>
- <submission id="TRPEA00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/prtlist/prtinfo"/>
- <submission id="TRPEA00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/stat" replace="instance" resultref="/root/hidden/statlist/statinfo"/>
- <submission id="TRPEA00106" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/pseu"/>
- <submission id="TRPEA00107" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/srchdeptlist/deptinfo"/>
- <submission id="TRPEA00108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/init/srchroomlist/roominfo"/>
- <submission id="TRPEA00110" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/stafflist/P0127info"/>
- <submission id="TRPEA00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/temp" resultref="/root/init/roomlist/roominfo"/>
- <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"/>
- <submission id="TRPEA00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main"/>
- <submission id="TXPEA00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/ptcmt" replace="instance" resultref="/root/temp/ptcmtlist/ptcmtinfo"/>
- <submission id="TXPEA00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/chng" replace="instance" resultref="/root/temp/chngrslt/rsltinfo"/>
- <submission id="TXAEA02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rsrv" replace="instance" resultref="/root/temp/rsrvrtn/rtninfo"/>
- <submission id="TXAEA01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/funcrsrv" replace="instance" resultref="/root/temp/rsrvrtn/rtninfo"/>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZSU00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/list"/>
- <submission id="TXZMI00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/temp/smsresult/temp"/>
- <script type="javascript">
- <![CDATA[
-
- var PREV_RSRVREM = "";
-
- var EXCU_SEL_ROW = 0;
-
- var PREV_RMRV_ROW = -1;
- var PREV_RMRV_COL = -1;
- var RMRV_MOUSE_DOWN = false;
-
- var FUNC_FLAG = false;
- var FUNC_SEL_ROW = 0;
-
- // 예약처 설정
- function fSetRsrvPlce() {
-
- model.setValue("/root/send/data/rsrvplce", RSRV_PLCE);
-
- btn_temprsrv.visible = false;
- cmb_roomgrp.visible = false;
-
- if (RSRV_PLCE == "T") {
-
- model.setValue("/root/send/data/inptflag", "Y");
-
- btn_temprsrv.visible = true;
- cmb_roomgrp.visible = true;
- cap_title.value = "통합 검사 예약";
-
- //btn_excu.selected = true;
- //btn_excu.dispatch("DOMActivate");
-
- } else if (RSRV_PLCE == "O") {
-
- model.setValue("/root/send/data/inptflag", "N");
-
- cap_title.value = "외래 검사 예약";
-
- //btn_func.selected = true;
- //btn_func.dispatch("DOMActivate");
-
- } else if (RSRV_PLCE == "I") {
-
- model.setValue("/root/send/data/inptflag", "Y");
-
- cap_title.value = "입원 검사 예약";
-
- //btn_func.selected = true;
- //btn_func.dispatch("DOMActivate");
-
- } else if (RSRV_PLCE == "S") {
-
- model.setValue("/root/send/data/inptflag", "N");
-
- cap_title.value = "건진 검사 예약";
-
- //btn_excu.selected = true;
- //btn_excu.dispatch("DOMActivate");
- }
- }
-
- // 입력받은 날짜에 대한 달력 설정
- function fSetCalendar(pDate) {
-
- for (var i = 1; i <= 12; i++) {
- var btn = document.controls("btn_m" + ( i < 10 ? "0" + i : i ));
- if (i == Number(pDate.getDateFormat("MM"))) {
- btn.attribute("background-color") = "#daa7d9";
- //btn.attribute("background-color") = "#cdcdcd";
- } else {
- btn.attribute("background-color") = "#f0f0f0";
- //btn.attribute("background-color") = "#ffffff";
- }
- }
-
- pDate.setDate(1);
-
- var holFlag = false; // 공휴일 조회 여부
- if (model.getValue("/root/send/data/srchdd").substr(0, 6) != pDate.getDateFormat("YYYYMM")) {
- holFlag = true;
- }
-
- model.setValue("/root/send/data/srchdd", pDate.getDateFormat("YYYYMMDD"));
- model.setValue("/root/hidden/calendar/year", pDate.getDateFormat("YYYY"));
- model.setValue("/root/hidden/calendar/month", pDate.getDateFormat("MM"));
-
- opt_year.refresh();
- opt_month.refresh();
-
- grd_calendar.rebuildStyle();
-
- var path = "/root/hidden/calendar/weeklist/list";
- model.resetInstanceNode(path);
-
- var row = grd_calendar.fixedRows;
- var col = pDate.getDay();
-
- var days = pDate.getMonthDay();
-
- for (var i = 1; i <= days; i++) {
-
- model.makeValue(path + "[" + row + "]/" + grd_calendar.colAttribute(col, "ref"), i);
- model.makeValue(path + "[" + row + "]/" + grd_calendar.colAttribute(col + 7, "ref"), "");
-
- col++;
-
- if (col == 7) {
- col = 0;
- row++;
- }
- }
-
- grd_calendar.refresh();
-
- //공휴일 표시
- fSetDutFlag(pDate.getDateFormat("YYYYMM") + "01", holFlag);
-
- //가용인원표시
- if (model.getValue("/root/send/data/excuroomcdarr") != "") {
- fGetDayRsrvList();
- }
-
- // 오늘 날짜 배경색 설정
- fSetTodayColor();
-
- model.setValue("/root/hidden/grdcellcolor/bfrow", "");
- model.setValue("/root/hidden/grdcellcolor/bfcol", "");
- model.setValue("/root/hidden/grdcellcolor/bfclr", "");
- }
-
- function fSetDutFlag(pDate, srchFlag){
- if (srchFlag) {
- submit("TRPEA00100", false);
- }
-
- var startDay = pDate.toDate().getDay();
-
- var cnt = instance1.selectNodes("/root/hidden/dutlist/dutinfo").length;
-
- for (var i = 1; i <= cnt; i++) {
-
- var basedd = model.getValue("/root/hidden/dutlist/dutinfo[" + i + "]/basedd");
- var dutflag = model.getValue("/root/hidden/dutlist/dutinfo[" + i + "]/dutflag");
-
- var col = basedd.toDate().getDay();
- var row = Math.ceil( ( startDay + Number(basedd.substr(6, 2)) ) / 7 );
-
- if (dutflag == "8") { // 휴일
- grd_calendar.cellstyle("color", row, col) = "red";
- } else if (dutflag == "4") { // 토요일
- grd_calendar.cellstyle("color", row, col) = "blue";
- } else { // 평일
- grd_calendar.cellstyle("color", row, col) = "black";
- }
- }
- }
-
- // 오늘 날짜 배경색 설정
- function fSetTodayColor() {
-
- var curDate = getCurrentDate();
- var calDate = model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month");
-
- // 설정된 달력에 오늘 날짜가 있는 경우만 실행
- if (curDate.substring(0, 6) != calDate) {
- return;
- }
-
- curDate = curDate.substring(6, 8);
-
- for (i = 0; i < grd_calendar.rows; i++) {
- for (j = 0; j < grd_calendar.cols; j++) {
- if (Number(curDate) == Number(grd_calendar.valueMatrix(i, j))) {
- grd_calendar.cellStyle("background-color", i, j) = "#95d4fb";
- grd_calendar.cellStyle("background-color", i, j + 7) = "#95d4fb";
- break;
- }
- }
- }
- }
-
- // 지정한 날짜 배경색 설정
- function fSetSelColor() {
-
- var bfRow = model.getValue("/root/hidden/grdcellcolor/bfrow");
- var bfCol = model.getValue("/root/hidden/grdcellcolor/bfcol");
- var bfClr = model.getValue("/root/hidden/grdcellcolor/bfclr");
-
- if (bfRow != "") {
- grd_calendar.cellStyle("background-color", Number(bfRow), Number(bfCol)) = bfClr;
- grd_calendar.cellStyle("background-color", Number(bfRow), Number(bfCol) + 7) = bfClr;
- }
-
- var row = grd_calendar.row;
- var col = grd_calendar.col;
- col = col >= 7 ? col - 7 : col;
- var clr = grd_calendar.cellStyle("background-color", row, col);
-
- model.setValue("/root/hidden/grdcellcolor/bfrow", row);
- model.setValue("/root/hidden/grdcellcolor/bfcol", col);
- model.setValue("/root/hidden/grdcellcolor/bfclr", clr);
-
- grd_calendar.cellStyle("background-color", row, col) = "#daa7d9";
- grd_calendar.cellStyle("background-color", row, col + 7) = "#daa7d9";
- }
-
- function fSetMonth(pMonth) {
-
- var sDate = model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month") + "01";
- var dtDate = sDate.toDate().getAddDate(Number(pMonth) - Number(model.getValue("/root/hidden/calendar/month")), "M");
-
- fSetCalendar(dtDate);
- }
-
- function fGetExcuList(srchdd){
-
- fClearExcuInfo(srchdd);
-
- grd_excu.fixedcellischeck(0, grd_excu.colRef("chk")) = false;
-
- model.toggle("excu");
-
- grd_ord.rebuildStyle();
- grd_excu.rebuildStyle();
-
- if (!submit("TRPEA00101")) {
- return;
- }
-
- grd_room.refresh();
- grd_room.resizeCells();
-
- grd_ptcmt.refresh();
- grd_ptcmt.resizeCells();
-
- btn_savecmt.disabled = true;
- if (instance1.selectNodes("/root/main/ptcmtlist/ptcmtinfo").length > 0) {
- btn_delcmt.disabled = false;
- } else {
- btn_delcmt.disabled = true;
- }
-
- model.setValue("/root/temp/ptcmt", "");
- tar_ptcmt.refresh();
-
- // 진료 예약 내역 표시 설정
- var path = "/root/main/ordlist/ordinfo";
- cnt = instance1.selectNodes(path).length;
- for (var i = 1; i <= cnt; i++) {
- if (model.getValue(path + "[" + i + "]/rcptflag") == "V") { // 후불
- grd_ord.rowStyle(i, "data", "background-color") = "#ffffa0";
- } else if (model.getValue(path + "[" + i + "]/rcptflag") == "Y") { // 미수납
- grd_ord.rowStyle(i, "data", "background-color") = "#ffb450";
- }
- }
-
- // 검사 현황 표시 설정
- path = "/root/main/exculist/excuinfo";
- cnt = instance1.selectNodes(path).length;
- for (var i = 1; i <= cnt; i++) {
-
- // 예약 시간 변경 통제 여부에 따른 수기 예약 여부 설정
- // 현재 칠곡만 수기 예약 가능하도록 함
- if (getUserInfo("dutplceinstcd") == "032" || getUserId() == "PAM") {
- if (model.getValue(path + "[" + i + "]/rsrvtmcntlyn") == "Y") {
- grd_excu.isReadOnly(i, grd_excu.colRef("srchrsrvtm")) = true;
- } else {
- grd_excu.isReadOnly(i, grd_excu.colRef("srchrsrvtm")) = false;
- }
- }
-
- // 예약 여부에 따른 표시
- if (model.getValue(path + "[" + i + "]/rsrvflagyn") == "예약") { // 예약
- grd_excu.cellStyle("color", i, grd_excu.colRef("rsrvflagyn")) = "black";
- } else if (model.getValue(path + "[" + i + "]/rsrvflagyn") == "예약취소") { // 예약 취소
- grd_excu.cellStyle("color", i, grd_excu.colRef("rsrvflagyn")) = "blue";
- } else { // 미예약
- grd_excu.cellStyle("color", i, grd_excu.colRef("rsrvflagyn")) = "red";
- }
-
- // 수납 여부에 따른 표시
- var rcptstr = model.getValue(path + "[" + i + "]/rcptyn");
- if (model.getValue(path + "[" + i + "]/prcpgenrflag") == "I") {
- if (rcptstr == "수납") {
- grd_excu.cellStyle("color", i, grd_excu.colRef("rcptyn")) = "#000000";
- } else {
- grd_excu.cellStyle("color", i, grd_excu.colRef("rcptyn")) = "#ff0000";
- }
- } else {
- if (model.getValue(path + "[" + i + "]/aftrcptinfo") == "V") { // 이지패스
- grd_excu.cellStyle("background-color", i, grd_excu.colRef("rcptyn")) = "#ff5050";
- grd_excu.cellStyle("color", i, grd_excu.colRef("rcptyn")) = "#ffff00";
- rcptstr = "VIP";
- } else if (model.getValue(path + "[" + i + "]/aftrcptinfo") == "P") { // 처방당일 후수납
- grd_excu.cellStyle("color", i, grd_excu.colRef("rcptyn")) = "#ff9a00";
- rcptstr = "당일후수납";
- } else if (model.getValue(path + "[" + i + "]/aftrcptinfo") == "A") { // 미수납
- grd_excu.cellStyle("color", i, grd_excu.colRef("rcptyn")) = "#ff0000";
- } else { // 수납
- grd_excu.cellStyle("color", i, grd_excu.colRef("rcptyn")) = "#000000";
- }
- }
-
- grd_excu.tooltipText(i, grd_excu.colRef("rcptyn")) = rcptstr;
-
- // 검사 안내문이 있는 항목은 처방명 글자색을 변경
- if (model.getValue(path + "[" + i + "]/tmpldata") != "") {
- grd_excu.cellStyle("color", i, grd_excu.colRef("prcpnm")) = "blue";
- } else {
- grd_excu.cellStyle("color", i, grd_excu.colRef("prcpnm")) = "black";
- }
- }
-
- if (model.getValue("/root/main/rcptprcpinfo/cnt") != "0") {
- messageBox("미수납 검사 처방이 있습니다.\n처방을 확인해 주십시오.", "E999");
- }
-
- // 환자 정보 표시 설정
- if (model.getValue("/root/main/ptinfo/hngnm") != "") {
-
- // Creatine 수치에 따른 설정
- var creatine = model.getValue("/root/main/ptinfo/creatine");
- if (Number(creatine) >= 1.3) {
- grp_creatine.visible = true;
- } else {
- grp_creatine.visible = false;
- }
-
- // VIP 칼럼 설정
- if (model.getValue("/root/main/ptinfo/vip") != "N") {
- grd_pt.cellStyle("background-color", 1, grd_pt.colRef("vip")) = "#ffff00";
- } else {
- grd_pt.cellStyle("background-color", 1, grd_pt.colRef("vip")) = "#ffffff";
- }
-
- // 사생활 보호 칼럼 설정
- if (model.getValue("/root/main/ptinfo/privacy") == "Y") {
- grd_pt.cellStyle("background-color", 1, grd_pt.colRef("privacy")) = "red";
- fShowPrivacyMsg();
- } else {
- grd_pt.cellStyle("background-color", 1, grd_pt.colRef("privacy")) = "#ffffff";
- }
-
- // HIV 표시
- if (model.getValue("/root/main/ptinfo/hivflag") == "Y") {
- grd_pt.cellStyle("background-image", 1, grd_pt.colRef("hivflag")) = "../../../com/hismainweb/images/btn_top_infection0.gif";
- } else {
- grd_pt.cellStyle("background-image", 1, grd_pt.colRef("hivflag")) = "";
- }
-
- // 환자 조회시 중증이나 산정특례 만료일부터 6개월이내 환자 알림 기능
- var serdiagtodd = model.getValue("/root/main/ptinfo/serdiagtodd");
- if (serdiagtodd != "" ) {
- if (serdiagtodd.length == 8) {
- serdiagtodd = serdiagtodd.substr(0, 4) + "년 " + serdiagtodd.substr(4, 2) + "월 " + serdiagtodd.substr(6, 2) + "일";
- messageBox("중증 등록이 [ " + serdiagtodd + " ] 에 종료 예정입니다","E999");
- }
- }
-
- var rareobsttodd = model.getValue("/root/main/ptinfo/rareobsttodd");
- if (rareobsttodd != "" ) {
- if (rareobsttodd.length == 8) {
- rareobsttodd = rareobsttodd.substr(0, 4) + "년 " + rareobsttodd.substr(4, 2) + "월 " + rareobsttodd.substr(6, 2) + "일";
- messageBox("희귀 난치 등록이 [ " + rareobsttodd + " ] 에 종료 예정입니다","E999");
- }
- }
-
- if (model.getValue("/root/main/ptinfo/isolinfo") != "") {
- model.setValue("/root/main/ptinfo/isolflag", "주의");
- grd_pt.refresh();
- }
- }
-
- if (grd_excu.rows > 1) {
- grd_excu.row = 1;
- fSetExcuInfo();
- }
- }
-
- function fSetPtCmt(flag) {
-
- tar_ptcmt.visible = false;
- btn_savecmt.disabled = true;
- btn_delcmt.disabled = false;
- btn_addcmt.attribute("text") = "추가";
-
- model.setValue("/root/send/ptcmt/pid", model.getValue("/root/send/data/pid"));
-
- if (flag) { // 추가 & 수정
- model.setValue("/root/send/ptcmt/patcmt", model.getValue("/root/temp/ptcmt"));
- } else { // 삭제
- if (messageBox("선택 항목을 삭제하시겠습니까?", "Q999") != 6) {
- return;
- }
-
- model.setValue("/root/send/ptcmt/cmtdd", model.getValue("/root/main/ptcmtlist/ptcmtinfo[" + grd_ptcmt.row + 1 + "]/cmtdd"));
- model.setValue("/root/send/ptcmt/patcmt", "");
- }
-
- if (submit("TXPEA00101", false)) {
-
- model.removenode("/root/main/ptcmtlist");
-
- model.setValue("/root/temp/ptcmt", "");
- tar_ptcmt.refresh();
-
- var path = "/root/temp/ptcmtlist/ptcmtinfo";
- var cnt = instance1.selectNodes(path).length;
- for (var i = 1; i <= cnt; i++) {
- model.makeValue("/root/main/ptcmtlist/ptcmtinfo[" + i + "]/pid", model.getValue(path + "[" + i + "]/pid"));
- model.makeValue("/root/main/ptcmtlist/ptcmtinfo[" + i + "]/cmtdd", model.getValue(path + "[" + i + "]/cmtdd"));
- model.makeValue("/root/main/ptcmtlist/ptcmtinfo[" + i + "]/usernm", model.getValue(path + "[" + i + "]/usernm"));
- model.makeValue("/root/main/ptcmtlist/ptcmtinfo[" + i + "]/lastupdtdt", model.getValue(path + "[" + i + "]/lastupdtdt"));
- model.makeValue("/root/main/ptcmtlist/ptcmtinfo[" + i + "]/patcmt", model.getValue(path + "[" + i + "]/patcmt"));
- model.makeValue("/root/main/ptcmtlist/ptcmtinfo[" + i + "]/bf_patcmt", model.getValue(path + "[" + i + "]/patcmt"));
- }
-
- grd_ptcmt.refresh();
- grd_ptcmt.rebuildStyle();
- grd_ptcmt.resizeCells();
-
- btn_savecmt.disabled = true;
- if (cnt > 0) {
- btn_delcmt.disabled = false;
- } else {
- btn_delcmt.disabled = true;
- }
-
- if (flag) {
- messageBox("예약 전달 사항이 저장 되었습니다.", "I999");
- }
- }
- }
-
- function fGetFuncExcuList(srchdd){
-
- fClearFuncExcuInfo(srchdd);
-
- model.toggle("func");
-
- grd_ord.rebuildStyle();
- grd_fcex.rebuildStyle();
-
- // 조회 검사실 설정
- var cnt = instance1.selectNodes("/root/init/srchroomlist/roominfo").length;
- var roomstr = "";
- for (var i = 1; i <= cnt; i++) {
- if (model.getValue("/root/init/srchroomlist/roominfo[" + i + "]/chk") != "Y") {
- continue;
- }
-
- if (roomstr != "") {
- roomstr += "','";
- }
-
- roomstr += model.getValue("/root/init/srchroomlist/roominfo[" + i + "]/roomcd");
- }
-
- model.setValue("/root/send/data/srchroomcd", "'" + roomstr + "'");
-
- if (!submit("TRPEA00301")) {
- return;
- }
-
- grd_ptcmt.resizeCells();
- grd_room.resizeCells();
-
- /*
- if (model.getValue("/root/main/rcptprcpinfo/cnt") != "0") {
- messageBox("미수납 검사 처방이 있습니다.\n처방을 확인해 주십시오.", "E999");
- }
- */
-
- // 환자 정보 표시 설정
- if (model.getValue("/root/main/ptinfo/hngnm") != "") {
-
- // VIP 칼럼 설정
- if (model.getValue("/root/main/ptinfo/vip") != "N") {
- grd_pt.cellStyle("background-color", 1, grd_pt.colRef("vip")) = "#ffff00";
- } else {
- grd_pt.cellStyle("background-color", 1, grd_pt.colRef("vip")) = "#ffffff";
- }
-
- // 사생활 보호 칼럼 설정
- if (model.getValue("/root/main/ptinfo/privacy") == "Y") {
- grd_pt.cellStyle("background-color", 1, grd_pt.colRef("privacy")) = "red";
- fShowPrivacyMsg();
- } else {
- grd_pt.cellStyle("background-color", 1, grd_pt.colRef("privacy")) = "#ffffff";
- }
-
- // 환자 조회시 중증이나 산정특례 만료일부터 6개월이내 환자 알림 기능
- var serdiagtodd = model.getValue("/root/main/ptinfo/serdiagtodd");
- if (serdiagtodd != "-" ) {
- if (serdiagtodd.length == 8) {
- serdiagtodd = serdiagtodd.substr(0, 4) + "년 " + serdiagtodd.substr(4, 2) + "월 " + serdiagtodd.substr(6, 2) + "일";
- messageBox("중증 등록이 [ " + serdiagtodd + " ] 에 종료 예정입니다","E999");
- }
- }
-
- var rareobsttodd = model.getValue("/root/main/ptinfo/rareobsttodd");
- if (rareobsttodd != "-" ) {
- if (rareobsttodd.length == 8) {
- rareobsttodd = rareobsttodd.substr(0, 4) + "년 " + rareobsttodd.substr(4, 2) + "월 " + rareobsttodd.substr(6, 2) + "일";
- messageBox("희귀 난치 등록이 [ " + rareobsttodd + " ] 에 종료 예정입니다","E999");
- }
- }
-
- if (model.getValue("/root/main/ptinfo/isolinfo") != "") {
- model.setValue("/root/main/ptinfo/isolflag", "주의");
- grd_pt.refresh();
- }
- }
-
- // 진료 예약 내역 표시 설정
- var path = "/root/main/ordlist/ordinfo";
- cnt = instance1.selectNodes(path).length;
- for (var i = 1; i <= cnt; i++) {
- if (model.getValue(path + "[" + i + "]/rcptflag") == "V") { // 후불
- grd_ord.rowStyle(i, "data", "background-color") = "#ffffa0";
- } else if (model.getValue(path + "[" + i + "]/rcptflag") == "Y") { // 미수납
- grd_ord.rowStyle(i, "data", "background-color") = "#ffb450";
- }
- }
-
- // 검사 현황 표시 설정
- path = "/root/main/fcexlist/fcexinfo";
- cnt = instance1.selectNodes(path).length;
- for (var i = 1; i <= cnt; i++) {
-
- // 예약 여부에 따른 표시
- if (model.getValue(path + "[" + i + "]/rsrvflag") == "예약") { // 예약
- grd_fcex.cellStyle("color", i, grd_fcex.colRef("rsrvflag")) = "black";
- } else if (model.getValue(path + "[" + i + "]/rsrvflag") == "예약취소") { // 예약 취소
- grd_fcex.cellStyle("color", i, grd_fcex.colRef("rsrvflag")) = "blue";
- } else { // 미예약
- grd_fcex.cellStyle("font-weight", i, grd_fcex.colRef("rsrvflag")) = "bold";
- grd_fcex.cellStyle("color", i, grd_fcex.colRef("rsrvflag")) = "red";
- }
-
- // 수납 여부에 따른 표시
- if (model.getValue(path + "[" + i + "]/rcptyn") == "Y") { // 수납
- grd_fcex.cellStyle("color", i, grd_fcex.colRef("rcptyn")) = "black";
- } else if (model.getValue(path + "[" + i + "]/rcptyn") == "N") { // 미수납
- grd_fcex.cellStyle("font-weight", i, grd_fcex.colRef("rcptyn")) = "bold";
- grd_fcex.cellStyle("color", i, grd_fcex.colRef("rcptyn")) = "red";
- } else if (model.getValue(path + "[" + i + "]/rcptyn") == "P") { // 선처치
- grd_fcex.cellStyle("font-weight", i, grd_fcex.colRef("rcptyn")) = "bold";
- grd_fcex.cellStyle("color", i, grd_fcex.colRef("rcptyn")) = "blue";
- }
-
- // 검사 안내문이 있는 항목은 처방명 글자색을 변경
- if (model.getValue(path + "[" + i + "]/tmpldata") != "") {
- grd_fcex.cellStyle("color", i, grd_fcex.colRef("calcscorcd")) = "blue";
- grd_fcex.cellStyle("color", i, grd_fcex.colRef("prcpnm")) = "blue";
- } else {
- grd_fcex.cellStyle("color", i, grd_fcex.colRef("calcscorcd")) = "black";
- grd_fcex.cellStyle("color", i, grd_fcex.colRef("prcpnm")) = "black";
- }
- }
-
- if (grd_fcex.rows > 1) {
- grd_fcex.row = 1;
- fSetFuncExcuInfo();
- }
- }
-
- function fClearExcuInfo(srchdd) {
-
- // 설정 행 초기화
- EXCU_SEL_ROW = 0;
-
- model.setValue("/root/send/data/suppdeptcd", "");
- model.setValue("/root/send/data/excuroomcd", "");
-
- // 검사실 목록 초기화
- model.removenode("/root/main/excuroomlist");
- model.makeNode("/root/main/excuroomlist");
- grd_room.refresh();
-
- fSetCalendar(srchdd.toDate());
-
- // 검사실 예약 현황 초기화
- model.removenode("/root/main3/rmrvlist");
- model.makeNode("/root/main3/rmrvlist");
- grd_rmrv.refresh();
-
- model.setValue("/root/hidden/prcpcmt", "");
- tar_prcpcmt.refresh();
- tar_prcpcmt.attribute("background-color") = "#ffffff";
-
- // 중복 예약 확인 내역 초기화
- model.removenode("/root/temp/exstlist");
-
- // 제어 내역 초기화
- fInitRsrvCtrl();
-
- // 총 소요 시간 및 예상 완료 시각 표시 초기화
- model.setValue("/root/temp/tmsum", "");
- model.setValue("/root/temp/endtm", "");
- cap_tmsum.refresh();
- cap_endtm.refresh();
- }
-
- function fClearFuncExcuInfo(srchdd) {
-
- // 설정 행 초기화
- FUNC_SEL_ROW = 0;
-
- model.setValue("/root/send/data/suppdeptcd", "");
- model.setValue("/root/send/data/excuroomcd", "");
-
- // 검사실 목록 초기화
- model.removenode("/root/main/excuroomlist");
- model.makeNode("/root/main/excuroomlist");
- grd_room.refresh();
-
- fSetCalendar(srchdd.toDate());
-
- // 검사실 예약 현황 초기화
- model.removenode("/root/main3/rmrvlist");
- model.makeNode("/root/main3/rmrvlist");
- grd_rmrv.refresh();
-
- model.setValue("/root/hidden/prcpcmt", "");
- tar_prcpcmt.refresh();
- tar_prcpcmt.attribute("background-color") = "#ffffff";
-
- // 중복 예약 확인 내역 초기화
- model.removenode("/root/temp/exstlist");
-
- // 제어 내역 초기화
- fInitRsrvCtrl();
- }
-
- // 검사 현황 선택에 따른 값 설정
- function fSetExcuInfo() {
-
- var cnt = instance1.selectNodes("/root/main/exculist/excuinfo").length;
- for (var i = 1; i <= cnt; i++) {
- if (i == grd_excu.row) {
- grd_excu.rowStyle(i, "data", "background-color") = "#b7ffb7"; // 설정 행
- } else if (model.getValue("/root/main/exculist/excuinfo[" + i + "]/chk") == "Y") {
- grd_excu.rowStyle(i, "data", "background-color") = "#ececec"; // 선택 행
- } else {
- grd_excu.rowStyle(i, "data", "background-color") = "#ffffff"; // 비선택 행
- }
-
- if (model.getValue("/root/main/exculist/excuinfo[" + i + "]/aftrcptinfo") == "V") {
- grd_excu.cellStyle("background-color", i, grd_excu.colRef("rcptyn")) = "#ff5050";
- grd_excu.cellStyle("color", i, grd_excu.colRef("rcptyn")) = "#ffff00";
- }
- }
-
- EXCU_SEL_ROW = grd_excu.row;
-
- // 총 소요 시간 및 예상 완료 시각 표시
- setExcuEndTime();
-
- var path = "/root/main/exculist/excuinfo[" + grd_excu.row + "]/";
- var suppdeptcd = model.getValue(path + "suppdeptcd");
-
- if (btn_rmrvex.attribute("background-image") == "../../../com/commonweb/images/btn_send_right.gif") {
- btn_rmrvex.attribute("background-image") = "../../../com/commonweb/images/btn_send_left.gif";
- caption15.attribute("left") = line6.attribute("x1") = grd_rmrv.attribute("left") = "595px";
- grd_rmrv.attribute("width") = "600px";
- caption11.visible = caption1.visible = true;
- if (RSRV_PLCE == "T") {
- btn_temprsrv.visible = true;
- }
- }
-
- if (!checkOpener()) {
- fTopInfo();
- }
-
- fGetRsrvCtrlList(grd_excu, grd_excu.row);
-
- // 수납 안내 안함
- /*
- if (model.getValue(path + "calcyn") == "N"
- && model.getValue(path + "genrflag") != "S"
- && model.getValue(path + "aftrcptinfo") != "V") {
-
- messageBox("수납 후 예약하도록 안내바랍니다.", "E999");
- }
- */
-
- // 발생구분 설정
- model.setValue("/root/send/data/genrflag", model.getValue(path + "genrflag"));
-
- // 수행부서 설정
- model.setValue("/root/send/data/suppdeptcd", suppdeptcd);
-
- // 예약일 설정
- if (model.getValue(path + "srchrsrvtm") != "") {
- model.setValue("/root/send/data/rsrvdd", model.getValue(path + "srchrsrvtm").substr(0, 8));
- } else {
- model.setValue("/root/send/data/rsrvdd", "");
- }
-
- // 검사실 목록 설정
- model.resetInstanceNode("/root/main/excuroomlist/excuroominfo");
- var roomNmArr = model.getValue(path + "rsrvexcuroompossnm").split("^");
- var roomCdArr = ""; // 예약 가능 검사실 전체 조회를 위한 배열
- for (var i = 0; i < roomNmArr.length; i++) {
- var cd = roomNmArr[i].split("|")[0];
- model.makeValue("/root/main/excuroomlist/excuroominfo[" + ( i + 1 ) + "]/excuroomcd", cd);
- model.makeValue("/root/main/excuroomlist/excuroominfo[" + ( i + 1 ) + "]/excuroomnm", roomNmArr[i].split("|")[1]);
-
- roomCdArr += ( i > 0 ? ",'" : "'" ) + cd + "'";
- }
- grd_room.refresh();
- grd_room.resizeCells();
- model.setValue("/root/send/data/excuroomcd", "");
- grd_room.isSelected(grd_room.row) = false;
-
- model.setValue("/root/send/data/excuroomcdarr", roomCdArr);
-
- // 검사안내문 유무에 따른 설정
- // 체크 박스에 의한 출력 기능 추가로 인해 일단 막아놓음
- /*
- if (model.getValue(path + "tmpldata") == "") {
- btn_infoprt.disabled = true;
- } else {
- btn_infoprt.disabled = false;
- }
- */
-
- // 처방 전달 사항 설정
- var prcpcmt = model.getValue(path + "prcpdelivefact").replace(/(^\s*)|(\s*$)/gi, "");
- model.setValue("/root/hidden/prcpcmt", prcpcmt);
- tar_prcpcmt.refresh();
- if (prcpcmt == "" || prcpcmt == "-") {
- tar_prcpcmt.attribute("background-color") = "#ffffff";
- } else {
- tar_prcpcmt.attribute("background-color") = "#ffff78";
- }
-
- // 응급(긴급) 여부 설정
- model.setValue("/root/send/data/ftflag", model.getValue(path + "ftflag"));
-
- // 일자별 검사 현황 초기화
- var srchdd = model.getValue("/root/send/data/srchdd");
- fSetCalendar(srchdd.toDate());
-
- // 검사실 예약 현황 초기화
- model.removenode("/root/main3/rmrvlist");
- model.makeNode("/root/main3/rmrvlist");
- grd_rmrv.refresh();
-
- // 당뇨 체크 안함
- /*
- if (model.getValue(path + "glycostestyn") == "Y"){
-
- model.removenode("/root/hidden/popup/rsrvaddinfo");
-
- model.makeValue("/root/hidden/popup/rsrvaddinfo/glycosyn", model.getValue(path + "glycosyn"));
- model.makeValue("/root/hidden/popup/rsrvaddinfo/glycoscure", model.getValue(path + "glycoscure"));
- model.makeValue("/root/hidden/popup/rsrvaddinfo/reqhospcd", model.getValue(path + "reqhospcd"));
- model.makeValue("/root/hidden/popup/rsrvaddinfo/rsrvrem", model.getValue(path + "rsrvrem"));
- model.makeValue("/root/hidden/popup/rsrvaddinfo/phone", model.getValue("/root/main/ptinfo/hometel"));
- model.makeValue("/root/hidden/popup/rsrvaddinfo/rownum", 1);
- model.makeValue("/root/hidden/popup/rsrvaddinfo/srchrsrvtm", model.getValue(path + "srchrsrvtm"));
-
- model.removeNodeset("/root/main/subordlist/subordlist1");
-
- modal("SPAEA05000", "", "200", "200", "SPAEA05000","/root/hidden/popup/rsrvaddinfo", "/root/hidden");
-
- var glycosyn = model.getValue("/root/main/subordlist/subordlist1/glycosyn");
-
- if (glycosyn == "") {
- messageBox("해당 처방코드는 당뇨유무 체크가 필수 항목입니다", "E999", "");
- return;
- }
-
- model.setValue(path + "glycosyn", model.getValue("/root/main/subordlist/subordlist1/glycosyn"));
- model.setValue(path + "glycoscure", model.getValue("/root/main/subordlist/subordlist1/glycoscure"));
- model.setValue(path + "reqhospcd", model.getValue("/root/main/subordlist/subordlist1/reqhospcd"));
- model.setValue(path + "rsrvrem", model.getValue("/root/main/subordlist/subordlist1/rsrvrem"));
- grd_excu.refresh();
- }
- */
- }
-
- function fSetFuncExcuInfo() {
-
- var cnt = instance1.selectNodes("/root/main/fcexlist/fcexinfo").length;
- for (var i = 1; i <= cnt; i++) {
- if (i == grd_fcex.row) {
- grd_fcex.rowStyle(i, "data", "background-color") = "#b7ffb7"; // 설정 행
- } else if (model.getValue("/root/main/fcexlist/fcexinfo[" + i + "]/chk") == "Y") {
- grd_fcex.rowStyle(i, "data", "background-color") = "#ececec"; // 선택 행
- } else {
- grd_fcex.rowStyle(i, "data", "background-color") = "#ffffff"; // 비선택 행
- }
- }
-
- FUNC_SEL_ROW = grd_fcex.row;
-
- if (!checkOpener()) {
- fTopInfo();
- }
-
- var path = "/root/main/fcexlist/fcexinfo[" + grd_fcex.row + "]/";
-
- // 예약일 설정
- if (model.getValue(path + "srchrsrvdt") != "") {
- model.setValue("/root/send/data/rsrvdd", model.getValue(path + "srchrsrvdt").substr(0, 8));
- } else {
- model.setValue("/root/send/data/rsrvdd", "");
- }
-
- // 수행부서 설정
- model.setValue("/root/send/data/suppdeptcd", model.getValue(path + "suppdeptcd"));
-
- // 검사실 목록 설정
- model.resetInstanceNode("/root/main/excuroomlist/excuroominfo");
- var roomNmArr = model.getValue(path + "rsrvexcuroompossnm").split("^");
- for (var i = 0; i < roomNmArr.length; i++) {
- model.makeValue("/root/main/excuroomlist/excuroominfo[" + ( i + 1 ) + "]/excuroomcd", roomNmArr[i].split("|")[0]);
- model.makeValue("/root/main/excuroomlist/excuroominfo[" + ( i + 1 ) + "]/excuroomnm", roomNmArr[i].split("|")[1]);
- }
- grd_room.refresh();
- grd_room.resizeCells();
- model.setValue("/root/send/data/excuroomcd", "");
- grd_room.isSelected(grd_room.row) = false;
-
- // 검사안내문 유무에 따른 설정
- /*
- btn_infoprt.disabled = true;
- if (model.getValue(path + "tmpldata") == "") {
- btn_infoprt.disabled = true;
- } else {
- btn_infoprt.disabled = false;
- }
- */
-
- // 처방 전달 사항 설정
- var prcpcmt = model.getValue(path + "prcpdelivefact").replace(/(^\s*)|(\s*$)/gi, "");
- model.setValue("/root/hidden/prcpcmt", prcpcmt);
- tar_prcpcmt.refresh();
- if (prcpcmt == "" || prcpcmt == "-") {
- tar_prcpcmt.attribute("background-color") = "#ffffff";
- } else {
- tar_prcpcmt.attribute("background-color") = "#ffff78";
- }
-
- // 상병 정보 설정
- model.setValue("/root/hidden/memoinfo/diag", model.getValue(path + "diag"));
- tar_diag.refresh();
-
- // 환자 전달 사항 설정
- model.setValue("/root/hidden/memoinfo/ptmemo", model.getValue(path + "ptmemo"));
- tar_ptmemo.refresh();
-
- // 부서/검사실별 메모 설정
- model.setValue("/root/hidden/memoinfo/drflag", "D");
- rdo_drflag.refresh();
- model.setValue("/root/hidden/memoinfo/drmemo", model.getValue(path + "deptmemo"));
- tar_drmemo.refresh();
-
- // 일자별 검사 현황 초기화
- var srchdd = model.getValue("/root/send/data/srchdd");
- fSetCalendar(srchdd.toDate());
-
- // 검사실 예약 현황 초기화
- model.removenode("/root/main3/rmrvlist");
- model.makeNode("/root/main3/rmrvlist");
- grd_rmrv.refresh();
-
- }
-
- function fSetExcuRoom(pTimeFlag) {
-
- if (EXCU_SEL_ROW < 1) {
- return;
- }
-
- switch1.attribute("height") = "190";
- grd_excu.attribute("height") = grd_fcex.attribute("height") = grd_anex.attribute("height") = "185px";
- btn_excuex.attribute("background-image") = "../../../com/commonweb/images/btn_send_bottom.gif";
-
- if (!FUNC_FLAG) {
-
- grd_excu.row = EXCU_SEL_ROW;
-
- var path = "/root/main/exculist/excuinfo[" + grd_excu.row + "]/";
-
- // 검사실 설정
- /*
- model.setValue(path + "excuroomcd", model.getValue("/root/main/excuroomlist/excuroominfo[" + grd_room.row + "]/excuroomcd"));
- model.setValue(path + "examroomnm", model.getValue("/root/main/excuroomlist/excuroominfo[" + grd_room.row + "]/excuroomnm"));
- grd_excu.refresh();
-
- if (model.getValue(path + "excuroomcd") != model.getValue(path + "bf_excuroomcd")) {
- grd_excu.cellStyle("color", EXCU_SEL_ROW, grd_excu.colRef("examroomnm")) = "#0000ff";
- } else {
- grd_excu.cellStyle("color", EXCU_SEL_ROW, grd_excu.colRef("examroomnm")) = "#000000";
- }
- */
-
- model.setValue("/root/send/data/excuroomcd", model.getValue("/root/main/excuroomlist/excuroominfo[" + grd_room.row + "]/excuroomcd"));
-
- } else {
-
- grd_fcex.row = FUNC_SEL_ROW;
-
- var path = "/root/main/fcexlist/fcexinfo[" + grd_fcex.row + "]/";
-
- // 검사실 설정
- /*
- model.setValue(path + "excuroomcd", model.getValue("/root/main/excuroomlist/excuroominfo[" + grd_room.row + "]/excuroomcd"));
- model.setValue(path + "examroomnm", model.getValue("/root/main/excuroomlist/excuroominfo[" + grd_room.row + "]/excuroomnm"));
- grd_fcex.refresh();
- */
-
- model.setValue("/root/send/data/excuroomcd", model.getValue("/root/main/excuroomlist/excuroominfo[" + grd_room.row + "]/excuroomcd"));
- }
-
- // 검사실별 일별 현황 조회 기준 설정 적용
- if (pTimeFlag) {
- if (instance1.selectNodes("/root/init/init_pam/P0130list/P0130[cdid='" + model.getValue("/root/send/data/excuroomcd") + "']").length > 0) {
- model.setValue("/root/send/data/statflag", "T");
- } else {
- model.setValue("/root/send/data/statflag", "C");
- }
- }
-
- // 일자별 가용 현황
- fGetDayRsrvList();
-
- // 오늘 날짜 배경색 설정
- fSetTodayColor();
-
- // 검사실 예약 내역 초기화
- model.removenode("/root/main3/rmrvlist");
- model.makeNode("/root/main3/rmrvlist");
- grd_rmrv.refresh();
-
- if (!FUNC_FLAG) {
- if (grd_room.row > 0) {
- fGetRsrvCtrlList(grd_excu, grd_excu.row, model.getValue("/root/main/excuroomlist/excuroominfo[" + grd_room.row + "]/excuroomcd"));
- } else {
- fGetRsrvCtrlList(grd_excu, grd_excu.row);
- }
- }
- }
-
- // 예약일에 따른 가용 인원 표시
- function fGetDayRsrvList() {
-
- var startDay = ( model.getValue("/root/send/data/srchdd").substr(0, 6) + "01" ).toDate().getDay();
-
- var cnt = instance1.selectNodes("/root/hidden/dutlist/dutinfo").length;
-
- for (var i = 1; i <= cnt; i++) {
-
- var basedd = model.getValue("/root/hidden/dutlist/dutinfo[" + i + "]/basedd");
- var col = basedd.toDate().getDay();
- var row = Math.ceil( ( startDay + Number(basedd.substr(6, 2)) ) / 7 );
-
- grd_calendar.cellStyle("background-color", row, col) = "#ffffff";
- grd_calendar.cellStyle("background-color", row, col + 7) = "#ffffff";
-
- grd_calendar.valueMatrix(row, col + 7) = "";
- }
-
- submit("TRPEA00102");
-
- var path = "/root/main2/ddrvlist/ddrvinfo";
- cnt = instance1.selectNodes(path).length;
-
- for (var i = 1; i <= cnt; i++) {
-
- var rsrvdd = model.getValue(path + "[" + i + "]/rsrvdd");
- var capacnt = model.getValue(path + "[" + i + "]/capacnt")
- var idlecnt = model.getValue(path + "[" + i + "]/idlecnt");
-
- var col = rsrvdd.toDate().getDay();
- var row = Math.ceil( ( startDay + Number(rsrvdd.substr(6, 2)) ) / 7 );
-
- capacnt = model.getValue("/root/send/data/statflag") == "C" ? capacnt : idlecnt;
-
- grd_calendar.valueMatrix(row, col + 7) = "(" + capacnt + ")";
-
- // 예약 가능 일자 표시
- if (rsrvdd > getCurrentDate() && Number(capacnt) > 0) {
- grd_calendar.cellStyle("background-color", row, col) = "#c4e693";
- grd_calendar.cellStyle("background-color", row, col + 7) = "#c4e693";
- }
- }
- }
-
- function fGetRoomRsrvList() {
-
- var path = !FUNC_FLAG ? "/root/main/exculist/excuinfo" : "/root/main/fcexlist/fcexinfo";
-
- var cnt = instance1.selectNodes(path).length;
- if (cnt < 1 || model.getValue(path + "/calcscorcd") == "") {
- return;
- }
-
- var grd = !FUNC_FLAG ? grd_excu : grd_fcex;
-
- if (grd.row < 1) {
- return;
- }
-
- model.setValue("/root/send/data/suppdeptcd", model.getValue(path + "[" + grd.row + "]/suppdeptcd"));
- model.setValue("/root/send/data/excuroomcd", model.getValue("/root/main/excuroomlist/excuroominfo[" + grd_room.row + "]/excuroomcd"));
-
- var totflag = model.getValue("/root/send/data/totflag");
-
- if (totflag != "Y" && model.getValue("/root/send/data/excuroomcd") == "") {
- return;
- }
-
- grd_rmrv.rebuildStyle();
-
- submit("TRPEA00103", false);
-
- path = "/root/main3/rmrvlist/rmrvinfo";
- cnt = instance1.selectNodes(path).length;
-
- // 소요 시간 MERGE 해제 로직
- for (var i = 1; i <= cnt; i++) {
- model.makeValue(path + "[" + i + "]/mergestop", i);
- }
-
- grd_rmrv.refresh();
-
- if (totflag == "Y") {
- grd_rmrv.colHidden(grd_rmrv.colRef("excuroomnm")) = false;
- } else {
- grd_rmrv.colHidden(grd_rmrv.colRef("excuroomnm")) = true;
- }
-
- grd_rmrv.resizeCells();
-
- PREV_RMRV_ROW = PREV_RMRV_COL = -1;
-
- var srchdd = model.getValue("/root/send/data/srchdd");
- var currdd = getCurrentDate();
- var currtm = Number(getCurrentTime().substr(0, 4));
- var setflag = false;
- var tmflag = false;
-
- for (var i = 1; i <= cnt; i++) {
-
- var rsrvtm = model.getValue(path + "[" + i + "]/rsrvtm");
- var stat = Number(model.getValue(path + "[" + i + "]/stat"));
- var capa = Number(model.getValue(path + "[" + i + "]/capa"));
- var excutm = model.getValue(path + "[" + i + "]/excutm");
-
- if (stat > capa) { // 가용인원 초과
- grd_rmrv.rowStyle(i, "data", "background-color") = "#ffd2d2";
- }
-
- // 검사 소요 시간 확인
- if (excutm != "" && i <= cnt - 1) {
- var rsrvdt = srchdd + rsrvtm;
- var addtm = rsrvdt.toDate("YYYYMMDDhhmm").getAddDate(Number(excutm), "m").getDateFormat("hhmm");
-
- for (var j = i + 1; j <= cnt; j++) {
- var rsrvtm2 = model.getValue(path + "[" + j + "]/rsrvtm");
- if (rsrvtm2 != rsrvtm && rsrvtm2 < addtm) {
- model.setValue(path + "[" + j + "]/tmflag", "Y");
- tmflag = true;
- }
- }
- }
-
- // 검사 시간 초과
- if (model.getValue(path + "[" + i + "]/tmflag") == "Y") {
- grd_rmrv.rowStyle(i, "data", "color") = "#ff0000";
- }
-
- // 응급 시각 표시
- if (model.getValue(path + "[" + i + "]/ertmflag") == "Y") {
- grd_rmrv.rowStyle(i, "data", "background-color") = "#ff0000";
- grd_rmrv.rowStyle(i, "data", "color") = "#ffff00";
- }
-
- // 현재 시각에 맞춰 TopRow 설정
- if (srchdd == currdd && Number(rsrvtm) >= currtm && !setflag) {
- grd_rmrv.topRow = i;
- setflag = true;
- }
-
- if (i == cnt && srchdd == currdd && !setflag) {
- grd_rmrv.bottomRow = i;
- setflag = true;
- }
- }
-
- if (tmflag) {
- grd_rmrv.refresh();
- }
-
- if (!setflag) {
- grd_rmrv.topRow = 1;
- }
-
- if (srchdd >= currdd) {
- for (var i = 1; i < grd_rmrv.rows ; i++ ) {
- if(model.getValue("/root/main/ptinfo/hngnm") == model.getValue("/root/main3/rmrvlist/rmrvinfo[" + i + "]/hngnm")
- && model.getValue("/root/send/data/pid") != model.getValue("/root/main3/rmrvlist/rmrvinfo[" + i + "]/pid") ) {
- messageBox("동명이인 예약이 있습니다.", "E999");
- break;
- }
- }
- }
- }
-
- function fChkRoomTimeStat(suppdeptcd, excuroomcd, rsrvdd, rsrvtm, stat) {
-
- model.setValue("/root/send/stat/suppdeptcd", suppdeptcd);
- model.setValue("/root/send/stat/excuroomcd", excuroomcd);
- model.setValue("/root/send/stat/rsrvdd", rsrvdd);
- model.setValue("/root/send/stat/rsrvtm", rsrvtm);
- submit("TRPEA00105", false);
-
- var currstat = model.getValue("/root/hidden/statlist/statinfo/stat");
- if (stat == currstat) {
- return true;
- } else {
- var str = "[ " + rsrvtm.substr(0, 2) + ":" + rsrvtm.substr(2, 2) + " ] " + stat + " 건 ▶ " + currstat + " 건";
- messageBox("해당 시각의 검사 현황이 변경되었습니다.\n\n" + str + "\n\n검사실 예약 현황이 다시 조회됩니다.", "E999");
-
- fGetRoomRsrvList();
-
- return false;
- }
- }
-
- function fChkRoomTimeStatAll() {
-
- var cnt = instance1.selectNodes("/root/main/exculist/excuinfo").length;
- var sCnt = instance1.selectNodes("/root/temp/exstlist/exstinfo").length;
-
- var flag = true;
-
- for (var i = 1; i <= cnt; i++) {
-
- if (!flag) {
- break;
- }
-
- var path = "/root/main/exculist/excuinfo[" + i + "]/";
-
- if (model.getValue(path + "chk") != "Y") {
- continue;
- }
-
- for (var j = 1; j <= sCnt; j++) {
-
- if (model.getValue("/root/temp/exstlist/exstinfo[" + j + "]/rowidx") != i) {
- continue;
- }
-
- model.setValue("/root/send/stat/suppdeptcd", model.getValue(path + "suppdeptcd"));
- model.setValue("/root/send/stat/excuroomcd", model.getValue(path + "excuroomcd"));
-
- var rsrvdt = model.getValue(path + "srchrsrvtm");
-
- model.setValue("/root/send/stat/rsrvdd", rsrvdt.substr(0, 8));
- model.setValue("/root/send/stat/rsrvtm", rsrvdt.substr(8, 4));
-
- submit("TRPEA00105", false);
-
- var currstat = model.getValue("/root/hidden/statlist/statinfo/stat");
-
- var stat = model.getValue("/root/temp/exstlist/exstinfo[" + j + "]/stat");
- var rsrvtm = model.getValue("/root/temp/exstlist/exstinfo[" + j + "]/rsrvtm");
-
- if (rsrvdt.substr(8, 4) == rsrvtm && currstat != stat) {
-
- var str = "[ " + model.getValue("/root/temp/exstlist/exstinfo[" + j + "]/rowidx") + " ] 번째 행의 예약 현황이 변경되었습니다.\n\n"
- + "[ " + rsrvtm.substr(0, 2) + ":" + rsrvtm.substr(2, 2) + " ] " + stat + " 건 ▶ " + currstat + " 건\n\n"
- + "해당 검사에 대한 예약 일시를 다시 설정한 후 예약해 주십시오.";
-
- messageBox(str, "E999");
-
- flag = false;
-
- break;
- }
- }
- }
-
- return flag;
- }
-
- function fSetRmrvFocusRect() {
-
- var scol = 0;
- var ecol = 0;
-
- var totflag = model.getValue("/root/send/data/totflag") == "Y" ? true : false;
-
- if (PREV_RMRV_ROW > 0) {
-
- if (PREV_RMRV_COL <= grd_rmrv.colRef("capa")) {
- scol = grd_rmrv.colRef("rsrvtm");
- ecol = grd_rmrv.colRef("capa");
-
- if (totflag) {
- var rsrvTm = model.getValue("/root/main3/rmrvlist/rmrvinfo[" + PREV_RMRV_ROW + "]/rsrvtm");
- var tmBeginRow = 0;
- var tmEndRow = 0;
-
- var cnt = instance1.selectNodes("/root/main3/rmrvlist/rmrvinfo").length;
- for (var i = 1; i <= cnt; i++) {
- if (model.getValue("/root/main3/rmrvlist/rmrvinfo[" + i + "]/rsrvtm") == rsrvTm) {
- if (tmBeginRow < 1) {
- tmBeginRow = i;
- }
-
- if ( ( i < cnt && model.getValue("/root/main3/rmrvlist/rmrvinfo[" + ( i + 1 ) + "]/rsrvtm") != rsrvTm )
- || ( i == cnt && tmBeginRow > 0 )) {
- tmEndRow = i;
- break;
- }
- }
- }
-
- grd_rmrv.cellStyle("border-style", tmBeginRow, scol, tmEndRow, ecol) = "solid";
- grd_rmrv.cellStyle("border-color", tmBeginRow, scol, tmEndRow, ecol) = "#b0b0b0";
- grd_rmrv.cellStyle("border-left-color", tmBeginRow, scol, tmEndRow, ecol) = "#ffffff";
- grd_rmrv.cellStyle("border-left-width", tmBeginRow, scol, tmEndRow, ecol) = "1px";
- grd_rmrv.cellStyle("border-top-width", tmBeginRow, scol, tmEndRow, ecol) = "0px";
- grd_rmrv.cellStyle("border-right-width", tmBeginRow, scol, tmEndRow, ecol) = "1px";
- grd_rmrv.cellStyle("border-bottom-width", tmBeginRow, scol, tmEndRow, ecol) = "1px";
- }
- } else if (PREV_RMRV_COL <= grd_rmrv.colRef("hngnm")) {
- scol = grd_rmrv.colRef("pid");
- ecol = grd_rmrv.colRef("hngnm");
- } else {
- scol = grd_rmrv.colRef("age");
- ecol = grd_rmrv.cols - 1;
- }
-
- grd_rmrv.cellStyle("border-style", PREV_RMRV_ROW, scol, PREV_RMRV_ROW, ecol) = "solid";
- grd_rmrv.cellStyle("border-color", PREV_RMRV_ROW, scol, PREV_RMRV_ROW, ecol) = "#b0b0b0";
- grd_rmrv.cellStyle("border-left-color", PREV_RMRV_ROW, scol, PREV_RMRV_ROW, ecol) = "#ffffff";
- grd_rmrv.cellStyle("border-left-width", PREV_RMRV_ROW, scol, PREV_RMRV_ROW, ecol) = "1px";
- grd_rmrv.cellStyle("border-top-width", PREV_RMRV_ROW, scol, PREV_RMRV_ROW, ecol) = "0px";
- grd_rmrv.cellStyle("border-right-width", PREV_RMRV_ROW, scol, PREV_RMRV_ROW, ecol) = "1px";
- grd_rmrv.cellStyle("border-bottom-width", PREV_RMRV_ROW, scol, PREV_RMRV_ROW, ecol) = "1px";
- }
-
- var row = PREV_RMRV_ROW = grd_rmrv.mouseRow;
- var col = PREV_RMRV_COL = grd_rmrv.mouseCol;
-
- var color = "";
-
- if (col <= grd_rmrv.colRef("capa")) {
-
- scol = grd_rmrv.colRef("rsrvtm");
- ecol = grd_rmrv.colRef("capa");
- color = "crimson";
-
- if (totflag) {
- var rsrvTm = model.getValue("/root/main3/rmrvlist/rmrvinfo[" + row + "]/rsrvtm");
- var tmBeginRow = 0;
- var tmEndRow = 0;
-
- var cnt = instance1.selectNodes("/root/main3/rmrvlist/rmrvinfo").length;
- for (var i = 1; i <= cnt; i++) {
- if (model.getValue("/root/main3/rmrvlist/rmrvinfo[" + i + "]/rsrvtm") == rsrvTm) {
- if (tmBeginRow < 1) {
- tmBeginRow = i;
- }
-
- if ( ( i < cnt && model.getValue("/root/main3/rmrvlist/rmrvinfo[" + ( i + 1 ) + "]/rsrvtm") != rsrvTm )
- || ( i == cnt && tmBeginRow > 0 )) {
- tmEndRow = i;
- break;
- }
- }
- }
-
- grd_rmrv.cellStyle("border-style", tmBeginRow, scol, tmEndRow, scol) = "solid";
- grd_rmrv.cellStyle("border-color", tmBeginRow, scol, tmEndRow, scol) = color;
-
- grd_rmrv.cellStyle("border-left-width", tmBeginRow, scol, tmEndRow, scol) = "2px";
- grd_rmrv.cellStyle("border-top-width", tmBeginRow, scol, tmEndRow, scol) = "2px";
- grd_rmrv.cellStyle("border-right-width", tmBeginRow, scol, tmEndRow, scol) = "2px";
- grd_rmrv.cellStyle("border-bottom-width", tmBeginRow, scol, tmEndRow, scol) = "3px";
-
- grd_rmrv.cellStyle("border-style", row, scol, row, ecol) = "solid";
-
- for (var i = scol + 1; i <= ecol; i++) {
- grd_rmrv.cellStyle("border-left-color", row, i, row, i) = "#ffffff";
- grd_rmrv.cellStyle("border-left-width", row, i, row, i) = "1px";
-
- grd_rmrv.cellStyle("border-top-color", row, i, row, i) = color;
- grd_rmrv.cellStyle("border-top-width", row, i, row, i) = "2px";
-
- grd_rmrv.cellStyle("border-right-color", row, i, row, i) = i == ecol ? color : "#b0b0b0";
- grd_rmrv.cellStyle("border-right-width", row, i, row, i) = i == ecol ? "3px" : "1px";
-
- grd_rmrv.cellStyle("border-bottom-color", row, i, row, i) = color;
- grd_rmrv.cellStyle("border-bottom-width", row, i, row, i) = "3px";
- }
- }
- } else if (col <= grd_rmrv.colRef("hngnm")) {
- scol = grd_rmrv.colRef("pid");
- ecol = grd_rmrv.colRef("hngnm");
- color = "#0000ff";
- } else {
- scol = grd_rmrv.colRef("age");
- ecol = grd_rmrv.cols - 1;
- color = "#646464";
- }
-
- if (totflag) {
- return;
- }
-
- grd_rmrv.cellStyle("border-style", row, scol, row, ecol) = "solid";
-
- for (var i = scol; i <= ecol; i++) {
-
- if (i == scol) {
- grd_rmrv.cellStyle("border-left-color", row, i, row, i) = color;
- grd_rmrv.cellStyle("border-left-width", row, i, row, i) = "2px";
- } else {
- grd_rmrv.cellStyle("border-left-color", row, i, row, i) = "#ffffff";
- grd_rmrv.cellStyle("border-left-width", row, i, row, i) = "1px";
- }
-
- grd_rmrv.cellStyle("border-top-color", row, i, row, i) = color;
- grd_rmrv.cellStyle("border-top-width", row, i, row, i) = "2px";
-
- grd_rmrv.cellStyle("border-right-color", row, i, row, i) = i == ecol ? color : "#b0b0b0";
- grd_rmrv.cellStyle("border-right-width", row, i, row, i) = i == ecol ? "3px" : "1px";
-
- grd_rmrv.cellStyle("border-bottom-color", row, i, row, i) = color;
- grd_rmrv.cellStyle("border-bottom-width", row, i, row, i) = "3px";
- }
- }
-
- function fCheckRsrv() {
-
- var cnt = instance1.selectNodes("/root/main/exculist/excuinfo").length;
- if (cnt < 1 || model.getValue("/root/main/exculist/excuinfo/calcscorcd") == "") {
- messageBox("조회된 검사 내역이 없습니다.", "E999");
- return;
- }
-
- var chkcnt = 0;
- var prtflag = false;
- var infoflag = false;
- var modStr = "";
- var msgCnt = 0;
- var ovrCnt = 0;
-
- grd_excu.row = EXCU_SEL_ROW;
-
- for (var i = 1; i <= cnt; i++) {
-
- var path = "/root/main/exculist/excuinfo[" + i + "]/";
-
- if (model.getValue(path + "chk") != "Y") {
- continue;
- }
-
- chkcnt++;
-
- if (model.getValue(path + "excuroomcd") == "") {
- messageBox("[ " + i + " ] 번째 행의 검사실이 지정되지 않았습니다.", "E999");
- return;
- }
-
- if (model.getValue(path + "srchrsrvtm") == "") {
- messageBox("[ " + i + " ] 번째 행의 검사 시각이 설정되지 않았습니다.", "E999");
- return;
- }
-
- // 중복 예약 확인
- if (!fChkRoomTimeStatAll()) {
- return;
- }
-
- var rsrvdd = model.getValue(path + "srchrsrvtm").substr(0, 8);
-
- // 타검사 체크
- var acnt = instance1.selectNodes("/root/main/anexlist/anexinfo").length;
- for (var j = 1; j <= acnt; j++) {
- if (model.getValue("/root/main/anexlist/anexinfo[" + j + "]/rsrvflagyn") == "예약") {
- var chkdd = model.getValue("/root/main/anexlist/anexinfo[" + j + "]/srchrsrvtm").substr(0, 8);
- if (rsrvdd == chkdd) {
- if (messageBox("[ " + i + " ] 번째 행의 검사는 타검사에서 동일한 예약 일자가 존재합니다.", "Q003", "") == 6 ) {
- break;
- } else {
- return;
- }
- }
- }
- }
-
- // 변경 시간 확인
- var bfdt = model.getValue(path + "bf_srchrsrvtm");
- var rvdt = model.getValue(path + "srchrsrvtm");
- if (model.getValue(path + "rsrvflagyn") == "예약") {
- if (rvdt != bfdt) {
-
- msgCnt++;
-
- if (msgCnt > 7) {
- ovrCnt++;
- } else {
- modStr += "[ " + i + " ] 번째 행의 예약 시간이 변경되었습니다.\r\n\r\n[ " + model.getValue(path + "prcpnm") + " ]\r\n\r\n"
- + bfdt.substr(0, 4) + "-" + bfdt.substr(4, 2) + "-" + bfdt.substr(6, 2) + " " + bfdt.substr(8, 2) + ":" + bfdt.substr(10, 2)
- + " → "
- + rvdt.substr(0, 4) + "-" + rvdt.substr(4, 2) + "-" + rvdt.substr(6, 2) + " " + rvdt.substr(8, 2) + ":" + rvdt.substr(10, 2)
- + "\r\n\r\n\r\n";
- }
-
- prtflag = true;
- }
- } else {
- prtflag = true;
- }
-
- // 당뇨 체크 하지 않음
- /*
- if (model.getValue(path + "rsrvflagyn") != "예약"
- && model.getValue(path + "glycostestyn") == "Y" && model.getValue(path + "glycosyn") == "") {
- messageBox("해당 처방코드는 당뇨유무 체크가 필수 항목입니다", "E999", "");
- return;
- }
- */
-
- if (model.getValue(path + "tmpldata") != "") {
- infoflag = true;
- }
- }
-
- if (chkcnt < 1) {
- messageBox("선택된 검사 내역이 없습니다.", "E999");
- return;
- }
-
- if (ovrCnt > 0) {
- modStr += "외 [ " + ovrCnt + " ] 건\r\n\r\n\r\n";
- }
-
- if (RSRV_PLCE == "S") { // 건진은 검사 안내문 및 예약 일정표 출력하지 않음
- infoflag = false;
- prtflag = false;
- }
-
- if (infoflag) {
- var rslt = messageBox(modStr + "선택된 [ " + chkcnt + " ] 건 중 검사 안내문이 있는 검사가 있습니다.\n예약 후 검사 안내문을 출력하시겠습니까?", "S999", "\r\n예약을 취소하시려면 취소를 누르십시오.");
- if (rslt == 6) { // 예
- infoflag = true;
- } else if (rslt == 7) { // 아니오
- infoflag = false;
- } else { // 취소
- return;
- }
- } else if (messageBox(modStr + "선택된 [ " + chkcnt + " ] 건의 검사를 예약 하시겠습니까?", "Q999") != 6) {
- return;
- }
-
- // 칠곡은 예약일정표 자동 출력 기능 사용하지 않음
- if (getUserInfo("dutplceinstcd") == "032") {
- prtflag = false;
- }
-
- if (fExecRsrv("rsrv")) {
-
- if (infoflag) {
- fInfoPrt();
- }
-
- if (prtflag) {
- fRsrvPrt(model.getValue("/root/send/data/pid"));
- }
-
- fGetExcuList(model.getValue("/root/send/data/srchdd"));
- model.setFocus("ipt_pid");
-
- }
- }
-
- function fCheckFuncRsrv() {
-
- var cnt = instance1.selectNodes("/root/main/fcexlist/fcexinfo").length;
- if (cnt < 1 || model.getValue("/root/main/fcexlist/fcexinfo/calcscorcd") == "") {
- messageBox("조회된 검사 내역이 없습니다.", "E999");
- return;
- }
-
- var chkcnt = 0;
- var prtflag = false;
- var infoflag = false;
- var modStr = "";
-
- grd_fcex.row = FUNC_SEL_ROW;
-
- for (var i = 1; i <= cnt; i++) {
-
- var path = "/root/main/fcexlist/fcexinfo[" + i + "]/";
-
- if (model.getValue(path + "chk") != "Y") {
- continue;
- }
-
- chkcnt++;
-
- if (model.getValue(path + "excuroomcd") == "") {
- messageBox("[ " + i + " ] 번째 행의 검사실이 지정되지 않았습니다.", "E999");
- return;
- }
-
- if (model.getValue(path + "srchrsrvdt") == "") {
- messageBox("[ " + i + " ] 번째 행의 검사 시각이 설정되지 않았습니다.", "E999");
- return;
- }
-
- if (Number(model.getValue(path + "execprcpstatcd")) > "230") {
- messageBox("선택된 내역 중 실시된 처방이 있습니다. - [ " + i + " ] 번째 행", "E999");
- return;
- }
-
- // 중복 예약 확인
- // 일단 통합 예약에서만 확인함
- /*
- if (!fChkRoomTimeStatAll()) {
- return;
- }
- */
-
- // 변경 시간 확인
- var bfdt = model.getValue(path + "bf_srchrsrvtm");
- var rvdt = model.getValue(path + "srchrsrvdt");
- if (model.getValue(path + "rsrvflag") == "예약") {
- if (rvdt != bfdt) {
- modStr += "[ " + i + " ] 번째 행의 예약 시간이 변경되었습니다.\r\n\r\n[ " + model.getValue(path + "prcpnm") + " ]\r\n\r\n"
- + bfdt.substr(0, 4) + "-" + bfdt.substr(4, 2) + "-" + bfdt.substr(6, 2) + " " + bfdt.substr(8, 2) + ":" + bfdt.substr(10, 2)
- + " → "
- + rvdt.substr(0, 4) + "-" + rvdt.substr(4, 2) + "-" + rvdt.substr(6, 2) + " " + rvdt.substr(8, 2) + ":" + rvdt.substr(10, 2)
- + "\r\n\r\n\r\n";
- prtflag = true;
- }
- } else {
- prtflag = true;
- }
-
- /*
- if (model.getValue(path + "tmpldata") != "") {
- infoflag = true;
- }
- */
- }
-
- if (chkcnt < 1) {
- messageBox("선택된 검사 내역이 없습니다.", "E999");
- return;
- }
-
- if (infoflag) {
- var rslt = messageBox(modStr + "선택된 [ " + chkcnt + " ] 건 중 검사 안내문이 있는 검사가 있습니다.\n예약 후 검사 안내문을 출력하시겠습니까?", "S999", "\r\n예약을 취소하시려면 취소를 누르십시오.");
- if (rslt == 6) { // 예
- infoflag = true;
- } else if (rslt == 7) { // 아니오
- infoflag = false;
- } else { // 취소
- return;
- }
- } else if (messageBox(modStr + "선택된 [ " + chkcnt + " ] 건의 검사를 예약 하시겠습니까?", "Q999") != 6) {
- return;
- }
-
- if (fExecFuncRsrv("rsrv")) {
-
- if (infoflag) {
- fFuncInfoPrt();
- }
-
- if (prtflag) {
- fRsrvPrt(model.getValue("/root/main/fcexlist/fcexinfo[" + grd_fcex.row + "]/pid"));
- }
-
- fGetFuncExcuList(model.getValue("/root/send/data/srchdd"));
- model.setFocus("ipt_pid");
-
- }
- }
-
- function fExecRsrv(flag, row) {
-
- var rCSV = "pid" + "▦"
- + "excuroomcd" + "▦"
- + "prcpdd" + "▦"
- + "execprcpuniqno" + "▦"
- + "rsrvflag" + "▦"
- + "rsrvdt" + "▦"
- + "srchrsrvtm" + "▦"
- + "prcpkindcd" + "▦"
- + "excupartcd" + "▦"
- + "indd" + "▦"
- + "actorddd" + "▦"
- + "orddeptcd" + "▦"
- + "orddrid" + "▦"
- + "calcscorcd" + "▦"
- + "execrid" + "▦"
- + "rsrvrem" + "▦"
- + "suppdeptcd" + "▦"
- + "cnclcd" + "▦"
- + "pacsnocretyn" + "▦"
- + "rgsttm" + "▦"
- + "rgstrid" + "▦"
- + "prcpdelivefact" + "▦"
- + "orddepthngnm" + "▦"
- + "prcpnm" + "▦"
- + "orddd" + "▦"
- + "rgstdepthngnm" + "▦"
- + "examroomnm" + "▦"
- + "bf_srchrsrvtm" + "▦"
- + "rsrvflagyn" + "▦"
- + "prcpexecdeptcd" + "▦"
- + "rsrvtmcntlyn" + "▦"
- + "rsrvpsnnocntlyn" + "▦"
- + "excuroom" + "▦"
- + "telrsrvyn" + "▦"
- + "eqmtifyn" + "▦"
- + "glycosyn" + "▦"
- + "glycoscure" + "▦"
- + "reqhospcd" + "▦"
- + "prcpgenrflag" + "▦"
- + "rsrvtmplcd" + "▦"
- + "emryn" + "▦"
- + "timeyn" + "▦"
- + "rsrvsuppdeptcd" + "▦"
- + "prercptyn" + "▦"
- + "rcptrsrvyn" + "▦"
- + "prcptdayrcptyn" + "▩";
-
- var rsrvdeptcd = getScreenPrestDeptCd() == "" ? getUserInfo("dutplcecd") : getScreenPrestDeptCd();
-
- var cnt = instance1.selectNodes("/root/main/exculist/excuinfo").length;
-
- for (var i = 1; i <= cnt; i++) {
-
- if (row != null && i != row) {
- continue;
- }
-
- var path = "/root/main/exculist/excuinfo[" + i + "]/";
-
- if (model.getValue(path + "chk") != "Y") {
- continue;
- }
-
- var prercptyn = "N";
- if (model.getValue(path + "aftrcptinfo") == "V" || // 후불 수납환자
- model.getValue(path + "rcptyn") == "수납" || // 기수납자
- model.getValue(path + "genrflag") == "S" || // 건진환자
- model.getValue(path + "genrflag") == "I" || // 입원환자
- model.getValue(path + "genrflag") == "E") { // 응급환자
-
- prercptyn = "Y";
- }
-
- rCSV += model.getValue(path + "pid") + "▦" +
- model.getValue(path + "excuroomcd") + "▦" +
- model.getValue(path + "prcpdd") + "▦" +
- model.getValue(path + "execprcpuniqno") + "▦" +
- model.getValue(path + "rsrvflag") + "▦" +
- model.getValue(path + "rsrvdt") + "▦" +
- model.getValue(path + "srchrsrvtm") + "▦" +
- model.getValue(path + "prcpkindcd") + "▦" +
- model.getValue(path + "excupartcd") + "▦" +
- model.getValue(path + "indd") + "▦" +
- model.getValue(path + "actorddd") + "▦" +
- model.getValue(path + "orddeptcd") + "▦" +
- model.getValue(path + "orddrid") + "▦" +
- model.getValue(path + "calcscorcd") + "▦" +
- model.getValue(path + "execrid") + "▦" +
- model.getValue(path + "rsrvrem") + "▦" +
- model.getValue(path + "suppdeptcd") + "▦" +
- "" + "▦" + // cnclresncd
- model.getValue(path + "pacsnocretyn") + "▦" +
- model.getValue(path + "rgsttm") + "▦" +
- model.getValue(path + "rgstrid") + "▦" +
- model.getValue(path + "prcpdelivefact") + "▦" +
- model.getValue(path + "orddepthngnm") + "▦" +
- model.getValue(path + "prcpnm") + "▦" +
- model.getValue(path + "orddd") + "▦" +
- model.getValue(path + "rgstdepthngnm") + "▦" +
- model.getValue(path + "examroomnm") + "▦" +
- model.getValue(path + "bf_srchrsrvtm") + "▦" +
- model.getValue(path + "rsrvflagyn") + "▦" +
- model.getValue(path + "prcpexecdeptcd") + "▦" +
- model.getValue(path + "rsrvtmcntlyn") + "▦" +
- model.getValue(path + "rsrvpsnnocntlyn") + "▦" +
- model.getValue(path + "excuroom") + "▦" +
- model.getValue(path + "telrsrvyn") + "▦" +
- model.getValue(path + "eqmtifyn") + "▦" +
- model.getValue(path + "glycosyn") + "▦" +
- model.getValue(path + "glycoscure") + "▦" +
- model.getValue(path + "reqhospcd") + "▦" +
- model.getValue(path + "prcpgenrflag") + "▦" +
- model.getValue(path + "rsrvtmplcd") + "▦" +
- model.getValue(path + "emryn") + "▦" +
- "N" + "▦" + // timeyn (시간 통제 여부)
- rsrvdeptcd + "▦" +
- prercptyn + "▦" +
- model.getValue(path + "rcptrsrvyn") + "▦" + // 미수예약
- model.getValue(path + "prcptdayrcptyn") + "▩"; //당일선수납
- }
-
- model.removeNode("/root/temp/rsrv");
- model.makeNode("/root/temp/rsrv");
-
- setCSVToNode("/root/temp/rsrv", rCSV);
- instance1.selectSingleNode("/root/temp/rsrv").xml;
-
- model.removenode("/root/send/rsrv");
- model.makeNode("/root/send/rsrv");
-
- model.copyNode("/root/send/rsrv", "/root/temp/rsrv");
-
- model.makeValue("/root/send/rsrv/list/flag", flag);
- model.makeValue("/root/send/rsrv/list/chkflag", "T"); // 통합예약
-
- model.removenode("/root/temp/rsrvrtn");
- model.makeNode("/root/temp/rsrvrtn/rtninfo");
-
- return submit("TXAEA02001", false)
- }
-
- function fExecFuncRsrv(flag) {
-
- var nodeList = instance1.selectNodes("/root/main/fcexlist/fcexinfo[chk='Y']");
- var rCSV = getNodeListCSV(nodeList);
-
- model.setValue("/root/send/funcrsrv/data", rCSV);
- model.setValue("/root/send/funcrsrv/flag", flag);
- model.setValue("/root/send/funcrsrv/pamifyn", "N"); // 향후 com.zbcmcode A0486 참조할 것
-
- return submit("TXAEA01101", false);
- }
-
- function fTopInfo() {
-
- var path = "";
- if (!FUNC_FLAG) {
- path = "/root/main/exculist/excuinfo[" + grd_excu.row + "]/";
- } else {
- path = "/root/main/fcexlist/fcexinfo[" + grd_fcex.row + "]/";
- }
-
- var patinfo = "S▦" + model.getValue(path + "prcpdd") + "▦" + model.getValue(path + "execprcpuniqno") + "▦" + getUserInfo("dutplcecd");
-
- setParameter("condparam", patinfo);
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- /*
- var paminfo = getGlobalVariable("paminfo");
- if (paminfo != "") {
- model.removeNodeset("/root/paminfo");
- model.makeNode("/root/paminfo");
- setCSVToNode("/root/paminfo", paminfo);
- }
- */
- }
-
- function fRsrvPrt(pid) {
-
- model.setValue("/root/send/data/prtpid", pid);
-
- if (submit("TRPEA00104", false)) {
- if (model.getValue("/root/hidden/prtlist/prtinfo/pid") != null) {
- // 2015/08/12 출력물 수정위해 부서 코드 세팅(이정택)
- var cnt = getNodesetCount("/root/hidden/prtlist/prtinfo");
- for(var i=1; i<=cnt; i++){
- model.makeValue("/root/hidden/prtlist/prtinfo[" + i + "]/dutplcecd", getUserInfo("dutplcecd"));
-
- //2016/11/30 예약 일정표 출력물에 실제 담당자 전화번호가 찍히도록 프로그램 수정
- if(getUserInfo("dutplceinstcd")=='031' && model.getValue("/root/hidden/prtlist/prtinfo[1]/rsrvtelno") != "" && i>1){
- model.makeValue("/root/hidden/prtlist/prtinfo[" + i + "]/rsrvtelno", model.getValue("/root/hidden/prtlist/prtinfo[1]/rsrvtelno"));
- }
- //2016/11/30 예약 일정표 출력물에 실제 담당자 전화번호가 찍히도록 프로그램 수정
- }
-
- //exeReportPreview("RPPEA00101", "XMLSTR");
-
- // 칠곡은 버튼 클릭시 바로 출력되도록 변경
- if (getUserInfo("dutplceinstcd") == "032") {
- exeReportPreview("RPPEA00102", "XMLSTR", "", "", "true", "", "", "", "", "true");
- } else {
- exeReportPreview("RPPEA00101", "XMLSTR");
- }
- }
- }
- }
-
- function fInfoPrt() {
-
- var cnt = instance1.selectNodes("/root/main/exculist/excuinfo").length;
-
- var tmplArr = new Array();
-
- var prtcnt = 0;
-
- for (var i = 1; i <= cnt; i++) {
-
- var path = "/root/main/exculist/excuinfo[" + i + "]/";
-
- if (i != EXCU_SEL_ROW && model.getValue(path + "chk") != "Y") { // 예약시 자동으로 검사 안내문을 출력하는 경우
- continue;
- }
-
- var tmpldata = model.getValue(path + "tmpldata");
- if (tmpldata == "") {
- continue;
- }
-
- var flag = true;
- for (var j = 0; j < tmplArr.length; j++) {
- if (tmpldata == tmplArr[j]) {
- flag = false;
- break;
- }
- }
-
- if (!flag) {
- continue;
- }
-
- tmplArr[tmplArr.length] = tmpldata;
-
- rtfviewer.OpenProgressBar(1);
-
- var rsrvdt = model.getValue(path + "srchrsrvtm");
- var prcpnm = model.getValue(path + "prcpnm");
- var roomnm = model.getValue(path + "examroomnm");
- var rcptyn = model.getValue(path + "rcptyn");
-
- var vacntno = "";
-
- var yyyy = rsrvdt.substr(0, 4);
- var month = rsrvdt.substr(4, 2);
- var dd = rsrvdt.substr(6, 2);
- var hh = rsrvdt.substr(8, 2);
- var mm = rsrvdt.substr(10, 2);
- var week = rsrvdt.substr(0, 8).toDate().getDayOfWeek("K");
-
- if (Number(hh) > 12) {
- hh = "오후 " + String(Number(hh) - 12);
- } else {
- hh = "오전 " + hh;
- }
-
- var nextdd = ((rsrvdt.substr(0, 8)).toDate()).getAddDate(1).getDateFormat();
- var yyyy2 = nextdd.substr(0, 4);
- var month2 = nextdd.substr(4, 2);
- var dd2 = nextdd.substr(6, 2);
-
- rtfviewer.TextRtf = tmpldata;
-
- rtfviewer.ReplaceRtfCode("pid", model.getValue("/root/send/data/pid"));
- rtfviewer.ReplaceRtfCode("patnm", model.getValue("/root/main/ptinfo/hngnm"));
- rtfviewer.ReplaceRtfCode("roomcd", roomnm + ( model.getValue(path + "slepyn") == "Y" ? " (수면)" : "" ));
- rtfviewer.ReplaceRtfCode("year", yyyy);
- rtfviewer.ReplaceRtfCode("month", month);
- rtfviewer.ReplaceRtfCode("day", dd);
- rtfviewer.ReplaceRtfCode("week", week);
- rtfviewer.ReplaceRtfCode("hh", hh);
- rtfviewer.ReplaceRtfCode("mm", mm);
- rtfviewer.ReplaceRtfCode("age", model.getValue("/root/main/ptinfo/age"));
- rtfviewer.ReplaceRtfCode("sex", model.getValue("/root/main/ptinfo/sex"));
- rtfviewer.ReplaceRtfCode("orddeptcd", model.getValue(path + "orddepthngnm"));
- rtfviewer.ReplaceRtfCode("orddrid", model.getValue(path + "orddrnm"));
- rtfviewer.ReplaceRtfCode("excucdnm", model.getValue(path + "excucdnm"));
- rtfviewer.ReplaceRtfCode("yr1", yyyy);
- rtfviewer.ReplaceRtfCode("mn1", month);
- rtfviewer.ReplaceRtfCode("dy1", dd);
- rtfviewer.ReplaceRtfCode("yr2", yyyy2);
- rtfviewer.ReplaceRtfCode("mn2", month2);
- rtfviewer.ReplaceRtfCode("dy2", dd2);
- rtfviewer.ReplaceRtfCode("hh2", "");
- rtfviewer.ReplaceRtfCode("mm2", "");
-
- rtfviewer.print();
-
- rtfviewer.CloseProgressBar();
-
- prtcnt++;
- }
-
- if (prtcnt < 1) {
- messageBox("출력할 내역이 없습니다.", "E999");
- }
- }
-
- function fFuncInfoPrt(row) {
-
- var cnt = instance1.selectNodes("/root/main/fcexlist/fcexinfo").length;
-
- var tmplArr = new Array();
-
- var prtcnt = 0;
-
- for (var i = 1; i <= cnt; i++) {
-
- var path = "/root/main/fcexlist/fcexinfo[" + i + "]/";
-
- if (i != FUNC_SEL_ROW && model.getValue(path + "chk") != "Y") { // 예약시 자동으로 검사 안내문을 출력하는 경우
- continue;
- }
-
- var tmpldata = model.getValue(path + "tmpldata");
- if (tmpldata == "") {
- continue;
- }
-
- var flag = true;
- for (var j = 0; j < tmplArr.length; j++) {
- if (tmpldata == tmplArr[j]) {
- flag = false;
- break;
- }
- }
-
- if (!flag) {
- continue;
- }
-
- tmplArr[tmplArr.length] = tmpldata;
-
- rtfviewer.OpenProgressBar(1);
-
- var rsrvdt = model.getValue(path + "srchrsrvdt");
- var prcpnm = model.getValue(path + "prcpnm");
- var roomnm = model.getValue(path + "examroomnm");
- var rcptyn = grd_fcex.labelMatrix(i, grd_fcex.colRef("rcptyn"));
-
- var vacntno = "";
-
- var yyyy = rsrvdt.substr(0, 4);
- var mm = rsrvdt.substr(4, 2);
- var dd = rsrvdt.substr(6, 2);
- var hh = rsrvdt.substr(8, 2);
- var mm = rsrvdt.substr(10, 2);
- var week = rsrvdt.substr(0, 8).toDate().getDayOfWeek("K");
-
- if (Number(hh) > 12) {
- hh = "오후 " + String(Number(hh) - 12);
- } else {
- hh = "오전 " + hh;
- }
-
- var nextdd = ((rsrvdt.substr(0, 8)).toDate()).getAddDate(1).getDateFormat();
- var yyyy2 = nextdd.substr(0, 4);
- var mm2 = nextdd.substr(4, 2);
- var dd2 = nextdd.substr(6, 2);
-
- rtfviewer.TextRtf = tmpldata;
-
- rtfviewer.ReplaceRtfCode("pid", model.getValue(path + "pid"));
- rtfviewer.ReplaceRtfCode("patnm", model.getValue(path + "hngnm"));
- rtfviewer.ReplaceRtfCode("roomcd", roomnm + ( model.getValue(path + "slepyn") == "Y" ? " (수면)" : "" ));
- rtfviewer.ReplaceRtfCode("year", yyyy);
- rtfviewer.ReplaceRtfCode("month", mm);
- rtfviewer.ReplaceRtfCode("day", dd);
- rtfviewer.ReplaceRtfCode("week", week);
- rtfviewer.ReplaceRtfCode("hh", hh);
- rtfviewer.ReplaceRtfCode("mm", mm);
- rtfviewer.ReplaceRtfCode("age", model.getValue(path + "age"));
- rtfviewer.ReplaceRtfCode("sex", model.getValue(path + "sex"));
- rtfviewer.ReplaceRtfCode("orddeptcd", model.getValue(path + "orddepthngnm"));
- rtfviewer.ReplaceRtfCode("orddrid", model.getValue(path + "orddrnm"));
- rtfviewer.ReplaceRtfCode("excucdnm", model.getValue(path + "prcpnm"));
- rtfviewer.ReplaceRtfCode("yr1", yyyy);
- rtfviewer.ReplaceRtfCode("mn1", mm);
- rtfviewer.ReplaceRtfCode("dy1", dd);
- rtfviewer.ReplaceRtfCode("yr2", yyyy2);
- rtfviewer.ReplaceRtfCode("mn2", mm2);
- rtfviewer.ReplaceRtfCode("dy2", dd2);
- rtfviewer.ReplaceRtfCode("hh2", "");
- rtfviewer.ReplaceRtfCode("mm2", "");
-
- rtfviewer.print();
-
- rtfviewer.CloseProgressBar();
-
- prtcnt++;
- }
- }
-
- function fShowPrivacyMsg() {
-
- var path = "/root/main/ptinfo/";
-
- var msg = "요청자 : " + model.getValue(path + "request") + " " + model.getValue(path + "requestetc") + "\n"
- + "요청대상 : " + model.getValue(path + "target") + " " + model.getValue(path + "targetetc") + "\n"
- + "요청내용 : " + model.getValue(path + "type") + " " + model.getValue(path + "typeetc") + "\n"
- + "비고 : " + model.getValue(path + "rmk") + "\n\n"
- + "위 내용의 취급에 주의하십시오.";
-
- messageBox(msg, "I999");
- }
-
- function fPseuRsrvInfo() {
-
- var path = "/root/main/exculist/excuinfo[" + EXCU_SEL_ROW + "]/";
-
- if (instance1.selectNodes("/root/init/pseu/pseulist/pseuinfo[cdid='" + model.getValue(path + "calcscorcd") + "']").length < 1) {
- messageBox("해당 검사는 추가 검사 가능 항목이 아닙니다.", "E999");
- return;
- }
-
- if (model.getValue(path + "rsrvflagyn") != "예약") {
- messageBox("추가 검사 예약은 해당 검사 예약 후 가능합니다.", "E999");
- return;
- }
-
- setParameter("menuparam", "");
- setParameter("suppdeptcd", ""); // 임시 예약은 핵의학과로 고정
- setParameter("excuroomgrp", model.getValue(path + "basecdcnts"));
-
- model.makeValue("/root/hidden/pseursrvinfo/seq", "");
- model.makeValue("/root/hidden/pseursrvinfo/menuparam", "R");
- model.makeValue("/root/hidden/pseursrvinfo/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/hidden/pseursrvinfo/suppdeptcd", model.getValue(path + "suppdeptcd"));
- model.makeValue("/root/hidden/pseursrvinfo/excuroomcd", model.getValue(path + "excuroomcd"));
- model.makeValue("/root/hidden/pseursrvinfo/calcscorcd", model.getValue(path + "calcscorcd"));
- model.makeValue("/root/hidden/pseursrvinfo/rsrvdt", model.getValue(path + "rsrvdt"));
- model.makeValue("/root/hidden/pseursrvinfo/pid", model.getValue(path + "pid"));
- model.makeValue("/root/hidden/pseursrvinfo/hngnm", model.getValue("/root/main/ptinfo/hngnm"));
- model.makeValue("/root/hidden/pseursrvinfo/age", model.getValue("/root/main/ptinfo/age"));
- model.makeValue("/root/hidden/pseursrvinfo/sex", model.getValue("/root/main/ptinfo/sex"));
- var rrgstno = model.getValue("/root/main/ptinfo/rrgstno");
- model.makeValue("/root/hidden/pseursrvinfo/rrgstno1", rrgstno.substr(0, 6));
- model.makeValue("/root/hidden/pseursrvinfo/rrgstno2", rrgstno.substr(6, 1));
-
- modal("SPAEA02201", "", "200", "200", "popup", "/root/hidden/pseursrvinfo", "/root/init/pseursrvinfo");
- }
-
- function fSetRsrvStyle(grd, flag, row) {
-
- var scol = grd.colRef("examroomnm");
- var ecol = !FUNC_FLAG ? grd.colRef("srchrsrvtm") : grd.colRef("srchrsrvdt");
-
- if (flag) {
-
- grd.cellStyle("color", row, ecol, row, ecol) = "#0000ff";
- grd.cellStyle("border-style", row, scol, row, ecol) = "solid";
- grd.cellStyle("font-weight", row, scol, row, ecol) = "bold";
-
- grd.cellStyle("border-left-color", row, scol) = "crimson";
- grd.cellStyle("border-left-width", row, scol) = "2px";
-
- grd.cellStyle("border-top-color", row, scol) = "crimson";
- grd.cellStyle("border-top-width", row, scol) = "2px";
-
- grd.cellStyle("border-right-color", row, scol) = "#b0b0b0";
- grd.cellStyle("border-right-width", row, scol) = "1px";
-
- grd.cellStyle("border-bottom-color", row, scol) = "crimson";
- grd.cellStyle("border-bottom-width", row, scol) = "3px";
-
- grd.cellStyle("border-left-color", row, ecol) = "#b0b0b0";
- grd.cellStyle("border-left-width", row, ecol) = "0px";
-
- grd.cellStyle("border-top-color", row, ecol) = "crimson";
- grd.cellStyle("border-top-width", row, ecol) = "2px";
-
- grd.cellStyle("border-right-color", row, ecol) = "crimson";
- grd.cellStyle("border-right-width", row, ecol) = "3px";
-
- grd.cellStyle("border-bottom-color", row, ecol) = "crimson";
- grd.cellStyle("border-bottom-width", row, ecol) = "3px";
-
- } else {
-
- grd.cellStyle("color", row, scol, row, scol) = "#000000";
- grd.cellStyle("color", row, ecol, row, ecol) = "#ff0000";
-
- grd.cellStyle("border-left-color", row, scol, row, ecol) = "#ffffff";
- grd.cellStyle("border-left-width", row, scol, row, ecol) = "";
-
- grd.cellStyle("border-top-color", row, scol, row, ecol) = "#ffffff";
- grd.cellStyle("border-top-width", row, scol, row, ecol) = "";
-
- grd.cellStyle("border-right-color", row, scol, row, ecol) = "#b0b0b0";
- grd.cellStyle("border-right-width", row, scol, row, ecol) = "1px";
-
- grd.cellStyle("border-bottom-color", row, scol, row, ecol) = "#b0b0b0";
- grd.cellStyle("border-bottom-width", row, scol, row, ecol) = "1px";
- }
- }
-
- function fChangeRsrv() {
-
- RMRV_MOUSE_DOWN = false;
-
- if (EXCU_SEL_ROW < 1) {
- messageBox("선택된 검사 항목이 없습니다." ,"E999");
- return;
- }
-
- var rsrvflagyn = model.getValue("/root/main/exculist/excuinfo[" + EXCU_SEL_ROW + "]/rsrvflagyn");
- if (rsrvflagyn != "예약") {
- messageBox("예약된 검사에 대해서만 맞바꾸기가 가능합니다.", "E999");
- return;
- }
-
- if (model.getValue("/root/main3/rmrvlist/rmrvinfo[" + grd_rmrv.row + "]/pid") == "") {
- messageBox("해당 시각에는 맞바꿀 검사가 없습니다.", "E999");
- return;
- }
-
- if (model.getValue("/root/main3/rmrvlist/rmrvinfo[" + grd_rmrv.row + "]/rsrvstatnm") == "임시") {
- messageBox("임시 예약된 검사와는 맞바꿀 수 없습니다.", "E999");
- return;
- }
-
- var rsrvstatcd = model.getValue("/root/main3/rmrvlist/rmrvinfo[" + grd_rmrv.row + "]/rsrvstatcd");
- if (rsrvstatcd != "Y" && rsrvstatcd != "000" && rsrvstatcd != "440") {
- messageBox("실시된 검사와는 맞바꿀 수 없습니다.", "E999");
- return;
- }
-
- var ownRsrvdt = model.getValue("/root/main/exculist/excuinfo[" + EXCU_SEL_ROW + "]/bf_srchrsrvtm");
- var tgtRsrvdt = model.getValue("/root/send/data/rsrvdd") + model.getValue("/root/main3/rmrvlist/rmrvinfo[" + grd_rmrv.row + "]/rsrvtm");
-
- // 과거 일자 여부 확인
- if (tgtRsrvdt.substr(0, 8) < getCurrentDate()) {
- messageBox("과거 일자는 변경할 수 없습니다", "E999");
- return;
- } else if (tgtRsrvdt.substr(0, 8) == getCurrentDate()
- && Number(model.getValue("/root/main3/rmrvlist/rmrvinfo[" + grd_rmrv.row + "]/rsrvtm")) < Number(getCurrentTime().substr(0, 4))) {
- messageBox("과거 시각은 변경할 수 없습니다.", "E999");
- return;
- }
-
- if (messageBox("[ 선택된 검사 ]\n\n"
- + "■ " + model.getValue("/root/main/ptinfo/hngnm") + "\n"
- + "■ " + model.getValue("/root/main/exculist/excuinfo[" + EXCU_SEL_ROW + "]/prcpnm") + "\n"
- + "■ " + model.getValue("/root/main/exculist/excuinfo[" + EXCU_SEL_ROW + "]/bf_examroomnm") + "\n"
- + "■ " + ownRsrvdt.toDate("YYYYMMDDhhmm").getDateFormat("YYYY-MM-DD hh:mm") + "\n\n\n"
- + "[ 예약된 검사 ]\n\n"
- + "■ " + model.getValue("/root/main3/rmrvlist/rmrvinfo[" + grd_rmrv.row + "]/hngnm") + "\n"
- + "■ " + model.getValue("/root/main3/rmrvlist/rmrvinfo[" + grd_rmrv.row + "]/excucdnm") + "\n"
- + "■ " + model.getValue("/root/main/excuroomlist/excuroominfo[" + grd_room.row + "]/excuroomnm") + "\n"
- + "■ " + tgtRsrvdt.toDate("YYYYMMDDhhmm").getDateFormat("YYYY-MM-DD hh:mm") + "\n\n\n"
- + "위의 각 검사의 예약 일시를 맞바꾸시겠습니까?", "Q999") != 6) {
- return;
- }
-
- // 기존 예약 변경
-
- model.setValue("/root/send/chng/pid", model.getValue("/root/main3/rmrvlist/rmrvinfo[" + grd_rmrv.row + "]/pid"));
- model.setValue("/root/send/chng/execprcpuniqno", model.getValue("/root/main3/rmrvlist/rmrvinfo[" + grd_rmrv.row + "]/execprcpuniqno"));
- model.setValue("/root/send/chng/rsrvdeptcd", getScreenPrestDeptCd() == "" ? getUserInfo("dutplcecd") : getScreenPrestDeptCd());
- model.setValue("/root/send/chng/excuroomcd", model.getValue("/root/main/exculist/excuinfo[" + EXCU_SEL_ROW + "]/bf_excuroomcd"));
- model.setValue("/root/send/chng/examroomnm", model.getValue("/root/main/exculist/excuinfo[" + EXCU_SEL_ROW + "]/bf_examroomnm"));
- model.setValue("/root/send/chng/srchrsrvtm", ownRsrvdt);
- model.setValue("/root/send/chng/rsrvdt", ownRsrvdt);
-
- submit("TXPEA00102");
-
- var flag = model.getValue("/root/temp/chngrslt/rsltinfo/rsltflag");
- if (flag != "1") {
- messageBox(model.getValue("/root/temp/chngrslt/rsltinfo/rsltmsg"), "E999");
- return;
- }
-
- // 예약 일시 및 예약 선택 여부 값 입력
- model.setValue("/root/main/exculist/excuinfo[" + EXCU_SEL_ROW + "]/rsrvdt", tgtRsrvdt);
- model.setValue("/root/main/exculist/excuinfo[" + EXCU_SEL_ROW + "]/srchrsrvtm", tgtRsrvdt);
- model.setValue("/root/main/exculist/excuinfo[" + EXCU_SEL_ROW + "]/chk", "Y");
-
- grd_excu.refresh();
-
- var row = grd_excu.row;
-
- fSetRsrvStyle(grd_excu, true, row);
-
- // 중증 / 산정특례 종료일자 체크
-
- var msg = "";
- var todd = model.getValue("/root/main/ptinfo/serdiagtodd");
- var rsrvdd = tgtRsrvdt.substr(0, 8);
- var rsrvtm = tgtRsrvdt.substr(8, 4);
-
- if (isValidDateTime(todd, "YYYYMMDD")) {
- if (rsrvdd > todd) {
- msg = "중증 종료 예정일 : " + todd.substr(0, 4) + "/" + todd.substr(4, 2) + "/" + todd.substr(6, 2);
- }
- }
-
- todd = model.getValue("/root/main/ptinfo/rareobsttodd");
-
- if (isValidDateTime(todd, "YYYYMMDD")) {
- if (rsrvdd > todd) {
- msg = msg == "" ? msg : msg + "\r\n";
- msg += "희귀 난치 종료 예정일 : " + todd.substr(0, 4) + "/" + todd.substr(4, 2) + "/" + todd.substr(6, 2);
- }
- }
-
- if (msg != "") {
- msg = "중증 혹은 희귀 난치 자격 종료예정자입니다" + "\r\n\r\n"
- + msg + "\r\n\r\n"
- + "진료 당일의 자격이 변경될 가능성이 있음에 유의하시기 바랍니다.";
-
- messageBox(msg, "E999");
- }
-
- if (fExecRsrv("rsrv", EXCU_SEL_ROW)) {
-
- if (model.getValue("/root/main/exculist/excuinfo[" + EXCU_SEL_ROW + "]/tmpldata") != "") {
- if (messageBox("선택된 검사는 검사 안내문이 있습니다.\n예약 후 검사 안내문을 출력하시겠습니까?", "Q999") == 6) {
- fInfoPrt(EXCU_SEL_ROW);
- }
- }
-
- fRsrvPrt(model.getValue("/root/send/data/pid"));
-
- fGetExcuList(model.getValue("/root/send/data/rsrvdd"));
- model.setFocus("ipt_pid");
-
- }
- }
-
- function fSetPtCmtExt(collapse) {
-
- if (collapse || btn_ptcmtex.attribute("background-image") == "../../../com/commonweb/images/btn_send_top.gif") {
-
- sw_ptcmt.attribute("width") = "330px";
- sw_ptcmt.attribute("height") = "135";
-
- grd_ptcmt.attribute("width") = "330px";
- grd_ptcmt.attribute("height") = "110px";
-
- tar_ptcmt.attribute("width") = "310px";
- tar_ptcmt.attribute("height") = "90px";
-
- line9.attribute("x2") = "330px";
-
- /*
- btn_addcmt.attribute("left") = "175px";
- btn_savecmt.attribute("left") = "218px";
- btn_delcmt.attribute("left") = "261px";
- btn_ptcmtex.attribute("left") = "304px";
- */
-
- grd_ptcmt.colHidden(grd_ptcmt.colRef("usernm")) = true;
-
- grd_ptcmt.refresh();
- grd_ptcmt.resizeCells();
-
- btn_ptcmtex.attribute("background-image") = "../../../com/commonweb/images/btn_send_bottom.gif";
-
- } else {
-
- sw_ptcmt.attribute("width") = "730px";
- sw_ptcmt.attribute("height") = "350px";
-
- grd_ptcmt.attribute("width") = "730px";
- grd_ptcmt.attribute("height") = "325px";
-
- tar_ptcmt.attribute("width") = "710px";
- tar_ptcmt.attribute("height") = "305px";
-
- line9.attribute("x2") = "730px";
-
- /*
- btn_addcmt.attribute("left") = "575px";
- btn_savecmt.attribute("left") = "618px";
- btn_delcmt.attribute("left") = "661px";
- btn_ptcmtex.attribute("left") = "704px";
- */
-
- grd_ptcmt.colHidden(grd_ptcmt.colRef("usernm")) = false;
-
- grd_ptcmt.refresh();
- grd_ptcmt.resizeCells();
-
- btn_ptcmtex.attribute("background-image") = "../../../com/commonweb/images/btn_send_top.gif";
- }
-
- sw_ptcmt.refresh();
- }
-
- function fCheckRstrDay(rsrvdd) {
-
- var msg = "";
-
- var todd = model.getValue("/root/main/ptinfo/serdiagtodd");
-
- if (isValidDateTime(todd, "YYYYMMDD")) {
- if (rsrvdd > todd) {
- msg = "중증 종료 예정일 : " + todd.substr(0, 4) + "/" + todd.substr(4, 2) + "/" + todd.substr(6, 2);
- }
- }
-
- todd = model.getValue("/root/main/ptinfo/rareobsttodd");
-
- if (isValidDateTime(todd, "YYYYMMDD")) {
- if (rsrvdd > todd) {
- msg = msg == "" ? msg : msg + "\r\n";
- msg += "희귀 난치 종료 예정일 : " + todd.substr(0, 4) + "/" + todd.substr(4, 2) + "/" + todd.substr(6, 2);
- }
- }
-
- if (msg != "") {
- msg = "중증 혹은 희귀 난치 자격 종료예정자입니다" + "\r\n\r\n"
- + msg + "\r\n\r\n"
- + "진료 당일의 자격이 변경될 가능성이 있음에 유의하시기 바랍니다.";
-
- messageBox(msg, "E999");
- }
- }
-
- function fInit() {
-
- if (!checkOpener()) {
- delPatientInfos();
- }
-
- fSetPtCmtExt(true);
-
- // 검사실 전체 체크 항목 해제
- model.setValue("/root/send/data/totflag", "");
- chk_totflag.refresh();
-
- grd_srchroom.attribute("height") = "110px";
- btn_roomex.attribute("background-image") = "../../../com/commonweb/images/btn_send_bottom.gif";
-
- fClearExcuInfo(getCurrentDate());
-
- grd_excu.fixedcellischeck(0, grd_excu.colRef("chk")) = false;
-
- model.toggle("excu");
-
- grd_ord.rebuildStyle();
- grd_excu.rebuildStyle();
- grd_pt.rebuildStyle();
-
- model.resetInstanceNode("/root/main/ptinfo");
- model.resetInstanceNode("/root/main/ordlist/ordinfo");
- model.resetInstanceNode("/root/main/tdrvlist/tdrvinfo");
- model.resetInstanceNode("/root/main/ptcmtlist/ptcmtinfo");
- model.resetInstanceNode("/root/main/exculist/excuinfo");
- model.resetInstanceNode("/root/main/fcexlist/fcexinfo");
- model.resetInstanceNode("/root/main/anexlist/anexinfo");
- model.resetInstanceNode("/root/main/rcptprcpinfo");
-
- model.resetInstanceNode("/root/main2/ddrvlist/ddrvinfo");
-
- grd_room.refresh();
- grd_room.resizeCells();
-
- grd_ptcmt.refresh();
- grd_ptcmt.resizeCells();
-
- btn_savecmt.disabled = true;
- btn_delcmt.disabled = true;
-
- model.setValue("/root/temp/ptcmt", "");
- tar_ptcmt.refresh();
-
- grp_creatine.visible = false;
-
- model.setValue("/root/send/data/pid", "");
-
- model.refresh();
-
- model.setFocus("ipt_pid");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- //원무공통코드 조회
- pamfGetCodeList(new Array("P6588", "P0130"), new Array("/root/init/init_pam/P6588list", "/root/init/init_pam/P0130list"));
-
- // ast.aebmcode
- // A640 : 통합예약미예약처방예약시간셋팅여부 : N
- // A660 : 통합예약입원조회여부 : Y
- // T0001 : 치료코드 및 통합예약 예약제한 사번
-
- grd_excu.fixedcellcheckbox(0, grd_excu.colRef("chk")) = true;
-
- grp_msg.attribute("top") = "200px";
-
- RSRV_PLCE = getScreenMenuParameter();
-
- if (RSRV_PLCE == "null" || RSRV_PLCE == "") {
- RSRV_PLCE = "T";
- }
-
- if (checkOpener()) {
- var param = opener.javascript.getParameter("opener_parameter_id");
- if (param != null && param != "") {
- condarray = param.split("▦");
- if (condarray.length > 1) {
- model.setValue("/root/send/data/pid", condarray[0]);
- RSRV_PLCE = condarray[1];
- } else {
- model.setValue("/root/send/data/pid", param);
- }
- } else {
- var paminfo = getGlobalVariable("paminfo"); // 상단
- if (paminfo != null && paminfo != "") {
- model.removeNodeset("/root/paminfo");
- model.makeNode("/root/paminfo");
- setCSVToNode("/root/paminfo", paminfo);
-
- var pid = model.getValue("/root/paminfo/list/pid");
- model.setValue("/root/send/data/pid", pid);
- }
- }
- }
-
- fSetRsrvPlce();
-
- model.setValue("/root/ctrl/hidden/rsrvplce", RSRV_PLCE);
- cmb_rsrvplce.refresh();
-
- // 캘린더 설정
- fSetCalendar(getCurrentDate().toDate());
-
- var srchdeptcd = ( getScreenPrestDeptCd() == "" || getScreenPrestDeptCd() == null ) ? getUserInfo("dutplcecd") : getScreenPrestDeptCd();
- var srchdeptnm = getUserInfo("dutplcenm");
-
- // 개발자용 부서 목록 조회
- if (getUserId() == "PAM") {
- cmb_rsrvplce.visible = true;
- cmb_srchdept.visible = true;
- btn_multirsrv.visible = true;
- btn_rsrvstaff.visible = true;
- submit("TRPEA00107");
- } else {
- model.makeValue("/root/init/srchdeptlist/deptinfo/deptcd", srchdeptcd);
- model.makeValue("/root/init/srchdeptlist/deptinfo/deptnm", srchdeptnm);
- }
-
- model.setValue("/root/send/data/srchdeptcd", srchdeptcd);
- model.setValue("/root/hidden/dutplcenm", srchdeptnm);
- cap_dept.refresh();
-
- cmb_srchdept.refresh();
-
- grd_srchroom.fixedcellcheckbox(0, grd_srchroom.colRef("chk")) = true;
- grd_srchroom.fixedcellischeck(0, grd_srchroom.colRef("chk")) = true;
-
- // 부서에 해당하는 검사실 조회
- submit("TRPEA00108");
-
- model.setValue("/root/send/data/fromdd", getCurrentDate().toDate().getAddDate(-1, "Y").getDateFormat("YYYYMMDD"));
- ipt_fromdd.refresh();
-
- model.setValue("/root/send/data/todd", getCurrentDate());
- ipt_todd.refresh();
-
- // 제어 예외 대상 조회
- submit("TRPEA00211", false);
-
- // 통합 예약 담당 관리 기능 숨김 해제
- for (var i = 1; i <= instance1.selectNodes("/root/ctrl/hidden/excplist/excpinfo").length; i++) {
- if (getUserId() == model.getValue("/root/ctrl/hidden/excplist/excpinfo[" + i + "]/userid")) {
- btn_rsrvstaff.visible = true;
- break;
- }
- }
-
- // 검사 현황 그리드 사이즈가 0인 칼럼들 숨김 설정
- for (var i = 0; i < grd_excu.cols; i++) {
- if (grd_excu.colWidth(i) == 0) {
- grd_excu.colHidden(i) = true;
- }
- }
-
- for (var i = 0; i < grd_fcex.cols; i++) {
- if (grd_fcex.colWidth(i) == 0) {
- grd_fcex.colHidden(i) = true;
- }
- }
-
- for (var i = 0; i < grd_rmrv.cols; i++) {
- if (grd_rmrv.colWidth(i) == 0) {
- grd_rmrv.colHidden(i) = true;
- }
- }
-
- // autoresize 그리드 최소 높이 설정
- grd_room.rowHeightMin = 23;
- grd_ctrl.rowHeightMin = 23;
- grd_rmrv.rowHeightMin = 23;
- grd_ptcmt.rowHeightMin = 23;
-
- // 추가 검사 가능 코드 및 임시 예약 부서 조회
- submit("TRPEA00106");
-
- // 통합 예약 담당자 목록 조회
- submit("TRPEA00110", false);
-
- model.setFocus("ipt_pid");
-
- if (model.getValue("/root/send/data/pid") != "") {
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
- <script type="javascript" src="../../../pam/pamexcuweb/js/SMPEA00200.js"/>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:115px; height:13px; ">
- <![CDATA[검사 예약]]>
- </caption>
- <multilinegrid id="grd_calendar" nodeset="/root/hidden/calendar/weeklist/list" class="gridcalendar" autoresize="true" backcoloralternate="transparent" caption="일^월^화^수^목^금^토" colsep="^" colwidth="48, 47, 47, 47, 47, 47, 47" dataheight="20" extendlastcol="noscroll" focuscolor="transparent" rowsep="|" mergecellsfixedrows="bycolrec" style="left:260px; top:493px; width:330px; height:272px; border-left-width:1px; border-top-width:0px; border-right-width:1px; border-bottom-width:1px; border-style:solid; ">
- <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) {
-
- var row = grd_calendar.row;
- var col = grd_calendar.col >= 7 ? grd_calendar.col - 7 : grd_calendar.col;
-
- var dd = model.getValue("/root/hidden/calendar/weeklist/list[" + row + "]/" + grd_calendar.colAttribute(col, "ref"));
- if (dd.length < 2) {
- dd = "0" + dd;
- }
-
- var rsrvdd = model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month") + dd
-
- model.setValue("/root/send/data/rsrvdd", rsrvdd);
-
- fSetSelColor();
-
- if (!FUNC_FLAG) {
-
- grd_excu.row = EXCU_SEL_ROW;
-
- var excuroomcd = model.getValue("/root/main/excuroomlist/excuroominfo[" + grd_room.row + "]/excuroomcd")
-
- fGetRsrvCtrlList(grd_excu, grd_excu.row, excuroomcd, rsrvdd);
-
- } else {
-
- grd_fcex.row = FUNC_SEL_ROW;
- }
-
- fGetRoomRsrvList();
- }
- ]]>
- </script>
- </multilinegrid>
- <caption id="caption7" class="tit_2" style="left:335px; top:60px; width:105px; height:13px; color:#003366; ">진료 예약 내역</caption>
- <caption id="caption8" class="tit_2" style="left:735px; top:60px; width:110px; height:13px; ">당일 검사 내역</caption>
- <caption id="caption14" class="tit_2" style="left:1075px; top:200px; width:59px; height:13px; ">검사실</caption>
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:15px; width:275px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption17" class="search_name" style="left:5px; top:24px; width:91px; height:17px; ">등록번호 :</caption>
- <line id="line13" class="line_4" style="x1:200px; y1:23px; x2:200px; y2:45px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="3" style="left:210px; top:22px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (!checkOpener()) {
- delPatientInfos();
- }
-
- fSetPtCmtExt(true);
-
- // 검사실 전체 체크 항목 해제
- model.setValue("/root/send/data/totflag", "");
- chk_totflag.refresh();
-
- grd_srchroom.attribute("height") = "110px";
- btn_roomex.attribute("background-image") = "../../../com/commonweb/images/btn_send_bottom.gif";
-
- if (!FUNC_FLAG) { // 통합
- if (ipt_pid.value == "" ) {
- messageBox("환자번호를 ", "C001");
- return;
- }
-
- model.copyNode("/root/temp/exculist", "/root/main/fcexlist");
-
- fGetExcuList(getCurrentDate());
-
- model.removenode("/root/main/fcexlist");
- model.makeNode("/root/main/fcexlist");
- model.copyNode("/root/main/fcexlist", "/root/temp/exculist");
- model.removenode("/root/temp/exculist");
- model.makeNode("/root/temp/exculist");
- grd_fcex.refresh();
-
- } else { // 과내
-
- var fromdd = model.getValue("/root/send/data/fromdd");
- var todd = model.getValue("/root/send/data/todd");
- var pid = model.getValue("/root/send/data/pid");
-
- var diff = getDateInterval(fromdd, todd, "dd") + 1;
-
- if (model.getValue("/root/send/data/pid") == "" && diff > 7) {
- messageBox("처방 조회 기간을 7일 이하로 수정하거나\n등록번호 입력 후 조회하십시오.", "E999");
- return;
- }
-
- model.copyNode("/root/temp/exculist", "/root/main/exculist");
-
- fGetFuncExcuList(getCurrentDate());
-
- model.removenode("/root/main/exculist");
- model.makeNode("/root/main/exculist");
- model.copyNode("/root/main/exculist", "/root/temp/exculist");
- model.removenode("/root/temp/exculist");
- model.makeNode("/root/temp/exculist");
- grd_excu.refresh();
- }
-
-
- if (model.getValue("/root/send/data/pid") != ""){
-
- var child = getOpenWindow("SMMMO02500");
-
- if (child != null) {
- child.model.makeValue("/root/main/patinfolist/pid", model.getValue("/root/send/data/pid"));
- setParameter("SMMMO02500_cond", model.getValue("/root/send/data/pid"));
- child.javascript.fReqGetPatComnInfo("/root/send/reqdata", model.getValue("/root/send/data/pid"));
- 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();
- }
-
- child = getOpenWindow("SMAEA00300");
-
- if (child != null) {
- child.model.makeValue("/root/send/srchpid", model.getValue("/root/send/data/pid"));
- child.btn_sea.dispatch("DOMActivate");
- child.model.refresh();
- }
-
- child = getOpenWindow("SMAEA04400");
-
- if (child != null) {
- child.model.makeValue("/root/send/pid", model.getValue("/root/send/data/pid"));
- child.btn_sea.dispatch("DOMActivate");
- child.model.refresh();
- }
- }
- ]]>
- </script>
- </button>
- <input id="ipt_pid" ref="/root/send/data/pid" class="input_search" navindex="1" style="left:98px; top:23px; width:70px; height:19px; font-weight:bold; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (event.keyCode == "13") {
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="btn_pid" class="icon_search" style="left:175px; top:24px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.makeNode("/root/main/patinfo/patinfolist");
-
- modal("SPPMC02500", "", "200", "200");
-
- if (model.getValue("/root/main/popupendflag") != "cancel") {
- model.setValue("/root/send/data/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- btn_search.dispatch("DOMActivate");
- } else {
- model.removenode("/root/main/patinfo");
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_ord" nodeset="/root/main/ordlist/ordinfo" backcoloralternate="transparent" caption="진료일시^진료과^진료과^진료의^진료의^예약구분^예약구분^수납" colsep="^" colwidth="110, 0, 90, 0, 50, 0, 80, 55" extendlastcol="scroll" focuscolor="transparent" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="label" style="left:335px; top:80px; width:395px; height:110px; ">
- <col ref="orddt" format="yyyy-mm-dd hh:mm" style="text-align:center; "/>
- <col ref="orddeptcd"/>
- <col ref="depthngnm" style="text-align:center; "/>
- <col ref="orddrid"/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="rsrvflag"/>
- <col ref="rsrvflagnm" style="text-align:center; "/>
- <col disabled="true" ref="rcptflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>후불</label>
- <value>V</value>
- </item>
- <item>
- <label>접수</label>
- <value>N</value>
- </item>
- <item>
- <label>미수납</label>
- <value>Y</value>
- </item>
- </choices>
- </col>
- </datagrid>
- <datagrid id="grd_tdrv" nodeset="/root/main/tdrvlist/tdrvinfo" backcoloralternate="transparent" caption="시각^검사실^검사실^검사코드^검사명^예약구분^상태^예약자^예약자" colsep="^" colwidth="40, 0, 100, 0, 175, 0, 80, 0, 50" ellipsis="true" extendlastcol="scroll" focuscolor="transparent" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="label" style="left:735px; top:80px; width:460px; height:110px; ">
- <col ref="rsrvtm" format="hh:nn" style="text-align:center; "/>
- <col ref="excuroomcd"/>
- <col ref="excuroomnm" style="text-align:center; "/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="rsrvflag"/>
- <col ref="prcpstatcd" style="text-align:center; "/>
- <col ref="rsrvrid"/>
- <col ref="rsrvrnm" style="text-align:center; "/>
- </datagrid>
- <datagrid id="grd_room" nodeset="/root/main/excuroomlist/excuroominfo" allowselection="false" autoresize="true" backcoloralternate="transparent" caption="검사실코드^검사실" colsep="^" colwidth="0,115" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="30" rowsep="|" selectionmode="byrow" style="left:1075px; top:220px; width:120px; height:165px; color:darkslategray; text-align:center; ">
- <col ref="excuroomcd" visibility="hidden"/>
- <col ref="excuroomnm" style="font-weight:bold; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if (!grd_room.isCell(event.target) || grd_room.row < grd_room.fixedRows) {
- return;
- }
-
- fSetExcuRoom(true);
- ]]>
- </script>
- </datagrid>
- <select id="chk_totflag" ref="/root/send/data/totflag" overflow="visible" appearance="full" style="left:1074px; top:389px; width:85px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>검사실 전체</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetExcuRoom(false);
- ]]>
- </script>
- </select>
- <group id="group2" scroll="auto" style="left:260px; top:437px; width:330px; height:55px; ">
- <button id="btn_m01" style="left:4px; top:28px; width:25px; height:25px; font-weight:bold; text-align:center; background-color:#f0f0f0; border-color:gray; border-width:1px; border-style:solid; focus-rect:hidden; ">
- <caption>1</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/hidden/calendar/month") !== "01") {
- fSetMonth("01");
- }
- ]]>
- </script>
- </button>
- <button id="btn_m02" style="left:31px; top:28px; width:25px; height:25px; font-weight:bold; text-align:center; background-color:#f0f0f0; border-color:gray; border-width:1px; border-style:solid; focus-rect:hidden; ">
- <caption>2</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/hidden/calendar/month") !== "02") {
- fSetMonth("02");
- }
- ]]>
- </script>
- </button>
- <button id="btn_m03" style="left:58px; top:28px; width:25px; height:25px; font-weight:bold; text-align:center; background-color:#f0f0f0; border-color:gray; border-width:1px; border-style:solid; focus-rect:hidden; ">
- <caption>3</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/hidden/calendar/month") !== "03") {
- fSetMonth("03");
- }
- ]]>
- </script>
- </button>
- <button id="btn_m04" style="left:85px; top:28px; width:25px; height:25px; font-weight:bold; text-align:center; background-color:#f0f0f0; border-color:gray; border-width:1px; border-style:solid; focus-rect:hidden; ">
- <caption>4</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/hidden/calendar/month") !== "04") {
- fSetMonth("04");
- }
- ]]>
- </script>
- </button>
- <button id="btn_m05" style="left:112px; top:28px; width:25px; height:25px; font-weight:bold; text-align:center; background-color:#f0f0f0; border-color:gray; border-width:1px; border-style:solid; focus-rect:hidden; ">
- <caption>5</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/hidden/calendar/month") !== "05") {
- fSetMonth("05");
- }
- ]]>
- </script>
- </button>
- <button id="btn_m06" style="left:139px; top:28px; width:25px; height:25px; font-weight:bold; text-align:center; background-color:#f0f0f0; border-color:gray; border-width:1px; border-style:solid; focus-rect:hidden; ">
- <caption>6</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/hidden/calendar/month") !== "06") {
- fSetMonth("06");
- }
- ]]>
- </script>
- </button>
- <button id="btn_m07" style="left:166px; top:28px; width:25px; height:25px; font-weight:bold; text-align:center; background-color:#f0f0f0; border-color:gray; border-width:1px; border-style:solid; focus-rect:hidden; ">
- <caption>7</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/hidden/calendar/month") !== "07") {
- fSetMonth("07");
- }
- ]]>
- </script>
- </button>
- <button id="btn_m08" style="left:193px; top:28px; width:25px; height:25px; font-weight:bold; text-align:center; background-color:#f0f0f0; border-color:gray; border-width:1px; border-style:solid; focus-rect:hidden; ">
- <caption>8</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/hidden/calendar/month") !== "08") {
- fSetMonth("08");
- }
- ]]>
- </script>
- </button>
- <button id="btn_m09" style="left:220px; top:28px; width:25px; height:25px; font-weight:bold; text-align:center; background-color:#f0f0f0; border-color:gray; border-width:1px; border-style:solid; focus-rect:hidden; ">
- <caption>9</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/hidden/calendar/month") !== "09") {
- fSetMonth("09");
- }
- ]]>
- </script>
- </button>
- <button id="btn_m10" style="left:247px; top:28px; width:25px; height:25px; font-weight:bold; text-align:center; background-color:#f0f0f0; border-color:gray; border-width:1px; border-style:solid; focus-rect:hidden; ">
- <caption>10</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/hidden/calendar/month") !== "10") {
- fSetMonth("10");
- }
- ]]>
- </script>
- </button>
- <button id="btn_m11" style="left:274px; top:28px; width:25px; height:25px; font-weight:bold; text-align:center; background-color:#f0f0f0; border-color:gray; border-width:1px; border-style:solid; focus-rect:hidden; ">
- <caption>11</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/hidden/calendar/month") !== "11") {
- fSetMonth("11");
- }
- ]]>
- </script>
- </button>
- <button id="btn_m12" style="left:301px; top:28px; width:25px; height:25px; font-weight:bold; text-align:center; background-color:#f0f0f0; border-color:gray; border-width:1px; border-style:solid; focus-rect:hidden; ">
- <caption>12</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/hidden/calendar/month") !== "12") {
- fSetMonth("12");
- }
- ]]>
- </script>
- </button>
- <output id="opt_month" ref="/root/hidden/calendar/month" style="left:204px; top:5px; width:20px; height:19px; font-size:12pt; font-weight:bold; text-align:right; "/>
- <caption id="caption24" style="left:154px; top:6px; width:15px; height:19px; ">년</caption>
- <caption id="caption25" style="left:225px; top:6px; width:20px; height:19px; ">월</caption>
- <button id="button31" style="left:175px; top:5px; width:20px; height:20px; font-weight:bold; text-align:center; background-color:#f0f0ff; border-color:gray; border-width:1px; border-style:solid; ">
- <caption>
- <![CDATA[>]]>
- </caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var date = model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month") + "01";
- var dDate = date.toDate().getAddDate(1, "Y");
-
- fSetCalendar(dDate);
- ]]>
- </script>
- </button>
- <output id="opt_year" ref="/root/hidden/calendar/year" style="left:111px; top:5px; width:40px; height:19px; font-size:12pt; font-weight:bold; text-align:right; "/>
- <select1 id="cmb_statflag" ref="/root/send/data/statflag" appearance="minimal" style="left:0px; top:5px; width:65px; height:19px; ">
- <choices>
- <item>
- <label>건수별</label>
- <value>C</value>
- </item>
- <item>
- <label>시간별</label>
- <value>T</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (grd_room.row < grd_room.fixedRows) {
- return;
- }
-
- fSetExcuRoom(false);
- ]]>
- </script>
- </select1>
- <button id="button36" style="left:80px; top:5px; width:20px; height:20px; font-weight:bold; text-align:center; background-color:#f0f0ff; border-color:gray; border-width:1px; border-style:solid; ">
- <caption>
- <![CDATA[<]]>
- </caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var date = model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month") + "01";
- var dDate = date.toDate().getAddDate(-1, "Y");
-
- fSetCalendar(dDate);
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_legend_cal" class="btn2_letter2" style="left:544px; top:442px; width:42px; height:19px; ">
- <caption>범례</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_legend_cal.visible = !grp_legend_cal.visible;
- ]]>
- </script>
- </button>
- <group id="grp_legend_cal" visibility="hidden" style="left:443px; top:468px; width:140px; height:140px; border-color:darkgray; border-style:solid; ">
- <caption id="caption52" style="left:15px; top:15px; width:20px; height:20px; text-align:center; background-color:#95d4fb; border-color:#999999; border-style:solid; "/>
- <caption id="caption53" style="left:15px; top:40px; width:20px; height:20px; text-align:center; background-color:#daa7d9; border-color:#999999; border-style:solid; "/>
- <caption id="caption54" style="left:40px; top:15px; width:64px; height:20px; ">오늘</caption>
- <caption id="caption55" style="left:40px; top:40px; width:59px; height:20px; ">선택일</caption>
- <caption id="caption56" style="left:15px; top:65px; width:20px; height:20px; text-align:center; background-color:#c4e693; border-color:#999999; border-width:1; border-style:solid; "/>
- <caption id="caption57" style="left:40px; top:65px; width:90px; height:20px; ">예약 가능일</caption>
- <caption id="caption58" style="left:15px; top:90px; width:20px; height:20px; font-weight:bold; text-align:center; border-color:#999999; border-style:solid; ">가</caption>
- <caption id="caption59" style="left:40px; top:90px; width:90px; height:20px; ">빈 시각 있음</caption>
- <caption id="caption13" style="left:40px; top:110px; width:90px; height:20px; ">( 가용 초과 시 )</caption>
- </group>
- <button id="btn_excu" class="btn_sw" group="tab" selected="true" style="left:0px; top:193px; width:40px; height:22px; ">
- <caption>통합</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- FUNC_FLAG = false;
-
- FUNC_SEL_ROW = 0;
-
- model.setValue("/root/send/data/fromdd", getCurrentDate().toDate().getAddDate(-1, "Y").getDateFormat("YYYYMMDD"));
- ipt_fromdd.refresh();
-
- model.toggle("excu");
- btn_excu.selected = true;
- btn_func.selected = false;
- btn_anot.selected = false;
-
- model.toggle("ptcmt");
-
- model.toggle("ctrl");
- ]]>
- </script>
- </button>
- <button id="btn_func" class="btn_sw" group="tab" selected="false" style="left:41px; top:193px; width:40px; height:22px; ">
- <caption>과내</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- FUNC_FLAG = true;
-
- EXCU_SEL_ROW = 0;
-
- //model.setValue("/root/send/data/fromdd", getCurrentDate().toDate().getAddDate(-7, "D").getDateFormat("YYYYMMDD"));
- model.setValue("/root/send/data/fromdd", getCurrentDate());
- ipt_fromdd.refresh();
-
- model.toggle("func");
- btn_excu.selected = false;
- btn_func.selected = true;
- btn_anot.selected = false;
-
- model.toggle("srchroom");
-
- model.toggle("memo");
- ]]>
- </script>
- </button>
- <button id="btn_anot" class="btn_sw" group="tab" selected="false" style="left:82px; top:193px; width:50px; height:22px; ">
- <caption>타검사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("anot");
- btn_excu.selected = false;
- btn_func.selected = false;
- btn_anot.selected = true;
- ]]>
- </script>
- </button>
- <button id="btn_srchprcp" class="btn2_letter4" style="left:718px; top:195px; width:64px; height:19px; ">
- <caption>처방조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (model.getValue("/root/send/data/pid") == "") {
- messageBox("조회된 환자 정보가 없습니다.", "E999");
- return;
- }
-
- var child = getOpenWindow("SMMMO02500");
-
- if (child != null ) {
-
- child.model.setValue("/root/main/patinfolist/pid", model.getValue("/root/send/data/pid"));
-
- setParameter("SMMMO02500_cond", model.getValue("/root/send/data/pid"));
-
- child.javascript.fReqGetPatComnInfo("/root/send/reqdata", model.getValue("/root/send/data/pid"));
-
- child.button1.selected = true;
- child.model.toggle("case1");
-
- child.model.copyNode("/root/main/patinfolist", "/root/main/srchinfo/patinfolist");
- child.model.removeNodeset("/root/main/bfprcp/prcplist");
- child.model.removeNodeset("/root/main/bfprcpday/bfprcpday");
- child.grd_prcpdd.visible = false;
- child.grd_bfprcplist.attribute("left") = 2;
- child.grd_bfprcplist.attribute("width") = 1190;
- child.model.refresh();
-
- } else {
-
- setParameter("SMMMO02500_cond", model.getValue("/root/send/data/pid"));
- open("SMMMO02500", "", "", "", "SMMMO02500", "/root/send/data/pid");
- }
- ]]>
- </script>
- </button>
- <line id="line3" class="line_1" style="x1:735px; y1:75px; x2:1195px; y2:75px; "/>
- <line id="line4" class="line_1" style="x1:335px; y1:75px; x2:730px; y2:75px; "/>
- <line id="line2" class="line_1" style="x1:1075px; y1:215px; x2:1195px; y2:215px; "/>
- <button id="button22" class="btn2_letter2" style="left:1153px; top:195px; width:42px; height:19px; ">
- <caption>휴검</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var suppdeptcd = "";
- var excuroomcd = "";
-
- var cnt = instance1.selectNodes("/root/main/exculist/excuinfo").length;
- if (cnt > 0 && model.getValue("/root/main/exculist/excuinfo/calcscorcd") != "") {
- suppdeptcd = model.getValue("/root/main/exculist/excuinfo[" + grd_excu.row + "]/suppdeptcd");
- excuroomcd = model.getValue("/root/main/exculist/excuinfo[" + grd_excu.row + "]/excuroomcd");
- }
-
- if (instance1.selectNodes("/root/main/excuroomlist/excuroominfo").length > 0) {
- excuroomcd = model.getValue("/root/main/excuroomlist/excuroominfo[" + grd_room.row + "]/excuroomcd");
- }
-
- model.makeValue("/root/send1/suppdeptcd", suppdeptcd);
- model.makeValue("/root/send1/excuroomcd", excuroomcd);
- model.makeValue("/root/send1/instance1", suppdeptcd);
- open("SMAEA00700", "", "", "", "SMAEA00700", "/root/send1","/root/send1");
- ]]>
- </script>
- </button>
- <button id="btn_rsrv" class="btn4_letter2" style="left:1015px; top:412px; width:56px; height:22px; ">
- <caption>예약</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (!FUNC_FLAG) {
- fCheckRsrv();
- } else {
- fCheckFuncRsrv();
- }
- ]]>
- </script>
- </button>
- <button id="btn_cncl" class="btn4_letter2" style="left:1071px; top:412px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (!FUNC_FLAG) {
- var cnt = instance1.selectNodes("/root/main/exculist/excuinfo").length;
- if (cnt < 1 || model.getValue("/root/main/exculist/excuinfo/calcscorcd") == "") {
- messageBox("조회된 검사 내역이 없습니다.", "E999");
- return;
- }
-
- var chkcnt = 0;
- for (var i = 1; i <= cnt; i++) {
- var path = "/root/main/exculist/excuinfo[" + i + "]/";
- if (model.getValue(path + "chk") != "Y") {
- continue;
- }
- chkcnt++;
- }
-
- if (chkcnt < 1) {
- messageBox("선택된 검사 내역이 없습니다.", "E999");
- return;
- }
-
- if (messageBox("선택된 [ " + chkcnt + " ] 건의 예약을", "Q007") == 6) {
- fExecRsrv("cncl");
-
- // 검사예약 취소시 문자 전송(20160728)
- var cnt = instance1.selectNodes("/root/main/exculist/excuinfo").length;
- for (var i = 1; i <= cnt; i++) {
- if (model.getValue("/root/main/exculist/excuinfo[" + i + "]/chk") != "Y") {
- continue;
- } else {
- var pid = ipt_pid.value;
- var hngnm = grd_pt.valueMatrix(1, grd_pt.colRef("hngnm"));
- var rsrvdt = model.getValue("/root/main/exculist/excuinfo[" + i + "]/rsrvdt");
- var rsrvdd = rsrvdt.substr(0, 8);
- var rsrvtm = rsrvdt.substr(8, 4);
- var mpphontel = grd_pt.valueMatrix(1, grd_pt.colRef("mpphontel"));
- var orddeptcd = model.getValue("/root/main/exculist/excuinfo[" + i + "]/orddeptcd");
- var orddepthngnm = model.getValue("/root/main/exculist/excuinfo[" + i + "]/orddepthngnm");
- var hosnm = "";
-
- if (getUserInfo("dutplceinstcd") == "031") {
- hosnm = "경북대병원";
- } else if (getUserInfo("dutplceinstcd") == "032") {
- hosnm = "칠곡경북대병원";
- } else if (getUserInfo("dutplceinstcd") == "033") {
- hosnm = "경북대치과병원";
- }
-
- var msgcnts = hosnm + " " + hngnm + "(" + pid + ")" + "님 " + rsrvdd.substr(4, 2)+"/"+rsrvdd.substr(6, 2)+" " + rsrvtm.substr(0, 2)+":" + rsrvtm.substr(2, 2)+" " + "검사예약이 취소되었습니다.";
-
- /*
- 01 : 외래예약취소시 문자발송여부
- 02 : 외래예약 변경시 취소시 문자발송여부
- 03 : 통합예약검사 예약 취소시 문자발송여부
- 04 : 통합예약검사 예약 변경시 문자발송여부
- */
- var sms_send_yn = model.getValue("/root/init/init_pam/P6588list/P6588[cdid='03']/cdnm");
-
- if (sms_send_yn == "Y") {
- fSmsSend(msgcnts, pid, hngnm, mpphontel, orddeptcd, "03");
- }
- }
- }
- //검사예약 취소시 문자 전송(20160728)
-
- fGetExcuList(model.getValue("/root/send/data/srchdd"));
- model.setFocus("ipt_pid");
- }
- } else {
- var cnt = instance1.selectNodes("/root/main/fcexlist/fcexinfo").length;
- if (cnt < 1 || model.getValue("/root/main/fcexlist/fcexinfo/calcscorcd") == "") {
- messageBox("조회된 검사 내역이 없습니다.", "E999");
- return;
- }
-
- var chkcnt = 0;
- for (var i = 1; i <= cnt; i++) {
- var path = "/root/main/fcexlist/fcexinfo[" + i + "]/";
- if (model.getValue(path + "chk") != "Y") {
- continue;
- }
- chkcnt++;
- }
-
- if (chkcnt < 1) {
- messageBox("선택된 검사 내역이 없습니다.", "E999");
- return;
- }
-
- if (messageBox("선택된 [ " + chkcnt + " ] 건의 예약을", "Q007") == 6) {
- fExecFuncRsrv("cncl");
-
- fGetFuncExcuList(model.getValue("/root/send/data/srchdd"));
- model.setFocus("ipt_pid");
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_infoprt" class="btn2_letter7" style="left:946px; top:195px; width:97px; height:19px; ">
- <caption>검사안내문출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (!FUNC_FLAG) {
-
- /*
- if (EXCU_SEL_ROW < 1) {
- messageBox("검사 내역이 선택되지 않았습니다.", "E999");
- return;
- }
-
- var path = "/root/main/exculist/excuinfo[" + EXCU_SEL_ROW + "]/";
-
- if (model.getValue(path + "rsrvflagyn") == "미예약") {
- messageBox("예약되지 않은 검사입니다. 예약 후 출력 가능합니다.", "E999");
- return;
- }
-
- if (model.getValue(path + "tmpldata") == "") {
- messageBox("등록된 예약 예문이 없습니다.", "E999");
- return;
- }
- */
-
- fInfoPrt();
-
- } else {
- fFuncInfoPrt();
- }
-
- ]]>
- </script>
- <hint>
- <![CDATA[검사안내문이 있으면 처방명이 파란색 글씨로 표시됩니다.]]>
- </hint>
- </button>
- <caption id="caption15" class="tit_2" style="left:595px; top:420px; width:75px; height:13px; ">예약 현황</caption>
- <shape id="rectangle1" appearance="rectangle" style="left:849px; top:412px; width:165px; height:22px; background-color:#ececec; border-color:#999999; border-style:solid; "/>
- <caption id="cap_tmsum" ref="/root/temp/tmsum" style="left:854px; top:414px; width:40px; height:18px; font-weight:bold; color:#b400b4; text-align:right; "/>
- <caption id="caption5" style="left:897px; top:414px; width:30px; height:18px; ">소요</caption>
- <caption id="cap_endtm" ref="/root/temp/endtm" style="left:934px; top:414px; width:40px; height:18px; font-weight:bold; color:#ff0000; text-align:right; "/>
- <caption id="caption6" style="left:977px; top:414px; width:30px; height:18px; ">완료</caption>
- <button id="btn_rsrvprt" class="btn2_letter7" style="left:848px; top:195px; width:97px; height:19px; ">
- <caption>예약일정표출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = "";
- if (!FUNC_FLAG) {
- pid = model.getValue("/root/send/data/pid");
-
- if (pid == "") {
- messageBox("조회된 환자가 없습니다.", "E999");
- return;
- }
-
- } else {
-
- if (FUNC_SEL_ROW < 1) {
- messageBox("선택된 내역이 없습니다.", "E999");
- return;
- }
-
- pid = model.getValue("/root/main/fcexlist/fcexinfo[" + FUNC_SEL_ROW + "]/pid");
- }
-
- fRsrvPrt(pid);
- ]]>
- </script>
- </button>
- <datagrid id="grd_pt" nodeset="/root/main/ptinfo" backcoloralternate="transparent" caption="이름^나이^성별^주민번호^집전화^휴대전화^주소^중증종료^희귀종료^SMS^VIP^사생활^일련번호^요청자^요청자기타^보호대상^보호대상기타^보호내용^보호내용기타^비고^HIV" colsep="^" colwidth="60, 35, 35, 90, 85, 85, 199, 80, 80, 35, 40, 50, 0, 0, 0, 0, 0, 0, 0, 0, 35" ellipsis="true" focuscolor="transparent" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="label" style="left:285px; top:5px; width:910px; height:46px; border-left-width:1; border-top-width:0; border-right-width:0; border-bottom-width:0; border-style:solid; ">
- <col ref="hngnm" style="font-weight:bold; text-align:center; "/>
- <col ref="age" style="text-align:center; "/>
- <col disabled="true" ref="sex" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>남</label>
- <value>M</value>
- </item>
- <item>
- <label>여</label>
- <value>F</value>
- </item>
- </choices>
- </col>
- <col ref="rrgstno" style="text-align:center; "/>
- <col ref="hometel" style="text-align:center; "/>
- <col ref="mpphontel" style="text-align:center; "/>
- <col ref="addr" style="text-align:center; "/>
- <col ref="serdiagtodd" format="yyyy-mm-dd" style="font-weight:bold; color:#ff0000; text-align:center; "/>
- <col ref="rareobsttodd" format="yyyy-mm-dd" style="font-weight:bold; color:#ff0000; text-align:center; "/>
- <col ref="smsaprvyn" style="text-align:center; "/>
- <col disabled="true" ref="vip" type="combo" style="font-weight:bold; text-align:center; ">
- <choices>
- <item>
- <label>감면</label>
- <value>F</value>
- </item>
- <item>
- <label>추천</label>
- <value>R</value>
- </item>
- <item>
- <label>후원</label>
- <value>S</value>
- </item>
- <item>
- <label>후불</label>
- <value>V</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="privacy" type="combo" style="font-weight:bold; color:#ffffa0; text-align:center; cursor:hand; ">
- <choices>
- <item>
- <label>보호</label>
- <value>Y</value>
- </item>
- </choices>
- </col>
- <col ref="no" visibility="hidden"/>
- <col ref="request" visibility="hidden"/>
- <col ref="requestetc" visibility="hidden"/>
- <col ref="target" visibility="hidden"/>
- <col ref="targetetc" visibility="hidden"/>
- <col ref="type" visibility="hidden"/>
- <col ref="typeetc" visibility="hidden"/>
- <col ref="rmk" visibility="hidden"/>
- <col disabled="true" ref="hivflag" type="combo" style="background-position:center; ">
- <choices>
- <item>
- <label/>
- <value>Y</value>
- </item>
- </choices>
- </col>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (!grd_pt.isCell(event.target) || grd_pt.row < grd_pt.fixedRows) {
- return;
- }
-
- if (grd_pt.col == grd_pt.colRef("privacy") && model.getValue("/root/main/ptinfo/no") != "") {
- fShowPrivacyMsg();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:260px; top:420px; width:60px; height:13px; ">예약일</caption>
- <line id="line7" class="line_1" style="x1:260px; y1:435px; x2:590px; y2:435px; "/>
- <object id="rtfviewer" clsid="{a4bf7e18-5f67-4868-a726-eed421632374}" visibility="hidden" style="left:1175px; top:170px; width:15px; height:15px; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:435px; x2:255px; y2:435px; "/>
- <caption id="caption11" class="tit_2" style="left:0px; top:420px; width:105px; height:14px; ">처방 전달 사항</caption>
- <button id="btnHope" class="btn2_letter7" style="left:158px; top:415px; width:97px; height:19px; ">
- <caption>처방희망일지정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/send/data/pid");
-
- if (pid == "") {
- messageBox("조회된 환자가 없습니다.", "E999");
- return;
- }
-
- setParameter("SPPEA00103_pid", model.getValue("/root/send/data/pid"));
- modal("SPPEA00103");
- ]]>
- </script>
- </button>
- <textarea id="tar_prcpcmt" ref="/root/hidden/prcpcmt" scroll="autovscroll" editable="false" maxbyte="4000" style="left:0px; top:440px; width:255px; height:65px; font-weight:bold; text-align:center; vertical-align:middle; padding:3; "/>
- <caption id="caption21" style="left:497px; top:55px; width:35px; height:19px; text-align:center; background-color:#ffffa0; border-color:#999999; border-style:solid; ">후불</caption>
- <caption id="caption22" style="left:461px; top:55px; width:35px; height:19px; text-align:center; border-color:#999999; border-style:solid; ">접수</caption>
- <caption id="caption23" style="left:533px; top:55px; width:45px; height:19px; text-align:center; background-color:#ffb450; border-color:#999999; border-style:solid; ">미수납</caption>
- <button id="btn_weekrsrv" class="btn2_letter6" style="left:1109px; top:55px; width:86px; height:19px; ">
- <caption>주간예약조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMAEA00910", "", "", "", "SMAEA00910", "", "");
- ]]>
- </script>
- </button>
- <button id="btn_rsrvchng" class="btn2_letter6" style="left:1022px; top:55px; width:86px; height:19px; ">
- <caption>예약변경조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMAEA00800", "", "", "", "SMAEA00800", "/root/send/data/pid", "/root/send/pid");
- ]]>
- </script>
- </button>
- <caption id="caption26" style="left:144px; top:198px; width:52px; height:15px; font-weight:bold; ">처방일 :</caption>
- <input id="ipt_fromdd" ref="/root/send/data/fromdd" class="input_search" inputtype="date" style="left:200px; top:195px; width:85px; height:19px; padding-top:2; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/send/data/fromdd") < "20110101") {
- messageBox("처방 조회 기간은 2011년 1월 1일 이전으로 설정할 수 없습니다.", "E999");
- model.setValue("/root/send/data/fromdd", "20110101");
- ipt_fromdd.refresh();
- }
- ]]>
- </script>
- </input>
- <caption id="caption16" style="left:286px; top:198px; width:13px; height:15px; text-align:center; ">~</caption>
- <input id="ipt_todd" ref="/root/send/data/todd" class="input_search" inputtype="date" style="left:299px; top:195px; width:85px; height:19px; padding-top:2; "/>
- <group id="grp_creatine" visibility="hidden" style="left:395px; top:194px; width:115px; height:20px; background-color:#ffff00; border-color:#ff0000; border-style:solid; ">
- <caption id="caption77" style="left:7px; top:2px; width:71px; height:15px; ">Creatinine :</caption>
- <caption id="cap_creatine" ref="/root/main/ptinfo/creatine" style="left:80px; top:2px; width:30px; height:15px; font-weight:bold; color:#ff0000; ">0</caption>
- </group>
- <select1 id="cmb_roomgrp" ref="/root/hidden/roomgrp" appearance="minimal" itemcount="21" style="left:426px; top:415px; width:121px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/pseu/roomlist/roomgrp">
- <label ref="basecdflagdesc"/>
- <value ref="basecd"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_temprsrv" class="btn2_letter2" style="left:548px; top:415px; width:42px; height:19px; ">
- <caption>임시</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter("menuparam", "R");
- setParameter("suppdeptcd", "2180000000"); // 임시 예약은 핵의학과로 고정
- setParameter("excuroomgrp", model.getValue("/root/init/pseu/roomlist/roomgrp[basecd='" + model.getValue("/root/hidden/roomgrp") + "']/basecdcnts"));
-
- modal("SPAEA02201", "", "200", "200", "popup", "", "");
- ]]>
- </script>
- </button>
- <button id="btn_legend_rmrv" class="btn2_letter2" style="left:806px; top:415px; width:42px; height:19px; ">
- <caption>범례</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_legend_rmrv.visible = !grp_legend_rmrv.visible;
- ]]>
- </script>
- </button>
- <button id="btn_prcphist" class="btn2_letter4" style="left:892px; top:55px; width:64px; height:19px; ">
- <caption>처방이력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 기본 핵의학과로 설정
- var suppdeptcd = "2180000000";
- /*
- if (EXCU_SEL_ROW > 0) {
- suppdeptcd = model.getValue("/root/main/exculist/excuinfo[" + EXCU_SEL_ROW + "]/suppdeptcd");
- }
- */
- setParameter("SMPEA00100_suppdeptcd", suppdeptcd);
- open("SMAEA00400", "1", "", "", "SMAEA00400", "/root/send/data/pid", "/root/send/pid");
- ]]>
- </script>
- </button>
- <button id="btn_addrsrv" class="btn2_letter4" style="left:783px; top:195px; width:64px; height:19px; ">
- <caption>추가예약</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var cnt = instance1.selectNodes("/root/main/exculist/excuinfo").length;
- if (cnt < 1 || model.getValue("/root/main/exculist/excuinfo/calcscorcd") == "") {
- messageBox("조회된 검사 내역이 없습니다.", "E999");
- return;
- }
-
- if (EXCU_SEL_ROW < 1) {
- messageBox("선택된 검사 내역이 없습니다.", "E999");
- return;
- }
-
- fPseuRsrvInfo();
- ]]>
- </script>
- </button>
- <button id="btn_rsrvstat" class="btn2_letter4" style="left:957px; top:55px; width:64px; height:19px; ">
- <caption>예약현황</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMAEA00300", "", "", "", "SMAEA00300", "/root/send/data/pid", "/root/send/srchpid");
- ]]>
- </script>
- </button>
- <button id="btn_nhic" class="btn2_letter4" style="left:579px; top:55px; width:64px; height:19px; ">
- <caption>자격조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/main/ptinfo/hngnm") == "") {
- messageBox("조회된 환자가 없습니다.", "E999");
- return;
- }
-
- var rrgstno = model.getValue("/root/main/ptinfo/rrgstno");
- var hngnm = model.getValue("/root/main/ptinfo/hngnm");
- var orddd = getCurrentDate();
-
- // 예약일이 있으면 예약일로 설정
- if (instance1.selectNodes("/root/main/exculist/excuinfo").length > 0 && grd_excu.row > 0
- && model.getValue("/root/main/exculist/excuinfo[" + grd_excu.row + "]/srchrsrvtm").length >= 8) {
- orddd = model.getValue("/root/main/exculist/excuinfo[" + grd_excu.row + "]/srchrsrvtm").substr(0, 8);
- }
-
- var cretno = "";
- var ordtype = "O";
- var dschdd = "";
- var payownbamt = "";
- var payinsubamt = "";
- var pid = model.getValue("/root/send/data/pid");
- var orddeptcd = "";
- var ownbflag = "";
- var nopyamt = "";
- var pregdmndamt = "";
- var suppkind = "";
-
- var parm = rrgstno.substr(0, 6)
- + rrgstno.substr(7, 7) + "▦"
- + hngnm + "▦"
- + orddd + "▦"
- + cretno + "▦"
- + ordtype + "▦"
- + dschdd + "▦"
- + payownbamt + "▦"
- + payinsubamt + "▦"
- + pid + "▦"
- + orddeptcd + "▦"
- + ownbflag + "▦"
- + nopyamt + "▦"
- + pregdmndamt + "▦"
- + suppkind + "▦";
-
- setParameter("SPPMC03900_PARM", parm);
-
- modal("SPPMC03900", "1");
- ]]>
- </script>
- </button>
- <button id="btn_ptinfo" class="btn2_letter6" style="left:644px; top:55px; width:86px; height:19px; ">
- <caption>환자정보수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/ptinfo/pid", model.getValue("/root/send/data/pid"));
- model.setValue("/root/send/ptinfo/srchcond", "1");
- open("SMPMC01400", "1", "", "", "SMPMC01400", "/root/send/ptinfo", "/root/hidden/source");
- ]]>
- </script>
- </button>
- <caption id="cap_dept" ref="/root/hidden/dutplcenm" style="left:130px; top:0px; width:145px; height:14px; font-weight:bold; color:darkmagenta; text-align:right; vertical-align:middle; "/>
- <button id="btn_sms" class="btn2_letter2" style="left:849px; top:55px; width:42px; height:19px; ">
- <caption>SMS</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SPCNS00500");
- ]]>
- </script>
- </button>
- <switch id="switch3" style="left:0px; top:515px; width:255px; height:250px; border-width:0; ">
- <case id="ctrl" selected="true">
- <line id="line8" class="line_1" style="x1:0px; y1:20px; x2:255px; y2:20px; "/>
- <caption id="caption40" style="left:159px; top:1px; width:60px; height:19px; text-align:center; background-color:#ffdcdc; border-color:#999999; border-style:solid; ">통합예약</caption>
- <caption id="caption3" style="left:220px; top:1px; width:35px; height:19px; text-align:center; background-color:#ebebff; border-color:#999999; border-style:solid; ">팝업</caption>
- <caption id="caption37" class="tit_2" style="left:0px; top:5px; width:85px; height:13px; ">
- <![CDATA[제어 내역]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- open("SPPEA00200", "");
- ]]>
- </script>
- </caption>
- <caption id="caption38" style="left:87px; top:1px; width:35px; height:19px; text-align:center; border-color:#999999; border-style:solid; ">확인</caption>
- <caption id="caption39" style="left:123px; top:1px; width:35px; height:19px; text-align:center; background-color:#ffffa0; border-color:#999999; border-style:solid; ">제어</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, 230" extendlastcol="scroll" focuscolor="transparent" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:25px; width:255px; height:225px; ">
- <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="ctrlyn" style="text-align:center; "/>
- <col ref="ctrldesc" style="text-align:left; padding-left:2; padding-right:2; "/>
- </datagrid>
- </case>
- <case id="memo" style="border-width:0; ">
- <line id="line11" class="line_1" style="x1:0px; y1:15px; x2:255px; y2:15px; "/>
- <caption id="caption20" class="tit_2" style="left:0px; top:85px; width:105px; height:14px; ">환자 전달 사항</caption>
- <line id="line12" class="line_1" style="x1:0px; y1:100px; x2:255px; y2:100px; "/>
- <textarea id="tar_drmemo" ref="/root/hidden/memoinfo/drmemo" scroll="autovscroll" maxbyte="4000" style="left:0px; top:190px; width:255px; height:60px; padding:3; "/>
- <line id="line14" class="line_1" style="x1:0px; y1:185px; x2:255px; y2:185px; "/>
- <select1 id="rdo_drflag" ref="/root/hidden/memoinfo/drflag" appearance="full" cellspacing="2" cols="2" overflow="visible" style="left:0px; top:169px; width:100px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>부서</label>
- <value>D</value>
- </item>
- <item>
- <label>검사실</label>
- <value>R</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (FUNC_SEL_ROW < 1) {
- return;
- }
-
- var flag = model.getValue("/root/hidden/memoinfo/drflag");
-
- if (flag == "D") {
- model.setValue("/root/hidden/memoinfo/drmemo", model.getValue("/root/main/fcexlist/fcexinfo[" + FUNC_SEL_ROW + "]/deptmemo"));
- } else if (flag == "R") {
- model.setValue("/root/hidden/memoinfo/drmemo", model.getValue("/root/main/fcexlist/fcexinfo[" + FUNC_SEL_ROW + "]/roommemo"));
- }
-
- tar_drmemo.refresh();
- ]]>
- </script>
- </select1>
- <textarea id="tar_ptmemo" ref="/root/hidden/memoinfo/ptmemo" scroll="autovscroll" maxbyte="4000" style="left:0px; top:105px; width:255px; height:60px; padding:3; "/>
- <caption id="caption19" class="tit_2" style="left:0px; top:0px; width:85px; height:14px; ">상병 정보</caption>
- <textarea id="tar_diag" ref="/root/hidden/memoinfo/diag" scroll="autovscroll" editable="false" maxbyte="4000" style="left:0px; top:20px; width:255px; height:60px; padding:3; "/>
- <button id="btn_saveptmemo" class="btn2_letter2" style="left:213px; top:80px; width:42px; height:19px; ">
- <caption>저장</caption>
- </button>
- <button id="btn_savedeptmemo" class="btn2_letter2" style="left:213px; top:165px; width:42px; height:19px; ">
- <caption>저장</caption>
- </button>
- <caption id="caption27" style="left:105px; top:170px; width:50px; height:14px; font-weight:bold; ">MEMO</caption>
- </case>
- </switch>
- <button id="btn_excuex" style="left:1044px; top:195px; width:26px; height:19px; background-image:../../../com/commonweb/images/btn_send_bottom.gif; focus-rect:hidden; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (btn_excuex.attribute("background-image") == "../../../com/commonweb/images/btn_send_bottom.gif") {
- switch1.attribute("height") = "550px";
- grd_excu.attribute("height") = grd_fcex.attribute("height") = grd_anex.attribute("height") = "545px";
-
- btn_excuex.attribute("background-image") = "../../../com/commonweb/images/btn_send_top.gif";
- } else {
- switch1.attribute("height") = "190";
- grd_excu.attribute("height") = grd_fcex.attribute("height") = grd_anex.attribute("height") = "185px";
- btn_excuex.attribute("background-image") = "../../../com/commonweb/images/btn_send_bottom.gif";
- }
- ]]>
- </script>
- </button>
- <button id="btn_rsrvstaff" class="btn2_letter5" visibility="hidden" style="left:703px; top:415px; width:75px; height:19px; ">
- <caption>담당자관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SPPEA00102", "");
- ]]>
- </script>
- </button>
- <button id="btn_rmrvex" style="left:779px; top:415px; width:26px; height:19px; background-image:../../../com/commonweb/images/btn_send_left.gif; focus-rect:hidden; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (btn_rmrvex.attribute("background-image") == "../../../com/commonweb/images/btn_send_left.gif") {
- btn_rmrvex.attribute("background-image") = "../../../com/commonweb/images/btn_send_right.gif";
- caption15.attribute("left") = line6.attribute("x1") = grd_rmrv.attribute("left") = "0px";
- grd_rmrv.attribute("width") = "1195px";
- caption11.visible = caption1.visible = cmb_roomgrp.visible = btn_temprsrv.visible = btnHope.visible = false;
- } else {
- btn_rmrvex.attribute("background-image") = "../../../com/commonweb/images/btn_send_left.gif";
- caption15.attribute("left") = line6.attribute("x1") = grd_rmrv.attribute("left") = "595px";
- grd_rmrv.attribute("width") = "600px";
- caption11.visible = caption1.visible = btnHope.visible = true;
- if (RSRV_PLCE == "T") {
- cmb_roomgrp.visible = btn_temprsrv.visible = true;
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_multirsrv" class="btn2_letter4" style="left:653px; top:195px; width:64px; height:19px; ">
- <caption>멀티예약</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.resetInstanceNode("/root/hidden/multrsrv/excuinfo");
-
- var cnt = instance1.selectNodes("/root/main/exculist/excuinfo").length;
- var idx = 0;
- for (var i = 1; i <= cnt; i++) {
-
- if (model.getValue("/root/main/exculist/excuinfo[" + i + "]/chk") != "Y") {
- continue;
- }
-
- idx++;
-
- model.makeValue("/root/hidden/multrsrv/excuinfo[" + idx + "]/rowcnt", i);
- model.makeValue("/root/hidden/multrsrv/excuinfo[" + idx + "]/prcpnm", model.getValue("/root/main/exculist/excuinfo[" + i + "]/prcpnm"));
- model.makeValue("/root/hidden/multrsrv/excuinfo[" + idx + "]/suppdeptcd", model.getValue("/root/main/exculist/excuinfo[" + i + "]/suppdeptcd"));
- model.makeValue("/root/hidden/multrsrv/excuinfo[" + idx + "]/genrflag", model.getValue("/root/main/exculist/excuinfo[" + i + "]/genrflag"));
-
- if (model.getValue("/root/main/exculist/excuinfo[" + i + "]/rsrvflagyn") == "예약") {
- model.makeValue("/root/hidden/multrsrv/excuinfo[" + idx + "]/excuroomcd", model.getValue("/root/main/exculist/excuinfo[" + i + "]/excuroomcd"));
- model.makeValue("/root/hidden/multrsrv/excuinfo[" + idx + "]/examroomnm", model.getValue("/root/main/exculist/excuinfo[" + i + "]/examroomnm"));
- } else {
- var roomArr = model.getValue("/root/main/exculist/excuinfo[" + i + "]/rsrvexcuroompossnm").split("^");
- model.makeValue("/root/hidden/multrsrv/excuinfo[" + idx + "]/excuroomcd", roomArr[0].split("|")[0]);
- model.makeValue("/root/hidden/multrsrv/excuinfo[" + idx + "]/examroomnm", roomArr[0].split("|")[1]);
- }
- }
-
- if (idx > 5){
- messageBox("5개를 초과해서 처리할 수 없습니다.", "E999", "");
- return;
- }
-
- if (idx > 0){
- modal("SPPEA00101", "", "20", "100", "SPPEA00101", "/root/hidden/multrsrv", "/root/excu");
-
- fGetRsrvCtrlList(grd_excu, EXCU_SEL_ROW);
- } else {
- messageBox("선택된 검사가 없습니다.", "E999");
- }
- ]]>
- </script>
- </button>
- <button id="btn_legend_excu" class="btn2_letter2" style="left:545px; top:195px; width:42px; height:19px; ">
- <caption>범례</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_legend_excu.visible = !grp_legend_excu.visible;
- ]]>
- </script>
- </button>
- <button id="btn_directsms" class="btn2_letter4" style="left:588px; top:195px; width:64px; height:19px; ">
- <caption>문자전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.resetInstanceNode("/root/hidden/smslist/smsinfo");
- grd_sms.refresh();
-
- var pid = model.getValue("/root/send/data/pid");
- var hngnm = model.getValue("/root/main/ptinfo/hngnm");
- var hosp = "";
-
- if (getUserInfo("dutplceinstcd") == "031") {
- hosp = "경북대병원";
- } else if (getUserInfo("dutplceinstcd") == "032") {
- hosp = "칠곡경북대병원";
- } else if (getUserInfo("dutplceinstcd") == "033") {
- hosp = "경북대치과병원";
- }
-
- var idx = 0;
-
- for (var i = 1; i <= instance1.selectNodes("/root/main/exculist/excuinfo").length; i++) {
-
- var path = "/root/main/exculist/excuinfo[" + i + "]/";
-
- if (model.getValue(path + "chk") != "Y") {
- continue;
- }
-
- idx++;
-
- model.makeValue("/root/hidden/smslist/smsinfo[" + idx + "]/orddeptcd", model.getValue(path + "orddeptcd"));
-
- var rsrvdt = model.getValue(path + "srchrsrvtm");
- var postyn = model.getValue(path + "aftrcptinfo");
- var statcd = model.getValue(path + "execprcpstatcd");
- var roomnm = model.getValue(path + "examroomnm").trim();
- var deptcd = model.getValue(path + "orddeptcd");
- var deptnm = model.getValue(path + "orddepthngnm");
-
- var msg = hosp + " "
- + hngnm
- + "(" + pid + ")님 "
- + rsrvdt.substr(4, 2) + "/" + rsrvdt.substr(6, 2)
- + ( postyn != "V" && parseInt(statcd) < 230 ? " 수납후 방문 " : " 방문 " )
- + rsrvdt.substr(8, 2) + ":" + rsrvdt.substr(10, 2) + " "
- + roomnm;
-
- model.makeValue("/root/hidden/smslist/smsinfo[" + idx + "]/msgcnts", msg);
- }
-
- grd_sms.refresh();
-
- if (idx < 1) {
- messageBox("선택된 내역이 없습니다.", "E999");
- return;
- }
-
- grp_directsms.visible = true;
- ]]>
- </script>
- </button>
- <datagrid id="grd_rmrv" nodeset="/root/main3/rmrvlist/rmrvinfo" allowselection="false" autoresize="true" backcoloralternate="transparent" caption="누적^시각^검사실^검사실^현황^가용^tmflag^등록번호^이름^나이^구분^mergestop^소요^검사명^상태^상태^진료과^진료과^진료의^진료의^검사코드^처방전달사항^예약참고사항^예약일시^예약자" colsep="^" colwidth="30, 45, 0, 100, 30, 30, 0, 55, 50, 30, 35, 0, 30, 197, 0, 50, 0, 50, 0, 50, 90, 300, 200, 120, 50" ellipsis="true" fixedcols="1" focuscolor="transparent" frozencols="9" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:595px; top:440px; width:600px; height:325px; text-align:center; ">
- <col ref="ptacc"/>
- <col ref="rsrvtm" format="hh:nn" style="font-weight:bold; background-color:#ffffa0; "/>
- <col ref="excuroomcd" visibility="hidden"/>
- <col ref="excuroomnm" visibility="hidden" style="background-color:#ffffa0; "/>
- <col ref="stat" style="font-weight:bold; background-color:#ffffa0; "/>
- <col ref="capa" style="font-weight:bold; background-color:#ffffa0; "/>
- <col ref="tmflag"/>
- <col ref="pid" style="background-color:#f0f0ff; "/>
- <col ref="hngnm" style="background-color:#f0f0ff; "/>
- <col ref="age"/>
- <col disabled="true" ref="prcpgenrflag" type="combo">
- <choices>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>입원</label>
- <value>D</value>
- </item>
- <item>
- <label>응급</label>
- <value>E</value>
- </item>
- <item>
- <label>건진</label>
- <value>S</value>
- </item>
- </choices>
- </col>
- <col ref="mergestop" visibility="hidden"/>
- <col ref="excutm" style="font-weight:bold; color:#b400b4; "/>
- <col ref="excucdnm" style="text-align:left; "/>
- <col ref="rsrvstatcd" visibility="hidden"/>
- <col ref="rsrvstatnm"/>
- <col ref="orddeptcd"/>
- <col ref="deptengabbr"/>
- <col ref="orddrid"/>
- <col ref="orddrnm"/>
- <col ref="calcscorcd"/>
- <col ref="prcpdelivefact" style="text-align:center; "/>
- <col ref="rsrvrem" style="text-align:center; "/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="lastupdtrnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- if (!grd_rmrv.isCell(event.target) || grd_rmrv.row < grd_rmrv.fixedRows || grd_rmrv.col == 0) {
- return;
- }
-
- // 등록번호 더블 클릭시 해당 환자 조회
- if (grd_rmrv.col == grd_rmrv.colRef("pid") || grd_rmrv.col == grd_rmrv.colRef("hngnm")) {
- var pid = model.getValue("/root/main3/rmrvlist/rmrvinfo[" + grd_rmrv.row + "]/pid");
- if (pid != "") {
- model.setValue("/root/send/data/pid", pid);
- btn_search.dispatch("DOMActivate");
- }
- return;
- }
-
- // 시각, 현황, 가용, 소요 칼럼 더블 클릭시만 예약 시각 설정
- if (grd_rmrv.col > grd_rmrv.colRef("pid")) {
- return;
- }
-
- var grd = !FUNC_FLAG ? grd_excu : grd_fcex;
-
- grd.row = !FUNC_FLAG ? EXCU_SEL_ROW : FUNC_SEL_ROW;
-
- var excuPath = !FUNC_FLAG ? "/root/main/exculist/excuinfo[" + grd.row + "]/" : "/root/main/fcexlist/fcexinfo[" + grd.row + "]/";
-
- if (!FUNC_FLAG && model.getValue(excuPath + "rsrvtmcntlyn") == "Y") {
- messageBox("예약시간을 변경할 수 없는 검사/치료실입니다.", "E999", "");
- return;
- }
-
- var rmrvPath = "/root/main3/rmrvlist/rmrvinfo[" + grd_rmrv.row + "]/";
-
- // 가용 인원 확인
- var stat = Number(model.getValue(rmrvPath + "stat"));
- var capa = Number(model.getValue(rmrvPath + "capa"));
- if (stat >= capa && messageBox("가용 인원을 초과하였습니다.\r\n예약을 진행하시겠습니까?", "Q999") != 6) {
- return;
- }
-
- // 이전 검사 종료 시각 확인
- var tmflag = model.getValue(rmrvPath + "tmflag");
- if (tmflag == "Y" && messageBox("이전 검사가 아직 끝나지 않은 시각입니다!\r\n예약을 진행하시겠습니까?", "Q999") != 6) {
- return;
- }
-
- var rsrvdd = model.getValue("/root/send/data/rsrvdd");
- var rsrvtm = model.getValue(rmrvPath + "rsrvtm");
-
- // 과거 일자 여부 확인
- var currdd = getCurrentDate();
- if (rsrvdd < currdd) {
- messageBox("과거 일자는 예약할 수 없습니다", "E999");
- return;
- } else if (currdd == rsrvdd && Number(rsrvtm) < Number(getCurrentTime().substr(0, 4))) {
- messageBox("과거 시각은 예약할 수 없습니다.", "E999");
- return;
- }
-
- var rsrvdt = rsrvdd + rsrvtm;
- var excutm = Number(model.getValue(excuPath + "excutm"));
- var addtm = Number(rsrvdt.toDate("YYYYMMDDhhmm").getAddDate(excutm, "m").getDateFormat("hhmm"));
-
- cnt = instance1.selectNodes("/root/main3/rmrvlist/rmrvinfo").length;
- var flag = false;
- for (var i = grd_rmrv.row + 1; i <= cnt; i++) {
- var path = "/root/main3/rmrvlist/rmrvinfo[" + i + "]/";
- var currtm = Number(model.getValue(path + "rsrvtm"));
-
- // 다른 검사 시각 확인
- if (!flag && addtm > currtm && Number(model.getValue(path + "stat")) >= Number(model.getValue(path + "capa"))) {
- if (messageBox("소요 시간 내에 다른 검사가 있습니다.\r\n예약을 진행하시겠습니까?", "Q999") != 6) {
- return;
- } else {
- flag = true;
- break;
- }
- }
- }
-
- var nfsttm = 0; // 오후 첫번째 시각
- for (var i = 1; i <= cnt; i++) {
- var path = "/root/main3/rmrvlist/rmrvinfo[" + i + "]/";
- var currtm = Number(model.getValue(path + "rsrvtm"));
-
- // 오후 첫번째 시각 확인
- if (currtm > 1200 && nfsttm == 0) {
- nfsttm = currtm;
- break;
- }
- }
- // 점심 시간 여부 확인
- if (rsrvtm < nfsttm && addtm > 1200) {
- if (messageBox("소요 시간 내에 점심 시간이 있습니다.\r\n예약을 진행하시겠습니까?", "Q999") != 6) {
- return;
- }
- }
-
- // 연속 예약 확인 및 설정
- var prcpdd = model.getValue(excuPath + "prcpdd");
- var bf_excuroomcd = model.getValue(excuPath + "bf_excuroomcd");
- cnt = instance1.selectNodes("/root/main/exculist/excuinfo").length;
- flag = false;
- if (!FUNC_FLAG) { // 과내 검사는 연속 예약 기능 사용 안함
- for (var i = 1; i <= cnt; i++) {
- var path = "/root/main/exculist/excuinfo[" + i + "]/";
- if (i != grd_excu.row) {
- if (model.getValue(path + "prcpdd") == prcpdd && model.getValue(path + "bf_excuroomcd") == bf_excuroomcd) {
- if (messageBox("동일한 검사실의 검사 내역이 확인되었습니다.\n예약 시각을 연속으로 설정하시겠습니까?", "Q999") == 6) {
- flag = true;
- break;
- } else {
- break;
- }
- }
- }
- }
- }
-
- /*
- var excuroomcd = model.getValue("/root/main/excuroomlist/excuroominfo[" + grd_room.row + "]/excuroomcd");
- var examroomnm = model.getValue("/root/main/excuroomlist/excuroominfo[" + grd_room.row + "]/excuroomnm");
- */
-
- var excuroomcd = model.getValue(rmrvPath + "excuroomcd");
- var examroomnm = model.getValue(rmrvPath + "excuroomnm");
-
- // 중복 예약 확인
- if (!fChkRoomTimeStat(model.getValue(excuPath + "suppdeptcd"), excuroomcd, rsrvdd, rsrvtm, stat)) {
- return;
- }
-
- // 예약 현황 담아두기
- // 예약 현황 그리드를 더블 클릭할 때는 선택된 검사에 대한 중복 예약 여부만 확인하고
- // 이때 담아둔 현황들에 대해 예약 버튼 클릭시 전체 중복 예약 여부를 확인한다.
-
- cnt = instance1.selectNodes("/root/temp/exstlist/exstinfo").length;
- var setidx = 0;
- for (var i = 1; i <= cnt; i++) {
- if (model.getValue("/root/temp/exstlist/exstinfo[" + i + "]/rowidx") == grd.row) {
- setidx = i;
- break;
- }
- }
-
- setidx = setidx == 0 ? cnt + 1 : setidx;
-
- model.makeValue("/root/temp/exstlist/exstinfo[" + setidx + "]/rowidx", grd.row);
- model.makeValue("/root/temp/exstlist/exstinfo[" + setidx + "]/prcpdt", prcpdd + model.getValue(excuPath + "rgsttm"));
- model.makeValue("/root/temp/exstlist/exstinfo[" + setidx + "]/orddept", model.getValue(excuPath + "orddepthngnm"));
- model.makeValue("/root/temp/exstlist/exstinfo[" + setidx + "]/prcpnm", model.getValue(excuPath + "prcpnm"));
- model.makeValue("/root/temp/exstlist/exstinfo[" + setidx + "]/suppdeptcd", model.getValue(excuPath + "suppdeptcd"));
- model.makeValue("/root/temp/exstlist/exstinfo[" + setidx + "]/suppdeptnm", model.getValue(excuPath + "suppdeptnm"));
- model.makeValue("/root/temp/exstlist/exstinfo[" + setidx + "]/excuroomcd", excuroomcd);
- model.makeValue("/root/temp/exstlist/exstinfo[" + setidx + "]/excuroomnm", examroomnm);
- model.makeValue("/root/temp/exstlist/exstinfo[" + setidx + "]/rsrvdd", rsrvdd);
- model.makeValue("/root/temp/exstlist/exstinfo[" + setidx + "]/rsrvtm", rsrvtm);
- model.makeValue("/root/temp/exstlist/exstinfo[" + setidx + "]/stat", stat);
-
- if (flag) {
-
- // 연속 예약일 경우, 다른 검사 시각 및 점심 시간 여부 재 확인
- excutm = 0;
- for (var i = 1; i <= cnt; i++) {
- var path = "/root/main/exculist/excuinfo[" + i + "]/";
- if (model.getValue(path + "prcpdd") == prcpdd && model.getValue(path + "bf_excuroomcd") == bf_excuroomcd) {
- excutm += Number(model.getValue(path + "excutm"));
- }
- }
-
- addtm = rsrvdt.toDate("YYYYMMDDhhmm").getAddDate(excutm, "m").getDateFormat("hhmm");
-
- cnt = instance1.selectNodes("/root/main3/rmrvlist/rmrvinfo").length;
- flag = false;
- for (var i = grd_rmrv.row; i <= cnt; i++) {
- var path = "/root/main3/rmrvlist/rmrvinfo[" + i + "]/";
- var currtm = Number(model.getValue(path + "rsrvtm"));
-
- // 다른 검사 시각 확인
- if (!flag && addtm > currtm && Number(model.getValue(path + "stat")) >= Number(model.getValue(path + "capa"))) {
- if (messageBox("소요 시간 내에 다른 검사가 있습니다.\r\n예약을 진행하시겠습니까?", "Q999") != 6) {
- return;
- } else {
- flag = true;
- }
- }
- }
-
- // 점심 시간 여부 확인
- if (rsrvtm < nfsttm && addtm > 1200) {
- if (messageBox("소요 시간 내에 점심 시간이 있습니다.\r\n예약을 진행하시겠습니까?", "Q999") != 6) {
- return;
- }
- }
-
- // 연속 예약 시각 설정
- cnt = instance1.selectNodes("/root/main/exculist/excuinfo").length;
- var idx = "";
-
- for (var i = 1; i <= cnt; i++) {
- var path = "/root/main/exculist/excuinfo[" + i + "]/";
- if (model.getValue(path + "prcpdd") == prcpdd && model.getValue(path + "bf_excuroomcd") == bf_excuroomcd) {
-
- // 예약 일시 및 예약 선택 여부 값 입력
- model.setValue(path + "excuroomcd", excuroomcd);
- model.setValue(path + "examroomnm", examroomnm);
- model.setValue(path + "rsrvdt", rsrvdt);
- model.setValue(path + "srchrsrvtm", rsrvdt);
- model.setValue(path + "chk", "Y");
-
- grd_excu.refresh();
-
- if (model.getValue(path + "excuroomcd") != model.getValue(path + "bf_excuroomcd")) {
- grd_excu.cellStyle("color", i, grd_excu.colRef("examroomnm")) = "#0000ff";
- } else {
- grd_excu.cellStyle("color", i, grd_excu.colRef("examroomnm")) = "#000000";
- }
-
- if (i != EXCU_SEL_ROW) {
- grd_excu.rowStyle(i, "data", "background-color") = "#ececec";
- }
-
- idx += ( idx != "" ? "," : "" ) + i;
-
- excutm = Number(model.getValue(path + "excutm"));
- rsrvdt = rsrvdt.toDate("YYYYMMDDhhmm").getAddDate(excutm, "m").getDateFormat("YYYYMMDDhhmm");
- }
- }
-
- var scol = grd.colRef("examroomnm");
- var ecol = !FUNC_FLAG ? grd.colRef("srchrsrvtm") : grd.colRef("srchrsrvdt");
-
- var idxarr = idx.split(",");
- for (var i = 0; i < idxarr.length; i++) {
-
- grd_excu.cellStyle("color", idxarr[i], ecol, idxarr[i], ecol) = "#0000ff";
- grd_excu.cellStyle("border-style", idxarr[i], scol, idxarr[i], ecol) = "solid";
-
- grd_excu.cellStyle("border-left-color", idxarr[i], scol) = "crimson";
- grd_excu.cellStyle("border-left-width", idxarr[i], scol) = "2px";
-
- grd_excu.cellStyle("border-top-color", idxarr[i], scol) = "crimson";
- grd_excu.cellStyle("border-top-width", idxarr[i], scol) = i == 0 ? "2px" : "1px";
-
- grd_excu.cellStyle("border-right-color", idxarr[i], scol) = "#b0b0b0";
- grd_excu.cellStyle("border-right-width", idxarr[i], scol) = "1px";
-
- grd_excu.cellStyle("border-bottom-color", idxarr[i], scol) = "crimson";
- grd_excu.cellStyle("border-bottom-width", idxarr[i], scol) = i == idxarr.length - 1 ? "3px" : "2px";
-
- grd_excu.cellStyle("border-left-color", idxarr[i], ecol) = "#b0b0b0";
- grd_excu.cellStyle("border-left-width", idxarr[i], ecol) = "0px";
-
- grd_excu.cellStyle("border-top-color", idxarr[i], ecol) = "crimson";
- grd_excu.cellStyle("border-top-width", idxarr[i], ecol) = i == 0 ? "2px" : "1px";
-
- grd_excu.cellStyle("border-right-color", idxarr[i], ecol) = "crimson";
- grd_excu.cellStyle("border-right-width", idxarr[i], ecol) = "3px";
-
- grd_excu.cellStyle("border-bottom-color", idxarr[i], ecol) = "crimson";
- grd_excu.cellStyle("border-bottom-width", idxarr[i], ecol) = i == idxarr.length - 1 ? "3px" : "2px";
- }
-
- } else {
- // 예약 일시 및 예약 선택 여부 값 입력
-
- model.setValue(excuPath + "excuroomcd", excuroomcd);
- model.setValue(excuPath + "examroomnm", examroomnm);
-
- if (excuroomcd != model.getValue(excuPath + "bf_excuroomcd")) {
- grd.cellStyle("color", grd.row, grd.colRef("examroomnm")) = "#0000ff";
- } else {
- grd.cellStyle("color", grd.row, grd.colRef("examroomnm")) = "#000000";
- }
-
- model.setValue(excuPath + "rsrvdt", rsrvdt);
- model.setValue(excuPath + ( !FUNC_FLAG ? "srchrsrvtm" : "srchrsrvdt" ), rsrvdt);
- model.setValue(excuPath + "chk", "Y");
-
- grd.refresh();
- }
-
- // 총 소요 시간 및 예상 완료 시각 표시
- setExcuEndTime();
-
- // 중증 / 산정특례 종료일자 체크
- fCheckRstrDay(rsrvdd);
-
- // 제어 내역 확인
- if (!FUNC_FLAG) {
- fGetRsrvCtrlList(grd, EXCU_SEL_ROW, excuroomcd);
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if (!grd_rmrv.isCell(event.target) || grd_rmrv.mouseRow == 0 || grd_rmrv.mouseCol == 0) {
- return;
- }
-
- RMRV_MOUSE_DOWN = true;
-
- fSetRmrvFocusRect();
-
- if (FUNC_FLAG || RSRV_PLCE != "T") {
- return;
- }
- setPopupMenu("grd_rmrv", false, "/root/hidden/popupmenu_rmrv/item", "name", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="onmousemove">
- <![CDATA[
-
- if (!grd_rmrv.isCell(event.target) || grd_rmrv.mouseRow == 0 || grd_rmrv.mouseCol == 0) {
- RMRV_MOUSE_DOWN = false;
- return;
- }
-
- if (!RMRV_MOUSE_DOWN) {
- return;
- }
-
- fSetRmrvFocusRect();
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseup">
- <![CDATA[
- RMRV_MOUSE_DOWN = false;
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if (FUNC_FLAG || RSRV_PLCE != "T") {
- return;
- }
- initPopupMenu();
- ]]>
- </script>
- </datagrid>
- <group id="grp_legend_rmrv" visibility="hidden" style="left:874px; top:443px; width:140px; height:152px; border-color:darkgray; border-style:solid; ">
- <caption id="caption48" style="left:15px; top:15px; width:20px; height:20px; text-align:center; background-color:#ffffa0; border-color:crimson; border-width:2; border-style:solid; "/>
- <caption id="caption49" style="left:15px; top:40px; width:20px; height:20px; text-align:center; background-color:#f0f0ff; border-color:#0000ff; border-width:2; border-style:solid; "/>
- <caption id="caption50" style="left:40px; top:15px; width:64px; height:20px; font-weight:bold; ">예약 설정</caption>
- <caption id="caption51" style="left:40px; top:40px; width:59px; height:20px; font-weight:bold; ">환자 조회</caption>
- <caption id="caption42" style="left:15px; top:65px; width:20px; height:20px; text-align:center; background-color:#ffd2d2; border-color:#999999; border-width:1; border-style:solid; "/>
- <caption id="caption43" style="left:40px; top:65px; width:90px; height:20px; ">가용 인원 초과</caption>
- <caption id="caption60" style="left:15px; top:90px; width:20px; height:20px; color:#ff0000; text-align:center; border-color:#999999; border-style:solid; ">가</caption>
- <caption id="caption61" style="left:40px; top:90px; width:94px; height:20px; ">검사 시간 초과</caption>
- <caption id="caption9" style="left:15px; top:115px; width:20px; height:20px; font-weight:bold; color:#ffff00; text-align:center; background-color:#ff0000; border-color:#999999; border-style:solid; ">가</caption>
- <caption id="caption10" style="left:40px; top:115px; width:94px; height:20px; ">응급 예약 시각</caption>
- </group>
- <line id="line6" class="line_1" style="x1:595px; y1:435px; x2:1195px; y2:435px; "/>
- <switch id="switch1" style="left:0px; top:215px; width:1070px; height:190px; border-width:0; ">
- <case id="excu" selected="true" style="left:0px; top:0px; width:100.00%; height:100.00%; ">
- <line id="line16" class="line_1" style="x1:0px; y1:0px; x2:1070px; y2:0px; "/>
- <datagrid id="grd_excu" nodeset="/root/main/exculist/excuinfo" allowbigselection="false" backcoloralternate="transparent" caption="^예약^roomcnt^수납^처방일시^처방일시^진료과^진료과^처방의^처방의^지정의^지정의^구분^건진^급비^처방명^검사명^수행부서코드^검사실정보^검사실코드^검사실코드^수행가능부서^수행가능부서명^검사실코드^검사실^검사실^예약일시^예약일시^예약일시^소요^수납예정액^종료^전화예약^검사코드^수행부서^예약참고사항^예약참고사항^예약자^예약처^후수납^미수^선수납^등록번호^진료일^입원일^퇴원일^생성번호^실시일^처방희망일^처방실시부서코드^최초처방등록과코드^최초처방등록과명^병실^최초처방등록의사ID^최초처방등록의사ID^실시자ID^처방발생구분^처방발생구분^실시처방상태구분코드^처방종류구분코드^실시처방유일번호^부위코드^처방전달사항^원내/원외^의뢰병원코드^검사주의사항^예약시각변경통제여부^예약가용인원통제여부^PACS^CDIS^예약여부^당뇨^당뇨치료사항^당뇨검사^수면^골밀도^예약검사여부^예약예문코드^예약예문내용^예약예문코드^멀티예약예문코드^상병코드" colsep="^" colwidth="30, 50, 0, 50, 70, 35, 0, 90, 0, 50, 0, 50, 35, 0, 60, 205, 0, 0, 0, 0, 0, 0, 0, 0, 110, 0, 0, 120, 0, 30, 67, 40, 0, 90, 100, 300, 0, 50, 0, 45, 40, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300, 0, 0, 40, 40, 0, 40, 100, 55, 40, 50, 0, 0, 0, 0, 0, 100" ellipsis="true" focuscolor="transparent" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:5px; width:1070px; height:185px; text-align:center; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="rsrvflagyn" style="font-weight:bold; "/>
- <col ref="roomcnt"/>
- <col ref="rcptyn" style="font-weight:bold; "/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="rgsttm" format="hh:nn"/>
- <col ref="orddeptcd"/>
- <col ref="orddepthngnm"/>
- <col ref="orddrid"/>
- <col ref="orddrnm"/>
- <col ref="specdrid"/>
- <col ref="specdrnm"/>
- <col disabled="true" ref="genrflag" type="combo">
- <choices>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>입원</label>
- <value>D</value>
- </item>
- <item>
- <label>응급</label>
- <value>E</value>
- </item>
- <item>
- <label>건진</label>
- <value>S</value>
- </item>
- </choices>
- </col>
- <col ref="hiflag"/>
- <col ref="payflagnm"/>
- <col ref="prcpnm" style="text-align:left; "/>
- <col ref="excucdnm"/>
- <col ref="suppdeptcd"/>
- <col ref="basecdcnts"/>
- <col ref="excuroom"/>
- <col ref="excuroomnm"/>
- <col ref="rsrvexcuroomposscd"/>
- <col ref="rsrvexcuroompossnm"/>
- <col ref="excuroomcd"/>
- <col ref="examroomnm" style="font-weight:bold; "/>
- <col ref="bf_excuroomcd"/>
- <col ref="rsrvdt"/>
- <col disabled="true" ref="srchrsrvtm" type="input" format="yyyy-mm-dd hh:nn" style="font-weight:bold; color:#ff0000; "/>
- <col ref="bf_srchrsrvtm"/>
- <col ref="excutm" style="font-weight:bold; color:#b400b4; "/>
- <col ref="calcamt" format="(-)#,###" style="font-weight:bold; color:crimson; text-align:right; padding-right:2; "/>
- <col ref="endtime" format="hh:nn"/>
- <col ref="telrsrvyn"/>
- <col ref="calcscorcd"/>
- <col ref="suppdeptnm"/>
- <col ref="rsrvrem" type="input" style="text-align:left; "/>
- <col ref="bf_rsrvrem"/>
- <col ref="lastupdtnm"/>
- <col ref="rsrvplceflag"/>
- <col ref="aftrcptinfo"/>
- <col ref="rcptrsrvyn"/>
- <col ref="prcptdayrcptyn"/>
- <col ref="pid"/>
- <col ref="orddd"/>
- <col ref="indd"/>
- <col ref="dschdd"/>
- <col ref="cretno"/>
- <col ref="actorddd"/>
- <col ref="prcphopedd"/>
- <col ref="prcpexecdeptcd"/>
- <col ref="rgstdeptcd"/>
- <col ref="rgstdepthngnm"/>
- <col ref="roomcd"/>
- <col ref="rgstrid"/>
- <col ref="rgstridnm"/>
- <col ref="execrid"/>
- <col ref="prcpgenrflag"/>
- <col ref="rsrvflag"/>
- <col ref="execprcpstatcd"/>
- <col ref="prcpkindcd"/>
- <col ref="execprcpuniqno"/>
- <col ref="excupartcd"/>
- <col ref="prcpdelivefact"/>
- <col ref="ioflag"/>
- <col ref="reqhospcd"/>
- <col ref="excucdrem" style="text-align:left; "/>
- <col ref="rsrvtmcntlyn"/>
- <col ref="rsrvpsnnocntlyn"/>
- <col ref="pacsnocretyn"/>
- <col ref="eqmtifyn"/>
- <col ref="emryn"/>
- <col ref="glycosyn"/>
- <col ref="glycoscure" style="text-align:left; "/>
- <col ref="glycostestyn"/>
- <col ref="slepyn"/>
- <col ref="bonedentestyn"/>
- <col ref="rsrvexcupossyn"/>
- <col ref="rsrvexmptmplcd"/>
- <col ref="tmpldata"/>
- <col ref="rsrvtmplcd"/>
- <col ref="rsrvmultitmplcd"/>
- <col ref="diag"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- var path = "/root/main/exculist/excuinfo[" + grd_excu.row + "]/";
- if (grd_excu.col == grd_excu.colRef("rsrvrem") && model.getValue(path + "rsrvrem") != model.getValue(path + "bf_rsrvrem")) {
-
- if (model.getValue(path + "chk") != "Y") {
- model.setValue(path + "chk", "Y");
- grd_excu.refresh();
- if (grd_excu.row != EXCU_SEL_ROW) {
- grd_excu.rowStyle(grd_excu.row, "data", "background-color") = "#ececec";
- }
- }
- }
-
- if (grd_excu.col == grd_excu.colRef("srchrsrvtm")) {
- if (model.getValue(path + "srchrsrvtm") != model.getValue(path + "bf_srchrsrvtm")) {
- if (!isValidDateTime(model.getValue(path + "srchrsrvtm"), "YYYYMMDDhhmm")) {
- messageBox("예약일시를 정확히 입력해 주십시오.", "E999");
- grd_excu.editCell();
- return;
- }
-
- grd_excu.cellStyle("color", grd_excu.row, grd_excu.col) = "#0000ff";
-
- if (model.getValue(path + "chk") != "Y") {
- model.setValue(path + "chk", "Y");
- grd_excu.refresh();
- if (grd_excu.row != EXCU_SEL_ROW) {
- grd_excu.rowStyle(grd_excu.row, "data", "background-color") = "#ececec";
- }
- }
-
- fCheckRstrDay(model.getValue(path + "srchrsrvtm").substr(0, 8));
-
- fGetRsrvCtrlList(grd_excu, grd_excu.row);
-
- } else {
- grd_excu.cellStyle("color", grd_excu.row, grd_excu.col) = "#ff0000";
- }
- }
-
- if (model.getValue(path + "rsrvrem") == model.getValue(path + "bf_rsrvrem")
- && model.getValue(path + "srchrsrvtm") == model.getValue(path + "bf_srchrsrvtm")) {
-
- if (model.getValue(path + "chk") == "Y") {
- model.setValue(path + "chk", "N");
- grd_excu.refresh();
- if (grd_excu.row != EXCU_SEL_ROW) {
- grd_excu.rowStyle(grd_excu.row, "data", "background-color") = "#ffffff";
- }
- }
- }
-
- if (model.getValue(path + "aftrcptinfo") == "V") {
- grd_excu.cellStyle("background-color", grd_excu.row, grd_excu.colRef("rcptyn")) = "#ff5050";
- grd_excu.cellStyle("color", grd_excu.row, grd_excu.colRef("rcptyn")) = "#ffff00";
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if (!grd_excu.isCell(event.target) || grd_excu.mouseRow < 1) {
- return;
- }
-
- if (grd_excu.mouseRow == EXCU_SEL_ROW) {
- return;
- }
-
- if (grd_excu.mouseCol != grd_excu.colRef("chk")) {
- return;
- }
-
- var path = "/root/main/exculist/excuinfo[" + grd_excu.mouseRow + "]/";
-
- if (model.getValue(path + "chk") == "Y") {
- grd_excu.rowStyle(grd_excu.mouseRow, "data", "background-color") = "#ffffff";
- } else {
- grd_excu.rowStyle(grd_excu.mouseRow, "data", "background-color") = "#ececec";
- }
-
- if (model.getValue(path + "aftrcptinfo") == "V") {
- grd_excu.cellStyle("background-color", grd_excu.mouseRow, grd_excu.colRef("rcptyn")) = "#ff5050";
- grd_excu.cellStyle("color", grd_excu.mouseRow, grd_excu.colRef("rcptyn")) = "#ffff00";
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (!grd_excu.isCell(event.target)) {
- return;
- }
-
- if (grd_excu.col == grd_excu.colRef("chk")) {
-
- // 총 소요 시간 및 예상 완료 시각 표시
- setExcuEndTime();
-
- // 검사실과 예약일시가 모두 입력된 항목에 한해 제어 내역 확인
- for (var i = 1; i <= instance1.selectNodes("/root/main/exculist/excuinfo").length; i++) {
- if (model.getValue("/root/main/exculist/excuinfo[" + i + "]/excuroomcd") != ""
- && model.getValue("/root/main/exculist/excuinfo[" + i + "]/srchrsrvtm") != "") {
- fGetRsrvCtrlList(grd_excu, EXCU_SEL_ROW);
- }
- }
-
- return;
- }
-
- if (grd_excu.col == grd_excu.colRef("rsrvrem")) {
- grd_excu.editCell();
- return;
- }
-
- if (grd_excu.row < 1) {
- return;
- }
-
- if (!grd_excu.isReadOnly(grd_excu.row, grd_excu.col) && grd_excu.col == grd_excu.colRef("srchrsrvtm")) {
- grd_excu.editCell();
- return;
- }
-
- fSetExcuInfo();
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="func" style="left:0px; top:0px; width:100.00%; height:100.00%; ">
- <line id="line17" class="line_1" style="x1:0px; y1:0px; x2:1070px; y2:0px; "/>
- <datagrid id="grd_fcex" nodeset="/root/main/fcexlist/fcexinfo" allowbigselection="false" backcoloralternate="transparent" caption="선택^등록번호^이름^성별^나이^주민등록번호1^주민등록번호2^몸무게^키^집전화번호^휴대전화번호^구분^진료과코드^진료과^진료일^주유형코드^진료예약여부^생성번호^진료의ID^진료의^선택진료여부^선택의ID^선택의^구분^센터^병동코드^병동^병실코드^병실^처방일^처방일시^처방코드^처방이력번호^처방일련번호^처방일련번호^처방종류^처방분류코드^1일기준총수량^횟수^종속처방코드^처방상태^처방진행상태^예약^수행부서코드^실시부서코드^수행부서코드^수행부서^수행가능검사실^수행가능검사실명^검사실코드^검사실^예약일시^이전예약일시^예약일시^소요^검사안내문^수면여부^검사주의사항^처방전달사항^처방명^수납^수납일^예약자ID^예약자^실시일^실시일시^실시자ID^실시자^실시생성번호^치료부위^치료위치^치료빈도^실시참고사항^취소사유코드^CDIS연동정보^PACS연동정보^포터블처방구분(Y/N)^간호확인일^처방희망일^미예약처방여부^선처치^후수납^미수예약^미수접수^청구실시기준^대분류코드(검사실그룹코드)^중분류코드(부위코드)^modality^예약예문^임상과제코드^해당처방발행진료과의미래진료일시^최초등록부서^최초등록자ID" colsep="^" colwidth="30, 60, 50, 30, 30, 0, 0, 0, 0, 0, 0, 0, 0, 90, 0, 0, 0, 0, 0, 50, 0, 0, 50, 30, 0, 0, 40, 0, 60, 0, 105, 85, 0, 0, 0, 0, 0, 0, 0, 0, 60, 0, 50, 0, 0, 0, 0, 0, 0, 0, 110, 120, 0, 0, 0, 0, 0, 0, 0, 240, 50, 80, 0, 50, 0, 110, 0, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 0" ellipsis="true" focuscolor="transparent" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:5px; width:1070px; height:185px; text-align:center; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col disabled="true" ref="sex" type="combo">
- <choices>
- <item>
- <label>남</label>
- <value>M</value>
- </item>
- <item>
- <label>여</label>
- <value>F</value>
- </item>
- </choices>
- </col>
- <col ref="age"/>
- <col ref="rrgstno1"/>
- <col ref="rrgstno2"/>
- <col ref="bdwt"/>
- <col ref="bdht"/>
- <col ref="hometel"/>
- <col ref="mpphontel"/>
- <col ref="ioflag"/>
- <col ref="orddeptcd"/>
- <col ref="orddepthngnm"/>
- <col ref="orddd"/>
- <col ref="insukind"/>
- <col ref="emryn"/>
- <col ref="cretno"/>
- <col ref="orddrid"/>
- <col ref="orddrnm"/>
- <col ref="choiordflag"/>
- <col ref="specdrid"/>
- <col ref="specdrnm"/>
- <col disabled="true" ref="prcpgenrflag" type="combo">
- <choices>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>입원</label>
- <value>D</value>
- </item>
- <item>
- <label>응급</label>
- <value>E</value>
- </item>
- <item>
- <label>건진</label>
- <value>S</value>
- </item>
- </choices>
- </col>
- <col ref="centcd"/>
- <col ref="wardcd"/>
- <col ref="wardengabbr"/>
- <col ref="roomcd"/>
- <col ref="roomnm"/>
- <col ref="prcpdd"/>
- <col ref="prcpdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="calcscorcd"/>
- <col ref="prcphistno"/>
- <col ref="prcpno"/>
- <col ref="execprcpuniqno"/>
- <col ref="prcpkindcd"/>
- <col ref="prcpclscd"/>
- <col ref="prcpqty"/>
- <col ref="execprcptims"/>
- <col ref="inclprcpcd"/>
- <col ref="statcd"/>
- <col ref="execprcpstatcd"/>
- <col ref="rsrvflag"/>
- <col ref="basesuppdeptcd"/>
- <col ref="prcpexecdeptcd"/>
- <col ref="suppdeptcd"/>
- <col ref="suppdeptnm"/>
- <col ref="rsrvexcuroomposscd"/>
- <col ref="rsrvexcuroompossnm"/>
- <col ref="excuroomcd"/>
- <col ref="examroomnm"/>
- <col ref="srchrsrvdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="bf_srchrsrvtm"/>
- <col ref="rsrvdt"/>
- <col ref="excutm"/>
- <col ref="tmpldata"/>
- <col ref="slepyn"/>
- <col ref="excucdrem"/>
- <col ref="prcpdelivefact"/>
- <col ref="prcpnm"/>
- <col disabled="true" ref="rcptyn" type="combo">
- <choices>
- <item>
- <label>수납</label>
- <value>Y</value>
- </item>
- <item>
- <label>미수납</label>
- <value>N</value>
- </item>
- <item>
- <label>선처치</label>
- <value>P</value>
- </item>
- </choices>
- </col>
- <col ref="rcptdd" format="yyyy-mm-dd"/>
- <col ref="rsrvrid"/>
- <col ref="rsrvrnm"/>
- <col ref="actorddd"/>
- <col ref="execdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="execrid1"/>
- <col ref="execrnm"/>
- <col ref="actcretno"/>
- <col ref="rehbprcpcurepartnm"/>
- <col ref="prcpdirecnm"/>
- <col ref="rehbprcpcurefreqnm"/>
- <col ref="execrem"/>
- <col ref="basecd"/>
- <col ref="eqmtifyn"/>
- <col ref="pacsnocretyn"/>
- <col ref="portprcpflag"/>
- <col ref="carecnfmdd"/>
- <col ref="prcphopedd"/>
- <col ref="unrsrvexecyn"/>
- <col ref="precureprcpflag"/>
- <col ref="aftrcptinfo"/>
- <col ref="rcptrsrvyn"/>
- <col ref="rcptacptyn"/>
- <col ref="execbaseflag"/>
- <col ref="lrgcd"/>
- <col ref="mdlcd"/>
- <col ref="modality"/>
- <col ref="rsrvexmptmplcd"/>
- <col ref="clincstdycd"/>
- <col ref="ordrsrvdt"/>
- <col ref="rgstdeptcd"/>
- <col ref="rgstrid"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if (!grd_fcex.isCell(event.target) || grd_fcex.mouseRow < 1) {
- return;
- }
-
- if (grd_fcex.mouseRow == FUNC_SEL_ROW) {
- return;
- }
-
- if (grd_fcex.mouseCol != grd_fcex.colRef("chk")) {
- return;
- }
-
- if (model.getValue("/root/main/fcexlist/fcexinfo[" + grd_fcex.mouseRow + "]/chk") == "Y") {
- grd_fcex.rowStyle(grd_fcex.mouseRow, "data", "background-color") = "#ffffff";
- } else {
- grd_fcex.rowStyle(grd_fcex.mouseRow, "data", "background-color") = "#ececec";
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (!grd_fcex.isCell(event.target) || grd_fcex.row < 1) {
- return;
- }
-
- if (grd_fcex.col == grd_fcex.colRef("chk")) {
- return;
- }
-
- if (event.ctrlKey) {
- model.setValue("/root/send/data/pid", model.getValue("/root/main/fcexlist/fcexinfo[" + grd_fcex.row + "]/pid"));
- ipt_pid.refresh();
-
- btn_excu.dispatch("DOMActivate");
-
- btn_search.dispatch("DOMActivate");
-
- return;
- }
-
- fSetFuncExcuInfo();
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="anot">
- <line id="line5" class="line_1" style="x1:0px; y1:0px; x2:1070px; y2:0px; "/>
- <datagrid id="grd_anex" nodeset="/root/main/anexlist/anexinfo" allowselection="false" backcoloralternate="transparent" caption="예약^수납^처방일^진료과^처방의^처방코드^처방명^검사실^희망일^예약일시^소요^종료^처방일련번호^처방진행상태코드^상태^실시일시^예약참고사항" colsep="^" colwidth="50,50,75,100,50,0,235,120,0,110,35,40,0,0,80,110,300" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="label" style="left:0px; top:5px; width:1070px; height:185px; text-align:center; ">
- <col ref="rsrvflagyn"/>
- <col ref="rcptyn"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="orddeptnm"/>
- <col ref="orddrnm"/>
- <col ref="calcscorcd"/>
- <col ref="prcpnm"/>
- <col ref="excuroomnm"/>
- <col ref="prcphopedd"/>
- <col ref="srchrsrvtm" format="yyyy-mm-dd hh:nn"/>
- <col ref="excutm"/>
- <col ref="endtime" format="hh:nn"/>
- <col ref="execprcpuniqno" visibility="hidden"/>
- <col ref="execprcpstatcd" visibility="hidden"/>
- <col ref="execprcpstatnm"/>
- <col ref="exectm" format="yyyy-mm-dd hh:nn"/>
- <col ref="rsrvrem" style="text-align:left; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_anex.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <group id="grp_legend_excu" visibility="hidden" style="left:523px; top:213px; width:290px; height:205px; border-color:darkgray; border-style:solid; ">
- <caption id="caption28" style="left:15px; top:15px; width:20px; height:20px; text-align:center; background-color:#a0ffa0; border-color:#999999; border-style:solid; "/>
- <caption id="caption29" style="left:15px; top:40px; width:20px; height:20px; text-align:center; background-color:#ececec; border-color:#999999; border-style:solid; "/>
- <caption id="caption2" style="left:40px; top:15px; width:208px; height:20px; ">설정 (검사실, 예약일, 예약 현황 연계)</caption>
- <caption id="caption12" style="left:40px; top:40px; width:35px; height:20px; ">선택</caption>
- <caption id="caption30" style="left:15px; top:95px; width:20px; height:20px; font-weight:bold; color:#ffff00; text-align:center; background-color:#ff5050; border-color:#999999; border-style:solid; ">가</caption>
- <caption id="caption31" style="left:40px; top:95px; width:97px; height:20px; ">VIP (이지패스)</caption>
- <caption id="caption32" style="left:15px; top:120px; width:20px; height:20px; font-weight:bold; color:#ff9a00; text-align:center; border-color:#999999; border-style:solid; ">가</caption>
- <caption id="caption33" style="left:40px; top:120px; width:94px; height:20px; ">처방 당일 후수납</caption>
- <caption id="caption34" style="left:15px; top:145px; width:20px; height:20px; font-weight:bold; color:#ff0000; text-align:center; border-color:#999999; border-style:solid; ">가</caption>
- <caption id="caption35" style="left:40px; top:145px; width:50px; height:20px; ">미수납</caption>
- <caption id="caption36" style="left:15px; top:170px; width:20px; height:20px; font-weight:bold; text-align:center; border-color:#999999; border-style:solid; ">가</caption>
- <caption id="caption41" style="left:40px; top:170px; width:50px; height:20px; ">수납</caption>
- <caption id="caption44" style="left:14px; top:72px; width:55px; height:20px; ">[ 수납 ]</caption>
- <caption id="caption45" style="left:155px; top:72px; width:58px; height:20px; ">[ 처방명 ]</caption>
- <caption id="caption46" style="left:155px; top:95px; width:20px; height:20px; font-weight:bold; color:#0000ff; text-align:center; border-color:#999999; border-style:solid; ">가</caption>
- <caption id="caption47" style="left:180px; top:95px; width:90px; height:20px; ">검사안내문 있음</caption>
- </group>
- <group id="grp_directsms" visibility="hidden" style="left:355px; top:35px; width:500px; height:210px; background-color:#ffcc99; border-color:darkgray; border-style:solid; ">
- <group id="group1" style="left:5px; top:5px; width:489px; height:199px; border-color:darkgray; border-style:solid; ">
- <caption id="caption4" class="tit_2" style="left:5px; top:10px; width:85px; height:13px; ">문자 전송</caption>
- <datagrid id="grd_sms" nodeset="/root/hidden/smslist/smsinfo" caption="진료과^문자 내용" colsep="^" colwidth="0^440" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:30px; width:475px; height:134px; ">
- <col ref="orddeptcd"/>
- <col ref="msgcnts" type="input"/>
- </datagrid>
- <line id="line15" class="line_1" style="x1:5px; y1:25px; x2:480px; y2:25px; "/>
- <button id="btn_sendsms" class="btn4_letter2" style="left:364px; top:169px; width:56px; height:22px; ">
- <caption>전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (messageBox("문자를 전송하시겠습니까?", "Q999") != 6) {
- return;
- }
-
- var pid = model.getValue("/root/send/data/pid");
- var hngnm = model.getValue("/root/main/ptinfo/hngnm");
- var tel = model.getValue("/root/main/ptinfo/mpphontel");
-
- for (var i = 1; i <= instance1.selectNodes("/root/hidden/smslist/smsinfo").length; i++) {
- var msg = model.getValue("/root/hidden/smslist/smsinfo[" + i + "]/msgcnts");
- var deptcd = model.getValue("/root/hidden/smslist/smsinfo[" + i + "]/orddeptcd");
- fSmsSend(msg, pid, hngnm, tel, deptcd, "03");
- }
-
- messageBox("문자를 전송하였습니다.", "I999");
- ]]>
- </script>
- </button>
- <button id="btn_closesms" class="btn4_letter2" style="left:424px; top:169px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_directsms.visible = false;
- ]]>
- </script>
- </button>
- </group>
- </group>
- <switch id="sw_ptcmt" style="left:0px; top:55px; width:330px; height:135px; border-width:0; ">
- <case id="ptcmt" selected="true">
- <button id="btn_addcmt" class="btn2_letter2" style="left:175px; top:0px; width:42px; height:19px; focus-rect:hidden; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (btn_addcmt.attribute("text") == "추가") {
-
- if (instance1.selectNodes("/root/main/ptcmtlist/ptcmtinfo[cmtdd='" + getCurrentDate() + "']").length > 0) {
- model.setValue("/root/temp/ptcmt", model.getValue("/root/main/ptcmtlist/ptcmtinfo[cmtdd='" + getCurrentDate() + "']/patcmt"));
- } else if (model.getValue("/root/send/ptcmt/cmtdd") != getCurrentDate()) {
- model.setValue("/root/temp/ptcmt", "");
- }
- tar_ptcmt.refresh();
-
- model.setValue("/root/send/ptcmt/cmtdd", getCurrentDate());
-
- btn_addcmt.attribute("text") = "닫기";
- tar_ptcmt.visible = true;
- btn_savecmt.disabled = false;
- btn_delcmt.disabled = true;
- model.setFocus("tar_ptcmt");
-
- } else {
-
- /*
- var cnt = instance1.selectNodes("/root/main/ptcmtlist/ptcmtinfo").length;
-
- for (var i = 1; i <= cnt; i++) {
- if (model.getValue("/root/send/ptcmt/cmtdd") == model.getValue("/root/main/ptcmtlist/ptcmtinfo[" + i + "]/cmtdd")) {
-
- var currcmt = model.getValue("/root/temp/ptcmt");
-
- model.setValue("/root/main/ptcmtlist/ptcmtinfo[" + i + "]/patcmt", currcmt);
- grd_ptcmt.refresh();
-
- if (currcmt != model.getValue("/root/main/ptcmtlist/ptcmtinfo[" + i + "]/bf_patcmt")) {
- grd_ptcmt.rowStyle(i - 1, "data", "color") = "#0000ff";
- } else {
- grd_ptcmt.rowStyle(i - 1, "data", "color") = "#000000";
- }
- grd_ptcmt.resizeCells();
-
- break;
- }
- }
- */
-
- btn_addcmt.attribute("text") = "추가";
- tar_ptcmt.visible = false;
- btn_savecmt.disabled = true;
- btn_delcmt.disabled = false;
- }
- ]]>
- </script>
- </button>
- <button id="btn_savecmt" class="btn2_letter2" disabled="true" style="left:218px; top:0px; width:42px; height:19px; focus-rect:hidden; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (model.getValue("/root/send/data/pid") == "") {
- messageBox("조회된 환자가 없습니다.", "E999");
- return;
- }
-
- fSetPtCmt(true);
- ]]>
- </script>
- </button>
- <button id="btn_ptcmtex" style="left:304px; top:0px; width:26px; height:19px; background-image:../../../com/commonweb/images/btn_send_bottom.gif; focus-rect:hidden; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetPtCmtExt(false);
- ]]>
- </script>
- </button>
- <line id="line9" class="line_1" style="x1:0px; y1:20px; x2:330px; y2:20px; "/>
- <datagrid id="grd_ptcmt" nodeset="/root/main/ptcmtlist/ptcmtinfo" allowselection="false" autoresize="true" backcoloralternate="transparent" colsep="^" colwidth="70, 50, 200" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:25px; width:330px; height:110px; ">
- <col ref="cmtdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="usernm" visibility="hidden" style="text-align:center; "/>
- <col ref="patcmt"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (grd_ptcmt.row < 0) {
- return;
- }
-
- model.setValue("/root/send/ptcmt/cmtdd", model.getValue("/root/main/ptcmtlist/ptcmtinfo[" + ( grd_ptcmt.row + 1 ) + "]/cmtdd"));
- model.setValue("/root/temp/ptcmt", model.getValue("/root/main/ptcmtlist/ptcmtinfo[" + ( grd_ptcmt.row + 1 ) + "]/patcmt"));
- tar_ptcmt.refresh();
-
- btn_addcmt.attribute("text") = "닫기";
- tar_ptcmt.visible = true;
- btn_savecmt.disabled = false;
- btn_delcmt.disabled = true;
- model.setFocus("tar_ptcmt");
- ]]>
- </script>
- </datagrid>
- <caption id="caption75" class="tit_2" style="left:0px; top:5px; width:105px; height:13px; ">예약 전달 사항</caption>
- <textarea id="tar_ptcmt" ref="/root/temp/ptcmt" visibility="hidden" scroll="autovscroll" imemode="hangul" maxbyte="4000" style="left:10px; top:35px; width:310px; height:90px; padding-left:10; padding-top:10; padding-right:20; padding-bottom:10; background-color:#ffffc2; border-color:#808080; "/>
- <button id="btn_delcmt" class="btn2_letter2" disabled="true" style="left:261px; top:0px; width:42px; height:19px; focus-rect:hidden; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (model.getValue("/root/send/data/pid") == "") {
- messageBox("조회된 환자가 없습니다.", "E999");
- return;
- }
-
- if (grd_ptcmt.row < 0) {
- messageBox("삭제할 내역이 선택되지 않았습니다.", "E999");
- return;
- }
-
- fSetPtCmt(false);
- ]]>
- </script>
- </button>
- <select1 id="cmb_rsrvplce" ref="/root/ctrl/hidden/rsrvplce" visibility="hidden" appearance="minimal" style="left:119px; top:0px; width:55px; height:19px; ">
- <choices>
- <item>
- <label>통합</label>
- <value>T</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>건진</label>
- <value>S</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- RSRV_PLCE = model.getValue("/root/ctrl/hidden/rsrvplce");
- fSetRsrvPlce();
- ]]>
- </script>
- </select1>
- </case>
- <case id="srchroom">
- <line id="line10" class="line_1" style="x1:0px; y1:20px; x2:330px; y2:20px; "/>
- <caption id="caption76" class="tit_2" style="left:0px; top:5px; width:90px; height:14px; ">조회 검사실</caption>
- <datagrid id="grd_srchroom" nodeset="/root/init/srchroomlist/roominfo" allowselection="false" backcoloralternate="transparent" caption="^검사실코드^검사실" colsep="^" colwidth="30, 0, 290" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:25px; width:330px; height:110px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="roomcd"/>
- <col ref="roomnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (!grd_srchroom.isCell(event.target) || grd_srchroom.row < 1 || grd_srchroom.col == grd_srchroom.colRef("chk")) {
- return;
- }
-
- var chk = model.getValue("/root/init/srchroomlist/roominfo[" + grd_srchroom.row + "]/chk");
- chk = chk == "Y" ? "N" : "Y";
- model.setValue("/root/init/srchroomlist/roominfo[" + grd_srchroom.row + "]/chk", chk);
- grd_srchroom.refresh();
- ]]>
- </script>
- </datagrid>
- <select1 id="cmb_srchdept" ref="/root/send/data/srchdeptcd" visibility="hidden" appearance="minimal" style="left:98px; top:0px; width:177px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/srchdeptlist/deptinfo">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- model.setValue("/root/hidden/dutplcenm", cmb_srchdept.label);
- cap_dept.refresh();
-
- submit("TRPEA00108");
- ]]>
- </script>
- </select1>
- <button id="btn_roomex" style="left:304px; top:0px; width:26px; height:19px; background-image:../../../com/commonweb/images/btn_send_bottom.gif; focus-rect:hidden; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (btn_roomex.attribute("background-image") == "../../../com/commonweb/images/btn_send_bottom.gif") {
- sw_ptcmt.attribute("height") = "350px";
- grd_srchroom.attribute("height") = "325px";
- btn_roomex.attribute("background-image") = "../../../com/commonweb/images/btn_send_top.gif";
- } else {
- sw_ptcmt.attribute("height") = "135";
- grd_srchroom.attribute("height") = "110px";
- btn_roomex.attribute("background-image") = "../../../com/commonweb/images/btn_send_bottom.gif";
- }
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <button id="btn_init" class="btn4_letter3" style="left:1127px; top:412px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (messageBox("화면을 초기화 하시겠습니까?", "Q999") == 6) {
- fInit();
- }
- ]]>
- </script>
- </button>
- <group id="grp_msg" visibility="hidden" style="left:245px; top:440px; width:700px; height:320px; background-color:#e2e2e2; border-color:darkmagenta; border-width:5px; border-style:solid; ">
- <textarea id="tar_alertmsg" ref="/root/temp/alertmsg" scroll="autovscroll" editable="false" style="left:14px; top:14px; width:662px; height:240px; font-family:맑은 고딕; font-size:16pt; font-weight:bold; text-align:left; vertical-align:middle; word-wrap:word; line-spacing:5; padding-left:10; background-color:#ffff64; border-color:gray; "/>
- <caption id="cap_closemsg" style="left:309px; top:267px; width:80px; height:30px; font-size:12pt; font-weight:bold; text-align:center; background-color:#ffffff; border-color:gray; border-width:1; border-style:solid; cursor:hand; ">
- <![CDATA[확인]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grp_msg.visible = false;
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- cap_closemsg.attribute("left") = "311px";
- cap_closemsg.attribute("top") = "269px";
- cap_closemsg.attribute("background-color") = "#f0f0f0";
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseup">
- <![CDATA[
- cap_closemsg.attribute("left") = "309px";
- cap_closemsg.attribute("top") = "267px";
- cap_closemsg.attribute("background-color") = "#ffffff";
- grp_msg.visible = false;
- ]]>
- </script>
- </caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|