1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>전화예약</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <patinfo>
- <patinfolist>
- <pid/>
- <hngnm/>
- <engnm/>
- <chinm/>
- <rrgstno1/>
- <rrgstno2/>
- <brthdd/>
- <sex/>
- <age/>
- <bindpid/>
- <hometel/>
- <mpphontel/>
- <etctel1/>
- <etctel2/>
- <smsaprvyn/>
- <email/>
- <zipcd1/>
- <zipcd2/>
- <zipcdseq/>
- <addr/>
- <detladdr/>
- <btype/>
- <rh/>
- <forgeryn/>
- <nati/>
- <psptno/>
- <recmyn/>
- <recmerid/>
- <recmerrela/>
- <vipyn/>
- <viprem/>
- <religncd/>
- <baptnm/>
- <chchnm/>
- <dethyn/>
- <dethdt/>
- <chosresn/>
- <animyn/>
- <exptresncd/>
- <inhospyn/>
- <remfact/>
- <outuncoamt/>
- <dschuncoamt/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- <flag/>
- <pidflag/>
- <builno/>
- </patinfolist>
- </patinfo>
- <popupendflag/>
- <reservation>
- <orddeptcd/>
- <orddeptnm/>
- <orddrid/>
- <specordyn/>
- <ordfild/>
- <fstexamrem/>
- <reexamrem/>
- <orddd/>
- <ordtm/>
- <specorddescyn>N</specorddescyn>
- <insuchrgyn>N</insuchrgyn>
- <ordreqdescyn>N</ordreqdescyn>
- <ordreqhospgrde>1</ordreqhospgrde>
- <acptdd/>
- <acptno/>
- <rsrvflag/>
- <fstacptid/>
- <fstacptdt/>
- <cretno/>
- <acptseqno/>
- <oldorddd/>
- <telrsrvrem/>
- <telrsrvremcd/>
- <updtcnclresn/>
- <rqstflag/>
- <rqsthospcd/>
- <rqstdrid/>
- <onestop/>
- <fsexamflag/>
- <calcyn/>
- <calcflag/>
- <medamtestmyn/>
- <histstat/>
- <dracptyn/>
- <prcpgenryn/>
- <tablename/>
- <remark/>
- <centcd/>
- <subdeptcd/>
- <etcordflag/>
- <centcd/>
- <coopteamcd/>
- <remfact/>
- <centcdyn/>
- <formrecseq/>
- <ordreqformflag/>
- <insukind/>
- <insucd/>
- <insuno/>
- <insdnm/>
- <searchInsuInfoyn/>
- <ptin_fromdd/>
- </reservation>
- <exculist>
- <subordlist2>
- <rsrvflagyn/>
- <rcptyn/>
- <prcpdd/>
- <orddepthngnm/>
- <orddrnm/>
- <execprcpstatcd/>
- <calcscorcd/>
- <prcpnm/>
- <excuroom/>
- <prcphopedd/>
- <srchrsrvtm/>
- <exectm/>
- <excutm/>
- <endtime/>
- <rsrvrem/>
- </subordlist2>
- </exculist>
- <result>
- <outhist>
- <outhistlist/>
- </outhist>
- <temp/>
- <chart>
- <chartlist/>
- </chart>
- <test>
- <testlist/>
- </test>
- </result>
- <outhist>
- <outhistlist/>
- </outhist>
- <outrgst>
- <outrgstlist/>
- </outrgst>
- <outtelrsrv>
- <outtelrsrvlist/>
- </outtelrsrv>
- <rsrvflag>T</rsrvflag>
- <h_dcuc>
- <dcuc>
- <disccd/>
- <discunconm/>
- </dcuc>
- </h_dcuc>
- <caloption>1</caloption>
- <oneminute/>
- <srchtelrsrv>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <fromdd/>
- <todd/>
- </srchtelrsrv>
- <standbyreservtion>
- <pid/>
- <hngnm/>
- <orddrid/>
- <orddeptcd/>
- <orddd/>
- <centcd/>
- <ordtm/>
- <rrgstno1/>
- <rrgstno2/>
- </standbyreservtion>
- <test>
- <testlist/>
- </test>
- <inhist>
- <inhistlist/>
- </inhist>
- <inhistdetl>
- <inhistdetlist/>
- </inhistdetl>
- <ioflag>O</ioflag>
- <hiepat/>
- </main>
- <send>
- <pid/>
- <checkfnexam/>
- <acptdd/>
- <acptno/>
- <orddrid/>
- <orddeptcd/>
- <subdeptcd/>
- <orddd/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <date/>
- <updatedata>
- </updatedata>
- <centcd/>
- <data1>
- </data1>
- <data2/>
- <data3>
- <stat/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <choiflag/>
- <ordtype/>
- <orddd/>
- <orddeptcd/>
- <orddrid/>
- <specordyn/>
- <fromdd/>
- <rsrvdd/>
- <elctappdd/>
- <elctappsignkey/>
- <elctappsigncnts/>
- <elctapprelakey/>
- <elctapprelacnts/>
- <befpid/>
- <befhngnm/>
- <befrrgstno1/>
- <befrrgstno2/>
- <befchoiflag/>
- <befordtype/>
- <beforddd/>
- <beforddeptcd/>
- <beforddrid/>
- <befspecordyn/>
- </data3>
- <data4/>
- <data5/>
- <data6/>
- <smsinfo>
- <recvrnm/>
- <recvrtelno/>
- <msgparam/>
- <pid/>
- <orddeptcd/>
- </smsinfo>
- </send>
- <init>
- <orddeptcd>
- <orddeptcdlist>
- <cd/>
- <nm/>
- <deptengabbr/>
- </orddeptcdlist>
- </orddeptcd>
- <orddrid>
- <orddridlist>
- <cd/>
- <nm/>
- <dp/>
- <sp/>
- <nmsp/>
- </orddridlist>
- </orddrid>
- <P0021list>
- <P0021>
- <cdnm/>
- <cdid/>
- </P0021>
- </P0021list>
- <P0008list>
- <P0008>
- <cdnm/>
- <cdid/>
- </P0008>
- </P0008list>
- <P0341list>
- <P0341>
- <cdnm/>
- <cdid/>
- </P0341>
- </P0341list>
- <P0313list>
- <P0313>
- <cdnm/>
- <cdid/>
- </P0313>
- </P0313list>
- <P0020list>
- </P0020list>
- <P0329list>
- <P0329>
- <cdnm/>
- <cdid/>
- </P0329>
- </P0329list>
- <A0420list>
- <A0420>
- <cdnm/>
- <cdid/>
- </A0420>
- </A0420list>
- <P0414list>
- <P0414>
- <cdnm/>
- <cdid/>
- </P0414>
- </P0414list>
- <P0029list>
- <P0029>
- <cdnm/>
- <cdid/>
- </P0029>
- </P0029list>
- <subdeptcd>
- <subdeptcdlist>
- <dp/>
- </subdeptcdlist>
- </subdeptcd>
- <P0022list>
- <P0022>
- <cdnm/>
- <cdid/>
- </P0022>
- </P0022list>
- <P0380list>
- <P0380>
- <cdnm/>
- <cdid/>
- </P0380>
- </P0380list>
- <M0525list>
- <M0525>
- <cdnm/>
- <cdid/>
- </M0525>
- </M0525list>
- <centcd>
- <centcdlist/>
- </centcd>
- <fsexamdd>
- <fsexamddlist>
- <cdid/>
- <cdnm/>
- </fsexamddlist>
- </fsexamdd>
- <P0487list>
- <P0487>
- <cdnm/>
- <cdid/>
- </P0487>
- </P0487list>
- <M0011list>
- <M0011>
- <cdnm/>
- <cdid/>
- </M0011>
- </M0011list>
- </init>
- <hidden>
- <source>
- <srchcond/>
- <autoflag/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <acptdd/>
- <fromdd/>
- <todd/>
- <checkfnexam/>
- </source>
- <calendarinfo>
- <calendarinfolist/>
- </calendarinfo>
- <holdrrgstno>
- <rrgstno1/>
- <rrgstno2/>
- <hngnm/>
- </holdrrgstno>
- <session/>
- <init>
- <cntrorddeptdoctorlist>
- <user/>
- </cntrorddeptdoctorlist>
- </init>
- <rghtmenu>
- <menu>
- <label>예약대기</label>
- <func>fStandBy</func>
- </menu>
- </rghtmenu>
- <rghtmenu1>
- <menu>
- <label>예약대기</label>
- <func>fStandBy</func>
- </menu>
- </rghtmenu1>
- <con>
- <examcnt/>
- </con>
- <com>
- <searchInsuInfoYN/>
- </com>
- <rcv/>
- <flag>
- <check_insuinfo_flag/>
- </flag>
- </hidden>
- <tmp>
- <patinfolist/>
- <reservation/>
- <cellColor/>
- <userinfo>
- <userinfolist>
- <deptcd/>
- <depthngnm/>
- <userid/>
- <usernm/>
- </userinfolist>
- </userinfo>
- <centcdyn>
- <yn/>
- </centcdyn>
- <refer_sibum/>
- </tmp>
- <sd>
- <deptcd/>
- <deptnm/>
- </sd>
- <callcenter>
- <jumin/>
- <status/>
- <rrgstno1/>
- <rrgstno2/>
- <pid/>
- <check/>
- </callcenter>
- <userinfo>
- <userinfolist>
- <cdnm/>
- </userinfolist>
- </userinfo>
- <resercnt>
- <telamcnt/>
- <telpmcnt/>
- <orddeptamcnt/>
- <orddeptpmcnt/>
- </resercnt>
- <pidcreateuseyn>
- <pidcreateuseynlist>
- <cdnm/>
- </pidcreateuseynlist>
- </pidcreateuseyn>
- <tempchk>
- <specapp>
- <rgstyn/>
- </specapp>
- </tempchk>
- <fseamordreqdescuseyn>
- <fseamordreqdescuseynlist>
- <cdnm/>
- </fseamordreqdescuseynlist>
- </fseamordreqdescuseyn>
- <foreignorder>
- <flag/>
- </foreignorder>
- <paminit>
- <P0068list>
- <P0068>
- <cd/>
- <nm/>
- </P0068>
- </P0068list>
- <P0030list>
- <P0030>
- <cd/>
- <nm/>
- </P0030>
- </P0030list>
- <P6568list/>
- <P0022list/>
- </paminit>
- <temp/>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
- <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/source" resultref="/root/main/result/patinfo"/>
- <submission id="TRPMO00116" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/erpat" resultref="/root/hidden/rcv/temp"/>
- <submission id="TRPMO00206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/source" resultref="/root/main/result/patinfo"/>
- <submission id="TRPMO00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/result"/>
- <submission id="TXPMO00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata" resultref="/root/main/result"/>
- <submission id="TRPMO00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/result"/>
- <submission id="TRPMO00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/outrgst"/>
- <submission id="TRPMO00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/h_dcuc"/>
- <submission id="TRPMO00207" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/getfsexamflag" resultref="/root/main/result/fsexam"/>
- <submission id="TRPAC00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/emrcnst/send" resultref="/root/temp"/>
- <submission id="TRPMO00112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/temp/send" resultref="/root/hidden/temp/result"/>
- <submission id="TXPMO00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/chart" resultref="/root/result/rcv"/>
- <submission id="TRPMO01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/ordreqform/send" resultref="/root/temp/ordreqform"/>
- <submission id="TXPMO00208" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/patinfo/patinfolist" resultref="/root/main/result/temp"/>
- <submission id="TRPMO10013" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rsrvpossyn" resultref="/root/send/rsrvpossyn/result"/>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPMC02511" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/tmp/userinfo"/>
- <submission id="TRZSD00207" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
- <submission id="TRZSD00208" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
- <submission id="TRZSU10117" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZSU10118" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPMO00123" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/centeryn"/>
- <submission id="TRPMO00209" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/fsexamdd"/>
- <submission id="TRPMO00210" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/userinfo"/>
- <submission id="TXPMO00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/rcv"/>
- <submission id="TRPMO00202" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/pidcreateuseyn"/>
- <submission id="TXPMC06507" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="root/rcv"/>
- <submission id="TRPMO00125" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data4" replace="instance" resultref="/root/tempchk"/>
- <submission id="TRPMO00211" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/fseamordreqdescuseyn"/>
- <submission id="TRPMO00212" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/inhist"/>
- <submission id="TRPMO00213" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/inhistdetl"/>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPAO00004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/checkdrscheSend" resultref="/root/temp/checkdrscheResult"/>
- <submission id="TRPMC06904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/patprivacy" replace="instance" resultref="/root/temp/patprivacy"/>
- <submission id="TXARC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/hie"/>
- <submission id="TXPMO01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/smsinfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
- <script type="javascript" src="../../../pam/opatmngtweb/js/PMO001.js"/>
- <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
- <script type="javascript" src="../../../ast/healcarecoopweb/js/SPARC00100.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- fGetUserInfosSampling(); //세션/root/hidden/session
-
- zbcfGetCodeList( new Array("M0011", "M0010"), new Array("/root/init/baseinfo/initexecprcpstatcd", "/root/init/baseinfo/initprcpgenrflagcd") );
-
- zbcfGetCodeList(new Array("P0021", "P0008", "P0341", "P0313", "P0020", "P0329", "A0420", "P0414", "P0029", "P0022", "P0380", "M0525", "P0487", "M0011"),
- new Array("/root/init/P0021list",
- "/root/init/P0008list",
- "/root/init/P0341list",
- "/root/init/P0313list",
- "/root/init/P0020list",
- "/root/init/P0329list",
- "/root/init/A0420list",
- "/root/init/P0414list",
- "/root/init/P0029list",
- "/root/init/P0022list",
- "/root/init/P0380list",
- "/root/init/M0525list",
- "/root/init/P0487list",
- "/root/init/M0011list"
- ), false);
-
- pamfGetCodeList(new Array("P0068","P0030", "P6568", "P0022"), new Array("/root/paminit/P0068list","/root/paminit/P0030list", "/root/paminit/P6568list", "/root/paminit/P0022list"));
-
- //신종플루예방접종센터 원무공통 P0068 - 30
- if (model.getValue("/root/paminit/P0068list/P0068[cdid = '30']/cdnm") != "" && model.getValue("/root/paminit/P0068list/P0068[cdid = '30']/cdnm") != null) {
- FluPrevenCent = model.getValue("/root/paminit/P0068list/P0068[cdid = '30']/cdnm");
- }
-
- //신종플루예방접종센터 원무공통 P0068 - 30
- if (model.getValue("/root/paminit/P0068list/P0068[cdid = '40']/cdnm") != "" && model.getValue("/root/paminit/P0068list/P0068[cdid = '40']/cdnm") != null) {
- FluCent = model.getValue("/root/paminit/P0068list/P0068[cdid = '40']/cdnm");
- }
-
- //다른날짜 동일과 동일의사,다른의사 예약가능여부(여의도) 원무공통 P0030 - 30 (2010/02/23 )
- if (model.getValue("/root/paminit/P0030list/P0030[cdid = '30']/cdnm") != "" && model.getValue("/root/paminit/P0030list/P0030[cdid = '30']/cdnm") != null) {
- SameDept = model.getValue("/root/paminit/P0030list/P0030[cdid = '30']/cdnm");
- }
-
- //전화예약 권한설정
- //RA = GetFreeRsrvAuthor();
- RA = 'N';
-
- //신환채번 사용여부
- //RB = GetPidCreate();
- RB = "N";
-
- //협력의뢰시 초기 세팅.
- RC = getScreenMenuParameter();
-
- cap_privacy.visible = false; // 사생활보호
- if(RC == '1'){
- //협진 그룹을 표시한다.
- //2014/09/25 이정택 추가
- var hiebtn_visibleyn = model.getValue("/root/paminit/P6568list/P6568/cdid");
- if(hiebtn_visibleyn=="Y"){
- btn_hie.visible=true; // HIE 버튼 활성화 여부
- btn_hie.refresh();
- btn_savePatInfo.visible=true; // 채번버튼 활성화 여부
- btn_savePatInfo.refresh();
- chk_refersibum.visible=true; // 의뢰회송 시범사업 체크박스 활성화 여부
- chk_refersibum.refresh();
- }else{
- btn_hie.visible=false;
- btn_hie.refresh();
- btn_savePatInfo.visible=false;
- btn_savePatInfo.refresh();
- chk_refersibum.visible=false;
- chk_refersibum.refresh();
- }
- //2014/09/25 이정택 추가
-
- cmb_rqstflag.visible = true;
- caption33.visible = true;
- cmb_onestop.visible = true;
- caption5.visible = true;
- ipt_rqsthospcd.visible = true;
- caption29.visible = true;
- ipt_rqstdrid.visible = true;
- model.setValue("/root/main/rsrvflag", 'A'); //검사예약(A)
- model.setValue("/root/main/reservation/rqstflag", '1'); //협력의뢰(1)
- RSRVFLAG = '1'; //협력의뢰(1), 전화예약/검사의뢰(2), 국제진료(U)
- btn_softphone.visible=false;
-
- }else if(RC == 'U'){
- //국제협력
- //2014/09/25 이정택 추가
- btn_hie.visible=false;
- btn_hie.refresh();
- //2014/09/25 이정택 추가
- cmb_rqstflag.visible = true;
- caption33.visible = true;
- cmb_onestop.visible = true;
- caption5.visible = true;
- ipt_rqsthospcd.visible = true;
- caption29.visible = true;
- ipt_rqstdrid.visible = true;
- model.setValue("/root/main/rsrvflag", 'A'); //검사예약(A)
- model.setValue("/root/main/reservation/rqstflag", 'U'); //전화예약/검사의뢰(2)
- RSRVFLAG = 'U'; //협력의뢰(1), 전화예약/검사의뢰(2), 국제진료(U)
- btn_softphone.visible=false;
-
- }else{
- //협진 그룹을 숨긴다.
- //2014/09/25 이정택 추가
- btn_hie.visible=false;
- btn_hie.refresh();
- //2014/09/25 이정택 추가
- cmb_rqstflag.visible = false;
- caption33.visible = false;
- cmb_onestop.visible = false;
- caption5.visible = false;
- ipt_rqsthospcd.visible = false;
- caption29.visible = false;
- ipt_rqstdrid.visible = false;
- model.setValue("/root/main/reservation/rqstflag", '-'); //
- RSRVFLAG = '2'; //협력의뢰(1), 전화예약/검사의뢰(2), 국제진료(U)
-
- //body.createChild("xforms:iviewer", "id:ivr_cashpopup; src:../../../pam/pambaseinfomngtweb/xrw/SPPMB02200_소프트폰연동.xrw; left:885px; top:755px; width:15px; height:19px; ");
- //2016/04/07 이정택 수정(전화예약일 경우에는 소프트폰 접속이라는 버튼 보여줌)
- btn_softphone.visible=true;
- }
-
- //진료의뢰서 설명창 사용여부
- RD = FseamOrdreqdescUseYn();
-
- //초재진예약일자
- FsexamFalg();
-
- //센터 선 적용 여부 체크
- //CENTERYN = fCheckCenterYN();
- //CENTERYN = 'Y';
- /*
- if( CENTERYN == 'Y' ){
- cmb_centcd.disabled = false;
- cnstteamnm.disabled = false;
- combo5.visible = false;
- combo6.visible = false;
- }else{
- cmb_centcd.disabled = true;
- cnstteamnm.disabled = true;
- combo5.visible = false;
- combo6.visible = false;
- }
- */
- //진료과코드 진료의ID 조회
- pamGetDeptCDDrIDList();
-
- //초기화
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
- fInitialize();
-
- //접속user 정보
- //submit("TRPMC02511");
-
- //외래이력 라디오버튼 초기화
- radio13.dispatch("xforms-value-changed");
-
- model.refresh();
-
- model.setFocus("ipt_rrgstno1");
-
- //채번버튼 사용여부
- if(RB == 'Y'){
- //btn_savePatInfo.visible = true;
- checkbox2.visible = true;
- //자격조회여부
- model.setValue("/root/hidden/com/searchInsuInfoYN", "Y");
- }
-
- //2015/10/08 예약현황이 디폴트로 가도록 수정(이정택)
- model.makeValue("/root/main/caloption", "2");
- radio3.refresh();
- //2015/10/08 예약현황이 디폴트로 가도록 수정(이정택)
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- // HIE 환자 초기값 설정 시작
- var hieyn = "N";
- var hie_rrgstno1 = "";
- var hie_rrgstno2 = "";
- var hie_sex = "";
- var hie_zipcd1 = "";
- var hie_zipcd2 = "";
- var hie_addrbase = "";
- var hie_addrdetl = "";
- // HIE 환자 초기값 설정 끝
-
-
- var CENTERYN = 'N';
- var RC = '';
- var RSRVFLAG = '2'; //예약구분 : default 전화예약(2) - 협력의뢰(1), 전화예약/검사의뢰(2), 국제진료(U)
- var INSUKIND = gsInsu_IlBan; //보험유형 일반
- // var ETCORDFLAG = '-'; //기타구분 : default '-'
- var FluPrevenCent = "NULL";
- var FluCent = "NULL";
- var SameDept = "NULL";
-
- //최근 보험정보 조회
- function fGetInsuKind(){
- //최근 접수한 내역에서 보험유형을 구한다. 접수한건이 없을 경우 일반으로 세팅
- var cnt = getNodesetCount("/root/main/outhist/outhistlist/histstat");
- var insukindtmp = '';
- for( var i = 0; i <= cnt; i++){
- if( model.getValue("/root/main/outhist/outhistlist[" + i + "]/histstat") == 'R' ){
- insukindtmp = model.getValue("/root/main/outhist/outhistlist[" + i + "]/insukind");
- if( insukindtmp != '' && insukindtmp != '-' && insukindtmp != ' ' ){
- INSUKIND = insukindtmp;
- return true;
- }
- }
- }
- INSUKIND = gsInsu_IlBan; //보험유형 일반
- return false;
- }
-
- //예약내역 체크
- function fCheckRsrvHist(){
- //해당과에 이미 예약된 내역이 있는지 체크
- model.makeNode("/root/send/rsrvpossyn/orddeptcd");
- model.makeNode("/root/send/rsrvpossyn/hngnm");
- model.makeNode("/root/send/rsrvpossyn/rrgstno1");
- model.makeNode("/root/send/rsrvpossyn/rrgstno2");
- model.makeNode("/root/send/rsrvpossyn/result");
- model.makeNode("/root/send/rsrvpossyn/orddd");
- model.makeNode("/root/send/rsrvpossyn/orddrid");
-
- model.setValue("/root/send/rsrvpossyn/orddeptcd", model.getValue("/root/main/reservation/orddeptcd"));
- model.setValue("/root/send/rsrvpossyn/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/send/rsrvpossyn/rrgstno1", model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
- model.setValue("/root/send/rsrvpossyn/rrgstno2", model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
- //여의도 - 1. 한 환자가 동일의사에게 다른날(2회이상) 예약 가능 2. 한 환자가 같은과에 같은날에 다른의사(2명이상) 예약이 될수 있도록(같은날 같은과 같은의사예약만 블로킹)
- if(SameDept == 'Y'){
- model.setValue("/root/send/rsrvpossyn/orddd", model.getValue("/root/main/reservation/orddd"));
- model.setValue("/root/send/rsrvpossyn/orddrid", model.getValue("/root/main/reservation/orddrid"));
- }
-
- var fsexamflag = model.getValue("/root/main/reservation/fsexamflag");
-
- if(submit("TRPMO10013")){
- var possyn = model.getValue("/root/send/rsrvpossyn/result/rsrvpossyn/possyn");
- if( model.getValue("/root/send/rsrvpossyn/result/rsrvpossyn/possyn") != 'Y' ){
- // if(fsexamflag != 'R'){
- // if( messageBox("해당 진료과로 이미 예약된 내역이 있습니다.", "E999", "")){
- // model.removeNodeset("/root/send/rsrvpossyn");
- // return false;
- // }
- // }else{
- if( messageBox("해당 진료과로 이미 예약된 내역이 있습니다. 전화예약을 계속 진행하시겠습니까?", "Q999", "") != 6 ){
- model.removeNodeset("/root/send/rsrvpossyn");
- return false;
- }
- // }
- }
- }else{
- if(messageBox("해당 진료과 예약내역 조회에 실패했습니다. 무시하고 계속 진행하시겠습니까?", "Q999", "") != 6 ){
- model.removeNodeset("/root/send/rsrvpossyn");
- return false;
- }
- }
- model.removeNodeset("/root/send/rsrvpossyn");
- return true;
- }
-
- //외래이력 조회
- function fSearch(){
- //감면내역 조회
- model.copyNode("/root/tmp/patinfolist", "/root/main/patinfo/patinfolist");
-
- //예약정보 / 외래등록내역(달력) / 외래등록내역 초기화
- //btn_clear.dispatch("DOMActivate");
-
- //외래등록내역 초기화
- model.resetInstanceNode("/root/main/outhist/outhistlist");
-
- //컨설트 내역 조회
- fGetOrdCnstInfo();
-
- //사생활보호 관리여부 확인
- fGetPatPrivacyInfo(model.getValue("/root/main/patinfo/patinfolist/pid"));
-
- if( model.getValue("/root/main/popupendflag") == "ok" ){
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- model.setValue("/root/send/pid", pid );
- if( pid.length > 0 ){
- //구환
- model.setValue("/root/send/checkfnexam", 3);
- }else{
- //신환
- model.setValue("/root/send/checkfnexam", 1);
- }
-
- //여의도성모병원에서 전환된 환자
- fCheckMigPatMsg(model.getValue("/root/main/patinfo/patinfolist/pidflag") );
-
- //model.setValue("/root/send/acptdd", model.getValue("/root/main/patinfo/patinfolist/acptdd") );
- //model.setValue("/root/send/acptno", model.getValue("/root/main/patinfo/patinfolist/acptno") );
- model.setValue("/root/send/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm").replace("★", ""));
- model.setValue("/root/send/rrgstno1", model.getValue("/root/main/patinfo/patinfolist/rrgstno1") );
- model.setValue("/root/send/rrgstno2", model.getValue("/root/main/patinfo/patinfolist/rrgstno2") );
- model.resetInstanceNode("/root/main/result");
- model.makeNode("/root/main/result/outhist");
- //model.makeNode("/root/main/result/outrgst");
-
- if(submit("TRPMO00201")){
- model.copyNode("/root/main/outhist" , "/root/main/result/outhist");
- model.copyNode("/root/main/test" , "/root/main/result/test");
- model.copyNode("/root/main/exculist" , "/root/main/result/exculist");
-
- model.makeNode("/root/hidden/con/examcnt");
-
- var examcnt = getNodesetCount("/root/main/test/testlist");
- model.setValue("/root/hidden/con/examcnt", examcnt);
-
- //model.copyNode("/root/main/outrgst", "/root/main/result/outrgst");
- //grd_outhist.refresh();
- fGetInsuKind(); //최근보험유형 검색
- if(RD == 'Y'){
- //예약구분이 의료협력이 아닐경우 진료의뢰서여부 체크 안함
- if(model.getValue("/root/main/reservation/rsrvflag") != 'C'){
- FseamOrdreqdescCheck();
- }
- }
- model.refresh();
- }
-
- //전화예약내역 색깔표시
- grd_outhist.rebuildStyle();
- setRowStyle("grd_outhist", "4^6", "2^9", "rsrvflag");
-
- //재원체크
- fInhospynCheck();
- }
- }
-
- //재원환자체크
- function fInhospynCheck(){
- if (model.getValue("/root/main/patinfo/patinfolist/inhospyn") == "I"){
- if(messageBox("확인! " + model.getValue("/root/main/patinfo/patinfolist/hngnm") + " 환자는 현재 재원 중입니다!. 계속 진행 하시겠습니까?","Q999","") != 6){
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
- fInitialize();
- return false;
- }
- }else if (model.getValue("/root/main/patinfo/patinfolist/inhospyn") == "D"){
- if(messageBox("확인! " + model.getValue("/root/main/patinfo/patinfolist/hngnm") + " 환자는 당일 DSC/CHEMO 환자입니다. 계속 진행 하시겠습니까?","Q999","") != 6){
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
- fInitialize();
- return false;
- }
- /*
- messageBox("확인! " + model.getValue("/root/main/patinfo/patinfolist/hngnm") + " 환자는 당일 DSC/CHEMO 환자입니다. 입원수납에서 수납하세요!","E999","");
- return false;
- */
- }else if (model.getValue("/root/main/patinfo/patinfolist/inhospyn") == "E"){
- if(messageBox("확인! " + model.getValue("/root/main/patinfo/patinfolist/hngnm") + " 환자는 응급 환자입니다. 계속 진행 하시겠습니까?","Q999","") != 6){
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
- fInitialize();
- return false;
- }
- /*
- messageBox("확인! " + model.getValue("/root/main/patinfo/patinfolist/hngnm") + " 환자는 응급 환자입니다!","E999","");
- return false;
- */
- }else if (model.getValue("/root/main/patinfo/patinfolist/inhospyn") == "T"){
- if(messageBox("확인! " + model.getValue("/root/main/patinfo/patinfolist/hngnm") + " 환자는 가퇴원 환자입니다. 계속 진행 하시겠습니까?","Q999","") != 6){
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
- fInitialize();
- return false;
- }
- /*
- messageBox("확인! " + model.getValue("/root/main/patinfo/patinfolist/hngnm") + " 환자는 응급 환자입니다!","E999","");
- return false;
- */
- }
- // else if(model.getValue("/root/main/ptbs/ptbs_tdaydsch") == "Y" && model.getValue("/root/main/otpt/otpt_orddd") == getCurrentDate() ){
- //
- // messageBox("확인! " + model.getValue("/root/main/ptbs/ptbs_hngnm") + " 환자는 당일퇴원환자입니다!","E999","");
- // return false;
- // }
- return true;
- }
-
- function fDisableInputBox(){
- if( model.getValue("/root/hidden/source/checkfnexam") == "1" ){
- ipt_pid.disabled = true;
- cmb_sex.disabled = false;
- ipt_hometel.disabled = false;
- ipt_mpphontel.disabled = false;
- ipt_etctel1.disabled = false;
- ipt_engnm.disabled = false;
- ipt_zipcd1.disabled = false;
- ipt_zipcd2.disabled = false;
- ipt_zipcdseq.disabled = false;
- ipt_detladdr.disabled = false;
- //tar_remfact.disabled = false;
- //btn_srchzipcd.disabled = false;
-
- model.setFocus("ipt_hngnm");
- }else if( model.getValue("/root/hidden/source/checkfnexam") == "3" ){
- ipt_pid.disabled = false;
- cmb_sex.disabled = true;
- ipt_hometel.disabled = true;
- ipt_mpphontel.disabled = true;
- ipt_etctel1.disabled = true;
- ipt_engnm.disabled = true;
- ipt_zipcd1.disabled = true;
- ipt_zipcd2.disabled = true;
- ipt_zipcdseq.disabled = true;
- ipt_detladdr.disabled = true;
- //tar_remfact.disabled = true;
- //btn_srchzipcd.disabled = true;
-
- model.setFocus("ipt_rrgstno1");
- }
- }
-
- /*
- * histstat - 예약(T), 변경(C), 취소(X)
- */
- function fMakeRsrv(histstat){
- //send node reset
- model.resetInstanceNode("/root/send/updatedata");
- model.refresh();
- //make nodes
- model.makeNode("/root/send/updatedata/patinfolist");
- model.makeNode("/root/send/updatedata/reservation");
- model.makeNode("/root/send/updatedata/checkfnexam");
- model.makeNode("/root/main/updatedata/insukind");
- //model.makeNode("/root/send/updatedata/histstat");
-
- var dd = model.getValue("/root/main/reservation/orddd");
- var fsexamflag = model.getValue("/root/main/reservation/fsexamflag");
- var etcordflag = model.getValue("/root/main/reservation/etcordflag");
- //기타진료에 null값 들어가는 문제 방지
- if(etcordflag == '' || etcordflag == ' '){
- model.setValue("/root/main/reservation/etcordflag", '-');
- }
-
- //예약시 생일 한번더 체크
- fGetBirthDD();
-
- var remark = model.getValue("/root/main/reservation/onestop");
- if(remark == '-' || remark == ''){
- model.setValue("/root/main/reservation/onestop" , '');
- }else{
- model.setValue("/root/main/reservation/remark", "ONE STOP:" + cmb_onestop.label );
- }
- model.setValue("/root/main/reservation/remark", model.getValue("/root/main/reservation/remark") + model.getValue("/root/main/reservation/remfact"));
-
- //send node 값 세팅
- var rsrvflag;
- var rsrvf;
- var rsrvr;
- var cnt = getNodesetCount("/root/init/fsexamdd/fsexamddlist");
- for(var i=1; i<=cnt; i++){
- if(model.getValue("/root/init/fsexamdd/fsexamddlist["+ i +"]/cdid") == "F"){
- rsrvf = model.getValue("/root/init/fsexamdd/fsexamddlist["+ i +"]/cdnm");
- }
- if(model.getValue("/root/init/fsexamdd/fsexamddlist["+ i +"]/cdid") == "R"){
- rsrvr = model.getValue("/root/init/fsexamdd/fsexamddlist["+ i +"]/cdnm");
- }
- }
- //예약(T) - START
- if(histstat == 'T'){
- if(fsexamflag == 'R' || fsexamflag == 'S'){
- if( getDateInterval( getCurrentDate(), dd) < rsrvr ){
- messageBox("재진환자 예약은 금일로 부터 "+ rsrvr +" 일 이후 부터 가능합니다.", "E999", "");
- model.removeNodeset("/root/main/outrgst/outrgstlist");
- model.resetInstanceNode("/root/resercnt");
- grd_outrgst.refresh();
- return false;
- }
- }else if(fsexamflag == 'F' || fsexamflag == 'D' || fsexamflag == '4'){
- if( getDateInterval( getCurrentDate(), dd) < rsrvf ){
- messageBox("초진환자 예약은 금일로 부터 "+ rsrvf +" 일 이후 부터 가능합니다.", "E999", "");
- model.removeNodeset("/root/main/outrgst/outrgstlist");
- model.resetInstanceNode("/root/resercnt");
- grd_outrgst.refresh();
- return false;
- }
- }
-
- var etcordflag = model.getValue("/root/main/reservation/etcordflag");
- if(RSRVFLAG == '1' || RSRVFLAG == 'U'){
- rsrvflag = RSRVFLAG; //협력의뢰(1), 검사의뢰(2), 국제진료(U)
- }else if(etcordflag == 'H'){
- rsrvflag = 'C'; //컨설트
- }else{
- rsrvflag = '2'; //전화예약
- }
-
- //2014/09/25 이정택 추가
- if(hieyn=="Y"){
- rsrvflag = 'V'; //진료교류
- }
- //2014/09/25 이정택 추가
- //2016/04/29 이정택 추가(되의뢰(회송) 시범사업 관련)
- if(RC=='1' && getUserInfo("dutplceinstcd")=="031"){
- var refer = model.getValue("/root/tmp/refer_sibum");
- if(refer == "W"){
- rsrvflag = "W"; // 접수구분을 되의뢰(회송)으로 변경
- }
- }
- //2016/04/29 이정택 추가(되의뢰(회송) 시범사업 관련)
- //예약(T) - END
- //예약(T) 아니면- START
- }else{
- //변경/취소 작업시 전화예약실에서 발생한 건에 대해서 예약구분자를 '전화예약'값으로 수정한다.
- //전화예약 메뉴로 전화예약화면을 실행 시켰을 경우..
- // if( RC == 'T' ){
- // model.setValue("/root/main/reservation/rsrvflag", '2'); //전화예약
- // model.setValue("/root/send/updatedata/patinfolist/rsrvflag", '2');
- // }
- rsrvflag = model.getValue("/root/main/reservation/rsrvflag");
- //협력의뢰 예약 경우에는 협력의뢰(1), 검사의뢰(2), 국제진료(U) 선택값으로 변경되도록 수정 - 20130820
- if(RSRVFLAG == '1' || RSRVFLAG == 'U'){
- var rqstflag = model.getValue("/root/main/reservation/rqstflag");
- if(rqstflag == '1' || rqstflag == '2' || rqstflag == 'U'){
- rsrvflag = rqstflag;
- }
- }
-
- //2014/09/25 이정택 추가
- if(hieyn=="Y" && (getUserInfo("dutplceinstcd")=="031" || getUserInfo("dutplceinstcd")=="032")){
- rsrvflag = 'V'; //진료교류
- }
- //2014/09/25 이정택 추가
-
- //2016/04/29 이정택 추가(되의뢰(회송) 시범사업 관련)
- if(RC=='1' && getUserInfo("dutplceinstcd")=="031"){
- var refer = model.getValue("/root/tmp/refer_sibum");
- if(refer == "W"){
- rsrvflag = "W"; // 접수구분을 되의뢰(회송)으로 변경
- }
- }
- //2016/04/29 이정택 추가(되의뢰(회송) 시범사업 관련)
-
- //2016/01/21 이정택 추가(접수된 환자에 대해서 진료교류로 수정할 수 있도록 프로그램 수정)
- //2017/03/24 변경이벤트 일때만 타도록 수정(이정택)
- if(RC=='1' && model.getValue("/root/main/reservation/rsrvflag")!="V" && histstat == 'C' && (getUserInfo("dutplceinstcd")=="031" || getUserInfo("dutplceinstcd")=="032")){
- if(messageBox("해당 환자를 진료교류로 수정하시겠습니까?","Q999","") == 6){
- rsrvflag = "V"; // 해당환자를 진료교류로 변경
- hieyn = "Y"; // HIE쪽에 정보를 전송하기 위해서 플래그값 수정
- }
- }
- //2016/01/21 이정택 추가
-
- //2016/04/29 이정택 추가(되의뢰(회송) 시범사업 관련)
- //2017/03/24 변경이벤트 일때만 타도록 수정(이정택)
- if(RC=='1' && getUserInfo("dutplceinstcd")=="031" && histstat == 'C' && model.getValue("/root/main/reservation/rsrvflag")!="W"){
- var refer = model.getValue("/root/tmp/refer_sibum");
- var title = model.getValue("/root/init/P0341list/P0341[cdsid='P0341W']/cdnm");
- if(refer == "W"){
- if(messageBox("해당 환자를 "+ title + "으로 수정하시겠습니까?","Q999","") == 6){
- rsrvflag = "W"; // 접수구분을 되의뢰(회송)으로 변경
- }
- }
- }
- //2016/04/29 이정택 추가(되의뢰(회송) 시범사업 관련)
-
- }
- //예약(T) 아니면- END
- //의뢰(H) - P0341
- if(etcordflag == 'H'){
- rsrvflag = 'C'; //의뢰(C) - 컨설트
- }
-
- model.setValue("/root/send/updatedata/checkfnexam", model.getValue("/root/hidden/source/checkfnexam"));
-
- //환자정보 값을 send 노드 아래로 복사한다.
- model.copyNode("/root/send/updatedata/patinfolist", "/root/main/patinfo/patinfolist");
-
- //환자정보에 있는 진료일자, 진료과, 접수일, 접수번호, 예약 구분 플래그를 삭제한다. - PMOHTEMP 테이블에서 초진환자 정보를 가져올때 같이 가져오기 때문에..
- model.removenode("/root/send/updatedata/patinfolist/orddd");
- model.removenode("/root/send/updatedata/patinfolist/orddeptcd");
- model.removenode("/root/send/updatedata/patinfolist/acptdd");
- model.removenode("/root/send/updatedata/patinfolist/acptno");
- model.removenode("/root/send/updatedata/patinfolist/rsrvflag");
-
- //예약정보를 SEND로 복사한다.
- model.copyNode("/root/send/updatedata/reservation", "/root/main/reservation");
- model.setValue("/root/send/updatedata/reservation/histstat", histstat);
- model.setValue("/root/send/updatedata/reservation/rsrvflag", rsrvflag);
- //변경전 데이터를 가져가기 위해 변경전의 데이터도 함께 SEND로 복사한다.
- if(histstat == 'C'){
- //변경전의 데이터 세팅..
- model.makeNode("/root/send/updatedata/reservation/bforddd");
- model.makeNode("/root/send/updatedata/reservation/bfordtm");
- model.makeNode("/root/send/updatedata/reservation/bforddeptcd");
- model.makeNode("/root/send/updatedata/reservation/bforddrid");
- model.makeNode("/root/send/updatedata/reservation/bfacptseqno");
- model.makeNode("/root/send/updatedata/reservation/bfcretno");
- model.makeNode("/root/send/updatedata/reservation/bfspecorddescyn");
- // model.makeNode("/root/send/updatedata/reservation/updtcnclresn");
- model.makeNode("/root/send/updatedata/reservation/bfhiststat");
-
- model.setValue("/root/send/updatedata/reservation/bforddd" , model.getValue("/root/tmp/reservation/orddd"));
- model.setValue("/root/send/updatedata/reservation/bfordtm" , model.getValue("/root/tmp/reservation/ordtm"));
- model.setValue("/root/send/updatedata/reservation/bforddeptcd" , model.getValue("/root/tmp/reservation/orddeptcd"));
- model.setValue("/root/send/updatedata/reservation/bforddrid" , model.getValue("/root/tmp/reservation/orddrid"));
- model.setValue("/root/send/updatedata/reservation/bfhiststat" , model.getValue("/root/tmp/reservation/histstat"));
- model.setValue("/root/send/updatedata/reservation/bfacptseqno" , model.getValue("/root/tmp/reservation/acptseqno"));
- model.setValue("/root/send/updatedata/reservation/bfspecorddescyn" , model.getValue("/root/tmp/reservation/specorddescyn"));
- model.setValue("/root/send/updatedata/reservation/bfcretno" , model.getValue("/root/tmp/reservation/cretno"));
-
- // }else if( histstat == 'X'){
- // model.makeNode("/root/send/updatedata/reservation/updtcnclresn");
- }
-
- //2007-10-08 이동식 추가
- if(histstat != 'X'){
- if(histstat == 'C'){
- if( model.getValue("/root/main/reservation/orddeptcd") != model.getValue("/root/tmp/reservation/orddeptcd") ||
- model.getValue("/root/main/reservation/orddrid") != model.getValue("/root/tmp/reservation/orddrid") ||
- model.getValue("/root/main/reservation/orddd") != model.getValue("/root/tmp/reservation/orddd") ||
- model.getValue("/root/main/reservation/ordtm") != model.getValue("/root/tmp/reservation/ordtm")){
- var orddrid = model.getValue("/root/main/reservation/orddrid");
- var orddeptcd = model.getValue("/root/main/reservation/orddeptcd");
- var orddd = model.getValue("/root/main/reservation/orddd");
- var ordtm = model.getValue("/root/main/reservation/ordtm");
- var fsexamflag = model.getValue("/root/main/reservation/fsexamflag");
- var subdeptcd = model.getValue("/root/main/reservation/subdeptcd");
- var centcd = model.getValue("/root/main/reservation/centcd");
-
- if(RA != 'Y'){
- //의사휴진일정 및 진료환자정원 조회 - PAM.js
- var retVal = fGetVerifyHoli2(centcd, orddrid, orddeptcd, subdeptcd, orddd, ordtm, fsexamflag, RSRVFLAG, 'Y');
- if(retVal == false){
- return false;
-
- }else if( retVal != true){
- if(CENTERYN != 'Y'){
- //센터접수
- model.setValue("/root/send/updatedata/reservation/centcd", retVal);
- model.setValue("/root/main/reservation/centcd", retVal);
- }
- }else{
- if(CENTERYN != 'Y'){
- //센터코드 초기화
- model.setValue("/root/send/updatedata/reservation/centcd", '-');
- model.setValue("/root/main/reservation/centcd", '-');
- }
- }
- }
- }
- }else{
- var orddrid = model.getValue("/root/main/reservation/orddrid");
- var orddeptcd = model.getValue("/root/main/reservation/orddeptcd");
- var orddd = model.getValue("/root/main/reservation/orddd");
- var ordtm = model.getValue("/root/main/reservation/ordtm");
- var fsexamflag = model.getValue("/root/main/reservation/fsexamflag");
- var subdeptcd = model.getValue("/root/main/reservation/subdeptcd");
- var centcd = model.getValue("/root/main/reservation/centcd");
-
- if(RA != 'Y'){
- //의사휴진일정 및 진료환자정원 조회 - PAM.js
- var retVal = fGetVerifyHoli2(centcd, orddrid, orddeptcd, subdeptcd, orddd, ordtm, fsexamflag, RSRVFLAG, 'Y');
- if( retVal == false ){
- return false;
- }else if( retVal != true ){
- //센터접수
- model.setValue("/root/send/updatedata/reservation/centcd", retVal);
- model.setValue("/root/main/reservation/centcd", retVal);
- }else{
- //센터코드 초기화
- model.setValue("/root/send/updatedata/reservation/centcd", '-');
- model.setValue("/root/main/reservation/centcd", '-');
- }
- }
- }
- }
- //END..
- //reset result node
-
- //채번로직 사용할 경우(서울성모만 반영중)
- if(RB == 'Y'){
- var rrgstno1 = model.getValue("/root/main/patinfo/patinfolist/rrgstno1").getTrim();
- var rrgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2").getTrim();
- var rrgstno = rrgstno1.concat(rrgstno2);
-
- //신체감정 & TA(자보-교통사고)가 아닐 경우
- if(etcordflag != "B" && etcordflag != "T"){
- //자격조회 조회 안하고 자격조회에 체크 되어 있을 경우
- if( model.getValue("/root/hidden/flag/check_insuinfo_flag") != 'Y' && model.getValue("/root/hidden/com/searchInsuInfoYN") == 'Y' ){
- //병초이면서 예약일때 자격조회 체크
- if(fsexamflag == "F" && histstat == 'T'){
- //주민번호가 정화기 입력된 경우만 자동 자격조회기능
- if( rrgstno1.length == 6 && rrgstno2.length == 7 && isResidentNo(rrgstno) == true){
- //if( messageBox("병초 환자인 경우 자격조회를 하지 않으면 등록번호가 생성되지 않습니다. \n등록번호를 생성하지 않고 예약하시겠습니까 ?", "Q999", "") != 6){
- fInsuInfoSearch("P");
- //button7.dispatch("DOMActivate");
- //}
- }
- }
- }
- }
-
- //병초를 제외한 예약,변경에 대해 자격조회 팝업호출없이 자격조회 되도록하기위해
- if(histstat == 'T' || histstat == 'C'){
- if(fsexamflag != 'F'){
- fInsuInfoSearch("I");
- }
- }
-
- //채번사용여부(초진인경우 & 예약일경우만&자격조회한경우)
- if(fsexamflag == "F" && histstat == 'T' && model.getValue("/root/hidden/flag/check_insuinfo_flag") == 'Y'){
- //주민번호가 정확히 입력된 경우만 채번
- if( rrgstno1.length == 6 && rrgstno2.length == 7 && isResidentNo(rrgstno) == true){
- btn_savePatInfo.dispatch("DOMActivate");
- }
- }
-
- //선택진료(환자번호 존재 & 선택의사가 Y일 경우)
- if( model.getValue("/root/main/patinfo/patinfolist/pid").length > 0 && model.getValue("/root/main/reservation/specordyn") == "Y"){
- model.makeValue("/root/send/data4/pid" , model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.makeValue("/root/send/data4/instcd" , model.getValue("/root/hidden/session/sess_dutplceinstcd"));
- model.makeValue("/root/send/data4/orddd" , model.getValue("/root/main/reservation/orddd"));
- model.makeValue("/root/send/data4/orddeptcd" , model.getValue("/root/main/reservation/orddeptcd"));
- model.makeValue("/root/send/data4/orddrid" , model.getValue("/root/main/reservation/orddrid"));
- submit("TRPMO00125");
- //현재 예약 내역으로 선택진료가 없을 경우
- if (model.getValue("/root/tempchk/specapp/rgstyn") == "N"){
- //협력예약일 경우 제외
- if(RC != "1" && histstat == 'T'){
- //선택진료동의여부에 Y일경우만 예약가능
- if(model.getValue("/root/main/reservation/specorddescyn") != "Y"){
- if( messageBox("선택진료녹취 또는 신택진료 신청서가 작성되지 않았습니다.. \n신청서를 작성하시겠습니까?", "Q999", "") == 6){
- return;
- }
- }
- }
- }
- //선택진료
- SpecOrdDescYnCheck();
- }
- }
-
- model.resetInstanceNode("/root/main/result");
- model.makeNode("/root/main/result/outhist");
-
- model.setValue("/root/send/updatedata/reservation/searchInsuInfoyn" , model.getValue("/root/main/reservation/searchInsuInfoyn"));
- model.setValue("/root/send/updatedata/reservation/insukind" , model.getValue("/root/main/reservation/insukind"));
- model.setValue("/root/send/updatedata/reservation/insucd" , model.getValue("/root/main/reservation/insucd"));
- model.setValue("/root/send/updatedata/reservation/insuno" , model.getValue("/root/main/reservation/insuno"));
- model.setValue("/root/send/updatedata/reservation/insdnm" , model.getValue("/root/main/reservation/insdnm"));
- model.setValue("/root/send/updatedata/reservation/ptin_fromdd" , model.getValue("/root/main/reservation/ptin_fromdd"));
- //칠곡에 한해서 센터코드 안들어 왔을시 예외처리 하도록 프로그램 수정(2017/03/14 이정택)
- var centcd = model.getValue("/root/send/updatedata/reservation/centcd");
- if(getUserInfo("dutplceinstcd")=='032' && (isNull(centcd) || centcd=='-')){
- messageBox("센터코드가 입력되지 않았습니다. 센터코드 선택 후 저장부탁드립니다.", "E999");
- return;
- }
- //칠곡에 한해서 센터코드 안들어 왔을시 예외처리 하도록 프로그램 수정(2017/03/14 이정택)
-
- //전화예약 예약접수
- if(submit("TXPMO00202")){
- //model.resetInstanceNode("/root/main/reservation");
-
- //예약정보 / 외래등록내역(달력) / 외래등록내역 초기화
- //btn_clear.dispatch("DOMActivate");
-
- // if( model.getValue("/root/hidden/source/checkfnexam") == '1' ){
- // //신환
- // model.copyNode("/root/main/outhist", "/root/main/result/outhist");
- //
- // }else{
- // //구환
- // model.copyNode("/root/main/outhist", "/root/main/result/outhist");
- // }
- model.copyNode("/root/main/outhist", "/root/main/result/outhist");
- //달력 초기화
- //initCalendar();
- //외래등록내역 초기화
- //model.removeNodeset("/root/main/outrgst/outrgstlist");
- model.refresh();
- }else{
- return false;
- }
-
- //2007-10-22 이동식 추가
- if( model.getValue("/root/main/patinfo/patinfolist/pid").length > 0 ){ //신환일경우 차트대출 안함.
- if( getNodesetCount("/root/main/result/chart/chartlist") < 1 || model.getValue("/root/main/reservation/tablename") == 'temp'){
- return false;
- }
-
- model.removeNodeset("/root/send/chart");
- if( histstat == 'T' ){ //예약
- model.makeValue("/root/send/chart/high_flag", "I");
- model.makeValue("/root/send/chart/flag", "I");
- model.makeValue("/root/send/chart/pid", model.getValue("/root/main/result/chart/chartlist/pid"));
- model.makeValue("/root/send/chart/orddd", model.getValue("/root/main/result/chart/chartlist/orddd"));
- model.makeValue("/root/send/chart/cretno", model.getValue("/root/main/result/chart/chartlist/cretno"));
- model.makeValue("/root/send/chart/acptseqno", model.getValue("/root/main/result/chart/chartlist/acptseqno"));
- model.makeValue("/root/send/chart/orddeptcd", model.getValue("/root/main/result/chart/chartlist/orddeptcd"));
- model.makeValue("/root/send/chart/orddrid", model.getValue("/root/main/result/chart/chartlist/orddrid"));
- model.makeValue("/root/send/chart/ordtm", model.getValue("/root/main/result/chart/chartlist/ordtm"));
- model.makeValue("/root/send/chart/fsexamflag", model.getValue("/root/main/result/chart/chartlist/fsexamflag"));
- model.makeValue("/root/send/chart/rsrvflag", '2');
- model.makeValue("/root/send/chart/msgcnts", '-');
- model.makeValue("/root/send/chart/subdeptcd", model.getValue("/root/main/reservation/subdeptcd"));
- model.makeValue("/root/send/chart/centcd", model.getValue("/root/main/reservation/centcd"));
-
- }else if( histstat == 'C' ){ //변경
- model.makeValue("/root/send/chart[1]/high_flag", "U");
- model.makeValue("/root/send/chart[1]/flag", "D");
- model.makeValue("/root/send/chart[1]/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.makeValue("/root/send/chart[1]/orddd", model.getValue("/root/tmp/reservation/orddd"));
- model.makeValue("/root/send/chart[1]/cretno", model.getValue("/root/tmp/reservation/cretno"));
- model.makeValue("/root/send/chart[1]/acptseqno", model.getValue("/root/tmp/reservation/acptseqno"));
- model.makeValue("/root/send/chart[1]/orddeptcd", model.getValue("/root/tmp/reservation/orddeptcd"));
- model.makeValue("/root/send/chart[1]/orddrid", model.getValue("/root/tmp/reservation/orddrid"));
- model.makeValue("/root/send/chart[1]/ordtm", model.getValue("/root/tmp/reservation/ordtm"));
- model.makeValue("/root/send/chart[1]/fsexamflag", model.getValue("/root/tmp/reservation/fsexamflag"));
- model.makeValue("/root/send/chart[1]/rsrvflag", model.getValue("/root/tmp/reservation/rsrvflag"));
- model.makeValue("/root/send/chart[1]/msgcnts", '-');
- model.makeValue("/root/send/chart[1]/subdeptcd", model.getValue("/root/tmp/reservation/subdeptcd"));
- model.makeValue("/root/send/chart[1]/centcd", model.getValue("/root/tmp/reservation/centcd"));
-
- model.makeValue("/root/send/chart[2]/high_flag", "U");
- model.makeValue("/root/send/chart[2]/flag", "I");
- model.makeValue("/root/send/chart[2]/pid", model.getValue("/root/main/result/chart/chartlist/pid"));
- model.makeValue("/root/send/chart[2]/orddd", model.getValue("/root/main/result/chart/chartlist/orddd"));
- model.makeValue("/root/send/chart[2]/cretno", model.getValue("/root/main/result/chart/chartlist/cretno"));
- model.makeValue("/root/send/chart[2]/acptseqno", model.getValue("/root/main/result/chart/chartlist/acptseqno"));
- model.makeValue("/root/send/chart[2]/orddeptcd", model.getValue("/root/main/result/chart/chartlist/orddeptcd"));
- model.makeValue("/root/send/chart[2]/orddrid", model.getValue("/root/main/result/chart/chartlist/orddrid"));
- model.makeValue("/root/send/chart[2]/ordtm", model.getValue("/root/main/result/chart/chartlist/ordtm"));
- model.makeValue("/root/send/chart[2]/fsexamflag", model.getValue("/root/main/result/chart/chartlist/fsexamflag"));
- model.makeValue("/root/send/chart[2]/rsrvflag", model.getValue("/root/main/reservation/rsrvflag"));
- model.makeValue("/root/send/chart[2]/msgcnts", '-');
- model.makeValue("/root/send/chart[2]/subdeptcd", model.getValue("/root/main/reservation/subdeptcd"));
- model.makeValue("/root/send/chart[2]/centcd", model.getValue("/root/main/reservation/centcd"));
- }else if( histstat == 'X' ){ //취소
- model.makeValue("/root/send/chart/high_flag", "D");
- model.makeValue("/root/send/chart/flag", "D");
- model.makeValue("/root/send/chart/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.makeValue("/root/send/chart/orddd", model.getValue("/root/tmp/reservation/orddd"));
- model.makeValue("/root/send/chart/cretno", model.getValue("/root/tmp/reservation/cretno"));
- model.makeValue("/root/send/chart/acptseqno", model.getValue("/root/tmp/reservation/acptseqno"));
- model.makeValue("/root/send/chart/orddeptcd", model.getValue("/root/tmp/reservation/orddeptcd"));
- model.makeValue("/root/send/chart/orddrid", model.getValue("/root/tmp/reservation/orddrid"));
- model.makeValue("/root/send/chart/ordtm", model.getValue("/root/tmp/reservation/ordtm"));
- model.makeValue("/root/send/chart/fsexamflag", model.getValue("/root/tmp/reservation/fsexamflag"));
- model.makeValue("/root/send/chart/rsrvflag", model.getValue("/root/tmp/reservation/rsrvflag"));
- model.makeValue("/root/send/chart/msgcnts", '-');
- model.makeValue("/root/send/chart/subdeptcd", model.getValue("/root/main/reservation/subdeptcd"));
- model.makeValue("/root/send/chart/centcd", model.getValue("/root/main/reservation/centcd"));
- }
-
- //차트대출 신청/취소
- submit("TXPMO00105");
- model.removeNodeset("/root/send/chart");
- //END..
- }
-
- //hie 환자관련 처리-이윤주(20140916)
- //HIE 환자 일시에만 타도록 수정(20140925 이정택)
- //HIE이면서 예약구분이 [진료교류]일때만 데이터 전송하도록 수정(2016/01/22)
- if(hieyn=="Y" && model.getValue("/root/send/updatedata/reservation/rsrvflag")=="V"){
- model.makeValue("/root/main/hiepat/orddd",model.getValue("/root/main/reservation/orddd"));
- model.makeValue("/root/main/hiepat/orddeptcd",model.getValue("/root/main/reservation/orddeptcd"));
- model.makeValue("/root/main/hiepat/orddrid",model.getValue("/root/main/reservation/orddrid"));
- model.makeValue("/root/main/hiepat/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.makeValue("/root/main/hiepat/fsexamflag",model.getValue("/root/main/reservation/fsexamflag"));
- model.makeValue("/root/main/hiepat/histstat",histstat);
- model.makeValue("/root/main/hiepat/name",model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.makeValue("/root/main/hiepat/birthdd",model.getValue("/root/main/patinfo/patinfolist/brthdd"));
- model.makeValue("/root/main/hiepat/gendercd",model.getValue("/root/main/patinfo/patinfolist/sex"));
- model.makeValue("/root/main/hiepat/addrbase",model.getValue("/root/main/patinfo/patinfolist/addr"));
- model.makeValue("/root/main/hiepat/addrdetl",model.getValue("/root/main/patinfo/patinfolist/detladdr"));
- model.makeValue("/root/main/hiepat/telno",model.getValue("/root/main/patinfo/patinfolist/mpphontel"));
- model.makeValue("/root/main/hiepat/rrgstno",model.getValue("/root/main/patinfo/patinfolist/rrgstno1")+model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
-
- fHIEMakeRsrv("/root/main/hiepat");
-
- model.removeNodeset("/root/main/hiepat");
-
- hieyn = "N";
- }
- //
-
- //예약/수정/취소가 성공하면 화면 클리어한다.
- fClearAfterSave();
- model.resetInstanceNode("/root/main/h_dcuc/dcuc");
- model.refresh();
- return true;
- }
-
- function fInitialize(){
- //model.resetInstanceNode("/root/main/patinfo/patinfolist");
- model.resetInstanceNode("/root/main/reservation");
- model.resetInstanceNode("/root/main/srchtelrsrv");
- model.resetInstanceNode("/root/hidden/holdrrgstno");
- model.resetInstanceNode("/root/main/h_dcuc/dcuc");
-
- //2016/01/21 이정택 수정
- model.resetInstanceNode("/root/send");
- // model.resetInstanceNode("/root/send/updatedata/patinfolist");
- // model.resetInstanceNode("/root/send/updatedata/reservation");
- //2016/01/21 이정택 수정
-
- model.removeNodeset("/root/main/outhist/outhistlist");
- model.removeNodeset("/root/main/test/testlist");
- model.removeNodeset("/root/hidden/con/examcnt");
- model.removeNodeset("/root/main/outrgst/outrgstlist");
- model.removeNodeset("/root/main/outtelrsrv/outtelrsrvlist");
- model.removeNodeset("/root/main/inhist/inhistlist");
- model.removeNodeset("/root/main/inhistdetl/inhistdetlist");
-
- delPatientInfos(); //상단환자정보 클리어 - com/commonweb/js/common.js
-
- cap_privacy.visible = false; // 사생활보호
-
- //보험 자격조회 체크 여부 초기화
- model.setValue("/root/hidden/flag/check_insuinfo_flag", "N");
- //model.resetInstanceNode("/root/send");
- //model.resetInstanceNode("/root/hidden/source");
- model.resetInstanceNode("/root/tmp");
- //model.setFocus("ipt_pid");
-
- //1분 간격 풀기 초기화
- model.setValue("/root/main/oneminute", "");
-
- //달력 초기화 데이터 셋팅
- model.setValue("/root/hidden/calendar/year", "");
- model.setValue("/root/hidden/calendar/month", "");
- initCalendar();
-
- beforeObj = document.controls(beforeId);//선택한 버튼만 체크되게함.
- if(beforeObj != null) beforeObj.disabled = "false";
-
- fChangeButtonColor();
-
- /*
- //달력 초기화
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate();
- setCalendar(isDate);
- */
- //환자특이내역 존재여부 표기 초기화
- btn_patspcfyn.attribute("background-color") = "#c0c0c0";
-
- //설명여부 디폴트값 세팅
- model.setValue("/root/main/reservation/specorddescyn", 'N');
- model.setValue("/root/main/reservation/insuchrgyn", 'N');
- model.setValue("/root/main/reservation/ordreqdescyn", ' ');
- model.setValue("/root/main/reservation/ordreqhospgrde", '1');
-
- //인적사항 세팅
- // model.setValue("/root/main/patinfo/patinfolist/engnm", '-');;
- // model.setValue("/root/main/patinfo/patinfolist/hometel", '-');
- // model.setValue("/root/main/patinfo/patinfolist/mpphontel", '-');
- // model.setValue("/root/main/patinfo/patinfolist/etctel1", '-');
- model.setValue("/root/main/patinfo/patinfolist/zipcd1", '000');
- model.setValue("/root/main/patinfo/patinfolist/zipcd2", '00');
- model.setValue("/root/main/patinfo/patinfolist/zipcdseq", '0');
- // model.setValue("/root/main/patinfo/patinfolist/detladdr", '-');
-
- //예약 세팅
- model.setValue("/root/main/reservation/telrsrvrem", '-');
- model.setValue("/root/main/reservation/updtcnclresn", '-');
-
- //센터 및 과코드 초기화처리(2016/01/21)
- model.makeValue("/root/main/reservation/centcd", "-");
- cmb_centcd.dispatch("xforms-value-changed");
- //센터 및 과코드 초기화처리(2016/01/21)
-
- //신환 + 구환 조회 플래그 세팅
- model.setValue("/root/hidden/source/checkfnexam", "1");
-
- //협력의뢰 디폴트 세팅
- if( RC == '1' ){
- model.setValue("/root/main/reservation/rqstflag", '1');
- }else if( RC == 'U' ){
- model.setValue("/root/main/reservation/rqstflag", 'U');
- }
-
- model.setValue("/root/main/reservation/etcordflag", "-");
- //보험정보 초기화
- INSUKIND = gsInsu_IlBan; //보험유형 일반
-
- //자격조회여부
- //model.setValue("/root/hidden/com/searchInsuInfoYN", "Y");
-
- // HIE관련 초기화 추가(2016/10/19)
- var hieyn = "N";
- var hie_rrgstno1 = "";
- var hie_rrgstno2 = "";
- var hie_sex = "";
- var hie_zipcd1 = "";
- var hie_zipcd2 = "";
- var hie_addrbase = "";
- var hie_addrdetl = "";
- // HIE관련 초기화 추가(2016/10/19)
-
- model.refresh();
- }
-
- function fGetOutRgst(){
- model.setValue("/root/send/centcd", model.getValue("/root/main/reservation/centcd"));
- model.setValue("/root/send/orddeptcd", model.getValue("/root/main/reservation/orddeptcd"));
- model.setValue("/root/send/subdeptcd", model.getValue("/root/main/reservation/subdeptcd"));
- model.setValue("/root/send/orddrid", model.getValue("/root/main/reservation/orddrid"));
- model.setValue("/root/send/orddd", model.getValue("/root/main/reservation/orddd"));
-
- if( model.getValue("/root/send/centcd") == '' || model.getValue("/root/send/centcd") == ' ' ){
- model.setValue("/root/send/centcd", '-');
- }
-
- if( submit("TRPMO00204") ){
- grd_outrgst.rebuildStyle();
- setRowStyle("grd_outrgst", "4^4^4^4", "F^D^4^5", "fsexamflag");
- setRowStyle("grd_outrgst", "1^1^1", "S", "reglscheflag");
-
- //협력의뢰센터의 예약 캐파일 경우에는 색상 변경(2016/09/05 이정택)
- setRowStyle("grd_outrgst", "12", "A", "etcrsrvflag");
- //협력의뢰센터의 예약 캐파일 경우에는 색상 변경(2016/09/05 이정택)
-
- //심층진료 예약 Capacity(생산능력)일 경우에는 색상 변경(2017/12/01 이정택)
- setRowStyle("grd_outrgst", "10", "B", "etcrsrvflag");
- //심층진료 예약 Capacity(생산능력)일 경우에는 색상 변경(2017/12/01 이정택)
-
- //grd_outrgst.rebuild();
-
- }
-
- //전화예약 오전/오후 예약자수 count
- var rows = grd_outrgst.rows;
- var telamcnt = 0;
- var telpmcnt = 0;
- var orddeptamcnt = 0;
- var orddeptpmcnt = 0;
-
- for (i=0; i<rows; i++) {
- if(model.getValue("/root/main/outrgst/outrgstlist["+ i +"]/rsrvflag") == '2'){
- var ordtm = model.getValue("/root/main/outrgst/outrgstlist["+ i +"]/ordtm");
- if( ordtm < "1300"){
- telamcnt++;
- }else if(ordtm > "1300"){
- telpmcnt++;
- }
-
- }else if(model.getValue("/root/main/outrgst/outrgstlist["+ i +"]/rsrvflag") == '9'){
- var ordtm = model.getValue("/root/main/outrgst/outrgstlist["+ i +"]/ordtm");
- if( ordtm < "1300"){
- orddeptamcnt++;
- }else if(ordtm > "1300"){
- orddeptpmcnt++;
- }
- }
- }
-
- model.setValue("/root/resercnt/telamcnt", telamcnt);
- model.setValue("/root/resercnt/telpmcnt", telpmcnt);
- model.setValue("/root/resercnt/orddeptamcnt", orddeptamcnt);
- model.setValue("/root/resercnt/orddeptpmcnt", orddeptpmcnt);
- model.refresh();
- /*
- for(var i=1; i <= grd_outrgst.rows ; i++){
- var reglscheflag = model.getValue("/root/main/outrgst/outrgstlist[" + i + "]/pid");
- if (reglscheflag == "1524470") {
- grd_outrgst.cellStyle("color", i, grd_outrgst.colref("pid")) = 'ffff99';
- }
- }
- grd_outrgst.refresh();
- return;
- */
- }
-
- //검사일정 정원 지우기
- function fRemoveCapa(){
- var rows = grd_calendar.rows;
- var cols = grd_calendar.cols;
- var cellColor = '';
- for( var row = 1; row < rows; row++ ){
- for( var col = 0; col < 7; col++){
- cellColor = grd_calendar.cellStyle("background-color", row, col);
- if( cellColor == "#99ff66" ){
- grd_calendar.valueMatrix(row , col + 7) = '';
- }
- }
- }
- grd_calendar.refresh();
- }
-
- //달력을 클릭(선택) 했을 때
- function fClickOnCalendar(){
- var calRow = grd_calendar.row;
- var calCol = grd_calendar.col;
- if(calRow > 0 && calCol >= 0 ){
- calCol = calCol % 7;
- }else{
- return false;
- }
-
- //달력색상을 저장을 위한 노드
- model.makeNode("/root/tmp/cellColor");
-
- //검사일정 체크위해
- var cellColor = grd_calendar.cellStyle("background-color", calRow, calCol);
- //선택된 셀 표시
- setCellColor(calRow, calCol);
- //fRemoveCapa();
- //calCol = calCol % 7;
-
- //달력색상을 저장(예약시 마감된 날짜를 처리하기 위해)
- model.setValue("/root/tmp/cellColor", cellColor);
-
- var isDay = grd_calendar.valueMatrix(calRow, calCol);
- if( isDay != "" ){
- if( isDay.length == 1 ) isDay = "0" + isDay;
-
- var dd = ( (model.getValue("/root/hidden/calendar/year")).concat(model.getValue("/root/hidden/calendar/month")) ).concat(isDay);
- //오늘 이후의 날자만 선택가능하게 한다.
- // if( getDateInterval( getCurrentDate(), dd) <= 0 ){
- //
- // messageBox("금일 혹은 금일 이전으로 예약 불가능합니다.", "E999", "");
- // model.removeNodeset("/root/main/outrgst/outrgstlist");
- // grd_outrgst.refresh();
- // return false;
- // }else
- if( cellColor == "#99ff66" ){
- messageBox("의사일정이 검사로 잡힌 날은 전화예약 할 수 없습니다.", "E999", "");
- model.removeNodeset("/root/main/outrgst/outrgstlist");
- model.resetInstanceNode("/root/resercnt");
- grd_outrgst.refresh();
- return false;
- }else if( grd_calendar.valueMatrix(calRow, calCol + 7) == '' || grd_calendar.valueMatrix(calRow, calCol + 7) == ' ' || grd_calendar.valueMatrix(calRow, calCol + 7).getTrim() == '\n'){
- //Free 예약 권한
- if( RA != 'Y'){
- messageBox("의사 진료일정이 없는 날입니다.", "E999", "");
- model.removeNodeset("/root/main/outrgst/outrgstlist");
- model.resetInstanceNode("/root/resercnt");
- grd_outrgst.refresh();
- return false;
- }
- }
- //달력날짜 세팅
- model.setValue("/root/main/reservation/orddd", dd);
- //model.setValue("/root/main/reservation/ordtm", "");
- model.refresh();
- ipt_orddd.dispatch("xforms-value-changed");
-
- if( model.getValue("/root/main/reservation/orddeptcd") != "" && model.getValue("/root/main/reservation/orddrid") != "" && model.getValue("/root/main/reservation/orddd") != ""){
- fGetOutRgst();
- }
- }
- }
-
- function fGetCalendarData(){
- //1분 간격 풀기 초기화
- model.setValue("/root/main/oneminute", "");
-
- //외래등록내역 삭제
- model.removeNodeset("/root/main/outrgst/outrgstlist");
- model.resetInstanceNode("/root/resercnt");
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/centcd", model.getValue("/root/main/reservation/centcd"));
- model.setValue("/root/send/orddeptcd", model.getValue("/root/main/reservation/orddeptcd"));
- model.setValue("/root/send/subdeptcd", model.getValue("/root/main/reservation/subdeptcd"));
- model.setValue("/root/send/orddrid", model.getValue("/root/main/reservation/orddrid"));
- model.setValue("/root/send/date", model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month"));
-
- if( model.getValue("/root/send/centcd") == '' || model.getValue("/root/send/centcd") == ' '){
- model.setValue("/root/send/centcd", '-');
- }
-
- model.resetInstanceNode("/root/main/result");
- model.makeNode("/root/main/result/orddrfild");
- model.makeNode("/root/main/result/calendarinfo");
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate();
-
- //진료의 정보가 없을 경우
- if( model.getValue("/root/send/orddrid") == '' ){
- setCalendar(isDate);
- }else{
- if(submit("TRPMO00203")){
- if( getNodesetCount("/root/main/result/calendarinfo/calendarinfolist") > 0 ){
- model.copyNode("/root/hidden/calendarinfo", "/root/main/result/calendarinfo");
- setCalendar2(isDate);
- //fRemoveCapa();
- }else{
- setCalendar(isDate);
- }
-
- model.setValue("/root/main/reservation/ordfild" , model.getValue("/root/main/result/orddrfild/orddrfildlist/ordfild"));
- model.setValue("/root/main/reservation/fstexamrem" , model.getValue("/root/main/result/orddrfild/orddrfildlist/fstexamrem"));
- model.setValue("/root/main/reservation/reexamrem" , model.getValue("/root/main/result/orddrfild/orddrfildlist/reexamrem"));
- model.setValue("/root/main/reservation/centcdyn" , model.getValue("/root/main/result/centcdcheck/centcdckinfoyn/centcdyn"));
-
- // model.removenode("/root/init/centcd");
- // model.makeNode("/root/init/centcd");
- // copyNodeType("/root/init/centcd", "/root/main/result/centcd" , "replace" , model , model);
-
- // cmb_centcd.choices.itemset.attribute("nodeset") = "/root/init/centcd/centcdlist[cd = '"+ cmb_centcd.value +"' ]";
- // cmb_centcd.choices.itemset.attribute("nodeset") = "/root/init/centcd/centcdlist";
- // cmb_centcd.refresh();
- model.refresh();
- }
- }
- }
-
- function fCheckSearchCond(){
- if( model.getValue("/root/hidden/source/checkfnexam") == '1' ){
- return true;
- }else{
- model.setValue("/root/hidden/source/checkfnexam", '1');
- fDisableInputBox();
- //fInitialize();
- model.refresh();
- return true;
- }
- }
-
- function fOneMinuteSpread(){
- if( model.getValue("/root/main/oneminute") == 'Y' || model.getValue("/root/main/oneminute") == 'y' ){
- var rowCount = grd_outrgst.rows - grd_outrgst.fixedRows;
- var timeNow;
- var timeNext;
- var orddd;
- var interval;
- for( var outer = 1; outer < rowCount; outer++ ){
- orddd = grd_outrgst.valueMatrix( outer, 4);
- timeNow = grd_outrgst.valueMatrix( outer, 0);
- timeNext = grd_outrgst.valueMatrix( outer + 1, 0);
- interval = getTimeInterval( timeNow, timeNext ) / 60;
-
- for( inner = 1; inner < interval; inner++ ){
- grd_outrgst.insertRow(outer, 'below', false, false);
- outer = outer + 1;
- rowCount = rowCount + 1;
-
- timeNow = ((timeNow.toDate("hhmm")).getAddDate(1, 'm')).getDateFormat("hhmm");
- grd_outrgst.valueMatrix(outer, 0) = timeNow;
- grd_outrgst.valueMatrix(outer, 4) = orddd;
- }
- }
- grd_outrgst.rebuild();
- }else{
- //fClickOnCalendar();
- fGetOutRgst();
- grd_outrgst.rebuild();
- }
- }
-
- function fGetSexAgeBirthDD(){
- //model.resetInstanceNode("/root/main/patinfo/patinfolist/age");
- model.resetInstanceNode("/root/main/patinfo/patinfolist/brthdd");
-
- var brthdd;
- var rrgstno1 = model.getValue("/root/main/patinfo/patinfolist/rrgstno1");
- var rrgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
-
- if (rrgstno1.length != 6){
- //messageBox("환자주민번호1은 6자리입니다!","E999","");
- model.setFocus("ipt_rrgstno1");
- return false;
- }
-
- if (rrgstno2.length != 7){
- //messageBox("환자주민번호2는 7자리입니다!","E999","");
- model.setFocus("ipt_rrgstno2");
- return false;
- }
- /*
- 9: 1800 ~ 1899년에 태어난 남성
- 0: 1800 ~ 1899년에 태어난 여성
- 1: 1900 ~ 1999년에 태어난 남성
- 2: 1900 ~ 1999년에 태어난 여성
- 3: 2000 ~ 2099년에 태어난 남성
- 4: 2000 ~ 2099년에 태어난 여성
- 5: 1900 ~ 1999년에 태어난 외국인 남성
- 6: 1900 ~ 1999년에 태어난 외국인 여성
- 7: 2000 ~ 2099년에 태어난 외국인 남성
- 8: 2000 ~ 2099년에 태어난 외국인 여성
- */
- var gubn = rrgstno2.substr(0,1);
- switch(gubn){
- case '0' :
- brthdd = '18'.concat(rrgstno1);
- break;
- case '9' :
- brthdd = '18'.concat(rrgstno1);
- break;
- case '1' :
- brthdd = '19'.concat(rrgstno1);
- break;
- case '2' :
- brthdd = '19'.concat(rrgstno1);
- break;
- case '3' :
- brthdd = '20'.concat(rrgstno1);
- break;
- case '4' :
- brthdd = '20'.concat(rrgstno1);
- break;
- case '5' :
- brthdd = '19'.concat(rrgstno1);
- break;
- case '6' :
- brthdd = '19'.concat(rrgstno1);
- break;
- case '7' :
- brthdd = '20'.concat(rrgstno1);
- break;
- case '8' :
- brthdd = '20'.concat(rrgstno1);
- break;
- default :
- brthdd = '19'.concat(rrgstno1);
- break;
- }
-
- if (isValidDateTime(brthdd, "YYYYMMDD") == false){
- messageBox("주민번호 앞6자리 형식오류입니다. 올바른 일자형태로 입력하십시요!","E999","");
- // model.setFocus("ipt_hngnm");
- // model.setValue("/root/main/patinfo/patinfolist/rrgstno1","");
- // model.setValue("/root/main/patinfo/patinfolist/rrgstno2","");
- model.setValue("/root/main/patinfo/patinfolist/brthdd","00000000");
- model.setFocus("ipt_rrgstno1");
- // model.refresh();
- return false;
- }
-
- //model.setValue("/root/main/patinfo/patinfolist/brthdd",brthdd);
- if( isValidDateTime(model.getValue("/root/main/patinfo/patinfolist/brthdd")) == false){
- model.setValue("/root/main/patinfo/patinfolist/brthdd",brthdd);
- }
- var sex = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
- if( model.getValue("/root/main/patinfo/patinfolist/sex") != 'M' || model.getValue("/root/main/patinfo/patinfolist/sex") != 'F' ){
- model.setValue("/root/main/patinfo/patinfolist/sex",getGender(sex));
- }
- //model.setValue("/root/main/patinfo/patinfolist/sex",getGender(sex));
- //var rrgstno = 0;
-
- var rrgstno = rrgstno1.concat(rrgstno2);
- //var age = rrgstno1;
- model.setValue("/root/main/patinfo/patinfolist/age",getFullAge(model.getValue("/root/main/patinfo/patinfolist/brthdd")));
- //model.refresh();
-
-
- if (isResidentNo(rrgstno) == false){
- messageBox("유효하지 않은 주민번호입니다!","E999","");
- model.setFocus("ipt_rrgstno1");
- return false;
- }
-
- //생년월일 세팅 후 휴대전화 입력란으로 이동
- model.setFocus("ipt_hometel");
- return true;
- }
-
- //예약데이터가 정상적으로 모두 입력되었는지 체크한다.
- function fIsRsrvDataOK(){
- //환자이름 체크
- if( model.getValue("/root/main/patinfo/patinfolist/hngnm").getTrim().length < 1 ){
- messageBox("환자 이름을 정확히 입력하지 않았습니다. 다시 시도해 주십시오.", "E999", "" );
- model.setFocus("ipt_pid");
- return false;
- }
-
- //환자 휴대전화번호 체크
- if( model.getValue("/root/main/patinfo/patinfolist/mpphontel").getTrim().length < 1 && model.getValue("/root/main/patinfo/patinfolist/hometel").getTrim().length < 1 ){
- messageBox("환자 휴대전화 번호 또는 연락처는 필수 입력입니다. 다시 시도해 주십시오.", "E999", "" );
- if(model.getValue("/root/main/patinfo/patinfolist/mpphontel").getTrim().length < 1){
- model.setFocus("ipt_mpphontel");
- }else{
- model.setFocus("ipt_hometel");
- }
- return false;
- }
-
- //환자 주민번호 체크
- var rrgstno1 = model.getValue("/root/main/patinfo/patinfolist/rrgstno1").getTrim();
- var rrgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2").getTrim();
- var rrgstno = rrgstno1.concat(rrgstno2);
- if( rrgstno1.length != 6 || rrgstno2.length != 7){
- if( messageBox("주민등록번호를 정확히 입력하지 않았습니다. 무시하고 계속 진행하시겠습니까?", "Q999", "") != 6){
- model.setFocus("ipt_rrgstno1");
- return false;
- }
-
- //사용자 요청사항 주민등록번호를 입력하지 않아도 예약이 진행되도록!!
- if(rrgstno1.length != 6){
- model.setValue("/root/main/patinfo/patinfolist/rrgstno1", "000000");
- }
-
- if(rrgstno2.length != 7){
- model.setValue("/root/main/patinfo/patinfolist/rrgstno2", "0000000");
- }
-
- }else if (isResidentNo(rrgstno) == false){
- if( messageBox("유효하지 않은 주민등록번호입니다. 무시하고 계속 진행하시겠습니까?", "Q999", "") != 6){
- model.setFocus("ipt_rrgstno1");
- return false;
- }
- }
-
- //환자 주소 체크 - 우편번호 포함. 2007-10-06 수정 - 조주희 선생님 요구사항 오류체크하지 말것!
- //우편번호 체크 부분 주석처리(2016/03/16 이정택)
- /*
- var zipcd1 = model.getValue("/root/main/patinfo/patinfolist/zipcd1");
- var zipcd2 = model.getValue("/root/main/patinfo/patinfolist/zipcd2");
- if( zipcd1.length != 3 || zipcd2.length != 3 ){
- //messageBox("우편번호 형식이 정확하지 않습니다.", "E999", "");
- model.setValue("/root/main/patinfo/patinfolist/zipcd1", '000');
- model.setValue("/root/main/patinfo/patinfolist/zipcd2", '000');
- model.setValue("/root/main/patinfo/patinfolist/zipcdseq", '0');
- model.refresh();
- //model.setFocus("ipt_zipcd1");
- //return false;
- }
- */
-
- //의뢰서 설명 여부 체크
- var ordreqdesc = model.getValue("/root/main/reservation/ordreqdescyn");
- if( ordreqdesc == '' || ordreqdesc == null || ordreqdesc == '-' || ordreqdesc == ' '){
- messageBox("의뢰서 설명 여부가 선택되지 않았습니다. 다시 시도해 주십시오", "E999");
- return false;
- }
-
- var orddeptcd = model.getValue("/root/main/reservation/orddeptcd");
- var orddrid = model.getValue("/root/main/reservation/orddrid");
- var orddd = model.getValue("/root/main/reservation/orddd");
- var ordtm = model.getValue("/root/main/reservation/ordtm");
- var nowDD = getCurrentDate();
- var nowTM = getCurrentTime();
- if( orddeptcd == '' || orddeptcd == null || orddeptcd == '-' || orddeptcd == ' ' ){
- messageBox("진료과가 선택되지 않았습니다. 다시 시도해 주십시오.", "E999", "" );
- model.setFocus("cmb_deptcd");
- return false;
- }else if( orddrid == '' || orddrid == null || orddrid == '-' || orddrid == ' ' ){
- messageBox("진료의가 선택되지 않았습니다. 다시 시도해 주십시오.", "E999", "" );
- model.setFocus("cmb_orddrid");
- return false;
- }else if( ! isValidDateTime( orddd, "YYYYMMDD")){
- messageBox("잘못된 진료일자를 입력하셨습니다. 다시 시도해 주십시오.", "E999", "" );
- model.setFocus("ipt_orddd");
- return false;
- }else if( ! isValidDateTime( ordtm, "hhmm")){
- messageBox("잘못된 진료시간을 입력하셨습니다. 다시 시도해 주십시오.", "E999", "" );
- model.setFocus("ipt_ordtm");
- return false;
- }
- /*
- else if( getDateInterval( nowDD, orddd) <= 0 ){
- messageBox("오늘일자 이후로만 예약가능합니다. 다시 시도해 주십시오.", "E999", "" );
- model.setFocus("ipt_orddd");
- return false;
- }else if( orddd == nowDD && getTimeInterval( nowTM, ordtm) <= 0 ){
- messageBox("진료일자가 오늘일 경우 진료시간을 현재시간 이전으로 선택할 수 없습니다. 다시 시도해 주십시오.", "E999", "" );
- model.setFocus("ipt_orddd");
- return false;
- }
- */
- //진료의사 휴진/당직 스케쥴 체크 - 20131031
- if(!fCheckDrSche(orddrid, orddeptcd, orddd, ordtm, "Y", "-", "-", "-")){
- return false;
- }
- return true;
- }
-
- //예약/접수 정보 변경시 변경 할 수 있는 정보인지 또는 데이터를 올바르게 변경하였는지 등을 체크한다.
- function fIsRsrvUpdtDataOK(){
- var histstat = model.getValue("/root/main/reservation/histstat");
- var dracptyn = model.getValue("/root/main/reservation/dracptyn");
- var prcpgenryn = model.getValue("/root/main/reservation/prcpgenryn");
-
- //예약이력
- if( histstat == 'T' ){
- if( dracptyn == 'Y' ){
- messageBox("의사가 접수한 내역은 변경/취소할 수 없습니다.", "E999", "");
- return false;
- }
- return true;
- //접수이력
- }else if( histstat == 'R' ){
- //의사접수여부가 'Y'인 내역은 변경/취소할 수 없습니다.
- if( dracptyn == 'Y' ){
- messageBox("의사가 접수한 내역은 변경/취소할 수 없습니다.", "E999", "");
- return false;
-
- //처방발생여부가 'Y'인 내역은 변경/취소할 수 없습니다.
- }else if( prcpgenryn != '-' && prcpgenryn != '1A' && prcpgenryn != '1C'){
- messageBox("처방이 발생한 내역은 변경/취소할 수 없습니다.", "E999", "");
- return false;
- }else{
- var specordyn = model.getValue("/root/main/reservation/specorddescyn");
- var specordyn_old = model.getValue("/root/tmp/reservation/specorddescyn");
- var fsexamflag = model.getValue("/root/main/reservation/fsexamflag");
- var fsexamflag_old = model.getValue("/root/tmp/reservation/fsexamflag");
-
- //선택진료여부가 변경될 경우
- if( specordyn != specordyn_old ){
- model.setValue("/root/main/reservation/calcyn", 'Y');
- model.setValue("/root/main/reservation/calcflag", 'Y');
- messageBox("선택진료여부가 변경되었습니다. 진찰료에 대해 추가금액 또는 환불금액이 발생할 수 있습니다.", "I999", "");
- }
-
- //초재진구분이 변경될 경우
- if( (fsexamflag != fsexamflag_old) && (fsexamflag == 'R' || fsexamflag_old=='R') ){
- model.setValue("/root/main/reservation/calcyn", 'Y');
- model.setValue("/root/main/reservation/calcflag", 'Y');
- messageBox("초재진구분이 변경되었습니다. 진찰료에 대해 추가금액 또는 환불금액이 발생할 수 있습니다.", "I999", "");
- }
- return true;
- }
-
- //변경/취소할 수 없는 이력내역
- }else{
- messageBox("수정/삭제 하실 수 없는 외래이력내역입니다.", "E999", "");
- return false;
- }
- }
-
- //초재진여부 조회
- function fGetFsexamFlag(){
- //신환/구환 체크
- if( model.getValue("/root/main/patinfo/patinfolist/pid") == '' || model.getValue("/root/main/patinfo/patinfolist/pid") == null ){
- model.setValue("/root/hidden/source/checkfnexam", "1");
- }else{
- model.setValue("/root/hidden/source/checkfnexam", "3");
- }
-
- //구환환자
- if( model.getValue("/root/hidden/source/checkfnexam") == 3 ){
- var orddd = model.getValue("/root/main/reservation/orddd");
- var nowDD = getCurrentDate();
- var orddeptcd = model.getValue("/root/main/reservation/orddeptcd");
- var orddrid = model.getValue("/root/main/reservation/orddrid");
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var oldcretno = model.getValue("/root/tmp/reservation/cretno");
- var oldacptseqno = model.getValue("/root/tmp/reservation/acptseqno");
- var oldorddd = model.getValue("/root/tmp/reservation/orddd");
-
- if(orddd == ''){
- orddd = nowDD;
- }
-
- if( isValidDateTime(orddd, "YYYYMMDD") && getDateInterval( nowDD, orddd) >= 0 ){
- var fsexamflag = model.getValue("/root/main/reservation/fsexamflag");
- model.setValue("/root/main/reservation/fsexamflag", '');
-
- if( orddeptcd == '' ){ // || orddrid == '' ){
- //messageBox("진료과 또는 진료의가 선택되지 않아 초재진여부를 구할 수 없습니다.", "E999", "");
- return false;
-
- }else if( pid == '' ){
- //messageBox("환자등록번호가 입력되지 않아 초재진여부를 구할 수 없습니다.", "E999", "");
- return false;
-
- }else{
- //model.resetInstanceNode("/root/send");
- model.removeNodeset("/root/send/getfsexamflag");
-
- // model.makeNode("/root/send/getfsexamflag/flag");
- // model.makeNode("/root/send/mskind");
- // model.makeNode("/root/send/ordtype");
- // model.makeNode("/root/send/tmp");
- // model.makeNode("/root/send/oldcretno");
- // model.makeNode("/root/send/oldacptseqno");
- // model.makeNode("/root/send/oldorddd");
-
- model.makeValue("/root/send/getfsexamflag/flag", 'B');
- model.makeValue("/root/send/getfsexamflag/mskind", 'M');
- model.makeValue("/root/send/getfsexamflag/ordtype", 'O');
- model.makeValue("/root/send/getfsexamflag/tmp", '-');
- model.makeValue("/root/send/getfsexamflag/pid", pid);
- model.makeValue("/root/send/getfsexamflag/orddrid", orddrid);
- model.makeValue("/root/send/getfsexamflag/orddeptcd", orddeptcd);
- model.makeValue("/root/send/getfsexamflag/orddd", orddd);
- model.makeValue("/root/send/getfsexamflag/oldcretno", oldcretno);
- model.makeValue("/root/send/getfsexamflag/oldacptseqno", oldacptseqno);
- model.makeValue("/root/send/getfsexamflag/oldorddd", oldorddd);
-
- model.makeNode("/root/main/result/fsexam");
-
- //초진재진 구분 기능 호출
- if(submit("TRPMO00207")){
- var fsexamflag = model.getValue("/root/main/result/fsexam/otpt/fsexamflag");
- model.setValue("/root/main/reservation/fsexamflag", fsexamflag);
- //2016/11/28
- /*
- if( fsexamflag == "R" || fsexamflag == "S"){
- opt_remfact.attribute("ref") = "/root/main/reservation/reexamrem";
- model.refresh();
- }else{
- opt_remfact.attribute("ref") = "/root/main/reservation/fstexamrem";
- model.refresh();
- }
- */
- //2016/11/28
- }
-
- model.removeNodeset("/root/main/result/fsexam");
- model.removeNodeset("/root/send/getfsexamflag");
- // model.removenode("/root/send/flag");
- // model.removenode("/root/send/mskind");
- // model.removenode("/root/send/ordtype");
- // model.removenode("/root/send/tmp");
- // model.removenode("/root/send/oldcretno");
- // model.removenode("/root/send/oldacptseqno");
- // model.removenode("/root/send/oldorddd");
- }
- }
-
- //신환환자
- }else{
- model.setValue("/root/main/reservation/fsexamflag", 'F');
- //2016/11/28
- /*
- opt_remfact.attribute("ref") = "/root/main/reservation/fstexamrem";
- model.refresh();
- */
- //2016/11/28
- }
- model.refresh();
- }
-
- //2007-10-05 이동식 - 예약/변경/취소 후 화면 클리어, 주민등록번호는 하단에 따로 보관한다.
- function fClearAfterSave(){
- //주민등록번호 보관
- var rrgstno1 = model.getValue("/root/main/patinfo/patinfolist/rrgstno1");
- var rrgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
- var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
-
- //화면클리어
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
-
- //fInitialize();
- btn_clear.dispatch("DOMActivate");
-
- //주민등록번호를 화면 하단에 저장.
- model.setValue("/root/hidden/holdrrgstno/rrgstno1", rrgstno1);
- model.setValue("/root/hidden/holdrrgstno/rrgstno2", rrgstno2);
- model.setValue("/root/hidden/holdrrgstno/hngnm", hngnm);
- model.refresh();
- }
- //END..
-
- //2008-04-23일 김상민 - 취소시 변경 내역 체크
- function fCnclCheck() {
- if ( (model.getValue("/root/main/reservation/orddeptcd") ) != ( model.getValue("/root/tmp/reservation/orddeptcd")) ) return true; //진료과
- if ( (model.getValue("/root/main/reservation/orddrid") ) != ( model.getValue("/root/tmp/reservation/orddrid")) ) return true; //진료의
- if ( (model.getValue("/root/main/reservation/orddd") ) != ( model.getValue("/root/tmp/reservation/orddd")) ) return true; //진료일자
- if ( (model.getValue("/root/main/reservation/ordtm") ) != ( model.getValue("/root/tmp/reservation/ordtm")) ) return true; //진료시간
- if ( (model.getValue("/root/main/reservation/specorddescyn") ) != ( model.getValue("/root/tmp/reservation/specorddescyn")) ) return true; //선택진료설명여부
- if ( (model.getValue("/root/main/reservation/insuchrgyn") ) != ( model.getValue("/root/tmp/reservation/insuchrgyn")) ) return true; //보험회사직원여부
- if ( (model.getValue("/root/main/reservation/ordreqdescyn") ) != ( model.getValue("/root/tmp/reservation/ordreqdescyn")) ) return true; //의뢰서설명여부
- if ( (model.getValue("/root/main/reservation/ordreqhospgrde") ) != ( model.getValue("/root/tmp/reservation/ordreqhospgrde")) ) return true; //의뢰서병원등급
- if ( (model.getValue("/root/main/reservation/telrsrvrem") ) != ( model.getValue("/root/tmp/reservation/telrsrvrem")) ) return true; //통화내용
- return false;
- }
-
- //예약시 생일 한번더 체크
- function fGetBirthDD(){
- model.resetInstanceNode("/root/main/patinfo/patinfolist/brthdd");
- var brthdd;
- var rrgstno1 = model.getValue("/root/main/patinfo/patinfolist/rrgstno1");
- var rrgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
-
- var gubn = rrgstno2.substr(0,1);
- switch(gubn){
- case '1' :
- case '2' :
- case '5' :
- case '6' :
- brthdd = '19'.concat(rrgstno1);
- break;
- case '3' :
- case '4' :
- case '7' :
- case '8' :
- brthdd = '20'.concat(rrgstno1);
- break;
- case '9' :
- case '0' :
- brthdd = '18'.concat(rrgstno1);
- break;
- default :
- brthdd = '19'.concat(rrgstno1);
- break;
- }
-
- if( isValidDateTime(model.getValue("/root/main/patinfo/patinfolist/brthdd")) == false){
- model.setValue("/root/main/patinfo/patinfolist/brthdd",brthdd);
- }
-
- var sex = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
- if( model.getValue("/root/main/patinfo/patinfolist/sex") != 'M' || model.getValue("/root/main/patinfo/patinfolist/sex") != 'F' ){
- model.setValue("/root/main/patinfo/patinfolist/sex",getGender(sex));
- }
-
- var rrgstno = rrgstno1.concat(rrgstno2);
- model.setValue("/root/main/patinfo/patinfolist/age",getFullAge(model.getValue("/root/main/patinfo/patinfolist/brthdd")));
- return true;
- }
-
- function outhistColorChange(){
- grd_outhist.allStyle("all","background-color") = "#ffffff"; // 배경색을 초기화 한다.
- setRowStyle("grd_outhist", "2","Y","holiyn","equal"); //row의 색상을 변경한다.
- grd_outhist.rebuild();
- }
-
- //2009-02-27일 김상민 예약대기 상태(진료일자를 99991231로 변경)
- function fStandBy(){
- if( model.getValue("/root/main/patinfo/patinfolist/pid") == '' && model.getValue("/root/main/patinfo/patinfolist/hngnm") == '' ){
- messageBox("환자조회 후 작업해 주세요.!!","E999", "");
- return false;
- }
-
- if(messageBox("예약대기 상태로 변경 하시겠습니까?", "Q999") != 6) return;
-
- var cur_col = grd_outhist.col;
- var cur_row = grd_outhist.row;
- //var curDate = getCurrentDate();
-
- if(cur_col == grd_outhist.colRef("bfordddyn")){
- return;
- }
-
- if( cur_row > 0 && cur_col ){ // && grd_outhist.colRef("bfordddyn") != cur_col ){
- //예약내역 노드 초기화
- model.resetInstanceNode("/root/main/reservation");
-
- //수정 불가능한 내역을 선택했을 경우!!
- if( grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("histstat")) == 'R' ){
-
- //의사접수여부가 'Y'인 내역은 변경/취소할 수 없습니다.
- if( grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("dracptyn")) == 'Y' ){
-
- messageBox("진료본 내역은 변경 할 수 없습니다.", "E999", "");
- return false;
-
- //처방발생여부가 'Y'인 내역은 변경/취소할 수 없습니다.
- }else if( grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("prcpgenryn")) == 'Y' ){
-
- messageBox("처방이 발생한 내역은 변경할 수 없습니다.", "E999", "");
- return false;
- }else if( grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("rsrvflag")) == 'X' ){
-
- messageBox("6시간 이내 응급내역은 변경할 수 없습니다.", "E999", "");
- return false;
- }
- }else if( grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("histstat")) == 'X' ){
- messageBox("예약취소한 내역은 변경할 수 없습니다.", "E999", "");
- return false;
- }
-
- if( grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("etcordflag")) != 'B' || grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("etcordflag")) != '-' ) {
- model.setValue("/root/main/reservation/etcordflag", '-');
- model.setValue("/root/main/reservation/etcordflag", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("etcordflag")) );
- }
- }
-
- //재원여부체크
- if( ! fInhospynCheck() ){
- return false;
- }
-
- // 신환/구환을 구분한다.
- if(model.getValue("/root/main/patinfo/patinfolist/pid").length > 0 ){
- model.setValue("/root/hidden/source/checkfnexam", '3');
- }else{
- model.setValue("/root/hidden/source/checkfnexam", '1');
- }
- fStandbyRsrv('C');
- }
-
- function fStandbyRsrv( histstat ){
- //send node reset
- model.resetInstanceNode("/root/send/updatedata");
- model.refresh();
- //make nodes
- model.makeNode("/root/send/updatedata/patinfolist");
- model.makeNode("/root/send/updatedata/reservation");
- model.makeNode("/root/send/updatedata/checkfnexam");
- //model.makeNode("/root/send/updatedata/histstat");
-
- var cur_row = grd_outhist.row;
- var dd = '99991231'
- var fsexamflag = grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("fsexamflag"));
- var etcordflag = grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("etcordflag"));
- // var fsexamflag = model.getValue("/root/main/outhist/outhistlist[" + cur_row + "]/fsexamflag");
- // var etcordflag = model.getValue("/root/main/outhist/outhistlist[" + cur_row + "]/etcordflag");
-
- //기타진료에 null값 들어가는 문제 방지
- if(etcordflag == '' || etcordflag == ' '){
- model.setValue("/root/main/reservation/etcordflag", '-');
- }
-
- //예약변경시 생일 체크
- fGetBirthDD();
-
- var rsrvflag;
-
- model.setValue("/root/send/updatedata/checkfnexam", model.getValue("/root/hidden/source/checkfnexam"));
-
- //환자정보 값을 send 노드 아래로 복사한다.
- model.copyNode("/root/send/updatedata/patinfolist", "/root/main/patinfo/patinfolist");
-
- //환자정보에 있는 진료일자, 진료과, 접수일, 접수번호, 예약 구분 플래그를 삭제한다. - PMOHTEMP 테이블에서 초진환자 정보를 가져올때 같이 가져오기 때문에..
- model.setValue("root/send/orddrid", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddd")) );
- model.setValue("root/send/orddeptcd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddeptcd")) );
- model.setValue("root/send/subdeptcd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("subdeptcd")) );
- model.setValue("root/send/orddd", dd);
-
- model.removenode("/root/send/updatedata/patinfolist/orddd");
- model.removenode("/root/send/updatedata/patinfolist/orddeptcd");
- model.removenode("/root/send/updatedata/patinfolist/acptdd");
- model.removenode("/root/send/updatedata/patinfolist/acptno");
- model.removenode("/root/send/updatedata/patinfolist/rsrvflag");
-
- model.makeNode("/root/send/updatedata/reservation/acptdd");
- model.makeNode("/root/send/updatedata/reservation/acptno") ;
- model.makeNode("/root/send/updatedata/reservation/specorddescyn");
- model.makeNode("/root/send/updatedata/reservation/insuchrgyn");
- model.makeNode("/root/send/updatedata/reservation/ordreqdescyn");
- model.makeNode("/root/send/updatedata/reservation/ordreqhospgrde");
- model.makeNode("/root/send/updatedata/reservation/fstacptid");
- model.makeNode("/root/send/updatedata/reservation/fstacptdt");
- model.makeNode("/root/send/updatedata/reservation/acptseqno");
- model.makeNode("/root/send/updatedata/reservation/cretno");
- model.makeNode("/root/send/updatedata/reservation/oldorddd");
- model.makeNode("/root/send/updatedata/reservation/telrsrvrem");
- model.makeNode("/root/send/updatedata/reservation/updtcnclresn");
- model.makeNode("/root/send/updatedata/reservation/calcyn");
- model.makeNode("/root/send/updatedata/reservation/calcflag");
- model.makeNode("/root/send/updatedata/reservation/medamtestmyn");
- model.makeNode("/root/send/updatedata/reservation/histstat");
- model.makeNode("/root/send/updatedata/reservation/rsrvflag");
- model.makeNode("/root/send/updatedata/reservation/dracptyn");
- model.makeNode("/root/send/updatedata/reservation/prcpgenryn");
- model.makeNode("/root/send/updatedata/reservation/coopteamcd");
- model.makeNode("/root/send/updatedata/reservation/remfact");
- model.makeNode("/root/send/updatedata/reservation/etcordflag");
- model.makeNode("/root/send/updatedata/reservation/rqstflag");
- model.makeNode("/root/send/updatedata/reservation/rqsthospcd");
- model.makeNode("/root/send/updatedata/reservation/rqstdrid");
- model.makeNode("/root/send/updatedata/reservation/onestop");
- model.makeNode("/root/send/updatedata/reservation/orddd");
- model.makeNode("/root/send/updatedata/reservation/ordtm");
- model.makeNode("/root/send/updatedata/reservation/centcd");
- model.makeNode("/root/send/updatedata/reservation/orddeptcd");
- model.makeNode("/root/send/updatedata/reservation/subdeptcd");
- model.makeNode("/root/send/updatedata/reservation/orddrid");
- model.makeNode("/root/send/updatedata/reservation/fsexamflag");
- model.makeNode("/root/send/updatedata/reservation/tablename");
- model.makeNode("/root/send/updatedata/reservation/specordyn");
- model.makeNode("/root/send/updatedata/reservation/ordreqformflag");
-
- //선택된 행의 값을 예약 파트로 복사
- model.setValue("/root/send/updatedata/reservation/acptdd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("acptdd")) );
- model.setValue("/root/send/updatedata/reservation/acptno", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("acptno")) );
- model.setValue("/root/send/updatedata/reservation/specorddescyn", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("specorddescyn")) );
- model.setValue("/root/send/updatedata/reservation/insuchrgyn", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("insuchrgyn")) );
- model.setValue("/root/send/updatedata/reservation/ordreqdescyn", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("ordreqdescyn")) );
- model.setValue("/root/send/updatedata/reservation/ordreqhospgrde", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("ordreqhospgrde")) );
- model.setValue("/root/send/updatedata/reservation/fstacptid", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("fstacptid")) );
- model.setValue("/root/send/updatedata/reservation/fstacptdt", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("fstacptdt")) );
- model.setValue("/root/send/updatedata/reservation/acptseqno", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("acptseqno")) );
- model.setValue("/root/send/updatedata/reservation/cretno", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("cretno")) );
- model.setValue("/root/send/updatedata/reservation/oldorddd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddd")) );
- model.setValue("/root/send/updatedata/reservation/telrsrvrem", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("telrsrvrem")) );
- model.setValue("/root/send/updatedata/reservation/updtcnclresn", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("updtcnclresn")) );
- model.setValue("/root/send/updatedata/reservation/calcyn", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("calcyn")) );
- model.setValue("/root/send/updatedata/reservation/calcflag", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("calcflag")) );
- model.setValue("/root/send/updatedata/reservation/medamtestmyn", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("medamtestmyn")) );
- model.setValue("/root/send/updatedata/reservation/histstat", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("histstat")) );
- model.setValue("/root/send/updatedata/reservation/rsrvflag", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("rsrvflag")) );
- model.setValue("/root/send/updatedata/reservation/dracptyn", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("dracptyn")) );
- model.setValue("/root/send/updatedata/reservation/prcpgenryn", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("prcpgenryn")) );
- model.setValue("/root/send/updatedata/reservation/coopteamcd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("coopteamcd")) );
- model.setValue("/root/send/updatedata/reservation/remfact", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("remfact")) );
- model.setValue("/root/send/updatedata/reservation/etcordflag", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("etcordflag")) );
- model.setValue("/root/send/updatedata/reservation/specordyn", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("specordyn")) );
- model.setValue("/root/send/updatedata/reservation/ordreqformflag", model.getValue("/root/main/reservation/ordreqformflag"));
-
- //협진
- model.setValue("/root/send/updatedata/reservation/rqstflag", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("rqstflag")) );
- model.setValue("/root/send/updatedata/reservation/rqsthospcd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("rqsthospcd")) );
- model.setValue("/root/send/updatedata/reservation/rqstdrid", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("rqstdrid")) );
- model.setValue("/root/send/updatedata/reservation/onestop", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("onestop")) );
-
- //진료일,시간, 진료과,의사
- model.setValue("/root/send/updatedata/reservation/orddd", dd);
- model.setValue("/root/send/updatedata/reservation/ordtm", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("ordtm")) );
-
- model.setValue("/root/send/updatedata/reservation/centcd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("centcd")) );
-
- model.setValue("/root/send/updatedata/reservation/orddeptcd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddeptcd")) );
- model.setValue("/root/send/updatedata/reservation/subdeptcd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("subdeptcd")) );
-
- model.setValue("/root/send/updatedata/reservation/orddrid", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddrid")) );
- model.setValue("/root/send/updatedata/reservation/fsexamflag", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("fsexamflag")) );
- model.setValue("/root/send/updatedata/reservation/tablename", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("tablename")) );
-
- /*
- model.removeNodeset("/root/tmp/reservation");
- model.makeNode("/root/tmp/reservation");
- model.copyNode("/root/tmp/reservation", "/root/main/reservation");
- */
-
-
- /*
- if( cur_row > 0 ){
- //예약정보를 SEND로 복사한다. **************수정해야됨
- model.setValue("/root/send/updatedata/reservation" ,getNodeListCSV(instance1.selectNodes("/root/main/outhist/outhistlist[" + cur_row + "]")));
- //model.copyNode("/root/send/updatedata/reservation", "/root/main/reservation[" + cur_row + "]");
- }
- */
-
- model.makeNode("/root/send/updatedata/reservation/histstat");
- model.setValue("/root/send/updatedata/reservation/histstat", histstat);
- //변경전 데이터를 가져가기 위해 변경전의 데이터도 함께 SEND로 복사한다.
-
- if( histstat == 'C'){
- //변경전의 데이터 세팅..
- model.makeNode("/root/send/updatedata/reservation/bforddd");
- model.makeNode("/root/send/updatedata/reservation/bfordtm");
- model.makeNode("/root/send/updatedata/reservation/bforddeptcd");
- model.makeNode("/root/send/updatedata/reservation/bforddrid");
- model.makeNode("/root/send/updatedata/reservation/bfacptseqno");
- model.makeNode("/root/send/updatedata/reservation/bfcretno");
- //model.makeNode("/root/send/updatedata/reservation/updtcnclresn");
- model.makeNode("/root/send/updatedata/reservation/bfhiststat");
- model.makeNode("/root/send/updatedata/reservation/subdeptcd");
-
- model.setValue("/root/send/updatedata/reservation/bforddd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddd")) );
- model.setValue("/root/send/updatedata/reservation/bfordtm", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("ordtm")) );
- model.setValue("/root/send/updatedata/reservation/bforddeptcd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddeptcd")) );
- model.setValue("/root/send/updatedata/reservation/bforddrid", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddrid")) );
- model.setValue("/root/send/updatedata/reservation/bfhiststat", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("histstat")) );
- model.setValue("/root/send/updatedata/reservation/bfacptseqno", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("acptseqno")) );
- model.setValue("/root/send/updatedata/reservation/bfcretno", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("cretno")) );
- model.setValue("/root/send/updatedata/reservation/subdeptcd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("subdeptcd")) );
- // 변경일 경우 예약구분을 전화예약으로 변경
- // model.setValue("/root/send/updatedata/reservation/rsrvflag", RSRVFLAG);
-
- }
- //2007-10-08 이동식 추가
-
- model.resetInstanceNode("/root/main/result");
- model.makeNode("/root/main/result/outhist");
-
- if(submit("TXPMO00202")){
- model.copyNode("/root/main/outhist", "/root/main/result/outhist");
- //달력 초기화
- //initCalendar();
- //외래등록내역 초기화
- //model.removeNodeset("/root/main/outrgst/outrgstlist");
- model.refresh();
- }else{
- return false;
- }
-
- //2007-10-22 이동식 추가
- if( model.getValue("/root/main/patinfo/patinfolist/pid").length > 0 ){ //신환일경우 차트대출 안함.
- if( getNodesetCount("/root/main/result/chart/chartlist") < 1 || model.getValue("/root/main/reservation/tablename") == 'temp'){
- return false;
- }
- model.removeNodeset("/root/send/chart");
-
- if( histstat == 'C' ){ //변경
- model.makeValue("/root/send/chart[1]/high_flag", "U");
- model.makeValue("/root/send/chart[1]/flag", "D");
- model.makeValue("/root/send/chart[1]/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.makeValue("/root/send/chart[1]/orddd", model.getValue("/root/send/updatedata/reservation/bforddd"));
- model.makeValue("/root/send/chart[1]/cretno", model.getValue("/root/send/updatedata/reservation/bfcretno"));
- model.makeValue("/root/send/chart[1]/orddeptcd", model.getValue("/root/send/updatedata/reservation/bforddeptcd"));
- model.makeValue("/root/send/chart[1]/orddrid", model.getValue("/root/send/updatedata/reservation/bforddrid"));
- model.makeValue("/root/send/chart[1]/ordtm", model.getValue("/root/send/updatedata/reservation/bfordtm"));
- model.makeValue("/root/send/chart[1]/msgcnts", '-');
- model.makeValue("/root/send/chart[1]/subdeptcd", model.getValue("/root/send/updatedata/reservation/subdeptcd"));
- model.makeValue("/root/send/chart[1]/centcd", model.getValue("/root/send/updatedata/reservation/bfcretno"));
-
- /*
- model.makeValue("/root/send/chart[1]/high_flag", "U");
- model.makeValue("/root/send/chart[1]/flag", "D");
- model.makeValue("/root/send/chart[1]/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.makeValue("/root/send/chart[1]/orddd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddd")) );
- model.makeValue("/root/send/chart[1]/cretno", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("cretno")) );
- model.makeValue("/root/send/chart[1]/acptseqno", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("acptseqno")) );
- model.makeValue("/root/send/chart[1]/orddeptcd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddeptcd")) );
- model.makeValue("/root/send/chart[1]/orddrid", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddrid")) );
- model.makeValue("/root/send/chart[1]/ordtm", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("ordtm")) );
- model.makeValue("/root/send/chart[1]/fsexamflag", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("fsexamflag")) );
- model.makeValue("/root/send/chart[1]/rsrvflag", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("rsrvflag")) );
- model.makeValue("/root/send/chart[1]/msgcnts", '-');
- model.makeValue("/root/send/chart[1]/subdeptcd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("subdeptcd")) );
- model.makeValue("/root/send/chart[1]/centcd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("cretno")) );
- */
-
- /*
- model.makeValue("/root/send/chart[2]/high_flag", "U");
- model.makeValue("/root/send/chart[2]/flag", "I");
- model.makeValue("/root/send/chart[2]/pid", model.getValue("/root/main/result/chart/chartlist/pid"));
- model.makeValue("/root/send/chart[2]/orddd", model.getValue("/root/main/result/chart/chartlist/orddd"));
- model.makeValue("/root/send/chart[2]/cretno", model.getValue("/root/main/result/chart/chartlist/cretno"));
- model.makeValue("/root/send/chart[2]/acptseqno", model.getValue("/root/main/result/chart/chartlist/acptseqno"));
- model.makeValue("/root/send/chart[2]/orddeptcd", model.getValue("/root/main/result/chart/chartlist/orddeptcd"));
- model.makeValue("/root/send/chart[2]/orddrid", model.getValue("/root/main/result/chart/chartlist/orddrid"));
- model.makeValue("/root/send/chart[2]/ordtm", model.getValue("/root/main/result/chart/chartlist/ordtm"));
- model.makeValue("/root/send/chart[2]/fsexamflag", model.getValue("/root/main/result/chart/chartlist/fsexamflag"));
- model.makeValue("/root/send/chart[2]/rsrvflag", model.getValue("/root/main/reservation/rsrvflag"));
- model.makeValue("/root/send/chart[2]/msgcnts", '-');
- model.makeValue("/root/send/chart[2]/subdeptcd", model.getValue("/root/main/reservation/subdeptcd"));
- model.makeValue("/root/send/chart[2]/centcd", model.getValue("/root/main/reservation/centcd"));
- */
- }
- submit("TXPMO00105");
-
- model.removeNodeset("/root/send/chart");
- //END..
- }
-
- //예약/수정/취소가 성공하면 화면 클리어한다.
- fClearAfterSave();
- model.resetInstanceNode("/root/main/h_dcuc/dcuc");
- initPopupMenu();
- model.refresh();
- return true;
- }
-
- function fGetCentcdCalendarData(){
- //1분 간격 풀기 초기화
- model.setValue("/root/main/oneminute", "");
-
- //외래등록내역 삭제
- model.removeNodeset("/root/main/outrgst/outrgstlist");
- model.resetInstanceNode("/root/resercnt");
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/centcd", model.getValue("/root/main/reservation/centcd"));
- model.setValue("/root/send/orddeptcd", model.getValue("/root/main/reservation/orddeptcd"));
- model.setValue("/root/send/subdeptcd", model.getValue("/root/main/reservation/subdeptcd"));
- model.setValue("/root/send/orddrid", model.getValue("/root/main/reservation/orddrid"));
- model.setValue("/root/send/date", model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month"));
-
- if( model.getValue("/root/send/centcd") == '' || model.getValue("/root/send/centcd") == ' '){
- model.setValue("/root/send/centcd", '-');
- }
-
- model.resetInstanceNode("/root/main/result");
- model.makeNode("/root/main/result/orddrfild");
- model.makeNode("/root/main/result/calendarinfo");
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate();
-
- //진료의 정보가 없을 경우
- if( model.getValue("/root/send/orddrid") == '' ){
- setCalendar(isDate);
- }else{
- if(submit("TRPMO00203")){
- if( getNodesetCount("/root/main/result/calendarinfo/calendarinfolist") > 0 ){
- model.copyNode("/root/hidden/calendarinfo", "/root/main/result/calendarinfo");
- setCalendar2(isDate);
- //fRemoveCapa();
- }else{
- setCalendar(isDate);
- }
- model.setValue("/root/main/reservation/ordfild" , model.getValue("/root/main/result/orddrfild/orddrfildlist/ordfild"));
- model.setValue("/root/main/reservation/fstexamrem" , model.getValue("/root/main/result/orddrfild/orddrfildlist/fstexamrem"));
- model.setValue("/root/main/reservation/reexamrem" , model.getValue("/root/main/result/orddrfild/orddrfildlist/reexamrem"));
- model.refresh();
- }
- }
- }
-
- function fChangeRsrvSpecTab(){
- var rsrvgubn = model.getValue("/root/main/rsrvflag");
- var examcnt = 0;
-
- if(rsrvgubn == "E"){
- model.toggle("case4");
- examcnt = getNodesetCount("/root/main/exculist/subordlist2");
-
- }else if(rsrvgubn == "S"){
- model.toggle("case2");
- examcnt = getNodesetCount("/root/main/test/testlist");
-
- }else{
- model.toggle("case1");
- }
-
- model.makeNode("/root/hidden/con/examcnt");
- model.setValue("/root/hidden/con/examcnt", examcnt);
- output5.refresh();
-
- /*
- if(rsrvgubn != "S" || ){
- model.toggle("case1");
- }else if (rsrvgubn == "S"){
- model.toggle("case2");
-
- //var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- //var deptcd = model.getValue("/root/tmp/userinfo/userinfolist/deptcd");
- //var parm = pid + "▦" + "T" + "▦" + deptcd ;
- //setParameter("opener_parameter_id", parm);
- //open("SMAEA02000", "1", "200", "200", "SMAEA02000", "", "");
- }
- */
- }
-
- function fRgstno2EnterEvent(){
- var hngnm = ipt_hngnm.currentText;
- var rrgstno1 = ipt_rrgstno1.currentText;
- var rrgstno2 = ipt_rrgstno2.currentText;
- var rgstno1 = model.getValue("/root/main/patinfo/patinfolist/rrgstno1");
- var rgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
-
- if( hngnm.length > 1 ){
- model.setValue("/root/hidden/source/srchcond", "4");
- model.setValue("/root/hidden/source/hngnm", hngnm);
- model.setValue("/root/hidden/source/rrgstno1", rrgstno1);
- model.setValue("/root/hidden/source/rrgstno2", rrgstno2);
- }else{
- model.setValue("/root/hidden/source/srchcond", "3");
- model.setValue("/root/hidden/source/rrgstno1", rrgstno1);
- model.setValue("/root/hidden/source/rrgstno2", rrgstno2);
- }
- model.setValue("/root/main/patinfo/patinfolist/rrgstno2", rrgstno2);
-
- if(rgstno1 == "000000" ){
- messageBox("주민번호 앞6자리 형식오류입니다. 올바른 일자형태로 입력하십시요!","E999","");
- model.setFocus("ipt_rrgstno1");
- return;
- }else if(rgstno2 == "0000000 "){
- messageBox("주민번호 뒤7자리 형식오류입니다. 올바른 일자형태로 입력하십시요!","E999","");
- model.setFocus("ipt_rrgstno2");
- return;
- }
-
- if( rrgstno1.length == 6 && rrgstno2.length == 7 ){
- if(submit("TRPMC02500")){
- if( getNodesetCount("/root/main/result/patinfo/patinfolist") == 1 ){
- model.copyNode("/root/main/patinfo", "/root/main/result/patinfo");
-
- //합번등록번호 체크
- var sBindPid = model.getValue("/root/main/patinfo/patinfolist/bindpid");
- if( sBindPid != '-' && sBindPid != '' && sBindPid != ' ' ){
- //합번된 등록번호 메세지 처리
- var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- var retValue = messageBox(sPid + "(" + sHngnm + ") 환자의 등록번호가 [ " + sBindPid + " ] 로 합번 되었습니다. 합번된 등록번호로 재조회 하시겠습니까?", "Q999", "");
- if( retValue == '6' ){
- model.setValue("/root/main/patinfo/patinfolist/pid", sBindPid);
- event.keyCode ="13";
- //ipt_cardno.dispatch("onkeypress");
- ipt_pid.dispatch("onkeypress");
- }else{
- //화면 초기화!!
- btn_init.dispatch("DOMActivate");
- return false;
- }
- }
-
- model.setValue("/root/main/popupendflag", "ok");
- //구환 표시
- if( model.getValue("/root/main/patinfo/patinfolist/pid").length > 0 ){
- model.setValue("/root/hidden/source/checkfnexam", "3");
- }else{
- model.setValue("/root/hidden/source/checkfnexam", "1");
- }
-
- //환자특이내역 존재여부 표시
- var patspcfyn = model.getValue("/root/main/patinfo/patinfolist/patspcfyn");
- if( patspcfyn == 'Y' || patspcfyn == 'y'){
- btn_patspcfyn.attribute("background-color") = "#ff0000";
- }else{
- btn_patspcfyn.attribute("background-color") = "#c0c0c0";
- }
-
- //감면 내역 있으면 표시
- var pid = model.getvalue("/root/main/patinfo/patinfolist/pid");
- if( pid != '' && pid != ' ' && pid != '-' ){
- model.setValue( "/root/send/pid", pid);
- submit("TRPMO00205");
- }
- //감면 내역 있으면 표시 끝
- fSearch();
- }else if(getNodesetCount("/root/main/result/patinfo/patinfolist") > 1 ){
- //inputEnterKey("btn_search", "DOMActivate");
- EnterBtnSearch();
- }else{
- // model.resetInstanceNode("/root/main/patinfo/patinfolist");
- // model.resetInstanceNode("/root/main/reservation");
- model.setValue("/root/main/popupendflag", "cancel");
- messageBox("일치하는 환자가 없습니다.", "E999", "");
- // model.resetInstanceNode("");
- }
- }
- }else{
- inputEnterKey("btn_search", "DOMActivate");
- // fSearch();
- }
- fGetSexAgeBirthDD();
-
- //외래이력 휴진일 구분
- outhistColorChange();
- model.refresh();
- }
-
- //예약권한설정 조회
- function GetFreeRsrvAuthor(){
- submit("TRPMO00210");
- return model.getValue("/root/userinfo/userinfolist/cdnm");
- }
- //컨설트 내역 조회
- function fGetOrdCnstInfo(){
- //2010-02-27
- //model.makeNode("/root/send/cnstinfo/pid");
- //model.makeNode("/root/send/cnstinfo/flag");
- //model.setValue("/root/send/cnstinfo/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- //model.setValue("/root/send/cnstinfo/flag", 'T');
- //model.makeNode("/root/temp/emrcnst/temp");
- model.removeNodeset("/root/temp/emrcnst");
- model.makeNode("/root/temp/emrcnst");
- model.makeNode("/root/temp/emrcnst/send/pid");
- model.makeNode("/root/temp/emrcnst/send/flag");
- model.setValue("/root/temp/emrcnst/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/temp/emrcnst/send/flag", 'T');
-
- var retValue = false;
- if( submit("TRPAC00301") ){
- //컨설트 의뢰정보가 1건일때 와 2건 이상일때 구분하여 메세지 처리
- var cnstCnt = getNodesetCount("/root/temp/emrcnst/pid");
- if( cnstCnt > 1 ){
- if( messageBox("Consult 내역이 있습니다. 내역을 확인하시겠습니까?", "Q999", "") == 6 ){
- if( fGetEMRCnstInfo() ){
- retValue = true;
- }
- }
- }else if( cnstCnt == 1 ){
- var reqorddeptnm = model.getValue("/root/temp/emrcnst/reqdeptnm");
- var reqorddrnm = model.getValue("/root/temp/emrcnst/requsernm");
- var recvorddeptnm = model.getValue("/root/temp/emrcnst/recvdeptnm");
- var recvorddrnm = model.getValue("/root/temp/emrcnst/recvusernm");
- if(messageBox(reqorddeptnm + " " + reqorddrnm + " 교수님께서 " +
- recvorddeptnm + " " + recvorddrnm + " 교수님께 Consult 내역이 있습니다. \n지금 접수하시겠습니까?", "Q999", "") == 6 ){
- var orddd = model.getValue("/root/temp/emrcnst/hopedd");
- var orddeptcd = model.getValue("/root/temp/emrcnst/recvdeptcd");
- var orddrid = model.getValue("/root/temp/emrcnst/recvuserid");
- var ordreqformflag = model.getValue("/root/temp/emrcnst/ordreqformflag");
- var formrecseq = model.getValue("/root/temp/emrcnst/formrecseq");
- model.setValue("root/main/reservation/formrecseq", formrecseq);
-
- //기초정보 세팅
- model.setValue("/root/main/reservation/ordreqformflag", ordreqformflag); //진료의뢰서 수급절차 - 원진료의 수급절차를 따른다
- model.setValue("/root/main/reservation/etcordflag", "H"); //기타구분 - 의뢰
- model.setValue("/root/main/reservation/rsrvflag", "C"); //예약구분 - 협진
- RSRVFLAG = 'C'; //예약구분 - 협진
-
- model.setValue("/root/main/reservation/orddeptcd", orddeptcd);
- cmb_deptcd.dispatch("xforms-value-changed");
- model.setValue("/root/main/reservation/orddrid", orddrid);
- cmb_orddrid.dispatch("xforms-value-changed");
- model.setValue("/root/main/reservation/orddd", orddd);
- ipt_orddd.dispatch("xforms-value-changed");
- model.refresh();
- }
- }
- }
- model.removeNodeset("/root/send/cnstinfo");
- model.removeNodeset("/root/temp/emrcnst");
-
- return retValue;
- }
-
- // 협진조회팝업 호출
- function fGetEMRCnstInfo(){
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
-
- setParameter("SPPMO01300_PID", pid);
- setParameter("SPPMO01300_HNGNM", hngnm);
- setParameter("SPPMO01300_FLAG", 'O'); //외래 플래그
- modal("SPPMO01300", "1", "200", "200", "SPPMO01300", "", "");
-
- var rtnMsg = getParameter("SPPMO01300_RTN");
- if( rtnMsg == 'OK' ){
- var orddd = getParameter("SPPMO01300_ORDDD");
- var orddeptcd = getParameter("SPPMO01300_ORDDEPTCD");
- var orddrid = getParameter("SPPMO01300_ORDDRID");
- var ordreqformflag = getParameter("SPPMO01300_ORDREQFORMFLAG"); //수급절차
- var formrecseq = getParameter("SPPMO01300_FORMRECSEQ"); //서식번호
-
- model.setValue("/root/main/reservation/orddeptcd", orddeptcd);
- cmb_deptcd.dispatch("xforms-value-changed");
- model.setValue("/root/main/reservation/orddrid", orddrid);
- cmb_orddrid.dispatch("xforms-value-changed");
- model.setValue("/root/main/reservation/orddd", orddd);
- ipt_orddd.dispatch("xforms-value-changed");
-
- model.makeNode("root/main/reservation/formrecseq");
- model.setValue("root/main/reservation/formrecseq", formrecseq);
-
- //기초정보 세팅
- model.setValue("/root/main/reservation/ordreqformflag", ordreqformflag); //진료의뢰서 수급절차 - 원진료의 수급절차를 따른다
- model.setValue("/root/main/reservation/etcordflag", "H"); //기타구분 - 의뢰
- model.setValue("/root/main/reservation/rsrvflag", "C"); //예약구분 - 협진
- RSRVFLAG = 'C'; //예약구분 - 협진
- model.refresh();
- //messageBox("선택하신 Consult 내역을 접수정보에 입력했습니다. 보험정보 확인 후 접수하십시요.", "I999", "");
- return true;
- }else{
- return false;
- }
- }
-
- function fPidEnterEvent(){
- if(ipt_pid.currentText.length > 0 || hieyn=="Y"){
- //조회 조건 세팅.
- if(hieyn=="Y"){
- model.setValue("/root/hidden/source/srchcond", "3");
- model.makeValue("/root/hidden/source/rrgstno1", hie_rrgstno1);
- model.makeValue("/root/hidden/source/rrgstno2", hie_rrgstno2);
- model.makeValue("/root/hidden/source/checkfnexam", "0");
-
-
- }else{
- model.setValue("/root/hidden/source/srchcond", "1");
- model.setValue("/root/hidden/source/pid", ipt_pid.currentText);
- }
-
-
- model.resetInstanceNode("/root/main/result");
- model.makeNode("/root/main/result/patinfo");
- //보험 자격조회 체크 여부 초기화
- model.setValue("/root/hidden/flag/check_insuinfo_flag", "N");
-
- //외래이력조회 구분
- model.setValue("/root/main/ioflag", "O");
- radio2.dispatch("xforms-value-changed");
- model.toggle("case3");
-
- if(submit("TRPMC02500")){
- if( getNodesetCount("/root/main/result/patinfo/patinfolist") > 0 ){
- model.copyNode("/root/main/patinfo", "/root/main/result/patinfo");
-
- //합번등록번호 체크
- var sBindPid = model.getValue("/root/main/patinfo/patinfolist/bindpid");
- if( sBindPid != '-' && sBindPid != '' && sBindPid != ' ' ){
- //합번된 등록번호 메세지 처리
- var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
-
- var retValue = messageBox(sPid + "(" + sHngnm + ") 환자의 등록번호가 [ " + sBindPid + " ] 로 합번 되었습니다. 합번된 등록번호로 재조회 하시겠습니까?", "Q999", "");
- if( retValue == '6' ){
- model.setValue("/root/main/patinfo/patinfolist/pid", sBindPid);
- event.keyCode ="13";
- //ipt_cardno.dispatch("onkeypress");
- ipt_pid.dispatch("onkeypress");
- }else{
- //화면 초기화!!
- btn_init.dispatch("DOMActivate");
- return false;
- }
- }
-
- model.setValue("/root/main/popupendflag", "ok");
- //구환 표시
- model.setValue("/root/hidden/source/checkfnexam", "3");
-
- //환자특이내역 존재여부 표시
- var patspcfyn = model.getValue("/root/main/patinfo/patinfolist/patspcfyn");
- if( patspcfyn == 'Y' || patspcfyn == 'y'){
- btn_patspcfyn.attribute("background-color") = "#ff0000";
- }else{
- btn_patspcfyn.attribute("background-color") = "#c0c0c0";
- }
-
- //감면내역
- var pid = model.getvalue("/root/main/patinfo/patinfolist/pid");
- if(pid != '' && pid != ' ' && pid != '-'){
- model.setValue( "/root/send/pid", pid);
- submit("TRPMO00205");
- }
-
- //조회
- fSearch();
- }else if(getNodesetCount("/root/main/result/patinfo/patinfolist")==0 && hieyn=="Y"){
- //debugger;
- model.makeValue("/root/send/ptbs_hngnm", model.getValue("/root/main/hiepat/ptname"));
- model.makeValue("/root/send/ptbs_mpphontel", "-");
- model.makeValue("/root/send/ptbs_brthdd", model.getValue("/root/main/hiepat/referralstatus_patientbirthday"));
- model.makeValue("/root/send/ptbs_rrgstno1", hie_rrgstno1);
- model.makeValue("/root/send/ptbs_rrgstno2", hie_rrgstno2);
- model.makeValue("/root/send/sess_userid", getUserInfo("userid"));
- model.makeValue("/root/send/ptbs_sex", hie_sex);
- model.makeValue("/root/send/ptbs_pid", "");
- if(hie_addrbase!=""){
- model.makeValue("/root/send/ptbs_highaddr", hie_addrbase);
- model.makeValue("/root/send/ptbs_detladdr", hie_addrdetl);
- model.makeValue("/root/send/ptbs_zipcd1", hie_zipcd1);
- model.makeValue("/root/send/ptbs_zipcd2", hie_zipcd2);
- }
- submit("TXPMO00104");
-
- if(getNodesetCount("/root/hidden/rcv/ptbs/ptbs_pid") > 0 ){
- model.setValue("/root/main/patinfo/patinfolist/pid", model.getValue("root/hidden/rcv/ptbs/ptbs_pid"));
- model.makeValue("/root/send/updatedata/patinfolist/pid", model.getValue("/root/hidden/rcv/ptbs/ptbs_pid"));
- model.setValue("/root/main/patinfo/patinfolist/hngnm", model.getValue("root/hidden/rcv/ptbs/ptbs_hngnm"));
- model.setValue("/root/main/patinfo/patinfolist/rrgstno1", model.getValue("root/hidden/rcv/ptbs/ptbs_rrgstno1"));
- model.setValue("/root/main/patinfo/patinfolist/rrgstno2", model.getValue("root/hidden/rcv/ptbs/ptbs_rrgstno2"));
- model.setValue("/root/main/patinfo/patinfolist/mpphontel", model.getValue("root/hidden/rcv/ptbs/ptbs_mpphontel"));
- model.setValue("/root/main/patinfo/patinfolist/hometel", model.getValue("root/hidden/rcv/ptbs/ptbs_hometel"));
- model.setValue("/root/main/patinfo/patinfolist/sex", model.getValue("root/hidden/rcv/ptbs/ptbs_sex"));
- model.setValue("/root/main/patinfo/patinfolist/age", model.getValue("root/hidden/rcv/ptbs/ptbs_age"));
- model.setValue("/root/main/patinfo/patinfolist/brthdd", model.getValue("root/hidden/rcv/ptbs/ptbs_brthdd"));
- model.setValue("/root/main/patinfo/patinfolist/zipcd1", model.getValue("root/hidden/rcv/ptbs/ptbs_zipcd1"));
- model.setValue("/root/main/patinfo/patinfolist/zipcd2", model.getValue("root/hidden/rcv/ptbs/ptbs_zipcd2"));
- model.setValue("/root/main/patinfo/patinfolist/addr", model.getValue("root/hidden/rcv/ptbs/ptbs_highaddr"));
- model.setValue("/root/main/patinfo/patinfolist/detladdr", model.getValue("root/hidden/rcv/ptbs/ptbs_detladdr"));
- model.makeValue("/root/send/updatedata/reservation/telrsrvflag", "T");
- model.makeValue("/root/send/updatedata/checkfnexam", "3");
- model.refresh();
- }else{
- messageBox("환자번호 생성에 실패하였습니다.", "E");
- return;
- }
-
- }else{
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
- model.resetInstanceNode("/root/main/reservation");
- model.setValue("/root/main/popupendflag", "cancel");
- messageBox("없는 환자 번호 입니다.", "E999", "");
- model.removenode("/root/main/outhist/outhistlist");
- model.removenode("/root/main/test/testlist");
- model.removenode("/root/hidden/con/examcnt");
- //model.resetInstanceNode("");
- }
- }
- }else{
-
- }
-
- //팝업으로 넘겨준 데이터 초기화
- var checkfnexam = model.getValue("/root/hidden/source/checkfnexam");
- model.resetInstanceNode("/root/hidden/source");
- model.setValue("/root/hidden/source/checkfnexam", checkfnexam);
-
- outhistColorChange();
- model.refresh();
- }
-
- function EnterBtnSearch(){
- model.setValue("/root/hidden/source/checkfnexam", "1");
- model.setValue("/root/hidden/source/autoflag", "N");
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/hidden/source", "/root/send");
-
- var popupendflag = model.getValue("/root/main/popupendflag");
- if (popupendflag == "ok"){
- //초재진 구분
- if( model.getValue("/root/main/patinfo/patinfolist/pid").length > 0 ){
- model.setValue("/root/hidden/source/checkfnexam", '3');
- }else{
- model.setValue("/root/main/patinfo/patinfolist/pid", "");
- model.setValue("/root/hidden/source/checkfnexam", '1');
- }
-
- //합번등록번호 체크
- var sBindPid = model.getValue("/root/main/patinfo/patinfolist/bindpid");
- if( sBindPid != '-' && sBindPid != '' && sBindPid != ' ' ){
- //합번된 등록번호 메세지 처리
- var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
-
- var retValue = messageBox(sPid + "(" + sHngnm + ") 환자의 등록번호가 [ " + sBindPid + " ] 로 합번 되었습니다. 합번된 등록번호로 재조회 하시겠습니까?", "Q999", "");
- if( retValue == '6' ){
- model.setValue("/root/main/patinfo/patinfolist/pid", sBindPid);
- model.refresh();
- event.keyCode ="13";
- //ipt_cardno.dispatch("onkeypress");
- ipt_pid.dispatch("onkeypress");
- }else{
- //화면 초기화!!
- btn_init.dispatch("DOMActivate");
- return false;
- }
- }
-
- //감면 내역 있으면 표시
- var pid = model.getvalue("/root/main/patinfo/patinfolist/pid");
- if( pid != '' && pid != ' ' && pid != '-' ){
- model.setValue( "/root/send/pid", pid);
- submit("TRPMO00205");
- }
- //감면 내역 있으면 표시 끝
-
- //환자특이내역 존재여부 표시
- if( model.getValue("/root/main/patinfo/patinfolist/patspcfyn") == 'Y'){
- btn_patspcfyn.attribute("background-color") = "#ff0000";
- }else{
- btn_patspcfyn.attribute("background-color") = "#c0c0c0";
- }
-
- fSearch();
- }else{
- var srchcond = model.getValue("/root/hidden/source/srchcond");
- if( srchcond == '4' || srchcond == '3' ){
- // fGetSexAgeBirthDD();
- }
- }
-
- //팝업으로 넘겨준 데이터 초기화
- var checkfnexam = model.getValue("/root/hidden/source/checkfnexam");
- model.resetInstanceNode("/root/hidden/source");
- model.setValue("/root/hidden/source/checkfnexam", checkfnexam);
-
- //외래이력 휴진색상 체크
- outhistColorChange();
- model.refresh();
- }
-
- function FseamOrdreqdescCheck(){
- //초재진 및 진료의뢰서 체크
-
- //var deptengabbr = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/deptengabbr");
- var rsrvflag = model.getValue("/root/main/reservation/rsrvflag");
-
- //초재진여부 조회
- fGetFsexamFlag();
- model.refresh();
-
- if(model.getValue("/root/main/patinfo/patinfolist/pid").length < 1 && model.getValue("/root/main/patinfo/patinfolist/hngnm").length < 1 ){
- //환자정보 없을 경우 진료의뢰서 체크 안함!!!
- }else if( model.getValue("/root/main/patinfo/patinfolist/pid").length < 1 && model.getValue("/root/main/patinfo/patinfolist/hngnm").length > 1 ){
- var reqdeptno = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/reqdeptno");
- //등록번호 없고 환자 이름이 입력된 경우 - 신환! 무조건 메세지 출력!!
- // 치과 진찰료 별도산정 관련 수정(2017/05/10 이정택)
- //if( reqdeptno == "55" || reqdeptno == "23" || reqdeptno == "21" || rsrvflag == "C" ){
- if( reqdeptno.substr(0,1)=="5" || reqdeptno == "23" || reqdeptno == "21" || rsrvflag == "C" ){
- model.setValue("/root/main/reservation/ordreqdescyn", 'Y');
- //진료의뢰서가 필요 없을경우 선택진료설명여부 Yes 세팅
- //model.setValue("/root/main/reservation/specorddescyn", 'Y');
- }else {
- messageBox("진료의뢰서가 필요합니다.", "E999", "");
- model.setValue("/root/main/reservation/ordreqdescyn", '');
- }
- }else{
- //진료의뢰서 확인
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var fsexamflag = model.getValue("/root/main/reservation/fsexamflag");
- var orddeptcd = cmb_deptcd.value;
- var deptengabbr = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/deptengabbr");
- var reqdeptno = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/reqdeptno");
- var outhistpath = "/root/main/outhist/outhistlist"; //외래이력노드
-
- if( ! fCheckOrdCnst(pid, fsexamflag, orddeptcd, deptengabbr, reqdeptno, outhistpath, INSUKIND) && rsrvflag != "C"){
- if(orddeptcd != "" && orddeptcd != " " && orddeptcd != "-"){
- messageBox("진료의뢰서가 필요합니다.", "E999", "");
- model.setValue("/root/main/reservation/ordreqdescyn", '');
- }
- }else {
- model.setValue("/root/main/reservation/ordreqdescyn", 'Y');
- //진료의뢰서가 필요 없을경우 선택진료설명여부 Yes 세팅
- //model.setValue("/root/main/reservation/specorddescyn", 'Y');
- }
- }
- model.refresh();
- }
-
- function fPatInfoUpdt(){
- //TXPMO00104 인터페이스에 맞춰 노드 세팅
- model.resetInstanceNode("/root/send/data1");
-
- model.makeNode("/root/send/data1/pid_flag");
- model.makeNode("/root/send/data1/ptbs_pid");
- model.makeNode("/root/send/data1/ptbs_hngnm");
- model.makeNode("/root/send/data1/engnm");
- model.makeNode("/root/send/data1/ptbs_rrgstno1");
- model.makeNode("/root/send/data1/ptbs_rrgstno2");
- model.makeNode("/root/send/data1/ptbs_brthdd");
- model.makeNode("/root/send/data1/ptbs_sex");
- model.makeNode("/root/send/data1/ptbs_age");
- model.makeNode("/root/send/data1/ptbs_hometel");
- model.makeNode("/root/send/data1/ptbs_mpphontel");
- model.makeNode("/root/send/data1/ptbs_etctel1");
- model.makeNode("/root/send/data1/ptbs_zipcd1");
- model.makeNode("/root/send/data1/ptbs_zipcd2");
- model.makeNode("/root/send/data1/ptbs_zipcdseq");
- model.makeNode("/root/send/data1/ptbs_highaddr");
- model.makeNode("/root/send/data1/ptbs_detladdr");
-
- //model.setValue("/root/send/data1/pid_flag", model.getValue(""));
- model.setValue("/root/send/data1/ptbs_pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/data1/ptbs_hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/send/data1/engnm", model.getValue("/root/main/patinfo/patinfolist/engnm"));
- model.setValue("/root/send/data1/ptbs_rrgstno1", model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
- model.setValue("/root/send/data1/ptbs_rrgstno2", model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
- model.setValue("/root/send/data1/ptbs_brthdd", model.getValue("/root/main/patinfo/patinfolist/brthdd"));
- model.setValue("/root/send/data1/ptbs_sex", model.getValue("/root/main/patinfo/patinfolist/sex"));
- model.setValue("/root/send/data1/ptbs_hometel", model.getValue("/root/main/patinfo/patinfolist/hometel"));
- model.setValue("/root/send/data1/ptbs_mpphontel", model.getValue("/root/main/patinfo/patinfolist/mpphontel"));
- model.setValue("/root/send/data1/ptbs_etctel1", model.getValue("/root/main/patinfo/patinfolist/etctel1"));
- model.setValue("/root/send/data1/ptbs_zipcd1", model.getValue("/root/main/patinfo/patinfolist/zipcd1"));
- model.setValue("/root/send/data1/ptbs_zipcd2", model.getValue("/root/main/patinfo/patinfolist/zipcd2"));
- model.setValue("/root/send/data1/ptbs_zipcdseq", model.getValue("/root/main/patinfo/patinfolist/zipcdseq"));
- model.setValue("/root/send/data1/ptbs_highaddr", model.getValue("/root/main/patinfo/patinfolist/addr"));
- model.setValue("/root/send/data1/ptbs_detladdr", model.getValue("/root/main/patinfo/patinfolist/detladdr"));
-
- //model.copyNode("/root/send/data1","/root/main/patinfo/patinfolist");
- model.copyNode("/root/send/data2","/root/hidden/session");
-
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- if (pid != null && pid != "" && pid != " " && pid != "-"){
- model.setValue("/root/hidden/source/srchcond", "1");
- model.setValue("/root/hidden/source/pid", ipt_pid.currentText);
- model.makeNode("/root/main/result/patinfo");
-
- if(submit("TRPMC02500")){
- if( getNodesetCount("/root/main/result/patinfo/patinfolist/pid") < 1 ){
- var msg = messageBox(pid + "로 등록된 환자정보가 존재하지 않습니다. 현재 입력하신 등록번호로 환자정보를 새로 등록하시겠습니까?", "Q999", "");
- if( msg != 6 ){
- model.removeNodeset("/root/main/result/patinfo");
- model.resetInstanceNode("/root/hidden/source");
- return false;
- }else{
- model.makeNode("/root/send/data1/pid_flag");
- model.setValue("/root/send/data1/pid_flag", "F"); //강제채번 플래그
- }
- }
- }
- }
-
- model.removeNodeset("/root/hidden/rcv/patinfo");
- model.resetInstanceNode("/root/source");
-
- if (submit("TXPMO00104")){
- if( getNodesetCount("/root/hidden/rcv/ptbs/ptbs_pid") > 0 ){
- model.makeValue("/root/main/patinfo/patinfolist/pid", model.getValue("/root/hidden/rcv/ptbs/ptbs_pid"));
- model.makeValue("/root/send/updatedata/patinfolist/pid", model.getValue("/root/hidden/rcv/ptbs/ptbs_pid"));
- //초재진산정시 전화예약에서 채번한 경우 초재진 여부 세팅 위해 telrsrvflag에 T로 세팅
- //model.makeNode("/root/send/updatedata/telrsrvflag");
- //model.makeNode("/root/send/updatedata/reservation/telrsrvflag");
- model.makeValue("/root/send/updatedata/reservation/telrsrvflag", "T");
- model.makeValue("/root/send/updatedata/checkfnexam", "3");
- model.refresh();
- }else{
- messageBox("인적사항변경 오류입니다. 다시 시도해 주세요.", "E999", "");
- return false;
- }
- }
- }
-
- function GetPidCreate(){
- submit("TRPMO00202");
- return model.getValue("/root/pidcreateuseyn/pidcreateuseynlist/cdnm");
- }
-
- function FseamOrdreqdescUseYn(){
- submit("TRPMO00211");
- return model.getValue("/root/fseamordreqdescuseyn/fseamordreqdescuseynlist/cdnm");
- }
-
- //선택진료여부 확인 체크
- function SpecOrdDescYnCheck(){
- var stat = model.getValue("/root/send/data3/stat");
- var specordyn = model.getValue("/root/main/reservation/specordyn");
- var specorddescyn = model.getValue("/root/main/reservation/specorddescyn");
- var bfspecorddescyn = model.getValue("/root/send/updatedata/reservation/bfspecorddescyn");
-
- if(stat == "i"){
- if( specordyn == "Y" && specorddescyn == "Y"){
- model.setValue("/root/send/data3/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/data3/hngnm",model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/send/data3/rrgstno1", model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
- model.setValue("/root/send/data3/rrgstno2", model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
- model.setValue("/root/send/data3/choiflag", "B");
- model.setValue("/root/send/data3/ordtype", "O");
- model.setValue("/root/send/data3/orddd", model.getValue("/root/main/reservation/orddd"));
- model.setValue("/root/send/data3/orddeptcd", model.getValue("/root/main/reservation/orddeptcd"));
- model.setValue("/root/send/data3/orddrid", model.getValue("/root/main/reservation/orddrid"));
- model.setValue("/root/send/data3/specordyn",model.getValue("/root/main/reservation/specordyn"));
- model.setValue("/root/send/data3/fromdd", model.getValue("/root/main/reservation/orddd"));
- model.setValue("/root/send/data3/rsrvdd", getCurrentDate().substr(0,8));
- model.setValue("/root/send/data3/elctappdd", getCurrentDate().substr(0,8));
- model.setValue("/root/send/data3/elctappsignkey", "call rsrv");
- model.setValue("/root/send/data3/elctappsigncnts", "call rsrv");
- model.setValue("/root/send/data3/elctapprelakey", "call rsrv");
- model.setValue("/root/send/data3/elctapprelacnts", "call rsrv");
- submit("TXPMC06507");
- }
- }else if(stat == "u"){
- //변경일경우 내부적인 처리사항이 결정되지 않음 사항이므로 이전데이터 변경없이 유지(팀장님 구두사항"20090625")
- if( specordyn == "Y" && specorddescyn == "Y"){
- model.setValue("/root/send/data3/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/data3/hngnm",model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/send/data3/rrgstno1", model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
- model.setValue("/root/send/data3/rrgstno2", model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
- model.setValue("/root/send/data3/choiflag", "B");
- model.setValue("/root/send/data3/ordtype", "O");
- model.setValue("/root/send/data3/orddd", model.getValue("/root/main/reservation/orddd"));
- model.setValue("/root/send/data3/orddeptcd", model.getValue("/root/main/reservation/orddeptcd"));
- model.setValue("/root/send/data3/orddrid", model.getValue("/root/main/reservation/orddrid"));
- model.setValue("/root/send/data3/specordyn",model.getValue("/root/main/reservation/specordyn"));
- model.setValue("/root/send/data3/fromdd", model.getValue("/root/main/reservation/orddd"));
- model.setValue("/root/send/data3/rsrvdd", getCurrentDate().substr(0,8));
- model.setValue("/root/send/data3/elctappdd", getCurrentDate().substr(0,8));
- model.setValue("/root/send/data3/elctappsignkey", "call rsrv");
- model.setValue("/root/send/data3/elctappsigncnts", "call rsrv");
- model.setValue("/root/send/data3/elctapprelakey", "call rsrv");
- model.setValue("/root/send/data3/elctapprelacnts", "call rsrv");
- model.setValue("/root/send/data3/stat", "i");
- }
- /*
- if(bfspecorddescyn == "Y"){
- model.setValue("/root/send/data3/befpid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/data3/befhngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/send/data3/befrrgstno1", model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
- model.setValue("/root/send/data3/befrrgstno2", model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
- model.setValue("/root/send/data3/befchoiflag", "B");
- model.setValue("/root/send/data3/befordtype", "O");
- model.setValue("/root/send/data3/beforddd", model.getValue("/root/send/updatedata/reservation/bforddd"));
- model.setValue("/root/send/data3/beforddeptcd", model.getValue("/root/send/updatedata/reservation/bforddeptcd"));
- model.setValue("/root/send/data3/beforddrid", model.getValue("/root/send/updatedata/reservation/bforddrid"));
- model.setValue("/root/send/data3/befspecordyn", model.getValue("/root/send/updatedata/reservation/bfspecorddescyn"));
- }
- */
- submit("TXPMC06507");
- }else if(stat == "d"){
- if( specordyn == "Y" ){
- model.setValue("/root/send/data3/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/data3/hngnm",model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/send/data3/rrgstno1", model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
- model.setValue("/root/send/data3/rrgstno2", model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
- model.setValue("/root/send/data3/choiflag", "B");
- model.setValue("/root/send/data3/ordtype", "O");
- model.setValue("/root/send/data3/orddd", model.getValue("/root/main/reservation/orddd"));
- model.setValue("/root/send/data3/orddeptcd", model.getValue("/root/main/reservation/orddeptcd"));
- model.setValue("/root/send/data3/orddrid", model.getValue("/root/main/reservation/orddrid"));
- model.setValue("/root/send/data3/specordyn",model.getValue("/root/main/reservation/specordyn"));
- model.setValue("/root/send/data3/fromdd", model.getValue("/root/main/reservation/orddd"));
- model.setValue("/root/send/data3/rsrvdd", getCurrentDate().substr(0,8));
- model.setValue("/root/send/data3/elctappdd", getCurrentDate().substr(0,8));
- model.setValue("/root/send/data3/elctappsignkey", "call rsrv");
- model.setValue("/root/send/data3/elctappsigncnts", "call rsrv");
- model.setValue("/root/send/data3/elctapprelakey", "call rsrv");
- model.setValue("/root/send/data3/elctapprelacnts", "call rsrv");
- }
- submit("TXPMC06507");
- }
- }
-
- //자격조회 팝업 호출
- function fInsuInfoSearch(flag){
- //보험증번호 조회(보험자격조회)
- var rrgstno = model.getValue("/root/main/patinfo/patinfolist/rrgstno1") + model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
- var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- var orddd = getCurrentDate();
- //model.getValue("/root/main/reservation/orddd");
- /*
- if( orddd == '' ){
- orddd = getCurrentDate();
- }/root/main/reservation/insukind
- */
- /*
- var parameter = rrgstno + "▦" + hngnm + "▦" + orddd + "▦" ;
-
- */
- var parm = model.getValue("/root/main/patinfo/patinfolist/rrgstno1") +
- model.getValue("/root/main/patinfo/patinfolist/rrgstno2") + "▦" + //주민번호
- model.getValue("/root/main/patinfo/patinfolist/hngnm") + "▦" + //이름
- model.getValue("/root/main/reservation/orddd") + "▦" + //외래진료일자
- "" + "▦" + //생성번호
- "O" + "▦" + //진료형태
- "" + "▦" + //퇴원일자
- "0" + "▦" + //본인일부부담금
- "" + "▦" + //기관부담금
- model.getValue("/root/main/patinfo/patinfolist/pid") + "▦" + //등록번호
- cmb_deptcd.value + "▦" + //진료과
- "" + "▦" + //본인부담구분
- "0" + "▦" + //비급여총금액
- "0" + "▦" + //산전지원금
- "" + "▦"; //보조유형
-
- setParameter("SPPMC03900_PARM",parm);
- //팝업타입 - 메시지 처리 피해가는 파라미터
- setParameter("SPPMC03900_MSGYN", "N");
- //model.setValue("/root/hidden/source", model.getValue("/root/hidden/source/checkfnexam"));
- if( flag == "P" ){
- modal("SPPMC03900", "1","50", "50", "SPPMC03900", "", "", "sysmenu:hidden;");
- }else{
- fApproveHeallifeAmt2();
- /*
- if( model.getValue("/root/init/P0022/P0022list[cd = '151']/nm") == 'I' ){
- //setParameter("SPPMC03900_MSGYN", "Y");
- fApproveHeallifeAmt2();
- if( getParameter("SPPMC03900_b005check") == "Y" ){
- // var retVal = messageBox("선택기관에서 의뢰된 수급권자 입니다. 자격조회 팝업을 열어 확인하시겠습니까?", "Q999", "");
- // if( retVal == '6' ){
- // fInsuInfoSearch("P");
- // }
- }
- }else{
- modal("SPPMC03900", "1","50", "50", "SPPMC03900", "", "", "sysmenu:hidden;");
- }
- */
- }
- // 자격조회여부 확인
- //if(model.getValue("/root/hidden/com/searchInsuInfoYN") == 'Y'){
-
- // 구환일때 보험자격 조회.
- //if( model.getValue("/root/main/patinfo/patinfolist/pid").length > 1 && histstat == 'T'){
- //inputEnterKey("button7", "DOMActivate");
- //button7.dispatch("DOMActivate");
- /*
- var gOrddd = getCurrentDate();
- // 구환일 경우 보험자격 조회
- var parm = model.getValue("/root/main/patinfo/patinfolist/rrgstno1") +
- model.getValue("/root/main/patinfo/patinfolist/rrgstno2") + "▦" + //주민번호
- model.getValue("/root/main/patinfo/patinfolist/hngnm") + "▦" + //이름
- gOrddd + "▦" + //외래진료일자
- "0" + "▦" + //생성번호
- "O" + "▦" + //진료형태
- "" + "▦" + //퇴원일자
- "0" + "▦" + //본인일부부담금
- "" + "▦" + //기관부담금
- model.getValue("/root/main/patinfo/patinfolist/pid") + "▦" + //등록번호
- // model.getValue("/root/init/orddeptcd[ cd = '" + cmb_orddeptcd.value + "']/reqdeptno") + "▦" + //진료과
- cmb_deptcd.value + "▦" + //진료과
- "" + "▦" + //본인부담구분
- "0" + "▦" + //비급여총금액
- "0" + "▦" + //산전지원금
- "" + "▦"; //보조유형
-
- setParameter("SPPMC03700_RTN",parm);
-
- //modal("SPPMC03900", "1","50", "50", "SPPMC03900", "", "", "sysmenu:hidden;");
- fApproveHeallifeAmt2();
- //model.resetInstanceNode("/root/send/updatedata/reservation/insukind");
- */
-
- if (getParameter("SPPMC03900_RTN") == "N" || getParameter("SPPMC03900_RTN") == ""){
- //자격조회 완료여부 세팅
- model.setValue("/root/hidden/flag/check_insuinfo_flag", "N");
- model.setValue("/root/main/reservation/insukind", "51");
- }else if(getParameter("SPPMC03900_RTN") == "F"){
- model.setValue("/root/hidden/flag/check_insuinfo_flag", "F");
- return;
- }
-
- if (getParameter("SPPMC03900_RTN") == "Y") {
- //model.setValue("root/send/updatedata/reservation/searchInsuInfoyn", "Y");
- model.setValue("/root/main/reservation/searchInsuInfoyn", "Y");
- //return 값이 있으면, 보험유형,증번호,보험자기호,취득일자,피보험자성명
- var insukind = getParameter("SPPMC03900_insukind");
-
- //자격조회 완료여부 세팅
- model.setValue("/root/hidden/flag/check_insuinfo_flag", "Y");
- model.setValue("/root/main/reservation/insukind" , insukind);
- model.setValue("/root/main/reservation/insucd" , getParameter("SPPMC03900_insucd"));
- model.setValue("/root/main/reservation/insuno" , getParameter("SPPMC03900_insuno"));
- model.setValue("/root/main/reservation/insdnm" , getParameter("SPPMC03900_insdnm"));
- model.setValue("/root/main/reservation/ptin_fromdd" , getParameter("SPPMC03900_insufromdd"));
- /*
- model.setValue("/root/hidden/flag/check_insuinfo_flag", "Y");
- model.setValue("/root/send/updatedata/reservation/insukind" , insukind);
- model.setValue("/root/send/updatedata/reservation/insucd" , getParameter("SPPMC03900_insucd"));
- model.setValue("/root/send/updatedata/reservation/insuno" , getParameter("SPPMC03900_insuno"));
- model.setValue("/root/send/updatedata/reservation/insdnm" , getParameter("SPPMC03900_insdnm"));
- model.setValue("/root/send/updatedata/reservation/ptin_fromdd" , getParameter("SPPMC03900_insufromdd"));
- */
- }
-
- clearParameter("SPPMC03900_RTN");
- clearParameter("SPPMC03900_insukind");
- clearParameter("SPPMC03900_insucd");
- clearParameter("SPPMC03900_insuno");
- clearParameter("SPPMC03900_insdnm");
- clearParameter("SPPMC03900_insufromdd");
- model.refresh();
- }
-
- function fHIEList()
- {
- modal("SPARC02800");
- var patientCustomId = model.getvalue("/root/main/hiepat/patientid");
- //2015/08/21 이정택 추가(환자 정보 없을시에 리턴하도록 수정)
- if(isNull(patientCustomId)){
- return;
- }
- //HIE3
- hie_zipcd1 = "";
- hie_zipcd2 = "";
- hie_addrbase = "";
- hie_addrdetl = "";
- hie_sex = model.getvalue("/root/main/hiepat/gender");
- hie_rrgstno1 = model.getvalue("/root/main/hiepat/hie_rrgstno1");
- hie_rrgstno2 = model.getvalue("/root/main/hiepat/hie_rrgstno2");
-
- if (hie_rrgstno1 == "" || hie_rrgstno2 == "" || hie_rrgstno1.length != 6 || hie_rrgstno2.length != 7) {
- messageBox("주민번호가 없거나 자리수가 맞지 않습니다","I");
- return;
- }
-
- delPatientInfos(); //상단환자정보 클리어 - com/commonweb/js/common.js
- hieyn="Y";
- ipt_orddd.disabled=false;
- fPidEnterEvent();
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="2,800;" style="vertical-align:top; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:93px; height:14px; ">전화예약</caption>
- </group>
- <group id="group2" style="left:0px; top:15px; width:1195px; height:738px; ">
- <button id="btn_instsms" class="btn2_letter6" style="left:261px; top:153px; width:86px; height:19px; ">
- <caption>예약SMS전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var orddd = model.getValue("/root/main/reservation/orddd");
- if (orddd == "") {
- messageBox("진료일자가 입력되지 않았습니다.", "E999");
- return;
- }
-
- var ordtm = model.getValue("/root/main/reservation/ordtm");
- if (ordtm == "") {
- messageBox("진료시간이 입력되지 않았습니다.", "E999");
- return;
- }
-
- var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- if (hngnm == "") {
- messageBox("환자명이 입력되지 않았습니다.", "E999");
- return;
- }
-
- hngnm = hngnm.replace("★", "");
-
- if (model.getValue("/root/main/patinfo/patinfolist/mpphontel") == "") {
- messageBox("휴대폰 번호가 입력되지 않았습니다.", "E999");
- return;
- }
-
- if (model.getValue("/root/main/reservation/orddeptcd") == "") {
- messageBox("진료과가 지정되지 않았습니다.", "E999");
- return;
- }
-
- //2014/12/08 이정택 추가
- var msg="";
- var dutplceinstcd=getUserInfo("dutplceinstcd");
-
- //발신번호 검색 여부 추가(2017/03/15 이정택)
- var telnosrchyn = "Y";
- var cntctel = "";
- if(dutplceinstcd=="031"){
- msg = "[경북대학교병원]";
- }else if(dutplceinstcd=="032"){
- msg = "[칠곡경북대학교병원]";
- telnosrchyn = "N";
- cntctel = "0532002114";
- }else if(dutplceinstcd=="033"){
- msg = "[경북대학교치과병원]";
- }else{
- msg = "[경북대학교병원]";
- }
- //2014/12/08 이정택 추가
-
- //2017/12/05 협력의뢰센터에서 문자 보낼시 문자 내용 수정(이정택)
- var fsexamflag = model.getValue("/root/main/reservation/fsexamflag");
- if(RC=='1' && (fsexamflag == 'D' || fsexamflag == 'F')){
- msg = msg + hngnm + "님 "
- + orddd.substr(4, 2) + "월"
- + orddd.substr(6, 2) + "일 "
- + ordtm.substr(0, 2) + "시"
- + ordtm.substr(2, 2) + "분 "
- + combo5.label
- + " 진료예약입니다.(신분증, 진료의뢰서지참)";
- }else{
- msg = msg + hngnm + "님 "
- + orddd.substr(4, 2) + "월"
- + orddd.substr(6, 2) + "일 "
- + ordtm.substr(0, 2) + "시"
- + ordtm.substr(2, 2) + "분 "
- + combo5.label
- + " 진료예약입니다.(신분증지참)";
- }
- //2017/12/05 협력의뢰센터에서 문자 보낼시 문자 내용 수정(이정택)
-
- if (messageBox("아래 내용으로 SMS가 전송됩니다. 계속하시겠습니까?\n\n" + msg, "Q999") == 6) {
-
- model.setValue("/root/send/smsinfo/recvrnm", "hngnm");
- model.setValue("/root/send/smsinfo/recvrtelno", model.getValue("/root/main/patinfo/patinfolist/mpphontel"));
- model.setValue("/root/send/smsinfo/msgparam", msg);
- model.setValue("/root/send/smsinfo/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/smsinfo/orddeptcd", model.getValue("/root/main/reservation/orddeptcd"));
- model.makeValue("/root/send/smsinfo/telnosrchyn", telnosrchyn);
- model.makeValue("/root/send/smsinfo/cntctel", cntctel);
-
- submit("TXPMO01801", false);
- messageBox("SMS가 전송되었습니다.", "I999");
- }
-
- ]]>
- </script>
- </button>
- <select1 id="cmb_orddrid" ref="/root/main/reservation/orddrid" class="combo_default" navindex="12" appearance="minimal" style="left:432px; top:180px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddrid/orddridlist">
- <label ref="nmsp"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/reservation/orddd", "");
- model.setValue("/root/main/reservation/ordtm", "");
-
- //model.setValue("/root/main/reservation/centcd", "");
- model.setValue("/root/main/reservation/centcdyn", "");
- var orddeptcd1 = model.getValue("/root/main/outhist/outhistlist/orddeptcd");
- var orddeptcd2 = model.getValue("/root/main/reservation/orddeptcd");
- var orddrid1 = model.getValue("/root/main/outhist/outhistlist/orddrid");
- var orddrid2 = model.getValue("/root/main/reservation/orddrid");
-
- fGetCalendarData();
- cmb_orddrid.refresh();
-
- var orddrabbr = model.getValue("/root/init/orddrid/orddridlist[ cd = '" + cmb_orddrid.value + "']/drengabbr");
- model.setValue("/root/main/reservation/orddeptnm", orddrabbr);
-
- var sp = model.getValue("/root/init/orddrid/orddridlist[cd = '" + cmb_orddrid.value + "' and dp = '" + cmb_deptcd.value + "']/sp");
-
- if( sp == 'Y' || sp == 'y' ){
- model.setValue("/root/main/reservation/specordyn", sp);
- }else{
- model.setValue("/root/main/reservation/specordyn", 'N');
- }
-
- //초재진여부 조회
- //2016/11/28
- //fGetFsexamFlag();
- //2016/11/28
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="combo2" ref="/root/main/reservation/updtcnclresn" class="combo_default" navindex="20" appearance="minimal" style="left:308px; top:461px; width:269px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0020list/P0020">
- <label ref="cdnm"/>
- <value ref="cdnm"/>
- </itemset>
- </choices>
- </select1>
- <input id="input2" ref="/root/main/reservation/updtcnclresn" class="input_default" style="left:308px; top:461px; width:249px; height:19px; "/>
- <line id="line13" class="line_2" style="x1:0px; y1:433px; x2:577px; y2:433px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:124px; x2:577px; y2:124px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:100px; x2:577px; y2:100px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:76px; x2:577px; y2:76px; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:52px; x2:577px; y2:52px; "/>
- <line id="line11" class="line_2" style="x1:0px; y1:409px; x2:215px; y2:409px; "/>
- <line id="line32" class="line_2" style="x1:0px; y1:383px; x2:577px; y2:383px; "/>
- <line id="line31" class="line_2" style="x1:0px; y1:305px; x2:577px; y2:306px; "/>
- <line id="line30" class="line_2" style="x1:0px; y1:457px; x2:577px; y2:457px; "/>
- <input id="ipt_hometel" ref="/root/main/patinfo/patinfolist/mpphontel" class="input_default" navindex="6" maxlength="13" appearance="input" style="left:479px; top:55px; width:98px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/patinfo/patinfolist/mpphontel", fMakeTelNumFormat(model.getValue("/root/main/patinfo/patinfolist/mpphontel")));
- ipt_hometel.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13"){
- model.setFocus("ipt_etctel1");
- }
- ]]>
- </script>
- </input>
- <line id="line12" class="line_1" style="x1:0px; y1:560px; x2:970px; y2:560px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:74px; height:13px; ">인적사항</caption>
- <input id="ipt_hngnm" ref="/root/main/patinfo/patinfolist/hngnm" class="input_s_essential" navindex="3" imemode="hangul" style="left:93px; top:55px; width:103px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- /*
- model.setValue("/root/hidden/source/srchcond", "2");
- model.setValue("/root/hidden/source/hngnm", ipt_hngnm.currentText);
- inputEnterKey("btn_search", "DOMActivate");
- */
- if (event.keyCode == "13"){
- model.setValue("/root/main/patinfo/patinfolist/hngnm", ipt_hngnm.currentText);
- model.setFocus("ipt_rrgstno1");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_engnm" ref="/root/main/patinfo/patinfolist/engnm" class="input_default" navindex="4" appearance="input" style="left:224px; top:55px; width:182; height:19px; "/>
- <caption id="caption22" class="tit_2" style="left:5px; top:159px; width:43px; height:13px; ">예약</caption>
- <input id="ipt_mpphontel" ref="/root/main/patinfo/patinfolist/brthdd" class="input_default" navindex="5" maxlength="13" format="yyyy-mm-dd" appearance="input" style="left:479px; top:31px; width:98px; height:19px; "/>
- <input id="ipt_detladdr" ref="/root/main/patinfo/patinfolist/detladdr" class="input_default" navindex="9" appearance="input" style="left:92px; top:127px; width:314px; height:19px; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:577px; y2:25px; "/>
- <input id="ipt_rrgstno1" ref="/root/main/patinfo/patinfolist/rrgstno1" class="input_s_essential" navindex="1" format="999999" style="left:93px; top:79px; width:60px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- var hngnm = ipt_hngnm.currentText;
- var rrgstno1 = ipt_rrgstno1.currentText;
- var rrgstno2 = ipt_rrgstno2.currentText;
-
- if( hngnm.length > 1 ){
- model.setValue("/root/hidden/source/srchcond", "4");
- model.setValue("/root/hidden/source/hngnm", hngnm);
- model.setValue("/root/hidden/source/rrgstno1", rrgstno1);
- model.setValue("/root/hidden/source/rrgstno2", rrgstno2);
- }else{
- model.setValue("/root/hidden/source/srchcond", "3");
- model.setValue("/root/hidden/source/rrgstno1", rrgstno1);
- model.setValue("/root/hidden/source/rrgstno2", rrgstno2);
- }
-
- // model.setValue("/root/hidden/source/srchcond", "3");
- // model.setValue("/root/hidden/source/rrgstno1", ipt_rrgstno1.currentText);
- // model.setValue("/root/hidden/source/rrgstno2", ipt_rrgstno2.currentText);
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_pid" ref="/root/main/patinfo/patinfolist/pid" class="input_default" imemode="alpha" appearance="input" style="left:93px; top:31px; width:126px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- // 2014/12/28 HIE flag 초기화
- hieyn="N";
- // 2014/12/28 HIE flag 초기화
- //fInitialize(); //초기화
- delPatientInfos(); //상단환자정보 클리어 - com/commonweb/js/common.js
- fPidEnterEvent();
-
- // 메르스 접촉여부 확인
- if(model.getValue("/root/main/patinfo/patinfolist/pid")!=""){
- fMersPatChk("PAM", model.getValue("/root/main/patinfo/patinfolist/pid"));
- }
-
- // 2015/07/28 신우편번호 확인
- // 2015/08/21 전화예약은 팝업 안뜨도록 수정
- /*
- if(model.getValue("/root/paminit/P0022list/P0022[cdid='94']/cdnm")=="Y"){
- if(fNewZipCode(model.getValue("/root/main/patinfo/patinfolist/zipcd1"), model.getValue("/root/main/patinfo/patinfolist/zipcd2"))){
- btn_srchzipcd.dispatch("DOMActivate");
- }
- }
- */
- // 2015/07/28 신우편번호 확인
-
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
- fInitialize();
- model.setValue("/root/main/patinfo/patinfolist/pid", pid);
- fPidEnterEvent();
- ]]>
- </script>
- </input>
- <input id="ipt_etctel1" ref="/root/main/patinfo/patinfolist/hometel" class="input_default" navindex="7" maxlength="13" appearance="input" style="left:479px; top:79px; width:98px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/patinfo/patinfolist/hometel", fMakeTelNumFormat(model.getValue("/root/main/patinfo/patinfolist/hometel")));
- ipt_etctel1.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13"){
- model.setFocus("input5");
- }
- ]]>
- </script>
- </input>
- <input id="opt_age" ref="/root/main/patinfo/patinfolist/age" class="input_default" appearance="input" style="left:351px; top:31px; width:55px; height:19px; "/>
- <caption id="caption10" class="cell_1" style="left:0px; top:102px; width:90px; height:23px; vertical-align:middle; ">우편번호</caption>
- <caption id="caption11" class="cell_1" style="left:0px; top:54px; width:90px; height:23px; vertical-align:middle; ">성명[한/영]</caption>
- <caption id="caption12" class="cell_1" style="left:409px; top:30px; width:67px; height:23px; vertical-align:middle; ">생년월일</caption>
- <caption id="caption13" class="cell_1" style="left:0px; top:126px; width:90px; height:23px; vertical-align:middle; ">하위주소</caption>
- <caption id="caption14" class="cell_1" style="left:0px; top:78px; width:90px; height:23px; vertical-align:middle; ">주민번호</caption>
- <caption id="caption15" class="cell_1" style="left:409px; top:78px; width:67px; height:23px; vertical-align:middle; ">집전화</caption>
- <caption id="caption7" class="cell_1" style="left:0px; top:30px; width:90px; height:23px; vertical-align:middle; ">등록번호</caption>
- <caption id="caption8" class="cell_1" style="left:224px; top:30px; width:67px; height:23px; vertical-align:middle; ">성별/나이</caption>
- <caption id="caption17" class="cell_1" style="left:224px; top:78px; width:67px; height:23px; vertical-align:middle; ">감면내역</caption>
- <caption id="caption9" class="cell_1" style="left:409px; top:54px; width:67px; height:23px; vertical-align:middle; ">휴대폰</caption>
- <button id="btn_search" accesskey="f2" class="icon_search" style="left:202px; top:57px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //초기화
- //fInitialize();
- model.setValue("/root/hidden/source/checkfnexam", "1");
- model.setValue("/root/hidden/source/autoflag", "N");
- //보험 자격조회 체크 여부 초기화
- model.setValue("/root/hidden/flag/check_insuinfo_flag", "N");
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/hidden/source", "/root/send");
-
- var popupendflag = model.getValue("/root/main/popupendflag");
- if (popupendflag == "ok"){
- //초재진 구분
- if( model.getValue("/root/main/patinfo/patinfolist/pid").length > 0 ){
- model.setValue("/root/hidden/source/checkfnexam", '3');
- }else{
- model.setValue("/root/main/patinfo/patinfolist/pid", "");
- model.setValue("/root/hidden/source/checkfnexam", '1');
- }
-
- //합번등록번호 체크
- var sBindPid = model.getValue("/root/main/patinfo/patinfolist/bindpid");
- if( sBindPid != '-' && sBindPid != '' && sBindPid != ' ' ){
- //합번된 등록번호 메세지 처리
- var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
-
- var retValue = messageBox(sPid + "(" + sHngnm + ") 환자의 등록번호가 [ " + sBindPid + " ] 로 합번 되었습니다. 합번된 등록번호로 재조회 하시겠습니까?", "Q999", "");
- if( retValue == '6' ){
- model.setValue("/root/main/patinfo/patinfolist/pid", sBindPid);
- model.refresh();
- event.keyCode ="13";
- //ipt_cardno.dispatch("onkeypress");
- ipt_pid.dispatch("onkeypress");
- }else{
- //화면 초기화!!
- btn_init.dispatch("DOMActivate");
- return false;
- }
- }
-
- //감면 내역 있으면 표시
- var pid = model.getvalue("/root/main/patinfo/patinfolist/pid");
- if( pid != '' && pid != ' ' && pid != '-' ){
- model.setValue( "/root/send/pid", pid);
- submit("TRPMO00205");
- }
- //감면 내역 있으면 표시 끝
-
- //환자특이내역 존재여부 표시
- if( model.getValue("/root/main/patinfo/patinfolist/patspcfyn") == 'Y'){
- btn_patspcfyn.attribute("background-color") = "#ff0000";
- }else{
- btn_patspcfyn.attribute("background-color") = "#c0c0c0";
- }
- fSearch();
- }else{
- var srchcond = model.getValue("/root/hidden/source/srchcond");
- if( srchcond == '4' || srchcond == '3' ){
- // fGetSexAgeBirthDD();
- }
- }
-
- //팝업으로 넘겨준 데이터 초기화
- var checkfnexam = model.getValue("/root/hidden/source/checkfnexam");
- model.resetInstanceNode("/root/hidden/source");
- model.setValue("/root/hidden/source/checkfnexam", checkfnexam);
-
- //외래이력 휴진색상 체크
- outhistColorChange();
-
- // 메르스 접촉여부 확인
- if(model.getValue("/root/main/patinfo/patinfolist/pid")!=""){
- fMersPatChk("PAM", model.getValue("/root/main/patinfo/patinfolist/pid"));
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption28" class="tit_2" style="left:5px; top:543px; width:108px; height:13px; ">외래이력</caption>
- <caption id="caption38" class="tit_2" style="left:587px; top:10px; width:154px; height:13px; ">외래등록내역</caption>
- <caption id="caption42" class="cell_1" style="left:0px; top:203px; width:105px; height:23px; vertical-align:middle; ">진료일자/시간</caption>
- <caption id="caption44" class="cell_1" style="left:0px; top:387px; width:105px; height:23px; vertical-align:middle; ">선택진료설명여부</caption>
- <input id="ipt_ordtm" ref="/root/main/reservation/ordtm" class="input_default" navindex="14" format="hh:nn" style="left:218px; top:204px; width:50px; height:19px; "/>
- <select1 id="cmb_deptcd" ref="/root/main/reservation/orddeptcd" class="combo_default" navindex="11" appearance="minimal" style="left:196px; top:180px; width:107px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/reservation/orddd", "");
- model.setValue("/root/main/reservation/ordtm", "");
-
- //노드와 컨트롤의 값 동기화를 위해 리풀레쉬 해준다.
- cmb_deptcd.refresh();
- var rsrvflag = model.getValue("/root/main/reservation/rsrvflag");
-
- //센터여부, 센터코드, 하위부서, 선택진료여부 초기화
- model.setValue("/root/main/reservation/subdeptcd", "-");
- model.setValue("/root/main/reservation/centcd", "");
- model.setValue("/root/main/reservation/centcdyn", "");
- model.setValue("/root/main/reservation/specordyn", "");
-
- //응급의학과 블럭킹
- if( cmb_deptcd.value == '2280000000' ){
- messageBox("응급의학과는 전화예약에서 접수할 수 없습니다.", "E999", "");
- model.setValue("/root/main/reservation/orddrid", "");
- model.setValue("/root/main/reservation/orddeptcd", "");
- model.setValue("/root/main/reservation/subdeptcd", "-");
- model.setValue("/root/main/reservation/orddeptnm", "");
- // model.setValue("/root/main/reservation/centcd", "-");
- model.refresh();
- model.setFocus("cmb_deptcd");
- return false;
- }
-
- /*
- combo6.visible = false;
- cmb_orddrid.visible = true;
- */
- //sub진료과 세팅 2008-09-12 추가
- cmb_subdeptcd.choices.itemset.attribute("nodeset") = "/root/init/subdeptcd/subdeptcdlist[dp = '"+ cmb_deptcd.value +"' or dp = '-']";
- cmb_subdeptcd.refresh();
-
- //2007-08-17 이동식 추가 - 진료과 선택시 영문약어표시
- var deptengabbr = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/deptengabbr");
- model.setValue("/root/main/reservation/orddeptnm", deptengabbr);
- //END..
-
- cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_deptcd.value + "']";
- model.setValue("/root/main/reservation/orddrid", "");
-
- //초재진여부 조회
- fGetFsexamFlag();
- model.refresh();
-
- if(RD == 'Y'){
- if( model.getValue("/root/main/patinfo/patinfolist/pid").length < 1 && model.getValue("/root/main/patinfo/patinfolist/hngnm").length < 1 ){
- //환자정보 없을 경우 진료의뢰서 체크 안함!!!
-
- }else if( model.getValue("/root/main/patinfo/patinfolist/pid").length < 1 && model.getValue("/root/main/patinfo/patinfolist/hngnm").length > 1 ){
- var reqdeptno = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/reqdeptno");
-
- //등록번호 없고 환자 이름이 입력된 경우 - 신환! 무조건 메세지 출력!!
- // 치과 진찰료 별도산정 관련 수정(2017/05/10 이정택)
- //if( reqdeptno == "55" || reqdeptno == "23" || reqdeptno == "21" || rsrvflag == "C" ){
- if( reqdeptno.substr(0,1)=="5" || reqdeptno == "23" || reqdeptno == "21" || rsrvflag == "C" ){
- model.setValue("/root/main/reservation/ordreqdescyn", 'Y');
- //진료의뢰서가 필요 없을경우 선택진료설명여부 Yes 세팅
- //model.setValue("/root/main/reservation/specorddescyn", 'Y');
- }else {
- messageBox("진료의뢰서가 필요합니다.", "E999", "");
- model.setValue("/root/main/reservation/ordreqdescyn", '');
- }
- }else{
- //진료의뢰서 확인
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var fsexamflag = model.getValue("/root/main/reservation/fsexamflag");
- var orddeptcd = cmb_deptcd.value;
- // var deptengabbr = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/deptengabbr");
- var reqdeptno = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/reqdeptno");
- var outhistpath = "/root/main/outhist/outhistlist"; //외래이력노드
-
- if( ! fCheckOrdCnst(pid, fsexamflag, orddeptcd, deptengabbr, reqdeptno, outhistpath, INSUKIND) && rsrvflag != "C"){
- messageBox("진료의뢰서가 필요합니다.", "E999", "");
- model.setValue("/root/main/reservation/ordreqdescyn", '');
- }else {
- model.setValue("/root/main/reservation/ordreqdescyn", 'Y');
- //진료의뢰서가 필요 없을경우 선택진료설명여부 Yes 세팅
- //model.setValue("/root/main/reservation/specorddescyn", 'Y');
- }
- }
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_orddd" ref="/root/main/reservation/orddd" class="input_default" disabled="true" navindex="13" inputtype="date" style="left:108px; top:204px; width:107px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( model.getValue("/root/main/reservation/rsrvflag") != '9' ){
- //초재진여부 조회
- fGetFsexamFlag();
- }
- model.setFocus("ipt_ordtm");
- model.refresh();
- ]]>
- </script>
- </input>
- <select1 id="radio5" ref="/root/main/reservation/specorddescyn" navindex="15" appearance="full" cellspacing="8" cols="2" rows="1" overflow="visible" style="left:109px; top:389px; width:106px; height:20px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>Yes</label>
- <value>Y</value>
- </item>
- <item>
- <label>No</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <line id="line51" class="line_1" style="x1:582px; y1:25px; x2:969px; y2:25px; "/>
- <caption id="caption3" class="cell_1" style="left:0px; top:411px; width:105px; height:23px; vertical-align:middle; ">보험회사직원여부</caption>
- <select1 id="radio15" ref="/root/main/reservation/insuchrgyn" navindex="16" appearance="full" cellspacing="8" cols="2" rows="1" overflow="visible" style="left:109px; top:413px; width:106px; height:20px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>Yes</label>
- <value>Y</value>
- </item>
- <item>
- <label>No</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption4" class="cell_1" style="left:0px; top:435px; width:105px; height:23px; vertical-align:middle; ">의뢰서설명여부</caption>
- <select1 id="radio6" ref="/root/main/reservation/ordreqdescyn" navindex="17" appearance="full" cellspacing="8" cols="2" rows="1" overflow="visible" style="left:109px; top:438px; width:106px; height:15px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>Yes</label>
- <value>Y</value>
- </item>
- <item>
- <label>No</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption16" class="cell_1" style="left:0px; top:351px; width:105px; height:35px; vertical-align:middle; ">
- <![CDATA[통화내용
- ]]>
- </caption>
- <textarea id="textarea3" ref="/root/main/reservation/telrsrvrem" navindex="19" scroll="vertical" imemode="hangul" style="left:108px; top:351px; width:469px; height:35px; "/>
- <datagrid id="grd_outrgst" nodeset="/root/main/outrgst/outrgstlist" class="datagrid2" backcoloralternate="transparent" caption="시간^등록번호^환자명^초/재^예약
구분^진료구분^최초접수시간^통화내용^수납여부^rrgstno1^rrgstno2^진료구분" colsep="^" colwidth="39, 71, 57, 60, 50, 55, 130, 100, 35, 100, 100, 100, 100" dataheight="23" defaultrows="2" extendlastcol="scroll" rowheight="23" rowsep="|" style="left:974px; top:30px; width:219px; height:615px; ">
- <col ref="ordtm" format="hh:nn"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="fsexamflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0021list/P0021">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="rsrvflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0341list/P0341">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="etcordflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0022list/P0022">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="fstacptdt" visibility="hidden" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="telrsrvrem"/>
- <col ref="rcptyn"/>
- <col ref="rrgstno1" visibility="hidden"/>
- <col ref="rrgstno2" visibility="hidden"/>
- <col ref="reglscheflag" visibility="hidden"/>
- <col ref="etcrsrvflag" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var cur_row = grd_outrgst.row;
- var cur_col = grd_outrgst.col;
- var checkflag = model.getValue("/root/main/outrgst/outrgstlist[" + cur_row + "]/fsexamflag");
- var fsexamflag = model.getValue("/root/main/reservation/fsexamflag");
- var hngnm = model.getValue("/root/main/outrgst/outrgstlist[" + cur_row + "]/hngnm");
-
- if(cur_row > 0 && cur_col >= 0){
- if(fsexamflag == 'R' || fsexamflag == 'S'){
- if(checkflag == 'F' || checkflag == 'D'){
- messageBox("재진환자는 재진시간만 예약이 가능합니다.", "E999", "");
- return;
-
- }
- if( hngnm.length != 0){
- messageBox("이미 예약이 되어 있는 시간입니다.", "E999", "");
- return;
- }
-
- }else if(fsexamflag == 'F' || fsexamflag == 'D' || fsexamflag == '4'){
- if(checkflag == 'R' || checkflag == 'S'){
- messageBox("초진환자는 초진시간만 예약이 가능합니다.", "E999", "");
- return;
- }
-
- if(hngnm.length != 0){
- messageBox("이미 예약이 되어 있는 시간입니다.", "E999", "");
- return;
- }
- }
- /*
- if(hngnm != '' || hngnm != null || hngnm != '-' || hngnm != ' ' ){
- messageBox("이미 예약이 되어 있는 시간입니다.", "E999", "");
- return;
- }
- */
- model.setValue("/root/main/reservation/ordtm", model.getValue("/root/main/outrgst/outrgstlist[" + cur_row + "]/ordtm"));
- //model.setValue("/root/main/reservation/orddd", model.getValue("/root/main/outrgst/outrgstlist[" + cur_row + "]/orddd"));
-
- //심층진찰 관련 프로그램 수정(2018/02/02)
- var etcrsrvflag = model.getValue("/root/main/outrgst/outrgstlist[" + cur_row + "]/etcrsrvflag");
-
- if(etcrsrvflag=='B'){
- messageBox("선택하신 세션은 심층진찰 세션입니다.", "I999", "");
- model.makeValue("/root/main/reservation/etcordflag", 'U');
- }else{
- model.makeValue("/root/main/reservation/etcordflag", '-');
- }
- //심층진찰 관련 프로그램 수정(2018/02/02)
-
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <select1 id="radio13" ref="/root/main/rsrvflag" appearance="full" cellspacing="8" cols="7" rows="1" overflow="visible" style="left:76px; top:542px; width:599px; height:16px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>전화/인터넷예약</label>
- <value>T</value>
- </item>
- <item>
- <label>접수이력</label>
- <value>R</value>
- </item>
- <item>
- <label>미진료이력</label>
- <value>N</value>
- </item>
- <item>
- <label>취소이력</label>
- <value>X</value>
- </item>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>검사예약</label>
- <value>S</value>
- </item>
- <!--
- <item>
- <label>타검사현황</label>
- <value>E</value>
- </item>
- -->
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //탭이동
- fChangeRsrvSpecTab();
-
- var rsrvFlag = radio13.value;
- var curDate = getCurrentDate();
-
- //접수이력
- if( rsrvFlag == "R" ){
- grd_outhist.attribute("nodeset") = "/root/main/outhist/outhistlist[ histstat ='R' ]";
- grd_outhist.rebuild();
-
- //전화/인터넷예약
- }else if( rsrvFlag == "T"){
- grd_outhist.attribute("nodeset") = "/root/main/outhist/outhistlist[ (histstat ='T' or histstat = 'R') and ( rsrvflag = '2' or rsrvflag = '5' or rsrvflag = '1') and orddd>="+curDate+"]";
- //grd_outhist.attribute("nodeset") = "/root/main/outhist/outhistlist[ orddd > "+ curDate+"]";
- grd_outhist.rebuild();
-
- //취소이력
- }else if( rsrvFlag == "X"){
- grd_outhist.attribute("nodeset") = "/root/main/outhist/outhistlist[ histstat ='X' ]";
- grd_outhist.rebuild();
-
- //미진료이력
- }else if( rsrvFlag == "N"){
- //grd_outhist.attribute("nodeset") = "/root/main/outhist/outhistlist[ histstat ='R' and dracptyn != 'Y']";
- //grd_outhist.attribute("nodeset") = "/root/main/outhist/outhistlist[ orddd < "+ curDate+"]";
- grd_outhist.attribute("nodeset") = "/root/main/outhist/outhistlist[ dracptyn != 'Y' and (histstat = 'T' or histstat = 'R') and orddd>="+curDate+"]";
- grd_outhist.rebuild();
-
- //검사예약
- }else if( rsrvFlag == "S"){
- grd_outhist.attribute("nodeset") = "/root/main/outhist/outhistlist";
- grd_outhist.rebuild();
-
- //타검사현황
- }else{
- grd_outhist.attribute("nodeset") = "/root/main/outhist/outhistlist";
- grd_outhist.rebuild();
- grd_anoprcplist.rebuild();
- }
- grd_outhist.allStyle("all","background-color") = "#ffffff"; //배경색을 초기화 한다.
- setRowStyle("grd_outhist", "2","Y","holiyn","equal"); //row의 색상을 변경한다.
- grd_outhist.rebuild();
- ]]>
- </script>
- </select1>
- <caption id="caption30" class="cell_1" style="left:0px; top:308px; width:105px; height:40px; vertical-align:middle; ">의사 전문분야</caption>
- <textarea id="output132" ref="/root/main/reservation/ordfild" disabled="false" appearance="textarea" style="left:108px; top:308px; width:469px; height:40px; "/>
- <line id="line24" class="line_2" style="x1:0px; y1:225px; x2:577px; y2:225px; "/>
- <caption id="caption31" class="cell_1" style="left:0px; top:227px; width:105px; height:38px; text-align:center; vertical-align:middle; ">
- <![CDATA[초진
- 특이사항]]>
- </caption>
- <textarea id="opt_fstexamrem" ref="/root/main/reservation/fstexamrem" disabled="false" editable="false" appearance="textarea" style="left:108px; top:227px; width:469px; height:38px; "/>
- <line id="line28" class="line_1" style="x1:973px; y1:25px; x2:1193px; y2:25px; "/>
- <caption id="caption32" class="tit_2" style="left:976px; top:10px; width:99px; height:13px; ">외래등록내역</caption>
- <select1 id="radio1" ref="/root/main/reservation/ordreqhospgrde" navindex="18" appearance="full" cellspacing="11" cols="2" rows="1" overflow="visible" style="left:109px; top:462px; width:105px; height:15px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>1차</label>
- <value>1</value>
- </item>
- <item>
- <label>2차</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_rrgstno2" ref="/root/main/patinfo/patinfolist/rrgstno2" class="input_s_essential" navindex="2" autonext="false" format="9999999" style="left:156px; top:79px; width:63px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13"){
- fRgstno2EnterEvent();
- // fSearch();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if( model.getValue("/root/main/patinfo/patinfolist/brthdd") == "" || model.getValue("/root/main/patinfo/patinfolist/sex") == "" || model.getValue("/root/main/patinfo/patinfolist/age") ==""){
- fGetSexAgeBirthDD();
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_zipcd1" ref="/root/main/patinfo/patinfolist/zipcd1" class="input_default" appearance="input" style="left:93px; top:103px; width:30px; height:19px; "/>
- <output id="opt_addr" ref="/root/main/patinfo/patinfolist/addr" class="output_fix" appearance="output" style="left:199px; top:103px; width:207px; height:19px; "/>
- <input id="ipt_zipcd2" ref="/root/main/patinfo/patinfolist/zipcd2" class="input_default" appearance="input" style="left:126px; top:103px; width:30px; height:19px; "/>
- <input id="ipt_zipcdseq" ref="/root/main/patinfo/patinfolist/zipcdseq" class="input_default" appearance="input" style="left:159px; top:103px; width:15px; height:19px; "/>
- <import id="import1" src="../../../pam/pambaseinfomngtweb/xrw/SPPMB01001_병원달력.xrw" style="left:582px; top:30px; width:388px; height:505px; "/>
- <button id="btn_srchzipcd" accesskey="f2" class="icon_search" navindex="8" style="left:177px; top:105px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- zbcfOpenZipCodeList("combination"
- , ""
- , "/root/main/patinfo/patinfolist/zipcd1"
- , "/root/main/patinfo/patinfolist/zipcd2"
- , "/root/main/patinfo/patinfolist/zipcdseq"
- , "/root/main/patinfo/patinfolist/addr"
- , ""
- , "/root/main/patinfo/patinfolist/detladdr"
- , "/root/main/patinfo/patinfolist/builno"
- );
- ]]>
- </script>
- </button>
- <input id="ipt_orddeptnm" ref="/root/main/reservation/orddeptnm" class="input_default" navindex="10" visibility="hidden" imemode="disabled" maxlength="6" _chartype="upper" appearance="input" style="left:287px; top:153px; width:60px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- // var abbr = ipt_orddeptnm.value;
- // var orddeptcd = model.getValue("/root/init/orddeptcd/orddeptcdlist[ deptengabbr = '" + abbr.toUpperCase() + "']/cd");
- // model.setValue("/root/main/reservation/orddeptcd", orddeptcd );
- // cmb_deptcd.refresh();
- // cmb_deptcd.dispatch("xforms-value-changed");
- // model.setFocus("cmb_orddrid")
-
- //var abbr = ipt_orddeptabbr.value;
- var abbr = ipt_orddeptnm.value;
- var orddrabbr = '';
- var orddeptabbr = '';
- if( abbr.length >= 4 ){
- orddrabbr = abbr;
- // orddeptabbr = abbr.substr(0,2);
- }else if( abbr.length == 0 ){
- return false;
- }else{
- orddeptabbr = abbr.substr(0,2);
- }
-
- var orddeptcd = '';
- var orddrid = '';
- var ordid = model.getValue("/root/main/reservation/orddrid");
- var ordept = model.getValue("/root/main/reservation/orddeptcd");
-
- //진료의 세팅
- if( orddrabbr != '' ){
- orddrid = model.getValue("/root/init/orddrid/orddridlist[ drengabbr = '" + orddrabbr.toUpperCase() + "']/cd");
- orddeptcd = model.getValue("/root/init/orddrid/orddridlist[ drengabbr = '" + orddrabbr.toUpperCase() + "']/dp");
- //진료과세팅
- model.setValue("/root/main/reservation/orddeptcd", orddeptcd );
- cmb_deptcd.refresh();
- cmb_deptcd.dispatch("xforms-value-changed");
-
- //진료의 세팅
- model.setValue("/root/main/reservation/orddrid", orddrid );
- cmb_orddrid.refresh();
- cmb_orddrid.dispatch("xforms-value-changed");
- model.setFocus("ipt_orddd");
- }else if( orddeptabbr != '' ){
- //진료과 세팅
- var orddeptcd = model.getValue("/root/init/orddeptcd/orddeptcdlist[ deptengabbr = '" + orddeptabbr.toUpperCase() + "']/cd");
- model.setValue("/root/main/reservation/orddeptcd", orddeptcd );
- cmb_deptcd.refresh();
- cmb_deptcd.dispatch("xforms-value-changed");
- }else{
- model.setFocus("cmb_deptcd") ;
- }
- //model.setFocus("ipt_orddeptdrabbr")
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13"){
- model.setFocus("cmb_orddrid")
- }
- ]]>
- </script>
- </input>
- <line id="line6" class="line_3" style="x1:0px; y1:148px; x2:577px; y2:148px; "/>
- <output id="output1" ref="/root/main/h_dcuc/dcuc/disccd" class="output_fix" style="left:293px; top:79px; width:30px; height:19px; text-align:center; "/>
- <select id="checkbox1" ref="/root/main/oneminute" visibility="hidden" overflow="visible" appearance="full" style="left:970px; top:5px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>1분간격 풀기</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( getNodesetCount("/root/main/outrgst/outrgstlist") > 1 ){
- fOneMinuteSpread();
- }
- ]]>
- </script>
- </select>
- <input id="input1" ref="/root/main/reservation/ordtm" format="hh:nn" style="left:1038px; top:650px; width:55px; height:19px; "/>
- <caption id="caption2" class="cell_1" style="left:220px; top:460px; width:85px; height:23px; vertical-align:middle; ">변경/취소사유</caption>
- <button id="btn_clear" class="btn2_letter3" style="left:524px; top:153px; width:53px; height:19px; ">
- <caption>Clear</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/reservation");
- model.removeNodeset("/root/main/outrgst/outrgstlist");
- model.resetInstanceNode("/root/tmp/reservation");
- model.resetInstanceNode("/root/main/outhist/outhistlist");
- model.resetInstanceNode("/root/main/test/testlist");
- model.resetInstanceNode("/root/hidden/con/examcnt");
- model.resetInstanceNode("/root/resercnt");
-
- //2016/04/29 이정택 수정(회송(되회송) 시범사업 관련 프로그램 수정)
- model.resetInstanceNode("/root/tmp/refer_sibum");
- //2016/04/29 이정택 수정(회송(되회송) 시범사업 관련 프로그램 수정)
-
- delPatientInfos(); //상단환자정보 클리어 - com/commonweb/js/common.js
-
- //1분 간격 풀기 초기화
- model.setValue("/root/main/oneminute", "");
- model.setValue("/root/send/data3/stat", "");
-
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate();
- setCalendar(isDate);
-
- //설명여부 디폴트값 세팅
- model.setValue("/root/main/reservation/specorddescyn", 'N');
- model.setValue("/root/main/reservation/insuchrgyn", 'N');
- model.setValue("/root/main/reservation/ordreqdescyn", ' ');
- model.setValue("/root/main/reservation/ordreqhospgrde", '1');
- model.setValue("/root/main/reservation/etcordflag", "-");
- //협력의뢰 디폴트 세팅
- if( RC == '1' ){
- model.setValue("/root/main/reservation/rqstflag", '1');
- }else if(RC == 'U' ){ //국제협력
- model.setValue("/root/main/reservation/rqstflag", 'U');
- }
-
- pamGetDeptCDDrIDList();
- model.refresh();
- ]]>
- </script>
- </button>
- <output id="output3" ref="/root/main/h_dcuc/dcuc/discunconm" class="output_fix" style="left:326px; top:79px; width:80px; height:19px; text-align:left; "/>
- <caption id="caption25" class="cell_1" style="left:0px; top:459px; width:105px; height:23px; vertical-align:middle; ">의뢰서병원등급</caption>
- <output id="output2" ref="/root/main/reservation/specordyn" class="output_fix" appearance="output" style="left:542px; top:180px; width:35px; height:19px; text-align:center; "/>
- <caption id="caption35" class="cell_1" style="left:366px; top:178px; width:63px; height:23px; vertical-align:middle; ">진료의</caption>
- <select1 id="combo1" ref="/root/main/reservation/fsexamflag" class="combo_default" disabled="true" appearance="minimal" style="left:271px; top:204px; width:92px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0021list/P0021">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_patspcfyn" style="left:75px; top:3px; width:20px; height:20px; background-color:#c0c0c0; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/hidden/source/srchcond", 1);
- model.setValue("/root/hidden/source/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- //model.setValue("/root/hidden/source", model.getValue("/root/hidden/source/checkfnexam"));
- modal("SMPMC01300", "1", "", "", "SMPMC01300", "/root/hidden/source", "/root/source");
- ]]>
- </script>
- </button>
- <caption id="cap_privacy" visibility="hidden" style="left:97px; top:3px; width:74px; height:20px; font-size:8pt; font-weight:bold; color:#000000; text-align:center; background-color:#ff0000; border-color:#000000; border-style:solid; ">사생활보호</caption>
- <caption id="caption26" class="cell_1" style="left:975px; top:649px; width:60px; height:23px; vertical-align:middle; ">진료시간</caption>
- <select1 id="cmb_sex" ref="/root/main/patinfo/patinfolist/sex" class="combo_default" appearance="minimal" style="left:294px; top:31px; width:54px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0313list/P0313">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption5" class="cell_1" visibility="hidden" style="left:220px; top:484px; width:85px; height:23px; vertical-align:middle; ">협력의뢰병원</caption>
- <input id="ipt_rqsthospcd" ref="/root/main/reservation/rqsthospcd" class="input_default" visibility="hidden" style="left:308px; top:485px; width:130px; height:19px; "/>
- <caption id="caption29" class="cell_1" visibility="hidden" style="left:441px; top:484px; width:55px; height:23px; vertical-align:middle; ">통화자</caption>
- <input id="ipt_rqstdrid" ref="/root/main/reservation/rqstdrid" class="input_default" visibility="hidden" style="left:499px; top:485px; width:78px; height:19px; "/>
- <caption id="caption33" class="cell_1" visibility="hidden" style="left:0px; top:483px; width:105px; height:23px; vertical-align:middle; ">원스탑</caption>
- <select1 id="cmb_onestop" ref="/root/main/reservation/onestop" class="combo_default" visibility="hidden" appearance="minimal" style="left:109px; top:485px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/A0420list/A0420">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line7" class="line_1" style="x1:0px; y1:174px; x2:577px; y2:174px; "/>
- <select1 id="cmb_rqstflag" ref="/root/main/reservation/rqstflag" class="combo_default" visibility="hidden" appearance="minimal" style="left:53px; top:154px; width:75px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0329list/P0329">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <group id="group4" style="left:330px; top:507px; width:247px; height:31px; ">
- <button id="button10" class="btn4_letter2" navindex="23" style="left:120px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //변경/취소 모드인지 체크
- var rsrvflag = model.getValue("/root/main/reservation/rsrvflag");
- var histstat = model.getValue("/root/main/reservation/histstat");
- if( grd_outhist.row < 1 || rsrvflag == '' || histstat == ''){
- messageBox("취소할 내역이 선택되지 않았습니다.", "E999", "");
- return false;
- }
- var row = grd_outhist.row;
- var etcordflag = model.getValue("/root/main/outhist/outhistlist["+row+"]/etcordflag");
- if(etcordflag=='4' || etcordflag=='5'){
- messageBox("해당 환자는 다학제 환자로 취소 불가능합니다.", "E999", "");
- return false;
- }
- //의사접수여부가 'Y'인 내역은 변경/취소할 수 없습니다.
- //var rcptyn = grd_outhist.valueMatrix( grd_outhist.row, grd_outhist.colRef("rcptyn"));
- //var histstat = grd_outhist.valueMatrix( grd_outhist.row, grd_outhist.colRef("histstat"));
- if(histstat == 'R'){
- messageBox("수납내역이 있는 외래내역은 취소할 수 없습니다.", "E999", "");
- return false;
- //처방발생여부가 'Y'인 내역은 변경/취소할 수 없습니다.
- }
-
- // 신환/구환을 구분한다.
- if( model.getValue("/root/main/reservation/cretno") != '' &&
- model.getValue("/root/main/reservation/acptseqno") != '' &&
- model.getValue("/root/main/patinfo/patinfolist/pid").length > 0 &&
- model.getValue("/root/main/reservation/acptno") == '0' ){
-
- model.setValue("/root/hidden/source/checkfnexam", '3');
- }else{
- model.setValue("/root/hidden/source/checkfnexam", '1');
- }
-
- // if( pamCompareNodes("/root/main/patinfo/patinfolist", "/root/tmp/patinfolist") && (!fCnclCheck())){
- if( (!fCnclCheck())){
- if( messageBox("예약정보를 정말 취소하시겠습니까?", "Q003") == 6){
- model.setValue("/root/send/data3/stat", "d");
- fMakeRsrv('X');
- }
- }else{
- messageBox("예약정보가 수정되었습니다. 수정된 정보는 취소할 수 없습니다.", "E999", "");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button11" class="btn4_letter2" navindex="21" style="left:0px; top:5px; width:56px; height:22px; ">
- <caption>예약</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fBrthddVeri(model.getValue("/root/main/patinfo/patinfolist/brthdd"),"") == false) return; //2010-01-19 김주희 DUR관련 생년월일체크
-
- //치과는 재진 예약시 예약 불가(초진만 가능)
- var reqdeptno = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/reqdeptno");
- var check = model.getValue("/root/main/reservation/fsexamflag");
- var cellColor = model.getValue("/root/tmp/cellColor");
- var orddd = model.getValue("/root/main/reservation/orddd");
- var curDate = getCurrentDate();
- // var userid = model.getValue("/root/tmp/userinfo/userinfolist/userid");
- var userid = model.getValue("/root/hidden/session/sess_userid");
-
- if(orddd < curDate){
- messageBox("오늘 이전 날짜로는 예약 할 수 없습니다.", "E999");
- return;
- }
-
- // if(cellColor == '#cc99ff' || cellColor == '#33cc00' || cellColor == '#87cefa'){
- //Free 예약 권한
- if( RA != 'Y'){
- if(cellColor == '#ffffff'){
- messageBox("휴진일자에는 예약할 수 없습니다.", "E999");
- return false;
- }
- }
- // 치과 진찰료 별도산정 관련 수정(2017/05/10 이정택)
- //if(reqdeptno == '55' && (check == 'R' || check == 'S')){
- if(reqdeptno.substr(0,1)=='5' && (check == 'R' || check == 'S')){
- messageBox("치과는 전화예약에서 초진만 가능합니다.", "E999");
- return false;
- }
-
- //재원여부체크
- if(!fInhospynCheck()){
- return false;
- }
-
- //변경/취소 모드인지 체크
- var acptdd = model.getValue("/root/main/reservation/acptdd");
- var acptno = model.getValue("/root/main/reservation/acptno");
- var cretno = model.getValue("/root/main/reservation/cretno");
- var acptseqno = model.getValue("/root/main/reservation/acptseqno");
- if( acptdd != '' && acptno != '' && cretno != '' && acptseqno != ''){
- messageBox("변경/취소할 내역이 선택되었습니다. Clear버튼을 눌러 예약내역을 지운 후 예약해주세요", "E999", "");
- return false;
- }
-
- //예약내역체크
- if(!fCheckRsrvHist()){
- return false;
- }
-
- //신환/구환을 구분한다.
- if(model.getValue("/root/main/patinfo/patinfolist/pid").length > 0){
- model.setValue("/root/hidden/source/checkfnexam", '3');
- }else{
- model.setValue("/root/hidden/source/checkfnexam", '1');
- }
-
- if(fIsRsrvDataOK()){
- model.setValue("/root/send/data3/stat", "i");
- fMakeRsrv('T');
- // model.resetInstanceNode("/root/main/outhist/outhistlist");
- model.removenode("/root/main/outhist/outhistlist");
- model.removenode("/root/main/test/testlist");
- model.removenode("/root/hidden/con/examcnt");
- }
- ]]>
- </script>
- </button>
- <button id="button12" class="btn4_letter2" navindex="22" style="left:59px; top:5px; width:56px; height:22px; ">
- <caption>변경</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fBrthddVeri(model.getValue("/root/main/patinfo/patinfolist/brthdd"),"") == false) return; //2010-01-19 김주희 DUR관련 생년월일체크
-
- var orddd = model.getValue("/root/main/reservation/orddd");
- var curDate = getCurrentDate();
- if(orddd < curDate){
- messageBox("오늘날짜 이전으로는 변경 할 수 없습니다.", "E999");
- return;
- }
-
- //재원여부체크
- if( ! fInhospynCheck() ){
- return false;
- }
-
- //변경/취소 모드인지 체크
- var rsrvflag = model.getValue("/root/main/reservation/rsrvflag");
- var histstat = model.getValue("/root/main/reservation/histstat");
- if( grd_outhist.row < 1 || rsrvflag == '' || histstat == ''){
- messageBox("변경할 내역이 선택되지 않았습니다.", "E999", "");
- return false;
- }
-
- var row = grd_outhist.row;
- var etcordflag = model.getValue("/root/main/outhist/outhistlist["+row+"]/etcordflag");
- if(etcordflag=='4' || etcordflag=='5'){
- messageBox("해당 환자는 다학제 환자로 변경 불가능합니다.", "E999", "");
- return false;
- }
-
-
- //예약내역 체크!!!
- if( model.getValue("/root/main/reservation/orddeptcd") != model.getValue("/root/tmp/reservation/orddeptcd") ){
- if( ! fCheckRsrvHist() ){
- return false;
- }
- }
-
- // 신환/구환을 구분한다.
- if( model.getValue("/root/main/reservation/cretno") != '' &&
- model.getValue("/root/main/reservation/acptseqno") != '' &&
- model.getValue("/root/main/patinfo/patinfolist/pid").length > 0 &&
- model.getValue("/root/main/reservation/acptno") == '0' ){
- model.setValue("/root/hidden/source/checkfnexam", '3');
- }else{
- model.setValue("/root/hidden/source/checkfnexam", '1');
- }
-
- if(pamCompareNodes("/root/main/patinfo/patinfolist", "/root/tmp/patinfolist") && pamCompareNodes("/root/main/reservation", "/root/tmp/reservation")){
- if( messageBox("변경된 데이터가 없습니다.", "Q003") == 6){
- if( fIsRsrvDataOK()){
- //진찰료가 수납된 내역(HISTSTAT=R) 변경 시(OTPT),
- //초재진구분,선택진료여부가 변경될 경우 기존내역 C, 신규내역 R 로 생성하면서,
- //CALCYN = Y 로 세팅,CALCFLAG=Y
- if( fIsRsrvUpdtDataOK() ){
- model.setValue("/root/send/data3/stat", "u");
- fMakeRsrv('C');
- // model.resetInstanceNode("/root/main/patinfo/patinfolist");
- // fInitialize();
- // model.removenode("/root/main/outhist/outhistlist");
- // fClearAfterSave();
- }
- }
- }
- }else{
- if( fIsRsrvDataOK()){
- if( fIsRsrvUpdtDataOK()){
- model.setValue("/root/send/data3/stat", "u");
- fMakeRsrv('C');
- // model.resetInstanceNode("/root/main/patinfo/patinfolist");
- // fInitialize();
- // model.removenode("/root/main/outhist/outhistlist");
- // fClearAfterSave();
- }
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" navindex="24" style="left:179px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
- model.resetInstanceNode("/root/resercnt");
- model.setValue("/root/send/data3/stat", "");
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line9" class="line_6" style="x1:0px; y1:0px; x2:247px; y2:0px; "/>
- </group>
- <output id="opt_rrgstno1" ref="/root/hidden/holdrrgstno/rrgstno1" class="output_fix" format="999999" appearance="output" style="left:350px; top:153px; width:60px; height:19px; "/>
- <output id="opt_rrgstno2" ref="/root/hidden/holdrrgstno/rrgstno2" class="output_fix" format="9999999" appearance="output" style="left:413px; top:153px; width:63px; height:19px; "/>
- <button id="button3" class="btn2_letter2" style="left:479px; top:153px; width:42px; height:19px; ">
- <caption>선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rrgstno1 = model.getValue("/root/hidden/holdrrgstno/rrgstno1");
- var rrgstno2 = model.getValue("/root/hidden/holdrrgstno/rrgstno2");
- var hngnm = model.getValue("/root/hidden/holdrrgstno/hngnm");
- if( rrgstno1 == '' || rrgstno2 == '' ){
- return false;
- }else{
- model.setValue("/root/main/patinfo/patinfolist/rrgstno1", rrgstno1);
- model.setValue("/root/main/patinfo/patinfolist/rrgstno2", rrgstno2);
- model.setValue("/root/main/patinfo/patinfolist/hngnm", hngnm);
- model.setValue("/root/hidden/source/srchcond", "4");
- model.setValue("/root/hidden/source/rrgstno1", rrgstno1);
- model.setValue("/root/hidden/source/rrgstno2", rrgstno2);
- model.setValue("/root/hidden/source/hngnm", hngnm);
- //btn_search.dispatch("DOMActivate");
-
- if(submit("TRPMC02500")){
- if( getNodesetCount("/root/main/result/patinfo/patinfolist") == 1 ){
- model.copyNode("/root/main/patinfo", "/root/main/result/patinfo");
- model.setValue("/root/main/popupendflag", "ok");
- //구환 표시
- if( model.getValue("/root/main/patinfo/patinfolist/pid").length > 0 ){
- model.setValue("/root/hidden/source/checkfnexam", "3");
- }else{
- model.setValue("/root/hidden/source/checkfnexam", "1");
- }
-
- //환자특이내역 존재여부 표시
- var patspcfyn = model.getValue("/root/main/patinfo/patinfolist/patspcfyn");
- if( patspcfyn == 'Y' || patspcfyn == 'y'){
- btn_patspcfyn.attribute("background-color") = "#ff0000";
- }else{
- btn_patspcfyn.attribute("background-color") = "#c0c0c0";
- }
-
- //감면 내역 있으면 표시
- var pid = model.getvalue("/root/main/patinfo/patinfolist/pid");
- if( pid != '' && pid != ' ' && pid != '-' ){
- model.setValue( "/root/send/pid", pid);
- submit("TRPMO00205");
- }
- //감면 내역 있으면 표시 끝
-
- fSearch();
-
- }else if(getNodesetCount("/root/main/result/patinfo/patinfolist") > 1 ){
- inputEnterKey("btn_search", "DOMActivate");
- }else{
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
- model.resetInstanceNode("/root/main/reservation");
- model.setValue("/root/main/popupendflag", "cancel");
- messageBox("일치하는 환자가 없습니다.", "E999", "");
- //model.resetInstanceNode("");
- }
- }
- // fSearch();
- }
- ]]>
- </script>
- </button>
- <caption id="caption18" style="left:1167px; top:673px; width:27px; height:15px; ">초진</caption>
- <caption id="caption19" style="left:1149px; top:672px; width:15px; height:15px; background-color:#b9e5fb; "/>
- <caption id="caption20" class="cell_2" style="left:1149px; top:650px; width:42px; height:20px; ">구 분</caption>
- <shape id="roundrect1" class="roundrect_example" appearance="roundrect" style="left:1145px; top:648px; width:50px; height:73px; "/>
- <select1 id="combo3" ref="/root/main/reservation/telrsrvremcd" class="combo_default" appearance="minimal" style="left:0px; top:370px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0414list/P0414">
- <label ref="cdnm"/>
- <value ref="cdnm"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var telrsrvrem = combo3.value;
- var bfTelRsrvRem = model.getValue("/root/main/reservation/telrsrvrem");
- if( bfTelRsrvRem == '-' || bfTelRsrvRem == '' || bfTelRsrvRem == ' '){
- //bfTelRsrvRem = telrsrvrem;
- }else{
- telrsrvrem = bfTelRsrvRem + " " + telrsrvrem;
- }
- model.setValue("/root/main/reservation/telrsrvrem", telrsrvrem);
- model.refresh();
- ]]>
- </script>
- </select1>
- <button id="button4" class="btn5_letter4" style="left:511px; top:4px; width:64px; height:19px; ">
- <caption>정보수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var acptdd = model.getValue("/root/main/patinfo/patinfolist/acptdd");
- var acptno = model.getValue("/root/main/patinfo/patinfolist/acptno");
-
- if( pid.length > 0 ){
- model.makeNode("/root/main/patinfo/patinfolist/flag");
- model.setValue("/root/main/patinfo/patinfolist/flag", 's')
- if( ! pamCompareNodes( "/root/main/patinfo/patinfolist", "/root/tmp/patinfolist" ) ){
- if( model.getValue("/root/tmp/patinfolist/pid") != ''){
- model.makeNode("/root/main/patinfo/patinfolist/oldpid");
- model.setValue("/root/main/patinfo/patinfolist/oldpid", model.getValue("/root/tmp/patinfolist/pid"));
-
- if( submit("TXPMO00208") ){
- model.setValue("/root/main/popupendflag", "ok");
- fSearch();
- messageBox("환자정보가 정상적으로 수정되었습니다.", "I999", "");
- //fClearAfterSave();
- }
- }
- }else{
- messageBox("변경된 사항이 없거나 환자정보가 잘못 수정되었습니다. 환자인적사항을 재조회 후 다시 수정하세요.", "E999", "");
- return false;
- }
-
- // messageBox("구환환자의 인적정보는 변경하실 수 없습니다.", "E999", "");
- // return false;
- // }else if( acptdd == '' || acptdd == ' ' || acptdd == '-' || acptno == '' || acptno == '0' || acptno == ' '){
- // messageBox("환자 조회 후 작업하세요!", "E999", "");
- // return false;
- }else{
- model.makeNode("/root/main/patinfo/patinfolist/flag");
- model.setValue("/root/main/patinfo/patinfolist/flag", 'f')
- if( ! pamCompareNodes( "/root/main/patinfo/patinfolist", "/root/tmp/patinfolist" ) ){
- if( model.getValue("/root/tmp/patinfolist/rrgstno1") != ''
- && model.getValue("/root/tmp/patinfolist/rrgstno2") != ''
- && model.getValue("/root/tmp/patinfolist/hngnm") != ''){
-
- model.makeNode("/root/main/patinfo/patinfolist/oldhngnm");
- model.makeNode("/root/main/patinfo/patinfolist/oldrrgstno1");
- model.makeNode("/root/main/patinfo/patinfolist/oldrrgstno2");
- model.setValue("/root/main/patinfo/patinfolist/oldhngnm", model.getValue("/root/tmp/patinfolist/hngnm"));
- model.setValue("/root/main/patinfo/patinfolist/oldrrgstno1", model.getValue("/root/tmp/patinfolist/rrgstno1"));
- model.setValue("/root/main/patinfo/patinfolist/oldrrgstno2", model.getValue("/root/tmp/patinfolist/rrgstno2"));
-
- if( submit("TXPMO00208") ){
- model.setValue("/root/main/popupendflag", "ok");
- fSearch();
- messageBox("환자정보가 정상적으로 수정되었습니다.", "I999", "");
- //fClearAfterSave();
- }
- }
- }else{
- messageBox("변경된 사항이 없거나 환자정보가 잘못 수정되었습니다. 환자인적사항을 재조회 후 다시 수정하세요.", "E999", "");
- return false;
- }
- }
- ]]>
- </script>
- </button>
- <button id="button9" class="btn2_letter5" style="left:184px; top:153px; width:75px; height:19px; ">
- <caption>예약자조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //setParameter("openflag", 'T');
- setParameter("SPPMO00800_NODEPATH", "/root/main/patinfo/patinfolist/");
- modal("SPPMO00800", "1","150", "150", "SPPMO00800", "", "");
- var hngnm = ipt_hngnm.currentText;
- var rrgstno1 = ipt_rrgstno1.currentText;
- var rrgstno2 = ipt_rrgstno2.currentText;
- var rgstno1 = model.getValue("/root/main/patinfo/patinfolist/rrgstno1");
- var rgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
-
- if( hngnm.length > 1 ){
- model.setValue("/root/hidden/source/srchcond", "4");
- model.setValue("/root/hidden/source/hngnm", hngnm);
- model.setValue("/root/hidden/source/rrgstno1", rrgstno1);
- model.setValue("/root/hidden/source/rrgstno2", rrgstno2);
- }else{
- model.setValue("/root/hidden/source/srchcond", "3");
- model.setValue("/root/hidden/source/rrgstno1", rrgstno1);
- model.setValue("/root/hidden/source/rrgstno2", rrgstno2);
- }
-
- model.setValue("/root/main/patinfo/patinfolist/rrgstno2", rrgstno2);
- if(rgstno1 == "000000" ){
- messageBox("주민번호 앞6자리 형식오류입니다. 올바른 일자형태로 입력하십시요!","E999","");
- model.setFocus("ipt_rrgstno1");
- return;
- }else if(rgstno2 == "0000000 "){
- messageBox("주민번호 뒤7자리 형식오류입니다. 올바른 일자형태로 입력하십시요!","E999","");
- model.setFocus("ipt_rrgstno2");
- return;
- }
-
- if( rrgstno1.length == 6 && rrgstno2.length == 7 ){
- if(submit("TRPMC02500")){
- if( getNodesetCount("/root/main/result/patinfo/patinfolist") == 1 ){
- model.copyNode("/root/main/patinfo", "/root/main/result/patinfo");
- model.setValue("/root/main/popupendflag", "ok");
- //구환 표시
- if( model.getValue("/root/main/patinfo/patinfolist/pid").length > 0 ){
- model.setValue("/root/hidden/source/checkfnexam", "3");
- }else{
- model.setValue("/root/hidden/source/checkfnexam", "3");
- }
- //환자특이내역 존재여부 표시
- var patspcfyn = model.getValue("/root/main/patinfo/patinfolist/patspcfyn");
- if( patspcfyn == 'Y' || patspcfyn == 'y'){
- btn_patspcfyn.attribute("background-color") = "#ff0000";
- }else{
- btn_patspcfyn.attribute("background-color") = "#c0c0c0";
- }
-
- //감면 내역 있으면 표시
- var pid = model.getvalue("/root/main/patinfo/patinfolist/pid");
- if( pid != '' && pid != ' ' && pid != '-' ){
- model.setValue( "/root/send/pid", pid);
- submit("TRPMO00205");
- }
- //감면 내역 있으면 표시 끝
- fSearch();
-
- }else if(getNodesetCount("/root/main/result/patinfo/patinfolist") > 1 ){
- inputEnterKey("btn_search", "DOMActivate");
- }else{
- model.setValue("/root/main/popupendflag", "cancel");
- messageBox("일치하는 환자가 없습니다.", "E999", "");
- btn_init.dispatch("DOMActivate");
- return false;
- }
- }
- }else{
- inputEnterKey("btn_search", "DOMActivate");
- }
- fGetSexAgeBirthDD();
-
- //외래이력 휴진 체크
- outhistColorChange();
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_subdeptcd" ref="/root/main/reservation/subdeptcd" class="combo_default" disabled="true" appearance="minimal" style="left:305px; top:180px; width:58px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/subdeptcd/subdeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetCentcdCalendarData();
- /*
- var orddeptcd = model.getValue("/root/main/reservation/orddeptcd");
- var subdeptcd = model.getValue("/root/main/reservation/subdeptcd");
- if( subdeptcd != '' && subdeptcd != '-' ){
- cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + subdeptcd + "']";
- }else{
- cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + orddeptcd + "']";
- }
- cmb_orddrid.refresh();
- model.setValue("/root/main/reservation/orddrid", "");
- //2007-08-17 이동식 추가 - 진료과 선택시 영문약어표시
- var deptengabbr = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/deptengabbr");
- model.setValue("/root/main/reservation/orddeptnm", deptengabbr);
- //END..
- */
- ]]>
- </script>
- </select1>
- <caption id="caption21" class="cell_1" style="left:366px; top:202px; width:63px; height:23px; vertical-align:middle; ">기타진료</caption>
- <select1 id="combo4" ref="/root/main/reservation/etcordflag" class="combo_default" navindex="12" appearance="minimal" style="left:432px; top:203px; width:145px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0487list/P0487">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var etcordflag = combo4.label;
- var bfTelRsrvRem = model.getValue("/root/main/reservation/telrsrvrem");
- if( bfTelRsrvRem == '-' || bfTelRsrvRem == '' || bfTelRsrvRem == ' '){
-
- }else{
- etcordflag = bfTelRsrvRem + " " + etcordflag;
- }
- model.setValue("/root/main/reservation/telrsrvrem", etcordflag);
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_centcd" ref="/root/main/reservation/centcd" class="combo_default" appearance="minimal" style="left:108px; top:180px; width:85px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/centcd/centcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/reservation/orddd", "");
- model.setValue("/root/main/reservation/ordtm", "");
-
- //fGetCentcdCalendarData();
-
- //서울성모 신종플루 센터 적용으로 임시 적용
- var centcd = model.getValue("/root/main/reservation/centcd");
- if( centcd == "" || centcd == "-" ){
- var setcordflag = model.getValue("/root/main/reservation/etcordflag");
- if(setcordflag == "" || setcordflag == "-" || setcordflag == "W" || setcordflag == "Y"){
- model.setValue("/root/main/reservation/etcordflag", "-");
- } else {
- model.setValue("/root/main/reservation/etcordflag", setcordflag);
- }
- combo4.refresh();
-
- } else {
- if (centcd == FluCent) {
- model.setValue("/root/main/reservation/etcordflag", "W");
- combo4.refresh();
-
- var etcordflag = combo4.label;
- var bfTelRsrvRem = model.getValue("/root/main/reservation/telrsrvrem");
- if( bfTelRsrvRem == '-' || bfTelRsrvRem == '' || bfTelRsrvRem == ' '){
-
- }else{
- etcordflag = bfTelRsrvRem + " " + etcordflag;
- }
- model.setValue("/root/main/reservation/telrsrvrem", etcordflag);
-
- } else if (centcd == FluPrevenCent) { //신종플루예방접종센터
- model.setValue("/root/main/reservation/etcordflag", "Y");
- combo4.refresh();
-
- var etcordflag = combo4.label;
- var bfTelRsrvRem = model.getValue("/root/main/reservation/telrsrvrem");
- if( bfTelRsrvRem == '-' || bfTelRsrvRem == '' || bfTelRsrvRem == ' '){
-
- }else{
- etcordflag = bfTelRsrvRem + " " + etcordflag;
- }
- model.setValue("/root/main/reservation/telrsrvrem", etcordflag);
-
- } else {
- var setcordflag = model.getValue("/root/main/reservation/etcordflag");
- if(setcordflag == "" || setcordflag == "-" || setcordflag == "W" || setcordflag == "Y"){
- model.setValue("/root/main/reservation/etcordflag", "-");
- } else {
- model.setValue("/root/main/reservation/etcordflag", setcordflag);
- }
- }
- model.refresh();
- }
-
- // cmb_centcd.choices.itemset.attribute("nodeset") = "/root/init/centcd/centcdlist[cd = '"+ cmb_centcd.value +"' ]";
- // cmb_centcd.choices.itemset.attribute("nodeset") = "/root/init/centcd";
- // cmb_centcd.refresh();
-
-
- var centcd = model.getValue("/root/main/reservation/centcd");
- if( centcd == '' || centcd == '-' ){
- cmb_centdeptcd.visible = false;
- //combo6.visible = false;
-
- cmb_deptcd.visible = true;
- //cmb_orddrid.visible = true;
-
- model.setValue("/root/main/reservation/orddeptcd", '');
- model.setValue("/root/main/reservation/orddrid", '');
- model.setValue("/root/main/reservation/orddeptnm", '');
- cmb_deptcd.refresh();
- cmb_orddrid.refresh();
- ipt_orddeptnm.refresh();
-
- }else{
- var instcd = model.getValue("/root/hidden/session/sess_dutplceinstcd");
- var deptcd = centcd;
- var base_dd = new Date().getDateFormat("YYYYMMDD");
- var sort_field = "dispseq";//정렬필드(출력순서:'dispseq')
- var sort_method = "asc"; //정렬방법(오름차순:'asc')
- zsufGetCntrSubOrdDepartmentList(instcd, deptcd, 'O', "/root/hidden/init/cntrsuborddeptlist", base_dd);
- // zsufGetCntrOrdDeptDoctorList(instcd, deptcd, 'O', "/root/hidden/init/cntrorddeptdoctorlist",sort_field, sort_method, base_dd);
-
- cmb_centdeptcd.visible = true;
- cmb_centdeptcd.refresh();
- // combo6.visible = true;
-
- cmb_deptcd.visible = false;
- // cmb_orddrid.visible = false;
-
- model.setValue("/root/main/reservation/orddeptcd", '');
- model.setValue("/root/main/reservation/orddrid", '');
- model.setValue("/root/main/reservation/orddeptnm", '');
- model.setValue("/root/main/reservation/subdeptcd", '');
- model.setValue("/root/main/reservation/specordyn", '');
- cmb_deptcd.refresh();
- cmb_orddrid.refresh();
- ipt_orddeptnm.refresh();
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption23" class="cell_1" style="left:0px; top:179px; width:105px; height:23px; vertical-align:middle; ">센터/진료과</caption>
- <caption id="caption24" class="cell_1" style="left:220px; top:435px; width:85px; height:24px; vertical-align:middle; ">협진팀명</caption>
- <select1 id="cnstteamnm" ref="/root/main/reservation/coopteamcd" class="combo_default" appearance="minimal" style="left:308px; top:436px; width:269px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/M0525list/M0525">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption34" class="cell_1" style="left:220px; top:387px; width:85px; height:46px; vertical-align:middle; ">remark</caption>
- <textarea id="input3" ref="/root/main/reservation/remfact" disabled="true" navindex="19" scroll="vertical" style="left:308px; top:388px; width:269px; height:44px; "/>
- <caption id="caption36" style="left:954px; top:540px; width:15px; height:20px; text-align:right; ">건</caption>
- <output id="output5" ref="/root/hidden/con/examcnt" style="left:925px; top:540px; width:30px; height:19px; text-align:right; "/>
- <caption id="caption39" style="left:975px; top:675px; width:66px; height:20px; background-color:transparent; ">전화예약</caption>
- <input id="input7" ref="/root/resercnt/telpmcnt" disabled="true" format="#,###" style="left:1113px; top:675px; width:25px; height:19px; text-align:right; "/>
- <input id="input8" ref="/root/resercnt/telamcnt" disabled="true" format="#,###" style="left:1057px; top:675px; width:25px; height:19px; text-align:right; "/>
- <caption id="caption41" style="left:975px; top:695px; width:60px; height:20px; background-color:transparent; ">과예약</caption>
- <caption id="caption43" style="left:1030px; top:675px; width:35px; height:20px; background-color:transparent; ">오전</caption>
- <caption id="caption45" style="left:1030px; top:695px; width:35px; height:20px; background-color:transparent; ">오전</caption>
- <caption id="caption46" style="left:1085px; top:675px; width:35px; height:20px; background-color:transparent; ">오후</caption>
- <caption id="caption47" style="left:1085px; top:695px; width:35px; height:20px; background-color:transparent; ">오후</caption>
- <input id="input9" ref="/root/resercnt/orddeptamcnt" disabled="true" format="#,###" style="left:1057px; top:695px; width:25px; height:19px; text-align:right; "/>
- <input id="input10" ref="/root/resercnt/orddeptpmcnt" disabled="true" format="#,###" style="left:1113px; top:695px; width:25px; height:19px; text-align:right; "/>
- <button id="btn_savePatInfo" class="btn5_letter2" visibility="hidden" style="left:750px; top:4px; width:42px; height:19px; ">
- <caption>채번</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rrgstno1 = model.getValue("/root/main/patinfo/patinfolist/rrgstno1").getTrim();
- var rrgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2").getTrim();
- var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- var rrgstno = rrgstno1.concat(rrgstno2);
- if( rrgstno1.length != 6 || rrgstno2.length != 7){
- if( messageBox("주민등록번호를 정확히 입력하지 않았습니다.", "E999", "")){
- model.setFocus("ipt_rrgstno1");
- return false;
- }
- }
- /*
- else if (isResidentNo(rrgstno) == false){
- if( messageBox("유효하지 않은 주민등록번호입니다. ", "E999", "")){
- model.setFocus("ipt_rrgstno1");
- return false;
- }
- }
- */
- else if(model.getValue("/root/main/patinfo/patinfolist/hngnm").length < 1){
- if( messageBox("환자 성명이 입력되지 않았습니다. ", "E999", "")){
- model.setFocus("ipt_hngnm");
- return false;
- }
- }
- fPatInfoUpdt();
- ]]>
- </script>
- </button>
- <switch id="switch2" style="left:0px; top:565px; width:970px; height:170px; ">
- <case id="case3" selected="true" style="left:0px; top:0px; width:970px; height:170px; ">
- <switch id="switch1" style="left:0px; top:0px; width:970px; height:170px; ">
- <case id="case1" selected="true" style="left:0px; top:0px; width:970px; height:170px; ">
- <datagrid id="grd_outhist" nodeset="/root/main/outhist/outhistlist" class="datagrid2" caption="진료일자^시간^진료과ID^진료과^진료의ID^진료의^선택진료^진료여부^변경
여부^예약
구분^rqstflag^접수상태^초/재^보험유형^의뢰서구분^선후불^수납여부^최초입력자ID^최초입력시간^가예약
접수일자^가예약
접수일련번호^선택진료
설명여부^보험회사
직원여부^진료의뢰서
설명여부^의뢰서
병원등급^최초접수자
ID^최초접수
일시^외래등록
생성번호^외래등록
생성일련번호^전화예약
통화내용^변경취소사유^정산여부^계산구분^진찰료산정여부^처방발생여부^협력의뢰구분^협력의뢰
병원코드^협력의뢰의ID^원스탑^테이블명^센터코드^센터^sub진료과^하위부서^기타진료구분^최종수정자^최종수정일시^휴진여부^협진팀명^remark^acptdd^acptno^cretno" colsep="^" colwidth="70, 40, 90, 110, 64, 60, 35, 35, 35, 65, 54, 60, 80, 80, 42, 35, 78, 107, 60, 87, 60, 60, 82, 67, 81, 63, 75, 90, 67, 100, 100, 100, 100, 100, 84, 70, 100, 100, 100, 100, 100, 100, 100, 50, 100, 100, 100, 100, 100, 400, 100, 100" dataheight="23" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:2px; top:2px; width:960px; height:162px; ">
- <col ref="orddd" format="yyyy-mm-dd"/>
- <col ref="ordtm" format="hh:nn"/>
- <col disabled="true" ref="orddeptcd" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="orddeptnm"/>
- <col ref="orddrid" visibility="hidden"/>
- <col ref="orddrnm"/>
- <col ref="specordyn"/>
- <col ref="dracptyn"/>
- <col ref="bfordddyn"/>
- <col disabled="true" ref="rsrvflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0341list/P0341">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="rqstflag" visibility="hidden"/>
- <col disabled="true" ref="histstat" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0029list/P0029">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="fsexamflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0021list/P0021">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="insukind" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0008list/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="ordreqformflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0380list/P0380">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="medamtpostyn"/>
- <col ref="rcptyn"/>
- <col ref="fstrgstrid" visibility="hidden"/>
- <col ref="fstrgstdt" visibility="hidden"/>
- <col ref="acptdd" visibility="hidden"/>
- <col ref="acptno" visibility="hidden"/>
- <col ref="specorddescyn" visibility="hidden"/>
- <col ref="insuchrgyn" visibility="hidden"/>
- <col ref="ordreqdescyn" visibility="hidden"/>
- <col ref="ordreqhospgrde" visibility="hidden"/>
- <col ref="fstacptid" visibility="hidden"/>
- <col ref="fstacptdt" visibility="hidden"/>
- <col ref="acptseqno" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="telrsrvrem" visibility="hidden"/>
- <col ref="updtcnclresn" visibility="hidden"/>
- <col ref="calcyn" visibility="hidden"/>
- <col ref="calcflag" visibility="hidden"/>
- <col ref="medamtestmyn" visibility="hidden"/>
- <col ref="prcpgenryn" visibility="hidden"/>
- <col ref="rqspflag" visibility="hidden" style="left:1679px; top:32px; width:84px; height:23px; "/>
- <col ref="rqsthospcd" visibility="hidden"/>
- <col ref="rqstdrid" visibility="hidden"/>
- <col ref="onestop" visibility="hidden"/>
- <col ref="tablename" visibility="hidden"/>
- <col ref="centcd" visibility="hidden"/>
- <col ref="centnm"/>
- <col ref="subdeptcd" visibility="hidden"/>
- <col ref="subdeptnm"/>
- <col ref="etcordflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0022list/P0022">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="lastupdtrid"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="holiyn" visibility="hidden"/>
- <col disabled="true" ref="coopteamcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/M0525list/M0525">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="remfact"/>
- <col ref="acptdd" visibility="hidden"/>
- <col ref="acptno" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var cur_col = grd_outhist.col;
- var cur_row = grd_outhist.row;
- if( cur_col == grd_outhist.colRef("bfordddyn") && cur_row > 0 && isDataCell()){
- if(grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("bfordddyn")) == "Y" ) {
- if(grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("histstat")) == "X"){
- messageBox("취소 내역은 변경이력을 조회할 수 없습니다.", "E999", "");
- return false;
- }
- setParameter("openflag", 'T');
- setParameter("pid", model.getvalue("/root/main/patinfo/patinfolist/pid"));
- setParameter("hngnm", model.getvalue("/root/main/patinfo/patinfolist/hngnm"));
- setParameter("rrgstno1", model.getvalue("/root/main/patinfo/patinfolist/rrgstno1"));
- setParameter("rrgstno2", model.getvalue("/root/main/patinfo/patinfolist/rrgstno2"));
- setParameter("fromdd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddd")));
- setParameter("todd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddd")));
- setParameter("orddeptcd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddeptcd")));
- setParameter("orddrid", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddrid")));
- setParameter("specordyn", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("specordyn")));
- setParameter("rsrvflag", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("rsrvflag")));
- setParameter("insukind", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("insukind")));
- setParameter("acptdd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("acptdd")));
- setParameter("acptno", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("acptno")));
- setParameter("tablename", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("tablename")));
- setParameter("fstrgstdt", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("fstrgstdt")));
- setParameter("fstacptdt", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("fstacptdt")));
- modal("SMPMO00600", "1", "50", "50" ,"SMPMO00600", "", "");
- }
- }
-
- if( cur_col == grd_outhist.colRef("histstat") && cur_row > 0 && isDataCell()){
- if(grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("histstat")) == "X"){
- setParameter("openflag", 'T');
- setParameter("pid", model.getvalue("/root/main/patinfo/patinfolist/pid"));
- setParameter("hngnm", model.getvalue("/root/main/patinfo/patinfolist/hngnm"));
- setParameter("rrgstno1", model.getvalue("/root/main/patinfo/patinfolist/rrgstno1"));
- setParameter("rrgstno2", model.getvalue("/root/main/patinfo/patinfolist/rrgstno2"));
- setParameter("fromdd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddd")));
- setParameter("todd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddd")));
- setParameter("orddeptcd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddeptcd")));
- setParameter("orddrid", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddrid")));
- setParameter("specordyn", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("specordyn")));
- setParameter("rsrvflag", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("rsrvflag")));
- setParameter("insukind", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("insukind")));
- setParameter("acptdd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("acptdd")));
- setParameter("acptno", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("acptno")));
- setParameter("tablename", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("tablename")));
- setParameter("fstrgstdt", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("fstrgstdt")));
- setParameter("fstacptdt", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("fstacptdt")));
- modal("SMPMO00600", "1", "50", "50" ,"SMPMO00600", "", "");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( model.getValue("/root/main/patinfo/patinfolist/pid") == '' && model.getValue("/root/main/patinfo/patinfolist/hngnm") == '' ){
- messageBox("환자조회 후 작업해 주세요.!!","E999", "");
- return false;
- }
-
- var cur_col = grd_outhist.col;
- var cur_row = grd_outhist.row;
- var curDate = getCurrentDate();
-
- if(cur_col == grd_outhist.colRef("bfordddyn")){
- return;
- }
-
- if( cur_row > 0 && cur_col > 0 && isDataCell() ){ // && grd_outhist.colRef("bfordddyn") != cur_col ){
- var histstat = model.getValue("/root/main/rsrvflag");
- if( histstat == 'X' ){
- return false;
- }
-
- //예약내역 노드 초기화
- model.resetInstanceNode("/root/main/reservation");
-
- //수정 불가능한 내역을 선택했을 경우!!
- if( grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("histstat")) == 'R' ){
- //의사접수여부가 'Y'인 내역은 변경/취소할 수 없습니다.
- if( grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("dracptyn")) == 'Y' ){
- messageBox("진료본 내역은 변경/취소할 수 없습니다.", "E999", "");
- return false;
-
- //처방발생여부가 'Y'인 내역은 변경/취소할 수 없습니다.
- }else if( grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("prcpgenryn")) == 'Y' ){
- messageBox("처방이 발생한 내역은 변경/취소할 수 없습니다.", "E999", "");
- return false;
-
- }else if( grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("rsrvflag")) == 'X' ){
- messageBox("6시간 이내 응급내역은 변경/취소할 수 없습니다.", "E999", "");
- return false;
- }
-
- }else if( grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("histstat")) == 'X' ){
- messageBox("예약취소한 내역은 변경할 수 없습니다.", "E999", "");
- return false;
-
- }else if(grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddd")) < curDate ){
- messageBox("미진료 이력은 변경/취소할 수 없습니다.", "E999", "");
- return false;
- }
-
- if( grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("etcordflag")) != 'B' || grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("etcordflag")) != '-' ) {
- model.setValue("/root/main/reservation/etcordflag", '-');
- model.setValue("/root/main/reservation/etcordflag", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("etcordflag")) );
- }
-
- //model.resetInstanceNode("/root/main/reservation/orddeptcd");
- //model.resetInstanceNode("/root/main/reservation/centcd");
-
- //선택된 행의 값을 예약 파트로 복사
- model.setValue("/root/main/reservation/acptdd" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("acptdd")) );
- model.setValue("/root/main/reservation/acptno" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("acptno")) );
- model.setValue("/root/main/reservation/specorddescyn" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("specorddescyn")) );
- model.setValue("/root/main/reservation/insuchrgyn" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("insuchrgyn")) );
- model.setValue("/root/main/reservation/ordreqdescyn" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("ordreqdescyn")) );
- model.setValue("/root/main/reservation/ordreqhospgrde" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("ordreqhospgrde")) );
- model.setValue("/root/main/reservation/fstacptid" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("fstacptid")) );
- model.setValue("/root/main/reservation/fstacptdt" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("fstacptdt")) );
- model.setValue("/root/main/reservation/acptseqno" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("acptseqno")) );
- model.setValue("/root/main/reservation/cretno" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("cretno")) );
- model.setValue("/root/main/reservation/oldorddd" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddd")) );
- model.setValue("/root/main/reservation/telrsrvrem" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("telrsrvrem")) );
- model.setValue("/root/main/reservation/updtcnclresn" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("updtcnclresn")) );
- model.setValue("/root/main/reservation/calcyn" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("calcyn")) );
- model.setValue("/root/main/reservation/calcflag" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("calcflag")) );
- model.setValue("/root/main/reservation/medamtestmyn" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("medamtestmyn")) );
- model.setValue("/root/main/reservation/histstat" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("histstat")) );
- model.setValue("/root/main/reservation/rsrvflag" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("rsrvflag")) );
- // 2016/04/29 이정택(진료 회송(되회송) 시범사업 관련 프로그램수정)
- if(grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("rsrvflag"))=="W"){
- model.makeValue("/root/tmp/refer_sibum", "W");
- }
- // 2016/04/29 이정택(진료 회송(되회송) 시범사업 관련 프로그램수정)
-
- //진료교류이면 HIE(20171202 이윤주)
- if ( model.getValue("/root/main/reservation/rsrvflag") == "V" ) {
- hieyn = "Y";
- }
-
- model.setValue("/root/main/reservation/dracptyn" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("dracptyn")) );
- model.setValue("/root/main/reservation/prcpgenryn" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("prcpgenryn")) );
- model.setValue("/root/main/reservation/coopteamcd" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("coopteamcd")) );
- model.setValue("/root/main/reservation/remfact" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("remfact")) );
-
- if( grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("etcordflag")) != 'B') {
- model.setValue("/root/main/reservation/etcordflag" , '-');
- }else{
- model.setValue("/root/main/reservation/etcordflag" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("etcordflag")) );
- }
-
- //협진
- model.setValue("/root/main/reservation/rqstflag" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("rqstflag")));
- model.setValue("/root/main/reservation/rqsthospcd" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("rqsthospcd")) );
- model.setValue("/root/main/reservation/rqstdrid" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("rqstdrid")) );
- model.setValue("/root/main/reservation/onestop" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("onestop")) );
- model.setValue("/root/main/reservation/centcd" , grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("centcd")) );
- cmb_centcd.dispatch("xforms-value-changed");
-
- model.setValue("/root/main/reservation/orddeptcd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddeptcd")) );
- var deptengabbr = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/deptengabbr");
- model.setValue("/root/main/reservation/orddeptnm", deptengabbr);
- cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_deptcd.value + "']";
- model.setValue("/root/main/reservation/subdeptcd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("subdeptcd")) );
- //cmb_deptcd.dispatch("xforms-value-changed");
-
- model.setValue("/root/main/reservation/orddrid", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddrid")) );
- model.setValue("/root/main/reservation/fsexamflag", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("fsexamflag")) );
- cmb_orddrid.dispatch("xforms-value-changed");
- model.setValue("/root/main/reservation/tablename", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("tablename")) );
- model.setValue("/root/main/reservation/etcordflag", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("etcordflag")) );
-
- //진료일,시간, 진료과,의사
- model.setValue("/root/main/reservation/orddd", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("orddd")) );
- model.setValue("/root/main/reservation/ordtm", grd_outhist.valueMatrix( cur_row, grd_outhist.colRef("ordtm")) );
- model.refresh();
- model.removeNodeset("/root/tmp/reservation");
- model.makeNode("/root/tmp/reservation");
- model.copyNode("/root/tmp/reservation", "/root/main/reservation");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if (isDataCell() == true) {
- if (event.button == 3){
- if(grd_outhist.isCell(event.target) && grd_outhist.mouseRow >= grd_outhist.fixedRows){
- //grd_outhist.endEditCell();
- var currow = grd_outhist.mouseRow;
- var rowcnt = parseInt(getNodesetCount("/root/hidden/rghtmenu/menu")) + 1;
- model.copyNode("/root/hidden/rightmenu1", "/root/hidden/rightmenu");
- window.setPopupMenu(true, "/root/hidden/rghtmenu1/menu", "label", "func", false);
- }else{
- window.setPopupMenu(false);
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case2" style="left:0px; top:0px; width:970px; height:170px; ">
- <datagrid id="datagrid5" nodeset="/root/main/test/testlist" autoresize="true" caption="수납^실시^예약일자^시간^진료과^처방의^처방코드^처방명^수행부서^검사실^remark" colsep="^" colwidth="30, 30, 70, 35, 100, 80, 80, 330, 120, 120, 120, 200" extendlastcol="noscroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:2px; top:2px; width:960px; height:162px; ">
- <col ref="rcptflag" style="text-align:center; "/>
- <col ref="execflag" style="text-align:center; "/>
- <col ref="rsrvdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rsrvtm" format="hh:nn" style="text-align:center; "/>
- <col ref="execdept"/>
- <col ref="orddrnm"/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="prcpdept"/>
- <col ref="examroomnm"/>
- <col ref="rem"/>
- </datagrid>
- </case>
- <case id="case4" style="left:0px; top:0px; width:970px; height:170px; ">
- <datagrid id="grd_anoprcplist" nodeset="/root/main/exculist/subordlist2" caption="구분^수납^처방일자^진료과^처방의^처방상태^검사코드^검사명^수행부서^희망일자^예약시간^실시시간^소요시간^종료시간^Remark^prcpgenflag^prcpdd^execprcpuniqno^execprcpstatcd^prcpkindcd^excupartcd^indd^actorddd^orddrid^execrid^suppdeptcd^cnclresncd^pid^prcpdelivefact^rsrvplceflag^rsrvexcupossyn^rsrvexmptmplcd^tmpldata^rsrvflag^cretno^orddd" colsep="^" colwidth="49, 53, 77, 89, 54, 100, 73, 280, 100, 77, 109, 100, 60, 58, 720" explorerbar="sortshow" frozencols="7" mergecellsfixedrows="bycolrec" rowsep="|" style="left:2px; top:2px; width:960px; height:162px; ">
- <col ref="rsrvflagyn" visibility="hidden"/>
- <col ref="rcptyn"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="orddepthngnm"/>
- <col ref="orddrnm"/>
- <col disabled="true" ref="execprcpstatcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/M0011list/M0011">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="calcscorcd"/>
- <col disabled="true" ref="prcpnm"/>
- <col disabled="true" ref="excuroom"/>
- <col ref="prcphopedd" format="yyyy-mm-dd hh:nn"/>
- <col ref="srchrsrvtm" format="yyyy-mm-dd hh:nn"/>
- <col ref="exectm" format="yyyy-mm-dd hh:nn"/>
- <col ref="excutm" style="text-align:center; "/>
- <col ref="endtime" format="hh:nn" style="text-align:center; "/>
- <col ref="rsrvrem"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_anoprcplist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- </case>
- <case id="case5" style="left:0px; top:0px; width:970px; height:170px; ">
- <datagrid id="grd_inhist" nodeset="/root/main/inhist/inhistlist" caption="입원일자^진료과^진료의^유형^cretno" colsep="^" colwidth="83, 104, 73, 42, 40" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="byrow" style="left:2px; top:2px; width:315px; height:140px; ">
- <col ref="orddd" format="yyyy-mm-dd"/>
- <col ref="orddeptnm"/>
- <col ref="orddrnm"/>
- <col ref="mskind"/>
- <col ref="cretno" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var cur_row = grd_inhist.row;
- if(grd_inhist.valueMatrix( cur_row, grd_inhist.colRef("orddd")) != null ){
- var pid =model.getValue( "/root/main/patinfo/patinfolist/pid");
- var orddd=grd_inhist.valueMatrix(cur_row, grd_inhist.colRef("orddd"));
- var cretno=grd_inhist.valueMatrix( cur_row, grd_inhist.colRef("cretno"));
- model.setValue( "/root/send/pid",pid);
- model.setValue( "/root/send/data5",orddd);
- model.setValue( "/root/send/data6",cretno);
- submit("TRPMO00213");
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_inhistdetl" nodeset="/root/main/inhistdetl/inhistdetlist" class="datagrid2" caption="진료일자^시작일자^종료일자^진료과ID^진료과^진료의ID^진료의^선택진료^보험유형" colsep="^" colwidth="100, 100, 100, 29, 120, 25, 100, 50" dataheight="23" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:321px; top:2px; width:640px; height:140px; ">
- <col ref="orddd" format="yyyy-mm-dd"/>
- <col ref="fromdd" format="yyyy-mm-dd"/>
- <co ref=" todd" format="yyyy-mm-dd"/>
- <col ref="todd" format="yyyy-mm-dd"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="orddeptnm"/>
- <col ref="orddrid" visibility="hidden"/>
- <col ref="orddridnm"/>
- <col ref="specordyn"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var cur_row = grd_inhistdetl.row;
- if (grd_inhistdetl.valueMatrix( cur_row, grd_inhistdetl.colRef("orddd")) != null ){
- model.setValue("/root/main/reservation/orddeptcd", grd_inhistdetl.valueMatrix( cur_row, grd_inhistdetl.colRef("orddeptcd")));
- var deptengabbr = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/deptengabbr");
- model.setValue("/root/main/reservation/orddeptnm", deptengabbr);
- cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_deptcd.value + "']";
- model.setValue("/root/main/reservation/subdeptcd", grd_inhistdetl.valueMatrix( cur_row, grd_inhistdetl.colRef("subdeptcd")) );
- model.setValue("/root/main/reservation/orddrid", grd_inhistdetl.valueMatrix( cur_row, grd_inhistdetl.colRef("orddrid")) );
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <select1 id="radio2" ref="/root/main/ioflag" appearance="full" cols="2" overflow="visible" style="left:1px; top:522px; width:100px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (radio2.value == "O"){
- caption28.attribute("text")="외래이력";
- radio13.visible = true;
- output5.visible = true;
- caption36.visible = true;
- model.toggle("case3");
-
- }else if(radio2.value =="I"){
- caption28.attribute("text")="입원이력";
- radio13.visible = false;
- output5.visible = false;
- caption36.visible = false;
- model.removeNodeset("/root/main/inhistdetl/inhistdetlist");
- model.refresh();
-
- var pid =model.getValue( "/root/main/patinfo/patinfolist/pid");
- model.toggle("case5");
- if (pid != '' ) {
- model.setValue( "/root/send/pid",pid);
- submit("TRPMO00212");
- model.refresh();
- }
- }
- ]]>
- </script>
- </select1>
- <button id="button7" class="btn2_letter4" style="left:270px; top:4px; width:64px; height:19px; ">
- <caption>자격조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rrgstno1 = model.getValue("/root/main/patinfo/patinfolist/rrgstno1").getTrim();
- var rrgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2").getTrim();
- var rrgstno = rrgstno1.concat(rrgstno2);
- fInsuInfoSearch("P");
- /*
- var rrgstno = model.getValue("/root/main/patinfo/patinfolist/rrgstno1") + model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
- var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- var orddd = getCurrentDate();
- var parm = model.getValue("/root/main/patinfo/patinfolist/rrgstno1") +
- model.getValue("/root/main/patinfo/patinfolist/rrgstno2") + "▦" + //주민번호
- model.getValue("/root/main/patinfo/patinfolist/hngnm") + "▦" + //이름
- model.getValue("/root/main/reservation/orddd") + "▦" + //외래진료일자
- "" + "▦" + //생성번호
- "O" + "▦" + //진료형태
- "" + "▦" + //퇴원일자
- "0" + "▦" + //본인일부부담금
- "" + "▦" + //기관부담금
- model.getValue("/root/main/patinfo/patinfolist/pid") + "▦" + //등록번호
- cmb_deptcd.value + "▦" + //진료과
- "" + "▦" + //본인부담구분
- "0" + "▦" + //비급여총금액
- "0" + "▦" + //산전지원금
- "" + "▦"; //보조유형
-
- setParameter("SPPMC03900_PARM",parm);
- //팝업타입 - 메시지 처리 피해가는 파라미터
- setParameter("SPPMC03900_MSGYN", "N");
- //model.setValue("/root/hidden/source", model.getValue("/root/hidden/source/checkfnexam"));
- modal("SPPMC03900", "1","50", "50", "SPPMC03900", "", "", "sysmenu:hidden;");
- if (getParameter("SPPMC03900_RTN") == "N" || getParameter("SPPMC03900_RTN") == ""){
-
- //자격조회 완료여부 세팅
- model.setValue("/root/hidden/flag/check_insuinfo_flag", "N");
- model.setValue("/root/main/reservation/insukind", "51");
-
- }else if(getParameter("SPPMC03900_RTN") == "F"){
- model.setValue("/root/hidden/flag/check_insuinfo_flag", "F");
- return;
-
- }
-
- if (getParameter("SPPMC03900_RTN") == "Y") {
- //model.setValue("root/send/updatedata/reservation/searchInsuInfoyn", "Y");
- model.setValue("/root/main/reservation/searchInsuInfoyn", "Y");
- //return 값이 있으면, 보험유형,증번호,보험자기호,취득일자,피보험자성명
- var insukind = getParameter("SPPMC03900_insukind");
-
- //자격조회 완료여부 세팅
- model.setValue("/root/hidden/flag/check_insuinfo_flag", "Y");
- model.setValue("/root/main/reservation/insukind" , insukind);
- model.setValue("/root/main/reservation/insucd" , getParameter("SPPMC03900_insucd"));
- model.setValue("/root/main/reservation/insuno" , getParameter("SPPMC03900_insuno"));
- model.setValue("/root/main/reservation/insdnm" , getParameter("SPPMC03900_insdnm"));
- model.setValue("/root/main/reservation/ptin_fromdd" , getParameter("SPPMC03900_insufromdd"));
- }
-
- clearParameter("SPPMC03900_RTN");
- clearParameter("SPPMC03900_insukind");
- clearParameter("SPPMC03900_insucd");
- clearParameter("SPPMC03900_insuno");
- clearParameter("SPPMC03900_insdnm");
- clearParameter("SPPMC03900_insufromdd");
- model.refresh();
- */
- ]]>
- </script>
- </button>
- <button id="btn_sms" class="btn2_letter2" style="left:336px; top:4px; width:42px; height:19px; ">
- <caption>SMS</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- clearParameter("SMPMO00200_SMS_orddd");
- clearParameter("SMPMO00200_SMS_orddeptcd");
- clearParameter("SMPMO00200_SMS_orddrid");
- clearParameter("SMPMO00200_SMS_pid");
- clearParameter("SMPMO00200_SMS_msg");
-
- var orddd = model.getValue("/root/main/reservation/orddd");
- var ordtm = model.getValue("/root/main/reservation/ordtm");
- var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- hngnm = hngnm.replace("★", "");
-
- var msg = "[경북대학교병원] "
- + hngnm + "님 "
- + orddd.substr(4, 2) + "월"
- + orddd.substr(6, 2) + "일 "
- + ordtm.substr(0, 2) + "시"
- + ordtm.substr(2, 2) + "분 "
- + combo5.label
- + " 진료예약입니다.";
-
- setParameter("SMPMO00200_SMS_orddd", orddd);
- setParameter("SMPMO00200_SMS_orddeptcd", model.getValue("/root/main/reservation/orddeptcd"));
- setParameter("SMPMO00200_SMS_orddrid", model.getValue("/root/main/reservation/orddrid"));
- setParameter("SMPMO00200_SMS_pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- setParameter("SMPMO00200_SMS_msg", msg);
-
- open("SMMNO01100");
- ]]>
- </script>
- </button>
- <button id="btn_smsresult" class="btn2_letter4" style="left:380px; top:4px; width:64px; height:19px; ">
- <caption>SMS결과</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SPCNS00500");
- ]]>
- </script>
- </button>
- <line id="line10" class="line_2" style="x1:0px; y1:349px; x2:577px; y2:349px; "/>
- <line id="line8" class="line_3" style="x1:0px; y1:506px; x2:577px; y2:506px; "/>
- <select1 id="combo6" ref="/root/main/reservation/orddrid" class="combo_default" navindex="12" visibility="hidden" appearance="minimal" style="left:432px; top:180px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddrid/orddridlist">
- <label ref="nmsp"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/reservation/orddd", "");
- model.setValue("/root/main/reservation/ordtm", "");
-
- var orddeptcd1 = model.getValue("/root/main/outhist/outhistlist/orddeptcd");
- var orddeptcd2 = model.getValue("/root/main/reservation/orddeptcd");
- var orddrid1 = model.getValue("/root/main/outhist/outhistlist/orddrid");
- var orddrid2 = model.getValue("/root/main/reservation/orddrid");
- if( orddeptcd2 == '' || orddeptcd2 == '-' || orddeptcd2 == null ){
- messageBox("진료과를 먼저 선택하세요!!" , 'E999', "");
- model.setValue("/root/main/reservation/orddrid", "");
- cmb_orddrid.refresh();
- return false;
- }
-
- fGetCalendarData();
- cmb_orddrid.refresh();
-
- var orddrabbr = model.getValue("/root/init/orddrid/orddridlist[ cd = '" + cmb_orddrid.value + "']/drengabbr");
- model.setValue("/root/main/reservation/orddeptnm", orddrabbr);
-
- var sp = model.getValue("/root/init/orddrid/orddridlist[cd = '" + cmb_orddrid.value + "' and dp = '" + cmb_deptcd.value + "']/sp");
- if( sp == 'Y' || sp == 'y' ){
- model.setValue("/root/main/reservation/specordyn", sp);
- }else{
- model.setValue("/root/main/reservation/specordyn", 'N');
- }
- //초재진여부 조회
- //2016/11/28
- //fGetFsexamFlag();
- //2016/11/28
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="combo5" ref="/root/main/reservation/orddeptcd" class="combo_default" navindex="11" visibility="hidden" appearance="minimal" style="left:196px; top:180px; width:107px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/reservation/orddd", "");
- model.setValue("/root/main/reservation/ordtm", "");
-
- //노드와 컨트롤의 값 동기화를 위해 리풀레쉬 해준다.
- cmb_deptcd.refresh();
- var rsrvflag = model.getValue("/root/main/reservation/rsrvflag");
-
- //센터여부, 센터코드, 하위부서, 선택진료여부 초기화
- model.setValue("/root/main/reservation/subdeptcd", "-");
- model.setValue("/root/main/reservation/centcd", "");
- model.setValue("/root/main/reservation/centcdyn", "");
- model.setValue("/root/main/reservation/specordyn", "");
- //응급의학과 블럭킹
- if( cmb_deptcd.value == '2280000000' ){
- messageBox("응급의학과는 전화예약에서 접수할 수 없습니다.", "E999", "");
- model.setValue("/root/main/reservation/orddrid", "");
- model.setValue("/root/main/reservation/orddeptcd", "");
- model.setValue("/root/main/reservation/subdeptcd", "-");
- model.setValue("/root/main/reservation/orddeptnm", "");
- // model.setValue("/root/main/reservation/centcd", "-");
- model.refresh();
- model.setFocus("cmb_deptcd");
- return false;
- }
- /*
- combo6.visible = false;
- cmb_orddrid.visible = true;
- */
-
- //sub진료과 세팅 2008-09-12 추가
- cmb_subdeptcd.choices.itemset.attribute("nodeset") = "/root/init/subdeptcd/subdeptcdlist[dp = '"+ cmb_deptcd.value +"' or dp = '-']";
- cmb_subdeptcd.refresh();
-
- //2007-08-17 이동식 추가 - 진료과 선택시 영문약어표시
- var deptengabbr = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/deptengabbr");
- model.setValue("/root/main/reservation/orddeptnm", deptengabbr);
- //END..
-
- cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_deptcd.value + "']";
- model.setValue("/root/main/reservation/orddrid", "");
-
- //초재진여부 조회
- fGetFsexamFlag();
- model.refresh();
-
- if(RD == 'Y'){
- if( model.getValue("/root/main/patinfo/patinfolist/pid").length < 1 && model.getValue("/root/main/patinfo/patinfolist/hngnm").length < 1 ){
- //환자정보 없을 경우 진료의뢰서 체크 안함!!!
-
- }else if( model.getValue("/root/main/patinfo/patinfolist/pid").length < 1 && model.getValue("/root/main/patinfo/patinfolist/hngnm").length > 1 ){
- var reqdeptno = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/reqdeptno");
- //등록번호 없고 환자 이름이 입력된 경우 - 신환! 무조건 메세지 출력!!
- // 치과 진찰료 별도산정 관련 수정(2017/05/10 이정택)
- //if( reqdeptno == "55" || reqdeptno == "23" || reqdeptno == "21" || rsrvflag == "C" ){
- if( reqdeptno.substr(0,1)=="5" || reqdeptno == "23" || reqdeptno == "21" || rsrvflag == "C" ){
- model.setValue("/root/main/reservation/ordreqdescyn", 'Y');
- //진료의뢰서가 필요 없을경우 선택진료설명여부 Yes 세팅
- //model.setValue("/root/main/reservation/specorddescyn", 'Y');
- }else {
- messageBox("진료의뢰서가 필요합니다.", "E999", "");
- model.setValue("/root/main/reservation/ordreqdescyn", '');
- }
- }else{
- //진료의뢰서 확인
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var fsexamflag = model.getValue("/root/main/reservation/fsexamflag");
- var orddeptcd = cmb_deptcd.value;
- // var deptengabbr = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/deptengabbr");
- var reqdeptno = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/reqdeptno");
- var outhistpath = "/root/main/outhist/outhistlist"; //외래이력노드
- if( ! fCheckOrdCnst(pid, fsexamflag, orddeptcd, deptengabbr, reqdeptno, outhistpath, INSUKIND) && rsrvflag != "C"){
- messageBox("진료의뢰서가 필요합니다.", "E999", "");
- model.setValue("/root/main/reservation/ordreqdescyn", '');
- }else {
- model.setValue("/root/main/reservation/ordreqdescyn", 'Y');
- //진료의뢰서가 필요 없을경우 선택진료설명여부 Yes 세팅
- //model.setValue("/root/main/reservation/specorddescyn", 'Y');
- }
- }
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_centdeptcd" ref="/root/main/reservation/orddeptcd" class="combo_default" navindex="11" visibility="hidden" appearance="minimal" style="left:196px; top:180px; width:107px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/cntrsuborddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/reservation/orddd", "");
- model.setValue("/root/main/reservation/ordtm", "");
-
- //노드와 컨트롤의 값 동기화를 위해 리풀레쉬 해준다.
- cmb_deptcd.refresh();
-
- var rsrvflag = model.getValue("/root/main/reservation/rsrvflag");
-
- //센터여부, 센터코드, 하위부서, 선택진료여부 초기화
- model.setValue("/root/main/reservation/subdeptcd", "-");
- // model.setValue("/root/main/reservation/centcd", "");
- // model.setValue("/root/main/reservation/centcdyn", "");
- model.setValue("/root/main/reservation/specordyn", "");
-
- //응급의학과 블럭킹
- if( cmb_deptcd.value == '2280000000' ){
- messageBox("응급의학과는 전화예약에서 접수할 수 없습니다.", "E999", "");
- model.setValue("/root/main/reservation/orddrid", "");
- model.setValue("/root/main/reservation/orddeptcd", "");
- model.setValue("/root/main/reservation/subdeptcd", "-");
- model.setValue("/root/main/reservation/orddeptnm", "");
- // model.setValue("/root/main/reservation/centcd", "-");
- model.refresh();
- model.setFocus("cmb_deptcd");
- return false;
- }
- /*
- combo6.visible = false;
- cmb_orddrid.visible = true;
- */
-
- //sub진료과 세팅 2008-09-12 추가
- cmb_subdeptcd.choices.itemset.attribute("nodeset") = "/root/init/subdeptcd/subdeptcdlist[dp = '"+ cmb_deptcd.value +"' or dp = '-']";
- cmb_subdeptcd.refresh();
-
- //2007-08-17 이동식 추가 - 진료과 선택시 영문약어표시
- var deptengabbr = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/deptengabbr");
- model.setValue("/root/main/reservation/orddeptnm", deptengabbr);
- //END..
-
- cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_deptcd.value + "']";
- model.setValue("/root/main/reservation/orddrid", "");
-
- //초재진여부 조회
- fGetFsexamFlag();
- model.refresh();
-
- if(RD == 'Y'){
- if( model.getValue("/root/main/patinfo/patinfolist/pid").length < 1 && model.getValue("/root/main/patinfo/patinfolist/hngnm").length < 1 ){
- //환자정보 없을 경우 진료의뢰서 체크 안함!!!
-
- }else if( model.getValue("/root/main/patinfo/patinfolist/pid").length < 1 && model.getValue("/root/main/patinfo/patinfolist/hngnm").length > 1 ){
- var reqdeptno = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/reqdeptno");
- //등록번호 없고 환자 이름이 입력된 경우 - 신환! 무조건 메세지 출력!!
- // 치과 진찰료 별도산정 관련 수정(2017/05/10 이정택)
- //if( reqdeptno == "55" || reqdeptno == "23" || reqdeptno == "21" || rsrvflag == "C" ){
- if( reqdeptno.substr(0,1)=="5" || reqdeptno == "23" || reqdeptno == "21" || rsrvflag == "C" ){
- model.setValue("/root/main/reservation/ordreqdescyn", 'Y');
- //진료의뢰서가 필요 없을경우 선택진료설명여부 Yes 세팅
- //model.setValue("/root/main/reservation/specorddescyn", 'Y');
- }else {
- messageBox("진료의뢰서가 필요합니다.", "E999", "");
- model.setValue("/root/main/reservation/ordreqdescyn", '');
- }
- }else{
- //진료의뢰서 확인
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var fsexamflag = model.getValue("/root/main/reservation/fsexamflag");
- var orddeptcd = cmb_deptcd.value;
- // var deptengabbr = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/deptengabbr");
- var reqdeptno = model.getValue("/root/init/orddeptcd/orddeptcdlist[ cd = '" + cmb_deptcd.value + "']/reqdeptno");
- var outhistpath = "/root/main/outhist/outhistlist"; //외래이력노드
- if( ! fCheckOrdCnst(pid, fsexamflag, orddeptcd, deptengabbr, reqdeptno, outhistpath, INSUKIND) && rsrvflag != "C"){
- messageBox("진료의뢰서가 필요합니다.", "E999", "");
- model.setValue("/root/main/reservation/ordreqdescyn", '');
- }else {
- model.setValue("/root/main/reservation/ordreqdescyn", 'Y');
- //진료의뢰서가 필요 없을경우 선택진료설명여부 Yes 세팅
- // model.setValue("/root/main/reservation/specorddescyn", 'Y');
- }
- }
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption27" class="cell_1" style="left:409px; top:102px; width:67px; height:23px; vertical-align:middle; ">연락처1</caption>
- <input id="input5" ref="/root/main/patinfo/patinfolist/etctel1" class="input_default" navindex="7" maxlength="13" appearance="input" style="left:479px; top:103px; width:98px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/patinfo/patinfolist/etctel1", fMakeTelNumFormat(model.getValue("/root/main/patinfo/patinfolist/etctel1")));
- input5.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13"){
- model.setFocus("input6");
- }
- ]]>
- </script>
- </input>
- <caption id="caption37" class="cell_1" style="left:409px; top:126px; width:67px; height:23px; vertical-align:middle; ">연락처2</caption>
- <input id="input6" ref="/root/main/patinfo/patinfolist/etctel2" class="input_default" navindex="7" maxlength="13" appearance="input" style="left:479px; top:127px; width:98px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/patinfo/patinfolist/etctel2", fMakeTelNumFormat(model.getValue("/root/main/patinfo/patinfolist/etctel2")));
- input6.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13"){
- model.setFocus("btn_srchzipcd");
- }
- ]]>
- </script>
- </input>
- <button id="button5" class="btn2_letter4" style="left:445px; top:4px; width:64px; height:19px; ">
- <caption>SMS동의</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // open("SPCNS00500");
- model.setValue("/root/hidden/source/srchcond", 1);
- model.setValue("/root/hidden/source/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- // model.setValue("/root/hidden/source", model.getValue("/root/hidden/source/checkfnexam"));
- modal("SMPMC01400", "1", "200", "200", "SMPMC01400", "/root/hidden/source", "/root/hidden/source");
- ]]>
- </script>
- </button>
- <!-- 나루시스템 관련 프로그램 수정-->
- <button id="btn_softphone" class="btn2_letter6" visibility="hidden" style="left:182px; top:4px; width:86px; height:19px; ">
- <caption>소프트폰접속</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rtn = NARU.NaruIFStart();
- if(rtn!="1"){
- messageBox("소프트폰 접속에 실패하였습니다.", "E");
- }else{
- messageBox("소프트폰 접속에 성공하였습니다.", "I");
- }
- ]]>
- </script>
- </button>
- <select id="chk_refersibum" ref="/root/tmp/refer_sibum" visibility="hidden" overflow="visible" appearance="full" style="left:225px; top:514px; width:100px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/P0341list/P0341[cdsid='P0341W']">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select>
- <caption id="caption40" class="cell_1" style="left:0px; top:266px; width:105px; height:38px; text-align:center; vertical-align:middle; ">
- <![CDATA[재진
- 특이사항]]>
- </caption>
- <textarea id="opt_reexamrem" ref="/root/main/reservation/reexamrem" disabled="false" editable="false" appearance="textarea" style="left:108px; top:266px; width:469px; height:38px; "/>
- <caption id="caption48" style="left:1167px; top:689px; width:27px; height:15px; ">협력</caption>
- <caption id="caption49" style="left:1149px; top:688px; width:15px; height:15px; background-color:#fd97b7ff; "/>
- <caption id="caption50" style="left:1167px; top:705px; width:27px; height:15px; ">심층</caption>
- <caption id="caption51" style="left:1149px; top:704px; width:15px; height:15px; background-color:#9fc93cff; "/>
- </group>
- <!-- 나루시스템 관련 프로그램 수정-->
- <group id="grp_naru" visibility="hidden" style="left:0px; top:15px; width:20px; height:20px; ">
- <object id="NARU" clsid="{50a12a9d-83f0-4d47-9e1c-8826c891a94f}" style="left:0px; top:0px; width:15px; height:15px; ">
- <script for="NARU" type="javascript" ev:event="EvtInbound(szAni)">
- <![CDATA[
- if(!isNull(szAni)){
- var rtn_pid = szAni.split("|");
- if(!isNull(rtn_pid)){
- ipt_pid.value=rtn_pid[1];
- ipt_pid.refresh();
-
- delPatientInfos();
- fPidEnterEvent();
- }
- }
- ]]>
- </script>
- </object>
- </group>
- <group id="group3" style="left:0px; top:749px; width:1195px; height:31px; ">
- <button id="button8" class="btn3_letter5" style="left:1px; top:5px; width:92px; height:22px; ">
- <caption>진료의뢰서</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- // var orddeptcd = model.getValue("/root/main/reservation/orddeptcd");
- var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- var parameter = pid + "▦" + hngnm;
- setParameter("SMPMO01200_PARM", parameter);
- modal("SPPMO01200", "1", "200", "200", "SPPMO01200", "", "");
- // model.setValue("/root/hidden/source/srchcond", 1);
- // model.setValue("/root/hidden/source/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- // model.setValue("/root/hidden/source", model.getValue("/root/hidden/source/checkfnexam"));
- // modal("SMPMC01800", "1", "200", "200", "SMPMC01800", "/root/hidden/source", "/root/source");
- ]]>
- </script>
- </button>
- <button id="btn_srchzipcd6" class="btn3_letter4" style="left:96px; top:5px; width:80px; height:22px; ">
- <caption>변경조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var curDate = getCurrentDate();
- var setDate = '';
- setParameter("openflag", 'T');
- setParameter("pid", model.getvalue("/root/main/patinfo/patinfolist/pid"));
- setParameter("hngnm", model.getvalue("/root/main/patinfo/patinfolist/hngnm"));
- setParameter("rrgstno1", model.getvalue("/root/main/patinfo/patinfolist/rrgstno1"));
- setParameter("rrgstno2", model.getvalue("/root/main/patinfo/patinfolist/rrgstno2"));
- setParameter("todd", curDate);
- setParameter("orddeptcd", setDate);
- setParameter("orddrid", setDate);
- setParameter("specordyn", setDate);
- setParameter("rsrvflag", setDate);
- setParameter("insukind", setDate);
- setParameter("acptdd", setDate);
- setParameter("acptno", setDate);
- setParameter("tablename", setDate);
- curDate = curDate.toDate().getAddDate(-1,"Y");
- var bfDate = curDate.getFullYear();
- bfDate = bfDate.toString() + (( curDate.getMonth()+ 1 > 9 ) ? curDate.getMonth() + 1 : "0" + (curDate.getMonth() + 1));
- bfDate = bfDate.toString() + (( curDate.getDate() > 9 ) ? curDate.getDate() : "0" + curDate.getDate()) ;
- setParameter("fromdd", bfDate);
- modal("SMPMO00600", "", "50", "50" ,"SMPMO00600", "", "");
- ]]>
- </script>
- </button>
- <button id="btn_srchzipcd7" class="btn3_letter6" visibility="hidden" style="left:690px; top:5px; width:104px; height:22px; ">
- <caption>인적사항변경</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/hidden/source/srchcond", 1);
- model.setValue("/root/hidden/source/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- // model.setValue("/root/hidden/source", model.getValue("/root/hidden/source/checkfnexam"));
- modal("SMPMC01400", "1", "200", "200", "SMPMC01400", "/root/hidden/source", "/root/hidden/source");
- ]]>
- </script>
- </button>
- <button id="button32" class="btn4_letter2" visibility="hidden" style="left:985px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 신환/구환을 구분한다.
- if( model.getValue("/root/main/reservation/cretno") != '' &&
- model.getValue("/root/main/reservation/acptseqno") != '' &&
- model.getValue("/root/main/patinfo/patinfolist/pid").length > 0 &&
- model.getValue("/root/main/reservation/acptno") == '0' ){
- model.setValue("/root/hidden/source/checkfnexam", '3');
- }else{
- model.setValue("/root/hidden/source/checkfnexam", '1');
- }
-
- if( pamCompareNodes("/root/main/patinfo/patinfolist", "/root/tmp/patinfolist") && pamCompareNodes("/root/main/reservation", "/root/tmp/reservation")){
- if( messageBox("예약정보를 정말 취소하시겠습니까?", "Q003") == 6){
- fMakeRsrv('X');
- }
- }else{
- messageBox("예약정보가 수정되었습니다. 수정된 정보는 취소할 수 없습니다.", "E999", "");
- }
- ]]>
- </script>
- </button>
- <button id="button33" class="btn4_letter2" visibility="hidden" style="left:865px; top:5px; width:56px; height:22px; ">
- <caption>예약</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 신환/구환을 구분한다.
- if( model.getValue("/root/main/patinfo/patinfolist/pid").length > 0 ){
- model.setValue("/root/hidden/source/checkfnexam", '3');
- }else{
- model.setValue("/root/hidden/source/checkfnexam", '1');
- }
- if( fIsRsrvDataOK()){
- fMakeRsrv('T');
- }
- ]]>
- </script>
- </button>
- <button id="button34" class="btn4_letter2" visibility="hidden" style="left:925px; top:5px; width:56px; height:22px; ">
- <caption>변경</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //초재진구분 조회
- if( grd_outhist.row < 1 ){
- messageBox("변경할 내역이 선택되지 않았습니다.", "E999", "");
- return false;
- }
- //신환/구환을 구분한다.
- if( model.getValue("/root/main/reservation/cretno") != '' &&
- model.getValue("/root/main/reservation/acptseqno") != '' &&
- model.getValue("/root/main/patinfo/patinfolist/pid").length > 0 &&
- model.getValue("/root/main/reservation/acptno") == '0' ){
- model.setValue("/root/hidden/source/checkfnexam", '3');
- }else{
- model.setValue("/root/hidden/source/checkfnexam", '1');
- }
-
- if( pamCompareNodes("/root/main/patinfo/patinfolist", "/root/tmp/patinfolist") && pamCompareNodes("/root/main/reservation", "/root/tmp/reservation")){
- if( messageBox("변경된 데이터가 없습니다.", "Q003") == 6){
- if( fIsRsrvDataOK()){
- //진찰료가 수납된 내역(HISTSTAT=R) 변경 시(OTPT),
- //초재진구분,선택진료여부가 변경될 경우 기존내역 C, 신규내역 R 로 생성하면서,
- //CALCYN = Y 로 세팅,CALCFLAG=Y
- if( fIsRsrvUpdtDataOK() ){
- fMakeRsrv('C');
- }
- }
- }
- }else{
- if( fIsRsrvDataOK()){
- if( fIsRsrvUpdtDataOK() ){
- fMakeRsrv('C');
- }
- }
- }
- ]]>
- </script>
- </button>
- <button id="button35" class="btn4_letter3" visibility="hidden" style="left:1045px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line88" class="line_6" style="x1:0px; y1:0px; x2:1195px; y2:0px; "/>
- <button id="button1" class="btn3_letter2" style="left:179px; top:5px; width:56px; height:22px; ">
- <caption>협진</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- // if( pid == '' || pid == '' || pid == '-' ){
- // messageBox("등록번호가 없습니다. 환자조회 후 다시 시도해 주세요.", "E999", "");
- // return false;
- // }
- setParameter("SPPMO01300_PID", pid);
- setParameter("SPPMO01300_HNGNM", hngnm);
- setParameter("SPPMO01300_FLAG", 'O');
- modal("SPPMO01300", "1", "200", "200", "SPPMO01300", "", "");
-
- // if(submit("TRPAC00301")){
- //
- // }
- ]]>
- </script>
- </button>
- <button id="button6" class="btn3_letter6" style="left:238px; top:5px; width:104px; height:22px; ">
- <caption>휴진내역조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // model.setValue("/root/hidden/source/srchcond", 1);
- // model.setValue("/root/hidden/source/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- // model.setValue("/root/hidden/source", model.getValue("/root/hidden/source/checkfnexam"));
- setParameter("SMPMB00900_orddeptcd", model.getValue("/root/main/reservation/orddeptcd"));
- setParameter("SMPMB00900_orddrid", model.getValue("/root/main/reservation/orddrid"));
- modal("SMPMB00900", "1", "50", "50", "SMPMB00900", "", "");
- ]]>
- </script>
- </button>
- <button id="btn_privacy" class="btn3_letter3" style="left:344px; top:5px; width:68px; height:22px; ">
- <caption>사생활</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //사생활보호 정보관리창 호출
- fCallPatPrivacy(model.getValue("/root/main/patinfo/patinfolist/pid"));
- ]]>
- </script>
- </button>
- <button id="button2" class="btn3_letter6" visibility="hidden" style="left:414px; top:5px; width:104px; height:22px; ">
- <caption>분배내역조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SPPMP01700", "1", "200", "200", "SPPMP01700", "", "");
- ]]>
- </script>
- </button>
- <input id="input4" ref="/root/callcenter/status" visibility="hidden" style="left:800px; top:6px; width:65px; height:19px; "/>
- <select id="checkbox2" ref="/root/hidden/com/searchInsuInfoYN" visibility="hidden" overflow="visible" appearance="full" style="left:1125px; top:5px; width:67px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>자격조회</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <button id="button13" class="btn3_letter4" visibility="hidden" style="left:521px; top:5px; width:80px; height:22px; ">
- <caption>선택진료</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/tempchk/specchk/stat", "");
- model.makeValue("/root/tempchk/specchk/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.makeValue("/root/tempchk/specchk/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.makeValue("/root/tempchk/specchk/rrgstno1", model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
- model.makeValue("/root/tempchk/specchk/rrgstno2", model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
- model.makeValue("/root/tempchk/specchk/choiflag", "");
- model.makeValue("/root/tempchk/specchk/ordtype", "O");
- model.makeValue("/root/tempchk/specchk/orddd", model.getValue("/root/main/reservation/orddd"));
- model.makeValue("/root/tempchk/specchk/orddeptcd", model.getValue("/root/main/reservation/orddeptcd"));
- model.makeValue("/root/tempchk/specchk/orddrid", model.getValue("/root/main/reservation/orddrid"));
- if (model.getValue("/root/main/reservation/specordyn") != "N") {
- model.makeValue("/root/tempchk/specchk/specordyn", "Y");
- } else {
- model.makeValue("/root/tempchk/specchk/specordyn", "N");
- }
- model.makeValue("/root/tempchk/specchk/fromdd", model.getValue("/root/main/reservation/orddd"));
- model.makeValue("/root/tempchk/specchk/rsrvdd", "");
-
- modal("SMPMC06500", "1", "0", "0" ,"SMPMC06500", "/root/tempchk/specchk", "/root/main/patappinfo/patappinfo1");
- ]]>
- </script>
- </button>
- </group>
- <select1 id="radio3" ref="/root/main/caloption" appearance="full" cellspacing="8" cols="2" rows="1" overflow="visible" style="left:800px; top:22px; width:168px; height:20px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>예약가능인원</label>
- <value>1</value>
- </item>
- <item>
- <label>예약현황</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate();
-
- setCalendar2(isDate);
- //fRemoveCapa();
- model.removeNodeset("/root/main/outrgst/outrgstlist");
- model.resetInstanceNode("/root/resercnt");
- ]]>
- </script>
- </select1>
- <button id="btn_hie" class="btn2_letter4" visibility="hidden" style="left:683px; top:19px; width:64px; height:19px; ">
- <caption>HIE환자</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fHIEList();
-
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|