1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>접수관리(핵의학체내)</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <ordlist1>
- <mainordlist1>
- <no/>
- <pid/>
- <patnm/>
- <prcpgenrflag/>
- <wardcd/>
- <depthngnm/>
- <execprcpuniqno/>
- <orddeptcd/>
- <rsrvdd/>
- <execprcpstatcd/>
- <prcpdd/>
- <roomcd/>
- <orddrid/>
- <rcptyn/>
- <type/>
- <aftrcptinfo/>
- </mainordlist1>
- </ordlist1>
- <ordlist2>
- <mainordlist2>
- <no/>
- <calcscorcd/>
- <prcpnm/>
- <pid/>
- <patnm/>
- <execprcpuniqno/>
- <orddeptcd/>
- <rsrvdd/>
- <execprcpstatcd/>
- <prcpdd/>
- <roomcd/>
- <orddrid/>
- <rcptyn/>
- <prcpgenrflag/>
- <wardcd/>
- <type/>
- </mainordlist2>
- </ordlist2>
- <subordlist>
- <subordlist1>
- <check/>
- <pid/>
- <patnm/>
- <prcpdd/>
- <prcphopedd/>
- <prcpnm/>
- <execprcpstatcd/>
- <payflagcd/>
- <rsrvdt/>
- <prcpgenrflag/>
- <orddepthngnm/>
- <orddrnm/>
- <ivinputyn/>
- <cntctel/>
- <arvtm/>
- <prcpkindcd/>
- <excuroomnm/>
- <rgstdepthngnm/>
- <rgstridnm/>
- <basecd/>
- <rsrvdt/>
- <prcphopedt/>
- <execprcpuniqno/>
- <calcscorcd/>
- <prcpexecdeptcd/>
- <excuroomcd/>
- <rgstdeptcd/>
- <rgstrid/>
- <portprcpflag/>
- <inflag/>
- <rcptacptyn/>
- <execbaseflag/>
- <lrgcd/>
- <mdlcd/>
- <excupartcd/>
- <modality/>
- <rcptno/>
- <acptseqno/>
- <acptrem/>
- <execrem/>
- <prcpdelivefact/>
- <execrid1/>
- <execrid2/>
- <execrid3/>
- <execrid4/>
- <acptid/>
- <rcptdd/>
- <carecnfmdd/>
- <orddeptcd/>
- <excuexecfromdt1/>
- <excueqcd1/>
- <excuexecfromdt2/>
- <excueqcd2/>
- <excuexecfromdt3/>
- <excueqcd3/>
- <excuexecfromdt4/>
- <excueqcd4/>
- <excuexecfromdt5/>
- <excueqcd5/>
- <basesuppdeptcd/>
- <orddeptcd/>
- <orddrid/>
- <pacsnocretyn/>
- <orddd/>
- <rgsttm/>
- <eqmtifyn/>
- <cretno/>
- <prcpexecdeptcd/>
- <aftrcptinfo/>
- </subordlist1>
- <subordlist3>
- <diagdd/>
- <diagengnm/>
- <diagcd/>
- <orddeptnm/>
- <orddrnm/>
- </subordlist3>
- <subordlist4>
- <memodd/>
- <memorem/>
- </subordlist4>
- <patinfolist/>
- <rsrvcmtlist/>
- </subordlist>
- <subordlist2>
- <subordlist3>
- <diagdd/>
- <diagengnm/>
- <diagcd/>
- <orddeptnm/>
- <orddrnm/>
- </subordlist3>
- </subordlist2>
- <subordlist3>
- <subordlist>
- <basecdflagdesc/>
- <cnt/>
- <partcntstats/>
- <basecd/>
- <basecdcnts/>
- <baseroomopenyn/>
- </subordlist>
- </subordlist3>
- <subordlist4>
- <subordlist>
- <check/>
- <pid/>
- <patnm/>
- <prcpnm/>
- <acptdt/>
- <excuroomcd/>
- <execprcpuniqno/>
- <prcpdd/>
- <basesuppdeptcd/>
- <pacsnocretyn/>
- </subordlist>
- </subordlist4>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <popupendflag/>
- <exculist>
- <patinfolist>
- <rows/>
- </patinfolist>
- </exculist>
- <rsrvposstmlist>
- <rsrvposstm>
- <rsrvtm/>
- <count/>
- <max/>
- </rsrvposstm>
- <rsrvlistam>
- <srchrsrvtm/>
- <pid/>
- <hngnm/>
- <prcpnm/>
- </rsrvlistam>
- <rsrvlistpm>
- <srchrsrvtm/>
- <pid/>
- <hngnm/>
- <prcpnm/>
- </rsrvlistpm>
- </rsrvposstmlist>
- <rsrvupdtpreslist>
- <rsrvupdtpresinfo/>
- </rsrvupdtpreslist>
- <printinfo>
- <printlist>
- <printdata/>
- </printlist>
- </printinfo>
- </main>
- <send>
- <data>
- <cmb_info>
- <initexcuroomgrp>
- <excuroomgrpcdid/>
- </initexcuroomgrp>
- <initexecroom>
- <excuroomcdid/>
- </initexecroom>
- <initexecward>
- <execwardcdid/>
- </initexecward>
- <initioflag>
- <ioflag/>
- </initioflag>
- </cmb_info>
- <srchpid/>
- <srchdate1/>
- <srchdate2/>
- <acptlistflag>R</acptlistflag>
- <srchtotal/>
- <grd_info>
- <grid_data>
- </grid_data>
- </grd_info>
- <tobeacptprcp>
- <tobeacptprcplist/>
- </tobeacptprcp>
- <tobeacptcnclprcp>
- <tobeacptcnclprcplist/>
- </tobeacptcnclprcp>
- <tobeholdprcp>
- <tobeholdprcplist/>
- </tobeholdprcp>
- <tobeholdcnclprcp>
- <tobeholdcnclprcplist/>
- </tobeholdcnclprcp>
- <srchrsrvpid/>
- <srchcond>1</srchcond>
- <rsrvdd/>
- <rsrvmm/>
- <rsrvss/>
- <excuroomgrp/>
- <excuroomcd/>
- <rsrvdate/>
- <suppdeptcd/>
- <excucd/>
- <nuclcd/>
- <ioflag/>
- <tclscd/>
- <pid/>
- <examcureflag/>
- </data>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <windowloadinstance/>
- <data1>
- </data1>
- <patinfo>
- <srchpid/>
- <orddd/>
- <orddeptcd/>
- <suppdeptcd1/>
- <chkflag/>
- <data/>
- </patinfo>
- <data2>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <acptdd/>
- </data2>
- <memo>
- <memodt1/>
- <memodt2/>
- <basesuppdeptcd/>
- </memo>
- <temp>
- <pid/>
- </temp>
- <data4>
- <pid/>
- <excuroomcd/>
- <suppdeptcd/>
- <rsrvdt/>
- </data4>
- <data5>
- <seq/>
- <suppdeptcd/>
- <instcd/>
- <oldrsrvdd/>
- <rsrvdd/>
- <srchrsrvtm/>
- <rsrvtm/>
- </data5>
- <examposuseyn/>
- </send>
- <init>
- <cmb_info>
- <initexcuroomgrp>
- <excuroomgrpcdid/>
- <excuroomgrpcdnm/>
- </initexcuroomgrp>
- <initexecroom>
- <excuroomcdid/>
- <excuroomcdnm/>
- </initexecroom>
- <initexcuroomgrp2>
- <excuroomgrpcdid/>
- <excuroomgrpcdnm/>
- </initexcuroomgrp2>
- <initexecroom2>
- <excuroomcdid/>
- <excuroomcdnm/>
- </initexecroom2>
- <initexecroom3>
- <excuroomcdid/>
- <excuroomcdnm/>
- </initexecroom3>
- <initexecward>
- <execwardcdid/>
- <execwardcdnm/>
- </initexecward>
- </cmb_info>
- <cmb_info2>
- <initexecroom>
- <excuroomcdid/>
- <excuroomcdnm/>
- </initexecroom>
- </cmb_info2>
- <baseinfo>
- <initexecprcpstatcd/>
- <initpayflagcd/>
- <initprcpgenrflagcd/>
- </baseinfo>
- <popupmenu>
- <grid01>
- <item>
- <name>예약조회</name>
- <func>fRsrvInfo</func>
- </item>
- <item>
- <name>환자정보조회</name>
- <func>fPatidInfo</func>
- </item>
- <item>
- <name>전화번호 조회 및 수정</name>
- <func>fTelnoMdy</func>
- </item>
- <item>
- <name>환자채혈</name>
- <func>fDispBlood</func>
- </item>
- <item>
- <name>검사/치료진행현황</name>
- <func>fPrcspresCond</func>
- </item>
- <item>
- <name>문진표관리</name>
- <func>fInqrTableMngt</func>
- </item>
- <item>
- <name>이송요원호출</name>
- <func>fTranEmpCall</func>
- </item>
- <item>
- <name>-</name>
- <func/>
- </item>
- <item>
- <name>부서별기록관리</name>
- <func>fDeptCaseRecMngt</func>
- </item>
- </grid01>
- <grid02>
- <item>
- <name>임시예약조회</name>
- <func>fPseuRsrvInfo</func>
- </item>
- <item>
- <name>임시예약완료</name>
- <func>fPseuRsrvEnd</func>
- </item>
- </grid02>
- </popupmenu>
- </init>
- <init1>
- <baseinfo>
- <examposinfo/>
- <examcureinfo/>
- </baseinfo>
- </init1>
- <hidden>
- <count/>
- <comcd/>
- <calendar>
- <year/>
- <month/>
- <weeklist>
- <list>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- <sun_memo/>
- <mon_memo/>
- <tue_memo/>
- <wed_memo/>
- <thu_memo/>
- <fri_memo/>
- <sat_memo/>
- </list>
- </weeklist>
- <dd/>
- </calendar>
- <chkprint/>
- <beforersrvtm>
- <rsrvdtlist>
- <before/>
- </rsrvdtlist>
- </beforersrvtm>
- <popup>
- <rsrvaddinfo>
- <prcpdd/>
- <execprcpuniqno/>
- <rownum/>
- <srchrsrvtm/>
- </rsrvaddinfo>
- <examroominfo>
- <srchdate1/>
- <basesuppdeptcd/>
- <initexcuroomgrp/>
- </examroominfo>
- </popup>
- <patinfo>
- <pid/>
- </patinfo>
- <subordlist/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- aezfSetSuppDeptcd();
-
- model.removenode("/root/main/ordlist1");
- model.removenode("/root/main/ordlist2");
- model.removenode("/root/main/subordlist");
- model.removenode("/root/main/exculist/subordlist3");
- model.removenode("/root/main/rsrvposstmlist");
-
- // model.setValue("/root/send/data/srchdate1", getCurrentDate().toDate().getAddDate(-14,"D").getDateFormat("YYYYMMDD"));
- model.setValue("/root/send/data/srchdate1", getCurrentDate().toDate().getAddDate(-7,"D").getDateFormat("YYYYMMDD")); //2009-07-16 적용일자 기준 -14일->-7로 변경처리
- model.setValue("/root/send/data/srchdate2", getCurrentDate());
- model.setValue("/root/send/data/cmb_info/initioflag/ioflag", "");
- model.setValue("/root/hidden/chkprint", "Y");
-
- var excuroomgrpcdid = "영상검사실";
-
- var acptlistflag = model.property("acptlistflag");
- if (acptlistflag != "") {
- model.setValue("/root/send/data/acptlistflag", acptlistflag)
- }
-
- var excuroomgrp = model.property("excuroomgrp");
- if (excuroomgrp != "") {
- excuroomgrpcdid = excuroomgrp;
- }
- var excuroom = model.property("excuroom");
- if (excuroom != "") {
- model.setValue("/root/send/data/cmb_info/initexecroom/excuroomcdid", excuroom);
- }
-
- var srchdate1 = model.property("srchdate1");
- if (srchdate1 != "") {
- model.setValue("/root/send/data/srchdate1", srchdate1);
- }
-
- var srchdate2 = model.property("srchdate2");
- if (srchdate2 != "") {
- model.setValue("/root/send/data/srchdate2", srchdate2);
- }
-
-
- model.makeValue("/root/send/data/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
- model.makeValue("/root/send/data/basesuppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
- model.setValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid", excuroomgrpcdid);
- model.setValue("/root/send/data/excuroomgrp", excuroomgrpcdid);
-
- submit("TRAEA01401", false);
-
- zbcfGetCodeList( new Array("M0010", "M0011","M0029"), new Array("/root/init/baseinfo/initprcpgenrflagcd", "/root/init/baseinfo/initexecprcpstatcd", "/root/init/baseinfo/initpayflagcd") );
- submit("TRZBC00101", false);
-
- aezfInsertInstance("M0010", "전체", "", "/root/init/baseinfo/initprcpgenrflagcd");
- var cnt = getNodesetCount("/root/init/baseinfo/initexecprcpstatcd/M0011");
- cnt++;
- model.makeValue("/root/init/baseinfo/initexecprcpstatcd/M0011[" + cnt + "]/cdnm","예약대기");
- model.makeValue("/root/init/baseinfo/initexecprcpstatcd/M0011[" + cnt + "]/cdid","340");
- cnt++;
- model.makeValue("/root/init/baseinfo/initexecprcpstatcd/M0011[" + cnt + "]/cdnm","예약보류");
- model.makeValue("/root/init/baseinfo/initexecprcpstatcd/M0011[" + cnt + "]/cdid","350");
-
- addComboItem("cmb_nuclcd","--전체--","","above");
- grd_subordlist1.fixedcellcheckbox(0,1)=true;
- // 부서별 메모현황
- model.makeNode("/root/main/subordlist/subordlist4");
- copyNodeType("/root/main/subordlist/subordlist4","/root/init/cmb_info/subordlist4","replace");
- //20100824 A650 예약(통합)시 계열별 예약,실제 검사실별 예약 여부 추가 -박재영
- astGetComboList( new Array("NM001","A650"), new Array("/root/init1/baseinfo/examposinfo", "/root/init1/baseinfo/examcureinfo") );
- if (submit("TRAAA00001",false)) {
- var nodeCnt = getNodesetCount("/root/init1/baseinfo/examposinfo/NM001");
- if (nodeCnt > 1) {
- model.setValue("/root/send/examposuseyn","Y");
- } else {
- model.setValue("/root/send/examposuseyn","N");
- }
- }
-
- var examcureflag = model.getValue("/root/init1/baseinfo/examcureinfo/A650["+2+"]/cdid");
- model.setValue("/root/send/data/examcureflag",examcureflag);
-
- //취소내역확인요망
- fGetRsrvUpdtInfo();
-
- // 검사실 그룹 변경 시 이벤트
- fExcuRoomGrpChoi(excuroomgrpcdid);
-
- grd_subordlist4.autoResize = true;
- //model.refresh();
- ]]>
- </script>
- <bind id="bind_execprcpstatcd" ref="/root/main/subordlist/subordlist1/execprcpstatcd" readonly="../execprcpstatcd!=''"/>
- <bind id="bind_payflagcd" ref="/root/main/subordlist/subordlist1/payflagcd" readonly="../payflagcd!=''"/>
- <bind id="bind_wardcd" ref="/root/main/ordlist1/mainordlist1/wardcd" readonly="../wardcd!=''"/>
- <bind id="bind_wardcd2" ref="/root/main/ordlist1/mainordlist2/wardcd" readonly="../wardcd!=''"/>
- <bind id="bind_prcpgenrflagcd" ref="/root/main/subordlist/subordlist1/prcpgenrflag" readonly="../prcpgenrflag!=''"/>
- <bind id="bind_prcpgenrflagcd2" ref="/root/main/ordlist1/mainordlist1/prcpgenrflag" readonly="../prcpgenrflag!=''"/>
- <submission id="TRZBC00101"/>
- <submission id="TRAEA01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info"/>
- <submission id="TRAEA01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordlist1"/>
- <submission id="TRAEA01403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordlist1"/>
- <submission id="TRAEA01404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordlist1"/>
- <submission id="TRAEA01405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordlist1"/>
- <submission id="TRAEA01406" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordlist2"/>
- <submission id="TRAEA01407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordlist2"/>
- <submission id="TRAEA01408" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordlist2"/>
- <submission id="TRAEA01409" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordlist2"/>
- <submission id="TRAEA01410" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/subordlist2"/>
- <submission id="TRAEA01411" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/grd_info/grid_data" replace="instance" resultref="/root/main/subordlist"/>
- <submission id="TRAEA01412" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/memo" replace="instance" resultref="/root/hidden/subordlist"/>
- <submission id="TRAEA01413" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/subordlist3"/>
- <submission id="TRAEA01414" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/subordlist4"/>
- <submission id="TRAEA01416" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsrvposstmlist"/>
- <submission id="TRAEA01417" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/patinfo" replace="instance" resultref="/root/main/exculist"/>
- <submission id="TRAEA01418" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/cmb_info"/>
- <submission id="TRAEA01419" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data4" replace="instance" resultref="/root/hidden/result"/>
- <submission id="TRAEA01420" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/result"/>
- <submission id="TRAEA01306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info2"/>
- <submission id="TXAEA02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/patinfo" replace="instance" resultref="/root/temp"/>
- <submission id="TRAEA02005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsrvposstmlist"/>
- <submission id="TRAEA02011" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/curerprescondlist"/>
- <submission id="TRAEA02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/patinfo" replace="instance" resultref="/root/main/ordlist"/>
- <submission id="TRAEA02204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
- <submission id="TRAEA02206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsrvposstmlist"/>
- <submission id="TRAEA03203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/calendarinfo"/>
- <submission id="TXAEA01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/item"/>
- <submission id="TXAEA01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/item"/>
- <submission id="TXAEA01403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/item"/>
- <submission id="TXAEA01404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/item"/>
- <submission id="TXAEA01405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/item"/>
- <submission id="TXAEA01406" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/item"/>
- <submission id="TXAEA01407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/item"/>
- <submission id="TXAEA01408" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/temp"/>
- <submission id="TXAEA01409" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data5" replace="instance" resultref="/root/temp"/>
- <submission id="TXAEA02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/temp"/>
- <submission id="TXZMI00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/writemsg/send" replace="instance" resultref="/root/temp"/>
- <submission id="TRAEA05401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="root/main/rsrvupdtpreslist"/>
- <submission id="TRAEA00920" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/printinfo/printlist"/>
- <submission id="TRAAA00001"/>
- <script type="javascript" ev:event="xforms-model-destruct">
- <![CDATA[
- delPatientInfos();
- ]]>
- </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="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../emr/wardcareweb/js/SMMNB01810.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/combolist.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript">
- <![CDATA[
-
- /* @group : 예약
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 달력에 일자별로 가용현황을 보여준다.
- */
- function setRsrvPresCondByMonth(dateObj) {
- submit("TRAEA02011");
-
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var startDay = dateObj.getDay();
-
- for (var i = 1; i < grd_temp.rows; i++) {
- var dd = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/rsrvdd");
- var colidx = dd.toDate().getDay();
- var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
- grd_calendar.valueMatrix(rowidx, colidx+7) = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count") + "/" + model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max") ;
- }
- }
-
- /* @group : 예약
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 달력 폰트 색상을 변경한다.
- */
- function fSetTextColor(calRow, calCol, bgColor) {
-
- if ( calCol < 7 ) {
- grd_calendar.cellStyle("color", calRow, calCol) = bgColor;
- grd_calendar.cellStyle("color", calRow, calCol + 7) = bgColor;
- } else {
- grd_calendar.cellStyle("color", calRow, calCol) = bgColor;
- grd_calendar.cellStyle("color", calRow, calCol - 7) = bgColor;
- }
- }
-
- /* @group : 예약
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 병원 기준의 달력 정보 조회
- */
- function fGetHospitalCalendar(){
-
- var dd = (model.getValue("/root/hidden/calendar/year")).concat(model.getValue("/root/hidden/calendar/month"));
- model.makeValue("/root/send/data3/date",dd);
- model.makeValue("/root/send/data3/suppdeptcd",model.getValue("/root/send/globalinstance/instance1"));
-
- if (submit("TRAEA03203") == true) return true;
- else return false;
- }
-
-
- /* @group : 예약
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 달력 일자 설정
- */
- function setCalendar(dateObj) {
-
- //서버로 자료 요청
- if ( fGetHospitalCalendar() != true ) {
- messageBox("병원일정 데이터를 가져올 수", "I004");
- }
-
- // 그리드 초기화
- model.removeNodeset("/root/hidden/calendar/weeklist/list");
-
- dateObj.setDate(1);
- var startDay = dateObj.getDay();
- var days = dateObj.getMonthDay();
-
- var rows = Math.ceil( ( startDay + days ) / 7 );
- for ( var i = 0; i < rows; i++ ) {
- grd_calendar.addRow(false);
-
- }
- grd_calendar.rebuild();
- grd_calendar.rebuildStyle();
-
- var rowIndex = grd_calendar.fixedRows;
- var colIndex = startDay;
- var dutflag = '';
-
- for ( var i = 1; i <= days; i++ ) {
-
- //write date
- grd_calendar.valueMatrix(rowIndex, colIndex) = i;
- grd_calendar.cellStyle("font-weight", rowIndex, colIndex) = "bold";
- //write memo
- grd_calendar.valueMatrix(rowIndex , colIndex + 7) = "0/0";
-
- dutflag = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/dutflag");
-
- if( dutflag == '8' ){ //'0' 평일, '4' 토요일, '8' 휴일
- fSetTextColor(rowIndex, colIndex, '#ff0000');
- }
-
- colIndex++;
- if ( colIndex == 7 ) {
- colIndex = 0;
- rowIndex++;
- }
- }
-
- model.setValue("/root/send/data/rsrvdd",model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+"01");
- setRsrvPresCondByMonth(dateObj);
-
- }
-
- /* @group : 예약
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 달력 배경색 설정
- */
- function setCellColor(gridObj) {
-
- var calRow = 0; //현재선택
- var calCol = 0; //현재선택
- var bfcalRow = 0; //전에 선택
- var bfcalCol = 0; //전에 선택
-
- var white = 1; //#ffffff
- var green = 2; //#c4e693
-
- calRow = Number(model.getValue("/root/hidden/grdcellcolor/calrow"));
- calCol = Number(model.getValue("/root/hidden/grdcellcolor/calcol"));
-
- bfcalRow = Number(model.getValue("/root/hidden/grdcellcolor/bfcalrow"));
- bfcalCol = Number(model.getValue("/root/hidden/grdcellcolor/bfcalcol"));
-
- // 1. 원래 색으로 돌려놓기
- if (model.getValue("/root/hidden/grdcellcolor/color") == "1" ) {
- gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
-
- if ( bfcalCol < 7 ) {
- bfcalCol += 7;
- } else {
- bfcalCol -= 7;
- }
- gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
-
- } else if (model.getValue("/root/hidden/grdcellcolor/color") == "2" ) {
- gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
-
- if ( bfcalCol < 7 ) {
- bfcalCol += 7;
- } else {
- bfcalCol -= 7;
- }
- gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
- }
-
-
- // 2. bf 인스턴스에 선택한 원래 셀 담아두기
-
- if (gridObj.cellStyle("background-color", calRow, calCol) == "white" ) {
- model.makeValue("/root/hidden/grdcellcolor/color", "1");
- }
-
- if (gridObj.cellStyle("background-color", calRow, calCol) == "#c4e693" ) {
- model.makeValue("/root/hidden/grdcellcolor/color", "2");
- }
- model.makeValue("/root/hidden/grdcellcolor/bfcalrow",calRow);
- model.makeValue("/root/hidden/grdcellcolor/bfcalcol",calCol);
-
- // 3. 선택한 셀에 보라색 주기
- gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
-
- if ( calCol < 7 ) {
- calCol += 7;
- } else {
- calCol -= 7;
- }
- gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
-
- var curdate = getCurrentDate();
- var caldate = model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month");
- var curday = curdate.substring(6,8);
- var calday = "";
-
- if ( curdate.substring(0,6) == caldate ) {
- for (i=0; i<gridObj.rows; i++) {
- for (j=0; j<gridObj.cols; j++) {
- calday = gridObj.valueMatrix(i,j);
- if (eval(curday) == calday) {
- calRow = i;
- calCol =j;
- // 현재일자 색상 표시
- gridObj.cellStyle("background-color", calRow, calCol) = "#95d4fb";
-
- if ( calCol < 7 ) {
- calCol += 7;
- } else {
- calCol -= 7;
- }
- gridObj.cellStyle("background-color", calRow, calCol) = "#95d4fb";
- }
- }
- }
- }
- }
-
- /* @group : 통합예약관리
- * @ver : 2007.08.10
- * @by : 임헤정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 오늘날짜 달력에 표시
- */
- function setCurrentDate() {
-
- var curDate = getCurrentDate().substr(6,2); //오늘날짜
- var curWeek = getCurrentDate().toDate().getDayOfWeek("E").toLowerCase(); //오늘요일
- if (curDate <10) {
- curDate= curDate.substr(1,1);
- }
- if (curWeek == "sun") {
- model.makeValue("/root/hidden/grdcellcolor/calcol",0);
- model.makeValue("/root/hidden/grdcellcolor/bfcalcol",0);
- } else if (curWeek == "mon") {
- model.makeValue("/root/hidden/grdcellcolor/calcol",1);
- model.makeValue("/root/hidden/grdcellcolor/bfcalcol",1);
- } else if (curWeek == "tue") {
- model.makeValue("/root/hidden/grdcellcolor/calcol",2);
- model.makeValue("/root/hidden/grdcellcolor/bfcalcol",2);
- } else if (curWeek == "wed") {
- model.makeValue("/root/hidden/grdcellcolor/calcol",3);
- model.makeValue("/root/hidden/grdcellcolor/bfcalcol",3);
- } else if (curWeek == "thu") {
- model.makeValue("/root/hidden/grdcellcolor/calcol",4);
- model.makeValue("/root/hidden/grdcellcolor/bfcalcol",4);
- } else if (curWeek == "fri") {
- model.makeValue("/root/hidden/grdcellcolor/calcol",5);
- model.makeValue("/root/hidden/grdcellcolor/bfcalcol",5);
- } else if (curWeek == "sat") {
- model.makeValue("/root/hidden/grdcellcolor/calcol",6);
- model.makeValue("/root/hidden/grdcellcolor/bfcalcol",6);
- }
-
- for (var i = 0 ; i <grd_calendar.rows; i++ ) {
- if(model.getValue("/root/hidden/calendar/weeklist/list["+i+"]/"+curWeek) ==curDate) {
- model.makeValue("/root/hidden/grdcellcolor/calrow",i);
- model.makeValue("/root/hidden/grdcellcolor/bfcalrow",i);
- }
- }
-
- model.makeValue("/root/hidden/grdcellcolor/color",1);
-
- setCellColor(grd_calendar);
- }
-
-
- /* @group : 예약
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 달력 초기화
- */
- function initCalendar() {
-
- var curDate = getCurrentDate().toDate();
-
- model.setValue("/root/hidden/calendar/year", curDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", curDate.getDateFormat('MM'));
- model.refresh();
- setCalendar(curDate);
- }
-
-
- /* @group : 실시관리
- * @ver : 2007.06.14
- * @by : 장준원
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 처방 그리드 Setting Function
- */
- function fSetSubDetailGrid(xpath) {
- ////////////////////////////
- // 그리드 세팅한다//
- ////////////////////////////
- //return;
- // 색상 해제 ,
- var srchLength1 = model.instances(0).selectNodes( xpath ).length;
- for ( var i = 1; i <= srchLength1; i++ ) {
- grd_mainordlist1.rowstyle( i , "data" , "color" ) = "#000000";
- }
-
- //aezfSetRowStyle("grd_mainordlist1" , "5" , "B6" , "type" );
- aezfSetFontRowStyle("grd_mainordlist1" , "9" , "B6" , "type" );
- }
-
-
- function fSetSubDetailGrid2(xpath) {
- ////////////////////////////
- // 그리드 세팅한다//
- ////////////////////////////
-
- // 색상 해제 ,
- var srchLength1 = model.instances(0).selectNodes( xpath ).length;
- for ( var i = 1; i <= srchLength1; i++ ) {
- grd_subordlist1.rowstyle( i , "data" , "color" ) = "#000000";
- }
- //aezfSetRowStyle("grd_subordlist1" , "5" , "B6" , "basesuppdeptcd" );
- aezfSetFontRowStyle("grd_subordlist1" , "9" , "B6" , "basesuppdeptcd" );
- }
-
-
- /* @group : 접수관리(핵의학체내)
- * @ver : 2007.03.21
- * @by : 장준원
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : Grid 초기화를 위한 Function
- */
- function fInitGrid() {
- chk_statecd.value = "";
-
- fInitTar();
- model.removenode("/root/main/ordlist1");
- model.removenode("/root/main/ordlist2");
- model.removenode("/root/main/subordlist");
- model.removenode("/root/main/subordlist2");
- model.removenode("/root/main/exculist/subordlist3");
-
- model.resetInstanceNode("/root/send/data/grd_info/grid_data/pid");
- model.resetInstanceNode("/root/send/data/grd_info/grid_data/prcpgenrflag");
- model.resetInstanceNode("/root/send/data/grd_info/grid_data/orddeptcd");
- model.resetInstanceNode("/root/send/data/grd_info/grid_data/prcpdd");
-
- model.resetInstanceNode("/root/send/data/grd_info/grid_data/calcscorcd");
- model.refresh();
- var acptlistflag = model.getValue("/root/send/data/acptlistflag");
- switch (acptlistflag) {
-
- case "M": //미접수
- btn_rsrvwait.disabled = false;
- btn_rsrvrete.disabled = false;
- btn_rsrvcncl.disabled = true;
- btn_acpt.disabled = false;
- btn_acptcncl.disabled = true;
- break;
- case "R": // 예약
- btn_rsrvwait.disabled = true;
- btn_rsrvrete.disabled = true;
- btn_rsrvcncl.disabled = true;
- btn_acpt.disabled = false;
- btn_acptcncl.disabled = true;
- break;
- case "J": //접수
- btn_rsrvwait.disabled = true;
- btn_rsrvrete.disabled = true;
- btn_rsrvcncl.disabled = true;
- btn_acpt.disabled = true;
- btn_acptcncl.disabled = false;
- break;
-
- case "E": //실시(IV입력포함)
- btn_rsrvwait.disabled = true;
- btn_rsrvrete.disabled = true;
- btn_rsrvcncl.disabled = true;
- btn_acpt.disabled = true;
- btn_acptcncl.disabled = true;
- break;
-
- case "Y": //당일예약
- btn_rsrvwait.disabled = true;
- btn_rsrvrete.disabled = true;
- btn_rsrvcncl.disabled = true;
- btn_acpt.disabled = false;
- btn_acptcncl.disabled = true;
- ipt_date1.value = getCurrentDate();
- ipt_date2.value = getCurrentDate();
-
- break;
-
- case "Z": //대기/보류
- btn_rsrvwait.disabled = true;
- btn_rsrvrete.disabled = true;
- btn_rsrvcncl.disabled = false;
- btn_acpt.disabled = true;
- btn_acptcncl.disabled = true;
- break;
- default:
- break;
-
- }
- }
- /* @group : 접수관리(핵의학체내)
- * @ver : 2007.03.21
- * @by : 장준원
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : TextArea 초기화 Function
- */
- function fInitTar() {
- tar_prcpremfact.value = "-";
- //tar_acptrem.value = "-";
- //tar_execrem.value = "-";
- }
-
-
- /* @group : 접수관리(진단방사선)
- * @ver : 2007.03.21
- * @by : 장준원
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : Toggle선택 조회를 위한 선택 Function
- */
- function fGetToggleAcptList() {
-
- var acptlistflag = model.getValue("/root/send/data/acptlistflag");
-
- // 초기화
- fInitGrid();
-
- // 대상자 조회
- fGetExamCureAcptList(acptlistflag);
- }
-
-
- /* @group : 접수관리(핵의학체내)
- * @ver : 2007.03.21
- * @by : 장준원
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 미접수/접수/실시/당일예약 조회 Submission Function
- */
- function fGetExamCureAcptList(acptlistflag) {
- if (acptlistflag == "") {
- messageBox("상태를 선택해 주십시오.","I999");
- return "0";
- }
-
- var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
-
- if (excuroomgrpcdid == "") {
- messageBox("검사실 그룹을 선택해 주십시오.","I999");
- return "0";
- }
- // flag Setting
- model.makeValue("/root/send/data/acptlistflag", acptlistflag);
- model.setValue("/root/main/patinfo/patinfolist","");
-
- model.removenode("/root/main/ordlist1");
- model.removenode("/root/main/ordlist2");
- model.removenode("/root/main/subordlist");
-
- if ( btn_case1.selected == true ) {
- model.makeValue("/root/send/data/cmb_info/initioflag/ioflag","O");
- model.makeValue("/root/send/data/srchflag", 'P');
- model.toggle("case1");
-
- } else if ( btn_case2.selected == true ) {
- model.makeValue("/root/send/data/cmb_info/initioflag/ioflag","I");
- model.makeValue("/root/send/data/srchflag", 'P');
- model.toggle("case1");
-
- } else if ( btn_case3.selected == true ) {
- model.makeValue("/root/send/data/srchflag", 'C');
- model.toggle("case2");
- }
-
- if ( btn_case3.selected == true ) {
- submit("TRAEA01406");
- } else {
- submit("TRAEA01402");
- }
-
- model.setValue("/root/send/data/srchpid","");
- model.removenode("/root/main/subordlist/subordlist1");
- model.refresh();
-
- var temppid = model.getValue("/root/send/temp/pid");
- var tempcalcscorcd = model.getValue("/root/send/temp/calcscorcd");
-
- var flag = false;
- if ( btn_case3.selected == true ) {
- // 입원/외래 일 경우
- if (tempcalcscorcd != "") {
- for (i = 1; i< grd_mainordlist2.rows; i++) {
- var calcscorcd = model.getValue("/root/main/ordlist2/mainordlist2[" + i + "]/calcscorcd");
- if (tempcalcscorcd == calcscorcd) {
- flag = true;
- grd_mainordlist2.row = i;
- }
- }
-
- // 해당 처방이 있는 경우
- if (flag == true) {
- fGetExamCurePrcpList(grd_mainordlist2);
- }
- }
- } else {
-
- // 입원/외래 일 경우
- if (temppid != "") {
- for (i = 1; i< grd_mainordlist1.rows; i++) {
- var pid = model.getValue("/root/main/ordlist1/mainordlist1[" + i + "]/pid");
- if (temppid == pid) {
- flag = true;
- grd_mainordlist1.row = i;
- }
-
- }
-
- // 해당 등록번호가 있는 경우
- if (flag == true) {
- fGetExamCurePrcpList(grd_mainordlist1);
- }
- } else {
- delPatientInfos();
- }
- }
-
- //2013.02.13 후불수납
- for(var i = 1 ; i < grd_mainordlist1.rows ; i++ ){
- grd_mainordlist1.rowstyle(i, "data", "background-color") = "#ffffff";
- }
- aezfSetRowStyle("grd_mainordlist1" , "15^16^17" , "V^P^A" , "aftrcptinfo" ); //20101005 cell단위가 아닌 row단위로 표시 - 권영애
-
-
-
- model.makeValue("/root/send/temp/pid","");
- model.makeValue("/root/send/temp/calcscorcd","");
-
- }
- /* @group : 접수관리(핵의학체내)
- * @ver : 2007.03.21
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 상병 조회를 위한 선택 Function
- */
- function fGetExamCureDiagList(maingridlistid) {
-
- if ( grd_mainordlist1.row == 0 ) return;
-
- var row = grd_mainordlist1.row;
- var pid = maingridlistid.valueMatrix(row, maingridlistid.colRef("pid"));
- var prcpgenrflag = maingridlistid.valueMatrix(row, maingridlistid.colRef("prcpgenrflag")); // 상병조회에서 사용 pid, prcpgenrflag,orddeptcd,prcpdd
- var orddeptcd = maingridlistid.valueMatrix(row, maingridlistid .colRef("orddeptcd"));
- var prcpdd = maingridlistid.valueMatrix(row, maingridlistid .colRef("prcpdd"));
- model.makeValue("/root/send/data/grd_info/grid_data/pid", pid);
- model.makeValue("/root/send/data/grd_info/grid_data/prcpgenrflag", prcpgenrflag);
- model.makeValue("/root/send/data/grd_info/grid_data/orddeptcd", orddeptcd);
- model.makeValue("/root/send/data/grd_info/grid_data/prcpdd", prcpdd);
- //alert('Diag Instance->>>>'+model.getValue("/root/send/data/grd_info/grid_data/pid")+'-'+model.getValue("/root/send/data/grd_info/grid_data/prcpgenrflag"));
- submit("TRAEA01410");
- }
- /* @group : 접수관리(핵의학체내)
- * @ver : 2007.03.21
- * @by : 장준원
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 환자기준 전체 처방내역 조회를 위한 선택 Function
- */
- function fGetExamCurePidPrcpList() {
-
- fInitTar();
- model.setValue("/root/main/patinfo/patinfolist", "");
-
- var pid = model.getValue("/root/send/data/srchpid");
-
- if (pid != "") {
- model.makeValue("/root/send/data/grd_info/grid_data/instance1", model.getValue("/root/send/globalinstance/instance1"));
- var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
- model.makeValue("/root/send/data/grd_info/grid_data/excuroomgrpcdid", excuroomgrpcdid);
-
- var excuroomcdid = model.getValue("/root/send/data/cmb_info/initexecroom/excuroomcdid");
- model.makeValue("/root/send/data/grd_info/grid_data/excuroomcdid", excuroomcdid);
-
- model.makeValue("/root/send/data/grd_info/grid_data/calcscorcd", "");
- model.makeValue("/root/send/data/grd_info/grid_data/prcpgenrflag", "");
- model.makeValue("/root/send/data/grd_info/grid_data/ioflag", "");
-
- model.makeValue("/root/send/data/grd_info/grid_data/largeclass", "M3");
- model.makeValue("/root/send/data/grd_info/grid_data/acptlistflag", "L");
-
- model.makeValue("/root/send/data/grd_info/grid_data/pid", pid);
-
- //20160922 동명이인체크 : 예약일자 파라메터 추가
- //start
- model.makeValue("/root/send/data/grd_info/grid_data/srchdate1", model.getValue("/root/send/data/rsrvdd")); //선택일자
- model.makeValue("/root/send/data/grd_info/grid_data/srchdate2", model.getValue("/root/send/data/rsrvdd")); //선택일자
- //end
-
- var examcureflag = model.getValue("/root/init1/baseinfo/examcureinfo/A650["+2+"]/cdid");
- model.makeValue("/root/send/data/grd_info/grid_data/examcureflag",examcureflag);//201100824 박재영
-
- // 대상자 내역 Clear를 한다.
- model.resetInstanceNode("/root/main/ordlist1/mainordlist1");
- model.resetInstanceNode("/root/main/ordlist2/mainordlist2");
-
- if (submit("TRAEA01411")) {
-
- // 그리드 세팅
- fSetSubDetailGrid2("/root/main/subordlist/subordlist1");
-
- // // 환자 정보,Comment 조회
- // var patinfo = " [ 환자명 : "+ model.getValue("/root/main/subordlist/patinfolist/hngnm")
- // patinfo = patinfo + " , S/A : " + model.getValue("/root/main/subordlist/patinfolist/age") + "/" + model.getValue("/root/main/subordlist/patinfolist/sex") ;
- // patinfo = patinfo + " , 집전화 : " + model.getValue("/root/main/subordlist/patinfolist/hometel") + " , 핸드폰 : " + model.getValue("/root/main/subordlist/patinfolist/mpphontel") + " ] ";
- //
- // model.setValue("/root/main/patinfo/patinfolist",patinfo);
- aezfSetCellStyle("grd_subordlist1" , "0^1^2" , "V^P^A" , "aftrcptinfo", "pid", "F");
-
- //동명이인 20160921
- if (model.getValue("/root/main/subordlist/nameconflict/conflictyn") == "Y") {
- messageBox("현재 환자와 성명이 동일한 환자가 존재합니다.\r\n" +
- " 주의하여 작업하시기 바랍니다.", "I000");
- }
-
-
- /* patcmt();*/
- }
- cmb_acptlistflag.value = "";
- cmb_excuroomgrp.value ="";
- cmb_excuroom.value = "";
-
- // if (flag == "") {
- // cmb_excuroomgrp2.value ="";
- // model.removenode("/root/main/rsrvposstmlist");
- // }
-
- var nodecnt = getNodesetCount("/root/main/subordlist/subordlist1");
-
- //TOP 정보 보여주기
- if (nodecnt >0 ) {
-
- model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/no", "1");
- model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/pid", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/pid"));
- model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/patnm", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/patnm"));
- model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/prcpgenrflag", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/prcpgenrflag"));
- model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/wardcd", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/wardcd"));
- model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/depthngnm", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/depthngnm"));
- model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/execprcpuniqno",model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/execprcpuniqno"));
- model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/orddeptcd", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/orddeptcd"));
- model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/rsrvdd", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/rsrvdd"));
- model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/execprcpstatcd", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/execprcpstatcd"));
- model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/prcpdd", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/prcpdd"));
- model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/roomcd", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/roomcd"));
- model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/orddrid", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/orddrid"));
- model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/rcptyn", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/rcptyn"));
- model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/orddd", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/orddd"));
- model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/cretno", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/cretno"));
- model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/dschdd", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/dschdd"));
- model.makeValue("/root/main/ordlist1/mainordlist1[ " + 1 + "]/aftrcptinfo", model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/aftrcptinfo"));
-
- var prcpgenrflag = model.getValue("/root/main/subordlist/subordlist1[" + 1 + "]/prcpgenrflag");
- if ( prcpgenrflag =="I" || prcpgenrflag =="D" || prcpgenrflag =="E" ) {
- btn_case2.selected = true;
- } else if ( prcpgenrflag =="-" || prcpgenrflag =="O" || prcpgenrflag =="S" ) {
- btn_case1.selected = true;
- } else {
- btn_case1.selected = true;
- }
- model.toggle("case1");
-
- //2013.02.13 by kya 후불 수납
- //2013.02.13 후불수납
- for(var i = 1 ; i < grd_mainordlist1.rows ; i++ ){
- grd_mainordlist1.rowstyle(i, "data", "background-color") = "#ffffff";
- }
- aezfSetRowStyle("grd_mainordlist1" , "15^16^17" , "V^P^A" , "aftrcptinfo" ); //20101005 cell단위가 아닌 row단위로 표시 - 권영애
-
- model.refresh();
-
- grd_mainordlist1.row = 1;
-
- model.makeValue("/root/send/patinfo/srchpid", pid);
- model.makeNode("/root/main/subordlist/rsrvcmtlist");
- if (submit("TRAEA01417", false)) {
- copyNodeType("/root/main/subordlist/rsrvcmtlist", "/root/main/exculist/patinfolist", "replace");
- patcmt();
- }
-
- delPatientInfos();
- fTopInfo();
-
- }
-
- model.refresh();
-
- }
- }
- /* @group : 접수관리(핵의학체내)
- * @ver : 2007.03.21
- * @by : 장준원
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 처방내역/타과처방/상병/코멘트 조회를 위한 선택 Function
- */
- function fGetExamCurePrcpList(maingridlistid) {
- if ( maingridlistid.row == 0 ) return;
-
- var row = maingridlistid.row;
- fInitTar();
-
- grd_subordlist1.fixedcellcheckbox(0,1)=true;
- grd_subordlist1.fixedcellischeck(0,1)=false;
-
- // grd_subordlist1.rebuild();
- // grd_subordlist1.fixedcellcheckbox(0,1)=true;
- // //grd_subordlist1.valueMatrix(0,1) = false;
-
- var ioflag = model.getValue("/root/send/data/cmb_info/initioflag/ioflag");
-
- // 조회조건 초기화
- model.removenode("/root/send/patinfo");
- model.removenode("/root/send/data/grd_info");
-
- model.makeValue("/root/send/data/grd_info/grid_data/instance1", model.getValue("/root/send/globalinstance/instance1"));
- model.makeValue("/root/send/data/grd_info/grid_data/srchdate1", model.getValue("/root/send/data/srchdate1"));
- model.makeValue("/root/send/data/grd_info/grid_data/srchdate2", model.getValue("/root/send/data/srchdate2"));
- var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
- model.makeValue("/root/send/data/grd_info/grid_data/excuroomgrpcdid", excuroomgrpcdid);
-
- var excuroomcdid = model.getValue("/root/send/data/cmb_info/initexecroom/excuroomcdid");
- model.makeValue("/root/send/data/grd_info/grid_data/excuroomcdid", excuroomcdid);
- var pid = "";
- var prcpgenrflag ="";
-
- if ( btn_case3.selected == true ) {
- var calcscorcd = maingridlistid.valueMatrix(row, maingridlistid.colRef("calcscorcd"));
-
- model.makeValue("/root/send/data/grd_info/grid_data/calcscorcd", calcscorcd);
- model.makeValue("/root/send/data/grd_info/grid_data/prcpgenrflag", "");
- model.makeValue("/root/send/data/grd_info/grid_data/ioflag", model.getValue("/root/send/data/cmb_info/initioflag/ioflag"));
-
- } else {
-
- pid = maingridlistid.valueMatrix(row, maingridlistid.colRef("pid"));
- prcpgenrflag = maingridlistid.valueMatrix(row, maingridlistid.colRef("prcpgenrflag"));
- // 환자내역
- model.makeValue("/root/send/patinfo/srchpid", pid);
- model.makeValue("/root/send/patinfo/orddd", maingridlistid.valueMatrix(row, maingridlistid.colRef("orddd")));
- model.makeValue("/root/send/patinfo/orddeptcd", maingridlistid.valueMatrix(row, maingridlistid.colRef("orddeptcd")));
- model.makeValue("/root/send/patinfo/suppdeptcd1", model.getValue("/root/send/globalinstance/instance1"));
- model.makeValue("/root/send/patinfo/chkflag", "");
-
- model.makeValue("/root/send/data/grd_info/grid_data/pid", pid);
- model.makeValue("/root/send/data/grd_info/grid_data/prcpgenrflag", prcpgenrflag);
-
- if ( btn_case1.selected == true ) {
- model.makeValue("/root/send/data/grd_info/grid_data/ioflag","O");
- } else if ( btn_case2.selected == true ) {
- model.makeValue("/root/send/data/grd_info/grid_data/ioflag","I");
- }
- }
- var acptlistflag = model.getValue("/root/send/data/acptlistflag");
- var examcureflag = model.getValue("/root/init1/baseinfo/examcureinfo/A650["+2+"]/cdid");
-
- if ( chk_statecd.value == "ALL" ) {
- acptlistflag = "L";
- }
-
- model.makeValue("/root/send/data/grd_info/grid_data/largeclass", "M3");
- model.makeValue("/root/send/data/grd_info/grid_data/acptlistflag", acptlistflag);
- model.makeValue("/root/send/data/grd_info/grid_data/examcureflag",examcureflag);//201100824 박재영
- fTopInfo();
-
- if (submit("TRAEA01411",false)) {
-
- // 그리드 세팅
- fSetSubDetailGrid2("/root/main/subordlist/subordlist1");
-
- if ( btn_case3.selected != true ) { // 환자별 조회만 해당. 상병정보가져오기
-
- // 환자 정보,Comment 조회
- var patinfo = " [ 환자명 : "+ model.getValue("/root/main/subordlist/patinfolist/hngnm")
- patinfo = patinfo + " , S/A : " + model.getValue("/root/main/subordlist/patinfolist/age") + "/" + model.getValue("/root/main/subordlist/patinfolist/sex") ;
- patinfo = patinfo + " , 집전화 : " + model.getValue("/root/main/subordlist/patinfolist/hometel") + " , 핸드폰 : " + model.getValue("/root/main/subordlist/patinfolist/mpphontel") + " ] ";
-
- model.setValue("/root/main/patinfo/patinfolist",patinfo);
- model.makeValue("/root/send/patinfo/srchpid", pid);
- model.makeNode("/root/main/subordlist/rsrvcmtlist");
- if (submit("TRAEA01417", false)) {
- copyNodeType("/root/main/subordlist/rsrvcmtlist", "/root/main/exculist/patinfolist", "replace");
- patcmt();
- }
-
- } else {
- model.setValue("/root/send/data/cmb_info/initioflag/ioflag",ioflag);
- }
-
- maingridlistid.row = row;
- model.refresh();
-
- aezfSetCellStyle("grd_subordlist1" , "0^1^2" , "V^P^A" , "aftrcptinfo", "pid", "F");
-
- //동명이인 20160921
- if (model.getValue("/root/main/subordlist/nameconflict/conflictyn") == "Y") {
- messageBox("현재 환자와 성명이 동일한 환자가 존재합니다.\r\n" +
- " 주의하여 작업하시기 바랍니다.", "I000");
- }
-
-
- }
- }
- /* @group : 접수관리(핵의학체내)
- * @ver : 2007.12.26
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 팝업화면에서 조회를 위한 선택 Function
- */
- function fGetExamCurePrcpPopList() {
- var pid = model.getValue("/root/send/data/srchpid");
-
- if (pid != "") {
- fGetExamCurePidPrcpList();
- } else {
- if ( btn_case1.selected == true || btn_case2.selected == true ) fGetExamCurePrcpList(grd_mainordlist1);
- if ( btn_case3.selected == true ) fGetExamCurePrcpList(grd_mainordlist2);
- }
- }
-
-
- //gubn : 1:접수, 2:접수취소
- function fExeAccept(gubn) {
- var excuroomgrpcdid = model.getValue("/root/send/data/excuroomgrp");
-
-
- if (gubn == 2) { //접수취소인 경우 취소사유 입력하도록 한다.
- //if(gBeforeFlag == true) {
- //입원전검사는 점검안함.
- //} else {
- //if(fCheckCncl() == false) return;
- //}
- }
- // 접수or접수취소할 내역에 대한 체크여부
- var check = "";
- var rsrvdt = "";
- var acptdd = getCurrentDate(); // 현재일자(접수일자)
- var loopcnt = 0;
- var loop = grd_subordlist1.rows - grd_subordlist1.fixedRows;
- for ( var i = 1 ; i <= loop ; i++ ) {
- check = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/check");
- rsrvdt = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/rsrvdt").substring(0,8);
-
- if ( check == "Y" ) {
- loopcnt++;
- var chkprcpnm = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/prcpnm");
-
- // 접수인 경우 접수일자와 예약 일자가 동일한 경우에만 접수 처리
- if (gubn == 1) {
- if (acptdd != rsrvdt) {
- messageBox("["+chkprcpnm+"] 검사의 예약일자와 접수일자가 일치하지 않기 때문에 접수할 수 없습니다.", "I999");
- return "0";
- }
- }
-
- // 검체검사는 접수/취소/보류/취소를 막는다.
- if ( model.getValue("/root/main/subordlist/subordlist1[" + i + "]/basesuppdeptcd") == "B6" ) {
- messageBox("["+chkprcpnm+"] 검사는 검체검사입니다. [환자채혈] 기능을 이용하시기 바랍니다.", "I999");
- return "0";
- }
-
- }
- }
- if ( loopcnt == 0 ) {
- messageBox("처방내역을 선택해 주십시오.","I999");
- return "0";
- }
- var execprcpstatcd = ""; // 처방상태코드 구분
- var prcpgenrflag = ""; // 외래입원응급실 구분
- var prcpnm = ""; // 처방명
- var inflag = ""; // 재원중 여부
- var rcptacptyn = ""; // 수납 여부
- //var rsrvflag = ""; // 협진 여부
- var portprcpflag = ""; // 포터블처방여부
- var execbaseflag = ""; // 실시기준여부 (A:접수 , E:실시)
- var doflag = false;
- var aftrcptinfo = "" //후불수납자, VIP환자
- if ( gubn == 1 ) { //접수인 경우
- //if(gSuppDept != gg_CHI_GWA) { //치과인 경우는 미수납여부 점검안함.
- for ( var i = 1 ; i <= loop ; i++ ) {
- check = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/check");
- execprcpstatcd = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/execprcpstatcd");
- prcpgenrflag = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/prcpgenrflag");
- prcpnm = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/prcpnm");
- inflag = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/inflag");
- rcptacptyn = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/rcptacptyn");
- //rsrvflag = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/rsrvflag");
- portprcpflag = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/portprcpflag");
- // 선처치여부
- precureprcpflag = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/precureprcpflag");
-
- //20150212 후불수납여부
- aftrcptinfo = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/aftrcptinfo");
-
- // 진단방사선과일경우, 자동방배정여부(검사코드관리)
- // 공통, 미수납접수여부(검사코드관리)
- if ( check == "N" || check == "" ) {
- continue; // check 안되어 있으면 skip
- }
-
- var rsrvflag= model.getValue("/root/main/subordlist/subordlist1[" + i + "]/rsrvflag");
-
- //
- if ( rsrvflag != "Y" ) {
- messageBox("["+chkprcpnm+"] 검사는 예약되지 않았기 때문에 접수할 수 없습니다. ", "I999");
- return "0";
- }
-
- /*
- * 20070520, 처방,간호확인만 된것은 미수납이기에 접수불가함, 단, 미수납접수여부가 허용일경우는 체크한다.
- */
- /*
- if ( execprcpstatcd == "000" || execprcpstatcd == "100" ) {
- if ( prcpgenrflag == "O" ) {
- if ( rcptacptyn == "Y" ) { // 미수납접수여부 허용
- if ( messageBox(prcpnm + "은 미수납접수여부를 허용한 검사코드입니다. 접수를 ","Q002")==6 ) {
- }else {
- return "0";
- }
- } else {
- //if ( precureprcpflag == "Y" ) { // 선처치일 경우 접수 허용
- // messageBox(prcpnm + "은 선치치 처방입니다.","I999");
- if ( aftrcptinfo == "V" ) { // 후불수납환자
- //messageBox(prcpnm + "은 후불수납입니다.","I999");
- } else {
- messageBox(prcpnm + "은 미수납된 처방이므로 접수할 수 없습니다.","I999");
- return "0";
- }
- }
- }
- }
- */
- //20150224 권영애 수납유무 체크
- if ( execprcpstatcd == "000" || execprcpstatcd == "100" ) {
- if ( prcpgenrflag == "O" ) {
- if ( aftrcptinfo == "A" ) {
- messageBox(prcpnm + "은 미수납된 처방이므로 접수할 수 없습니다.","I999");
- return "0";
- }
- }
- }
-
- }
- } else if ( gubn == 2 ) { //접수취소인 경우
-
- for (var i = 1; i <= loop; i++) {
- check = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/check");
- execprcpstatcd = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/execprcpstatcd");
- execbaseflag = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/execbaseflag");
- prcpnm = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/prcpnm");
-
- if ( check == "N" ) continue; // check 안되어 있으면 skip
-
- if ( execprcpstatcd == "450" ) {
- messageBox(prcpnm + "은 Hold된 처방이므로 접수취소를 할 수 없습니다.","I999");
- return "0";
-
- }
- }
- }
- // 접수
- if (gubn == 1) {
- for (var i = 1 ; i <= loop ; i++ ) {
- check = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/check");
- if ( check == "Y" ) {
-
- // 사용자 요구 사항에 의해 접수 Comment 삭제 : 2008.10.20 김건기
- // model.setValue("/root/main/subordlist/subordlist1[" + i + "]/acptrem", tar_acptrem.value);
- // if ( model.getValue("/root/main/subordlist/subordlist1[" + i + "]/execbaseflag") == "A" ) { // 실시기준여부가 접수인경우
- // model.setValue("/root/main/subordlist/subordlist1[" + i + "]/execrem", tar_acptrem.value);
- // }
-
- // var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
- // if (excuroomgrpcdid == "PET-CT실") {
- // var oldexcuroomcd = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/oldexcuroomcd");
- // if (oldexcuroomcd != "") {
- // var excuroomcd = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/excuroomcd");
- //
- // if (oldexcuroomcd != excuroomcd) {
- // messageBox("이전검사실과 현재 접수하는 검사실과","E004 ");
- // }
- // }
- // }
- }
- }
-
- var nodeList = instance1.selectNodes("/root/main/subordlist/subordlist1[check='Y']");
- var rCSV = getNodeListCSV(nodeList);
- if ( rCSV == null ) {
- messageBox("처방내역을 선택해 주십시오.","I999");
- return "0";
- }
- model.setValue("/root/send/data/tobeacptprcp/tobeacptprcplist", rCSV);
- }
-
- // 접수취소
- if (gubn == 2) {
- for ( var i = 1 ; i <= loop ; i++ ) {
- check = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/check");
- if ( check == "Y" ) {
- // 사용자 요구 사항에 의해 접수 Comment 삭제 : 2008.10.20 김건기
- // model.setValue("/root/main/subordlist/subordlist1[" + i + "]/acptrem", "-" );
- // if ( model.getValue("/root/main/subordlist/subordlist1[" + i + "]/execbaseflag") == "A" ) { // 실시기준여부가 접수인경우
- // model.setValue("/root/main/subordlist/subordlist1[" + i + "]/execrem", "-");
- // }
- }
- }
-
- var nodeList = instance1.selectNodes("/root/main/subordlist/subordlist1[check='Y']");
- var rCSV = getNodeListCSV(nodeList);
- if ( rCSV == null ) {
- messageBox("처방내역을 선택해 주십시오.","I999");
- return "0";
- }
- model.setValue("/root/send/data/tobeacptcnclprcp/tobeacptcnclprcplist", rCSV);
- }
-
-
- var srchpid = model.getValue("/root/send/data/srchpid");
- var acptlistflag = model.getValue("/root/send/data/acptlistflag");
-
- var pid = "";
- var calcscorcd = "";
-
- if ( btn_case3.selected == true ) {
- calcscorcd = model.getValue("/root/main/ordlist2/mainordlist2["+grd_mainordlist2.row+"]/calcscorcd");
- } else {
- pid = model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/pid");
- }
- model.makeValue("/root/send/temp/pid",pid);
- model.makeValue("/root/send/temp/calcscorcd",calcscorcd);
-
- if (gubn == 1) {
- if ( messageBox("접수를 ","Q002")==6 ) {
-
- // 저장
- submit("TXAEA01401");
- // 저장 후 재조회
- if (srchpid != "") {
- fGetExamCurePidPrcpList();
- } else {
- // 대상자 조회
- fGetExamCureAcptList(acptlistflag);
- }
- } else {
- model.resetInstanceNode("/root/send/data/tobeacptprcp/tobeacptprcplist");
- return "0";
- }
-
- } else if (gubn == 2) {
- if ( messageBox("접수취소를 ","Q002")==6 ) {
-
- // 저장
- submit("TXAEA01402");
-
- // 저장 후 재조회
- if (srchpid != "") {
- fGetExamCurePidPrcpList();
- } else {
- // 대상자 조회
- fGetExamCureAcptList(acptlistflag);
- }
- } else {
- model.resetInstanceNode("/root/send/data/tobeacptcnclprcp/tobeacptcnclprcplist");
- return "0";
- }
- }
-
- model.setValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid", excuroomgrpcdid);
- // 검사실 그룹 변경 시 이벤트
- // 20120118 접수 후 변경되지 않도록 막음 by kya
- // fExcuRoomGrpChoi(excuroomgrpcdid);
-
- // initCalendar();
- // setCellColor(grd_calendar);
- // getRsrvPossTm(grd_calendar);
- }
- //
-
- /* @group : 접수관리(핵의학체내)
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : gubn : 1:예약대기, 2:예약보류, 3:취소
- */
- function fExeRsrvWait(gubn) {
- // 선택 여부
- var check = "";
-
- var execprcpstatcd = ""; // 처방상태코드 구분
- var prcpgenrflag = ""; // 외래입원응급실 구분
- var prcpnm = ""; // 처방명
- var inflag = ""; // 재원중 여부
- var rcptacptyn = ""; // 수납 여부
- var portprcpflag = ""; // 포터블처방여부
- var execbaseflag = ""; // 실시기준여부 (A:접수 , E:실시)
- var doflag = false;
- if ( gubn == 1 || gubn == 2 ) {
-
- var loop = grd_subordlist1.rows - grd_subordlist1.fixedRows;
-
- for ( var i = 1 ; i <= loop ; i++ ) {
- check = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/check");
- execprcpstatcd = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/execprcpstatcd");
- prcpgenrflag = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/prcpgenrflag");
- prcpnm = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/prcpnm");
- inflag = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/inflag");
- rcptacptyn = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/rcptacptyn");
- portprcpflag = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/portprcpflag");
- // 선처치여부
- precureprcpflag = model.getValue("/root/main/subordlist/subordlist1[" + i + "]/precureprcpflag");
- /*
- * 20070520, 처방,간호확인만 된것은 미수납이기에 접수불가함, 단, 미수납접수여부가 허용일경우는 체크한다.
- */
- if ( execprcpstatcd == "000" || execprcpstatcd == "100" ) {
- if ( prcpgenrflag == "O" ) {
- if ( rcptacptyn != "Y" ) { // 미수납접수여부 허용
- if ( precureprcpflag == "Y" ) { // 선처치일 경우 접수 허용
- messageBox(prcpnm + "은 선치치 처방입니다.","I999");
- } else {
- if ( gubn == 1 ) {
- messageBox(prcpnm + "은 미수납된 처방이므로 예약 대기 할 수 없습니다.","I999");
- } else {
- messageBox(prcpnm + "은 미수납된 처방이므로 예약 보류 할 수 없습니다.","I999");
- }
- return "0";
- }
- }
- }
- }
- }
- }
- // 데이터 변환 csv
- var nodeList = instance1.selectNodes("/root/main/subordlist/subordlist1[check='Y']");
- var rCSV = getNodeListCSV(nodeList);
- if ( rCSV == null ) {
- messageBox("처방내역을 선택해 주십시오.","I999");
- return "0";
- }
- model.setValue("/root/send/data/tobeacptprcp/tobeacptprcplist", rCSV);
- var srchpid = model.getValue("/root/send/data/srchpid");
- var acptlistflag = model.getValue("/root/send/data/acptlistflag");
-
- var pid = "";
- var calcscorcd = "";
-
- if ( btn_case3.selected == true ) {
- calcscorcd = model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist2.row+"]/calcscorcd");
- } else {
- pid = model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/pid");
- }
-
- model.makeValue("/root/send/temp/pid",pid);
- model.makeValue("/root/send/temp/calcscorcd",calcscorcd);
-
- if (gubn == 1) {
- if ( messageBox("예약대기 ","Q002")==6 ) {
- submit("TXAEA01405");
-
- if (srchpid == "") {
- // 대상자 조회
- fGetExamCureAcptList(acptlistflag);
- } else {
- fGetExamCurePidPrcpList();
- }
- } else {
- model.resetInstanceNode("/root/send/data/tobeacptprcp/tobeacptprcplist");
- return "0";
- }
-
- } else if (gubn == 2) {
- if ( messageBox("예약보류 ","Q002")==6 ) {
- submit("TXAEA01406");
-
- if (srchpid == "") {
- // 대상자 조회
- fGetExamCureAcptList(acptlistflag);
- } else {
- fGetExamCurePidPrcpList();
- }
- } else {
- model.resetInstanceNode("/root/send/data/tobeacptprcp/tobeacptprcplist");
- return "0";
- }
-
- } else if (gubn == 3) {
- if ( messageBox("대기/보류 취소를 ","Q002")==6 ) {
- submit("TXAEA01407");
-
- if (srchpid == "") {
- // 대상자 조회
- fGetExamCureAcptList(acptlistflag);
- } else {
- fGetExamCurePidPrcpList();
- }
- } else {
- model.resetInstanceNode("/root/send/data/tobeacptprcp/tobeacptprcplist");
- return "0";
- }
- }
-
- initCalendar();
- setCellColor(grd_calendar);
- getRsrvPossTm(grd_calendar);
- }
-
- /* @group :
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc :
- */
- function fPatidInfo() {
-
- var child = getChildWindow("SMMMO02500");
- if (child != null ) {
- var pid = model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/pid");
-
- if (pid == "") {
- pid = model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/pid");
- }
-
- child.model.makeValue("/root/main/patinfolist/pid" , pid);
- setParameter ( "SMMMO02500_cond" ,pid);
- child.javascript.fReqGetPatComnInfo("/root/send/reqdata", 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 {
- open("SMMMO02500", "","","", "SMMMO02500", "", "/root/init/srchcond2");
- }
-
-
- // var ioflag = model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/prcpgenrflag");
- // var prcpdd = model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/prcpdd");
- // var execprcpuniqno = model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/execprcpuniqno");
- //
- // var pat_info = "S▦"+ prcpdd +"▦"+ execprcpuniqno +"▦"+ getUserInfo("dutplceinstcd");
- // setParameter("condparam", pat_info);
- //
- // modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- //
- // var pid = model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/pid");
- // var child = getChildWindow("SMMMO02500");
- // if (child != null ) {
- // child.model.setValue("/root/init/srchcond2" , pid);
- // setParameter ( "SMMMO02500_cond" , pid);
- // child.btn_bfprcpsrch.dispatch("DOMActivate");
- // if (child.grd_patchosinfo.rows > 0) {
- // child.grd_patchosinfo.row = 1;
- // }
- // child.javascript.fPatChosInfo();
- // } else {
- // setParameter ( "SMMMO02500_cond" , pid);
- // open("SMMMO02500", "","","", "SMMMO02500", "", "/root/init/srchcond2");
- // }
- }
- //2009-07-29 '전화번호/주소 조회 및 수정 창' 팝업창을 호출!!!
- function fTelnoMdy() {
-
- var pid = model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/pid");
- var hngnm = model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/patnm");
- if (hngnm == null && hngnm == "" && hngnm == " " && hngnm == "-"){
- return false;
- }
- //setParameter("opener_parameter_id", pid);
- model.removeNodeset("/root/temp/source");
- model.makeValue("/root/temp/source/srchcond", "1");
- model.makeValue("/root/temp/source/pid", pid);
- modal("SPPMO01400", "1", "100", "100", "SPPMO01400", "/root/temp/source", "/root/source");
-
- model.removeNodeset("/root/temp/source");
- model.refresh();
- }
-
- /* @group :
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc :
- */
- function fRsrvInfo() {
- if ( btn_case1.selected == true || btn_case2.selected == true ) {
- // 개인별예약조회
- open("SMAEA00300", "", "", "", "SMAEA00300","/root/main/ordlist1/mainordlist1["+grd_subordlist1.mouseRow+"]/pid","/root/send/srchpid");
- } else if ( btn_case3.selected == true ) {
- open("SMAEA00300", "", "", "", "SMAEA00300","/root/main/ordlist2/mainordlist2["+grd_subordlist1.mouseRow+"]/pid","/root/send/srchpid");
- }
- }
- /* @group :
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc :
- */
- function fDispBlood() {
- open( "SMLLC00300",100,10,"SMLLC00300","","");
- }
- /* @group :
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc :
- */
- function fPrcspresCond() {
- if ( btn_case1.selected == true || btn_case2.selected == true ) {
- // 개인별예약조회
- open("SMAEA00500", "", "", "", "SMAEA00500","/root/main/ordlist1/mainordlist1["+grd_subordlist1.mouseRow+"]/pid","/root/send/srchpid");
- } else if ( btn_case3.selected == true ) {
- open("SMAEA00500", "", "", "", "SMAEA00500","/root/main/ordlist2/mainordlist2["+grd_subordlist1.mouseRow+"]/pid","/root/send/srchpid");
- }
- }
- /* @group :
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 문진표 관리
- */
- function fInqrTableMngt() {
-
- var row = grd_subordlist1.row;
-
- if (row > 0) {
-
- var basesuppdeptcd = model.getValue("/root/main/subordlist/subordlist1[" + row + "]/basesuppdeptcd");
- if ( basesuppdeptcd != "B6" ) {
- model.makeValue("/root/hidden/popup/inqrtableinfo/srchpid", model.getValue("/root/main/subordlist/subordlist1[" + row + "]/pid"));
- model.makeValue("/root/hidden/popup/inqrtableinfo/prcpdd", model.getValue("/root/main/subordlist/subordlist1[" + row + "]/prcpdd"));
- model.makeValue("/root/hidden/popup/inqrtableinfo/execprcpuniqno", model.getValue("/root/main/subordlist/subordlist1[" + row + "]/execprcpuniqno"));
- model.makeValue("/root/hidden/popup/inqrtableinfo/glycosyn", model.getValue("/root/main/subordlist/subordlist1[" + row + "]/glycosyn"));
- model.makeValue("/root/hidden/popup/inqrtableinfo/glycoscure", model.getValue("/root/main/subordlist/subordlist1[" + row + "]/glycoscure"));
-
- modal("SMAEA03800", "200", "200", "", "SMAEA03800","/root/hidden/popup/inqrtableinfo","/root/send/inqrtableinfo");
- } else {
- messageBox("검체 검사에 대해서는 환자 병력 기록을 등록", "E001");
- return;
- }
- }
- }
- /* @group : 접수관리(핵체내)
- * @ver : 2007.03.21
- * @by : 장준원
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 이송요원호출을 위한 선택 Function
- */
- function fTranEmpCall() {
-
- // status : "RD"
- // pid : 등록번호
- // prcpnm : 처방명
- // kind : 종류(1:검사, 2:전동, 3:수술, 4:입원, 5:기타)
- // rsrvdt : 예약일시
- // arvposcd : 도착 부서코드
- // startposcd : 출발 부서코드
-
- var pid = model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/pid");
- var prcpnm = model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/prcpnm");
- var kind = "1";
- var rsrvdt = getCurrentTime().substr(0,4) ;
- var startposcd = model.getValue("/root/send/globalinstance/instance1");
- var arvposcd = "";
- var calldeptflag = "Q";
-
- if ( pid != "" ) {
- fInsTranCallRD(pid, prcpnm, kind, rsrvdt, calldeptflag, arvposcd, startposcd);
- }
- }
-
-
-
- /* @group : 접수관리(핵체내)
- * @ver : 2007.03.21
- * @by : 장준원
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 부서별 기록관리
- */
- function fDeptCaseRecMngt() {
- open("SPMMR05400", "", "", "", "SPMMR05400","","");
- }
-
- /* @group :
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc :
- */
- function fPseuRsrvInfo() {
- model.makeValue("/root/hidden/pseursrvinfo/seq", model.getValue("/root/hidden/popupmenu/seq"));
- model.makeValue("/root/hidden/pseursrvinfo/suppdeptcd", model.getValue("/root/send/data/suppdeptcd"));
- model.makeValue("/root/hidden/pseursrvinfo/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/hidden/pseursrvinfo/rsrvdd", model.getValue("/root/send/data/rsrvdd"));
- setParameter("excuroomgrp", model.getValue("/root/send/data/excuroomgrp"));
- setParameter("excucd", model.getValue("/root/send/data/excucd"));
-
- modal("SPAEA02201", "", "200", "200", "popup", "/root/hidden/pseursrvinfo", "/root/init/pseursrvinfo");
- }
- /* @group : 임시예약 완료
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc :
- */
- function fPseuRsrvEnd() {
- model.setValue("/root/send/data5/seq", model.getValue("/root/hidden/popupmenu/seq"));
- model.setValue("/root/send/data5/srchrsrvtm", model.getValue("/root/hidden/popupmenu/srchrsrvtm"));
- model.setValue("/root/send/data5/rsrvtm", model.getValue("/root/hidden/popupmenu/srchrsrvtm"));
- model.setValue("/root/send/data5/suppdeptcd", model.getValue("/root/send/data/suppdeptcd"));
- model.setValue("/root/send/data5/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/data5/oldrsrvdd", model.getValue("/root/send/data/rsrvdd"));
- model.setValue("/root/send/data5/rsrvdd", model.getValue("/root/send/data/rsrvdd"));
-
- if (submit("TXAEA01409")) {
- initCalendar();
- getRsrvPossTm(grd_calendar);
- }
- }
- /* @group :
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc :
- */
- function fNuclInput() {
- var row = grd_subordlist1.row;
- var ivinputyn = grd_subordlist1.valueMatrix(row, grd_subordlist1.colRef("ivinputyn"));
- var execprcpstatcd = grd_subordlist1.valueMatrix(row, grd_subordlist1.colRef("execprcpstatcd"));
- var prcpnm = grd_subordlist1.valueMatrix(row, grd_subordlist1.colRef("prcpnm"));
- if ( execprcpstatcd == "450" ) {
- messageBox(prcpnm + "은 Hold된 처방이므로 동위원소 투여입력을 할 수 없습니다.","I999");
- return;
- }
-
- if ( ivinputyn == "N" || ivinputyn == "Y") {
-
- var pid = grd_subordlist1.valueMatrix(row, grd_subordlist1.colRef("pid"));
- var srchdate1 = model.getValue("/root/send/data/srchdate1");
- var srchdate2 = model.getValue("/root/send/data/srchdate2");
- var excuroom = model.getValue("/root/send/data/cmb_info/initexecroom/excuroomcdid");
- var windowid = "SMAEA01400";
-
- model.makeValue("/root/send/windowloadinstance/srchpid", pid);
- model.makeValue("/root/send/windowloadinstance/srchdate1", srchdate1);
- model.makeValue("/root/send/windowloadinstance/srchdate2", srchdate2);
- model.makeValue("/root/send/windowloadinstance/excuroom", excuroom);
- model.makeValue("/root/send/windowloadinstance/windowid", windowid);
-
- model.refresh();
-
- //window.load( "SMAEA02300_IV입력관리.xrw","modal","code", "left:100px; top:150px; width:530px; height:380px;min:hidden;max:hidden;resize:false;" );
- open("SMAEA02300", "","","", "SMAEA02300", "/root/send/windowloadinstance","/root/init/windowloadinstance");
- model.resetInstanceNode("/root/send/windowloadinstance");
- model.refresh();
- }
- }
- /* @group :
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc :
- */
- function fRsrvTrans() {
-
- var row = grd_mainordlist1.row;
- var pid = grd_mainordlist1.valueMatrix(row, grd_mainordlist1.colRef("pid"));
-
- if ( pid == "" ) {
- row = grd_subordlist1.row;
- pid = grd_subordlist1.valueMatrix(row, grd_subordlist1.colRef("pid"));
- }
-
- if ( pid == "" ) {
- messageBox("대상자조회나 처방내역 조회 후 [선택!!]을 해야 예약관리화면으로 이동 가능합니다.(연동화면)","I999");
- return;
- }
-
- var windowid = "SMAEA01400";
- model.makeValue("/root/send/windowloadinstance/srchpid",pid);
- model.makeValue("/root/send/windowloadinstance/windowid",windowid);
- model.makeValue("/root/send/windowloadinstance/srchexcuroomcdid",
- model.getValue("/root/send/data/cmb_info/initexecroom/excuroomcdid"));
- model.makeValue("/root/send/windowloadinstance/srchdate1",model.getValue("/root/send/data/srchdate1"));
- model.makeValue("/root/send/windowloadinstance/srchdate2",model.getValue("/root/send/data/srchdate2"));
- model.makeValue("/root/send/windowloadinstance/srchexcuroomcdid",model.getValue("/root/send/data/cmb_info/initexecroom/excuroomcdid"));
- model.refresh();
-
- open("SMAEA02200", "","","", "SMAEA02200", "/root/send/windowloadinstance","/root/init/windowloadinstance");
- model.resetInstanceNode("/root/send/windowloadinstance");
- model.refresh();
-
- //model.setValue("/root/send/data/srchrsrvpid", pid);
- //modal( "SMAEA02200","0",100,100,"SMAEA02200", "/root/send/data/srchrsrvpid", "/root/send/data/srchpid");
- //modal("SMAEA02200", "", "200", "200", "SMAEA02200","","");
- //window.load( "SMAEA02200_예약관리(핵체내).xrw","modal","code", "left:100px; top:150px; width:1220px; height:850px;min:hidden;max:hidden;resize:false;" );
- }
- /* @group :
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : TOP 정보 보여주기
- */
- function fTopInfo(){
-
- //TOP 정보 보여주기
- schk = "N";
-
- var pid = model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/pid");
- var prcpgenrflag = model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/prcpgenrflag");
- var dschdd = model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/dschdd");
- var srchdd = "";
-
- if ( prcpgenrflag =="O" ) {
- var pat_info = prcpgenrflag
- + "▦"+ pid
- + "▦"+ model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/orddd")
- + "▦"+ model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/cretno")
- + "▦"+ getUserInfo("dutplceinstcd")
- + "▦1▦"+model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/orddd");
- schk = "Y";
- } else if ( prcpgenrflag =="I" || prcpgenrflag =="D" || prcpgenrflag =="E" ) {
-
- if (dschdd == "" || dschdd == "99991231") {
- srchdd = getCurrentDate();
- } else {
- srchdd = dschdd;
- }
- var pat_info = prcpgenrflag
- + "▦"+ pid
- + "▦"+ model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/orddd")
- + "▦"+ model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/cretno")
- + "▦"+ getUserInfo("dutplceinstcd")
- + "▦"+ srchdd;
- schk = "Y";
- } else if ( prcpgenrflag =="S" || prcpgenrflag =="-" ) {
- var pat_info = prcpgenrflag
- + "▦"+ model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/prcpdd")
- + "▦"+ model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/execprcpuniqno")
- + "▦"+ getUserInfo("dutplceinstcd");
- schk = "Y";
- }
-
- if (schk == "Y"){
- setParameter("condparam", pat_info);
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- }
-
- // Open 되어 있는 프로그램에서 선택 환자 변경 시 재조회
- fOpenPrgmReRef(pid);
-
- }
- // 처방으로 조회 한 경우 Top 정보 보여주기
- function fTopInfo2(){
-
- //TOP 정보 보여주기
- schk = "N";
-
- var pid = model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/pid");
- var prcpgenrflag = model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/prcpgenrflag");
- var dschdd = model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/dschdd");
- var srchdd = "";
-
- if ( prcpgenrflag =="O" ) {
- var pat_info = prcpgenrflag
- + "▦"+pid
- +"▦"+model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/orddd")
- +"▦"+model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/cretno")
- +"▦"+getUserInfo("dutplceinstcd")
- +"▦1▦"+model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/orddd");
- schk = "Y";
- } else if ( prcpgenrflag =="I" || prcpgenrflag =="D" || prcpgenrflag =="E" ) {
-
- if (dschdd == "" || dschdd == "99991231") {
- srchdd = getCurrentDate();
- } else {
- srchdd = dschdd;
- }
- var pat_info = prcpgenrflag
- + "▦"+ pid
- +"▦"+ model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/orddd")
- +"▦"+ model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/cretno")
- +"▦"+ getUserInfo("dutplceinstcd")
- +"▦"+ srchdd;
- schk = "Y";
- } else if ( prcpgenrflag =="S" || prcpgenrflag =="-" ) {
- var pat_info = prcpgenrflag
- + "▦"+ model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/prcpdd")
- +"▦"+model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/execprcpuniqno")
- +"▦"+getUserInfo("dutplceinstcd");
- schk = "Y";
- }
-
- if (schk == "Y"){
- setParameter("condparam", pat_info);
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- }
-
- // Open 되어 있는 프로그램에서 선택 환자 변경 시 재조회
- fOpenPrgmReRef(pid);
- }
- /* @group :
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : Open 되어 있는 프로그램에서 선택 환자 변경 시 재조회
- */
- function fOpenPrgmReRef(pid) {
- // 1. 예약조회
- var curRsrvRefObj = getOpenWindow("SMAEA00300"); //활성화된 검사결과 화면 object loading
- if(curRsrvRefObj != null){
- curRsrvRefObj.model.setvalue("/root/send/srchpid", pid );
- curRsrvRefObj.javascript.btn_sea.dispatch("DOMActivate");
- }
-
- // 2. 환자정보조회
- var curPatInfoRefObj = getOpenWindow("SMMMO02500"); //활성화된 검사결과 화면 object loading
- if(curPatInfoRefObj != null){
- fPatidInfo();
- }
-
- // 3. 환자진행조회
- var curPatPrcsRefObj = getOpenWindow("SMAEA04000"); //활성화된 검사결과 화면 object loading
- if(curPatPrcsRefObj != null){
- curPatPrcsRefObj.model.setvalue("/root/send/srchpid", pid );
- curPatPrcsRefObj.javascript.btn_sea.dispatch("DOMActivate");
- }
-
- // 4. 환자채혈관리
- var curPatBCollRefObj = getOpenWindow("SMLLC00300"); //활성화된 검사결과 화면 object loading
- if(curPatBCollRefObj != null){
- curPatBCollRefObj.model.setvalue("/root/hidden/JoHoiFlag/regnopatnm", pid );
- curPatBCollRefObj.javascript.iptSearch.dispatch("onbuttonclick");
- }
-
- // 5. 통합결과조회
- var curExamRsltObj = getOpenWindow("SMAER00800"); //활성화된 검사결과 화면 object loading
- if(curExamRsltObj != null){
- curExamRsltObj.model.setvalue("/root/send/data/singdata/srchpid", pid );
- curExamRsltObj.javascript.btn_srch.dispatch("DOMActivate");
- }
-
- // 6. 개인별 처방이력조회
- var curPatPrcpHistRefObj = getOpenWindow("SMAEA00400"); //활성화된 검사결과 화면 object loading
- if(curPatPrcpHistRefObj != null){
- curPatPrcpHistRefObj.model.setvalue("/root/send/pid", pid );
- curPatPrcpHistRefObj.javascript.btn_sea.dispatch("DOMActivate");
- }
- }
-
- /* @group :
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 환자 Commnet 가 없을 경우 입력 row 생성
- */
- function patcmt() {
- // if (grd_patcmtlist.rows > 1) {
- // var irow = grd_patcmtlist.findRow(getCurrentDate(), 1, 1);
- // if (irow < 1) {
- // grd_patcmtlist.insertRow(1, "above");
- // model.makeValue("/root/main/subordlist/rsrvcmtlist[" + 1 + "] /iudgb", "I");
- // }
- // } else {
- // grd_patcmtlist.insertRow(0);
- // model.makeValue("/root/main/subordlist/rsrvcmtlist[" + 1 + "] /iudgb", "I");
- // }
-
-
- var rowCnt = getNodesetCount("/root/main/exculist/patinfolist");
- btn_patcmtsave.disabled = false;
- if (rowCnt > 0) {
- grd_patcmtlist.autoResize = true;
- grd_patcmtlist.refresh();
- } else {
- grd_patcmtlist.insertRow(0);
- model.makeValue("/root/main/subordlist/rsrvcmtlist[" + 1 + "] /iudgb", "I");
- model.makeValue("/root/main/subordlist/rsrvcmtlist[" + 1 + "] /pid", model.getValue("/root/send/patinfo/srchpid"));
- model.makeValue("/root/main/subordlist/rsrvcmtlist[" + 1 + "] /cmtdd", getCurrentDate());
- }
- }
- /* @group :
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc :
- */
- function getRsrvPossTm(gridObj) {
-
- var excuroomgrpcdid = model.getValue("/root/send/data/excuroomgrp");
- var calRow = model.getValue("/root/hidden/grdcellcolor/calrow");
- var calCol = model.getValue("/root/hidden/grdcellcolor/calcol");
- if ( calCol >= 7 ) {
- calCol -= 7;
- }
- var yyyy = model.getValue("/root/hidden/calendar/year");
- var mm = model.getValue("/root/hidden/calendar/month");
- var dd = model.getValue("/root/hidden/calendar/weeklist/list[" + calRow + "]/" + gridObj.colAttribute(calCol, "ref"));
-
- if (getStringLength(dd) == 1) {
- dd = "0" + dd;
- }
-
- model.setValue("/root/send/data/rsrvdd", yyyy + mm + dd);
- model.setValue("/root/send/data/rsrvdate",model.getValue("/root/send/data/rsrvdd"));
- model.makeValue("/root/send/data/grd_info/grid_data/prcpgenrflag", "");
-
- if (submit("TRAEA01416", false)) {
-
- var rowCnt = getNodesetCount("/root/main/rsrvposstmlist/rsrvlist");
- rowCnt = (rowCnt*1) + 1;
-
- // 임시 예약 건이 있을 경우
- var addRowCnt = getNodesetCount("/root/main/rsrvposstmlist/unrsrvlist");
-
- if (addRowCnt > 0) {
-
- addRowCnt = (addRowCnt*1) + 1;
- for (i=1; i<addRowCnt; i++) {
- model.makeValue("/root/main/rsrvposstmlist/rsrvlist["+ rowCnt + "]/rsrvtm", model.getValue("/root/main/rsrvposstmlist/unrsrvlist[" + i + "]/rsrvtm"));
- model.makeValue("/root/main/rsrvposstmlist/rsrvlist["+ rowCnt + "]/pid", model.getValue("/root/main/rsrvposstmlist/unrsrvlist[" + i + "]/pid"));
- model.makeValue("/root/main/rsrvposstmlist/rsrvlist["+ rowCnt + "]/prcpnm", model.getValue("/root/main/rsrvposstmlist/unrsrvlist[" + i + "]/prcpnm"));
- model.makeValue("/root/main/rsrvposstmlist/rsrvlist["+ rowCnt + "]/hngnm", model.getValue("/root/main/rsrvposstmlist/unrsrvlist[" + i + "]/hngnm"));
- model.makeValue("/root/main/rsrvposstmlist/rsrvlist["+ rowCnt + "]/srchrsrvtm", model.getValue("/root/main/rsrvposstmlist/unrsrvlist[" + i + "]/rsrvtm"));
- model.makeValue("/root/main/rsrvposstmlist/rsrvlist["+ rowCnt + "]/rgstdepthngnm", model.getValue("/root/main/rsrvposstmlist/unrsrvlist[" + i + "]/rgstdepthngnm"));
- model.makeValue("/root/main/rsrvposstmlist/rsrvlist["+ rowCnt + "]/prcpcd", model.getValue("/root/main/rsrvposstmlist/unrsrvlist[" + i + "]/prcpcd"));
- model.makeValue("/root/main/rsrvposstmlist/rsrvlist["+ rowCnt + "]/seq", model.getValue("/root/main/rsrvposstmlist/unrsrvlist[" + i + "]/seq"));
- model.makeValue("/root/main/rsrvposstmlist/rsrvlist["+ rowCnt + "]/wardcd", model.getValue("/root/main/rsrvposstmlist/unrsrvlist[" + i + "]/wardcd"));
- model.makeValue("/root/main/rsrvposstmlist/rsrvlist["+ rowCnt + "]/glycosyn", model.getValue("/root/main/rsrvposstmlist/unrsrvlist[" + i + "]/glycosyn"));
- model.makeValue("/root/main/rsrvposstmlist/rsrvlist["+ rowCnt + "]/execprcpstatcd", model.getValue("/root/main/rsrvposstmlist/unrsrvlist[" + i + "]/execprcpstatcd"));
- model.makeValue("/root/main/rsrvposstmlist/rsrvlist["+ rowCnt + "]/curecnfmyn", model.getValue("/root/main/rsrvposstmlist/unrsrvlist[" + i + "]/curecnfmyn"));
- model.makeValue("/root/main/rsrvposstmlist/rsrvlist["+ rowCnt + "]/drugqty", model.getValue("/root/main/rsrvposstmlist/unrsrvlist[" + i + "]/drugqty"));
- rowCnt++;
- }
- }
-
- var rsrvlistamCnt = getNodesetCount("/root/main/rsrvposstmlist/rsrvlist[rsrvtm<1200]");
- var rsrvlistpmCnt = getNodesetCount("/root/main/rsrvposstmlist/rsrvlist[rsrvtm>1159]");
- if (rsrvlistamCnt >0) {
- grd_rsrvlistam.attribute("nodeset") = "/root/main/rsrvposstmlist/rsrvlist[rsrvtm<1200]" ;
- grd_rsrvlistam.rebuild();
- grd_rsrvlistam.colSort(grd_rsrvlistam.colRef("srchrsrvtm")) = "asc";
- grd_rsrvlistam.colSort(grd_rsrvlistam.colRef("prcpnm")) = "asc";
- grd_rsrvlistam.sort(1, grd_rsrvlistam.colRef("srchrsrvtm"), grd_rsrvlistam.rows-1, grd_rsrvlistam.cols-1) = "usersort";
-
- // grd_rsrvlistam.attribute("nodeset") = "/root/main/rsrvposstmlist/rsrvlist[rsrvtm<1200]" ;
- // grd_rsrvlistam.sort(1, grd_rsrvlistam.colRef("srchrsrvtm"), grd_rsrvlistam.rows, grd_rsrvlistam.colRef("srchrsrvtm")) = "desc";
- // grd_rsrvlistam.rebuild();
- // grd_rsrvlistpm.colSort(grd_rsrvlistpm.colRef("srchrsrvtm")) = "asc";
- // grd_rsrvlistpm.sort(1, grd_rsrvlistpm.colRef("srchrsrvtm"), grd_rsrvlistpm.rows-1, grd_rsrvlistpm.cols-1) = "usersort";
- }
-
- if (rsrvlistpmCnt >0) {
- grd_rsrvlistpm.attribute("nodeset") = "/root/main/rsrvposstmlist/rsrvlist[rsrvtm>1159]" ;
- grd_rsrvlistpm.rebuild();
- grd_rsrvlistpm.colSort(grd_rsrvlistpm.colRef("srchrsrvtm")) = "asc";
- grd_rsrvlistpm.colSort(grd_rsrvlistpm.colRef("prcpnm")) = "asc";
- grd_rsrvlistpm.sort(1, grd_rsrvlistpm.colRef("srchrsrvtm"), grd_rsrvlistpm.rows-1, grd_rsrvlistpm.cols-1) = "usersort";
- }
-
- var execprcpstatcd = "";
-
- // 그리드 색상 초기화
- grd_rsrvlistam.rowstyle(0, "data" , "border-width" ) = "1";
- grd_rsrvlistam.cellStyle("border-left-color", 0 , grd_rsrvlistam.colRef("srchrsrvtm")) = "#B0B0B0";
- grd_rsrvlistam.rowstyle(0, "data" , "border-top-color" ) = "#B0B0B0";
- grd_rsrvlistam.rowstyle(0, "data" , "border-bottom-color" ) = "#B0B0B0";
-
- for ( var i = 1; i <= grd_rsrvlistam.rows; i++ ) {
- grd_rsrvlistam.rowstyle( i , "data" , "background-color" ) = "#FFFFFF";
- grd_rsrvlistam.rowstyle( i , "data" , "color" ) = "#000000";
-
- grd_rsrvlistam.rowstyle(i, "data" , "border-width" ) = "1";
- grd_rsrvlistam.cellStyle("border-width", i , grd_rsrvlistam.colRef("srchrsrvtm")) = "1";
-
- grd_rsrvlistam.cellStyle("border-left-color", i , grd_rsrvlistam.colRef("srchrsrvtm")) = "#B0B0B0";
- grd_rsrvlistam.rowstyle(i, "data" , "border-top-color" ) = "#B0B0B0";
- grd_rsrvlistam.rowstyle(i, "data" , "border-bottom-color" ) = "#B0B0B0";
-
- glycosyn = grd_rsrvlistam.valueMatrix(i, grd_rsrvlistam.colRef("glycosyn"));
- execprcpstatcd = grd_rsrvlistam.valueMatrix(i, grd_rsrvlistam.colRef("execprcpstatcd"));
-
- if ( glycosyn == "-" ) {
- // grd_rsrvlistam.cellStyle("background-color", i, grd_rsrvlistam.colRef("srchrsrvtm"), i, grd_rsrvlistam.colRef("srchrsrvtm")) = "#FFFFCC";
- grd_rsrvlistam.rowstyle( i , "data" , "background-color" ) = "#FFFFCC";
- } else if ( glycosyn == "L" ) {
- grd_rsrvlistam.rowstyle( i , "data" , "background-color" ) = "#FFE4C4";
- } else if ( glycosyn == "X" ) {
- grd_rsrvlistam.rowstyle( i , "data" , "background-color" ) = "#CCFFCC";
- }
- if (execprcpstatcd == "440" || execprcpstatcd == "600") {
- //grd_rsrvlistam.cellStyle("background-color", i, grd_rsrvlistam.colRef("srchrsrvtm"), i, grd_rsrvlistam.colRef("srchrsrvtm")) = "#DDDDDD";
- grd_rsrvlistam.rowstyle( i , "data" , "background-color" ) = "#DDDDDD";
- } else if (execprcpstatcd == "610" || execprcpstatcd == "710" || execprcpstatcd == "730" || execprcpstatcd == "740") {
- grd_rsrvlistam.rowstyle( i , "data" , "background-color" ) = "#FAEBD7";
- }
- }
-
- // 그리드 색상 초기화
- grd_rsrvlistpm.rowstyle(0, "data" , "border-width" ) = "1";
- grd_rsrvlistpm.cellStyle("border-left-color", 0 , grd_rsrvlistpm.colRef("srchrsrvtm")) = "#B0B0B0";
- grd_rsrvlistpm.rowstyle(0, "data" , "border-top-color" ) = "#B0B0B0";
- grd_rsrvlistpm.rowstyle(0, "data" , "border-bottom-color" ) = "#B0B0B0";
-
- for ( var i = 1; i <= grd_rsrvlistpm.rows; i++ ) {
- grd_rsrvlistpm.rowstyle( i , "data" , "background-color" ) = "#FFFFFF";
- grd_rsrvlistpm.rowstyle( i , "data" , "color" ) = "#000000";
-
- grd_rsrvlistpm.rowstyle(i, "data" , "border-width" ) = "1";
- grd_rsrvlistpm.cellStyle("border-width", i , grd_rsrvlistpm.colRef("srchrsrvtm")) = "1";
-
- grd_rsrvlistpm.cellStyle("border-left-color", i , grd_rsrvlistpm.colRef("srchrsrvtm")) = "#B0B0B0";
- grd_rsrvlistpm.rowstyle(i, "data" , "border-top-color" ) = "#B0B0B0";
- grd_rsrvlistpm.rowstyle(i, "data" , "border-bottom-color" ) = "#B0B0B0";
-
- glycosyn = grd_rsrvlistpm.valueMatrix(i, grd_rsrvlistpm.colRef("glycosyn"));
- execprcpstatcd = grd_rsrvlistpm.valueMatrix(i, grd_rsrvlistpm.colRef("execprcpstatcd"));
- if ( glycosyn == "-" ) {
- //grd_rsrvlistpm.cellStyle("background-color", i, grd_rsrvlistpm.colRef("srchrsrvtm"), i, grd_rsrvlistpm.colRef("srchrsrvtm")) = "#FFFFCC";
- grd_rsrvlistpm.rowstyle( i , "data" , "background-color" ) = "#FFFFCC";
- } else if ( glycosyn == "L" ) {
- grd_rsrvlistpm.rowstyle( i , "data" , "background-color" ) = "#FFE4C4";
- } else if ( glycosyn == "X" ) {
- grd_rsrvlistpm.rowstyle( i , "data" , "background-color" ) = "#CCFFCC";
- }
-
- if (execprcpstatcd == "440" || execprcpstatcd == "600") {
- grd_rsrvlistpm.rowstyle( i , "data" , "background-color" ) = "#DDDDDD";
- // grd_rsrvlistpm.rowstyle( i , "data" , "background-color" ) = "#FFFFFF";
- // grd_rsrvlistpm.cellStyle("background-color", i, grd_rsrvlistpm.colRef("srchrsrvtm"), i, grd_rsrvlistpm.colRef("srchrsrvtm")) = "#DDDDDD";
- } else if (execprcpstatcd == "610" || execprcpstatcd == "710" || execprcpstatcd == "730" || execprcpstatcd == "740") {
- grd_rsrvlistpm.rowstyle( i , "data" , "background-color" ) = "#FAEBD7";
- }
- }
- }
-
- if (excuroomgrpcdid == "치료,투약실") {
- grd_rsrvlistam.colHidden(grd_rsrvlistam.colRef("curecnfmyn")) = false;
- grd_rsrvlistam.colHidden(grd_rsrvlistam.colRef("drugqty")) = false;
- grd_rsrvlistam.colHidden(grd_rsrvlistam.colRef("exampos")) = true;
- grd_rsrvlistpm.colHidden(grd_rsrvlistpm.colRef("curecnfmyn")) = false;
- grd_rsrvlistpm.colHidden(grd_rsrvlistpm.colRef("drugqty")) = false;
- grd_rsrvlistpm.colHidden(grd_rsrvlistpm.colRef("exampos")) = true;
-
- grd_rsrvlistam.colWidth(grd_rsrvlistam.colRef("prcpnm")) = 190;
- grd_rsrvlistpm.colWidth(grd_rsrvlistpm.colRef("prcpnm")) = 190;
-
- } else if (excuroomgrpcdid == "PET-CT실") {
-
- var examposuseyn = model.getValue("/root/send/examposuseyn");
-
- if (examposuseyn == "Y") {
- grd_rsrvlistam.colHidden(grd_rsrvlistam.colRef("curecnfmyn")) = true;
- grd_rsrvlistam.colHidden(grd_rsrvlistam.colRef("drugqty")) = true;
- grd_rsrvlistam.colHidden(grd_rsrvlistam.colRef("exampos")) = false;
-
- grd_rsrvlistpm.colHidden(grd_rsrvlistpm.colRef("curecnfmyn")) = true;
- grd_rsrvlistpm.colHidden(grd_rsrvlistpm.colRef("drugqty")) = true;
- grd_rsrvlistpm.colHidden(grd_rsrvlistpm.colRef("exampos")) = false;
- grd_rsrvlistam.colWidth(grd_rsrvlistam.colRef("prcpnm")) = 224;
- grd_rsrvlistpm.colWidth(grd_rsrvlistpm.colRef("prcpnm")) = 224;
-
- } else {
- grd_rsrvlistam.colHidden(grd_rsrvlistam.colRef("curecnfmyn")) = true;
- grd_rsrvlistam.colHidden(grd_rsrvlistam.colRef("drugqty")) = true;
- grd_rsrvlistam.colHidden(grd_rsrvlistam.colRef("exampos")) = true;
-
- grd_rsrvlistpm.colHidden(grd_rsrvlistpm.colRef("curecnfmyn")) = true;
- grd_rsrvlistpm.colHidden(grd_rsrvlistpm.colRef("drugqty")) = true;
- grd_rsrvlistpm.colHidden(grd_rsrvlistpm.colRef("exampos")) = true;
-
- grd_rsrvlistam.colWidth(grd_rsrvlistam.colRef("prcpnm")) = 274;
- grd_rsrvlistpm.colWidth(grd_rsrvlistpm.colRef("prcpnm")) = 274;
- }
-
- } else {
- grd_rsrvlistam.colHidden(grd_rsrvlistam.colRef("curecnfmyn")) = true;
- grd_rsrvlistam.colHidden(grd_rsrvlistam.colRef("drugqty")) = false;
- grd_rsrvlistam.colHidden(grd_rsrvlistam.colRef("exampos")) = true;
-
- grd_rsrvlistpm.colHidden(grd_rsrvlistpm.colRef("curecnfmyn")) = true;
- grd_rsrvlistpm.colHidden(grd_rsrvlistpm.colRef("drugqty")) = false;
- grd_rsrvlistpm.colHidden(grd_rsrvlistpm.colRef("exampos")) = true;
-
- grd_rsrvlistam.colWidth(grd_rsrvlistam.colRef("prcpnm")) = 274;
- grd_rsrvlistpm.colWidth(grd_rsrvlistpm.colRef("prcpnm")) = 274;
- }
-
- model.refresh();
- }
-
- /* @group : 통합예약
- * @ver : 2007.07.03
- * @by : 임혜정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 예약, 취소 버튼의 click 이벤트 처리
- */
- function exeRsrvTransaction(str) {
- var sColSep = "▦";
- var sRowSep = "▩";
- var rCSV = "";
-
- // PACS연동하기 위해 추가함. 20071017,장준원
- rCSV += "pid" + sColSep + "excuroomgrpcd"
- + sColSep + "excuroomcd"
- + sColSep + "prcpdd"
- + sColSep + "execprcpuniqno"
- + sColSep + "rsrvflag"
- + sColSep + "rsrvdt"
- + sColSep + "srchrsrvtm"
- + sColSep + "prcpkindcd"
- + sColSep + "excupartcd"
- + sColSep + "indd"
- + sColSep + "actorddd"
- + sColSep + "orddeptcd"
- + sColSep + "orddrid"
- + sColSep + "calcscorcd"
- + sColSep + "execrid"
- + sColSep + "rsrvrem"
- + sColSep + "suppdeptcd"
- + sColSep + "cnclresncd"
- + sColSep + "pacsnocretyn"
- + sColSep + "rgsttm"
- + sColSep + "rgstrid"
- + sColSep + "prcpdelivefact"
- + sColSep + "orddepthngnm"
- + sColSep + "prcpnm"
- + sColSep + "orddd"
- + sColSep + "rgstdepthngnm"
- + sColSep + "examroomnm"
- + sColSep + "rsrvpsnnocntlyn"
- + sColSep + "cnclresncd"
- + sColSep + "cnclflag"
- + sColSep + "glycosyn"
- + sColSep + "glycoscure"
- + sColSep + "reqhospcd"
- + sColSep + "prcpexecdeptcd"
- + sColSep + "rsrvflagyn"
- + sColSep + "bf_srchrsrvtm"
- + sColSep + "rsrvseq"
- + sColSep + "examgoal"
- + sRowSep;
- // 교육 DB 변경 후 적용 내용
- // 예약 시 체크 항목 조회
- submit("TRAEA01420");
-
- var excucd = model.getValue("/root/hidden/result/item/excucd");
- var calcscorcd = "";
- var examgoal = "";
-
- // 헤더인 excuroomcd를 앞에 붙여줘서 보냄.
- var k = 0;
- var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
- for (var i = 0;i < grd_subordlist1.rows;i++) {
- if (model.getValue("/root/main/subordlist/subordlist1["+i+"]/check")=="Y") {
- var examgoal = "";
-
- // 교육 DB 변경 후 적용 내용
- if (str == "rsrv") {
- calcscorcd = model.getValue("/root/main/subordlist/subordlist1["+ i +"]/calcscorcd");
- if (excucd == calcscorcd) {
- model.makeValue("/root/hidden/popup/rsrvaddinfo/examgoal", model.getValue("/root/main/subordlist/subordlist1["+ i +"]/examgoal"));
- model.makeValue("/root/hidden/popup/rsrvaddinfo/rownum", i);
- modal("SPAEA05300", "", "200", "200", "SPAEA05300","/root/hidden/popup/rsrvaddinfo","/root/hidden");
- examgoal = model.getValue("/root/main/subordlist/subordlist1["+ i +"]/examgoal");
- if (examgoal == "") {
- model.setValue("/root/hidden/chkprint","Y");
- messageBox("추가 정보는","I003");
- return;
- }
- }
- }
-
- var excuroomcd = model.getValue("/root/send/data/tclscd");
- //alert(model.getValue("/root/send/data/tclscd"));
- model.setValue("/root/send/data4/pid",model.getValue("/root/main/subordlist/subordlist1["+ i +"]/pid"));
- if(excuroomcd == "" ){
- model.setValue("/root/send/data4/excuroomcd",model.getValue("/root/main/subordlist/subordlist1["+ i +"]/excuroomcd"));
- }else {
- model.setValue("/root/send/data4/excuroomcd",model.getValue("/root/send/data/tclscd"));
- }
-
- model.setValue("/root/send/data4/suppdeptcd",model.getValue("/root/main/subordlist/subordlist1["+ i +"]/suppdeptcd"));
- model.setValue("/root/send/data4/rsrvdt",model.getValue("/root/main/subordlist/subordlist1["+ i +"]/rsrvdt"));
- rCSV += model.getValue("/root/main/subordlist/subordlist1["+ i +"]/pid")
- + sColSep + excuroomgrpcdid
- //+ sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/excuroomcd")
- + sColSep + excuroomcd
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/prcpdd")
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/execprcpuniqno")
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/prcpgenrflag")
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/rsrvdt")
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/srchrsrvtm")
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/prcpkindcd")
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/excupartcd")
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/orddd")
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/prcpdd")
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/orddeptcd")
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/orddrid")
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/calcscorcd")
- + sColSep + "-"
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/rsrvrem")
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/suppdeptcd")
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/cnclresncd")
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/pacsnocretyn")
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/rgsttm")
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/rgstrid")
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/prcpdelivefact")
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/orddepthngnm")
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/prcpnm")
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/orddd")
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/rgstdepthngnm")
- //+ sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/examroomnm")
- + sColSep + excuroomcd
- + sColSep + "N"
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/cnclresncd")
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/cnclflag");
-
- if (excuroomgrpcdid == "PET-CT실") {
- rCSV += sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/glycosyn");
- } else {
- rCSV += sColSep + "N";
- }
-
- rCSV += sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/glycoscure")
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/reqhospcd")
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/prcpexecdeptcd")
- + sColSep + "예약"
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/bf_srchrsrvtm")
- + sColSep + model.getValue("/root/main/subordlist/subordlist1["+ i +"]/rsrvseq")
- + sColSep + examgoal
- + sRowSep;
-
- k = parseInt(k) + 1;
- }
- }
- model.removeNode("/root/send/req/data");
- model.makeNode("/root/send/req/data");
- model.makeValue("/root/send/req/flag", str);
-
- model.removeNode("/root/temp");
- model.makeNode("/root/temp");
- setCSVToNode("/root/temp", rCSV);
-
- instance1.selectSingleNode("/root/temp").xml;
-
- model.copyNode("/root/send/req/data", "/root/temp");
- submit("TRAEA01419");
- var msg = model.getValue("/root/hidden/result/item/msg");
-
- if ( msg != "" ) {
- if ( messageBox(msg + " 예약내역을","Q002") == 6 ) {
- submit("TXAEA01408");
- } else {
- model.setValue("/root/hidden/chkprint","Y");
- }
- } else {
- submit("TXAEA01408");
- }
-
-
-
- model.removeNode("/root/send/req/data");
- model.removeNodeset("/root/main/rehbprcpsubinfolist"); // 사용용도 ?
-
- /* */
- }
-
- /* @group : 접수관리
- * @ver :
- * @by : 김건기
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검사실 그룹 변경
- */
- function fExcuRoomGrpChoi(excuroomgrpcdid) {
- if (excuroomgrpcdid == "") {
- cmb_excuroom.disabled = true;
- } else {
- cmb_excuroom.disabled = false;
- }
-
- if (submit("TRAEA01418", false)) {
-
- copyNodeType("/root/init/cmb_info/excuroom","/root/hidden/cmb_info/excuroom","replace");
- copyNodeType("/root/init/cmb_info/examcurecd","/root/hidden/cmb_info/examcurecd","replace");
- copyNodeType("/root/init/cmb_info/initexamcureinfo","/root/hidden/cmb_info/initexamcureinfo","replace");
- model.setValue("/root/send/data/cmb_info/initexecroom/excuroomcdid","");
- model.setValue("/root/send/data/excuroomcd", model.getValue("/root/init/cmb_info/initexcuroom/excuroomcdid"));
-
- }
- initCalendar();
- setCurrentDate();
- getRsrvPossTm(grd_calendar);
- }
-
- /* @group : 접수관리
- * @ver :
- * @by : 김건기
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 버튼 활성화 여부
- */
- function fBtnDisabled(acptlistflag) {
- switch (acptlistflag) {
-
- case "M": //미접수
- btn_roomupdt.disabled = true; // 실변경
- btn_rsrvwait.disabled = false; // 검사 대기
- btn_rsrvrete.disabled = false; // 검사 보류
- btn_rsrvcncl.disabled = true; // 검사 대기/보류 취소
- btn_reprint.disabled = false; // 예약증재출력
- btn_rsrv.disabled = false; // 예약
- btn_can.disabled = true; // 예약취소
- btn_acpt.disabled = false; // 접수
- btn_acptcncl.disabled = true; // 접수취소
- break;
- case "R": // 예약
- btn_roomupdt.disabled =false; // 실변경
- btn_rsrvwait.disabled = true; // 검사 대기
- btn_rsrvrete.disabled = true; // 검사 보류
- btn_rsrvcncl.disabled = true; // 검사 대기/보류 취소
- btn_reprint.disabled = false; // 예약증재출력
- btn_rsrv.disabled = false; // 예약
- btn_can.disabled = false; // 예약취소
- btn_acpt.disabled = false; // 접수
- btn_acptcncl.disabled = true; // 접수취소
- break;
-
- case "J": //접수
- btn_roomupdt.disabled = false; // 실변경
- btn_rsrvwait.disabled = true; // 검사 대기
- btn_rsrvrete.disabled = true; // 검사 보류
- btn_rsrvcncl.disabled = true; // 검사 대기/보류 취소
- btn_reprint.disabled = false; // 예약증재출력
- btn_rsrv.disabled = true; // 예약
- btn_can.disabled = true; // 예약취소
- btn_acpt.disabled = true; // 접수
- btn_acptcncl.disabled = false; // 접수취소
- break;
-
- case "E": //실시(IV입력포함)
- btn_roomupdt.disabled = true; // 실변경
- btn_rsrvwait.disabled = true; // 검사 대기
- btn_rsrvrete.disabled = true; // 검사 보류
- btn_rsrvcncl.disabled = true; // 검사 대기/보류 취소
- btn_reprint.disabled = false; // 예약증재출력
- btn_rsrv.disabled = true; // 예약
- btn_can.disabled = true; // 예약취소
- btn_acpt.disabled = true; // 접수
- btn_acptcncl.disabled = true; // 접수취소
- break;
-
- case "Y": //당일예약
- btn_roomupdt.disabled = false; // 실변경
- btn_rsrvwait.disabled = true; // 검사 대기
- btn_rsrvrete.disabled = true; // 검사 보류
- btn_rsrvcncl.disabled = true; // 검사 대기/보류 취소
- btn_reprint.disabled = false; // 예약증재출력
- btn_rsrv.disabled = false; // 예약
- btn_can.disabled = false; // 예약취소
- btn_acpt.disabled = false; // 접수
- btn_acptcncl.disabled = true; // 접수취소
- break;
-
- case "Z": //대기/보류
- btn_roomupdt.disabled = true; // 실변경
- btn_rsrvwait.disabled = true; // 검사 대기
- btn_rsrvrete.disabled = true; // 검사 보류
- btn_rsrvcncl.disabled = false; // 검사 대기/보류 취소
- btn_reprint.disabled = false; // 예약증재출력
- btn_rsrv.disabled = false; // 예약
- btn_can.disabled = true; // 예약취소
- btn_acpt.disabled = true; // 접수
- btn_acptcncl.disabled = true; // 접수취소
- break;
-
- default:
- btn_roomupdt.disabled = true; // 실변경
- btn_rsrvwait.disabled = true; // 검사 대기
- btn_rsrvrete.disabled = true; // 검사 보류
- btn_rsrvcncl.disabled = true; // 검사 대기/보류 취소
- btn_reprint.disabled = true; // 예약증재출력
- btn_rsrv.disabled = true; // 예약
- btn_can.disabled = true; // 예약취소
- btn_acpt.disabled = true; // 접수
- btn_acptcncl.disabled = true; // 접수취소
- break;
- }
-
- model.refresh();
- }
-
- //2009-07-14 달력모양 변경처리
- function fGetCalendar(arg){
-
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- if(model.getValue("/root/hidden/calendar/month") < arg) {
- var num = arg- isMonth ;
- var isDate = (isYear+isMonth+1).toDate().getAddDate(+num,'M');
-
- }
- if(model.getValue("/root/hidden/calendar/month") > arg) {
- var num = isMonth - arg ;
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-num,'M');
- }
-
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
- setCalendar(isDate);
- setCellColor(grd_calendar);
- getRsrvPossTm(grd_calendar);
-
- }
-
- /* @group : 예약 변경 및 취소 내역
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 예약 변경 및 취소 내역 리스트 확인
- */
- function fGetRsrvUpdtInfo() {
- // 예약 취소 내역 존재 유무
- model.makeValue("/root/send/fromdd", model.getValue("/root/send/data/srchdate1"));
- model.makeValue("/root/send/todd",model.getValue("/root/send/data/srchdate2"));
- model.makeValue("/root/send/srchflag","C");
- submit("TRAEA05401", false);
- var nodecnt = getNodesetCount("/root/main/rsrvupdtpreslist/rsrvupdtpresinfo");
- // 취소내역확인요망 버튼 활성 비활성화여부
- if (nodecnt >0 ) {
- btn_rsrvupdt.visible = true;
- } else {
- btn_rsrvupdt.visible = false;
- }
- model.refresh();
- }
-
-
- /* @group : 접수관리
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드 색상 설정
- */
- function fSetRsrvDetailGrid(rsrvgrid) {
- ////////////////////////////
- // 그리드 초기화 //
- ////////////////////////////
- for (var i = 0; i < rsrvgrid.rows; i++) {
-
- rsrvgrid.cellStyle("border-left-color", i , rsrvgrid.colRef("srchrsrvtm")) = "#B0B0B0";
- rsrvgrid.rowstyle(i, "data" , "border-top-color" ) = "#B0B0B0";
- rsrvgrid.rowstyle(i, "data" , "border-bottom-color" ) = "#B0B0B0";
-
- rsrvgrid.rowstyle(i, "data" , "border-top-width" ) = "1";
- rsrvgrid.rowstyle(i, "data" , "border-bottom-width" ) = "1";
- rsrvgrid.cellStyle("border-left-width", i , rsrvgrid.colRef("srchrsrvtm")) = "1";
- }
-
- rsrvgrid.rowstyle(rsrvgrid.row-1, "data" , "border-bottom-color" ) = "#000000";
- rsrvgrid.rowstyle(rsrvgrid.row, "data" , "border-bottom-color" ) = "#000000";
- rsrvgrid.cellStyle("border-left-color", rsrvgrid.row , rsrvgrid.colRef("srchrsrvtm")) = "#000000";
-
- rsrvgrid.rowstyle(rsrvgrid.row-1, "data" , "border-bottom-width" ) = "3";
- rsrvgrid.rowstyle(rsrvgrid.row, "data" , "border-bottom-width" ) = "3";
- rsrvgrid.cellStyle("border-left-width", rsrvgrid.row , rsrvgrid.colRef("srchrsrvtm")) = "3";
-
- rsrvgrid.focusColor = rsrvgrid.rowstyle(rsrvgrid.row, "data" , "background-color" );
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <output id="opt_patientinfo" ref="/root/main/patinfo/patinfolist" visibility="visible" style="left:475px; top:59px; width:460px; height:19px; "/>
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:106px; height:13px; ">접수관리</caption>
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:16px; width:1192px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption5" class="search_name" style="left:518px; top:23px; width:91px; height:17px; ">적용일자 :</caption>
- <button id="btn_case1" class="btn_sw" group="tab2" style="left:7px; top:56px; width:60px; height:22px; ">
- <caption>외래</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 조회 구분
- var acptlistflag = model.getValue("/root/send/data/acptlistflag");
-
- // grid 초기화
- fInitGrid();
-
- // 입원/외래 구분
- model.makeValue("/root/send/data/cmb_info/initioflag/ioflag","O");
-
- // 등록번호 초기화
- model.setValue("/root/send/data/srchpid","");
-
- // 대상자 조회
- fGetExamCureAcptList(acptlistflag);
- ]]>
- </script>
- </button>
- <button id="btn_case2" class="btn_sw" group="tab2" style="left:67px; top:56px; width:60px; height:22px; ">
- <caption>병실</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 조회 구분
- var acptlistflag = model.getValue("/root/send/data/acptlistflag");
- // grid 초기화
- fInitGrid();
-
- // 입원/외래 구분
- model.makeValue("/root/send/data/cmb_info/initioflag/ioflag","I");
-
- // 등록번호 초기화
- model.setValue("/root/send/data/srchpid","");
-
- // 대상자 조회
- fGetExamCureAcptList(acptlistflag);
- ]]>
- </script>
- </button>
- <button id="btn_case3" class="btn_sw" group="tab2" selected="true" style="left:127px; top:56px; width:60px; height:22px; ">
- <caption>검사별</caption>
- <toggle case="case2" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //2012.10.17 by kya default : 전체로
- //rdo_ioflag.value = "I";
- rdo_ioflag.value = "";
-
- var acptlistflag = model.getValue("/root/send/data/acptlistflag");
-
- // 초기화
- fInitGrid();
-
- // 등록번호 초기화
- model.setValue("/root/send/data/srchpid","");
-
- // 대상자 조회
- fGetExamCureAcptList(acptlistflag);
- ]]>
- </script>
- </button>
- <switch id="switch2" style="left:7px; top:83px; width:260px; height:269px; ">
- <case id="case1" style="width:260px; ">
- <datagrid id="grd_mainordlist1" nodeset="/root/main/ordlist1/mainordlist1" autoresize="true" caption="No^등록번호^환자명^구분^병동^퇴원일자^과^execprcpuniqno^orddeptcd^rsrvdd^execprcpstatcd^prcpdd^roomcd^orddrid^rcptyn^type^진료(입원)일자^환자일련번호" colsep="^" colwidth="0, 63, 52, 35, 58, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:1px; width:260px; height:264px; ">
- <col ref="no" visibility="hidden"/>
- <col ref="pid"/>
- <col ref="patnm"/>
- <col disabled="true" ref="prcpgenrflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/initprcpgenrflagcd/M0010">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="wardcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexecward">
- <label ref="execwardcdnm"/>
- <value ref="execwardcdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="dschdd" visibility="hidden"/>
- <col ref="depthngnm" style="left:230px; top:20px; width:32px; height:20px; "/>
- <col ref="execprcpuniqno"/>
- <col ref="orddeptcd"/>
- <col ref="rsrvdd"/>
- <col ref="execprcpstatcd"/>
- <col ref="prcpdd"/>
- <col ref="roomcd"/>
- <col ref="orddrid"/>
- <col ref="rcptyn"/>
- <col ref="type"/>
- <col ref="orddd"/>
- <col ref="cretno"/>
- <col ref="aftrcptinfo" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( (grd_mainordlist1.row >= grd_mainordlist1.fixedRows) && (grd_mainordlist1.isCell(event.target))) {
- // Top 환자 정보
- if ( btn_case1.selected == true || btn_case2.selected == true) {
-
- var acptlistflag = model.getValue("/root/send/data/acptlistflag");
- var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
-
- // 환자번호 조회 후 바로 상세정보 조회 불가
- if ( acptlistflag != "" && excuroomgrpcdid != "") {
-
- // 대상자 조회
- fGetExamCurePrcpList(grd_mainordlist1);
- }
-
- } else {
-
- // 대상자 조회
- fGetExamCurePrcpList(grd_mainordlist1);
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_mainordlist1.gridToInstance(); // 정렬기능 적용 후 인스턴스 재구성
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case2" selected="true" style="width:260px; ">
- <datagrid id="grd_mainordlist2" nodeset="/root/main/ordlist2/mainordlist2" autoresize="true" caption="No^검사코드^검사명^pid^patnm^execprcpuniqno^orddeptcd^rsrvdd^execprcpstatcd^prcpdd^roomcd^orddrid^rcptyn^prcpgenrflag^wardcd^type" colsep="^" colwidth="25, 0, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:25px; width:260px; height:240px; ">
- <col ref="no" visibility="hidden"/>
- <col ref="calcscorcd"/>
- <col ref="prcpnm"/>
- <col ref="pid"/>
- <col ref="patnm"/>
- <col ref="execprcpuniqno"/>
- <col ref="orddeptcd"/>
- <col ref="rsrvdd"/>
- <col ref="execprcpstatcd"/>
- <col ref="prcpdd"/>
- <col ref="roomcd"/>
- <col ref="orddrid"/>
- <col ref="rcptyn"/>
- <col ref="prcpgenrflag"/>
- <col ref="wardcd"/>
- <col ref="type"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //fGetExamCurePrcpList(grd_mainordlist2);
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( (grd_mainordlist2.row >= grd_mainordlist2.fixedRows) && (grd_mainordlist2.isCell(event.target))) {
- fGetExamCurePrcpList(grd_mainordlist2);
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_mainordlist2.gridToInstance(); // 정렬기능 적용 후 인스턴스 재구성
- ]]>
- </script>
- </datagrid>
- <select1 id="rdo_ioflag" ref="/root/send/data/cmb_info/initioflag/ioflag" class="radio_search" appearance="full" cols="3" rows="2" overflow="visible" style="left:5px; top:5px; width:145px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>병실</label>
- <value>I</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- fGetToggleAcptList();
-
- ]]>
- </script>
- </select1>
- </case>
- </switch>
- <caption id="caption1" class="search_name" style="left:798px; top:23px; width:91px; height:17px; ">등록번호 :</caption>
- <line id="line2" class="line_1" style="x1:272px; y1:80px; x2:1190px; y2:80px; "/>
- <line id="line3" class="line_1" style="x1:7px; y1:80px; x2:267px; y2:80px; "/>
- <line id="line4" class="line_2" style="x1:7px; y1:78px; x2:267px; y2:78px; "/>
- <select id="chk_statecd" ref="/root/send/data/srchtotal" overflow="visible" appearance="full" style="left:1063px; top:24px; width:67px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>전체조회</label>
- <value>ALL</value>
- </item>
- </choices>
- <hint>
- <![CDATA[환자별검색시만적용됩니다.]]>
- </hint>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( btn_case1.selected == false ) {
- btn_case1.selected = true;
- model.toggle("case1");
- }
- if ( chk_statecd.value == "" ) {
- model.setValue("/root/send/data/acptlistflag","M");
- fGetToggleAcptList();
- model.refresh();
- }
- ]]>
- </script>
- </select>
- <select1 id="cmb_excuroomgrp" ref="/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid" class="combo_default" appearance="minimal" style="left:265px; top:22px; width:118px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexcuroomgrp">
- <label ref="excuroomgrpcdnm"/>
- <value ref="excuroomgrpcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
-
- var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
-
- model.removenode("/root/main/ordlist1");
- model.removenode("/root/main/ordlist2");
- model.removenode("/root/main/subordlist");
-
- model.setValue("/root/send/data/excuroomgrp", excuroomgrpcdid);
-
- // 검사실 그룹 변경 시 이벤트
- fExcuRoomGrpChoi(excuroomgrpcdid);
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 사용자 변경 정보 저장
- model.property("excuroomgrp") = cmb_excuroomgrp.value;
- ]]>
- </script>
- </select1>
- <input id="ipt_date1" ref="/root/send/data/srchdate1" class="input_default" inputtype="date" style="left:609px; top:22px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 사용자 변경 정보 저장
- model.property("srchdate1") = ipt_date1.value;
- ]]>
- </script>
- </input>
- <input id="ipt_date2" ref="/root/send/data/srchdate2" class="input_default" inputtype="date" style="left:701px; top:22px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 사용자 변경 정보 저장
- model.property("srchdate2") = ipt_date2.value;
- ]]>
- </script>
- </input>
- <input id="ipt_pid" ref="/root/send/data/srchpid" class="input_search" maxlength="10" style="left:890px; top:22px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if ( event.keyCode == 13 ) {
- setInputNodeCurText();
- fGetExamCurePidPrcpList();
- }
- ]]>
- </script>
- </input>
- <button id="button61" class="icon_search" style="left:972px; top:23px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/send/data2/srchcond", "2");
- model.setValue("/root/send/data2/pid", model.getValue("/root/send/data/srchpid"));
-
- modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/data2","/root/send");
- model.setValue("/root/send/data/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid") );
- model.refresh();
- ]]>
- </script>
- </button>
- <output id="ipt_patnm" ref="/root/main/patinfo/patinfolist/hngnm" class="output_fix" style="left:989px; top:22px; width:71px; height:19px; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:1134px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // 조회 구분
- var acptlistflag = model.getValue("/root/send/data/acptlistflag");
-
- // grid 초기화
- fInitGrid();
-
- var pid = model.getValue("/root/send/data/srchpid");
-
- if (pid != "") {
- fGetExamCurePidPrcpList();
- } else {
- // 대상자 조회
- fGetExamCureAcptList(acptlistflag);
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_excuroom" ref="/root/send/data/cmb_info/initexecroom/excuroomcdid" class="combo_default" appearance="minimal" style="left:385px; top:22px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/excuroom/initexcuroom">
- <label ref="excuroomcdnm"/>
- <value ref="excuroomcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var acptlistflag = model.getValue("/root/send/data/acptlistflag");
-
- // 초기화
- fInitGrid();
-
- // 대상자 조회
- fGetExamCureAcptList(acptlistflag);
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 사용자 변경 정보 저장
- model.property("excuroom") = cmb_excuroom.value;
- ]]>
- </script>
- </select1>
- <shape id="roundrect1" class="roundrect_example" visibility="visible" appearance="roundrect" ellipsewidth="10" ellipseheight="7" style="left:475px; top:59px; width:460px; height:19px; "/>
- <datagrid id="grd_subordlist1" nodeset="/root/main/subordlist/subordlist1" caption="^등록번호 ^성명^처방일시^처방일자^검사명^총용량^검사실^상태^구분^예약일자^예약Commnet^희망일자^급여^I/O^진료과^진료의^aftrcptinfo^퇴원일자^rsrvseq^IV입력^Tel^도착^prcpkindcd^excuroomnm^rgstdepthngnm^rgstridnm^basecd^rsrvdt^prcphopedt^execprcpuniqno^calcscorcd^prcpexecdeptcd^rgstdeptcd^rgstrid^portprcpflag^inflag^rcptacptyn^execbaseflag^lrgcd^mdlcd^excupartcd^modality^rcptno^acptseqno^acptrem^execrem^prcpdelivefact^execrid1^execrid2^execrid3^execrid4^acptid^rcptdd^carecnfmdd^orddeptcd^excuexecfromdt1^excueqcd1^excuexecfromdt2^excueqcd2^excuexecfromdt3^excueqcd3^excuexecfromdt4^excueqcd4^excuexecfromdt5^excueqcd5^basesuppdeptcd^orddeptcd^orddrid^pacsnocretyn^orddd^rgsttm^eqmtifyn^cretno^prcpexecdeptcd^precureprcpflag" colsep="^" colwidth="21, 62, 58, 120, 0, 250, 0, 95, 55, 48, 100, 90, 68, 42, 33, 73, 54, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:272px; top:85px; width:918px; height:265px; text-align:center; ">
- <col checkvalue="Y,N" ref="check" type="checkbox"/>
- <col ref="pid"/>
- <col ref="patnm"/>
- <col ref="prcpdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="prcpdd" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="prcpnm" style="font-weight:bold; text-align:left; "/>
- <col ref="prcpqty" visibility="hidden"/>
- <col disabled="true" ref="excuroomcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexcuroomall">
- <label ref="excuroomcdnm"/>
- <value ref="excuroomcdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="execprcpstatcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/initexecprcpstatcd/M0011">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="rsrvflag" type="combo">
- <choices>
- <item>
- <label>-</label>
- <value/>
- </item>
- <item>
- <label>예약</label>
- <value>Y</value>
- </item>
- <item>
- <label>미예약</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="rsrvdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="rsrvrem" type="input" style="text-align:left; "/>
- <col ref="prcphopedd" format="yyyy-mm-dd"/>
- <col ref="payflagcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/initpayflagcd/M0029">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpgenrflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/initprcpgenrflagcd/M0010">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="orddepthngnm"/>
- <col ref="orddrnm"/>
- <col ref="aftrcptinfo" visibility="hidden"/>
- <col ref="dschdd" visibility="hidden"/>
- <col ref="rsrvseq"/>
- <col ref="ivinputyn"/>
- <col ref="cntctel"/>
- <col ref="arvtm"/>
- <col ref="prcpkindcd"/>
- <col ref="excuroomnm"/>
- <col ref="rgstdepthngnm"/>
- <col ref="rgstridnm"/>
- <col ref="basecd"/>
- <col ref="rsrvdt"/>
- <col ref="prcphopedt"/>
- <col ref="execprcpuniqno"/>
- <col ref="calcscorcd"/>
- <col ref="prcpexecdeptcd"/>
- <col ref="rgstdeptcd"/>
- <col ref="rgstrid"/>
- <col ref="portprcpflag"/>
- <col ref="inflag"/>
- <col ref="rcptacptyn"/>
- <col ref="execbaseflag"/>
- <col ref="lrgcd"/>
- <col ref="mdlcd"/>
- <col ref="excupartcd"/>
- <col ref="modality"/>
- <col ref="rcptno"/>
- <col ref="acptseqno"/>
- <col ref="acptrem"/>
- <col ref="execrem"/>
- <col ref="prcpdelivefact"/>
- <col ref="execrid1"/>
- <col ref="execrid2"/>
- <col ref="execrid3"/>
- <col ref="execrid4"/>
- <col ref="acptid"/>
- <col ref="rcptdd"/>
- <col ref="carecnfmdd"/>
- <col ref="orddeptcd"/>
- <col ref="excuexecfromdt1"/>
- <col ref="excueqcd1"/>
- <col ref="excuexecfromdt2"/>
- <col ref="excueqcd2"/>
- <col ref="excuexecfromdt3"/>
- <col ref="excueqcd3"/>
- <col ref="excuexecfromdt4"/>
- <col ref="excueqcd4"/>
- <col ref="excuexecfromdt5"/>
- <col ref="excueqcd5"/>
- <col ref="basesuppdeptcd"/>
- <col ref="orddeptcd"/>
- <col ref="orddrid"/>
- <col ref="pacsnocretyn"/>
- <col ref="orddd"/>
- <col ref="rgsttm"/>
- <col ref="eqmtifyn"/>
- <col ref="cretno"/>
- <col ref="prcpexecdeptcd"/>
- <col ref="precureprcpflag"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
-
- if ( grd_subordlist1.isCell(event.target) && grd_subordlist1.row >= grd_subordlist1.fixedRows ) {
-
- var colidx = grd_subordlist1.col;
- var rowidx = grd_subordlist1.row;
-
- var schk = model.getValue("/root/main/subordlist/subordlist1[" + rowidx + "]/check");
-
- if (grd_subordlist1.colRef("check") != colidx) {
- if (schk == "Y"){
- model.setValue("/root/main/subordlist/subordlist1[" + rowidx + "]/check", "N");
- } else if (schk == ""){
- model.setValue("/root/main/subordlist/subordlist1[" + rowidx + "]/check", "Y");
- } else {
- model.setValue("/root/main/subordlist/subordlist1[" + rowidx + "]/check", "Y");
- }
- }
-
- if (grd_subordlist1.colRef("rsrvrem") == colidx) {
- grd_subordlist1.editCell();
- }
- model.removenode("/root/main/subordlist/rsrvcmtlist");
- if ( btn_case3.selected == true) {
- fTopInfo2();
- }
-
- //var chk = grd_subordlist1.valueMatrix(rowidx, colidx);
- var chk = model.getValue("/root/main/subordlist/subordlist1["+ rowidx +"]/check");
- var execprcpstatcd = model.getValue("/root/main/subordlist/subordlist1[" + rowidx + "]/execprcpstatcd");
- var rsrvflag = model.getValue("/root/main/subordlist/subordlist1[" + rowidx + "]/rsrvflag");
-
- var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
- var excuroomgrpcd = model.getValue("/root/main/subordlist/subordlist1["+ rowidx +"]/excuroomgrpcd");
- var acptlistflag = model.getValue("/root/send/data/acptlistflag");
- // 환자 정보,Comment 조회
- var patinfo = " [ 환자명 : "+ model.getValue("/root/main/subordlist/subordlist1["+ rowidx +"]/patnm")
- patinfo = patinfo + " , S/A : " + model.getValue("/root/main/subordlist/subordlist1["+ rowidx +"]/sex") + "/" + model.getValue("/root/main/subordlist/subordlist1["+ rowidx +"]/age") ;
- patinfo = patinfo + " , 집전화 : " + model.getValue("/root/main/subordlist/subordlist1["+ rowidx +"]/hometel") + " , 핸드폰 : " + model.getValue("/root/main/subordlist/subordlist1["+ rowidx +"]/mpphontel") + " ] ";
-
- model.setValue("/root/main/patinfo/patinfolist",patinfo);
-
- // 당일 접수 Comment
- // 사용자 요구 사항에 의해 접수 Comment 삭제 : 2008.10.20 김건기
- // var acptrem = model.getValue("/root/main/subordlist/subordlist1["+ rowidx +"]/acptrem");
- // model.makeValue("/root/main/comment1/acptrem", acptrem);
- // 처방 Comment
- var prcpdelivefact = model.getValue("/root/main/subordlist/subordlist1["+ rowidx +"]/prcpdelivefact");
- model.makeValue("/root/main/comment1/prcpdelivefact", prcpdelivefact);
- grd_patcmtlist.rebuild();
-
- for (var i=1; i<grd_subordlist1.rows; i++) {
-
- var selChk = model.getValue("/root/main/subordlist/subordlist1["+ i +"]/check");
-
- if (i != rowidx) {
- var newexecprcpstatcd = model.getValue("/root/main/subordlist/subordlist1["+ i +"]/execprcpstatcd");
- var newexcuroomgrpcd = model.getValue("/root/main/subordlist/subordlist1["+ i +"]/excuroomgrpcd");
-
- if (selChk == "Y") {
- // 다른 검사실 그룹을 선택하는 경우 체크
- if (newexcuroomgrpcd != excuroomgrpcd ) {
- model.setValue("/root/main/subordlist/subordlist1["+ i +"]/check","N");
- messageBox("기존에 선택된 검사실과 다른 검사실을 선택","E001");
-
- // 다른 처방 상태를 선택하는 경우 체크
- } else if (newexecprcpstatcd != execprcpstatcd ) {
- model.setValue("/root/main/subordlist/subordlist1["+ i +"]/check","N");
- messageBox("기존에 선택된 처방상태와 상태가 다른 처방을 선택","E001");
- }
- }
- }
-
- if (selChk == "Y") {
- if (i == rowidx) {
- var pid = model.getValue("/root/main/subordlist/subordlist1[" + rowidx + "]/pid");
- model.makeValue("/root/send/patinfo/srchpid", pid);
- model.makeNode("/root/main/subordlist/rsrvcmtlist");
- if (submit("TRAEA01417", false)) {
- copyNodeType("/root/main/subordlist/rsrvcmtlist", "/root/main/exculist/patinfolist", "replace");
- patcmt();
- }
- }
- }
- }
- //if (colidx == grd_subordlist1.colRef("check") && chk == "Y") {
- if (chk == "Y") {
- var pid = model.getValue("/root/send/data/srchpid");
-
-
-
- // 환자 번호로 조회 한 경우
- if (pid != "") {
- if ( execprcpstatcd == "000" ||execprcpstatcd == "100" || execprcpstatcd == "230" ) {
- if (rsrvflag == "Y") {
- model.setValue("/root/send/data/acptlistflag","R");
- acptlistflag = "R";
- } else {
- model.setValue("/root/send/data/acptlistflag","M");
- acptlistflag = "M";
- }
- } else if ( execprcpstatcd == "340" ||execprcpstatcd == "350" ) {
- model.setValue("/root/send/data/acptlistflag","Z");
- acptlistflag = "Z";
- } else if ( execprcpstatcd == "440" ) {
- model.setValue("/root/send/data/acptlistflag","J");
- acptlistflag = "J";
- } else if ( execprcpstatcd == "600" && rsrvflag == "Y") {
- model.setValue("/root/send/data/acptlistflag","R");
- acptlistflag = "R";
- } else if ( execprcpstatcd == "600" ) {
- model.setValue("/root/send/data/acptlistflag","E");
- acptlistflag = "E";
-
- } else {
- acptlistflag = "";
- }
- // 버튼 활성화 기준
- fBtnDisabled(acptlistflag);
-
- if (excuroomgrpcdid != excuroomgrpcd) {
- // 검사실 변경 이벤트
- cmb_excuroomgrp.value = excuroomgrpcd;
- cmb_excuroomgrp2.value = excuroomgrpcd;
- // 검사실 그룹 변경 시 이벤트
- fExcuRoomGrpChoi(excuroomgrpcd);
- }
-
- // 환자번호 전체 조회가 아닌 경우
- } else {
-
- if ( execprcpstatcd == "000" ||execprcpstatcd == "100" || execprcpstatcd == "230" || execprcpstatcd == "600" ) {
- var rsrvdt = model.getValue("/root/main/subordlist/subordlist1["+ rowidx +"]/rsrvdt");
-
- if (rsrvdt != "-" && rsrvdt != "" ) {
- btn_rsrv.disabled = false;
- btn_can.disabled = false;
- btn_reprint.disabled = false;
- btn_rsrvwait.disabled = true; // 검사 대기
- btn_rsrvrete.disabled = true; // 검사 보류
- btn_rsrvcncl.disabled = true; // 검사 대기/보류 취소
-
- } else {
- btn_rsrv.disabled = false;
- btn_can.disabled = true;
- btn_reprint.disabled = true;
- btn_rsrvwait.disabled = false; // 검사 대기
- btn_rsrvrete.disabled = false; // 검사 보류
- btn_rsrvcncl.disabled = true; // 검사 대기/보류 취소
- }
- }
- }
-
-
- var grpcnt = 0;
- var curDD = getCurrentDate();
- //2012.07.04 kya 처방확인추가
- //2012.07.15 부터 PET, CT, MRI 수가인하로 인해 실시일이 7/15 이후인 해당검사의 경우, 안내메시지 띄우기
- if ( curDD >= "20120715" ) {
- if (model.getValue("/root/main/subordlist/subordlist1["+ rowidx +"]/prcpgenrflag") =="O" ) {
- if ( ( model.getValue("/root/send/data/excuroomgrp") == "PET-CT실" && model.getValue("/root/main/subordlist/subordlist1["+ rowidx +"]/rcptdd") < "20120715" && model.getValue("/root/main/subordlist/subordlist1["+ rowidx +"]/execprcpstatcd") < "610" )) {
- grpcnt++;
- }
- }
- }
-
-
- if( grpcnt > 0 ){ // 환급을 위해 원무 창구로 안내바랍니다.
- messageBox("환급을 위해 원무 창구로 안내", "I008");
- }
-
- //20140731 선택진료비 제도변경에 대한 알림메시지
- //start
- var pid = model.getValue("/root/main/subordlist/subordlist1[" + rowidx + "]/pid");
- var prcpdd = model.getValue("/root/main/subordlist/subordlist1[" + rowidx + "]/prcpdd");
- var execprcpuniqno = model.getValue("/root/main/subordlist/subordlist1[" + rowidx + "]/execprcpuniqno");
-
- getPrcpRcptCheck('AST', pid, '','', prcpdd, execprcpuniqno );
- //end
- model.refresh();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_subordlist1", false, "/root/init/popupmenu/grid01/item", "name", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- var col = grd_subordlist1.mouseCol;
- var row = grd_subordlist1.mouseRow;
- if (col == grd_subordlist1.colRef("prcpnm")) {
- grd_subordlist1.tooltipText(row, grd_subordlist1.colRef("prcpnm")) = "총용량 : " + grd_subordlist1.valueMatrix(row, grd_subordlist1.colRef("prcpqty")) ;
- grd_subordlist1.attribute("tooltip") = "true";
- } else {
- grd_subordlist1.attribute("tooltip") = "false";
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseout">
- <![CDATA[
- grd_subordlist1.attribute("tooltip") = "false";
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_subordlist1.gridToInstance(); // 정렬기능 적용 후 인스턴스 재구성
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_temp" nodeset="/root/init/curerprescondlist/rsrvcalendar" visibility="hidden" caption="일자(dd)^가용현황^max^caption3" colsep="^" colwidth="76, 62, 53" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:440px; top:185px; width:210px; height:155px; ">
- <col ref="rsrvdd"/>
- <col ref="count"/>
- <col ref="max"/>
- </datagrid>
- <datagrid id="grd_rsrvtemp" nodeset="/root/hidden/beforersrvtm/rsrvdtlist" visibility="hidden" caption="변경전" colsep="^" colwidth="122" mergecellsfixedrows="bycolrec" rowsep="|" style="left:290px; top:185px; width:145px; height:155px; ">
- <col ref="before" style="left:0px; top:23px; width:159px; height:23px; "/>
- </datagrid>
- <button id="button1" class="btn3_letter6" style="left:472px; top:353px; width:104px; height:22px; ">
- <caption>전체예약조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 전체예약조회
- modal("SMAEA00900", "", "200", "200", "SMAEA00900","","");
- ]]>
- </script>
- </button>
- <button id="button27" class="btn3_letter6" style="left:88px; top:353px; width:104px; height:22px; ">
- <caption>환자정보조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPatidInfo();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn3_letter4" style="left:391px; top:353px; width:80px; height:22px; ">
- <caption>환자채혈</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fDispBlood();
- ]]>
- </script>
- </button>
- <button id="btn_acptcncl" class="btn4_letter2" disabled="true" style="left:1137px; top:353px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeNode("root/hidden/cnclcdlist/cnclcd");
- //window.load( "SPAEA01500_취소코드조회.xrw","modal","code", "min:hidden;max:hidden;resize:false;" );
- modal("SPAEA01500", "", "200", "200", "SPAEA01500","","");
-
- if ( model.getValue("root/hidden/cnclcdlist/cnclcd") != "") {
- grd_subordlist1.valueMatrix(grd_subordlist1.row, grd_subordlist1.colRef("basecd")) = model.getValue("/root/hidden/cnclcdlist/cnclcd");
-
- var row = grd_subordlist1.row;
- grd_subordlist1.valueMatrix(row, grd_subordlist1.colRef("check")) = 'Y';
- model.refresh();
-
- fExeAccept(2);
- }
- ]]>
- </script>
- </button>
- <button id="btn_acpt" class="btn4_letter2" disabled="true" style="left:1079px; top:353px; width:56px; height:22px; ">
- <caption>접수</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeAccept(1);
- ]]>
- </script>
- </button>
- <button id="btn_prcpprint" class="btn3_letter5" style="left:298px; top:353px; width:92px; height:22px; ">
- <caption>처방전출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var excuroomgrpcd = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
- var pid = "";
-
- if ( btn_case3.selected == true) {
- pid = grd_subordlist1.valueMatrix(grd_subordlist1.row, grd_subordlist1.colRef("pid"));
- } else {
- pid = grd_mainordlist1.valueMatrix(grd_mainordlist1.row, grd_mainordlist1.colRef("pid"));
- }
- model.makeValue("/root/send/data/pid",pid);
- model.makeValue("/root/send/data/initexcuroomgrp",excuroomgrpcd);
-
- open("SMAEA03500", "","","", "SMAEA03500", "/root/send/data","/root/hidden/data");
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1009px; top:353px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var acptlistflag = model.getValue("/root/send/data/acptlistflag");
- if (acptlistflag == "") {
- acptlistflag = "M";
- model.setValue("/root/send/data/acptlistflag", acptlistflag);
- }
- // 버튼 활성화 기준
- fBtnDisabled(acptlistflag);
- var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
- if (excuroomgrpcdid == "") {
- excuroomgrpcdid = "영상검사실";
- model.setValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid", excuroomgrpcdid);
- model.setValue("/root/send/data/excuroomgrp", excuroomgrpcdid);
- // 검사실 그룹 변경 시 이벤트
- fExcuRoomGrpChoi(excuroomgrpcdid);
- }
- model.setValue("/root/send/data/srchpid", "");
-
- // 초기화
- fInitGrid();
- ]]>
- </script>
- </button>
- <button id="button25" class="btn3_letter4" style="left:7px; top:353px; width:80px; height:22px; ">
- <caption>예약조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //var row = grd_subordlist1.row;
- //var pid = grd_subordlist1.valueMatrix(row, grd_subordlist1.colRef("pid"));
- fRsrvInfo();
- ]]>
- </script>
- </button>
- <group id="group1" style="left:7px; top:376px; width:1187px; height:405px; ">
- <line id="line10" class="line_1" style="x1:966px; y1:293px; x2:1185px; y2:293px; "/>
- <select1 id="cmb_excucd" ref="/root/send/data/excucd" class="combo_default" visibility="hidden" appearance="minimal" style="left:395px; top:30px; width:62px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/examcurecd/initexamcurecd">
- <label ref="excucdnm"/>
- <value ref="excucd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- initCalendar();
- setCellColor(grd_calendar);
- getRsrvPossTm(grd_calendar);
- ]]>
- </script>
- </select1>
- <button id="btn_rsrv" class="btn2_letter2" disabled="false" style="left:296px; top:3px; width:42px; height:19px; ">
- <caption>예약</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rowcnt = getNodesetCount("/root/main/subordlist/subordlist1[check='Y' ]");
- if (rowcnt < 1) {
- messageBox("예약할 처방 내역을", "C002");
- return;
- }
- var row = grd_subordlist1.row;
- var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
- var srchrsrvtm = model.getValue("/root/main/subordlist/subordlist1["+ row +"]/srchrsrvtm");
-
- if (rowcnt == 1) {
- if (excuroomgrpcdid == "PET-CT실") {
- model.makeValue("/root/hidden/popup/rsrvaddinfo/glycosyn", model.getValue("/root/main/subordlist/subordlist1["+ row +"]/glycosyn"));
- model.makeValue("/root/hidden/popup/rsrvaddinfo/glycoscure", model.getValue("/root/main/subordlist/subordlist1["+ row +"]/glycoscure"));
- model.makeValue("/root/hidden/popup/rsrvaddinfo/reqhospcd", model.getValue("/root/main/subordlist/subordlist1["+ row +"]/reqhospcd"));
- model.makeValue("/root/hidden/popup/rsrvaddinfo/rsrvrem", model.getValue("/root/main/subordlist/subordlist1["+ row +"]/rsrvrem"));
- model.makeValue("/root/hidden/popup/rsrvaddinfo/phone", model.getValue("/root/main/subordlist/subordlist1["+ row +"]/mpphontel"));
- model.makeValue("/root/hidden/popup/rsrvaddinfo/roomtelno", model.getValue("/root/main/subordlist/subordlist1["+ row +"]/roomtelno"));
-
- model.makeValue("/root/hidden/popup/rsrvaddinfo/rownum", row);
- model.makeValue("/root/hidden/popup/rsrvaddinfo/srchrsrvtm", srchrsrvtm);
- modal("SPAEA05000", "", "200", "200", "SPAEA05000","/root/hidden/popup/rsrvaddinfo","/root/hidden");
- var glycosyn = model.getValue("/root/main/subordlist/subordlist1["+ row +"]/glycosyn");
- if (glycosyn == "") {
- messageBox("PET-CT실 예약인 경우 추가 정보는","I003");
- return;
- }
- }
- } else if (rowcnt > 1) {
- if (excuroomgrpcdid == "PET-CT실") {
- messageBox("PET-CT실 예약인 경우 환자별 추가 정보를 입력해야 하므로 여러건 동시에 예약 할 수 ","E001 ");
- return;
- }
- }
-
- var curDate = getCurrentDate().substr(0,8); //오늘날짜
-
- //선택일자
- var rsrvdd = model.getValue("/root/send/data/rsrvdd");
- var rsrvtm = model.getValue("/root/send/data/rsrvmm") + model.getValue("/root/send/data/rsrvss");
- var rsrvdt = rsrvdd + rsrvtm;
-
- var prcpnm = model.getValue("/root/main/subordlist/subordlist1["+ row +"]/prcpnm");
- var pid = "";
-
- if ( rsrvdt == "-" ) {
- messageBox("예약시간을 ","C002");
- return;
- }
-
- //당일예약
- if (curDate == rsrvdd) {
- if(getCurrentTime().substr(0,4) > rsrvtm ) { //현재시간 이전시간을 예약
- messageBox("예약시간이 과거시간", "E008");
- return;
- }
- } else if (curDate > rsrvdd) { //당일 이전 예약
- messageBox("예약일자가 과거일자", "E008");
- return;
- }
- // 예약 실적 설정
- for (var i=1; i<grd_subordlist1.rows; i++) {
-
- var selChk = grd_subordlist1.valueMatrix(i, grd_subordlist1.colRef("check"));
- var suppdeptcd = model.getValue("/root/send/globalinstance/instance1");
-
- if (selChk == "Y") {
- pid = model.getValue("/root/main/subordlist/subordlist1["+ i +"]/pid");
-
- srchrsrvtm = model.getValue("/root/main/subordlist/subordlist1["+ i +"]/srchrsrvtm");
- var prcpnm = model.getValue("/root/main/subordlist/subordlist1["+ i +"]/prcpnm");
- var rcptrsrvyn = model.getValue("/root/main/subordlist/subordlist1["+ i +"]/rcptrsrvyn");
- var execprcpstatcd = model.getValue("/root/main/subordlist/subordlist1["+ i +"]/execprcpstatcd");
- var prcpgenrflag = model.getValue("/root/main/subordlist/subordlist1["+ i +"]/prcpgenrflag");
- var clincstdycd = model.getValue("/root/main/subordlist/subordlist1["+ i +"]/clincstdycd");
-
- // 검체검사는 접수/취소/보류/취소를 막는다.
- if ( model.getValue("/root/main/subordlist/subordlist1[" + i + "]/basesuppdeptcd") == "B6" ) {
- messageBox("["+prcpnm+"] 검사는 검체검사이므로 예약", "E001");
- return "0";
- }
-
- if (srchrsrvtm != "-" && srchrsrvtm != "" ) {
- var msg = messageBox("["+ prcpnm + "] 해당 처방은 예약되어 있습니다. 변경","S001");
- if (msg !=6) {
- return;
- } else {
-
- //취소코드조회
- model.makeValue("/root/send/popup/basecdflag","A");
- model.makeNode("root/hidden/cnclcdlist/cnclcd");
- modal("SPAEA01500", 0,100,150,"SPAEA01500", "/root/send/popup/basecdflag", "/root/hidden/receivedata");
-
- if ( model.getValue("root/hidden/cnclcdlist/cnclcd") != "" ) {
- model.makeValue("/root/main/subordlist/subordlist1["+ i +"]/cnclresncd", model.getValue("root/hidden/cnclcdlist/cnclcd"));
- model.makeValue("/root/main/subordlist/subordlist1["+ i +"]/cnclflag", "A");
- } else {
- model.makeValue("/root/main/subordlist/subordlist1["+ i +"]/cnclresncd", "-");
- model.makeValue("/root/main/subordlist/subordlist1["+ i +"]/cnclflag", "A");
- }
- model.makeValue("/root/main/subordlist/subordlist1["+ i +"]/bf_srchrsrvtm", srchrsrvtm);
- }
-
- } else {
- model.makeValue("/root/main/subordlist/subordlist1["+ i +"]/bf_srchrsrvtm", "");
-
- // 미수납인 경우 => 후 수납 기준 변경에 따라 주석처리 : 2009.02.06 김건기
-
- // if ( execprcpstatcd != "230" ) {
- // // 외래일 경우
- // if ( prcpgenrflag == "-" || prcpgenrflag == "O" || prcpgenrflag == "S") {
- // if ( clincstdycd != "-" ) { // 임상연구용일 경우 접수 허용
- // messageBox("["+ prcpnm + "]은 임상연구용 처방입니다.","I999");
- // } else {
- // // 미수납예약 여부
- // if ( (execprcpstatcd == "000" || rcptrsrvyn != "Y") || (execprcpstatcd == "100" || rcptrsrvyn != "Y") ) {
- // messageBox("["+ prcpnm + "] 해당 처방은 미수납상태에서 예약","E001");
- // return;
- // }
- // }
- // // 병실일 경우
- // } else if ( prcpgenrflag == "D" || prcpgenrflag == "E" || prcpgenrflag == "I") {
- // /*
- // // 미수납예약 여부
- // if ( execprcpstatcd == "000" ) {
- // messageBox("["+ prcpnm + "] 해당 처방은 처방상태에서는 예약","E001");
- // return;
- // }
- // */
- // }
- // }
- }
- // 입원일 경우 예약 증 미출력
- if ( prcpgenrflag == "D" || prcpgenrflag == "E" || prcpgenrflag == "I") {
- model.setValue("/root/hidden/chkprint", "N");
- }
- model.makeValue("/root/main/subordlist/subordlist1["+ i +"]/rsrvdt", rsrvdt); // 예약시간
- model.makeValue("/root/main/subordlist/subordlist1["+ i +"]/rsrvtm", rsrvdt); // 예약시간
- model.makeValue("/root/main/subordlist/subordlist1["+ i +"]/srchrsrvtm", rsrvdt); // 예약시간
- model.makeValue("/root/main/subordlist/subordlist1["+ i +"]/suppdeptcd", suppdeptcd.getTrim());
- }
- }
-
- var year = rsrvdt.substr(0,4);
- var month = rsrvdt.substr(4,2);
- var day = rsrvdt.substr(6,2);
- var week = rsrvdt.substr(0,8).toDate().getDayOfWeek("K");
- var hh = rsrvdt.substr(8,2);
- var mm = rsrvdt.substr(10,2);
- if(hh > 12)
- {
- hh = "오후 "+(hh-12);
- }
- else{
- hh = "오전 "+hh;
- }
-
- var nodeList = instance1.selectNodes("/root/main/subordlist/subordlist1[check='Y' ]");
- var rCSV = getNodeListCSV(nodeList);
- if ( messageBox(rsrvdt.substr(0,4)+"-"+rsrvdt.substr(4,2)+"-"+rsrvdt.substr(6,2)+" "+rsrvdt.substr(8,2)+":"+rsrvdt.substr(10,2)+" 예약내역을","Q002")==6 ) {
-
- exeRsrvTransaction("rsrv");
-
- //********************************
- // ******예약증 출력 20070821******
- //********************************
- for (var i=1; i<grd_subordlist1.rows; i++) {
-
- var selChk = grd_subordlist1.valueMatrix(i, grd_subordlist1.colRef("check"));
- if (selChk == "Y") {
- var pid = model.getValue("/root/main/subordlist/subordlist1["+ i +"]/pid");
- var hngnm = model.getValue("/root/main/subordlist/subordlist1["+ i +"]/patnm");
- var tmpldata = model.getValue("/root/main/subordlist/subordlist1["+ i +"]/tmpldata");
- if (tmpldata != "") {
- //1. 예약예문내용을 뷰어로 보여주기
- rtfviewer.TextRtf = tmpldata;
- //2. 바꾸기
- rtfviewer.ReplaceRtfCode("pid",pid); //등록번호
- rtfviewer.ReplaceRtfCode("patnm",hngnm); //성명
- rtfviewer.ReplaceRtfCode("year",year); //년
- rtfviewer.ReplaceRtfCode("month",month); //월
- rtfviewer.ReplaceRtfCode("day",day); //일
- rtfviewer.ReplaceRtfCode("week",week); //요일
- rtfviewer.ReplaceRtfCode("hh",hh); //시
- rtfviewer.ReplaceRtfCode("mm",mm); //분
-
- if ( model.getValue("/root/hidden/chkprint") == "" ) {
- //3. 현재내용을 파일에 저장
- rtfviewer.SaveRtfFile();
- //4. 출력
- rtfviewer.Print();
- }
- } else {
- messageBox("등록된 예약예문이 ", "I004");
- }
- }
- }
- }
-
- // 예약 시간 초기화 -> 2008.07.15 요청 사항 적용
- // model.setValue("/root/send/data/rsrvss","");
- // model.setValue("/root/send/data/rsrvmm","");
- var acptlistflag = model.getValue("/root/send/data/acptlistflag");
- var srchpid = model.getValue("/root/send/data/srchpid");
-
- var pid = "";
- var calcscorcd = "";
-
- if ( btn_case3.selected == true ) {
- calcscorcd = model.getValue("/root/main/ordlist2/mainordlist2["+grd_mainordlist2.row+"]/calcscorcd");
- } else {
- pid = model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/pid");
- }
-
- model.makeValue("/root/send/temp/pid",pid);
- model.makeValue("/root/send/temp/calcscorcd",calcscorcd);
-
- if (srchpid != "") {
- fGetExamCurePidPrcpList();
- } else {
- // 대상자 조회
- fGetExamCureAcptList(acptlistflag);
- }
-
-
- var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
- if (excuroomgrpcdid == "" ) {
- model.setValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid",model.getValue("root/send/data/excuroomgrp"));
- }
-
- var acptlistflag = model.getValue("/root/send/data/acptlistflag");
- if (acptlistflag == "" ) {
- model.setValue("/root/send/data/acptlistflag", "R");
- }
- //initCalendar(); //2009-07-16 예약후 달력표시 현재(오늘)일자로 조회되는것 막음-예약일자 재조회처리 (류형기 샘 요청)
- setCalendar( rsrvdt.substr(0,8).toDate() ); //2009-07-16 예약후 달력표시 현재(오늘)일자로 조회되는것 막음-예약일자 재조회처리 (류형기 샘 요청)
- setCellColor(grd_calendar);
- getRsrvPossTm(grd_calendar);
- ]]>
- </script>
- </button>
- <line id="line11" class="line_2" style="x1:4px; y1:52px; x2:448px; y2:52px; "/>
- <select id="chk_print" ref="/root/hidden/chkprint" overflow="visible" appearance="full" style="left:88px; top:5px; width:95px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>예약증미출력</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <button id="btn_temprsrv" class="btn2_letter4" style="left:384px; top:3px; width:64px; height:19px; ">
- <caption>임시예약</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var excuroomgrp = model.getValue("/root/send/data/excuroomgrp");
-
- if (excuroomgrp == "") {
- messageBox("검사실을 ", "C002");
- return;
- }
-
- setParameter("excuroomgrp", model.getValue("/root/send/data/excuroomgrp"));
- setParameter("excucd", model.getValue("/root/send/data/excucd"));
- modal("SPAEA02201", "", "200", "200", "popup", "", "");
-
- //2009-07-28 예약후 달력표시 현재(오늘)일자로 조회되는것 막음-예약일자 재조회처리 (류형기 샘 요청)
- var rsrvdd = model.getValue("/root/send/data/rsrvdd");
- setCalendar( rsrvdd.toDate() );
- setCellColor(grd_calendar);
- getRsrvPossTm(grd_calendar);
- ]]>
- </script>
- </button>
- <line id="line12" class="line_3" style="x1:4px; y1:103px; x2:448px; y2:103px; "/>
- <group id="group2" visibility="hidden" scroll="auto" style="left:66px; top:120px; width:444px; height:36px; ">
- <shape id="rectangle2" class="calendar_header" appearance="rectangle" style="left:0px; top:2px; width:444px; height:32px; "/>
- <button id="button31" class="icon_next_year" style="left:205px; top:10px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_next_y.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
-
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
-
- setCalendar(isDate);
- // getCurerPresCond();
- ]]>
- </script>
- </button>
- <button id="button33" class="icon_pre_month" style="left:56px; top:10px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_pre_m.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
-
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
-
- setCalendar(isDate);
- // getCurerPresCond();
- ]]>
- </script>
- </button>
- <button id="button35" class="icon_next_month" style="left:181px; top:10px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_next_m.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
-
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
-
- setCalendar(isDate);
- // getCurerPresCond();
- ]]>
- </script>
- </button>
- <output id="output1_1" ref="/root/hidden/calendar/year_1" class="calendar_output" style="left:83px; top:9px; width:30px; height:19px; "/>
- <output id="output2_1" ref="/root/hidden/calendar/month_1" class="calendar_output" style="left:135px; top:9px; width:20px; height:19px; "/>
- <caption id="caption24" class="calendar_output" style="left:113px; top:9px; width:20px; height:19px; ">년</caption>
- <caption id="caption25" class="calendar_output" style="left:155px; top:9px; width:20px; height:19px; ">월</caption>
- <button id="button36" class="icon_pre_year" style="left:33px; top:10px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_pre_y.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
-
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
-
- setCalendar(isDate);
- // getCurerPresCond();
- ]]>
- </script>
- </button>
- <caption id="caption15" class="calendar_output" style="left:245px; top:5px; width:35px; height:28px; ">
- <![CDATA[예약
- 시간]]>
- </caption>
- <select1 id="cmb_rsrvmm_1" ref="/root/send/data/rsrvmm_1" appearance="minimal" style="left:279px; top:9px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>--</label>
- <value/>
- </item>
- <item>
- <label>01</label>
- <value>01</value>
- </item>
- <item>
- <label>02</label>
- <value>02</value>
- </item>
- <item>
- <label>03</label>
- <value>03</value>
- </item>
- <item>
- <label>04</label>
- <value>04</value>
- </item>
- <item>
- <label>05</label>
- <value>05</value>
- </item>
- <item>
- <label>06</label>
- <value>06</value>
- </item>
- <item>
- <label>07</label>
- <value>07</value>
- </item>
- <item>
- <label>08</label>
- <value>08</value>
- </item>
- <item>
- <label>09</label>
- <value>09</value>
- </item>
- <item>
- <label>10</label>
- <value>10</value>
- </item>
- <item>
- <label>11</label>
- <value>11</value>
- </item>
- <item>
- <label>12</label>
- <value>12</value>
- </item>
- <item>
- <label>13</label>
- <value>13</value>
- </item>
- <item>
- <label>14</label>
- <value>14</value>
- </item>
- <item>
- <label>15</label>
- <value>15</value>
- </item>
- <item>
- <label>16</label>
- <value>16</value>
- </item>
- <item>
- <label>17</label>
- <value>17</value>
- </item>
- <item>
- <label>18</label>
- <value>18</value>
- </item>
- <item>
- <label>19</label>
- <value>19</value>
- </item>
- <item>
- <label>20</label>
- <value>20</value>
- </item>
- <item>
- <label>21</label>
- <value>21</value>
- </item>
- <item>
- <label>22</label>
- <value>22</value>
- </item>
- <item>
- <label>23</label>
- <value>23</value>
- </item>
- <item>
- <label>24</label>
- <value>24</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_rsrvss_1" ref="/root/send/data/rsrvss_1" appearance="minimal" style="left:355px; top:9px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>--</label>
- <value/>
- </item>
- <item>
- <label>00</label>
- <value>00</value>
- </item>
- <item>
- <label>10</label>
- <value>10</value>
- </item>
- <item>
- <label>20</label>
- <value>20</value>
- </item>
- <item>
- <label>30</label>
- <value>30</value>
- </item>
- <item>
- <label>40</label>
- <value>40</value>
- </item>
- <item>
- <label>50</label>
- <value>50</value>
- </item>
- </choices>
- </select1>
- <caption id="caption16" class="calendar_output" style="left:330px; top:9px; width:25px; height:19px; ">시</caption>
- <caption id="caption18" class="calendar_output" style="left:405px; top:9px; width:25px; height:19px; ">분</caption>
- </group>
- <select1 id="cmb_nuclcd" ref="/root/send/data/nuclcd" class="combo_default" visibility="hidden" appearance="minimal" style="left:310px; top:57px; width:137px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initnuclcd">
- <label ref="nuclcdnm"/>
- <value ref="nuclcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- initCalendar();
- setCellColor(grd_calendar);
- getRsrvPossTm(grd_calendar);
- ]]>
- </script>
- </select1>
- <caption id="caption12" class="tit_2" style="left:4px; top:8px; width:82px; height:13px; ">예약현항</caption>
- <multilinegrid id="grd_calendar" nodeset="/root/hidden/calendar/weeklist/list" class="gridcalendar" autoresize="true" caption="일^월^화^수^목^금^토" colsep="^" colwidth="63, 63, 63, 63, 63, 63, 63" extendlastcol="noscroll" focuscolor="transparent" rowsep="|" mergecellsfixedrows="bycolrec" style="left:2px; top:120px; width:444px; height:283px; ">
- <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 class="color_sun" 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 class="color_sat" ref="sat_memo" style="border-top-width:0px; "/>
- </row>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- var excuroomgrpcdid = model.getValue("/root/send/data/excuroomgrp");
-
- if (excuroomgrpcdid == "") {
- messageBox("검사실 그룹을 선택해 주십시오.","I999");
- return "0";
- }
-
- model.setValue("/root/hidden/grdcellcolor/calrow",grd_calendar.row);
- model.setValue("/root/hidden/grdcellcolor/calcol",grd_calendar.col);
-
- setCellColor(grd_calendar);
- getRsrvPossTm(grd_calendar);
-
- var curDate = getCurrentDate().substr(0,8); //오늘날짜
- var rsrvdd =model.getValue("/root/send/data/rsrvdd"); //선택일자
-
- model.setValue("/root/send/memo/memodt1", rsrvdd);
- model.setValue("/root/send/memo/memodt2", rsrvdd);
- model.setValue("/root/send/memo/basesuppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
-
- model.removenode("/root/main/subordlist/subordlist4");
- if (submit("TRAEA01412")) {
- model.makeNode("/root/main/subordlist/subordlist4");
- model.copyNode("/root/main/subordlist/subordlist4","/root/hidden/subordlist/subordlist4");
- grd_subordlist4.rebuild();
- }
-
- // if (curDate <= rsrvdd) {
- // btn_rsrv.disabled = false;
- // btn_can.disabled = false;
- //
- // } else {
- // btn_rsrv.disabled = true;
- // btn_can.disabled = true;
- // }
- ]]>
- </script>
- </multilinegrid>
- <object id="rtfviewer" clsid="{a4bf7e18-5f67-4868-a726-eed421632374}" visibility="hidden" style="left:105px; top:255px; width:120px; height:95px; "/>
- <button id="btn_can" class="btn2_letter2" disabled="true" style="left:340px; top:3px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var rowcnt = getNodesetCount("/root/main/subordlist/subordlist1[check='Y' ]");
- if (rowcnt < 1) {
- messageBox("예약할 처방 내역을", "C002");
- return;
- }
- var row = grd_subordlist1.row;
- var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
- var srchrsrvtm = model.getValue("/root/main/subordlist/subordlist1["+ row +"]/srchrsrvtm");
- //취소코드조회
- model.makeValue("/root/send/popup/basecdflag","A");
- model.makeNode("root/hidden/cnclcdlist/cnclcd");
- modal("SPAEA01500", 0,100,150,"SPAEA01500", "/root/send/popup/basecdflag", "/root/hidden/receivedata");
- if ( model.getValue("root/hidden/cnclcdlist/cnclcd") != "" ) {
-
- var row = -1;
-
- for (var i=1; i<grd_subordlist1.rows; i++) {
- var selChk = grd_subordlist1.valueMatrix(i, grd_subordlist1.colRef("check"));
- if (selChk == "Y") {
- var srchrsrvtm = model.getValue("/root/main/subordlist/subordlist1["+ i +"]/srchrsrvtm");
- var prcpnm = model.getValue("/root/main/subordlist/subordlist1["+ i +"]/prcpnm");
- if (srchrsrvtm == "") {
- messageBox("[" + prcpnm + "] 해당 처방은 예약되지 않은 처방이므로 취소","E001");
- return;
- } else {
- model.makeValue("/root/main/subordlist/subordlist1["+ i +"]/cnclresncd", model.getValue("root/hidden/cnclcdlist/cnclcd"));
- model.makeValue("/root/main/subordlist/subordlist1["+ i +"]/cnclflag", "A");
- }
- model.makeValue("/root/main/subordlist/subordlist1["+ i +"]/bf_srchrsrvtm", srchrsrvtm);
-
- row = i;
- }
- }
-
- if (row < 1) {
- messageBox("취소 할 처방 내역이", "I004");
- return;
- }
-
- var rsrvdt = model.getValue("/root/main/subordlist/subordlist1["+ row +"]/rsrvdt");
-
- if ( messageBox(rsrvdt.substr(0,4)+"-"+rsrvdt.substr(4,2)+"-"+rsrvdt.substr(6,2)+" "+rsrvdt.substr(8,2)+":"+rsrvdt.substr(10,2)+" 예약취소를","Q002")==6 ) {
-
- var nodeList = instance1.selectNodes("/root/main/subordlist/subordlist1[check='Y' ]");
- var rCSV = getNodeListCSV(nodeList);
-
- if ( rCSV == null ) {
- messageBox("처방내역을 ","C002");
- return "0";
- }
-
- exeRsrvTransaction("cncl");
-
- model.setValue("/root/send/data/cmb_info/initexecroom/excuroomcdid","");
-
- var acptlistflag = model.getValue("/root/send/data/acptlistflag");
- var srchpid = model.getValue("/root/send/data/srchpid");
-
- var pid = "";
- var calcscorcd = "";
-
- if ( btn_case3.selected == true ) {
- calcscorcd = model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist2.row+"]/calcscorcd");
- } else {
- pid = model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/pid");
- }
-
- model.makeValue("/root/send/temp/pid",pid);
- model.makeValue("/root/send/temp/calcscorcd",calcscorcd);
-
- // 예약 저장 후 재조회
- if (srchpid != "") {
- fGetExamCurePidPrcpList();
- } else {
- // 대상자 조회
- fGetExamCureAcptList(acptlistflag);
- }
-
- var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
- if (excuroomgrpcdid == "" ) {
- model.setValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid",model.getValue("root/send/data/excuroomgrp"));
- }
-
- var acptlistflag = model.getValue("/root/send/data/acptlistflag");
- if (acptlistflag == "" ) {
- model.setValue("/root/send/data/acptlistflag", "M");
- }
-
- initCalendar();
- setCurrentDate();
- getRsrvPossTm(grd_calendar);
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption7" class="cell_1" visibility="hidden" style="left:227px; top:54px; width:82px; height:23px; vertical-align:middle; ">핵종</caption>
- <caption id="caption8" class="cell_1" style="left:4px; top:28px; width:82px; height:23px; vertical-align:middle; ">검사실</caption>
- <select1 id="cmb_excuroomgrp2" ref="/root/send/data/excuroomgrp" class="combo_default" visibility="visible" appearance="minimal" style="left:88px; top:30px; width:137px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexcuroomgrp2">
- <label ref="excuroomgrpcdnm"/>
- <value ref="excuroomgrpcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var excuroomgrpcdid = model.getValue("/root/send/data/excuroomgrp");
- model.setValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid", excuroomgrpcdid);
-
-
- // 검사실 그룹 변경 시 이벤트
- fExcuRoomGrpChoi(excuroomgrpcdid);
- ]]>
- </script>
- </select1>
- <line id="line5" class="line_1" style="x1:4px; y1:23px; x2:448px; y2:23px; "/>
- <button id="btn_reprint" class="btn2_letter6" disabled="true" style="left:208px; top:3px; width:86px; height:19px; ">
- <caption>예약증재출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var rowcnt = getNodesetCount("/root/main/subordlist/subordlist1[check='Y' ]");
- if (rowcnt < 1) {
- messageBox("재출력할 예약건이", "I004");
- return;
- }
- //********************************
- // ******예약증 출력 20070821******
- //********************************
- for (var i=1; i<grd_subordlist1.rows; i++) {
-
- var selChk = grd_subordlist1.valueMatrix(i, grd_subordlist1.colRef("check"));
- if (selChk == "Y") {
-
- var pid = model.getValue("/root/main/subordlist/subordlist1["+ i +"]/pid");
- var hngnm = model.getValue("/root/main/subordlist/subordlist1["+ i +"]/patnm");
- var rsrvdt = model.getValue("/root/main/subordlist/subordlist1["+ i +"]/srchrsrvtm");
- var prcpnm = model.getValue("/root/main/subordlist/subordlist1["+ i +"]/prcpnm");
- var tmpldata = model.getValue("/root/main/subordlist/subordlist1["+ i +"]/tmpldata");
-
- var year = rsrvdt.substr(0,4);
- var month = rsrvdt.substr(4,2);
- var day = rsrvdt.substr(6,2);
- var week = rsrvdt.substr(0,8).toDate().getDayOfWeek("K");
- var hh = rsrvdt.substr(8,2);
- var mm = rsrvdt.substr(10,2);
- if(hh > 12)
- {
- hh = "오후 "+(hh-12);
- }
- else{
- hh = "오전 "+hh;
- }
-
- if (tmpldata != "") {
- //1. 예약예문내용을 뷰어로 보여주기
- rtfviewer.TextRtf = tmpldata;
- //2. 바꾸기
- rtfviewer.ReplaceRtfCode("pid",pid); //등록번호
- rtfviewer.ReplaceRtfCode("patnm",hngnm); //성명
- rtfviewer.ReplaceRtfCode("year",year); //년
- rtfviewer.ReplaceRtfCode("month",month); //월
- rtfviewer.ReplaceRtfCode("day",day); //일
- rtfviewer.ReplaceRtfCode("week",week); //요일
- rtfviewer.ReplaceRtfCode("hh",hh); //시
- rtfviewer.ReplaceRtfCode("mm",mm); //분
-
- //3. 현재내용을 파일에 저장
- rtfviewer.SaveRtfFile();
- //4. 출력
- rtfviewer.Print();
-
- } else {
- messageBox("등록된 예약예문이 ", "I004");
- }
- }
- }
-
- ]]>
- </script>
- </button>
- <line id="line9" class="line_1" style="x1:966px; y1:158px; x2:1185px; y2:158px; "/>
- <datagrid id="grd_patcmtlist" nodeset="/root/main/subordlist/rsrvcmtlist" class="datagrid0" autoresize="true" caption="환자번호^일자^Comment^caption1" colsep="^" colwidth="0, 0, 216, 0" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:966px; top:163px; width:219px; height:105px; ">
- <col ref="pid" visibility="hidden"/>
- <col ref="cmtdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="patcmt" type="input"/>
- <col ref="iudgb" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/main/subordlist/rsrvcmtlist[" + grd_patcmtlist.row + "]/iudgb") != "I"){
- model.setValue("/root/main/subordlist/rsrvcmtlist[" + grd_patcmtlist.row + "]/iudgb", "U");
- }
- grd_patcmtlist.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="btn_deptmemo" class="btn2_letter4" style="left:1121px; top:273px; width:64px; height:19px; ">
- <caption>메모등록</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- open("SMAEB00500", "","","", "SMAEB00500", "","");
- ]]>
- </script>
- </button>
- <textarea id="tar_prcpremfact" ref="/root/main/comment1/prcpdelivefact" style="left:966px; top:28px; width:219px; height:105px; "/>
- <caption id="cap_rsrvam" class="tit_2" style="left:451px; top:8px; width:82px; height:13px; ">
- <![CDATA[오전]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var grd_height = grd_rsrvlistam.attribute("height");
-
- if (grd_height == "175px") {
- cap_rsrvpm.visible = false;
- line7.visible=false;
- grd_rsrvlistpm.visible = false;
- grd_rsrvlistam.attribute("height") = "375px";
- grd_rsrvlistam.attribute("width") = "600px";
- } else {
- cap_rsrvpm.visible = true;
- line7.visible=true;
- grd_rsrvlistpm.visible = true;
- grd_rsrvlistam.attribute("height") = "175px";
- grd_rsrvlistam.attribute("width") = "510px";
- }
- ]]>
- </script>
- </caption>
- <caption id="cap_prcpcm" class="tit_2" style="left:966px; top:8px; width:131px; height:13px; ">
- <![CDATA[처방 Comment]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var obj_height = tar_prcpremfact.attribute("height");
-
- if (obj_height == "105px") {
- tar_prcpremfact.attribute("height") = "375px";
- // 부서별 메모현황
- cap_deptmemo.visible = false;
- grd_subordlist4.visible = false;
- btn_deptmemo.visible = false;
-
- // 접수 Comment
- // cap_acptcm.visible = false;
- // tar_acptrem.visible = false;
-
- // 환자 Comment
- cap_patcm.visible = false;
- grd_patcmtlist.visible = false;
- btn_patcmtsave.visible = false;
-
- } else {
- tar_prcpremfact.attribute("height") = "105px";
-
- // 부서별 메모현황
- cap_deptmemo.visible = true;
- grd_subordlist4.visible = true;
- btn_deptmemo.visible = true;
-
- // 접수 Comment
- // cap_acptcm.visible = true;
- // tar_acptrem.visible = true;
-
- // 환자 Comment
- cap_patcm.visible = true;
- grd_patcmtlist.visible = true;
- btn_patcmtsave.visible = true;
- }
- ]]>
- </script>
- </caption>
- <button id="btn_patcmtsave" class="btn2_letter2" disabled="true" style="left:1143px; top:138px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var update = getGridUpdateData(grd_patcmtlist);
- if (update == "") {
- messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
-
- } else {
- model.makeValue("/root/send/patinfo/data", update);
- if (submit("TXAEA02002", false)) {
- model.removenode("/root/main/exculist/subordlist3");
- if (submit("TRAEA01417", false)) {
- copyNodeType("/root/main/subordlist/rsrvcmtlist", "/root/main/exculist/patinfolist", "replace");
- grd_patcmtlist.refresh();
- patcmt();
- }
- }
- }
- ]]>
- </script>
- </button>
- <caption id="cap_patcm" class="tit_2" style="left:966px; top:143px; width:123px; height:13px; ">
- <![CDATA[환자 Comment]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var obj_height = grd_patcmtlist.attribute("height");
-
- if (obj_height == "105px") {
- cap_patcm.attribute("top") = "8px";
- grd_patcmtlist.attribute("top") = "28px";
- grd_patcmtlist.attribute("height") = "375px";
- btn_patcmtsave.attribute("top") = "3px";
- line9.visible = false;
-
-
- // 처방 Comment
- cap_prcpcm.visible = false;
- tar_prcpremfact.visible = false;
-
- // 접수 Comment
- // cap_acptcm.visible = false;
- // tar_acptrem.visible = false;
-
- // 부서별 메모현황
- cap_deptmemo.visible = false;
- grd_subordlist4.visible = false;
- btn_deptmemo.visible = false;
-
- } else {
- cap_patcm.attribute("top") = "143px";
- grd_patcmtlist.attribute("top") = "163px";
- grd_patcmtlist.attribute("height") = "105px";
- btn_patcmtsave.attribute("top") = "138px";
-
- line9.visible = true;
-
- // 처방 Comment
- cap_prcpcm.visible = true;
- tar_prcpremfact.visible = true;
-
- // 접수 Comment
- // cap_acptcm.visible = true;
- // tar_acptrem.visible = true;
-
- // 부서별 메모현황
- cap_deptmemo.visible = true;
- grd_subordlist4.visible = true;
- btn_deptmemo.visible = true;
-
- }
- ]]>
- </script>
- </caption>
- <line id="line1" class="line_1" style="x1:451px; y1:23px; x2:961px; y2:23px; "/>
- <caption id="cap_deptmemo" class="tit_2" style="left:966px; top:278px; width:135px; height:13px; ">
- <![CDATA[핵의학과 메모현황]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var obj_height = grd_subordlist4.attribute("height");
-
- if (obj_height == "105px") {
-
- cap_deptmemo.attribute("top") = "8px";
- grd_subordlist4.attribute("top") = "28px";
- grd_subordlist4.attribute("height") = "375px";
- btn_deptmemo.attribute("top") = "3px";
-
- line10.visible = false;
-
- // 처방 Comment
- cap_prcpcm.visible = false;
- tar_prcpremfact.visible = false;
-
- // 접수 Comment
- // cap_acptcm.visible = false;
- // tar_acptrem.visible = false;
-
- // 환자 Comment
- cap_patcm.visible = false;
- grd_patcmtlist.visible = false;
- btn_patcmtsave.visible = false;
-
- } else {
- cap_deptmemo.attribute("top") = "278px";
- grd_subordlist4.attribute("top") = "298px";
- grd_subordlist4.attribute("height") = "105px";
- btn_deptmemo.attribute("top") = "273px";
-
- line10.visible = true;
-
- // 처방 Comment
- cap_prcpcm.visible = true;
- tar_prcpremfact.visible = true;
-
- // 접수 Comment
- // cap_acptcm.visible = true;
- // tar_acptrem.visible = true;
-
- // 환자 Comment
- cap_patcm.visible = true;
- grd_patcmtlist.visible = true;
- btn_patcmtsave.visible = true;
- }
- ]]>
- </script>
- </caption>
- <caption id="cap_rsrvpm" class="tit_2" style="left:451px; top:207px; width:82px; height:13px; ">
- <![CDATA[오후]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var grd_height = grd_rsrvlistpm.attribute("height");
-
- if (grd_height == "175px") {
- cap_rsrvam.visible = false;
- grd_rsrvlistam.visible = false;
-
- cap_rsrvpm.attribute("top") = "8px";
- line7.attribute("y1") = "23px";
- line7.attribute("y2") = "23px";
- grd_rsrvlistpm.attribute("top") = "28px";
- grd_rsrvlistpm.attribute("height") = "375px";
- grd_rsrvlistpm.attribute("width") = "600px";
- } else {
- cap_rsrvam.visible = true;
- grd_rsrvlistam.visible = true;
-
- cap_rsrvpm.attribute("top") = "207px";
- line7.attribute("y1") = "223px";
- line7.attribute("y2") = "223px";
- grd_rsrvlistpm.attribute("top") = "228px";
- grd_rsrvlistpm.attribute("height") = "175px";
- grd_rsrvlistpm.attribute("width") = "510px";
- }
- ]]>
- </script>
- </caption>
- <datagrid id="grd_subordlist4" nodeset="/root/main/subordlist/subordlist4" class="datagrid0" autoresize="true" caption="일자^메모내용" colsep="^" colwidth="0, 216" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:966px; top:298px; width:219px; height:105px; ">
- <col ref="memodd" format="yyyy-mm-dd"/>
- <col ref="memorem"/>
- </datagrid>
- <line id="line6" class="line_1" style="x1:966px; y1:23px; x2:1185px; y2:23px; "/>
- <line id="line7" class="line_1" style="x1:451px; y1:223px; x2:961px; y2:223px; "/>
- <datagrid id="grd_rsrvlistam" nodeset="/root/main/rsrvposstmlist/rsrvlistam" caption="시간^등록번호^성명^병실^상태^검사명^구분^치료유무^용량^처방상태^당뇨여부^가예약순번" colsep="^" colwidth="38, 59, 55, 45, 56, 274, 50, 60, 46, 0, 0" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:450px; top:28px; width:510px; height:175px; ">
- <col ref="srchrsrvtm" format="hh:nn" style="text-align:center; "/>
- <col ref="pid"/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="wardcd" style="text-align:center; "/>
- <col disabled="true" ref="execprcpstatcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/initexecprcpstatcd/M0011">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpnm"/>
- <col ref="exampos" style="text-align:center; "/>
- <col ref="curecnfmyn" style="text-align:center; "/>
- <col ref="drugqty" style="text-align:right; "/>
- <col ref="glycosyn" visibility="hidden"/>
- <col ref="seq" visibility="hidden"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if (event.button == 3) { // 3 : 오른쪽 버튼
- if (grd_rsrvlistam.isCell(event.target) && grd_rsrvlistam.mouseRow >= grd_rsrvlistam.fixedrows) {
-
- // 선택한 그리드 색성 설정
- fSetRsrvDetailGrid(grd_rsrvlistam);
-
- model.makeValue("/root/hidden/popupmenu/seq",grd_rsrvlistam.valueMatrix(grd_rsrvlistam.mouseRow, grd_rsrvlistam.colRef("seq")));
- model.makeValue("/root/hidden/popupmenu/srchrsrvtm",grd_rsrvlistam.valueMatrix(grd_rsrvlistam.mouseRow, grd_rsrvlistam.colRef("srchrsrvtm")));
-
- window.setPopupMenu(true, "/root/init/popupmenu/grid02/item", "name", "func", false);
- } else {
- window.setPopupMenu(false);
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if ( (grd_rsrvlistam.row >= grd_rsrvlistam.fixedRows) && (grd_rsrvlistam.isCell(event.target))) {
-
- // 선택한 그리드 색성 설정
- fSetRsrvDetailGrid(grd_rsrvlistam);
-
- var pid = grd_rsrvlistam.valueMatrix(grd_rsrvlistam.row, grd_rsrvlistam.colRef("pid"));
- model.setValue("/root/send/data/srchpid", pid);
-
- //20160922 검사실 세팅 추가
- model.setValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid", model.getValue("/root/send/data/excuroomgrp"));
- fGetExamCurePidPrcpList();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( (grd_rsrvlistam.row >= grd_rsrvlistam.fixedRows) && (grd_rsrvlistam.isCell(event.target))) {
- // 선택한 그리드 색성 설정
- fSetRsrvDetailGrid(grd_rsrvlistam);
- }
- ]]>
- </script>
- </datagrid>
- <line id="line15" class="line_2" style="x1:5px; y1:75px; x2:449px; y2:75px; "/>
- <caption id="caption9" class="cell_1" visibility="hidden" style="left:365px; top:30px; width:45px; height:23px; vertical-align:middle; ">검사명</caption>
- <select1 id="cmb_excuroom2" ref="/root/send/data/excuroomcd" class="combo_default" disabled="true" visibility="hidden" appearance="minimal" style="left:227px; top:30px; width:137px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/excuroom/initexcuroom">
- <label ref="excuroomcdnm"/>
- <value ref="excuroomcdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_examcureflag" ref="/root/send/data/tclscd" appearance="minimal" style="left:305px; top:30px; width:142px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexamcureinfo/initexamcureflag">
- <label ref="tclscdnm"/>
- <value ref="tclscdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- initCalendar();
- setCellColor(grd_calendar);
- getRsrvPossTm(grd_calendar);
- ]]>
- </script>
- </select1>
- <shape id="rectangle1" appearance="rectangle" style="left:747px; top:6px; width:20px; height:15px; background-color:#FFFFCC; "/>
- <caption id="caption2" style="left:772px; top:7px; width:28px; height:15px; ">검통</caption>
- <shape id="rectangle3" appearance="rectangle" style="left:805px; top:6px; width:20px; height:15px; background-color:#CCFFCC; "/>
- <caption id="caption3" style="left:828px; top:7px; width:28px; height:15px; ">임시</caption>
- <shape id="rectangle4" appearance="rectangle" style="left:859px; top:6px; width:20px; height:15px; background-color:#dddddd; "/>
- <shape id="rectangle5" appearance="rectangle" style="left:912px; top:6px; width:20px; height:15px; background-color:#FAEBD7; "/>
- <caption id="caption10" style="left:882px; top:7px; width:28px; height:15px; ">접수</caption>
- <caption id="caption11" style="left:934px; top:7px; width:28px; height:15px; ">실시</caption>
- <group id="group3" scroll="auto" style="left:3px; top:53px; width:446px; height:67px; ">
- <shape id="rectangle10" class="calendar_header" appearance="rectangle" style="left:0px; top:0px; width:445px; height:65px; "/>
- <button id="button17" class="icon_month" style="left:35px; top:35px; width:27px; height:27px; ">
- <caption>1</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "01") {
- fGetCalendar("01");
- }
- ]]>
- </script>
- </button>
- <button id="button22" class="icon_month" style="left:65px; top:35px; width:27px; height:27px; ">
- <caption>2</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "02") {
- fGetCalendar("02");
- }
- ]]>
- </script>
- </button>
- <button id="button23" class="icon_month" style="left:95px; top:35px; width:27px; height:27px; ">
- <caption>3</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "03") {
- fGetCalendar("03");
- }
- ]]>
- </script>
- </button>
- <button id="button24" class="icon_month" style="left:125px; top:35px; width:27px; height:27px; ">
- <caption>4</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "04") {
- fGetCalendar("04");
- }
- ]]>
- </script>
- </button>
- <button id="button26" class="icon_month" style="left:155px; top:35px; width:27px; height:27px; ">
- <caption>5</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "05") {
- fGetCalendar("05");
- }
- ]]>
- </script>
- </button>
- <button id="button28" class="icon_month" style="left:185px; top:35px; width:27px; height:27px; ">
- <caption>6</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "06") {
- fGetCalendar("06");
- }
- ]]>
- </script>
- </button>
- <button id="button29" class="icon_month" style="left:215px; top:35px; width:27px; height:27px; ">
- <caption>7</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "07") {
- fGetCalendar("07");
- }
- ]]>
- </script>
- </button>
- <button id="button30" class="icon_month" style="left:245px; top:35px; width:27px; height:27px; ">
- <caption>8</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "08") {
- fGetCalendar("08");
- }
- ]]>
- </script>
- </button>
- <button id="button32" class="icon_month" style="left:275px; top:35px; width:27px; height:27px; ">
- <caption>9</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "09") {
- fGetCalendar("09");
- }
- ]]>
- </script>
- </button>
- <button id="button34" class="icon_month" style="left:305px; top:35px; width:27px; height:27px; ">
- <caption>10</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "10") {
- fGetCalendar("10");
- }
- ]]>
- </script>
- </button>
- <button id="button37" class="icon_month" style="left:335px; top:35px; width:27px; height:27px; ">
- <caption>11</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "11") {
- fGetCalendar("11");
- }
- ]]>
- </script>
- </button>
- <button id="button38" class="icon_month" style="left:365px; top:35px; width:27px; height:27px; ">
- <caption>12</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "12") {
- fGetCalendar("12");
- }
- ]]>
- </script>
- </button>
- <output id="opt_month" ref="/root/hidden/calendar/month" class="calendar_output" style="left:160px; top:7px; width:20px; height:19px; "/>
- <caption id="caption23" class="calendar_output" style="left:138px; top:7px; width:20px; height:24px; ">년</caption>
- <caption id="caption29" class="calendar_output" style="left:180px; top:7px; width:20px; height:24px; ">월</caption>
- <button id="button39" class="icon_next_year" style="left:230px; top:10px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_next_y.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
-
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
-
-
- setCalendar(isDate);
- // getCurerPresCond();
- ]]>
- </script>
- </button>
- <button id="button40" class="icon_pre_month" visibility="visible" style="left:81px; top:10px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_pre_m.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
-
- fGetCalendar(isDate.getDateFormat('MM'));
-
- // model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- // model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- // setCalendar(isDate);
- // model.setValue("/root/hidden/calendar/year","");
- // model.setValue("/root/hidden/calendar/month", "");
- // model.refresh();
-
- /*
- if(model.getValue("/root/send/excuroomcd") == "") {
- messageBox("치료실","C002");
- return;
- }
- */
-
- ]]>
- </script>
- </button>
- <output id="opt_year" ref="/root/hidden/calendar/year" class="calendar_output" style="left:108px; top:7px; width:30px; height:19px; "/>
- <button id="button41" class="icon_next_month" visibility="visible" style="left:206px; top:10px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_next_m.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
-
- fGetCalendar(isDate.getDateFormat('MM'));
-
- // model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- // model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- // model.refresh();
- // setCalendar(isDate);
- /*
- if(model.getValue("/root/send/excuroomcd") == "") {
- messageBox("치료실","C002");
- return;
- }
- */
- ]]>
- </script>
- </button>
- <button id="button42" class="icon_pre_year" style="left:60px; top:10px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_pre_y.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
-
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
-
- setCalendar(isDate);
- // getCurerPresCond();
- ]]>
- </script>
- </button>
- <select1 id="cmb_rsrvss" ref="/root/send/data/rsrvss" appearance="minimal" style="left:380px; top:10px; width:45px; height:19px; ">
- <choices>
- <item>
- <label>--</label>
- <value/>
- </item>
- <item>
- <label>00</label>
- <value>00</value>
- </item>
- <item>
- <label>05</label>
- <value>05</value>
- </item>
- <item>
- <label>10</label>
- <value>10</value>
- </item>
- <item>
- <label>15</label>
- <value>15</value>
- </item>
- <item>
- <label>20</label>
- <value>20</value>
- </item>
- <item>
- <label>25</label>
- <value>25</value>
- </item>
- <item>
- <label>30</label>
- <value>30</value>
- </item>
- <item>
- <label>35</label>
- <value>35</value>
- </item>
- <item>
- <label>40</label>
- <value>40</value>
- </item>
- <item>
- <label>45</label>
- <value>45</value>
- </item>
- <item>
- <label>50</label>
- <value>50</value>
- </item>
- <item>
- <label>55</label>
- <value>55</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_rsrvmm" ref="/root/send/data/rsrvmm" appearance="minimal" style="left:310px; top:10px; width:45px; height:19px; ">
- <choices>
- <item>
- <label>--</label>
- <value/>
- </item>
- <item>
- <label>01</label>
- <value>01</value>
- </item>
- <item>
- <label>02</label>
- <value>02</value>
- </item>
- <item>
- <label>03</label>
- <value>03</value>
- </item>
- <item>
- <label>04</label>
- <value>04</value>
- </item>
- <item>
- <label>05</label>
- <value>05</value>
- </item>
- <item>
- <label>06</label>
- <value>06</value>
- </item>
- <item>
- <label>07</label>
- <value>07</value>
- </item>
- <item>
- <label>08</label>
- <value>08</value>
- </item>
- <item>
- <label>09</label>
- <value>09</value>
- </item>
- <item>
- <label>10</label>
- <value>10</value>
- </item>
- <item>
- <label>11</label>
- <value>11</value>
- </item>
- <item>
- <label>12</label>
- <value>12</value>
- </item>
- <item>
- <label>13</label>
- <value>13</value>
- </item>
- <item>
- <label>14</label>
- <value>14</value>
- </item>
- <item>
- <label>15</label>
- <value>15</value>
- </item>
- <item>
- <label>16</label>
- <value>16</value>
- </item>
- <item>
- <label>17</label>
- <value>17</value>
- </item>
- <item>
- <label>18</label>
- <value>18</value>
- </item>
- <item>
- <label>19</label>
- <value>19</value>
- </item>
- <item>
- <label>20</label>
- <value>20</value>
- </item>
- <item>
- <label>21</label>
- <value>21</value>
- </item>
- <item>
- <label>22</label>
- <value>22</value>
- </item>
- <item>
- <label>23</label>
- <value>23</value>
- </item>
- <item>
- <label>24</label>
- <value>24</value>
- </item>
- </choices>
- </select1>
- <caption id="caption30" class="calendar_output" style="left:275px; top:5px; width:30px; height:27px; ">예약시간</caption>
- <caption id="caption31" class="calendar_output" style="left:355px; top:8px; width:20px; height:24px; ">시</caption>
- <caption id="caption32" class="calendar_output" style="left:420px; top:8px; width:25px; height:24px; ">분</caption>
- <button id="button63" class="icon_list" style="left:10px; top:11px; width:14px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- initCalendar();
- setCurrentDate();
- getRsrvPossTm(grd_calendar);
- model.refresh();
-
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption20" class="cell_1" style="left:230px; top:28px; width:73px; height:23px; vertical-align:middle; ">계열구분</caption>
- <datagrid id="grd_rsrvlistpm" nodeset="/root/main/rsrvposstmlist/rsrvlistpm" caption="시간^등록번호^성명^병실^상태^검사명^구분^치료유무^용량^처방상태^당뇨여부^가예약순번" colsep="^" colwidth="38, 59, 55, 45, 55, 274, 50, 60, 46, 0, 0, 0" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:450px; top:228px; width:510px; height:175px; ">
- <col ref="srchrsrvtm" format="hh:nn" style="text-align:center; "/>
- <col ref="pid"/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="wardcd" style="text-align:center; "/>
- <col disabled="true" ref="execprcpstatcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/initexecprcpstatcd/M0011">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpnm"/>
- <col ref="exampos" style="text-align:center; "/>
- <col ref="curecnfmyn" style="text-align:center; "/>
- <col ref="drugqty" style="text-align:right; "/>
- <col ref="execprcpstatcd"/>
- <col ref="glycosyn" visibility="hidden"/>
- <col ref="seq" visibility="hidden"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if (event.button == 3) { // 3 : 오른쪽 버튼
- if (grd_rsrvlistpm.isCell(event.target) && grd_rsrvlistpm.mouseRow >= grd_rsrvlistpm.fixedrows) {
- // 선택한 그리드 색성 설정
- fSetRsrvDetailGrid(grd_rsrvlistpm);
-
- model.makeValue("/root/hidden/popupmenu/seq",grd_rsrvlistpm.valueMatrix(grd_rsrvlistpm.mouseRow, grd_rsrvlistpm.colRef("seq")));
- model.makeValue("/root/hidden/popupmenu/srchrsrvtm",grd_rsrvlistpm.valueMatrix(grd_rsrvlistpm.mouseRow, grd_rsrvlistpm.colRef("srchrsrvtm")));
- window.setPopupMenu(true, "/root/init/popupmenu/grid02/item", "name", "func", false);
- } else {
- window.setPopupMenu(false);
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if ( (grd_rsrvlistpm.row >= grd_rsrvlistpm.fixedRows) && (grd_rsrvlistpm.isCell(event.target))) {
- // 선택한 그리드 색성 설정
- fSetRsrvDetailGrid(grd_rsrvlistpm);
-
- var pid = grd_rsrvlistpm.valueMatrix(grd_rsrvlistpm.row, grd_rsrvlistpm.colRef("pid"));
- model.setValue("/root/send/data/srchpid", pid);
- fGetExamCurePidPrcpList();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( (grd_rsrvlistpm.row >= grd_rsrvlistpm.fixedRows) && (grd_rsrvlistpm.isCell(event.target))) {
- // 선택한 그리드 색성 설정
- fSetRsrvDetailGrid(grd_rsrvlistpm);
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <button id="btn_roomupdt" class="btn2_letter3" disabled="true" style="left:960px; top:60px; width:53px; height:19px; ">
- <caption>실변경</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var excuroomcdid = model.getValue("/root/send/data/cmb_info/initexecroom/excuroomcdid");
- var excuroomgrpcdid = model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
-
- // 촬영실을 선택 여부 체크
- if (excuroomcdid != "") {
-
- var acptlistflag = model.getValue("/root/send/data/acptlistflag");
-
- model.makeValue("/root/hidden/popup/examroominfo/srchdate1", model.getValue("/root/send/data/srchdate1"));
- model.makeValue("/root/hidden/popup/examroominfo/srchdate2", model.getValue("/root/send/data/srchdate2"));
- model.makeValue("/root/hidden/popup/examroominfo/instance1", model.getValue("/root/send/globalinstance/instance1"));
- model.makeValue("/root/hidden/popup/examroominfo/srchflag", 'P');
- model.makeValue("/root/hidden/popup/examroominfo/acptlistflag", acptlistflag);
- model.makeValue("/root/hidden/popup/examroominfo/excuroomgrpcdid", excuroomgrpcdid);
- model.makeValue("/root/hidden/popup/examroominfo/excuroomcdid", excuroomcdid);
- model.makeValue("/root/hidden/popup/examroominfo/initexecroom", excuroomcdid);
- modal("SPAEA05100", "", "200", "200", "SPAEA05100","/root/hidden/popup/examroominfo","/root/send");
- // submit("TRAEA01413");
- // grp_datagrid1.visible = true;
- } else {
- messageBox("환자를 받기를 할 촬영실을", "C002");
- model.setfocus("cmb_excuroom");
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_rsrvupdt" class="btn5_letter8" visibility="hidden" style="left:887px; top:354px; width:108px; height:19px; ">
- <caption>취소내역확인요망</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMAEA05400", "", "200", "200", "SMAEA05400","/root/send/data","/root/hidden/data");
- //modal("SMAEA05400", "", "200", "200", "SMAEA05400","","");
- ]]>
- </script>
- </button>
- <select1 id="cmb_acptlistflag" ref="/root/send/data/acptlistflag" appearance="minimal" style="left:75px; top:22px; width:105px; height:19px; ">
- <choices>
- <item>
- <label>미접수</label>
- <value>M</value>
- </item>
- <item>
- <label>예약</label>
- <value>R</value>
- </item>
- <item>
- <label>접수</label>
- <value>J</value>
- </item>
- <item>
- <label>부분실시</label>
- <value>E</value>
- </item>
- <item>
- <label>당일예약</label>
- <value>Y</value>
- </item>
- <item>
- <label>대기/보류</label>
- <value>Z</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var acptlistflag = model.getValue("/root/send/data/acptlistflag");
- // 버튼 활성화 기준
- fBtnDisabled(acptlistflag);
- // 초기화
- fInitGrid();
-
- // // 대상자 조회
- // fGetExamCureAcptList(acptlistflag);
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 사용자 변경 정보 저장
- model.property("acptlistflag") = cmb_acptlistflag.value;
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_name" style="left:10px; top:23px; width:65px; height:17px; ">상태 :</caption>
- <caption id="caption6" class="search_name" style="left:185px; top:23px; width:80px; height:17px; ">검사실 :</caption>
- <button id="btn_rsrvrete" class="btn2_letter2" disabled="true" style="left:1015px; top:60px; width:42px; height:19px; ">
- <caption>대기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeRsrvWait("1");
- ]]>
- </script>
- </button>
- <button id="btn_rsrvwait" class="btn2_letter2" disabled="true" style="left:1059px; top:60px; width:42px; height:19px; ">
- <caption>보류</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeRsrvWait("2");
- ]]>
- </script>
- </button>
- <button id="btn_rsrvcncl" class="btn2_letter6" disabled="true" style="left:1103px; top:60px; width:86px; height:19px; ">
- <caption>대기보류취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeRsrvWait("3");
- ]]>
- </script>
- </button>
- <button id="button3" class="btn3_letter6" style="left:193px; top:353px; width:104px; height:22px; ">
- <caption>환자진행조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( btn_case3.selected != true ) {
- var pid = model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/pid");
- open("SMAEA04000", "", "200", "200", "SMAEA04000","/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/pid","/root/send/srchpid");
- }
- ]]>
- </script>
- </button>
- <shape id="rectangle6" appearance="rectangle" style="left:282px; top:63px; width:20px; height:15px; background-color:#ffff00; "/>
- <shape id="rectangle7" appearance="rectangle" style="left:325px; top:63px; width:20px; height:15px; background-color:#ccffcc; "/>
- <shape id="rectangle8" appearance="rectangle" style="left:404px; top:63px; width:20px; height:15px; background-color:#FF9A00; "/>
- <caption id="caption26" style="left:427px; top:63px; width:38px; height:15px; ">미수납</caption>
- <caption id="caption27" style="left:307px; top:63px; width:18px; height:15px; ">V</caption>
- <caption id="caption28" style="left:348px; top:63px; width:50px; height:15px; ">오늘결과</caption>
- <button id="button4" class="btn3_letter6" visibility="visible" style="left:578px; top:353px; width:104px; height:22px; ">
- <caption>예약취소현황</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( btn_case3.selected != true ) {
- var pid = model.getValue("/root/main/ordlist1/mainordlist1["+grd_mainordlist1.row+"]/pid");
- open("SMAEA05400", "", "200", "200", "SMAEA05400","/root/send/data","/root/hidden/data");
- } else {
- open("SMAEA05400", "", "200", "200", "SMAEA05400","/root/send/data","/root/hidden/data");
- }
- ]]>
- </script>
- </button>
- <button id="button6" class="btn3_letter6" visibility="visible" style="left:685px; top:353px; width:104px; height:22px; ">
- <caption>주간예약조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //2010.09.06 주간예약현황조회 추가 - 박재영
- open("SMAEA00910", "","","", "SMAEA00910", "","");
- ]]>
- </script>
- </button>
- <button id="button5" class="btn3_letter5" style="left:792px; top:353px; width:92px; height:22px; ">
- <caption>예약일정표</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //********************************
- // ******예약증 일정표 출력 20100928******
- //********************************
- //if(model.getValue("/root/send/data/yesche") == "Y"){ //20100928 예약일정표 출력 - 박재영
- if (submit("TRAEA00920")){
- //exeReportPreview("RPAEA00920","XMLSTR");
- if( model.getValue("/root/main/printinfo/printlist/printdata/pid") != null ) {
-
- model.makeValue("/root/main/printinfo/printlist/instcd", getUserInfo("dutplceinstcd") );
- exeReportPreview("RPAEA00920", "XMLSTR", "", "", "false","","","","","false");
- model.removenode("/root/main/printinfo/printlist/instcd");
- } else {
- messageBox("예약", "E013");
- }
- }
- //}
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|