SMAEA01500_접수관리(내시경).xfdl 386 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAEA01500" position="absolute 0 0 1193 786" titletext="접수관리(내시경)" oninit="SMAEA01500_oninit" onload="SMAEA01500_onload" ontimer="SMAEA01500_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1179 25" id="group1">
  8. <Layouts>
  9. <Layout>
  10. <Static text="접수관리 " position="absolute 0 0 140 25" id="cap_title" class="tit_1" anchor="default"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div position="absolute 0 18 1190 784" id="group3" scrollbars="autoboth" anchor="all">
  15. <Layouts>
  16. <Layout>
  17. <Button position="absolute 1173 5 1189 25" id="btn_upclear" class="icon_startend" text="" onclick="group3_btn_upclear_onclick" anchor="top right" style="background:@gradation URL('theme://images\icon_startend.gif');border:0 double #33bbbbff #effcfbff;"/>
  18. <Static text="등록번호" position="absolute 500 26 557 49" align="align:center middle;" id="caption18" class="cell_1" wordwrap="none" anchor="default" style="padding:0 0 0 4;"/>
  19. <Div position="absolute 0 6 495 63" align="align:center top;" id="group6" class="div_SA" anchor="default">
  20. <Layouts>
  21. <Layout>
  22. <Shape position="absolute 415 10 421 27" linetype="vertical" id="line18" class="line_4" anchor="default"/>
  23. <Static text="업무일자 : " position="absolute 9 10 100 27" id="caption5" class="search_name" anchor="default"/>
  24. <Calendar position="absolute 96 7 186 26" id="ipt_date1" class="input_default" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
  25. <Button position="absolute 429 8 485 30" id="btn_sea" class="btn1" text="조회" anchor="default" onclick="group3_group6_btn_sea_onclick"/>
  26. <Static text="등록번호 :" position="absolute 200 10 291 27" id="caption11" class="search_name" anchor="default"/>
  27. <Edit position="absolute 289 7 382 26" id="input5" class="input_search" anchor="default" onkeydown="group3_group6_input5_onkeydown" autoselect="true"/>
  28. <Button position="absolute 389 8 405 24" id="button61" class="icon_search" text="" anchor="default" onclick="group3_group6_button61_onclick"/>
  29. <Static text="구분 :" position="absolute 200 33 266 50" id="caption17" class="search_name" anchor="default"/>
  30. <Radio position="absolute 264 32 460 48" id="rdo_srchprcpgenrflag" class="radio_search" columncount="4" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
  31. <Dataset id="innerdataset">
  32. <ColumnInfo>
  33. <Column id="codecolumn"/>
  34. <Column id="datacolumn"/>
  35. </ColumnInfo>
  36. <Rows>
  37. <Row>
  38. <Col id="codecolumn">
  39. </Col>
  40. <Col id="datacolumn">전체</Col>
  41. </Row>
  42. <Row>
  43. <Col id="codecolumn">I</Col>
  44. <Col id="datacolumn">입원</Col>
  45. </Row>
  46. <Row>
  47. <Col id="codecolumn">O</Col>
  48. <Col id="datacolumn">외래</Col>
  49. </Row>
  50. <Row>
  51. <Col id="codecolumn">E</Col>
  52. <Col id="datacolumn">응급</Col>
  53. </Row>
  54. </Rows>
  55. </Dataset>
  56. </Radio>
  57. <Radio position="absolute 112 32 177 48" id="radio2" class="radio_search" columncount="3" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
  58. <Dataset id="innerdataset">
  59. <ColumnInfo>
  60. <Column id="codecolumn"/>
  61. <Column id="datacolumn"/>
  62. </ColumnInfo>
  63. <Rows>
  64. <Row>
  65. <Col id="codecolumn">00000000</Col>
  66. <Col id="datacolumn">N</Col>
  67. </Row>
  68. <Row>
  69. <Col id="codecolumn">
  70. </Col>
  71. <Col id="datacolumn">Y</Col>
  72. </Row>
  73. </Rows>
  74. </Dataset>
  75. </Radio>
  76. <Static text="미수납포함 :" position="absolute 9 33 108 50" id="caption14" class="search_name" anchor="default"/>
  77. </Layout>
  78. </Layouts>
  79. </Div>
  80. <Tab position="absolute 0 229 495 766" id="switch1" onchanged="group3_switch1_onchanged" style="border:1 none #808080ff ;" class="tab_Normal" anchor="left top bottom">
  81. <Tabpages>
  82. <Tabpage text="미예약" id="case5" scrollbars="none">
  83. <Layouts>
  84. <Layout>
  85. <Shape position="absolute 4 6 488 14" linetype="horizontal" id="line7" class="line_10" anchor="default"/>
  86. <Grid position="absolute 4 12 488 516" id="grd_subordlist1" binddataset="ds_grd_subordlist1" oncellclick="group3_switch1_case5_grd_subordlist1_oncellclick" cellsizingtype="col" anchor="all" onrbuttonup="group3_switch1_case5_grd_subordlist1_onrbuttonup" selecttype="multirow">
  87. <Formats>
  88. <Format id="default">
  89. <Columns>
  90. <Column size="25" band="left"/>
  91. <Column size="55"/>
  92. <Column size="48"/>
  93. <Column size="40"/>
  94. <Column size="210"/>
  95. <Column size="0"/>
  96. <Column size="80"/>
  97. <Column size="47"/>
  98. <Column size="36"/>
  99. <Column size="67"/>
  100. <Column size="67"/>
  101. <Column size="35"/>
  102. <Column size="0"/>
  103. <Column size="0"/>
  104. <Column size="0"/>
  105. <Column size="0"/>
  106. <Column size="0"/>
  107. <Column size="0"/>
  108. <Column size="0"/>
  109. <Column size="0"/>
  110. <Column size="0"/>
  111. <Column size="0"/>
  112. <Column size="0"/>
  113. <Column size="0"/>
  114. <Column size="0"/>
  115. <Column size="0"/>
  116. <Column size="0"/>
  117. <Column size="0"/>
  118. <Column size="0"/>
  119. <Column size="0"/>
  120. <Column size="0"/>
  121. <Column size="0"/>
  122. <Column size="0"/>
  123. <Column size="0"/>
  124. <Column size="0"/>
  125. <Column size="0"/>
  126. <Column size="0"/>
  127. <Column size="0"/>
  128. <Column size="0"/>
  129. <Column size="0"/>
  130. <Column size="0"/>
  131. <Column size="0"/>
  132. </Columns>
  133. <Rows>
  134. <Row size="24" band="head"/>
  135. <Row size="24"/>
  136. </Rows>
  137. <Band id="head">
  138. <Cell/>
  139. <Cell col="1" text="등록번호"/>
  140. <Cell col="2" text="환자명"/>
  141. <Cell col="3" text="S/A"/>
  142. <Cell col="4" text="검사"/>
  143. <Cell col="5" text="검사"/>
  144. <Cell col="6" text="진료과"/>
  145. <Cell col="7" text="진료의"/>
  146. <Cell col="8" text="구분"/>
  147. <Cell col="9" text="희망일자"/>
  148. <Cell col="10" text="처방일자"/>
  149. <Cell col="11" text="수납"/>
  150. <Cell col="12" text="선택진료"/>
  151. <Cell col="13" text="지정의"/>
  152. <Cell col="14" text="execprcpuniqno"/>
  153. <Cell col="15" text="prcpkindcd"/>
  154. <Cell col="16" text="excupartcd"/>
  155. <Cell col="17" text="orddeptcd"/>
  156. <Cell col="18" text="orddd"/>
  157. <Cell col="19" text="excuroomcd"/>
  158. <Cell col="20" text="orddrid"/>
  159. <Cell col="21" text="prcpgenrflag"/>
  160. <Cell col="22" text="basesuppdeptcd"/>
  161. <Cell col="23" text="prcpdelivefact"/>
  162. <Cell col="24" text="prcpexecdeptcd"/>
  163. <Cell col="25" text="rsrvrem"/>
  164. <Cell col="26" text="execrem"/>
  165. <Cell col="27" text="rsrvdt"/>
  166. <Cell col="28" text="cretno"/>
  167. <Cell col="29" text="excupartnm"/>
  168. <Cell col="30" text="ioflag"/>
  169. <Cell col="31" text="issdept"/>
  170. <Cell col="32" text="caption1"/>
  171. <Cell col="33" text="age"/>
  172. <Cell col="34" text="rcptacptyn"/>
  173. <Cell col="35" text="rcptrsrvyn"/>
  174. <Cell col="36" text="aftrcptinfo"/>
  175. <Cell col="37" text="caption2"/>
  176. <Cell col="38" text="caption3"/>
  177. <Cell col="39" text="caption4"/>
  178. <Cell col="40" text="caption5"/>
  179. <Cell col="41"/>
  180. </Band>
  181. <Band id="body">
  182. <Cell celltype="head" text="expr:currow+1"/>
  183. <Cell col="1" style="color:EXPR(vipflag == 'Y' ? '#FF9A00' : '');color2:EXPR(vipflag == 'Y' ? '#FF9A00' : '');" text="bind:pid"/>
  184. <Cell col="2" style="align:left;" text="bind:hngnm"/>
  185. <Cell col="3" text="bind:sna"/>
  186. <Cell col="4" style="align:left;" text="bind:prcpnm"/>
  187. <Cell col="5" text="bind:calcscorcd"/>
  188. <Cell col="6" displaytype="text" text="bind:orddepthngnm"/>
  189. <Cell col="7" text="bind:orddrnm"/>
  190. <Cell col="8" text="bind:genrflag"/>
  191. <Cell col="9" displaytype="date" text="bind:prcphopedt" calendardisplaynulltype="nulltext"/>
  192. <Cell col="10" displaytype="date" text="bind:prcpdd" calendardisplaynulltype="nulltext"/>
  193. <Cell col="11" text="bind:rcptyn"/>
  194. <Cell col="12" text="bind:choiordflag"/>
  195. <Cell col="13" text="bind:specdrnm"/>
  196. <Cell col="14" text="bind:execprcpuniqno"/>
  197. <Cell col="15" text="bind:prcpkindcd"/>
  198. <Cell col="16" text="bind:excupartnm"/>
  199. <Cell col="17" text="bind:orddeptcd"/>
  200. <Cell col="18" text="bind:orddd"/>
  201. <Cell col="19" text="bind:excuroomcd"/>
  202. <Cell col="20" text="bind:orddrid"/>
  203. <Cell col="21" text="bind:prcpgenrflag"/>
  204. <Cell col="22" text="bind:basesuppdeptcd"/>
  205. <Cell col="23" text="bind:prcpdelivefact"/>
  206. <Cell col="24" text="bind:prcpexecdeptcd"/>
  207. <Cell col="25" text="bind:rsrvrem"/>
  208. <Cell col="26" text="bind:execrem"/>
  209. <Cell col="27" text="bind:rsrvdt"/>
  210. <Cell col="28" text="bind:cretno"/>
  211. <Cell col="29" text="bind:excupartcd"/>
  212. <Cell col="30" text="bind:ioflag"/>
  213. <Cell col="31" text="bind:issdept"/>
  214. <Cell col="32" text="bind:tmpldata"/>
  215. <Cell col="33" text="bind:rgstrid"/>
  216. <Cell col="34" text="bind:inflag"/>
  217. <Cell col="35" text="bind:execbaseflag"/>
  218. <Cell col="36" text="bind:aftrcptinfo"/>
  219. <Cell col="37" text="bind:rsrvtmplcd"/>
  220. <Cell col="38" text="bind:rsrvmultitmplcd"/>
  221. <Cell col="39" text="bind:emryn"/>
  222. <Cell col="40" text="bind:bf_srchrsrvtm"/>
  223. <Cell col="41" text="bind:execdd"/>
  224. </Band>
  225. </Format>
  226. </Formats>
  227. </Grid>
  228. </Layout>
  229. </Layouts>
  230. </Tabpage>
  231. <Tabpage text="예약" position="absolute 0 0 493 638" id="case1" scrollbars="none">
  232. <Layouts>
  233. <Layout>
  234. <Shape position="absolute 4 7 488 13" linetype="horizontal" id="line3" class="line_10" anchor="default"/>
  235. <Grid position="absolute 4 12 488 516" id="grd_mainordlist1" binddataset="ds_grd_mainordlist1" oncellclick="group3_switch1_case1_grd_mainordlist1_oncellclick" cellsizingtype="col" anchor="all" selecttype="multirow" onlbuttonup="group3_switch1_case1_grd_mainordlist1_onlbuttonup" onrbuttonup="group3_switch1_case1_grd_mainordlist1_onrbuttonup">
  236. <Formats>
  237. <Format id="default">
  238. <Columns>
  239. <Column size="25" band="left"/>
  240. <Column size="32" band="left"/>
  241. <Column size="58"/>
  242. <Column size="55"/>
  243. <Column size="62"/>
  244. <Column size="48"/>
  245. <Column size="36"/>
  246. <Column size="176"/>
  247. <Column size="0"/>
  248. <Column size="80"/>
  249. <Column size="50"/>
  250. <Column size="34"/>
  251. <Column size="39"/>
  252. <Column size="0"/>
  253. <Column size="0"/>
  254. <Column size="0"/>
  255. <Column size="0"/>
  256. <Column size="0"/>
  257. <Column size="0"/>
  258. <Column size="0"/>
  259. <Column size="0"/>
  260. <Column size="0"/>
  261. <Column size="0"/>
  262. <Column size="0"/>
  263. <Column size="0"/>
  264. <Column size="0"/>
  265. <Column size="0"/>
  266. <Column size="0"/>
  267. <Column size="0"/>
  268. <Column size="0"/>
  269. <Column size="0"/>
  270. <Column size="0"/>
  271. <Column size="0"/>
  272. <Column size="0"/>
  273. <Column size="0"/>
  274. <Column size="0"/>
  275. <Column size="0"/>
  276. <Column size="0"/>
  277. <Column size="0"/>
  278. <Column size="0"/>
  279. <Column size="0"/>
  280. <Column size="0"/>
  281. <Column size="0"/>
  282. <Column size="0"/>
  283. <Column size="0"/>
  284. <Column size="0"/>
  285. <Column size="0"/>
  286. <Column size="0"/>
  287. <Column size="0"/>
  288. <Column size="0"/>
  289. <Column size="0"/>
  290. <Column size="0"/>
  291. <Column size="0"/>
  292. <Column size="0"/>
  293. <Column size="0"/>
  294. <Column size="0"/>
  295. <Column size="0"/>
  296. <Column size="0"/>
  297. <Column size="0"/>
  298. <Column size="0"/>
  299. <Column size="0"/>
  300. <Column size="0"/>
  301. <Column size="0"/>
  302. <Column size="0"/>
  303. <Column size="0"/>
  304. <Column size="0"/>
  305. <Column size="0"/>
  306. <Column size="0"/>
  307. <Column size="0"/>
  308. </Columns>
  309. <Rows>
  310. <Row size="24" band="head"/>
  311. <Row size="24"/>
  312. </Rows>
  313. <Band id="head">
  314. <Cell/>
  315. <Cell col="1" text="접수"/>
  316. <Cell col="2" text="실배정"/>
  317. <Cell col="3" text="예약시간"/>
  318. <Cell col="4" text="등록번호"/>
  319. <Cell col="5" text="환자명"/>
  320. <Cell col="6" text="S/A"/>
  321. <Cell col="7" text="검사"/>
  322. <Cell col="8" text="검사"/>
  323. <Cell col="9" text="진료과"/>
  324. <Cell col="10" text="진료의"/>
  325. <Cell col="11" text="구분"/>
  326. <Cell col="12" text="수납"/>
  327. <Cell col="13" text="선택진료"/>
  328. <Cell col="14" text="지정의"/>
  329. <Cell col="15" text="prcpdd"/>
  330. <Cell col="16" text="prcpkindcd"/>
  331. <Cell col="17" text="prcpgenrflag"/>
  332. <Cell col="18" text="excupartcd"/>
  333. <Cell col="19" text="prcphopedt"/>
  334. <Cell col="20" text="execprcpuniqno"/>
  335. <Cell col="21" text="prcpexecdeptcd"/>
  336. <Cell col="22" text="rgstdeptcd"/>
  337. <Cell col="23" text="rgstrid"/>
  338. <Cell col="24" text="portprcpflag"/>
  339. <Cell col="25" text="inflag"/>
  340. <Cell col="26" text="execbaseflag"/>
  341. <Cell col="27" text="lrgcd"/>
  342. <Cell col="28" text="mdlcd"/>
  343. <Cell col="29" text="modality"/>
  344. <Cell col="30" text="pacsnocretyn"/>
  345. <Cell col="31" text="prcpdelivefact"/>
  346. <Cell col="32" text="orddepthngnm"/>
  347. <Cell col="33" text="orddd"/>
  348. <Cell col="34" text="orddeptcd"/>
  349. <Cell col="35" text="patnm"/>
  350. <Cell col="36" text="orddrid"/>
  351. <Cell col="37" text="execprcpstatcd"/>
  352. <Cell col="38" text="eqmtifyn"/>
  353. <Cell col="39" text="basesuppdeptcd"/>
  354. <Cell col="40" text="rsrvdt"/>
  355. <Cell col="41" text="cretno"/>
  356. <Cell col="42" text="rsrvrem"/>
  357. <Cell col="43" text="acptrem"/>
  358. <Cell col="44" text="inclprcpcd"/>
  359. <Cell col="45" text="lrgcd"/>
  360. <Cell col="46" text="mdlcd"/>
  361. <Cell col="47" text="actorddd"/>
  362. <Cell col="48" text="examroomnm"/>
  363. <Cell col="49" text="excupartnm"/>
  364. <Cell col="50" text="roomcd"/>
  365. <Cell col="51" text="wardcd"/>
  366. <Cell col="52" text="root"/>
  367. <Cell col="53" text="prcphistno"/>
  368. <Cell col="54" text="ioflag"/>
  369. <Cell col="55" text="issdept"/>
  370. <Cell col="56" text="caption1"/>
  371. <Cell col="57" text="caption2"/>
  372. <Cell col="58" text="caption3"/>
  373. <Cell col="59" text="caption4"/>
  374. <Cell col="60" text="age"/>
  375. <Cell col="61" text="rcptacptyn"/>
  376. <Cell col="62" text="rcptrsrvyn"/>
  377. <Cell col="63" text="aftrcptinfo"/>
  378. <Cell col="64" text="caption5"/>
  379. <Cell col="65" text="caption6"/>
  380. <Cell col="66" text="caption7"/>
  381. <Cell col="67" text="caption8"/>
  382. <Cell col="68"/>
  383. </Band>
  384. <Band id="body">
  385. <Cell celltype="head" text="expr:currow+1"/>
  386. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check" expr="check =='Y'||check=='1'?1:0"/>
  387. <Cell col="2" displaytype="combo" edittype="combo" style="padding:1 2 1 2;" text="bind:excuroomcd" combodataset="ds_init_cmb_excuroom" combocodecol="excuroomcdid" combodatacol="excuroomcdnm" enable="true"/>
  388. <Cell col="3" displaytype="date" text="bind:rsrvtm" mask="HH:mm" calendardisplaynulltype="nulltext"/>
  389. <Cell col="4" style="color:EXPR(vipflag == 'Y' ? '#FF9A00' : '');color2:EXPR(vipflag == 'Y' ? '#FF9A00' : '');" text="bind:pid"/>
  390. <Cell col="5" style="align:left;" text="bind:hngnm"/>
  391. <Cell col="6" text="bind:sna"/>
  392. <Cell col="7" style="align:left;" text="bind:prcpnm"/>
  393. <Cell col="8" text="bind:calcscorcd"/>
  394. <Cell col="9" displaytype="text" text="bind:orddepthngnm"/>
  395. <Cell col="10" text="bind:orddrnm"/>
  396. <Cell col="11" text="bind:genrflag"/>
  397. <Cell col="12" text="bind:rcptyn"/>
  398. <Cell col="13" text="bind:choiordflag"/>
  399. <Cell col="14" text="bind:specdrnm"/>
  400. <Cell col="15" text="bind:prcpdd"/>
  401. <Cell col="16" text="bind:prcpkindcd"/>
  402. <Cell col="17" text="bind:prcpgenrflag"/>
  403. <Cell col="18" text="bind:excupartnm"/>
  404. <Cell col="19" text="bind:prcphopedt"/>
  405. <Cell col="20" text="bind:execprcpuniqno"/>
  406. <Cell col="21" text="bind:prcpexecdeptcd"/>
  407. <Cell col="22" text="bind:rgstdeptcd"/>
  408. <Cell col="23" text="bind:rgstrid"/>
  409. <Cell col="24" text="bind:portprcpflag"/>
  410. <Cell col="25" text="bind:inflag"/>
  411. <Cell col="26" text="bind:execbaseflag"/>
  412. <Cell col="27" text="bind:lrgcd"/>
  413. <Cell col="28" text="bind:mdlcd"/>
  414. <Cell col="29" text="bind:modality"/>
  415. <Cell col="30" text="bind:pacsnocretyn"/>
  416. <Cell col="31" text="bind:prcpdelivefact"/>
  417. <Cell col="32" text="bind:orddepthngnm"/>
  418. <Cell col="33" text="bind:orddd"/>
  419. <Cell col="34" text="bind:orddeptcd"/>
  420. <Cell col="35" text="bind:patnm"/>
  421. <Cell col="36" text="bind:orddrid"/>
  422. <Cell col="37" text="bind:execprcpstatcd"/>
  423. <Cell col="38" text="bind:eqmtifyn"/>
  424. <Cell col="39" text="bind:basesuppdeptcd"/>
  425. <Cell col="40" text="bind:rsrvdt"/>
  426. <Cell col="41" text="bind:cretno"/>
  427. <Cell col="42" text="bind:rsrvrem"/>
  428. <Cell col="43" text="bind:acptrem"/>
  429. <Cell col="44" text="bind:inclprcpcd"/>
  430. <Cell col="45" text="bind:lrgcd"/>
  431. <Cell col="46" text="bind:mdlcd"/>
  432. <Cell col="47" text="bind:actorddd"/>
  433. <Cell col="48" text="bind:excupartcd"/>
  434. <Cell col="49" text="bind:roomcd"/>
  435. <Cell col="50" text="bind:wardcd"/>
  436. <Cell col="51" text="bind:root"/>
  437. <Cell col="52" text="bind:prcphistno"/>
  438. <Cell col="53" text="bind:ioflag"/>
  439. <Cell col="54" text="bind:issdept"/>
  440. <Cell col="55" text="bind:tmpldata"/>
  441. <Cell col="56" text="bind:prcpnm"/>
  442. <Cell col="57" text="bind:prcpno"/>
  443. <Cell col="58" text="bind:cdisexamroomnm"/>
  444. <Cell col="59" text="bind:cdisexcuroomcd"/>
  445. <Cell col="60" text="bind:age"/>
  446. <Cell col="61" text="bind:rcptrsrvyn"/>
  447. <Cell col="62" text="bind:rcptacptyn"/>
  448. <Cell col="63" text="bind:aftrcptinfo"/>
  449. <Cell col="64" text="bind:rsrvtmplcd"/>
  450. <Cell col="65" text="bind:rsrvmultitmplcd"/>
  451. <Cell col="66" text="bind:emryn"/>
  452. <Cell col="67" text="bind:bf_srchrsrvtm"/>
  453. <Cell col="68" text="bind:execdd"/>
  454. </Band>
  455. </Format>
  456. </Formats>
  457. </Grid>
  458. <ActiveX position="absolute 300 295 420 390" id="rtfviewer" progid="{a4bf7e18-5f67-4868-a726-eed421632374}" visible="false" anchor="default"/>
  459. </Layout>
  460. </Layouts>
  461. </Tabpage>
  462. <Tabpage text="접수" id="case2" scrollbars="none">
  463. <Layouts>
  464. <Layout>
  465. <Grid position="absolute 4 12 488 516" id="grd_mainordlist2" binddataset="ds_grd_mainordlist2" oncellclick="group3_switch1_case2_grd_mainordlist2_oncellclick" cellsizingtype="col" anchor="all" selecttype="multirow" onrbuttonup="group3_switch1_case2_grd_mainordlist2_onrbuttonup">
  466. <Formats>
  467. <Format id="default">
  468. <Columns>
  469. <Column size="25" band="left"/>
  470. <Column size="32" band="left"/>
  471. <Column size="58"/>
  472. <Column size="55"/>
  473. <Column size="60"/>
  474. <Column size="48"/>
  475. <Column size="45"/>
  476. <Column size="40"/>
  477. <Column size="199"/>
  478. <Column size="0"/>
  479. <Column size="80"/>
  480. <Column size="50"/>
  481. <Column size="36"/>
  482. <Column size="36"/>
  483. <Column size="0"/>
  484. <Column size="0"/>
  485. <Column size="78"/>
  486. <Column size="0"/>
  487. <Column size="0"/>
  488. <Column size="0"/>
  489. <Column size="0"/>
  490. <Column size="0"/>
  491. <Column size="0"/>
  492. <Column size="0"/>
  493. <Column size="0"/>
  494. <Column size="0"/>
  495. <Column size="0"/>
  496. <Column size="0"/>
  497. <Column size="0"/>
  498. <Column size="0"/>
  499. <Column size="0"/>
  500. <Column size="0"/>
  501. <Column size="0"/>
  502. <Column size="0"/>
  503. <Column size="0"/>
  504. <Column size="0"/>
  505. <Column size="0"/>
  506. <Column size="0"/>
  507. <Column size="0"/>
  508. <Column size="0"/>
  509. <Column size="0"/>
  510. <Column size="0"/>
  511. <Column size="0"/>
  512. <Column size="0"/>
  513. <Column size="0"/>
  514. <Column size="0"/>
  515. <Column size="0"/>
  516. <Column size="0"/>
  517. <Column size="0"/>
  518. <Column size="0"/>
  519. <Column size="0"/>
  520. <Column size="0"/>
  521. <Column size="0"/>
  522. <Column size="0"/>
  523. <Column size="0"/>
  524. <Column size="0"/>
  525. <Column size="0"/>
  526. <Column size="0"/>
  527. <Column size="0"/>
  528. <Column size="0"/>
  529. <Column size="0"/>
  530. </Columns>
  531. <Rows>
  532. <Row size="24" band="head"/>
  533. <Row size="24"/>
  534. </Rows>
  535. <Band id="head">
  536. <Cell/>
  537. <Cell col="1" text="접수"/>
  538. <Cell col="2" text="실배정"/>
  539. <Cell col="3" text="예약시간"/>
  540. <Cell col="4" text="등록번호"/>
  541. <Cell col="5" text="환자명"/>
  542. <Cell col="6" text="S/A"/>
  543. <Cell col="7" text="진정"/>
  544. <Cell col="8" text="검사"/>
  545. <Cell col="9" text="검사"/>
  546. <Cell col="10" text="진료과"/>
  547. <Cell col="11" text="진료의"/>
  548. <Cell col="12" text="구분"/>
  549. <Cell col="13" text="수납"/>
  550. <Cell col="14" text="선택진료"/>
  551. <Cell col="15" text="지정의"/>
  552. <Cell col="16" text="검사의"/>
  553. <Cell col="17" text="prcpdelivefact"/>
  554. <Cell col="18" text="rsrvrem"/>
  555. <Cell col="19" text="excupartcd"/>
  556. <Cell col="20" text="prcpdd"/>
  557. <Cell col="21" text="prcpkindcd"/>
  558. <Cell col="22" text="prcpgenrflag"/>
  559. <Cell col="23" text="prcphopedt"/>
  560. <Cell col="24" text="execprcpuniqno"/>
  561. <Cell col="25" text="prcpexecdeptcd"/>
  562. <Cell col="26" text="rgstdeptcd"/>
  563. <Cell col="27" text="rgstrid"/>
  564. <Cell col="28" text="portprcpflag"/>
  565. <Cell col="29" text="inflag"/>
  566. <Cell col="30" text="rcptacptyn"/>
  567. <Cell col="31" text="execbaseflag"/>
  568. <Cell col="32" text="lrgcd"/>
  569. <Cell col="33" text="mdlcd"/>
  570. <Cell col="34" text="modality"/>
  571. <Cell col="35" text="pacsnocretyn"/>
  572. <Cell col="36" text="orddepthngnm"/>
  573. <Cell col="37" text="orddd"/>
  574. <Cell col="38" text="orddeptcd"/>
  575. <Cell col="39" text="orddrid"/>
  576. <Cell col="40" text="execprcpstatcd"/>
  577. <Cell col="41" text="eqmtifyn"/>
  578. <Cell col="42" text="basesuppdeptcd"/>
  579. <Cell col="43" text="cretno"/>
  580. <Cell col="44" text="inclprcpcd"/>
  581. <Cell col="45" text="rsrvdd"/>
  582. <Cell col="46" text="acptrem"/>
  583. <Cell col="47" text="excupartnm"/>
  584. <Cell col="48" text="ioflag"/>
  585. <Cell col="49" text="issdept"/>
  586. <Cell col="50" text="carecnfmdd"/>
  587. <Cell col="51" text="rcptdd"/>
  588. <Cell col="52" text="prcpno"/>
  589. <Cell col="53" text="age"/>
  590. <Cell col="54" text="caption1"/>
  591. <Cell col="55" text="caption2"/>
  592. <Cell col="56" text="cnclresncd"/>
  593. <Cell col="57" text="aftrcptinfo"/>
  594. <Cell col="58" text="caption3"/>
  595. <Cell col="59" text="caption4"/>
  596. <Cell col="60"/>
  597. </Band>
  598. <Band id="body">
  599. <Cell celltype="head" text="expr:currow+1"/>
  600. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check" expr="expr:check == 'Y' || check == '1'?1:0"/>
  601. <Cell col="2" displaytype="combo" edittype="combo" style="padding:1 2 1 2;" text="bind:excuroomcd" combodataset="ds_init_cmb_excuroom" combocodecol="excuroomcdid" combodatacol="excuroomcdnm" enable="true"/>
  602. <Cell col="3" displaytype="date" text="bind:rsrvtm" mask="HH:mm" calendardisplaynulltype="nulltext"/>
  603. <Cell col="4" style="color:EXPR(vipflag == 'Y' ? '#FF9A00' : '');color2:EXPR(vipflag == 'Y' ? '#FF9A00' : '');" text="bind:pid"/>
  604. <Cell col="5" style="align:left;" text="bind:hngnm"/>
  605. <Cell col="6" text="bind:sna"/>
  606. <Cell col="7" text="bind:sedyn"/>
  607. <Cell col="8" style="align:left;" text="bind:prcpnm"/>
  608. <Cell col="9" text="bind:calcscorcd"/>
  609. <Cell col="10" displaytype="text" text="bind:orddepthngnm"/>
  610. <Cell col="11" text="bind:orddrnm"/>
  611. <Cell col="12" text="bind:genrflag"/>
  612. <Cell col="13" text="bind:rcptyn"/>
  613. <Cell col="14" text="bind:choiordflag"/>
  614. <Cell col="15" displaytype="combo" edittype="combo" text="bind:specdrid" enable="true"/>
  615. <Cell col="16" text="bind:orddrnm"/>
  616. <Cell col="17" text="bind:prcpdelivefact"/>
  617. <Cell col="18" text="bind:rsrvrem"/>
  618. <Cell col="19" text="bind:excupartnm"/>
  619. <Cell col="20" text="bind:prcpdd"/>
  620. <Cell col="21" text="bind:prcpkindcd"/>
  621. <Cell col="22" text="bind:prcpgenrflag"/>
  622. <Cell col="23" text="bind:prcphopedt"/>
  623. <Cell col="24" text="bind:execprcpuniqno"/>
  624. <Cell col="25" text="bind:prcpexecdeptcd"/>
  625. <Cell col="26" text="bind:rgstdeptcd"/>
  626. <Cell col="27" text="bind:rgstrid"/>
  627. <Cell col="28" text="bind:portprcpflag"/>
  628. <Cell col="29" text="bind:inflag"/>
  629. <Cell col="30" text="bind:rcptacptyn"/>
  630. <Cell col="31" text="bind:execbaseflag"/>
  631. <Cell col="32" text="bind:lrgcd"/>
  632. <Cell col="33" text="bind:mdlcd"/>
  633. <Cell col="34" text="bind:modality"/>
  634. <Cell col="35" text="bind:pacsnocretyn"/>
  635. <Cell col="36" text="bind:orddepthngnm"/>
  636. <Cell col="37" text="bind:orddd"/>
  637. <Cell col="38" text="bind:orddeptcd"/>
  638. <Cell col="39" text="bind:orddrid"/>
  639. <Cell col="40" text="bind:execprcpstatcd"/>
  640. <Cell col="41" text="bind:eqmtifyn"/>
  641. <Cell col="42" text="bind:basesuppdeptcd"/>
  642. <Cell col="43" text="bind:cretno"/>
  643. <Cell col="44" text="bind:inclprcpcd"/>
  644. <Cell col="45" text="bind:rsrvdd"/>
  645. <Cell col="46" text="bind:acptrem"/>
  646. <Cell col="47" text="bind:excupartcd"/>
  647. <Cell col="48" text="bind:ioflag"/>
  648. <Cell col="49" text="bind:issdept"/>
  649. <Cell col="50" text="bind:carecnfmdd"/>
  650. <Cell col="51" text="bind:rcptdd"/>
  651. <Cell col="52" text="bind:prcpno"/>
  652. <Cell col="53" text="bind:age"/>
  653. <Cell col="54" text="bind:rcptrsrvyn"/>
  654. <Cell col="55" text="bind:rcptacptyn"/>
  655. <Cell col="56" text="bind:cnclresncd"/>
  656. <Cell col="57" text="bind:aftrcptinfo"/>
  657. <Cell col="58" text="bind:emryn"/>
  658. <Cell col="59" text="bind:bf_srchrsrvtm"/>
  659. <Cell col="60" text="bind:execdd"/>
  660. </Band>
  661. </Format>
  662. </Formats>
  663. </Grid>
  664. <Shape position="absolute 4 7 488 13" linetype="horizontal" id="line6" class="line_10" anchor="default"/>
  665. </Layout>
  666. </Layouts>
  667. </Tabpage>
  668. <Tabpage text="결과" id="case3" scrollbars="none">
  669. <Layouts>
  670. <Layout>
  671. <Grid position="absolute 4 12 488 516" id="grd_mainordlist3" binddataset="ds_grd_mainordlist3" oncellclick="group3_switch1_case3_grd_mainordlist3_oncellclick" cellsizingtype="col" anchor="all" selecttype="multirow" onrbuttonup="group3_switch1_case3_grd_mainordlist3_onrbuttonup">
  672. <Formats>
  673. <Format id="default">
  674. <Columns>
  675. <Column size="25" band="left"/>
  676. <Column size="32" band="left"/>
  677. <Column size="60"/>
  678. <Column size="55"/>
  679. <Column size="60"/>
  680. <Column size="48"/>
  681. <Column size="40"/>
  682. <Column size="40"/>
  683. <Column size="200"/>
  684. <Column size="0"/>
  685. <Column size="37"/>
  686. <Column size="31"/>
  687. <Column size="0"/>
  688. <Column size="0"/>
  689. <Column size="72"/>
  690. <Column size="70"/>
  691. <Column size="0"/>
  692. <Column size="0"/>
  693. <Column size="0"/>
  694. <Column size="0"/>
  695. <Column size="0"/>
  696. <Column size="0"/>
  697. <Column size="0"/>
  698. <Column size="0"/>
  699. <Column size="0"/>
  700. <Column size="0"/>
  701. <Column size="0"/>
  702. <Column size="0"/>
  703. <Column size="0"/>
  704. <Column size="0"/>
  705. <Column size="0"/>
  706. <Column size="0"/>
  707. <Column size="0"/>
  708. <Column size="0"/>
  709. <Column size="0"/>
  710. <Column size="0"/>
  711. <Column size="0"/>
  712. <Column size="0"/>
  713. <Column size="0"/>
  714. <Column size="0"/>
  715. <Column size="0"/>
  716. </Columns>
  717. <Rows>
  718. <Row size="24" band="head"/>
  719. <Row size="24"/>
  720. </Rows>
  721. <Band id="head">
  722. <Cell/>
  723. <Cell col="1" text="접수"/>
  724. <Cell col="2" text="실배정"/>
  725. <Cell col="3" text="예약시간"/>
  726. <Cell col="4" text="등록번호"/>
  727. <Cell col="5" text="환자명"/>
  728. <Cell col="6" text="S/A"/>
  729. <Cell col="7" text="진정"/>
  730. <Cell col="8" text="검사"/>
  731. <Cell col="9" text="검사"/>
  732. <Cell col="10" text="구분"/>
  733. <Cell col="11" text="수납"/>
  734. <Cell col="12" text="선택진료"/>
  735. <Cell col="13" text="지정의"/>
  736. <Cell col="14" text="검사의"/>
  737. <Cell col="15" text="판독의"/>
  738. <Cell col="16" text="execprcpuniqno"/>
  739. <Cell col="17" text="excupartcd"/>
  740. <Cell col="18" text="cretno"/>
  741. <Cell col="19" text="prcpexecdeptcd"/>
  742. <Cell col="20" text="cretno"/>
  743. <Cell col="21" text="prcpdd"/>
  744. <Cell col="22" text="orddd"/>
  745. <Cell col="23" text="acptrem"/>
  746. <Cell col="24" text="prcpdelivefact"/>
  747. <Cell col="25" text="rsrvrem"/>
  748. <Cell col="26" text="rsrvdd"/>
  749. <Cell col="27" text="excupartnm"/>
  750. <Cell col="28" text="ioflag"/>
  751. <Cell col="29" text="issdept"/>
  752. <Cell col="30" text="age"/>
  753. <Cell col="31" text="caption1"/>
  754. <Cell col="32" text="rcptacptyn"/>
  755. <Cell col="33" text="orddrid"/>
  756. <Cell col="34" text="orddeptcd"/>
  757. <Cell col="35" text="prcpgenrflag"/>
  758. <Cell col="36" text="aftrcptinfo"/>
  759. <Cell col="37" text="basesuppdeptcd"/>
  760. <Cell col="38" text="caption2"/>
  761. <Cell col="39" text="caption3"/>
  762. <Cell col="40"/>
  763. </Band>
  764. <Band id="body">
  765. <Cell celltype="head" text="expr:currow+1"/>
  766. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check" expr="expr:check == 'Y' || check == '1'?1:0"/>
  767. <Cell col="2" displaytype="combo" edittype="combo" style="padding:1 2 1 2;" text="bind:excuroomcd" combodataset="ds_init_cmb_excuroom" combocodecol="excuroomcdid" combodatacol="excuroomcdnm" enable="true"/>
  768. <Cell col="3" displaytype="date" text="bind:rsrvtm" mask="HH:mm" calendardisplaynulltype="nulltext"/>
  769. <Cell col="4" style="color:EXPR(vipflag == 'Y' ? '#FF9A00' : '');color2:EXPR(vipflag == 'Y' ? '#FF9A00' : '');" text="bind:pid"/>
  770. <Cell col="5" style="align:left;" text="bind:hngnm"/>
  771. <Cell col="6" text="bind:sna"/>
  772. <Cell col="7" text="bind:sedyn"/>
  773. <Cell col="8" style="align:left;" text="bind:prcpnm"/>
  774. <Cell col="9" text="bind:calcscorcd"/>
  775. <Cell col="10" text="bind:genrflag"/>
  776. <Cell col="11" text="bind:rcptyn"/>
  777. <Cell col="12" text="bind:choiordflag"/>
  778. <Cell col="13" text="bind:specdrnm"/>
  779. <Cell col="14" text="bind:opdrnm"/>
  780. <Cell col="15" text="bind:cnfmmannm"/>
  781. <Cell col="16" text="bind:execprcpuniqno"/>
  782. <Cell col="17" text="bind:excupartnm"/>
  783. <Cell col="18" text="bind:cretno"/>
  784. <Cell col="19" text="bind:prcpexecdeptcd"/>
  785. <Cell col="20" text="bind:execprcpstatcd"/>
  786. <Cell col="21" text="bind:prcpdd"/>
  787. <Cell col="22" text="bind:orddd"/>
  788. <Cell col="23" text="bind:acptrem"/>
  789. <Cell col="24" text="bind:prcpdelivefact"/>
  790. <Cell col="25" text="bind:rsrvrem"/>
  791. <Cell col="26" text="bind:rsrvdd"/>
  792. <Cell col="27" text="bind:excupartcd"/>
  793. <Cell col="28" text="bind:ioflag"/>
  794. <Cell col="29" text="bind:issdept"/>
  795. <Cell col="30" text="bind:age"/>
  796. <Cell col="31" text="bind:rcptrsrvyn"/>
  797. <Cell col="32" text="bind:rcptacptyn"/>
  798. <Cell col="33" text="bind:orddrid"/>
  799. <Cell col="34" text="bind:orddeptcd"/>
  800. <Cell col="35" text="bind:prcpgenrflag"/>
  801. <Cell col="36" text="bind:aftrcptinfo"/>
  802. <Cell col="37" text="bind:basesuppdeptcd"/>
  803. <Cell col="38" text="bind:emryn"/>
  804. <Cell col="39" text="bind:bf_srchrsrvtm"/>
  805. <Cell col="40" text="bind:execdd"/>
  806. </Band>
  807. </Format>
  808. </Formats>
  809. </Grid>
  810. <Shape position="absolute 4 7 488 13" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
  811. </Layout>
  812. </Layouts>
  813. </Tabpage>
  814. <Tabpage text="전체" position="absolute 0 0 493 638" id="case4" scrollbars="none">
  815. <Layouts>
  816. <Layout>
  817. <Shape position="absolute 4 7 488 13" linetype="horizontal" id="line2" class="line_10" anchor="default"/>
  818. <Grid position="absolute 4 12 488 516" id="grd_mainordlist4" binddataset="ds_grd_mainordlist4" oncellclick="group3_switch1_case4_grd_mainordlist4_oncellclick" cellsizingtype="col" anchor="all" selecttype="multirow" onrbuttonup="group3_switch1_case4_grd_mainordlist4_onrbuttonup">
  819. <Formats>
  820. <Format id="default">
  821. <Columns>
  822. <Column size="25" band="left"/>
  823. <Column size="60"/>
  824. <Column size="55"/>
  825. <Column size="55"/>
  826. <Column size="60"/>
  827. <Column size="48"/>
  828. <Column size="41"/>
  829. <Column size="40"/>
  830. <Column size="200"/>
  831. <Column size="0"/>
  832. <Column size="33"/>
  833. <Column size="35"/>
  834. <Column size="0"/>
  835. <Column size="0"/>
  836. <Column size="72"/>
  837. <Column size="69"/>
  838. <Column size="0"/>
  839. <Column size="100"/>
  840. <Column size="0"/>
  841. <Column size="0"/>
  842. <Column size="0"/>
  843. <Column size="0"/>
  844. <Column size="0"/>
  845. <Column size="100"/>
  846. <Column size="100"/>
  847. <Column size="0"/>
  848. <Column size="0"/>
  849. <Column size="0"/>
  850. <Column size="0"/>
  851. <Column size="0"/>
  852. <Column size="0"/>
  853. <Column size="0"/>
  854. <Column size="0"/>
  855. <Column size="0"/>
  856. <Column size="0"/>
  857. <Column size="0"/>
  858. <Column size="100"/>
  859. <Column size="0"/>
  860. <Column size="0"/>
  861. <Column size="0"/>
  862. <Column size="0"/>
  863. <Column size="0"/>
  864. </Columns>
  865. <Rows>
  866. <Row size="24" band="head"/>
  867. <Row size="24"/>
  868. </Rows>
  869. <Band id="head">
  870. <Cell/>
  871. <Cell col="1" text="상태"/>
  872. <Cell col="2" text="실배정"/>
  873. <Cell col="3" text="예약시간"/>
  874. <Cell col="4" text="등록번호"/>
  875. <Cell col="5" text="환자명"/>
  876. <Cell col="6" text="S/A"/>
  877. <Cell col="7" text="진정"/>
  878. <Cell col="8" text="검사"/>
  879. <Cell col="9" text="검사"/>
  880. <Cell col="10" text="구분"/>
  881. <Cell col="11" text="수납"/>
  882. <Cell col="12" text="선택진료"/>
  883. <Cell col="13" text="지정의"/>
  884. <Cell col="14" text="검사의"/>
  885. <Cell col="15" text="판독의"/>
  886. <Cell col="16" text="basesuppdeptcd"/>
  887. <Cell col="17" text="excupartcd"/>
  888. <Cell col="18" text="cretno"/>
  889. <Cell col="19" text="prcpexecdeptcd"/>
  890. <Cell col="20" text="rsrvdd"/>
  891. <Cell col="21" text="excupartnm"/>
  892. <Cell col="22" text="ioflag"/>
  893. <Cell col="23" text="issdeptcd"/>
  894. <Cell col="24" text="age"/>
  895. <Cell col="25" text="prcpgenrflag"/>
  896. <Cell col="26" text="rsrvdt"/>
  897. <Cell col="27" text="excuroomcd"/>
  898. <Cell col="28" text="rsrvrem"/>
  899. <Cell col="29" text="execprcpuniqno"/>
  900. <Cell col="30" text="prcpdd"/>
  901. <Cell col="31" text="rsrvdt"/>
  902. <Cell col="32" text="orddrid"/>
  903. <Cell col="33" text="위치"/>
  904. <Cell col="34" text="orddeptcd"/>
  905. <Cell col="35" text="orddd"/>
  906. <Cell col="36" text="aftrcptinfo"/>
  907. <Cell col="37" text="caption1"/>
  908. <Cell col="38" text="caption2"/>
  909. <Cell col="39" text="specdrid"/>
  910. <Cell col="40" text="caption3"/>
  911. <Cell col="41" text="excupartnm"/>
  912. </Band>
  913. <Band id="body">
  914. <Cell celltype="head" text="expr:currow+1"/>
  915. <Cell col="1" displaytype="combo" edittype="none" text="bind:execprcpstatcd" combodataset="ds_init_M0011" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  916. <Cell col="2" displaytype="combo" edittype="combo" style="padding:1 2 1 2;" text="bind:excuroomcd" combodataset="ds_init_cmb_excuroom" combocodecol="excuroomcdid" combodatacol="excuroomcdnm" enable="false"/>
  917. <Cell col="3" displaytype="date" text="bind:rsrvtm" mask="HH:mm"/>
  918. <Cell col="4" style="color:EXPR(vipflag == 'Y' ? '#FF9A00' : '');color2:EXPR(vipflag == 'Y' ? '#FF9A00' : '');" text="bind:pid"/>
  919. <Cell col="5" style="align:left;" text="bind:hngnm"/>
  920. <Cell col="6" text="bind:sna"/>
  921. <Cell col="7" text="bind:sedyn"/>
  922. <Cell col="8" style="align:left;" text="bind:prcpnm"/>
  923. <Cell col="9" text="bind:calcscorcd"/>
  924. <Cell col="10" text="bind:genrflag"/>
  925. <Cell col="11" text="bind:rcptyn"/>
  926. <Cell col="12" text="bind:choiordflag"/>
  927. <Cell col="13" text="bind:specdrnm"/>
  928. <Cell col="14" text="bind:orddrnm"/>
  929. <Cell col="15" text="bind:cnfmmannm"/>
  930. <Cell col="16" text="bind:basesuppdeptcd"/>
  931. <Cell col="17" text="bind:excupartnm"/>
  932. <Cell col="18" text="bind:cretno"/>
  933. <Cell col="19" text="bind:prcpexecdeptcd"/>
  934. <Cell col="20" text="bind:rsrvdd"/>
  935. <Cell col="21" text="bind:excupartcd"/>
  936. <Cell col="22" text="bind:ioflag"/>
  937. <Cell col="23" text="bind:issdept"/>
  938. <Cell col="24" text="bind:age"/>
  939. <Cell col="25" text="bind:prcpgenrflag"/>
  940. <Cell col="26" text="bind:rsrvdt"/>
  941. <Cell col="27" text="bind:excuroomcd"/>
  942. <Cell col="28" text="bind:rsrvrem"/>
  943. <Cell col="29" text="bind:execprcpuniqno"/>
  944. <Cell col="30" text="bind:prcpdd"/>
  945. <Cell col="31" text="bind:rsrvdt"/>
  946. <Cell col="32" text="bind:orddrid"/>
  947. <Cell col="33" text="bind:statflag"/>
  948. <Cell col="34" text="bind:orddeptcd"/>
  949. <Cell col="35" text="bind:orddd"/>
  950. <Cell col="36" text="bind:pacsnocretyn"/>
  951. <Cell col="37" text="bind:eqmtifyn"/>
  952. <Cell col="38" text="bind:bf_srchrsrvtm"/>
  953. <Cell col="39" text="bind:specdrid"/>
  954. <Cell col="40" text="bind:aftrcptinfo"/>
  955. <Cell col="41" text="bind:execdd"/>
  956. </Band>
  957. </Format>
  958. </Formats>
  959. </Grid>
  960. </Layout>
  961. </Layouts>
  962. </Tabpage>
  963. <Tabpage id="case10" scrollbars="none" enable="false" enableevent="false">
  964. <Layouts>
  965. <Layout>
  966. <Grid position="absolute 4 12 488 512" align="align:center middle;" id="grd_subordlist2" binddataset="ds_grd_subordlist2" oncellclick="group3_switch1_case10_grd_subordlist2_oncellclick" cellsizingtype="col" anchor="all" selecttype="multirow" onrbuttonup="group3_switch1_case10_grd_subordlist2_onrbuttonup">
  967. <Formats>
  968. <Format id="default">
  969. <Columns>
  970. <Column size="25" band="left"/>
  971. <Column size="60"/>
  972. <Column size="55"/>
  973. <Column size="55"/>
  974. <Column size="60"/>
  975. <Column size="48"/>
  976. <Column size="41"/>
  977. <Column size="200"/>
  978. <Column size="0"/>
  979. <Column size="33"/>
  980. <Column size="35"/>
  981. <Column size="80"/>
  982. <Column size="70"/>
  983. <Column size="0"/>
  984. <Column size="0"/>
  985. <Column size="0"/>
  986. <Column size="0"/>
  987. <Column size="0"/>
  988. <Column size="0"/>
  989. <Column size="0"/>
  990. <Column size="0"/>
  991. <Column size="0"/>
  992. <Column size="0"/>
  993. <Column size="0"/>
  994. <Column size="0"/>
  995. <Column size="0"/>
  996. <Column size="0"/>
  997. <Column size="0"/>
  998. <Column size="0"/>
  999. <Column size="0"/>
  1000. <Column size="0"/>
  1001. <Column size="0"/>
  1002. <Column size="0"/>
  1003. <Column size="0"/>
  1004. <Column size="0"/>
  1005. <Column size="0"/>
  1006. <Column size="0"/>
  1007. <Column size="0"/>
  1008. </Columns>
  1009. <Rows>
  1010. <Row size="24" band="head"/>
  1011. <Row size="24"/>
  1012. </Rows>
  1013. <Band id="head">
  1014. <Cell/>
  1015. <Cell col="1" text="상태"/>
  1016. <Cell col="2" text="실배정"/>
  1017. <Cell col="3" text="예약시간"/>
  1018. <Cell col="4" text="등록번호"/>
  1019. <Cell col="5" text="환자명"/>
  1020. <Cell col="6" text="S/A"/>
  1021. <Cell col="7" text="검사"/>
  1022. <Cell col="8" text="검사"/>
  1023. <Cell col="9" text="구분"/>
  1024. <Cell col="10" text="수납"/>
  1025. <Cell col="11" text="진료과"/>
  1026. <Cell col="12" text="진료의"/>
  1027. <Cell col="13" text="판독의"/>
  1028. <Cell col="14" text="basesuppdeptcd"/>
  1029. <Cell col="15" text="excupartcd"/>
  1030. <Cell col="16" text="cretno"/>
  1031. <Cell col="17" text="prcpexecdeptcd"/>
  1032. <Cell col="18" text="rsrvdd"/>
  1033. <Cell col="19" text="excupartnm"/>
  1034. <Cell col="20" text="ioflag"/>
  1035. <Cell col="21" text="issdeptcd"/>
  1036. <Cell col="22" text="age"/>
  1037. <Cell col="23" text="prcpgenrflag"/>
  1038. <Cell col="24" text="rsrvdt"/>
  1039. <Cell col="25" text="excuroomcd"/>
  1040. <Cell col="26" text="rsrvrem"/>
  1041. <Cell col="27" text="execprcpuniqno"/>
  1042. <Cell col="28" text="prcpdd"/>
  1043. <Cell col="29" text="rsrvdt"/>
  1044. <Cell col="30" text="orddrid"/>
  1045. <Cell col="31" text="위치"/>
  1046. <Cell col="32" text="orddeptcd"/>
  1047. <Cell col="33" text="orddd"/>
  1048. <Cell col="34" text="aftrcptinfo"/>
  1049. <Cell col="35" text="caption1"/>
  1050. <Cell col="36" text="caption2"/>
  1051. <Cell col="37" text="excupartnm"/>
  1052. </Band>
  1053. <Band id="body">
  1054. <Cell celltype="head" text="expr:currow+1"/>
  1055. <Cell col="1" displaytype="combo" edittype="none" text="bind:execprcpstatcd" combodataset="ds_init_M0011" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  1056. <Cell col="2" displaytype="combo" edittype="none" style="padding:1 2 1 2;" text="bind:excuroomcd" combodataset="ds_init_cmb_excuroom" combocodecol="excuroomcdid" combodatacol="excuroomcdnm" enable="false"/>
  1057. <Cell col="3" displaytype="date" text="bind:rsrvtm" mask="HH:mm" calendardisplaynulltype="nulltext"/>
  1058. <Cell col="4" style="color:EXPR(vipflag == 'Y' ? '#FF9A00' : '');color2:EXPR(vipflag == 'Y' ? '#FF9A00' : '');" text="bind:pid"/>
  1059. <Cell col="5" text="bind:hngnm"/>
  1060. <Cell col="6" text="bind:sna"/>
  1061. <Cell col="7" text="bind:prcpnm"/>
  1062. <Cell col="8" text="bind:calcscorcd"/>
  1063. <Cell col="9" text="bind:genrflag"/>
  1064. <Cell col="10" text="bind:rcptyn"/>
  1065. <Cell col="11" text="bind:orddepthngnm"/>
  1066. <Cell col="12" text="bind:orddrnm"/>
  1067. <Cell col="13" text="bind:cnfmmannm"/>
  1068. <Cell col="14" text="bind:basesuppdeptcd"/>
  1069. <Cell col="15" text="bind:excupartcd"/>
  1070. <Cell col="16" text="bind:cretno"/>
  1071. <Cell col="17" text="bind:prcpexecdeptcd"/>
  1072. <Cell col="18" text="bind:rsrvdd"/>
  1073. <Cell col="19" text="bind:excupartnm"/>
  1074. <Cell col="20" text="bind:ioflag"/>
  1075. <Cell col="21" text="bind:issdept"/>
  1076. <Cell col="22" text="bind:age"/>
  1077. <Cell col="23" text="bind:prcpgenrflag"/>
  1078. <Cell col="24" text="bind:rsrvdt"/>
  1079. <Cell col="25" text="bind:excuroomcd"/>
  1080. <Cell col="26" text="bind:rsrvrem"/>
  1081. <Cell col="27" text="bind:execprcpuniqno"/>
  1082. <Cell col="28" text="bind:prcpdd"/>
  1083. <Cell col="29" text="bind:rsrvdt"/>
  1084. <Cell col="30" text="bind:orddrid"/>
  1085. <Cell col="31" text="bind:statflag"/>
  1086. <Cell col="32" text="bind:orddeptcd"/>
  1087. <Cell col="33" text="bind:orddd"/>
  1088. <Cell col="34" text="bind:pacsnocretyn"/>
  1089. <Cell col="35" text="bind:eqmtifyn"/>
  1090. <Cell col="36" text="bind:bf_srchrsrvtm"/>
  1091. <Cell col="37" text="bind:execdd"/>
  1092. </Band>
  1093. </Format>
  1094. </Formats>
  1095. </Grid>
  1096. <Shape id="line2" position="absolute 4 7 488 13" class="line_10"/>
  1097. </Layout>
  1098. </Layouts>
  1099. </Tabpage>
  1100. </Tabpages>
  1101. </Tab>
  1102. <Static text="처방상세내역" position="absolute 500 294 600 316" id="caption7" class="tit_2" anchor="default"/>
  1103. <Shape position="absolute 500 310 1188 316" linetype="horizontal" id="line4" class="line_10" anchor="left top right"/>
  1104. <Grid position="absolute 500 315 1188 668" id="grd_subprcplist" binddataset="ds_grd_subprcplist" oncellclick="group3_grd_subprcplist_oncellclick" cellsizingtype="col" selecttype="multirow" anchor="all" onlbuttonup="group3_grd_subprcplist_onlbuttonup" cellclickbound="cell" onrbuttondown="group3_grd_subprcplist_onrbuttondown" onrbuttonup="group3_grd_subprcplist_onrbuttonup">
  1105. <Formats>
  1106. <Format id="default">
  1107. <Columns>
  1108. <Column size="20"/>
  1109. <Column size="58"/>
  1110. <Column size="20"/>
  1111. <Column size="73"/>
  1112. <Column size="200"/>
  1113. <Column size="42"/>
  1114. <Column size="70"/>
  1115. <Column size="70"/>
  1116. <Column size="70"/>
  1117. <Column size="70"/>
  1118. <Column size="30"/>
  1119. <Column size="60"/>
  1120. <Column size="34"/>
  1121. <Column size="33"/>
  1122. <Column size="26"/>
  1123. <Column size="33"/>
  1124. <Column size="0"/>
  1125. <Column size="0"/>
  1126. <Column size="0"/>
  1127. <Column size="0"/>
  1128. <Column size="0"/>
  1129. <Column size="0"/>
  1130. <Column size="0"/>
  1131. <Column size="0"/>
  1132. <Column size="0"/>
  1133. <Column size="0"/>
  1134. <Column size="0"/>
  1135. <Column size="0"/>
  1136. <Column size="0"/>
  1137. <Column size="0"/>
  1138. <Column size="0"/>
  1139. <Column size="0"/>
  1140. <Column size="0"/>
  1141. <Column size="0"/>
  1142. <Column size="0"/>
  1143. <Column size="0"/>
  1144. <Column size="0"/>
  1145. <Column size="0"/>
  1146. <Column size="0"/>
  1147. <Column size="0"/>
  1148. <Column size="0"/>
  1149. <Column size="0"/>
  1150. <Column size="0"/>
  1151. <Column size="0"/>
  1152. <Column size="0"/>
  1153. <Column size="0"/>
  1154. <Column size="0"/>
  1155. <Column size="0"/>
  1156. <Column size="0"/>
  1157. <Column size="0"/>
  1158. <Column size="0"/>
  1159. <Column size="0"/>
  1160. <Column size="40"/>
  1161. </Columns>
  1162. <Rows>
  1163. <Row size="24" band="head"/>
  1164. <Row size="24"/>
  1165. </Rows>
  1166. <Band id="head">
  1167. <Cell/>
  1168. <Cell col="1" text="상태"/>
  1169. <Cell col="2" text="M"/>
  1170. <Cell col="3" text="처방코드"/>
  1171. <Cell col="4" text="처방명"/>
  1172. <Cell col="5" text="동의서"/>
  1173. <Cell col="6" text="처방일자"/>
  1174. <Cell col="7" text="접수일시"/>
  1175. <Cell col="8" text="실시일자"/>
  1176. <Cell col="9" text="결과일시"/>
  1177. <Cell col="10" colspan="2" text="선택진료의" taborder="undefined"/>
  1178. <Cell col="12" text="1회용량"/>
  1179. <Cell col="13" text="1회용량"/>
  1180. <Cell col="14" text="1회수량"/>
  1181. <Cell col="15" text="1회수량"/>
  1182. <Cell col="16" text="payflagcd"/>
  1183. <Cell col="17" text="pid"/>
  1184. <Cell col="18" text="prcpno"/>
  1185. <Cell col="19" text="execprcpuniqno"/>
  1186. <Cell col="20" text="gubn"/>
  1187. <Cell col="21" text="rcptdd"/>
  1188. <Cell col="22" text="prcpclscd"/>
  1189. <Cell col="23" text="carecnfmdd"/>
  1190. <Cell col="24" text="prcpgenrflag"/>
  1191. <Cell col="25" text="orddeptcd"/>
  1192. <Cell col="26" text="orddrid"/>
  1193. <Cell col="27" text="ioflag"/>
  1194. <Cell col="28" text="cretno"/>
  1195. <Cell col="29" text="prcphistno"/>
  1196. <Cell col="30" text="opansflagcd"/>
  1197. <Cell col="31" text="suppdeptcd"/>
  1198. <Cell col="32" text="orddd"/>
  1199. <Cell col="33" text="inclprcpcd"/>
  1200. <Cell col="34" text="inclprcpno"/>
  1201. <Cell col="35" text="rootgubn"/>
  1202. <Cell col="36" text="execprcphistcd"/>
  1203. <Cell col="37" text="execprcpstatcd"/>
  1204. <Cell col="38" text="prcpflag"/>
  1205. <Cell col="39" text="prcpvol"/>
  1206. <Cell col="40" text="prcpvolunitflag"/>
  1207. <Cell col="41" text="prcpqty"/>
  1208. <Cell col="42" text="prcpqtyunitflag"/>
  1209. <Cell col="43" text="prcptims"/>
  1210. <Cell col="44" text="drugmthdspccd"/>
  1211. <Cell col="45" text="execdeptcd"/>
  1212. <Cell col="46" text="rsrvflag"/>
  1213. <Cell col="47" text="prcpsignflag"/>
  1214. <Cell col="48" text="aftcertflag"/>
  1215. <Cell col="49" text="aftcertdrid"/>
  1216. <Cell col="50" text="issdeptcd"/>
  1217. <Cell col="51"/>
  1218. <Cell col="52" text="유효"/>
  1219. </Band>
  1220. <Band id="body">
  1221. <Cell displaytype="checkbox" style="background:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');background2:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');" text="bind:check" expr="expr:check == 'Y' || check == '1'?1:0"/>
  1222. <Cell col="1" displaytype="normal" style="background:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');background2:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');" text="bind:statcd" calendardisplaynulltype="nulltext" enable="false"/>
  1223. <Cell col="2" style="background:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');background2:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');" text="bind:mset"/>
  1224. <Cell col="3" style="background:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');background2:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');" text="bind:calcscorcd"/>
  1225. <Cell col="4" style="align:left;background:EXPR(sugauseyn == 'N' ? 'red' : execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');background2:EXPR(sugauseyn == 'N' ? 'red' : execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');" text="bind:prcpnm"/>
  1226. <Cell col="5" style="background:EXPR(sugauseyn == 'N' ? 'red' : execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');background2:EXPR(sugauseyn == 'N' ? 'red' : execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');" text="bind:sedatmplyn"/>
  1227. <Cell col="6" displaytype="date" style="background:EXPR(sugauseyn == 'N' ? 'red' : execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');background2:EXPR(sugauseyn == 'N' ? 'red' : execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');" text="bind:prcpdd" calendardisplaynulltype="nulltext"/>
  1228. <Cell col="7" displaytype="date" style="background:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');background2:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');" text="bind:acptdt" calendardisplaynulltype="nulltext"/>
  1229. <Cell col="8" displaytype="date" style="background:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');background2:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');" text="bind:execdd" calendardisplaynulltype="nulltext"/>
  1230. <Cell col="9" displaytype="date" style="background:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');background2:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');" text="bind:cnfmdt" calendardisplaynulltype="nulltext"/>
  1231. <Cell col="10" style="background:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');background2:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');" text="bind:choiordflag"/>
  1232. <Cell col="11" displaytype="combo" edittype="combo" style="background:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');background2:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');" text="bind:specdrid" combodataset="ds_specdridlist" combocodecol="userid" combodatacol="usernm" enable="true"/>
  1233. <Cell col="12" style="background:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');background2:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');" text="bind:drprcpetc7"/>
  1234. <Cell col="13" style="background:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');background2:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');" text="bind:prcpvolunitnm"/>
  1235. <Cell col="14" style="background:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');background2:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');" text="bind:drprcpetc8"/>
  1236. <Cell col="15" style="background:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');background2:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');" text="bind:prcpqtyunitnm"/>
  1237. <Cell col="16" text="bind:payflagcd"/>
  1238. <Cell col="17" text="bind:pid"/>
  1239. <Cell col="18" text="bind:prcpno"/>
  1240. <Cell col="19" text="bind:execprcpuniqno"/>
  1241. <Cell col="20" text="bind:gubn"/>
  1242. <Cell col="21" text="bind:rcptdd"/>
  1243. <Cell col="22" text="bind:prcpclscd"/>
  1244. <Cell col="23" text="bind:carecnfmdd"/>
  1245. <Cell col="24" text="bind:prcpgenrflag"/>
  1246. <Cell col="25" text="bind:orddeptcd"/>
  1247. <Cell col="26" text="bind:orddrid"/>
  1248. <Cell col="27" text="bind:ioflag"/>
  1249. <Cell col="28" text="bind:cretno"/>
  1250. <Cell col="29" text="bind:prcphistno"/>
  1251. <Cell col="30" text="bind:opansflagcd"/>
  1252. <Cell col="31" text="bind:suppdeptcd"/>
  1253. <Cell col="32" text="bind:orddd"/>
  1254. <Cell col="33" text="bind:inclprcpcd"/>
  1255. <Cell col="34" text="bind:inclprcpno"/>
  1256. <Cell col="35" text="bind:rootgubn"/>
  1257. <Cell col="36" text="bind:execprcphistcd"/>
  1258. <Cell col="37" text="bind:execprcpstatcd"/>
  1259. <Cell col="38" text="bind:prcpflag"/>
  1260. <Cell col="39" text="bind:prcpvol"/>
  1261. <Cell col="40" text="bind:prcpvolunitflag"/>
  1262. <Cell col="41" text="bind:prcpqty"/>
  1263. <Cell col="42" text="bind:prcpqtyunitflag"/>
  1264. <Cell col="43" text="bind:prcptims"/>
  1265. <Cell col="44" text="bind:drugmthdspccd"/>
  1266. <Cell col="45" text="bind:execdeptcd"/>
  1267. <Cell col="46" text="bind:rsrvflag"/>
  1268. <Cell col="47" text="bind:prcpsignflag"/>
  1269. <Cell col="48" text="bind:aftcertflag"/>
  1270. <Cell col="49" text="bind:aftcertdrid"/>
  1271. <Cell col="50" text="bind:issdeptcd"/>
  1272. <Cell col="51" text="bind:roomcd"/>
  1273. <Cell col="52" style="background:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');background2:EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : '');" text="bind:sugauseyn"/>
  1274. </Band>
  1275. </Format>
  1276. </Formats>
  1277. </Grid>
  1278. <Static text="처방 Comment" position="absolute 499 678 624 699" id="caption8" class="tit_2" anchor="left bottom"/>
  1279. <Static text="예약 Comment" position="absolute 705 678 830 699" id="caption9" class="tit_2" anchor="left bottom"/>
  1280. <Static text="검사 Comment" position="absolute 1035 678 1150 699" id="caption10" class="tit_2" anchor="left bottom"/>
  1281. <TextArea position="absolute 499 699 700 761" id="tar_prcpremfact" enable="true" scrollbars="autovert" wordwrap="char" style="align:center middle;" anchor="left bottom"/>
  1282. <Shape position="absolute 499 694 700 700" linetype="horizontal" id="line9" class="line_10" anchor="left bottom"/>
  1283. <Shape position="absolute 705 694 856 700" linetype="horizontal" id="line8" class="line_10" anchor="left bottom"/>
  1284. <TextArea position="absolute 705 699 856 761" id="tar_acptrem" enable="false" scrollbars="autovert" wordwrap="char" anchor="left bottom" style=":disabled {align:center middle;}"/>
  1285. <TextArea position="absolute 1035 699 1187 761" id="tar_execrem" scrollbars="autovert" wordwrap="char" anchor="left bottom" style="align:center middle;"/>
  1286. <Shape position="absolute 1035 694 1187 700" linetype="horizontal" id="line10" class="line_10" anchor="left bottom"/>
  1287. <Static text="선택환자 정보" position="absolute 500 5 615 26" id="caption33" class="tit_2" anchor="default"/>
  1288. <Shape position="absolute 500 21 1190 27" linetype="horizontal" id="line12" class="line_10" anchor="left top right"/>
  1289. <Static text="진료과" position="absolute 500 50 557 73" align="align:center middle;" id="caption21" class="cell_1" anchor="default" style="padding:0 0 0 4;"/>
  1290. <Static text="환자명" position="absolute 663 26 713 49" align="align:center middle;" id="caption16" class="cell_1" anchor="default" style="padding:0 0 0 4;"/>
  1291. <Edit readonly="true" position="absolute 559 27 660 46" id="ipt_cntsqty" oneditdblclick="group3_ipt_cntsqty_oneditdblclick" style="font:Dotum,11,bold;" anchor="default" class="output"/>
  1292. <Static text="처방일" position="absolute 793 50 839 73" align="align:center middle;" id="caption19" class="cell_1" wordwrap="none" anchor="default" style="padding:0 0 0 4;"/>
  1293. <Shape position="absolute 500 45 1190 51" linetype="horizontal" id="line13" class="line_2" anchor="default"/>
  1294. <Edit readonly="true" position="absolute 715 27 791 46" id="input1" style="font:Dotum,11,bold;" anchor="default" class="output"/>
  1295. <Edit readonly="true" position="absolute 841 27 885 46" id="input2" enable="true" style="font:Dotum,10,bold;" anchor="default" class="output"/>
  1296. <Static text="S/A" position="absolute 793 26 839 49" align="align:center middle;" id="caption12" class="cell_1" anchor="default" style="padding:0 0 0 4;"/>
  1297. <Edit readonly="true" position="absolute 559 52 660 71" id="input3" enable="true" style="font:Dotum,9,bold;" anchor="default" class="output"/>
  1298. <Edit readonly="true" position="absolute 715 52 791 71" id="input4" enable="true" style="font:Dotum,9,bold;" anchor="default" class="output"/>
  1299. <Static text="진료의" position="absolute 663 50 713 73" align="align:center middle;" id="caption15" class="cell_1" anchor="default" style="padding:0 0 0 4;"/>
  1300. <MaskEdit readonly="true" position="absolute 841 52 983 71" id="input9" mask="####-##-##" enable="true" style="align:left middle;font:Dotum,9,bold;" anchor="default" class="output" type="string" limitbymask="none"/>
  1301. <Tab position="absolute 500 122 1189 284" id="switch2" style="border:1 solid #808080ff ;" anchor="left top right">
  1302. <Tabpages>
  1303. <Tabpage text="진료예약" id="case7" scrollbars="none">
  1304. <Layouts>
  1305. <Layout>
  1306. <Shape position="absolute 5 2 680 8" linetype="vertical" id="line16" class="line_1" anchor="default"/>
  1307. <Grid position="absolute 1 0 686 131" id="grd_ordlist2" binddataset="ds_grd_ordlist2" cellsizingtype="col" anchor="all">
  1308. <Formats>
  1309. <Format id="default">
  1310. <Columns>
  1311. <Column size="103"/>
  1312. <Column size="80"/>
  1313. <Column size="70"/>
  1314. <Column size="37"/>
  1315. <Column size="31"/>
  1316. <Column size="329"/>
  1317. </Columns>
  1318. <Rows>
  1319. <Row size="24" band="head"/>
  1320. <Row size="24"/>
  1321. </Rows>
  1322. <Band id="head">
  1323. <Cell text="예약일시"/>
  1324. <Cell col="1" text="진료과"/>
  1325. <Cell col="2" text="진료의"/>
  1326. <Cell col="3" text="수납"/>
  1327. <Cell col="4" text="수행"/>
  1328. <Cell col="5" text="Remark"/>
  1329. </Band>
  1330. <Band id="body">
  1331. <Cell displaytype="date" text="bind:rsrvdt" mask="yyyy-MM-dd HH:mm" calendardisplaynulltype="nulltext"/>
  1332. <Cell col="1" text="bind:orddeptnm"/>
  1333. <Cell col="2" text="bind:usernm"/>
  1334. <Cell col="3" text="bind:rcptflag"/>
  1335. <Cell col="4" text="bind:execflag"/>
  1336. <Cell col="5" text="bind:rem"/>
  1337. </Band>
  1338. </Format>
  1339. </Formats>
  1340. </Grid>
  1341. </Layout>
  1342. </Layouts>
  1343. </Tabpage>
  1344. <Tabpage text="타검사예약" id="case6">
  1345. <Layouts>
  1346. <Layout>
  1347. <Shape position="absolute 5 2 680 8" linetype="vertical" id="line15" class="line_1" anchor="default"/>
  1348. <Grid position="absolute 1 0 685 132" id="grd_ordlist1" binddataset="ds_grd_ordlist1" cellsizingtype="col" anchor="all">
  1349. <Formats>
  1350. <Format id="default">
  1351. <Columns>
  1352. <Column size="102"/>
  1353. <Column size="72"/>
  1354. <Column size="70"/>
  1355. <Column size="205"/>
  1356. <Column size="39"/>
  1357. <Column size="161"/>
  1358. </Columns>
  1359. <Rows>
  1360. <Row size="24" band="head"/>
  1361. <Row size="24"/>
  1362. </Rows>
  1363. <Band id="head">
  1364. <Cell text="예약일시"/>
  1365. <Cell col="1" text="수행부서"/>
  1366. <Cell col="2" text="처방코드"/>
  1367. <Cell col="3" text="처방명"/>
  1368. <Cell col="4" text="수납"/>
  1369. <Cell col="5" text="Remark"/>
  1370. </Band>
  1371. <Band id="body">
  1372. <Cell displaytype="date" text="bind:rsrvdt" mask="yyyy-MM-dd HH:mm" calendardisplaynulltype="nulltext"/>
  1373. <Cell col="1" text="bind:execdept"/>
  1374. <Cell col="2" text="bind:prcpcd"/>
  1375. <Cell col="3" text="bind:prcpnm"/>
  1376. <Cell col="4" text="bind:rcptflag"/>
  1377. <Cell col="5" text="bind:rem"/>
  1378. </Band>
  1379. </Format>
  1380. </Formats>
  1381. </Grid>
  1382. </Layout>
  1383. </Layouts>
  1384. </Tabpage>
  1385. </Tabpages>
  1386. </Tab>
  1387. <Button position="absolute 389 230 489 252" id="btn_acptcncl" class="btn2" text="접수및실시취소" onclick="group3_btn_acptcncl_onclick" anchor="default"/>
  1388. <Static text="구분" position="absolute 887 26 927 49" align="align:center middle;" id="caption1" class="cell_1" anchor="default" style="padding:0 0 0 4;"/>
  1389. <Edit readonly="true" position="absolute 929 27 983 46" id="input10" enable="true" style="font:Dotum,11,bold;" anchor="default" class="output"/>
  1390. <Button position="absolute 896 77 938 96" id="btn_rsrv" class="btn2" text="예약" onclick="group3_btn_rsrv_onclick" anchor="default"/>
  1391. <Button position="absolute 941 77 983 96" id="btn_cncl" class="btn2" text="취소" onclick="group3_btn_cncl_onclick" anchor="default"/>
  1392. <Button position="absolute 345 230 387 252" id="btn_save" class="btn2" visible="true" text="접수" onclick="group3_btn_save_onclick" anchor="default"/>
  1393. <Combo position="absolute 559 77 660 96" id="cmb_excuroom" class="combo_default" visible="true" innerdataset="ds_init_cmb_excuroom" datacolumn="excuroomcdnm" codecolumn="excuroomcdid" onitemclick="group3_cmb_excuroom_onitemclick" style=":disabled {font:Dotum,9,bold;}" anchor="default" readonly="true" enable="true"/>
  1394. <Grid position="absolute 25 354 235 689" id="grd_temp" visible="false" binddataset="ds_grd_temp" anchor="default">
  1395. <Formats>
  1396. <Format id="default">
  1397. <Columns>
  1398. <Column size="82"/>
  1399. <Column size="112"/>
  1400. </Columns>
  1401. <Rows>
  1402. <Row size="24" band="head"/>
  1403. <Row size="24"/>
  1404. </Rows>
  1405. <Band id="head">
  1406. <Cell text="검사실코드"/>
  1407. <Cell col="1" text="검사실명"/>
  1408. </Band>
  1409. <Band id="body">
  1410. <Cell text="bind:excuroomcdid"/>
  1411. <Cell col="1" text="bind:excuroomcdnm"/>
  1412. </Band>
  1413. </Format>
  1414. </Formats>
  1415. </Grid>
  1416. <Static text="검사:" position="absolute 1070 104 1104 124" id="caption4" anchor="default"/>
  1417. <Static text="진료:" position="absolute 1129 103 1163 123" id="caption13" anchor="default"/>
  1418. <Edit readonly="true" position="absolute 1100 103 1127 122" id="opt_excucnt" anchor="default"/>
  1419. <Edit readonly="true" position="absolute 1160 103 1187 122" id="opt_emrcnt" anchor="default"/>
  1420. <Button position="absolute 633 288 697 310" id="button11" class="btn2" text="대체처방" onclick="group3_button11_onclick" anchor="top right"/>
  1421. <Button position="absolute 990 288 1054 310" id="button18" class="btn2" text="병리라벨" onclick="group3_button18_onclick" anchor="top right"/>
  1422. <Button position="absolute 923 288 987 310" id="button21" class="btn2" text="마약관리" onclick="group3_button21_onclick" anchor="top right"/>
  1423. <Button position="absolute 767 288 853 310" id="button31" class="btn2" text="시행부서처방" onclick="group3_button31_onclick" anchor="top right"/>
  1424. <Tab position="absolute 0 123 495 222" id="switch3" onchanged="group3_switch3_onchanged" style="border:1 solid #808080ff ;" anchor="default">
  1425. <Tabpages>
  1426. <Tabpage text="종류별" id="case9" scrollbars="none">
  1427. <Layouts>
  1428. <Layout>
  1429. <Grid position="absolute 2 0 491 69" id="grd_excupartcd" anchor="default">
  1430. <Formats>
  1431. <Format id="default">
  1432. <Columns>
  1433. <Column size="0"/>
  1434. </Columns>
  1435. <Rows>
  1436. <Row size="24" band="head"/>
  1437. </Rows>
  1438. <Band id="head">
  1439. <Cell/>
  1440. </Band>
  1441. </Format>
  1442. </Formats>
  1443. </Grid>
  1444. </Layout>
  1445. </Layouts>
  1446. </Tabpage>
  1447. <Tabpage text="검사실별" id="case8" scrollbars="none">
  1448. <Layouts>
  1449. <Layout>
  1450. <Shape position="absolute 4 2 489 8" linetype="vertical" id="line5" class="line_1" anchor="default"/>
  1451. <Grid position="absolute 4 0 489 68" id="grd_excuroomcd" binddataset="ds_grd_excuroomcd" anchor="default">
  1452. <Formats>
  1453. <Format id="default">
  1454. <Columns>
  1455. <Column size="32"/>
  1456. </Columns>
  1457. <Rows>
  1458. <Row size="24" band="head"/>
  1459. </Rows>
  1460. <Band id="head">
  1461. <Cell/>
  1462. </Band>
  1463. </Format>
  1464. </Formats>
  1465. </Grid>
  1466. </Layout>
  1467. </Layouts>
  1468. </Tabpage>
  1469. </Tabpages>
  1470. </Tab>
  1471. <Button position="absolute 1124 288 1188 310" id="button3" class="btn2" text="통합결과" onclick="group3_button3_onclick" anchor="top right"/>
  1472. <Button position="absolute 1057 288 1121 310" id="button5" class="btn2" text="수납조회" onclick="group3_button5_onclick" anchor="top right"/>
  1473. <Button position="absolute 700 288 764 310" id="button6" class="btn2" text="TypeⅡ" onclick="group3_button6_onclick" anchor="top right"/>
  1474. <Shape position="absolute 500 70 1190 76" linetype="horizontal" id="line11" class="line_2" anchor="default"/>
  1475. <Static text="검사실" position="absolute 500 75 557 98" align="align:center middle;" id="caption2" class="cell_1" anchor="default" style="padding:0 0 0 4;"/>
  1476. <Static text="예약일" position="absolute 663 75 713 98" align="align:center middle;" id="caption3" class="cell_1" anchor="default" style="padding:0 0 0 4;"/>
  1477. <MaskEdit readonly="true" position="absolute 715 77 791 96" id="cmb_rsrvdd" mask="####-##-##" oneditclick="group3_cmb_rsrvdd_oneditclick" style="padding:0 3 0 3;font:Dotum,9,bold;" type="string" anchor="default" enable="true" displaynulltext=" " class="output"/>
  1478. <Button position="absolute 605 293 621 309" id="btn_cal" class="icon_clock" visible="false" text="" onclick="group3_btn_cal_onclick" anchor="default"/>
  1479. <MaskEdit readonly="true" position="absolute 793 77 839 96" id="cmb_rsrvtm" mask="##:##" enable="true" oneditclick="group3_cmb_rsrvtm_oneditclick" style="font:Dotum,9,bold;" type="string" anchor="default" displaynulltext=" " class="output"/>
  1480. <Button position="absolute 856 288 920 310" id="button1" class="btn2" text="처방조회" onclick="group3_button1_onclick" anchor="top right"/>
  1481. <TextArea position="absolute 0 65 495 115" align="align:left middle;" id="tat_deptmemo" wordwrap="char" scrollbars="autovert" anchor="default"/>
  1482. <Button position="absolute 1145 675 1187 694" id="btn_excucmt" class="btn2" visible="false" text="저장" onclick="group3_btn_excucmt_onclick" anchor="left bottom"/>
  1483. <Button position="absolute 904 103 957 122" id="btn_BarCodePrint" class="btn2" visible="false" text="바코드" onclick="group3_btn_BarCodePrint_onclick" anchor="default"/>
  1484. <Button position="absolute 1003 103 1067 122" id="btn_rsrvsrch" class="btn2" text="예약조회" onclick="group3_btn_rsrvsrch_onclick" anchor="default"/>
  1485. <Grid position="absolute 985 26 1190 98" align="align:left middle;" id="grd_memolist" class="datagrid0" scrollbars="fixedvert" binddataset="ds_examcureexecdiaglist" anchor="left top right" autofittype="col" extendsizetype="row" autosizingtype="row">
  1486. <Formats>
  1487. <Format id="default">
  1488. <Columns>
  1489. <Column size="188"/>
  1490. </Columns>
  1491. <Rows>
  1492. <Row size="24"/>
  1493. </Rows>
  1494. <Band id="body">
  1495. <Cell displaytype="text" style="font:Dotum,11,bold;" text="bind:diagengnm" wordwrap="char" autosizerow="limitmin"/>
  1496. </Band>
  1497. </Format>
  1498. </Formats>
  1499. </Grid>
  1500. <CheckBox position="absolute 840 79 895 94" id="chk_rsrvprnt" text="예약증" truevalue="Y" falsevalue="N" anchor="default"/>
  1501. <Button position="absolute 370 121 450 143" id="button12" class="btn3" visible="false" text="중앙관제" onclick="group3_button12_onclick" anchor="default"/>
  1502. <Edit readonly="true" position="absolute 722 103 835 122" id="output1" enable="true" style="font:Dotum,9,bold;" anchor="default"/>
  1503. <Static text="주민번호" position="absolute 663 101 720 124" align="align:center middle;" id="caption6" class="cell_1" wordwrap="none" anchor="default" style="padding:0 0 0 4;"/>
  1504. <TextArea position="absolute 860 699 1031 761" id="tar_patrem" wordwrap="char" scrollbars="autovert" anchor="left bottom" style="align:center middle;"/>
  1505. <Shape position="absolute 860 694 1031 700" linetype="horizontal" id="line20" class="line_10" anchor="left bottom"/>
  1506. <Static text="환자 Comment" position="absolute 860 678 970 699" id="caption22" class="tit_2" anchor="left bottom"/>
  1507. <Button position="absolute 989 675 1031 694" id="btn_patcmtsave" class="btn2" text="저장" onclick="group3_btn_patcmtsave_onclick" anchor="left bottom"/>
  1508. <Button position="absolute 959 103 1001 122" id="btn_prntset" class="btn2" text="설정" onclick="group3_btn_prntset_onclick" anchor="default"/>
  1509. <CheckBox position="absolute 502 317 522 337" id="bool1" onchanged="group3_bool1_onchanged" anchor="default" visible="true"/>
  1510. <Shape id="rectangle3" type="rectangle" position="absolute 159 127 179 142" style="fillbrush:solid #ffff00ff true;" anchor="default"/>
  1511. <Static id="caption27" text="V" position="absolute 184 127 202 142" anchor="default"/>
  1512. <Shape id="rectangle4" type="rectangle" position="absolute 202 127 222 142" style="fillbrush:solid #ccffccff true;" anchor="default"/>
  1513. <Static id="caption28" text="오늘결과" position="absolute 225 127 277 142" anchor="default"/>
  1514. <Shape id="rectangle5" type="rectangle" position="absolute 281 127 301 142" style="fillbrush:solid #ff9a00ff true;" anchor="default"/>
  1515. <Static id="caption26" text="미수납" position="absolute 304 127 342 142" anchor="default"/>
  1516. <Button position="absolute 453 121 495 143" id="btn_excucmtsave" class="btn2" text="저장" onclick="group3_btn_excucmtsave_onclick" anchor="default"/>
  1517. <Button id="btn_case5" taborder="1" text="미예약" position="absolute 5 230 56 252" class="btn_tab" onclick="group3_btn_case5_onclick" anchor="default"/>
  1518. <Button id="btn_case1" taborder="2" text="예약" class="btn_tab" position="absolute 57 230 108 252" onclick="group3_btn_case1_onclick" anchor="default"/>
  1519. <Button id="btn_case2" taborder="3" text="접수" class="btn_tab" position="absolute 109 230 160 252" onclick="group3_btn_case2_onclick" anchor="default"/>
  1520. <Button id="btn_case3" taborder="4" text="결과" class="btn_tab" position="absolute 161 230 212 252" onclick="group3_btn_case3_onclick" anchor="default"/>
  1521. <Button id="btn_case4" taborder="5" text="전체" class="btn_tab" position="absolute 213 230 264 252" onclick="group3_btn_case4_onclick" anchor="default"/>
  1522. <Shape position="absolute 500 95 1190 101" linetype="horizontal" id="line22" class="line_3" anchor="left top right"/>
  1523. <Edit id="opt_vipflag" taborder="6" position="absolute 608 1 1001 21" class="edt_transbg" readonly="true" style="color:#ff0000ff;font:Dotum,9,bold;"/>
  1524. <Static position="absolute 272 229 332 249" id="cpt_isolinfo" style="color:#ff0000ff;font:Dotum,9,bold;" anchor="default" onclick="group3_cpt_isolinfo_onclick"/>
  1525. <Div id="group00" taborder="7" style="background:#87cefaff;shadow:outer 3,3 3 gray;" visible="false" position="absolute 651 98 856 155">
  1526. <Layouts>
  1527. <Layout>
  1528. <Static id="caption11" text="출력할 장수를 입력하십시오." class="tit_2" position="absolute 8 8 196 25" anchor="default"/>
  1529. <MaskEdit id="ipt_patcntctel" taborder="23" mask="###" class="input_default" position="absolute 31 29 91 49" anchor="default" value="1"/>
  1530. <Button id="btn_prtlabel" taborder="24" text="확인" class="btn2" position="absolute 94 29 136 49" anchor="default" onclick="group3_group00_btn_prtlabel_onclick"/>
  1531. <Button id="button9" taborder="25" text="취소" class="btn2" position="absolute 139 29 181 49" anchor="default" onclick="group3_group00_button9_onclick"/>
  1532. </Layout>
  1533. </Layouts>
  1534. </Div>
  1535. <Button id="btn_bracelet" taborder="8" text="팔찌출력" position="absolute 500 101 571 120" class="btn2" onclick="group3_btn_bracelet_onclick"/>
  1536. </Layout>
  1537. </Layouts>
  1538. </Div>
  1539. <Grid position="absolute 300 439 440 589" id="datagrid1" visible="false" binddataset="ds_datagrid1">
  1540. <Formats>
  1541. <Format id="default">
  1542. <Columns>
  1543. <Column size="100"/>
  1544. <Column size="57"/>
  1545. </Columns>
  1546. <Rows>
  1547. <Row size="24" band="head"/>
  1548. <Row size="24"/>
  1549. </Rows>
  1550. <Band id="head">
  1551. <Cell text="caption1"/>
  1552. <Cell col="1" text="caption2"/>
  1553. </Band>
  1554. <Band id="body">
  1555. <Cell text="bind:excuroomcd"/>
  1556. <Cell col="1" text="bind:cnt"/>
  1557. </Band>
  1558. </Format>
  1559. </Formats>
  1560. </Grid>
  1561. <Div position="absolute 267 219 546 338" align="align:center top;" id="group7" visible="false" style="background:#080808ff;">
  1562. <Layouts>
  1563. <Layout>
  1564. <Static position="absolute 2 2 277 117" id="cpt_isoldata" visible="true" style="background:#d6dadcff;" anchor="default"/>
  1565. <Static text="감염정보" position="absolute 10 7 125 28" id="caption20" class="tit_2" visible="true" anchor="default"/>
  1566. <Shape position="absolute 10 23 270 29" linetype="horizontal" id="line14" class="line_10" visible="true" anchor="default"/>
  1567. <Shape position="absolute 10 91 270 97" linetype="horizontal" id="line19" class="line_3" visible="true" anchor="default"/>
  1568. <Button position="absolute 227 95 269 114" id="btn_close" class="btn5" visible="true" text="확인" onclick="group7_btn_close_onclick" anchor="default"/>
  1569. <TextArea position="absolute 10 28 270 92" id="textarea1" wordwrap="char" scrollbars="autovert" anchor="default"/>
  1570. </Layout>
  1571. </Layouts>
  1572. </Div>
  1573. <PopupMenu id="pmn_menu" position="absolute 1224 168 1407 347" innerdataset="@ds_init_pmenu_grid01" idcolumn="func" captioncolumn="name" levelcolumn="func" onmenuclick="pmn_menu_onmenuclick"/>
  1574. </Layout>
  1575. </Layouts>
  1576. <Objects>
  1577. <Dataset id="ds_grd_mainordlist1" firefirstcount="0" firenextcount="0" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1578. <ColumnInfo>
  1579. <Column id="check" type="STRING"/>
  1580. <Column id="excuroomcd" type="STRING"/>
  1581. <Column id="rsrvtm" type="STRING"/>
  1582. <Column id="pid" type="STRING"/>
  1583. <Column id="hngnm" type="STRING"/>
  1584. <Column id="sna" type="STRING"/>
  1585. <Column id="prcpnm" type="STRING"/>
  1586. <Column id="calcscorcd" type="STRING"/>
  1587. <Column id="orddepthngnm" type="STRING"/>
  1588. <Column id="orddrnm" type="STRING"/>
  1589. <Column id="genrflag" type="STRING"/>
  1590. <Column id="rcptyn" type="STRING"/>
  1591. <Column id="choiordflag" type="STRING"/>
  1592. <Column id="specdrnm" type="STRING"/>
  1593. <Column id="prcpdd" type="STRING"/>
  1594. <Column id="prcpkindcd" type="STRING"/>
  1595. <Column id="prcpgenrflag" type="STRING"/>
  1596. <Column id="excupartnm" type="STRING"/>
  1597. <Column id="prcphopedt" type="STRING"/>
  1598. <Column id="execprcpuniqno" type="STRING"/>
  1599. <Column id="prcpexecdeptcd" type="STRING"/>
  1600. <Column id="rgstdeptcd" type="STRING"/>
  1601. <Column id="rgstrid" type="STRING"/>
  1602. <Column id="portprcpflag" type="STRING"/>
  1603. <Column id="inflag" type="STRING"/>
  1604. <Column id="execbaseflag" type="STRING"/>
  1605. <Column id="lrgcd" type="STRING"/>
  1606. <Column id="mdlcd" type="STRING"/>
  1607. <Column id="modality" type="STRING"/>
  1608. <Column id="pacsnocretyn" type="STRING"/>
  1609. <Column id="prcpdelivefact" type="STRING"/>
  1610. <Column id="orddepthngnm" type="STRING"/>
  1611. <Column id="orddd" type="STRING"/>
  1612. <Column id="orddeptcd" type="STRING"/>
  1613. <Column id="patnm" type="STRING"/>
  1614. <Column id="orddrid" type="STRING"/>
  1615. <Column id="execprcpstatcd" type="STRING"/>
  1616. <Column id="eqmtifyn" type="STRING"/>
  1617. <Column id="basesuppdeptcd" type="STRING"/>
  1618. <Column id="rsrvdt" type="STRING"/>
  1619. <Column id="cretno" type="STRING"/>
  1620. <Column id="rsrvrem" type="STRING"/>
  1621. <Column id="acptrem" type="STRING"/>
  1622. <Column id="inclprcpcd" type="STRING"/>
  1623. <Column id="lrgcd" type="STRING"/>
  1624. <Column id="mdlcd" type="STRING"/>
  1625. <Column id="actorddd" type="STRING"/>
  1626. <Column id="excupartcd" type="STRING"/>
  1627. <Column id="roomcd" type="STRING"/>
  1628. <Column id="wardcd" type="STRING"/>
  1629. <Column id="root" type="STRING"/>
  1630. <Column id="prcphistno" type="STRING"/>
  1631. <Column id="ioflag" type="STRING"/>
  1632. <Column id="issdept" type="STRING"/>
  1633. <Column id="tmpldata" type="STRING"/>
  1634. <Column id="prcpnm" type="STRING"/>
  1635. <Column id="prcpno" type="STRING"/>
  1636. <Column id="cdisexamroomnm" type="STRING"/>
  1637. <Column id="cdisexcuroomcd" type="STRING"/>
  1638. <Column id="age" type="STRING"/>
  1639. <Column id="rcptrsrvyn" type="STRING"/>
  1640. <Column id="rcptacptyn" type="STRING"/>
  1641. <Column id="aftrcptinfo" type="STRING"/>
  1642. <Column id="rsrvtmplcd" type="STRING"/>
  1643. <Column id="rsrvmultitmplcd" type="STRING"/>
  1644. <Column id="emryn" type="STRING"/>
  1645. <Column id="bf_srchrsrvtm" type="STRING"/>
  1646. <Column id="execdd" type="STRING"/>
  1647. <Column id="rsrvdd" type="STRING" size="256"/>
  1648. <Column id="dschdd" type="STRING" size="256"/>
  1649. <Column id="vipflag" type="STRING" size="256"/>
  1650. <Column id="clntgrde" type="STRING" size="256"/>
  1651. <Column id="sedyn" type="STRING" size="256"/>
  1652. </ColumnInfo>
  1653. </Dataset>
  1654. <Dataset id="ds_grd_mainordlist2" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1655. <ColumnInfo>
  1656. <Column id="check" type="STRING" size="256" sumtext="선택"/>
  1657. <Column id="excuroomcd" type="STRING" size="256" sumtext="검사실코드"/>
  1658. <Column id="calcscorcd" type="STRING" size="256" sumtext="수가코드"/>
  1659. <Column id="rsrvtm" type="STRING" size="256" sumtext="예약일시"/>
  1660. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  1661. <Column id="hngnm" type="STRING" size="256" sumtext="성명"/>
  1662. <Column id="sna" type="STRING" size="256" sumtext="성별나이"/>
  1663. <Column id="genrflag" type="STRING" size="256" sumtext="입퇴원구분"/>
  1664. <Column id="rcptyn" type="STRING" size="256" sumtext="수납여부"/>
  1665. <Column id="orddrnm" type="STRING" size="256" sumtext="검사의"/>
  1666. <Column id="age" type="STRING" size="256" sumtext="나이"/>
  1667. <Column id="prcpdelivefact" type="STRING" size="256" sumtext="처방참고사항"/>
  1668. <Column id="rsrvrem" type="STRING" size="256" sumtext="예약코멘트"/>
  1669. <Column id="prcpdd" type="STRING" size="256" sumtext="처방일자"/>
  1670. <Column id="prcpkindcd" type="STRING" size="256" sumtext="처방종류코드"/>
  1671. <Column id="prcpgenrflag" type="STRING" size="256" sumtext="입원외래응급구분"/>
  1672. <Column id="prcphopedt" type="STRING" size="256" sumtext="희망일자"/>
  1673. <Column id="execprcpuniqno" type="INT" size="256" sumtext="실시처방번호"/>
  1674. <Column id="prcpexecdeptcd" type="STRING" size="256" sumtext="처방실시부서코드"/>
  1675. <Column id="rgstdeptcd" type="STRING" size="256" sumtext="최초처방부서코드"/>
  1676. <Column id="rgstrid" type="STRING" size="256" sumtext="최초처방부서의사ID"/>
  1677. <Column id="portprcpflag" type="STRING" size="256" sumtext="포터블처방구분"/>
  1678. <Column id="inflag" type="STRING" size="256" sumtext="재원중여부"/>
  1679. <Column id="rcptacptyn" type="STRING" size="256" sumtext="수납여부"/>
  1680. <Column id="execbaseflag" type="STRING" size="256" sumtext="실시기준여부"/>
  1681. <Column id="lrgcd" type="STRING" size="256" sumtext="검사그룹코드(AEBMECCD)"/>
  1682. <Column id="mdlcd" type="STRING" size="256" sumtext="부위코드(AEBMECCD)"/>
  1683. <Column id="excupartcd" type="STRING" size="256" sumtext="검사치료부위코드"/>
  1684. <Column id="excupartnm" type="STRING" size="256" sumtext="검사치료부위명"/>
  1685. <Column id="modality" type="STRING" size="256" sumtext="Modality(AEBMECCD)"/>
  1686. <Column id="pacsnocretyn" type="STRING" size="256" sumtext="PACS연동여부(AEBMECCD)"/>
  1687. <Column id="orddepthngnm" type="STRING" size="256" sumtext="진료과명"/>
  1688. <Column id="orddd" type="STRING" size="256" sumtext="PACS연동, 진료(입원)일"/>
  1689. <Column id="orddeptcd" type="STRING" size="256" sumtext="PACS연동, 진료과코드"/>
  1690. <Column id="orddrid" type="STRING" size="256" sumtext="진료의"/>
  1691. <Column id="execprcpstatcd" type="STRING" size="256" sumtext="처방상태구분코드"/>
  1692. <Column id="eqmtifyn" type="STRING" size="256" sumtext="장비IF여부"/>
  1693. <Column id="basesuppdeptcd" type="STRING" size="256" sumtext="세션부서코드"/>
  1694. <Column id="cretno" type="INT" size="256" sumtext="생성번호"/>
  1695. <Column id="inclprcpcd" type="STRING" size="256" sumtext="종속처방"/>
  1696. <Column id="rsrvdd" type="STRING" size="256" sumtext="예약일자"/>
  1697. <Column id="execrem" type="STRING" size="256" sumtext="검사코멘트"/>
  1698. <Column id="roomcd" type="STRING" size="256" sumtext="병실코드"/>
  1699. <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
  1700. <Column id="ioflag" type="STRING" size="256" sumtext="입원외래구분"/>
  1701. <Column id="basesuppdeptcd" type="STRING" size="256" sumtext="시행부서처방부서"/>
  1702. <Column id="rcptdd" type="STRING" size="256" sumtext="검사의"/>
  1703. <Column id="carecnfmdd" type="STRING" size="256" sumtext="검사의"/>
  1704. <Column id="prcpno" type="INT" size="256" sumtext="처방번호"/>
  1705. <Column id="rcptacptyn" type="STRING" size="256" sumtext="미수납접수여부"/>
  1706. <Column id="rcptrsrvyn" type="STRING" size="256" sumtext="미수납예약여부"/>
  1707. <Column id="cnclresncd" type="STRING" size="256" sumtext="미수납예약여부"/>
  1708. <Column id="cnclresncdnm" type="STRING" size="256" sumtext="미수납예약여부"/>
  1709. <Column id="aftrcptinfo" type="STRING" size="256" sumtext="후수납구분"/>
  1710. <Column id="dschdd" type="STRING" size="256" sumtext="퇴원일자"/>
  1711. <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
  1712. <Column id="choiordflag" type="STRING" size="256" sumtext="선택진료여부"/>
  1713. <Column id="specdrid" type="STRING" size="256" sumtext="선택진료의"/>
  1714. <Column id="specdrnm" type="STRING" size="256" sumtext="선택진료의명"/>
  1715. <!-- 2013110 kya 실시일자추가 -->
  1716. <Column id="execdd" type="STRING" size="256" sumtext="실시일자"/>
  1717. <!-- 20160613 kya VIP, VIP사유 추가 -->
  1718. <Column id="vipflag" type="STRING" size="256" sumtext="VIP유무"/>
  1719. <Column id="clntgrde" type="STRING" size="256" sumtext="VIP사유"/>
  1720. <Column id="sedyn" type="STRING" size="256"/>
  1721. </ColumnInfo>
  1722. </Dataset>
  1723. <Dataset id="ds_grd_mainordlist3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1724. <ColumnInfo>
  1725. <Column id="check" type="STRING"/>
  1726. <Column id="excuroomcd" type="STRING"/>
  1727. <Column id="rsrvtm" type="STRING"/>
  1728. <Column id="pid" type="STRING"/>
  1729. <Column id="hngnm" type="STRING"/>
  1730. <Column id="sna" type="STRING"/>
  1731. <Column id="prcpnm" type="STRING"/>
  1732. <Column id="calcscorcd" type="STRING"/>
  1733. <Column id="genrflag" type="STRING"/>
  1734. <Column id="rcptyn" type="STRING"/>
  1735. <Column id="choiordflag" type="STRING"/>
  1736. <Column id="specdrnm" type="STRING"/>
  1737. <Column id="opdrnm" type="STRING"/>
  1738. <Column id="cnfmmannm" type="STRING"/>
  1739. <Column id="execprcpuniqno" type="STRING"/>
  1740. <Column id="excupartnm" type="STRING"/>
  1741. <Column id="cretno" type="STRING"/>
  1742. <Column id="prcpexecdeptcd" type="STRING"/>
  1743. <Column id="execprcpstatcd" type="STRING"/>
  1744. <Column id="prcpdd" type="STRING"/>
  1745. <Column id="orddd" type="STRING"/>
  1746. <Column id="acptrem" type="STRING"/>
  1747. <Column id="prcpdelivefact" type="STRING"/>
  1748. <Column id="rsrvrem" type="STRING"/>
  1749. <Column id="rsrvdd" type="STRING"/>
  1750. <Column id="excupartcd" type="STRING"/>
  1751. <Column id="ioflag" type="STRING"/>
  1752. <Column id="issdept" type="STRING"/>
  1753. <Column id="age" type="STRING"/>
  1754. <Column id="rcptrsrvyn" type="STRING"/>
  1755. <Column id="rcptacptyn" type="STRING"/>
  1756. <Column id="orddrid" type="STRING"/>
  1757. <Column id="orddeptcd" type="STRING"/>
  1758. <Column id="prcpgenrflag" type="STRING"/>
  1759. <Column id="aftrcptinfo" type="STRING"/>
  1760. <Column id="basesuppdeptcd" type="STRING"/>
  1761. <Column id="emryn" type="STRING"/>
  1762. <Column id="bf_srchrsrvtm" type="STRING"/>
  1763. <Column id="execdd" type="STRING"/>
  1764. <Column id="dschdd" type="STRING" size="256"/>
  1765. <Column id="prcpno" type="STRING" size="256"/>
  1766. <Column id="vipflag" type="STRING" size="256"/>
  1767. <Column id="clntgrde" type="STRING" size="256"/>
  1768. <Column id="sedyn" type="STRING" size="256"/>
  1769. </ColumnInfo>
  1770. </Dataset>
  1771. <Dataset id="ds_grd_mainordlist4" firefirstcount="0" firenextcount="0" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" useclientlayout="false">
  1772. <ColumnInfo>
  1773. <Column id="execprcpstatcd" type="STRING"/>
  1774. <Column id="excuroomcd" type="STRING"/>
  1775. <Column id="rsrvtm" type="STRING"/>
  1776. <Column id="pid" type="STRING"/>
  1777. <Column id="hngnm" type="STRING"/>
  1778. <Column id="sna" type="STRING"/>
  1779. <Column id="prcpnm" type="STRING"/>
  1780. <Column id="calcscorcd" type="STRING"/>
  1781. <Column id="genrflag" type="STRING"/>
  1782. <Column id="rcptyn" type="STRING"/>
  1783. <Column id="choiordflag" type="STRING"/>
  1784. <Column id="specdrnm" type="STRING"/>
  1785. <Column id="orddrnm" type="STRING"/>
  1786. <Column id="cnfmmannm" type="STRING"/>
  1787. <Column id="basesuppdeptcd" type="STRING"/>
  1788. <Column id="excupartnm" type="STRING"/>
  1789. <Column id="cretno" type="STRING"/>
  1790. <Column id="prcpexecdeptcd" type="STRING"/>
  1791. <Column id="rsrvdd" type="STRING"/>
  1792. <Column id="excupartcd" type="STRING"/>
  1793. <Column id="ioflag" type="STRING"/>
  1794. <Column id="issdept" type="STRING"/>
  1795. <Column id="age" type="STRING"/>
  1796. <Column id="prcpgenrflag" type="STRING"/>
  1797. <Column id="rsrvdt" type="STRING"/>
  1798. <Column id="excuroomcd" type="STRING"/>
  1799. <Column id="rsrvrem" type="STRING"/>
  1800. <Column id="execprcpuniqno" type="STRING"/>
  1801. <Column id="prcpdd" type="STRING"/>
  1802. <Column id="rsrvdt" type="STRING"/>
  1803. <Column id="orddrid" type="STRING"/>
  1804. <Column id="statflag" type="STRING"/>
  1805. <Column id="orddeptcd" type="STRING"/>
  1806. <Column id="orddd" type="STRING"/>
  1807. <Column id="pacsnocretyn" type="STRING"/>
  1808. <Column id="eqmtifyn" type="STRING"/>
  1809. <Column id="bf_srchrsrvtm" type="STRING"/>
  1810. <Column id="specdrid" type="STRING"/>
  1811. <Column id="aftrcptinfo" type="STRING"/>
  1812. <Column id="execdd" type="STRING"/>
  1813. <Column id="dschdd" type="STRING" size="256"/>
  1814. <Column id="acptrem" type="STRING" size="256"/>
  1815. <Column id="prcpno" type="STRING" size="256"/>
  1816. <Column id="vipflag" type="STRING" size="256"/>
  1817. <Column id="clntgrde" type="STRING" size="256"/>
  1818. <Column id="sedyn" type="STRING" size="256"/>
  1819. </ColumnInfo>
  1820. </Dataset>
  1821. <Dataset id="ds_grd_subordlist1" firefirstcount="0" firenextcount="0" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" useclientlayout="false">
  1822. <ColumnInfo>
  1823. <Column id="pid" type="STRING"/>
  1824. <Column id="hngnm" type="STRING"/>
  1825. <Column id="sna" type="STRING"/>
  1826. <Column id="prcpnm" type="STRING"/>
  1827. <Column id="calcscorcd" type="STRING"/>
  1828. <Column id="orddepthngnm" type="STRING"/>
  1829. <Column id="orddrnm" type="STRING"/>
  1830. <Column id="genrflag" type="STRING"/>
  1831. <Column id="prcphopedt" type="STRING"/>
  1832. <Column id="prcpdd" type="STRING"/>
  1833. <Column id="rcptyn" type="STRING"/>
  1834. <Column id="choiordflag" type="STRING"/>
  1835. <Column id="specdrnm" type="STRING"/>
  1836. <Column id="execprcpuniqno" type="STRING"/>
  1837. <Column id="prcpkindcd" type="STRING"/>
  1838. <Column id="excupartnm" type="STRING"/>
  1839. <Column id="orddeptcd" type="STRING"/>
  1840. <Column id="orddd" type="STRING"/>
  1841. <Column id="excuroomcd" type="STRING"/>
  1842. <Column id="orddrid" type="STRING"/>
  1843. <Column id="prcpgenrflag" type="STRING"/>
  1844. <Column id="basesuppdeptcd" type="STRING"/>
  1845. <Column id="prcpdelivefact" type="STRING"/>
  1846. <Column id="prcpexecdeptcd" type="STRING"/>
  1847. <Column id="rsrvrem" type="STRING"/>
  1848. <Column id="execrem" type="STRING"/>
  1849. <Column id="rsrvdt" type="STRING"/>
  1850. <Column id="cretno" type="STRING"/>
  1851. <Column id="excupartcd" type="STRING"/>
  1852. <Column id="ioflag" type="STRING"/>
  1853. <Column id="issdept" type="STRING"/>
  1854. <Column id="tmpldata" type="STRING"/>
  1855. <Column id="rgstrid" type="STRING"/>
  1856. <Column id="inflag" type="STRING"/>
  1857. <Column id="execbaseflag" type="STRING"/>
  1858. <Column id="aftrcptinfo" type="STRING"/>
  1859. <Column id="rsrvtmplcd" type="STRING"/>
  1860. <Column id="rsrvmultitmplcd" type="STRING"/>
  1861. <Column id="emryn" type="STRING"/>
  1862. <Column id="bf_srchrsrvtm" type="STRING"/>
  1863. <Column id="execdd" type="STRING"/>
  1864. <Column id="rsrvdd" type="STRING" size="256"/>
  1865. <Column id="prcpno" type="STRING" size="256"/>
  1866. <Column id="age" type="STRING" size="256"/>
  1867. <Column id="dschdd" type="STRING" size="256"/>
  1868. <Column id="vipflag" type="STRING" size="256"/>
  1869. <Column id="clntgrde" type="STRING" size="256"/>
  1870. </ColumnInfo>
  1871. </Dataset>
  1872. <Dataset id="ds_grd_subordlist2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1873. <ColumnInfo>
  1874. <Column id="execprcpstatcd" type="STRING"/>
  1875. <Column id="excuroomcd" type="STRING"/>
  1876. <Column id="rsrvtm" type="STRING"/>
  1877. <Column id="pid" type="STRING"/>
  1878. <Column id="hngnm" type="STRING"/>
  1879. <Column id="sna" type="STRING"/>
  1880. <Column id="prcpnm" type="STRING"/>
  1881. <Column id="calcscorcd" type="STRING"/>
  1882. <Column id="genrflag" type="STRING"/>
  1883. <Column id="rcptyn" type="STRING"/>
  1884. <Column id="orddepthngnm" type="STRING"/>
  1885. <Column id="orddrnm" type="STRING"/>
  1886. <Column id="cnfmmannm" type="STRING"/>
  1887. <Column id="basesuppdeptcd" type="STRING"/>
  1888. <Column id="excupartcd" type="STRING"/>
  1889. <Column id="cretno" type="STRING"/>
  1890. <Column id="prcpexecdeptcd" type="STRING"/>
  1891. <Column id="rsrvdd" type="STRING"/>
  1892. <Column id="excupartnm" type="STRING"/>
  1893. <Column id="ioflag" type="STRING"/>
  1894. <Column id="issdept" type="STRING"/>
  1895. <Column id="age" type="STRING"/>
  1896. <Column id="prcpgenrflag" type="STRING"/>
  1897. <Column id="rsrvdt" type="STRING"/>
  1898. <Column id="excuroomcd" type="STRING"/>
  1899. <Column id="rsrvrem" type="STRING"/>
  1900. <Column id="execprcpuniqno" type="STRING"/>
  1901. <Column id="prcpdd" type="STRING"/>
  1902. <Column id="rsrvdt" type="STRING"/>
  1903. <Column id="orddrid" type="STRING"/>
  1904. <Column id="statflag" type="STRING"/>
  1905. <Column id="orddeptcd" type="STRING"/>
  1906. <Column id="orddd" type="STRING"/>
  1907. <Column id="pacsnocretyn" type="STRING"/>
  1908. <Column id="eqmtifyn" type="STRING"/>
  1909. <Column id="bf_srchrsrvtm" type="STRING"/>
  1910. <Column id="execdd" type="STRING"/>
  1911. </ColumnInfo>
  1912. </Dataset>
  1913. <Dataset id="ds_grd_subprcplist" firefirstcount="0" firenextcount="0" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_grd_subprcplist_oncolumnchanged" useclientlayout="false">
  1914. <ColumnInfo>
  1915. <Column id="check" type="STRING"/>
  1916. <Column id="statcd" type="STRING"/>
  1917. <Column id="mset" type="STRING"/>
  1918. <Column id="calcscorcd" type="STRING"/>
  1919. <Column id="prcpnm" type="STRING"/>
  1920. <Column id="sedatmplyn" type="STRING"/>
  1921. <Column id="prcpdd" type="STRING"/>
  1922. <Column id="acptdt" type="STRING"/>
  1923. <Column id="execdd" type="STRING"/>
  1924. <Column id="cnfmdt" type="STRING"/>
  1925. <Column id="choiordflag" type="STRING"/>
  1926. <Column id="specdrid" type="STRING"/>
  1927. <Column id="drprcpetc7" type="STRING"/>
  1928. <Column id="prcpvolunitnm" type="STRING"/>
  1929. <Column id="drprcpetc8" type="STRING"/>
  1930. <Column id="prcpqtyunitnm" type="STRING"/>
  1931. <Column id="payflagcd" type="STRING"/>
  1932. <Column id="pid" type="STRING"/>
  1933. <Column id="prcpno" type="STRING"/>
  1934. <Column id="execprcpuniqno" type="STRING"/>
  1935. <Column id="gubn" type="STRING"/>
  1936. <Column id="rcptdd" type="STRING"/>
  1937. <Column id="prcpclscd" type="STRING"/>
  1938. <Column id="carecnfmdd" type="STRING"/>
  1939. <Column id="prcpgenrflag" type="STRING"/>
  1940. <Column id="orddeptcd" type="STRING"/>
  1941. <Column id="orddrid" type="STRING"/>
  1942. <Column id="ioflag" type="STRING"/>
  1943. <Column id="cretno" type="STRING"/>
  1944. <Column id="prcphistno" type="STRING"/>
  1945. <Column id="opansflagcd" type="STRING"/>
  1946. <Column id="suppdeptcd" type="STRING"/>
  1947. <Column id="orddd" type="STRING"/>
  1948. <Column id="inclprcpcd" type="STRING"/>
  1949. <Column id="inclprcpno" type="STRING"/>
  1950. <Column id="rootgubn" type="STRING"/>
  1951. <Column id="execprcphistcd" type="STRING"/>
  1952. <Column id="execprcpstatcd" type="STRING"/>
  1953. <Column id="prcpflag" type="STRING"/>
  1954. <Column id="prcpvol" type="STRING"/>
  1955. <Column id="prcpvolunitflag" type="STRING"/>
  1956. <Column id="prcpqty" type="STRING"/>
  1957. <Column id="prcpqtyunitflag" type="STRING"/>
  1958. <Column id="prcptims" type="STRING"/>
  1959. <Column id="drugmthdspccd" type="STRING"/>
  1960. <Column id="execdeptcd" type="STRING"/>
  1961. <Column id="rsrvflag" type="STRING"/>
  1962. <Column id="prcpsignflag" type="STRING"/>
  1963. <Column id="aftcertflag" type="STRING"/>
  1964. <Column id="aftcertdrid" type="STRING"/>
  1965. <Column id="issdeptcd" type="STRING"/>
  1966. <Column id="roomcd" type="STRING"/>
  1967. <Column id="sugauseyn" type="STRING" size="256"/>
  1968. </ColumnInfo>
  1969. </Dataset>
  1970. <Dataset id="ds_grd_ordlist1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1971. <ColumnInfo>
  1972. <Column id="rsrvdt" type="STRING"/>
  1973. <Column id="execdept" type="STRING"/>
  1974. <Column id="prcpcd" type="STRING"/>
  1975. <Column id="prcpnm" type="STRING"/>
  1976. <Column id="rcptflag" type="STRING"/>
  1977. <Column id="rem" type="STRING"/>
  1978. </ColumnInfo>
  1979. </Dataset>
  1980. <Dataset id="ds_grd_ordlist2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1981. <ColumnInfo>
  1982. <Column id="rsrvdt" type="STRING"/>
  1983. <Column id="orddeptnm" type="STRING"/>
  1984. <Column id="usernm" type="STRING"/>
  1985. <Column id="rcptflag" type="STRING"/>
  1986. <Column id="execflag" type="STRING"/>
  1987. <Column id="rem" type="STRING"/>
  1988. </ColumnInfo>
  1989. </Dataset>
  1990. <Dataset id="ds_init_cmb_excuroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1991. <ColumnInfo>
  1992. <Column id="excuroomcdnm" type="STRING"/>
  1993. <Column id="excuroomcdid" type="STRING"/>
  1994. </ColumnInfo>
  1995. </Dataset>
  1996. <Dataset id="ds_grd_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1997. <ColumnInfo>
  1998. <Column id="excuroomcdid" type="STRING"/>
  1999. <Column id="excuroomcdnm" type="STRING"/>
  2000. </ColumnInfo>
  2001. </Dataset>
  2002. <Dataset id="ds_datagrid1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  2003. <ColumnInfo>
  2004. <Column id="excuroomcd" type="STRING"/>
  2005. <Column id="cnt" type="STRING"/>
  2006. </ColumnInfo>
  2007. </Dataset>
  2008. <Dataset id="ds_init_A0608" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2009. <ColumnInfo>
  2010. <Column id="cdid" type="STRING" size="256"/>
  2011. <Column id="cdnm" type="STRING" size="256"/>
  2012. </ColumnInfo>
  2013. </Dataset>
  2014. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2015. <ColumnInfo>
  2016. <Column id="srchpid" type="STRING" size="256"/>
  2017. <Column id="srchdate1" type="STRING" size="256"/>
  2018. <Column id="sgubn" type="STRING" size="256"/>
  2019. <Column id="pid" type="STRING" size="256"/>
  2020. <Column id="srchrcptyn" type="STRING" size="256"/>
  2021. <Column id="srchprcpgenrflag" type="STRING" size="256"/>
  2022. <Column id="prcpgenrflag" type="STRING" size="256"/>
  2023. <Column id="ioflag" type="STRING" size="256"/>
  2024. <Column id="acptlistflag" type="STRING" size="256"/>
  2025. <Column id="excuroomcd" type="STRING" size="256"/>
  2026. <Column id="memorem" type="STRING" size="256"/>
  2027. <Column id="excupartcd" type="STRING" size="256"/>
  2028. <Column id="srchgubn" type="STRING" size="256"/>
  2029. <Column id="patrem" type="STRING" size="256"/>
  2030. <Column id="memodd" type="STRING" size="256"/>
  2031. <Column id="orddd" type="STRING" size="256"/>
  2032. <Column id="cretno" type="STRING" size="256"/>
  2033. <Column id="age" type="STRING" size="256"/>
  2034. <Column id="sex" type="STRING" size="256"/>
  2035. <Column id="patnm" type="STRING" size="256"/>
  2036. <Column id="rsrvhour" type="STRING" size="256"/>
  2037. <Column id="prcpdd" type="STRING" size="256"/>
  2038. <Column id="prcpno" type="STRING" size="256"/>
  2039. <Column id="execprcpuniqno" type="STRING" size="256"/>
  2040. <Column id="orddrid" type="STRING" size="256"/>
  2041. <Column id="orddeptcd" type="STRING" size="256"/>
  2042. <Column id="tabgubn" type="STRING" size="256"/>
  2043. <Column id="rsrvprntflag" type="STRING" size="256"/>
  2044. <Column id="prntsuppdeptcd" type="STRING" size="256"/>
  2045. <Column id="execdd" type="STRING" size="256"/>
  2046. <Column id="prntcalcscorcd" type="STRING" size="256"/>
  2047. <Column id="largeclass" type="STRING" size="256"/>
  2048. <Column id="rsrvdd1" type="STRING" size="256"/>
  2049. <Column id="selectexcuroom" type="STRING" size="256"/>
  2050. <Column id="rsrvtmplcd" type="STRING" size="256"/>
  2051. <Column id="memorgstdd" type="STRING" size="256"/>
  2052. <Column id="pexcuroomcd" type="STRING" size="256"/>
  2053. <Column id="prsrvdd" type="STRING" size="256"/>
  2054. <Column id="scrnid" type="STRING" size="256"/>
  2055. <Column id="basesuppdeptcd" type="STRING" size="256"/>
  2056. <Column id="suppdeptcd" type="STRING" size="256"/>
  2057. <Column id="rsrvdd" type="STRING" size="256"/>
  2058. <Column id="jciyn" type="STRING" size="256"/>
  2059. <Column id="memorgstddprcpdd" type="STRING" size="256"/>
  2060. <Column id="ecgflag" type="STRING" size="256"/>
  2061. <Column id="excuroomcdid" type="STRING" size="256"/>
  2062. <Column id="bodypartcdid" type="STRING" size="256"/>
  2063. <Column id="srchdate2" type="STRING" size="256"/>
  2064. <Column id="deptflag" type="STRING" size="256"/>
  2065. <Column id="history" type="STRING" size="256"/>
  2066. <Column id="room" type="STRING" size="256"/>
  2067. <Column id="grupcdid" type="STRING" size="256"/>
  2068. </ColumnInfo>
  2069. <Rows>
  2070. <Row>
  2071. <Col id="srchpid"/>
  2072. <Col id="srchdate1"/>
  2073. <Col id="sgubn"/>
  2074. <Col id="pid"/>
  2075. <Col id="srchrcptyn"/>
  2076. <Col id="srchprcpgenrflag"/>
  2077. <Col id="prcpgenrflag"/>
  2078. <Col id="ioflag"/>
  2079. <Col id="acptlistflag"/>
  2080. <Col id="excuroomcd"/>
  2081. <Col id="memorem"/>
  2082. <Col id="excupartcd"/>
  2083. <Col id="srchgubn"/>
  2084. <Col id="patrem"/>
  2085. <Col id="memodd"/>
  2086. <Col id="orddd"/>
  2087. <Col id="cretno"/>
  2088. <Col id="age"/>
  2089. <Col id="sex"/>
  2090. <Col id="patnm"/>
  2091. <Col id="rsrvhour"/>
  2092. <Col id="prcpdd"/>
  2093. <Col id="prcpno"/>
  2094. <Col id="execprcpuniqno"/>
  2095. <Col id="orddrid"/>
  2096. <Col id="orddeptcd"/>
  2097. <Col id="tabgubn"/>
  2098. <Col id="rsrvprntflag"/>
  2099. <Col id="prntsuppdeptcd"/>
  2100. <Col id="execdd"/>
  2101. <Col id="prntcalcscorcd"/>
  2102. <Col id="largeclass">M5</Col>
  2103. <Col id="rsrvdd1"/>
  2104. <Col id="selectexcuroom"/>
  2105. <Col id="rsrvtmplcd"/>
  2106. <Col id="memorgstdd"/>
  2107. <Col id="pexcuroomcd">-</Col>
  2108. <Col id="prsrvdd"/>
  2109. <Col id="scrnid"/>
  2110. <Col id="basesuppdeptcd"/>
  2111. <Col id="suppdeptcd"/>
  2112. <Col id="rsrvdd"/>
  2113. <Col id="jciyn"/>
  2114. <Col id="memorgstddprcpdd"/>
  2115. <Col id="ecgflag"/>
  2116. <Col id="bodypartcdid"/>
  2117. <Col id="srchdate2"/>
  2118. <Col id="deptflag"/>
  2119. <Col id="excuroomcdid"/>
  2120. <Col id="history"/>
  2121. <Col id="room"/>
  2122. <Col id="grupcdid"/>
  2123. </Row>
  2124. </Rows>
  2125. </Dataset>
  2126. <Dataset id="ds_init_prcpexecdeptcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2127. <Dataset id="ds_specdridlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2128. <ColumnInfo>
  2129. <Column id="usernm" type="STRING" size="256"/>
  2130. <Column id="userid" type="STRING" size="256"/>
  2131. </ColumnInfo>
  2132. </Dataset>
  2133. <Dataset id="ds_barcdprntsetup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2134. <Dataset id="ds_init_M0011" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2135. <ColumnInfo>
  2136. <Column id="cdid" type="STRING" size="256"/>
  2137. <Column id="cdnm" type="STRING" size="256"/>
  2138. </ColumnInfo>
  2139. </Dataset>
  2140. <Dataset id="ds_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2141. <Dataset id="ds_init_pmenu_grid01" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2142. <ColumnInfo>
  2143. <Column id="name" type="STRING" size="256"/>
  2144. <Column id="func" type="STRING" size="256"/>
  2145. </ColumnInfo>
  2146. <Rows>
  2147. <Row>
  2148. <Col id="name">실변경</Col>
  2149. <Col id="func">fRoomChange</Col>
  2150. </Row>
  2151. <Row>
  2152. <Col id="name">-</Col>
  2153. <Col id="func"/>
  2154. </Row>
  2155. <Row>
  2156. <Col id="name">약/주사 액팅</Col>
  2157. <Col id="func">fOldPrcpCdActing</Col>
  2158. </Row>
  2159. <Row>
  2160. <Col id="name">-</Col>
  2161. <Col id="func"/>
  2162. </Row>
  2163. <Row>
  2164. <Col id="name">동의서/기타서식 반납</Col>
  2165. <Col id="func">fAgreeFormPrnt</Col>
  2166. </Row>
  2167. <Row>
  2168. <Col id="name">-</Col>
  2169. <Col id="func"/>
  2170. </Row>
  2171. <Row>
  2172. <Col id="name">간호처방</Col>
  2173. <Col id="func">fNurPrcp</Col>
  2174. </Row>
  2175. <Row>
  2176. <Col id="name">-</Col>
  2177. <Col id="func"/>
  2178. </Row>
  2179. <Row>
  2180. <Col id="name">통합기록조회</Col>
  2181. <Col id="func">fTotalRprtSrch</Col>
  2182. </Row>
  2183. <Row>
  2184. <Col id="name">-</Col>
  2185. <Col id="func"/>
  2186. </Row>
  2187. <Row>
  2188. <Col id="name">대기환자등록</Col>
  2189. <Col id="func">fSetWaitExcuRoomPatList</Col>
  2190. </Row>
  2191. <Row>
  2192. <Col id="name">-</Col>
  2193. </Row>
  2194. <Row>
  2195. <Col id="name">Scope세척관리</Col>
  2196. <Col id="func">fWashing</Col>
  2197. </Row>
  2198. </Rows>
  2199. </Dataset>
  2200. <Dataset id="ds_init_pmenu_grid02" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2201. <ColumnInfo>
  2202. <Column id="name" type="STRING" size="256"/>
  2203. <Column id="func" type="STRING" size="256"/>
  2204. </ColumnInfo>
  2205. <Rows>
  2206. <Row>
  2207. <Col id="name">실변경</Col>
  2208. <Col id="func">RoomChange</Col>
  2209. </Row>
  2210. <Row>
  2211. <Col id="name">-</Col>
  2212. <Col id="func"/>
  2213. </Row>
  2214. <Row>
  2215. <Col id="name">동의서/기타서식 반납</Col>
  2216. <Col id="func">fAgreeFormPrnt</Col>
  2217. </Row>
  2218. <Row>
  2219. <Col id="name">-</Col>
  2220. <Col id="func"/>
  2221. </Row>
  2222. <Row>
  2223. <Col id="name">간호처방</Col>
  2224. <Col id="func">fNurPrcp</Col>
  2225. </Row>
  2226. <Row>
  2227. <Col id="name">-</Col>
  2228. <Col id="func"/>
  2229. </Row>
  2230. <Row>
  2231. <Col id="name">통합기록조회</Col>
  2232. <Col id="func">fTotalRprtSrch</Col>
  2233. </Row>
  2234. </Rows>
  2235. </Dataset>
  2236. <Dataset id="ds_init_pmenu_grid03" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2237. <ColumnInfo>
  2238. <Column id="name" type="STRING" size="256"/>
  2239. <Column id="func" type="STRING" size="256"/>
  2240. </ColumnInfo>
  2241. <Rows>
  2242. <Row>
  2243. <Col id="name">실시</Col>
  2244. <Col id="func">fprcpacting</Col>
  2245. </Row>
  2246. <Row>
  2247. <Col id="name">실시취소</Col>
  2248. <Col id="func">fprcpactingcncl</Col>
  2249. </Row>
  2250. <Row>
  2251. <Col id="name">-</Col>
  2252. <Col id="func"/>
  2253. </Row>
  2254. <Row>
  2255. <Col id="name">처방반환</Col>
  2256. <Col id="func">fprcpdc</Col>
  2257. </Row>
  2258. <Row>
  2259. <Col id="name">-</Col>
  2260. <Col id="func"/>
  2261. </Row>
  2262. <Row>
  2263. <Col id="name">선택지정의 변경</Col>
  2264. <Col id="func">fSpecdrChange</Col>
  2265. </Row>
  2266. <Row>
  2267. <Col id="name">-</Col>
  2268. <Col id="func"/>
  2269. </Row>
  2270. <Row>
  2271. <Col id="name">라벨출력</Col>
  2272. <Col id="func">fPrintLabel</Col>
  2273. </Row>
  2274. </Rows>
  2275. </Dataset>
  2276. <Dataset id="ds_init_pmenu_grid04" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2277. <ColumnInfo>
  2278. <Column id="name" type="STRING" size="256"/>
  2279. <Column id="func" type="STRING" size="256"/>
  2280. </ColumnInfo>
  2281. <Rows>
  2282. <Row>
  2283. <Col id="name">약/주사액팅</Col>
  2284. <Col id="func">fOldPrcpCdActing</Col>
  2285. </Row>
  2286. <Row>
  2287. <Col id="name">-</Col>
  2288. <Col id="func"/>
  2289. </Row>
  2290. <Row>
  2291. <Col id="name">예약증재출력</Col>
  2292. <Col id="func">frersrvprnt</Col>
  2293. </Row>
  2294. <Row>
  2295. <Col id="name">-</Col>
  2296. <Col id="func"/>
  2297. </Row>
  2298. <Row>
  2299. <Col id="name">예약예문선택</Col>
  2300. <Col id="func">ChangeTmplcd2</Col>
  2301. </Row>
  2302. <Row>
  2303. <Col id="name">-</Col>
  2304. <Col id="func"/>
  2305. </Row>
  2306. <Row>
  2307. <Col id="name">동의서/기타서식 반납</Col>
  2308. <Col id="func">fAgreeFormPrnt</Col>
  2309. </Row>
  2310. <Row>
  2311. <Col id="name">-</Col>
  2312. <Col id="func"/>
  2313. </Row>
  2314. <Row>
  2315. <Col id="name">간호처방</Col>
  2316. <Col id="func">fNurPrcp</Col>
  2317. </Row>
  2318. <Row>
  2319. <Col id="name">-</Col>
  2320. <Col id="func"/>
  2321. </Row>
  2322. <Row>
  2323. <Col id="name">통합기록조회</Col>
  2324. <Col id="func">fTotalRprtSrch</Col>
  2325. </Row>
  2326. </Rows>
  2327. </Dataset>
  2328. <Dataset id="ds_init_pmenu_grid05" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2329. <ColumnInfo>
  2330. <Column id="name" type="STRING" size="256"/>
  2331. <Column id="func" type="STRING" size="256"/>
  2332. </ColumnInfo>
  2333. <Rows>
  2334. <Row>
  2335. <Col id="name">모코드개별실시</Col>
  2336. <Col id="func">fprcpacting</Col>
  2337. </Row>
  2338. <Row>
  2339. <Col id="name">-</Col>
  2340. <Col id="func"/>
  2341. </Row>
  2342. <Row>
  2343. <Col id="name">처방일괄반환</Col>
  2344. <Col id="func">fprcpdc</Col>
  2345. </Row>
  2346. <Row>
  2347. <Col id="name">-</Col>
  2348. <Col id="func"/>
  2349. </Row>
  2350. <Row>
  2351. <Col id="name">선택지정의 변경</Col>
  2352. <Col id="func">fSpecdrChange</Col>
  2353. </Row>
  2354. <Row>
  2355. <Col id="name">-</Col>
  2356. <Col id="func"/>
  2357. </Row>
  2358. <Row>
  2359. <Col id="name">라벨출력</Col>
  2360. <Col id="func">fPrintLabel</Col>
  2361. </Row>
  2362. </Rows>
  2363. </Dataset>
  2364. <Dataset id="ds_init_pmenu_grid06" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2365. <ColumnInfo>
  2366. <Column id="name" type="STRING" size="256"/>
  2367. <Column id="func" type="STRING" size="256"/>
  2368. </ColumnInfo>
  2369. <Rows>
  2370. <Row>
  2371. <Col id="name">약/주사액팅</Col>
  2372. <Col id="func">fOldPrcpCdActing</Col>
  2373. </Row>
  2374. <Row>
  2375. <Col id="name">-</Col>
  2376. <Col id="func"/>
  2377. </Row>
  2378. <Row>
  2379. <Col id="name">동의서/기타서식 반납</Col>
  2380. <Col id="func">fAgreeFormPrnt</Col>
  2381. </Row>
  2382. <Row>
  2383. <Col id="name">-</Col>
  2384. <Col id="func"/>
  2385. </Row>
  2386. <Row>
  2387. <Col id="name">간호처방</Col>
  2388. <Col id="func">fNurPrcp</Col>
  2389. </Row>
  2390. <Row>
  2391. <Col id="name">-</Col>
  2392. <Col id="func"/>
  2393. </Row>
  2394. <Row>
  2395. <Col id="name">통합기록조회</Col>
  2396. <Col id="func">fTotalRprtSrch</Col>
  2397. </Row>
  2398. <Row>
  2399. <Col id="name">-</Col>
  2400. <Col id="func"/>
  2401. </Row>
  2402. <Row>
  2403. <Col id="name">예약예문선택</Col>
  2404. <Col id="func">ChangeTmplcd</Col>
  2405. </Row>
  2406. <Row>
  2407. <Col id="name">-</Col>
  2408. <Col id="func"/>
  2409. </Row>
  2410. <Row>
  2411. <Col id="name">병리[생검]수동매칭</Col>
  2412. <Col id="func">SPLPJ02500</Col>
  2413. </Row>
  2414. <Row>
  2415. <Col id="name">-</Col>
  2416. </Row>
  2417. <Row>
  2418. <Col id="func">fWashing</Col>
  2419. <Col id="name">Scope세척관리</Col>
  2420. </Row>
  2421. <Row>
  2422. <Col id="name">-</Col>
  2423. </Row>
  2424. <Row>
  2425. <Col id="name">병실환자임시예약</Col>
  2426. <Col id="func">fTempRsrv</Col>
  2427. </Row>
  2428. </Rows>
  2429. </Dataset>
  2430. <Dataset id="ds_init_pmenu_grid07" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2431. <ColumnInfo>
  2432. <Column id="name" type="STRING" size="256"/>
  2433. <Column id="func" type="STRING" size="256"/>
  2434. </ColumnInfo>
  2435. <Rows>
  2436. <Row>
  2437. <Col id="name">처방상세내역</Col>
  2438. <Col id="func">fOpenPrcpList</Col>
  2439. </Row>
  2440. <Row>
  2441. <Col id="name">-</Col>
  2442. <Col id="func"/>
  2443. </Row>
  2444. <Row>
  2445. <Col id="name">동의서/기타서식 반납</Col>
  2446. <Col id="func">fAgreeFormPrnt</Col>
  2447. </Row>
  2448. <Row>
  2449. <Col id="name">-</Col>
  2450. <Col id="func"/>
  2451. </Row>
  2452. <Row>
  2453. <Col id="name">간호처방</Col>
  2454. <Col id="func">fNurPrcp</Col>
  2455. </Row>
  2456. <Row>
  2457. <Col id="name">-</Col>
  2458. <Col id="func"/>
  2459. </Row>
  2460. <Row>
  2461. <Col id="name">통합기록조회</Col>
  2462. <Col id="func">fTotalRprtSrch</Col>
  2463. </Row>
  2464. <Row>
  2465. <Col id="name">-</Col>
  2466. <Col id="func"/>
  2467. </Row>
  2468. <Row>
  2469. <Col id="name">병리[생검]수동매칭</Col>
  2470. <Col id="func">SPLPJ02500</Col>
  2471. </Row>
  2472. <Row>
  2473. <Col id="name">-</Col>
  2474. <Col id="func"/>
  2475. </Row>
  2476. <Row>
  2477. <Col id="name">진정전 환자평가서</Col>
  2478. <Col id="func">fDepeRecovPatSrch</Col>
  2479. </Row>
  2480. <Row>
  2481. <Col id="name">-</Col>
  2482. <Col id="func"/>
  2483. </Row>
  2484. <Row>
  2485. <Col id="name">진정/회복 서식목록</Col>
  2486. <Col id="func">fDepeRecovGenSrch</Col>
  2487. </Row>
  2488. <Row>
  2489. <Col id="name">-</Col>
  2490. </Row>
  2491. <Row>
  2492. <Col id="name">Scope세척관리</Col>
  2493. <Col id="func">fWashing</Col>
  2494. </Row>
  2495. <Row>
  2496. <Col id="name">-</Col>
  2497. </Row>
  2498. <Row>
  2499. <Col id="name">내시경시술임시예약</Col>
  2500. <Col id="func">fTempRsrv</Col>
  2501. </Row>
  2502. </Rows>
  2503. </Dataset>
  2504. <Dataset id="ds_subordlist1" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2505. <ColumnInfo>
  2506. <Column id="pid" type="STRING" size="256"/>
  2507. <Column id="patnm" type="STRING" size="256"/>
  2508. <Column id="sna" type="STRING" size="256"/>
  2509. <Column id="prcpgenrflag" type="STRING" size="256"/>
  2510. <Column id="orddepthngnm" type="STRING" size="256"/>
  2511. <Column id="orddrnm" type="STRING" size="256"/>
  2512. <Column id="prcpdd" type="STRING" size="256"/>
  2513. <Column id="excuroomcd" type="STRING" size="256"/>
  2514. <Column id="rsrvdd" type="STRING" size="256"/>
  2515. <Column id="rsrvtm" type="STRING" size="256"/>
  2516. <Column id="rgstno" type="STRING" size="256"/>
  2517. <Column id="prcpnm" type="STRING" size="256"/>
  2518. <Column id="newprintflag" type="STRING" size="256"/>
  2519. <Column id="btype" type="STRING" size="256"/>
  2520. <Column id="rfidyn" type="STRING" size="256"/>
  2521. </ColumnInfo>
  2522. <Rows>
  2523. <Row>
  2524. <Col id="pid"/>
  2525. <Col id="patnm"/>
  2526. <Col id="sna"/>
  2527. <Col id="prcpgenrflag"/>
  2528. <Col id="orddepthngnm"/>
  2529. <Col id="orddrnm"/>
  2530. <Col id="prcpdd"/>
  2531. <Col id="excuroomcd"/>
  2532. <Col id="rsrvdd"/>
  2533. <Col id="rsrvtm"/>
  2534. <Col id="rgstno"/>
  2535. <Col id="prcpnm"/>
  2536. </Row>
  2537. </Rows>
  2538. </Dataset>
  2539. <Dataset id="ds_examcureexecdiaglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2540. <Dataset id="ds_prcpdelifactlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2541. <ColumnInfo>
  2542. <Column id="prcpdelivefact" type="STRING" size="256"/>
  2543. </ColumnInfo>
  2544. <Rows>
  2545. <Row/>
  2546. </Rows>
  2547. </Dataset>
  2548. <Dataset id="ds_isolinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2549. <ColumnInfo>
  2550. <Column id="etccnts" type="STRING" size="256"/>
  2551. </ColumnInfo>
  2552. <Rows>
  2553. <Row/>
  2554. </Rows>
  2555. </Dataset>
  2556. <Dataset id="ds_patlist_patrem" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2557. <ColumnInfo>
  2558. <Column id="memo" type="STRING" size="256"/>
  2559. </ColumnInfo>
  2560. <Rows>
  2561. <Row/>
  2562. </Rows>
  2563. </Dataset>
  2564. <Dataset id="ds_examcuredeptmemolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2565. <ColumnInfo>
  2566. <Column id="memorem" type="STRING" size="256"/>
  2567. </ColumnInfo>
  2568. <Rows>
  2569. <Row/>
  2570. </Rows>
  2571. </Dataset>
  2572. <Dataset id="ds_grd_excuroomcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2573. <Dataset id="ds_grd_excupartcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2574. <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2575. <Dataset id="ds_result_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2576. <Dataset id="ds_hidden_cnclcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2577. <Dataset id="ds_rexbarcode" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2578. <ColumnInfo>
  2579. <Column id="pid" type="STRING" size="256"/>
  2580. <Column id="patnm" type="STRING" size="256"/>
  2581. <Column id="gbn" type="STRING" size="256"/>
  2582. <Column id="rrgstno1" type="STRING" size="256"/>
  2583. <Column id="rrgstno2" type="STRING" size="256"/>
  2584. <Column id="barpid" type="STRING" size="256"/>
  2585. <Column id="excugrp" type="STRING" size="256"/>
  2586. <Column id="rsrvdd" type="STRING" size="256"/>
  2587. <Column id="sex" type="STRING" size="256"/>
  2588. <Column id="age" type="STRING" size="256"/>
  2589. <Column id="wardcddeptengabbr" type="STRING" size="256"/>
  2590. <Column id="excupartcd" type="STRING" size="256"/>
  2591. <Column id="roomcd" type="STRING" size="256"/>
  2592. <Column id="prcpnm" type="STRING" size="256"/>
  2593. <Column id="examroomnm" type="STRING" size="256"/>
  2594. <Column id="wardcdnm" type="STRING" size="256"/>
  2595. <Column id="prcphopedd" type="STRING" size="256"/>
  2596. </ColumnInfo>
  2597. <Rows>
  2598. <Row>
  2599. <Col id="pid"/>
  2600. <Col id="patnm"/>
  2601. <Col id="gbn"/>
  2602. <Col id="rrgstno1"/>
  2603. <Col id="rrgstno2"/>
  2604. <Col id="barpid"/>
  2605. <Col id="excugrp"/>
  2606. <Col id="rsrvdd"/>
  2607. <Col id="sex"/>
  2608. <Col id="age"/>
  2609. <Col id="wardcddeptengabbr"/>
  2610. <Col id="excupartcd"/>
  2611. <Col id="roomcd"/>
  2612. <Col id="prcpnm"/>
  2613. <Col id="examroomnm"/>
  2614. <Col id="wardcdnm"/>
  2615. <Col id="prcphopedd"/>
  2616. </Row>
  2617. </Rows>
  2618. </Dataset>
  2619. <Dataset id="ds_hidden_grdgubnlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2620. <ColumnInfo>
  2621. <Column id="grdgubn" type="STRING" size="256"/>
  2622. </ColumnInfo>
  2623. <Rows>
  2624. <Row/>
  2625. </Rows>
  2626. </Dataset>
  2627. <Dataset id="ds_tmplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2628. <Dataset id="ds_execrcodelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2629. <Dataset id="ds_send_prcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2630. <ColumnInfo>
  2631. <Column id="pid3" type="STRING" size="256"/>
  2632. </ColumnInfo>
  2633. <Rows>
  2634. <Row/>
  2635. </Rows>
  2636. </Dataset>
  2637. <Dataset id="ds_data_setupinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2638. <ColumnInfo>
  2639. <Column id="dsvaluepath" type="STRING" size="256"/>
  2640. <Column id="prntkind" type="STRING" size="256"/>
  2641. <Column id="commkind" type="STRING" size="256"/>
  2642. <Column id="rexgbn" type="STRING" size="256"/>
  2643. </ColumnInfo>
  2644. </Dataset>
  2645. <Dataset id="ds_data_comm02" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2646. <ColumnInfo>
  2647. <Column id="dsvaluepath" type="STRING" size="256"/>
  2648. <Column id="comm" type="STRING" size="256"/>
  2649. <Column id="databit" type="STRING" size="256"/>
  2650. <Column id="stopbit" type="STRING" size="256"/>
  2651. <Column id="baudrate" type="STRING" size="256"/>
  2652. <Column id="parity" type="STRING" size="256"/>
  2653. </ColumnInfo>
  2654. <Rows>
  2655. <Row>
  2656. <Col id="dsvaluepath">/setupinfo</Col>
  2657. <Col id="comm">2</Col>
  2658. <Col id="databit">8</Col>
  2659. <Col id="stopbit">1</Col>
  2660. <Col id="baudrate">9600</Col>
  2661. <Col id="parity">n</Col>
  2662. </Row>
  2663. </Rows>
  2664. </Dataset>
  2665. <Dataset id="ds_data_blank" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2666. <ColumnInfo>
  2667. <Column id="dsvaluepath" type="STRING" size="256"/>
  2668. <Column id="left" type="STRING" size="256"/>
  2669. <Column id="top" type="STRING" size="256"/>
  2670. <Column id="b472size" type="STRING" size="256"/>
  2671. </ColumnInfo>
  2672. </Dataset>
  2673. <Dataset id="ds_data_comm01" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2674. <ColumnInfo>
  2675. <Column id="setupval" type="STRING" size="256"/>
  2676. </ColumnInfo>
  2677. </Dataset>
  2678. <Dataset id="ds_main_comment2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2679. <ColumnInfo>
  2680. <Column id="rsrvrem" type="STRING" size="256"/>
  2681. </ColumnInfo>
  2682. <Rows>
  2683. <Row/>
  2684. </Rows>
  2685. </Dataset>
  2686. <Dataset id="ds_main_comment3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2687. <ColumnInfo>
  2688. <Column id="execcmt" type="STRING" size="256"/>
  2689. </ColumnInfo>
  2690. <Rows>
  2691. <Row/>
  2692. </Rows>
  2693. </Dataset>
  2694. <Dataset id="ds_main_subordlist_nameconflict" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2695. <Dataset id="ds_patlist_serdiagtodd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2696. <ColumnInfo>
  2697. <Column id="serdiagtodd" type="STRING" size="256"/>
  2698. <Column id="rareobsttodd" type="STRING" size="256"/>
  2699. </ColumnInfo>
  2700. </Dataset>
  2701. <Dataset id="ds_send_bardata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2702. <ColumnInfo>
  2703. <Column id="testdeptcd" type="STRING" size="256"/>
  2704. <Column id="regnopatnm" type="STRING" size="256"/>
  2705. </ColumnInfo>
  2706. <Rows>
  2707. <Row/>
  2708. </Rows>
  2709. </Dataset>
  2710. <Dataset id="ds_main_barcdprntsetup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2711. <Dataset id="ds_main_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  2712. <Dataset id="ds_init_A1000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  2713. <ColumnInfo>
  2714. <Column id="cdid" type="STRING" size="256"/>
  2715. <Column id="cdnm" type="STRING" size="256"/>
  2716. </ColumnInfo>
  2717. </Dataset>
  2718. </Objects>
  2719. <Bind>
  2720. <BindItem id="item0" compid="group3.tar_patrem" propid="value" datasetid="ds_patlist_patrem" columnid="memo"/>
  2721. <BindItem id="item1" compid="group3.group6.ipt_date1" propid="value" datasetid="ds_send" columnid="srchdate1"/>
  2722. <BindItem id="item2" compid="group3.group6.input5" propid="value" datasetid="ds_send" columnid="pid"/>
  2723. <BindItem id="item3" compid="group3.group6.radio2" propid="value" datasetid="ds_send" columnid="srchrcptyn"/>
  2724. <BindItem id="item4" compid="group3.group6.rdo_srchprcpgenrflag" propid="value" datasetid="ds_send" columnid="srchprcpgenrflag"/>
  2725. <BindItem id="item5" compid="group3.ipt_cntsqty" propid="value" datasetid="ds_subordlist1" columnid="pid"/>
  2726. <BindItem id="item6" compid="group3.input1" propid="value" datasetid="ds_subordlist1" columnid="patnm"/>
  2727. <BindItem id="item7" compid="group3.input2" propid="value" datasetid="ds_subordlist1" columnid="sna"/>
  2728. <BindItem id="item8" compid="group3.input10" propid="value" datasetid="ds_subordlist1" columnid="prcpgenrflag"/>
  2729. <BindItem id="item9" compid="group3.input3" propid="value" datasetid="ds_subordlist1" columnid="orddepthngnm"/>
  2730. <BindItem id="item10" compid="group3.input4" propid="value" datasetid="ds_subordlist1" columnid="orddrnm"/>
  2731. <BindItem id="item11" compid="group3.input9" propid="value" datasetid="ds_subordlist1" columnid="prcpdd"/>
  2732. <BindItem id="item12" compid="group3.cmb_excuroom" propid="value" datasetid="ds_subordlist1" columnid="excuroomcd"/>
  2733. <BindItem id="item13" compid="group3.cmb_rsrvdd" propid="value" datasetid="ds_send" columnid="rsrvdd"/>
  2734. <BindItem id="item14" compid="group3.output1" propid="value" datasetid="ds_subordlist1" columnid="rgstno"/>
  2735. <BindItem id="item15" compid="group7.textarea1" propid="value" datasetid="ds_isolinfo" columnid="etccnts"/>
  2736. <BindItem id="item16" compid="group3.tar_prcpremfact" propid="value" datasetid="ds_prcpdelifactlist" columnid="prcpdelivefact"/>
  2737. <BindItem id="item17" compid="group3.tat_deptmemo" propid="value" datasetid="ds_examcuredeptmemolist" columnid="memorem"/>
  2738. <BindItem id="item18" compid="group3.tar_acptrem" propid="value" datasetid="ds_main_comment2" columnid="rsrvrem"/>
  2739. <BindItem id="item19" compid="group3.tar_execrem" propid="value" datasetid="ds_main_comment3" columnid="execcmt"/>
  2740. </Bind>
  2741. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  2742. * System Name :
  2743. * Job Name :
  2744. * Creator :
  2745. * Make Date : 2015-11-13
  2746. * Description :
  2747. *---------------------------------------------------------------------------------------
  2748. * Modify Date Modifier Modify Description
  2749. *---------------------------------------------------------------------------------------
  2750. * 2015-11-13 Live Converter TF->XP
  2751. *
  2752. *---------------------------------------------------------------------------------------
  2753. ****************************************************************************************/
  2754. include "com_commonxp::comm_main.xjs";
  2755. include "com_basiccodexp::ZBC001.xjs";
  2756. include "ast_examcurexp::AEZ0001.xjs";
  2757. //include "emr_wardcarexp::SMMNB01810.xjs";
  2758. include "emr_waitguidexp::SMMNV12000.xjs";
  2759. include "lis_commonxp::LZZ002.xjs";
  2760. include "lis_commonxp::LZZ001.xjs";
  2761. include "lis_commonxp::LLZ001.xjs";
  2762. include "emr_carecomxp::CareCom.xjs";
  2763. include "pam_pamcomnxp::PAM.xjs";
  2764. include "com_commodulexp::SSZFM00901.xjs";
  2765. include "ast_examcurexp::combolist.xjs";
  2766. var arErrorCode = new HashArray();
  2767. var lv_instance1 = "";
  2768. var lv_checkseq = "";
  2769. var lv_idx;
  2770. /*******************************************************************************************************************************************************************/
  2771. // 화면 클리어
  2772. /*******************************************************************************************************************************************************************/
  2773. function dataClear() {
  2774. ds_send.setColumn(0,"srchpid", "");
  2775. ds_send.setColumn(0,"prcpdd", "");
  2776. ds_send.setColumn(0,"execprcpuniqno", "");
  2777. ds_send.setColumn(0,"ioflag", "I");
  2778. call_TRAEA01517();
  2779. //상병정보, 검사예약, 진료예약, 처방내역
  2780. ds_subordlist1.clearData();
  2781. ds_grd_ordlist1.clearData();
  2782. ds_grd_ordlist2.clearData();
  2783. ds_grd_subprcplist.clearData();
  2784. ds_examcureexecdiaglist.clearData();
  2785. ds_isolinfo.clearData();
  2786. ds_prcpdelifactlist.clearData();
  2787. var oParam = {};
  2788. oParam.id = "TRAEA01506";
  2789. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  2790. oParam.method = "reqGetExamCureExecPrcpList";
  2791. oParam.inds = "reqparam=ds_send_reqparam";
  2792. oParam.outds = "ds_subordlist1=examcureexecdiaglist ds_grd_ordlist1=gettestrsrvinfo ds_grd_ordlist2=getordrsrvinfo ds_grd_subprcplist=examcureexecprcplist ds_examcureexecdiaglist=diaglist ds_prcpdelifactlist=prcpdelifactlist ds_isolinfo=patisolinfolist ds_main_subordlist_nameconflict=conflictyn";
  2793. oParam.async = false;
  2794. oParam.callback = "cf_TRAEA01506";
  2795. tranf_submit(oParam);
  2796. //감염정보
  2797. group3.cpt_isolinfo.text = "";
  2798. if (!utlf_isNull(ds_isolinfo.getColumn(0,"etccnts"))) {
  2799. group3.cpt_isolinfo.text = "[확인]";
  2800. }
  2801. ds_send.setColumn(0,"rsrvdd","");
  2802. group3.cmb_rsrvtm.value = "";
  2803. group3.tar_acptrem.value = ""; //예약코멘트
  2804. group3.tar_execrem.value = "" ; //검사코멘트
  2805. group3.tar_acptrem.value = ""; //예약코멘트
  2806. group3.opt_excucnt.value = ""; //검사예약껀수
  2807. group3.opt_emrcnt.value = ""; //진료예약껀수
  2808. group3.opt_vipflag.value = ""; //VIP 사유 20160614
  2809. //반환처방 색상주기
  2810. // grdf_initGridStyle(group3.grd_subprcplist);
  2811. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "E" , "execprcphistcd","equal" );
  2812. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "D" , "execprcphistcd","equal" );
  2813. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "L" , "execprcphistcd","equal" );
  2814. }
  2815. /*******************************************************************************************************************************************************************/
  2816. //검사실별 , 부위별 껀수
  2817. /*******************************************************************************************************************************************************************/
  2818. function fTestRoom( gridobj:Grid, dsObj:Dataset){
  2819. if (group3.switch3.tabindex == 1 && group3.switch1.tabindex != 0 ) { //검사실별
  2820. dataClear();
  2821. //grd_excuroomcd.visible = false;
  2822. var grdCnt = group3.switch3.case8.grd_excuroomcd.getCellCount("Head");
  2823. for (var i = 0; i < grdCnt; i++){
  2824. group3.switch3.case8.grd_excuroomcd.deleteContentsCol(0);
  2825. }
  2826. ds_grd_excuroomcd.clear();
  2827. ds_datagrid1.clearData();
  2828. ds_send.setColumn(0,"excuroomcd","");
  2829. for (var i = 0; i < dsObj.rowcount; i++){
  2830. if (!utlf_isNull(dsObj.getColumn(i,"excuroomcd"))){
  2831. var irow = ds_datagrid1.findRow("excuroomcd",gridobj.getCellText(i, 2));
  2832. if (irow < 0){
  2833. var nRow = ds_datagrid1.addRow();
  2834. ds_datagrid1.setColumn(nRow,"excuroomcd", gridobj.getCellText(i, 2));
  2835. ds_datagrid1.setColumn(nRow,"cnt", 1);
  2836. }else{
  2837. var icnt = ds_datagrid1.getColumn(irow, "cnt");
  2838. icnt = parseInt(icnt) + 1;
  2839. ds_datagrid1.setColumn(irow, "cnt", icnt);
  2840. }
  2841. }
  2842. }
  2843. ds_grd_excuroomcd.addRow();
  2844. for (var i = 0; i < ds_datagrid1.rowcount; i++){
  2845. var icol = "a" + i;
  2846. ds_grd_excuroomcd.addColumn(icol,"string");
  2847. if(group3.switch3.case8.grd_excuroomcd.getFormatColCount() == 0)
  2848. {
  2849. group3.switch3.case8.grd_excuroomcd.createFormat();
  2850. }
  2851. else
  2852. {
  2853. group3.switch3.case8.grd_excuroomcd.appendContentsCol();
  2854. }
  2855. group3.switch3.case8.grd_excuroomcd.setFormatColProperty(group3.switch3.case8.grd_excuroomcd.getFormatColCount()-1,"size",50);
  2856. group3.switch3.case8.grd_excuroomcd.setCellProperty("body", group3.switch3.case8.grd_excuroomcd.getFormatColCount()-1, "text", "bind:"+ icol);
  2857. group3.switch3.case8.grd_excuroomcd.setCellProperty("head",i,"text",ds_datagrid1.getColumn(i,"excuroomcd"));
  2858. group3.switch3.case8.grd_excuroomcd.setCellProperty("head",i,"align","left");
  2859. ds_grd_excuroomcd.setColumn(0,icol, ds_datagrid1.getColumn(i,"cnt"));
  2860. }
  2861. group3.switch3.case8.grd_excuroomcd.insertContentsCol(0);
  2862. group3.switch3.case8.grd_excuroomcd.setFormatColProperty(0,"size",10);
  2863. }
  2864. if ( group3.switch3.tabindex == 0 ) { //종류별
  2865. dataClear();
  2866. //grd_excupartcd.visible = false;
  2867. var grdCnt = group3.switch3.case9.grd_excupartcd.getCellCount("Head");
  2868. for (var i = 0; i < grdCnt; i++){
  2869. group3.switch3.case9.grd_excupartcd.deleteContentsCol(0);
  2870. }
  2871. ds_grd_excupartcd.clear();
  2872. ds_datagrid1.clearData();
  2873. ds_send.setColumn(0,"excupartcd","");
  2874. for (var i = 0; i < dsObj.rowcount; i++){
  2875. if (!utlf_isNull(dsObj.getColumn(i,"excupartnm"))){
  2876. var irow = ds_datagrid1.findRow("excuroomcd",gridobj.getCellText(i, 13));
  2877. if (irow < 0){
  2878. var nRow = ds_datagrid1.addRow();
  2879. ds_datagrid1.setColumn(nRow,"excuroomcd", gridobj.getCellText(i, 13));
  2880. ds_datagrid1.setColumn(nRow,"cnt", 1);
  2881. }else{
  2882. var icnt = ds_datagrid1.getColumn(irow, "cnt");
  2883. icnt = parseInt(icnt) + 1;
  2884. ds_datagrid1.setColumn(irow, "cnt", icnt);
  2885. }
  2886. }
  2887. }
  2888. ds_grd_excupartcd.addRow();
  2889. for (var i = 0; i < ds_datagrid1.rowcount; i++){
  2890. var icol = "a" + i;
  2891. ds_grd_excupartcd.addColumn(icol,"string");
  2892. group3.switch3.case9.grd_excupartcd.appendContentsCol();
  2893. group3.switch3.case9.grd_excupartcd.setFormatColProperty(group3.switch3.case9.grd_excupartcd.getCellCount("Body")-1,"size",55);
  2894. group3.switch3.case9.grd_excupartcd.setCellProperty("body", group3.switch3.case9.grd_excupartcd.getCellCount("Body")-1, "text", "bind:"+ icol);
  2895. group3.switch3.case9.grd_excupartcd.setCellProperty("head",i+1,"text",ds_datagrid1.getColumn(i,"excuroomcd"));
  2896. ds_grd_excupartcd.setColumn(0,icol, ds_datagrid1.getColumn(i,"cnt"));
  2897. }
  2898. if(group3.switch3.case9.grd_excupartcd.getCellCount("Body")>0)
  2899. {
  2900. group3.switch3.case9.grd_excupartcd.setFormatColProperty(0,"size",10);
  2901. }
  2902. }
  2903. }
  2904. function fGetExamCureAcptList(acptlistflag) {
  2905. appf_delPatientInfos(); //상단환자정보 클리어
  2906. // flag Setting
  2907. ds_send.setColumn(0,"acptlistflag", acptlistflag);
  2908. switch (acptlistflag) {
  2909. case "Y": //예약
  2910. group3.btn_cncl.enable = true; //예약취소
  2911. group3.btn_rsrv.enable = true; //예약
  2912. //예약일자 미래날짜이면 접수못함.
  2913. if( ds_send.getColumn(0,"srchdate1") <= utlf_getCurrentDate() ) {
  2914. group3.btn_save.enable = true;
  2915. }else {
  2916. group3.btn_save.enable = false;
  2917. }
  2918. group3.btn_acptcncl.enable = false; //접수취소
  2919. group3.switch1.tabindex = 1;
  2920. dsf_createDsRow("ds_send_reqparam", [{col: "acptlistflag", val:ds_send.getColumn(0,"acptlistflag")}
  2921. ,{col: "basesuppdeptcd", val:lv_instance1}
  2922. ,{col: "excuroomcd", val:ds_send.getColumn(0,"excuroomcd") }
  2923. ,{col: "initexcuroom", val:ds_send.getColumn(0,"excuroomcd") }
  2924. ,{col: "srchdate1", val:ds_send.getColumn(0,"srchdate1") }
  2925. ,{col: "excupartcd", val:ds_send.getColumn(0,"excupartcd") }
  2926. ,{col: "srchprcpgenrflag", val:ds_send.getColumn(0,"srchprcpgenrflag") }
  2927. ,{col: "srchrcptyn", val:ds_send.getColumn(0,"srchrcptyn") }
  2928. ,{col: "sgubn", val:ds_send.getColumn(0,"sgubn") }
  2929. ,{col: "pid", val:ds_send.getColumn(0,"pid") }
  2930. ,{col: "history", val:ds_send.getColumn(0,"history") }
  2931. ,{col: "largeclass", val:"R5" }
  2932. ]);
  2933. var oParam = {};
  2934. oParam.id = "TRAEA01501";
  2935. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  2936. oParam.method = "reqGetExamCureExecPrcpList";
  2937. oParam.inds = "reqparam=ds_send_reqparam";
  2938. oParam.outds = "ds_grd_mainordlist1=examcureexecprcplist";
  2939. oParam.async = false;
  2940. oParam.callback = "cf_TRAEA01501";
  2941. tranf_submit(oParam);
  2942. grdf_setToolTipBind(group3.switch1.case1.grd_mainordlist1);
  2943. fTestRoom(group3.switch1.case1.grd_mainordlist1, ds_grd_mainordlist1);
  2944. ds_grd_mainordlist1.rowposition = -1;
  2945. break;
  2946. case "T": //접수
  2947. group3.btn_cncl.enable = false; //예약취소
  2948. group3.btn_rsrv.enable = false; //예약
  2949. group3.btn_save.enable = false; //접수
  2950. group3.btn_acptcncl.enable = true; //접수취소
  2951. group3.switch1.tabindex = 2;
  2952. dsf_createDsRow("ds_send_reqparam", [{col: "acptlistflag", val:ds_send.getColumn(0,"acptlistflag")}
  2953. ,{col: "basesuppdeptcd", val:lv_instance1}
  2954. ,{col: "excuroomcd", val:ds_send.getColumn(0,"excuroomcd") }
  2955. ,{col: "initexcuroom", val:ds_send.getColumn(0,"excuroomcd") }
  2956. ,{col: "srchdate1", val:ds_send.getColumn(0,"srchdate1") }
  2957. ,{col: "excupartcd", val:ds_send.getColumn(0,"excupartcd") }
  2958. ,{col: "srchprcpgenrflag", val:ds_send.getColumn(0,"srchprcpgenrflag") }
  2959. ,{col: "srchrcptyn", val:ds_send.getColumn(0,"srchrcptyn") }
  2960. ,{col: "sgubn", val:ds_send.getColumn(0,"sgubn") }
  2961. ,{col: "pid", val:ds_send.getColumn(0,"pid") }
  2962. ,{col: "history", val:ds_send.getColumn(0,"history") }
  2963. ,{col: "largeclass", val:"M5" }
  2964. ]);
  2965. ds_grd_mainordlist2.updateColID("acptrem","execrem");
  2966. var oParam = {};
  2967. oParam.id = "TRAEA01502";
  2968. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  2969. oParam.method = "reqGetExamCureExecPrcpList";
  2970. oParam.inds = "reqparam=ds_send_reqparam";
  2971. oParam.outds = "ds_grd_mainordlist2=examcureexecprcplist";
  2972. oParam.async = false;
  2973. oParam.callback = "cf_TRAEA01502";
  2974. tranf_submit(oParam);
  2975. grdf_setToolTipBind(group3.switch1.case2.grd_mainordlist2);
  2976. fTestRoom(group3.switch1.case2.grd_mainordlist2, ds_grd_mainordlist2);
  2977. ds_grd_mainordlist2.rowposition = -1;
  2978. break;
  2979. case "Z": //결과
  2980. group3.btn_cncl.enable = false; //예약취소
  2981. group3.btn_rsrv.enable = false; //예약
  2982. group3.btn_save.enable = false; //접수
  2983. group3.btn_acptcncl.enable = false; //접수취소
  2984. group3.switch1.tabindex = 3;
  2985. dsf_createDsRow("ds_send_reqparam", [{col: "acptlistflag", val:ds_send.getColumn(0,"acptlistflag")}
  2986. ,{col: "basesuppdeptcd", val:lv_instance1}
  2987. ,{col: "initexcuroom", val:ds_send.getColumn(0,"excuroomcdid") }
  2988. ,{col: "srchdate1", val:ds_send.getColumn(0,"srchdate1") }
  2989. ,{col: "excuroomflag", val:lv_instance1 }
  2990. ,{col: "srchprcpgenrflag", val:ds_send.getColumn(0,"srchprcpgenrflag") }
  2991. ,{col: "srchrcptyn", val:ds_send.getColumn(0,"srchrcptyn") }
  2992. ,{col: "sgubn", val:ds_send.getColumn(0,"sgubn") }
  2993. ,{col: "pid", val:ds_send.getColumn(0,"pid") }
  2994. ,{col: "history", val:ds_send.getColumn(0,"history") }
  2995. ,{col: "largeclass", val:"M5" }
  2996. ]);
  2997. var oParam = {};
  2998. oParam.id = "TRAEA01503";
  2999. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  3000. oParam.method = "reqGetExamCureExecPrcpList";
  3001. oParam.inds = "reqparam=ds_send_reqparam";
  3002. oParam.outds = "ds_grd_mainordlist3=examcureexecprcplist";
  3003. oParam.async = false;
  3004. oParam.callback = "cf_TRAEA01503";
  3005. tranf_submit(oParam);
  3006. grdf_setToolTipBind(group3.switch1.case3.grd_mainordlist3);
  3007. fTestRoom(group3.switch1.case3.grd_mainordlist3, ds_grd_mainordlist3);
  3008. ds_grd_mainordlist3.rowposition = -1;
  3009. break;
  3010. case "L": //전체
  3011. group3.btn_cncl.enable = false; //예약취소
  3012. group3.btn_rsrv.enable = false; //예약
  3013. group3.btn_save.enable = false; //접수
  3014. group3.btn_acptcncl.enable = false; //접수취소
  3015. group3.switch1.tabindex = 4;
  3016. dsf_createDsRow("ds_send_reqparam", [{col: "acptlistflag", val:ds_send.getColumn(0,"acptlistflag")}
  3017. ,{col: "basesuppdeptcd", val:lv_instance1}
  3018. ,{col: "initexcuroom", val:ds_send.getColumn(0,"excuroomcdid") }
  3019. ,{col: "srchdate1", val:ds_send.getColumn(0,"srchdate1") }
  3020. ,{col: "excuroomflag", val:lv_instance1 }
  3021. ,{col: "srchprcpgenrflag", val:ds_send.getColumn(0,"srchprcpgenrflag") }
  3022. ,{col: "srchrcptyn", val:ds_send.getColumn(0,"srchrcptyn") }
  3023. ,{col: "sgubn", val:ds_send.getColumn(0,"sgubn") }
  3024. ,{col: "pid", val:ds_send.getColumn(0,"pid") }
  3025. ,{col: "history", val:ds_send.getColumn(0,"history") }
  3026. ,{col: "largeclass", val:"M5" }
  3027. ]);
  3028. var oParam = {};
  3029. oParam.id = "TRAEA01504";
  3030. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  3031. oParam.method = "reqGetExamCureExecPrcpList";
  3032. oParam.inds = "reqparam=ds_send_reqparam";
  3033. oParam.outds = "ds_grd_mainordlist4=examcureexecprcplist";
  3034. oParam.async = false;
  3035. oParam.callback = "cf_TRAEA01504";
  3036. tranf_submit(oParam);
  3037. grdf_setToolTipBind(group3.switch1.case4.grd_mainordlist4);
  3038. fTestRoom(group3.switch1.case4.grd_mainordlist4, ds_grd_mainordlist4);
  3039. ds_grd_mainordlist4.rowposition = -1;
  3040. break;
  3041. case "S": // 시행부서처방
  3042. group3.btn_cncl.enable = false; //예약취소
  3043. group3.btn_rsrv.enable = false; //예약
  3044. group3.btn_save.enable = false; //접수
  3045. group3.btn_acptcncl.enable = false; //접수취소
  3046. group3.switch1.tabindex = 5;
  3047. dsf_createDsRow("ds_send_reqparam", [{col: "acptlistflag", val:ds_send.getColumn(0,"acptlistflag")}
  3048. ,{col: "basesuppdeptcd", val:lv_instance1}
  3049. ,{col: "excuroomcd", val:ds_send.getColumn(0,"excuroomcd") }
  3050. ,{col: "initexcuroom", val:ds_send.getColumn(0,"excuroomcd") }
  3051. ,{col: "srchdate1", val:ds_send.getColumn(0,"srchdate1") }
  3052. ,{col: "excuroomflag", val:lv_instance1 }
  3053. ,{col: "excupartcd", val:ds_send.getColumn(0,"excupartcd") }
  3054. ,{col: "srchprcpgenrflag", val:ds_send.getColumn(0,"srchprcpgenrflag") }
  3055. ,{col: "srchrcptyn", val:ds_send.getColumn(0,"srchrcptyn") }
  3056. ,{col: "sgubn", val:ds_send.getColumn(0,"sgubn") }
  3057. ,{col: "pid", val:ds_send.getColumn(0,"pid") }
  3058. ,{col: "memodt1", val:ds_send.getColumn(0,"srchdate1") }
  3059. ,{col: "memodt2", val:ds_send.getColumn(0,"srchdate1") }
  3060. ,{col: "history", val:ds_send.getColumn(0,"history") }
  3061. ,{col: "largeclass", val:"M5" }
  3062. ,{col: "sublist", val:"main" }
  3063. ]);
  3064. var oParam = {};
  3065. oParam.id = "TRAEA01515";
  3066. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  3067. oParam.method = "reqGetExamCureExecPrcpList";
  3068. oParam.inds = "reqparam=ds_send_reqparam";
  3069. oParam.outds = "ds_grd_subordlist2=examcureexecprcplist ds_examcuredeptmemolist=examcuredeptmemolist";
  3070. oParam.async = false;
  3071. oParam.callback = "cf_TRAEA01515";
  3072. tranf_submit(oParam);
  3073. grdf_setToolTipBind(group3.switch1.case10.grd_subordlist2);
  3074. fTestRoom(group3.switch1.case10.grd_subordlist2, ds_grd_subordlist2);
  3075. ds_grd_subordlist2.rowposition = -1;
  3076. break;
  3077. case "P": // 미예약
  3078. group3.btn_cncl.enable = false; //예약취소
  3079. group3.btn_rsrv.enable = true; //예약
  3080. if( ds_send.getColumn(0,"sgubn") == "S" ) {
  3081. group3.btn_save.enable = true;
  3082. }else {
  3083. group3.btn_save.enable = false; //접수
  3084. }
  3085. group3.btn_acptcncl.enable = false; //접수취소
  3086. dsf_createDsRow("ds_send_reqparam", [{col: "acptlistflag", val:ds_send.getColumn(0,"acptlistflag")}
  3087. ,{col: "basesuppdeptcd", val:lv_instance1}
  3088. ,{col: "excuroomcd", val:ds_send.getColumn(0,"excuroomcd") }
  3089. ,{col: "initexcuroom", val:ds_send.getColumn(0,"excuroomcd") }
  3090. ,{col: "srchdate1", val:ds_send.getColumn(0,"srchdate1") }
  3091. ,{col: "excuroomflag", val:lv_instance1 }
  3092. ,{col: "excupartcd", val:ds_send.getColumn(0,"excupartcd") }
  3093. ,{col: "srchprcpgenrflag", val:ds_send.getColumn(0,"srchprcpgenrflag") }
  3094. ,{col: "srchrcptyn", val:ds_send.getColumn(0,"srchrcptyn") }
  3095. ,{col: "sgubn", val:ds_send.getColumn(0,"sgubn") }
  3096. ,{col: "pid", val:ds_send.getColumn(0,"pid") }
  3097. ,{col: "memodt1", val:ds_send.getColumn(0,"srchdate1") }
  3098. ,{col: "memodt2", val:ds_send.getColumn(0,"srchdate1") }
  3099. ,{col: "history", val:ds_send.getColumn(0,"history") }
  3100. ,{col: "largeclass", val:"M5" }
  3101. ,{col: "sublist", val:"main" }
  3102. ]);
  3103. var oParam = {};
  3104. oParam.id = "TRAEA01505";
  3105. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  3106. oParam.method = "reqGetExamCureExecPrcpList";
  3107. oParam.inds = "reqparam=ds_send_reqparam";
  3108. oParam.outds = "ds_grd_subordlist1=examcureexecprcplist ds_examcuredeptmemolist=examcuredeptmemolist";
  3109. oParam.async = false;
  3110. oParam.callback = "cf_TRAEA01505";
  3111. tranf_submit(oParam);
  3112. grdf_setToolTipBind(group3.switch1.case5.grd_subordlist1);
  3113. fTestRoom(group3.switch1.case5.grd_subordlist1, ds_grd_subordlist1);
  3114. // var k = 0;
  3115. // for (var i = 0; i < ds_grd_subordlist1.rowcount; i++){
  3116. // var stmpcd = utlf_transNullToEmpty(ds_grd_subordlist1.getColumn(i,"rsrvmultitmplcd"));
  3117. // k =0;
  3118. // for(var j=0; j < stmpcd.length; j++){
  3119. // var ch = stmpcd.charAt(j);
  3120. // if (ch == "^"){
  3121. // k = parseInt(k) + 1;
  3122. // }
  3123. // }
  3124. // if (k > 0){
  3125. // ds_grd_subordlist1.setColumn(i,"color", "#0000ff");
  3126. // }else{
  3127. //
  3128. // ds_grd_subordlist1.setColumn(i,"color", "");
  3129. // }
  3130. // }
  3131. break;
  3132. default:
  3133. break;
  3134. }
  3135. switch (acptlistflag) {
  3136. case "Y": //예약
  3137. lf_aezfSetRowStyle(group3.switch1.case1.grd_mainordlist1 , "15^16^17" , "V^P^A" , "aftrcptinfo" ); //20101005 cell단위가 아닌 row단위로 표시 - 박재영
  3138. break;
  3139. case "T": // 접수
  3140. lf_aezfSetRowStyle(group3.switch1.case2.grd_mainordlist2 , "15^16^17" , "V^P^A" , "aftrcptinfo" ); //미수납
  3141. break;
  3142. case "Z": // 결과
  3143. lf_aezfSetRowStyle(group3.switch1.case3.grd_mainordlist3 , "15^16^17" , "V^P^A" , "aftrcptinfo" ); //미수납
  3144. break;
  3145. case "L": // 전체
  3146. lf_aezfSetRowStyle(group3.switch1.case4.grd_mainordlist4 , "15^16^17" , "V^P^A" , "aftrcptinfo" ); //미수납
  3147. break;
  3148. case "S": // 시행부서처방
  3149. lf_aezfSetRowStyle(group3.switch1.case10.grd_subordlist2 , "15^16^17" , "V^P^A", "aftrcptinfo" ); //미수납
  3150. break;
  3151. case "P": // 미예약
  3152. lf_aezfSetRowStyle(group3.switch1.case5.grd_subordlist1 , "15^16^17" , "V^P^A" , "aftrcptinfo" ); //미수납
  3153. break;
  3154. default:
  3155. break;
  3156. }
  3157. }
  3158. function cf_TRAEA01501(sSvcId, nErrorCode, sErrorMsg) {
  3159. if(nErrorCode < 0) return;
  3160. ds_grd_mainordlist1.addColumn("check","string");
  3161. fMakeCopyColumn(ds_grd_mainordlist1,"basesuppdeptcd","issdept");
  3162. fMakeCopyColumn(ds_grd_mainordlist1,"rsrvdt","bf_srchrsrvtm");
  3163. }
  3164. function cf_TRAEA01502(sSvcId, nErrorCode, sErrorMsg) {
  3165. if(nErrorCode < 0) return;
  3166. ds_grd_mainordlist2.addColumn("check","string");
  3167. // ds_grd_mainordlist2.deleteColumn("acptrem");
  3168. ds_grd_mainordlist2.updateColID("execrem","acptrem");
  3169. fMakeCopyColumn(ds_grd_mainordlist2,"basesuppdeptcd","issdept");
  3170. }
  3171. function cf_TRAEA01503(sSvcId, nErrorCode, sErrorMsg) {
  3172. if(nErrorCode < 0) return;
  3173. ds_grd_mainordlist3.addColumn("check","string");
  3174. ds_grd_mainordlist3.updateColID("execrem","acptrem");
  3175. fMakeCopyColumn(ds_grd_mainordlist3,"basesuppdeptcd","issdept");
  3176. }
  3177. function cf_TRAEA01504(sSvcId, nErrorCode, sErrorMsg) {
  3178. if(nErrorCode < 0) return;
  3179. dsf_setFixVal(ds_grd_mainordlist4, "hight:170,weight:50");
  3180. // ds_grd_mainordlist4.addColumn("check","string");
  3181. fMakeCopyColumn(ds_grd_mainordlist1,"basesuppdeptcd","issdept");
  3182. fMakeCopyColumn(ds_grd_mainordlist1,"rsrvdt","bf_srchrsrvtm");
  3183. }
  3184. function cf_TRAEA01505(sSvcId, nErrorCode, sErrorMsg) {
  3185. if(nErrorCode < 0) return;
  3186. fMakeCopyColumn(ds_grd_subordlist1,"basesuppdeptcd","issdept");
  3187. fMakeCopyColumn(ds_grd_subordlist1,"rsrvdt","bf_srchrsrvtm");
  3188. ds_grd_subordlist1.addColumn("color","string");
  3189. ds_grd_subordlist1.rowposition = -1;
  3190. }
  3191. function cf_TRAEA01515(sSvcId, nErrorCode, sErrorMsg) {
  3192. if(nErrorCode < 0) return;
  3193. fMakeCopyColumn(ds_grd_subordlist2,"basesuppdeptcd","issdept");
  3194. fMakeCopyColumn(ds_grd_subordlist2,"rsrvdt","bf_srchrsrvtm");
  3195. }
  3196. function fSetPrint() {
  3197. //20190710 바코드 재설정
  3198. fn_barcdprntsetup();
  3199. var count = ds_barcdprntsetup.rowcount;
  3200. if(count == 0) {
  3201. ds_barcdprntsetup.addRow();
  3202. }
  3203. var objArg = new Object();
  3204. objArg.arg_sSetupInfo = ds_barcdprntsetup.getColumn(0,"prntsetupinfo");
  3205. objArg.arg_sCallBackFunction = "lf_convertXmlToDs";
  3206. frmf_open("SPZUR00300","SPZUR00300", objArg, "", "", "", "","","","","","","M" );
  3207. // 렉스퍼트로 라벨출력가능하게 수정
  3208. //open("SPZUR00300", "", "", "", "", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  3209. if(!utlf_isNull(frmf_getParameter("SetupInfo")))
  3210. ds_main_barcdprntsetup.setColumn(0,"prntsetupinfo",frmf_clearParameter("SetupInfo"));
  3211. }
  3212. function ExeAccept (tabgubn) { //1
  3213. var loop;
  3214. var check;
  3215. ds_grd_mainordlist1.setColumn(0,"acptrem",group3.tar_execrem.value); //검사코멘트
  3216. group3.switch1.case1.grd_mainordlist1.enableredraw = false;
  3217. ds_grd_mainordlist1.filter("check=='1' || check=='Y'");
  3218. dsf_createDs("ds_tobeacptprcp");
  3219. ds_tobeacptprcp.copyData(ds_grd_mainordlist1,true);
  3220. ds_tobeacptprcp.updateColID("acptrem","execrem");
  3221. ds_grd_mainordlist1.filter("");
  3222. group3.switch1.case1.grd_mainordlist1.enableredraw = true;
  3223. // ds_tobeacptprcp.addConstColumn("transactiongubn", "1");
  3224. // ds_tobeacptprcp.addConstColumn("largeclass", "M5");
  3225. // ds_tobeacptprcp.addConstColumn("execprcpstat440cd", "440");
  3226. // ds_tobeacptprcp.addConstColumn("execprcpstat610cd", "610");
  3227. // ds_tobeacptprcp.addConstColumn("rtno", "-");
  3228. // ds_tobeacptprcp.addConstColumn("execrid1", "-");
  3229. // ds_tobeacptprcp.addConstColumn("reqagnphoyn", "N");
  3230. // ds_tobeacptprcp.addConstColumn("tretflagcd", "440");
  3231. // ds_tobeacptprcp.addConstColumn("indd", "00000000");
  3232. // ds_tobeacptprcp.addConstColumn("icfflag", "-");
  3233. // ds_tobeacptprcp.addConstColumn("arvdt", "-");
  3234. // ds_tobeacptprcp.addConstColumn("execrid2", "-");
  3235. // ds_tobeacptprcp.addConstColumn("execrid3", "-");
  3236. // ds_tobeacptprcp.addConstColumn("execrid4", "-");
  3237. // ds_tobeacptprcp.addConstColumn("excuexectodt", "00000000000000");
  3238. // ds_tobeacptprcp.addConstColumn("excuexecfromdt1", "00000000000000");
  3239. // ds_tobeacptprcp.addConstColumn("excueqcd1", "-");
  3240. // ds_tobeacptprcp.addConstColumn("excuexecfromdt2", "00000000000000");
  3241. // ds_tobeacptprcp.addConstColumn("excueqcd2", "-");
  3242. // ds_tobeacptprcp.addConstColumn("excuexecfromdt3", "00000000000000");
  3243. // ds_tobeacptprcp.addConstColumn("excueqcd3", "-");
  3244. // ds_tobeacptprcp.addConstColumn("excuexecfromdt4", "00000000000000");
  3245. // ds_tobeacptprcp.addConstColumn("excueqcd4", "-");
  3246. // ds_tobeacptprcp.addConstColumn("excuexecfromdt5", "00000000000000");
  3247. // ds_tobeacptprcp.addConstColumn("excueqcd5", "-");
  3248. // ds_tobeacptprcp.addConstColumn("opdrid", "orddrid");
  3249. // ds_tobeacptprcp.addConstColumn("autroomassgyn", "N");
  3250. // ds_tobeacptprcp.addConstColumn("rsltdd", "00000000");
  3251. // ds_tobeacptprcp.addConstColumn("rslttm", "000000");
  3252. // ds_tobeacptprcp.addConstColumn("rsltno", "0");
  3253. // ds_tobeacptprcp.addConstColumn("rsltseqno", "0");
  3254. // ds_tobeacptprcp.addConstColumn("cnfmdt", "00000000000000");
  3255. // //ds_tobeacptprcp.addConstColumn("cnfmdt", "00000000000000");
  3256. // ds_tobeacptprcp.addConstColumn("cnfmmanid", "-");
  3257. // ds_tobeacptprcp.addConstColumn("eqmtifimgyn", "N");
  3258. // ds_tobeacptprcp.addConstColumn("ocrimgyn", "N");
  3259. // ds_tobeacptprcp.addConstColumn("rslttmplyn", "N");
  3260. // ds_tobeacptprcp.addConstColumn("deptrem", "-");
  3261. // ds_tobeacptprcp.addConstColumn("patrem", "-");
  3262. // ds_tobeacptprcp.addConstColumn("excupartgrpcd", "-");
  3263. dsf_setFixVal(ds_tobeacptprcp, "transactiongubn:1,largeclass:M5,execprcpstat440cd:440,execprcpstat610cd:610,rtno:-,execrid1:-,reqagnphoyn:N,tretflagcd:440"
  3264. +",indd:00000000,icfflag:-,wardcd:-,arvdt:-,execrid2:-,execrid3:-,execrid4:-,excuexectodt:00000000000000"
  3265. +",excuexecfromdt1:00000000000000,excueqcd1:-,excuexecfromdt2:00000000000000,excueqcd2:-,excuexecfromdt3:00000000000000"
  3266. +",excueqcd3:-,excuexecfromdt4:00000000000000,excueqcd4:-,excuexecfromdt5:00000000000000,excueqcd5:-,opdrid:orddrid"
  3267. +",autroomassgyn:N,rsltdd:00000000,rslttm:000000,rsltno:0,rsltseqno:0,cnfmdt:00000000000000,cnfmmanid:-,eqmtifimgyn:N"
  3268. +",ocrimgyn:N,rslttmplyn:N,deptrem:-,patrem:-,excupartgrpcd:-");
  3269. // 처방 -> 검사접수/실시완료
  3270. if( tabgubn == "Y" ) {
  3271. if ( sysf_messageBox("접수를 ","Q002")==6 ) {
  3272. var oParam = {};
  3273. oParam.id = "TXAEA01504";
  3274. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  3275. oParam.method = "reqExeAcptExamCureExecPrcpList";
  3276. oParam.inds = "reqparam=ds_tobeacptprcp";
  3277. oParam.outds = "ds_result_item=item";
  3278. oParam.async = false;
  3279. //oParam.callback = "cf_TXAEA01504";
  3280. tranf_submit(oParam);
  3281. }
  3282. dsf_deleteDs("ds_tobeacptprcp");
  3283. }
  3284. }
  3285. function ExeCncl () {
  3286. var loop;
  3287. var check;
  3288. var fRow = ds_grd_mainordlist2.findRow("check","Y");
  3289. if(ds_grd_mainordlist2.getColumn(fRow,"execprcpstatcd") == "610") {
  3290. //취소코드조회
  3291. dsf_createDsRow("ds_send_popup", [{col: "basecdflag", val:"C"}
  3292. ]);
  3293. var objArg = new Object();
  3294. objArg.arg_ds_receivedata = ds_send_popup;
  3295. frmf_modal("SPAEA01500", "SPAEA01500",objArg,"", 0,100,150, "","","","","","M");
  3296. //trace("ds_grd_mainordlist2.rowposition = " + ds_grd_mainordlist2.rowposition);
  3297. ds_grd_mainordlist2.setColumn(ds_grd_mainordlist2.rowposition,"cnclresncd", ds_hidden_cnclcdlist.getColumn(0,"cnclcd"));
  3298. ds_grd_mainordlist2.setColumn(ds_grd_mainordlist2.rowposition,"cnclresncdnm", ds_hidden_cnclcdlist.getColumn(0,"cnclcdnm"));
  3299. group3.switch1.case2.grd_mainordlist2.enableredraw = false;
  3300. ds_grd_mainordlist2.filter("check=='1' || check=='Y'");
  3301. dsf_createDs("ds_tobeacptprcp");
  3302. ds_tobeacptprcp.copyData(ds_grd_mainordlist2,true);
  3303. ds_grd_mainordlist2.filter("");
  3304. group3.switch1.case2.grd_mainordlist2.enableredraw = true;
  3305. if ( sysf_messageBox("실시취소를 ","Q002")==6 ) {
  3306. //취소사유코드 체크
  3307. if( utlf_isNull(ds_hidden_cnclcdlist.getColumn(0,"cnclcd"))){
  3308. sysf_messageBox("취소사유코드를","C001");
  3309. return "0";
  3310. }else{
  3311. // ds_tobeacptprcp.addConstColumn("transactiongubn", "4");
  3312. // ds_tobeacptprcp.addConstColumn("largeclass", "M5");
  3313. // ds_tobeacptprcp.addConstColumn("execprcpstatXcd", "X");
  3314. // ds_tobeacptprcp.addConstColumn("execprcpstat440cd", "440");
  3315. // ds_tobeacptprcp.addConstColumn("execprcpstat610cd", "610");
  3316. // ds_tobeacptprcp.addConstColumn("execprcpstat230cd", "230");
  3317. // ds_tobeacptprcp.addConstColumn("execprcpstat100cd", "100");
  3318. // ds_tobeacptprcp.addConstColumn("execprcpstat000cd", "000");
  3319. // ds_tobeacptprcp.addConstColumn("execprcpstatYcd", "Y");
  3320. // ds_tobeacptprcp.addConstColumn("rtno", "-");
  3321. // ds_tobeacptprcp.setColumn(0,"execdd", "00000000");
  3322. // ds_tobeacptprcp.addConstColumn("exectm", "000000");
  3323. // ds_tobeacptprcp.addConstColumn("acptdd", "00000000");
  3324. // ds_tobeacptprcp.addConstColumn("acpttm", "000000");
  3325. // ds_tobeacptprcp.addConstColumn( "acptpsnid", "-");
  3326. // ds_tobeacptprcp.addConstColumn( "pacsno", "-");
  3327. // ds_tobeacptprcp.addConstColumn( "cnclflag", "A");
  3328. // ds_tobeacptprcp.addConstColumn("execrid1", "-");
  3329. // //ds_tobeacptprcp.addConstColumn("execrid1", "-");
  3330. // ds_tobeacptprcp.addConstColumn("execrid2", "-");
  3331. // ds_tobeacptprcp.addConstColumn("execrid3", "-");
  3332. // ds_tobeacptprcp.addConstColumn("execrid4", "-");
  3333. // ds_tobeacptprcp.addConstColumn("excuexectodt", "00000000000000");
  3334. // ds_tobeacptprcp.addConstColumn("excuexecfromdt1", "00000000000000");
  3335. // ds_tobeacptprcp.addConstColumn("excueqcd1", "-");
  3336. // ds_tobeacptprcp.addConstColumn("excuexecfromdt2", "00000000000000");
  3337. // ds_tobeacptprcp.addConstColumn("excueqcd2", "-");
  3338. // ds_tobeacptprcp.addConstColumn("excuexecfromdt3", "00000000000000");
  3339. // ds_tobeacptprcp.addConstColumn("excueqcd3", "-");
  3340. // ds_tobeacptprcp.addConstColumn("excuexecfromdt4", "00000000000000");
  3341. // ds_tobeacptprcp.addConstColumn("excueqcd4", "-");
  3342. // ds_tobeacptprcp.addConstColumn("excuexecfromdt5", "00000000000000");
  3343. // ds_tobeacptprcp.addConstColumn("excueqcd5", "-");
  3344. // ds_tobeacptprcp.addConstColumn("opdrid", "-");
  3345. // ds_tobeacptprcp.addConstColumn("tretflagcd", "610");
  3346. // ds_tobeacptprcp.addConstColumn("indd", "00000000");
  3347. // ds_tobeacptprcp.addConstColumn("icfflag", "-");
  3348. // ds_tobeacptprcp.addConstColumn("reqagnphoyn", "N");
  3349. // ds_tobeacptprcp.addConstColumn("wardcd", "-");
  3350. // ds_tobeacptprcp.addConstColumn("roomcd", "-");
  3351. // ds_tobeacptprcp.addConstColumn("arvdt", "-");
  3352. // ds_tobeacptprcp.addConstColumn("autroomassgyn", "N");
  3353. // ds_tobeacptprcp.addConstColumn("rsltdd", "00000000");
  3354. // ds_tobeacptprcp.addConstColumn("rslttm", "000000");
  3355. // ds_tobeacptprcp.addConstColumn("rsltno", "0");
  3356. // ds_tobeacptprcp.addConstColumn("rsltseqno", "0");
  3357. // ds_tobeacptprcp.addConstColumn("cnfmdt", "00000000000000");
  3358. // //ds_tobeacptprcp.addConstColumn("cnfmdt", "00000000000000");
  3359. // ds_tobeacptprcp.addConstColumn("cnfmmanid", "-");
  3360. // ds_tobeacptprcp.addConstColumn("eqmtifimgyn", "N");
  3361. // ds_tobeacptprcp.addConstColumn("ocrimgyn", "N");
  3362. // ds_tobeacptprcp.addConstColumn("rslttmplyn", "N");
  3363. // ds_tobeacptprcp.addConstColumn("deptrem", "-");
  3364. // ds_tobeacptprcp.addConstColumn("patrem", "-");
  3365. // ds_tobeacptprcp.addConstColumn("excupartgrpcd", "-");
  3366. dsf_setFixVal(ds_tobeacptprcp, "transactiongubn:4,largeclass:M5,rtno:-,execprcpstatXcd:X,execprcpstat440cd:440,execprcpstat610cd:610"
  3367. +",execprcpstat230cd:230,execprcpstat100cd:100,execprcpstat000cd:000,execprcpstatYcd:Y,execdd:00000000"
  3368. +",exectm:000000,execrid1:-,acptdd:00000000,acpttm:000000,acptpsnid:-,pacsno:-,cnclflag:A,execrid1:-"
  3369. +",execrid2:-,execrid3:-,execrid4:-,excuexectodt:00000000000000,excuexecfromdt1:00000000000000,excueqcd1:-"
  3370. +",excuexecfromdt2:00000000000000,excueqcd2:-,excuexecfromdt3:00000000000000,excueqcd3:-"
  3371. +",excuexecfromdt4:00000000000000,excueqcd4:-,excuexecfromdt5:00000000000000,excueqcd5:-,opdrid:-"
  3372. +",tretflagcd:610,indd:00000000,icfflag:-,reqagnphoyn:N,wardcd:-,roomcd:-,arvdt:-,autroomassgyn:N"
  3373. +",rsltdd:00000000,rslttm:000000,rsltno:0,rsltseqno:0,cnfmdt:00000000000000,cnfmmanid:-,eqmtifimgyn:N"
  3374. +",ocrimgyn:N,rslttmplyn:N,deptrem:-,patrem:-");
  3375. var oParam = {};
  3376. oParam.id = "TXAEA01502";
  3377. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  3378. oParam.method = "reqExeAcptExamCureExecPrcpList";
  3379. oParam.inds = "reqparam=ds_tobeacptprcp";
  3380. oParam.outds = "ds_result_item=item";
  3381. oParam.async = false;
  3382. //oParam.callback = "cf_TXAEA01502";
  3383. tranf_submit(oParam);
  3384. }
  3385. }
  3386. }
  3387. if(ds_grd_mainordlist2.getColumn(fRow,"execprcpstatcd") == "440") {
  3388. group3.switch1.case2.grd_mainordlist2.enableredraw = false;
  3389. ds_grd_mainordlist2.filter("check=='1' || check=='Y'");
  3390. dsf_createDs("ds_tobeacptprcp");
  3391. ds_tobeacptprcp.copyData(ds_grd_mainordlist2,true);
  3392. ds_grd_mainordlist2.filter("");
  3393. group3.switch1.case2.grd_mainordlist2.enableredraw = true;
  3394. if ( sysf_messageBox("접수취소를 ","Q002")==6 ) {
  3395. dsf_setFixVal(ds_tobeacptprcp, "transactiongubn:3,largeclass:M5,rtno:-,execprcpstatXcd:X,execprcpstat440cd:440,execprcpstat610cd:610,execprcpstat230cd:230,execprcpstat100cd:100"
  3396. +",execprcpstat000cd:000,execprcpstatYcd:Y,acptdd:00000000,acpttm:000000,acptpsnid:-,pacsno:-,cnclflag:A,execrid1:-,execrid2:-,execrid3:-,execrid4:-"
  3397. +",excuexectodt:00000000000000,excuexecfromdt1:00000000000000,excueqcd1:-,excuexecfromdt2:00000000000000,excueqcd2:-,excuexecfromdt3:00000000000000"
  3398. +",excueqcd3:-,excuexecfromdt4:00000000000000,excueqcd4:-,excuexecfromdt5:00000000000000,excueqcd5:-,opdrid:-,tretflagcd:440,execdd:00000000,exectm:000000"
  3399. +",execrid1:-,indd:00000000,icfflag:-,reqagnphoyn:N,wardcd:-,roomcd:-,arvdt:-,autroomassgyn:N,rsltdd:00000000,rslttm:000000,rsltno:0,rsltseqno:0"
  3400. +",cnfmdt:00000000000000,cnfmmanid:-,eqmtifimgyn:N,ocrimgyn:N,rslttmplyn:N,deptrem:-,patrem:-");
  3401. var oParam = {};
  3402. oParam.id = "TXAEA01501";
  3403. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  3404. oParam.method = "reqExeAcptExamCureExecPrcpList";
  3405. oParam.inds = "reqparam=ds_tobeacptprcp";
  3406. oParam.outds = "ds_result_item=item";
  3407. oParam.async = false;
  3408. //oParam.callback = "cf_TXAEA01501";
  3409. tranf_submit(oParam);
  3410. }
  3411. }
  3412. dsf_deleteDs("ds_tobeacptprcp"); // send 접수 값 비우기
  3413. }
  3414. function exeRsrvTransaction(str) {
  3415. //예약일때
  3416. if(str == "rsrv") {
  3417. if ( group3.switch1.tabindex == 0 ) { //미예약탭에서 예약
  3418. ds_grd_subordlist1.setColumn(ds_grd_subordlist1.rowposition,"rsrvdt",ds_send.getColumn(0,"rsrvdd")+group3.cmb_rsrvtm.value );
  3419. ds_grd_subordlist1.setColumn(ds_grd_subordlist1.rowposition,"excuroomcd",ds_subordlist1.getColumn(0,"excuroomcd"));
  3420. dsf_createDs("ds_send_req");
  3421. dsf_copyColInfo(ds_send_req,ds_grd_subordlist1,true);
  3422. ds_send_req.addRow();
  3423. ds_send_req.addColumn("flag","string");
  3424. ds_send_req.copyRow(0,ds_grd_subordlist1,ds_grd_subordlist1.rowposition);
  3425. ds_send_req.setColumn(0,"flag", str);
  3426. }
  3427. if ( group3.switch1.tabindex == 1 ) { //예약탭에서 예약변경
  3428. ds_grd_mainordlist1.setColumn(ds_grd_mainordlist1.rowposition,"rsrvrem", group3.tar_acptrem.value); //예약코멘트
  3429. ds_grd_mainordlist1.setColumn(ds_grd_mainordlist1.rowposition,"rsrvdt",ds_send.getColumn(0,"rsrvdd")+group3.cmb_rsrvtm.value);
  3430. ds_grd_mainordlist1.setColumn(ds_grd_mainordlist1.rowposition,"excuroomcd",ds_subordlist1.getColumn(0,"excuroomcd"));
  3431. dsf_createDs("ds_send_req");
  3432. dsf_copyColInfo(ds_send_req,ds_grd_mainordlist1,true);
  3433. ds_send_req.addRow();
  3434. ds_send_req.addColumn("flag","string");
  3435. ds_send_req.copyRow(0,ds_grd_mainordlist1,ds_grd_mainordlist1.rowposition);
  3436. ds_send_req.setColumn(0,"flag", str);
  3437. }
  3438. if ( group3.switch1.tabindex == 4 ) { //전체탭에서 예약 및 변경
  3439. ds_grd_mainordlist4.setColumn(ds_grd_mainordlist4.rowposition,"rsrvrem",group3.tar_acptrem.value); //예약코멘트
  3440. ds_grd_mainordlist4.setColumn(ds_grd_mainordlist4.rowposition,"rsrvdt",ds_send.getColumn(0,"rsrvdd")+group3.cmb_rsrvtm.value);
  3441. ds_grd_mainordlist4.setColumn(ds_grd_mainordlist4.rowposition,"excuroomcd",ds_subordlist1.getColumn(0,"excuroomcd"));
  3442. dsf_createDs("ds_send_req");
  3443. dsf_copyColInfo(ds_send_req,ds_grd_mainordlist4,true);
  3444. ds_send_req.addRow();
  3445. ds_send_req.addColumn("flag","string");
  3446. ds_send_req.copyRow(0,ds_grd_mainordlist4,ds_grd_mainordlist4.rowposition);
  3447. ds_send_req.setColumn(0,"flag", str);
  3448. }
  3449. }
  3450. //예약취소일때
  3451. if(str == "cncl") {
  3452. dsf_createDs("ds_send_req");
  3453. dsf_copyColInfo(ds_send_req,ds_grd_mainordlist1,true);
  3454. ds_send_req.addRow();
  3455. ds_send_req.addColumn("flag","string");
  3456. ds_send_req.copyRow(0,ds_grd_mainordlist1,ds_grd_mainordlist1.rowposition);
  3457. ds_send_req.setColumn(0,"flag", str);
  3458. ds_send_req.setColumn(0,"basesuppdeptcd",lv_instance1 );
  3459. }
  3460. ds_send_req.updateColID("prcpgenrflag","rsrvflag");
  3461. ds_send_req.updateColID("orddd","indd");
  3462. ds_send_req.addColumn("actorddd","string");
  3463. ds_send_req.addColumn("srchrsrvtm","string");
  3464. ds_send_req.setColumn(0,"actorddd",ds_send_req.getColumn(0,"prcpdd") );
  3465. ds_send_req.setColumn(0,"srchrsrvtm",ds_send_req.getColumn(0,"rsrvdt") );
  3466. dsf_setFixVal(ds_send_req, "norsrvrem:M5,nottotal:nottotal,cdisexcuroomcd:2010302030,cdisexamroomnm:CDIS내시경검사실");
  3467. dsf_setDefaultVal(ds_send_req, "all");
  3468. var oParam = {};
  3469. oParam.id = "TXAEA01503";
  3470. oParam.service = "examcurersrvapp.SytsRsrv";
  3471. oParam.method = "reqExcuRsrv";
  3472. oParam.inds = "req=ds_send_req";
  3473. oParam.outds = "ds_result_item=autorsrvtm";
  3474. oParam.transaction = false;
  3475. oParam.async = false;
  3476. //oParam.callback = "cf_TXAEA01503";
  3477. tranf_submit(oParam);
  3478. }
  3479. function fInitialize() {
  3480. group3.switch1.case1.rtfviewer.Clear();
  3481. }
  3482. function fRoomChange() {
  3483. alert("기능 구현중입니다. - 개발팀 -");
  3484. return "0";
  3485. }
  3486. function fSpecdrChange() {
  3487. var idx = ds_grd_subprcplist.rowposition;
  3488. var findrow = ds_grd_subprcplist.findRowExpr("check=='1' || check=='Y'");
  3489. if ( findrow < 0 ) {
  3490. sysf_messageBox("처방내역을","C002");
  3491. }else {
  3492. if( ds_grd_subprcplist.getColumn(idx,"choiordflag") == "Y" ) {
  3493. if( ds_grd_subprcplist.getColumn(idx,"execprcpstatcd") <= 440 ) {
  3494. var ioflag = "";
  3495. if( !utlf_isNull(ds_grd_subprcplist.getColumn(idx,"roomcd")) && ds_grd_subprcplist.getColumn(idx,"roomcd") != "-" ){ //입원
  3496. ioflag = "I";
  3497. }else{
  3498. ioflag = "O";
  3499. }
  3500. dsf_createDsRow("ds_send_setspecdrcd" , [
  3501. {col: "prcpdd", val:ds_grd_subprcplist.getColumn(idx,"prcpdd")}
  3502. ,{col: "pid", val:ds_grd_subprcplist.getColumn(idx,"pid")}
  3503. ,{col: "execprcpuniqno", val:ds_grd_subprcplist.getColumn(idx,"execprcpuniqno")}
  3504. ,{col: "specdrid", val:ds_grd_subprcplist.getColumn(idx,"specdrid")}
  3505. ,{col: "basesuppdeptcd", val:ds_grd_subprcplist.getColumn(idx,"suppdeptcd")}
  3506. ,{col: "prcpno", val:ds_grd_subprcplist.getColumn(idx,"prcpno")}
  3507. ,{col: "prcphistno", val:ds_grd_subprcplist.getColumn(idx,"prcphistno") }
  3508. ,{col: "cretno", val:ds_grd_subprcplist.getColumn(idx,"cretno")}
  3509. ,{col: "orddd", val:ds_grd_subprcplist.getColumn(idx,"orddd")}
  3510. ,{col: "orddeptcd", val:ds_grd_subprcplist.getColumn(idx,"orddeptcd")}
  3511. ,{col: "orddrid", val:ds_grd_subprcplist.getColumn(idx,"orddrid")}
  3512. ,{col: "calcscorcd", val:ds_grd_subprcplist.getColumn(idx,"calcscorcd")}
  3513. ,{col: "ioflag", val:ioflag}
  3514. ]);
  3515. var oParam = {};
  3516. oParam.id = "TXAEA01512";
  3517. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  3518. oParam.method = "reqSetExchangeExcuSpecdrCd";
  3519. oParam.inds = "reqparam=ds_send_setspecdrcd";
  3520. oParam.outds = "ds_result_item=item";
  3521. oParam.async = false;
  3522. // oParam.callback = "cf_TXAEA01512";
  3523. tranf_submit(oParam);
  3524. dsf_createDsRow("ds_send_reqparam", [{col: "basesuppdeptcd", val:lv_instance1}
  3525. ,{col: "suppdeptcd", val:lv_instance1}
  3526. ,{col: "excuroomcd", val:ds_send.getColumn(0,"excuroomcd") }
  3527. ,{col: "memorgstdd", val:ds_send.getColumn(0,"memodd") }
  3528. ,{col: "memorgstddprcpdd", val:ds_send.getColumn(0,"memorgstddprcpdd") }
  3529. ,{col: "ecgflag", val:ds_send.getColumn(0,"ecgflag") }
  3530. ,{col: "initexcuroom", val:ds_send.getColumn(0,"excuroomcdid") }
  3531. ,{col: "bodypartcdid", val:ds_send.getColumn(0,"bodypartcdid") }
  3532. ,{col: "srchdate1", val:ds_send.getColumn(0,"srchdate1") }
  3533. ,{col: "srchdate2", val:ds_send.getColumn(0,"srchdate2") }
  3534. ,{col: "acptlistflag", val:ds_send.getColumn(0,"acptlistflag") }
  3535. ,{col: "pid", val:ds_send.getColumn(0,"srchpid") }
  3536. ,{col: "srchpid", val:ds_send.getColumn(0,"srchpid") }
  3537. ,{col: "excuroomflag", val:lv_instance1 }
  3538. ,{col: "orddd", val:ds_send.getColumn(0,"orddd") }
  3539. ,{col: "prcpgenrflag", val:ds_send.getColumn(0,"prcpgenrflag") }
  3540. ,{col: "ioflag", val:ds_send.getColumn(0,"ioflag") }
  3541. ,{col: "execprcpuniqno", val:ds_send.getColumn(0,"execprcpuniqno") }
  3542. ,{col: "orddeptcd", val:ds_send.getColumn(0,"orddeptcd") }
  3543. ,{col: "prcpdd", val:ds_send.getColumn(0,"prcpdd") }
  3544. ,{col: "prcpno", val:ds_send.getColumn(0,"prcpno") }
  3545. ,{col: "largeclass", val:"M5" }
  3546. ,{col: "sublist", val:"sub" }
  3547. ,{col: "deptflag", val:ds_send.getColumn(0,"deptflag") }
  3548. ]);
  3549. //상병정보, 검사예약, 진료예약, 처방내역
  3550. var oParam = {};
  3551. oParam.id = "TRAEA01506";
  3552. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  3553. oParam.method = "reqGetExamCureExecPrcpList";
  3554. oParam.inds = "reqparam=ds_send_reqparam";
  3555. oParam.outds = "ds_subordlist1=examcureexecdiaglist ds_grd_ordlist1=gettestrsrvinfo ds_grd_ordlist2=getordrsrvinfo ds_grd_subprcplist=examcureexecprcplist ds_examcureexecdiaglist=diaglist ds_prcpdelifactlist=prcpdelifactlist ds_isolinfo=patisolinfolist ds_main_subordlist_nameconflict=conflictyn";
  3556. oParam.async = false;
  3557. oParam.callback = "cf_TRAEA01506";
  3558. tranf_submit(oParam);
  3559. grdf_setToolTipBind(group3.grd_subprcplist);
  3560. grdf_setToolTipBind(group3.switch2.case7.grd_ordlist2);
  3561. grdf_setToolTipBind(group3.switch2.case6.grd_ordlist1);
  3562. ds_grd_ordlist1.rowposition = -1;
  3563. ds_grd_ordlist2.rowposition = -1;
  3564. ds_grd_subprcplist.rowposition = -1;
  3565. }else{
  3566. sysf_messageBox("선택진료의 변경은 미예약, 예약의 경우에만", "I006");
  3567. return;
  3568. }
  3569. } else {
  3570. sysf_messageBox("선택진료일 경우에만 변경이", "I006");
  3571. return;
  3572. }
  3573. }
  3574. }
  3575. function fAgreeFormPrnt(){
  3576. frmf_modal("SMMRF02600","SMMRF02600", "", "", "" , "", "", "", "", "" , "", "","M");
  3577. }
  3578. function fSetWaitExcuRoomPatList() {
  3579. var dutplceinstcd = sysf_getUserInfo("dutplceinstcd");
  3580. var waitroomcdinstcd = ds_init_A0608.getColumn(0,"cdid");
  3581. var waitroomcdyn = ds_init_A0608.getColumn(0,"cdnm");
  3582. if ( dutplceinstcd == waitroomcdinstcd && waitroomcdyn != "Y") {
  3583. sysf_messageBox("등록된 대기자시스템이", "I004");
  3584. return;
  3585. }
  3586. var schelistcnt = ds_grd_mainordlist2.rowposition;
  3587. var instcd = sysf_getUserInfo("dutplceinstcd"); // 기관코드
  3588. var pid = ds_grd_mainordlist2.getColumn(schelistcnt, "pid"); // 환자등록번호
  3589. var orddd = utlf_getCurrentDate(); // 진료일자
  3590. var orddeptcd = lv_instance1; // 지원부서코드
  3591. var ordroomcd = ds_grd_mainordlist2.getColumn(schelistcnt, "excuroomcd"); // 검사실코드
  3592. var orddrid = ds_grd_mainordlist2.getColumn(schelistcnt, "orddrid"); // 진료의ID
  3593. var ordrsrvtm = utlf_getCurrentTime().substring(0,4); // 진료예약시간
  3594. var ordrsrvseqno = schelistcnt; // 진료예약순서
  3595. var dayflag = "Y"; // 당일구분
  3596. dsf_createDsRow("ds_temp", [{col: "chk", val:"1"}
  3597. ,{col: "instcd", val:instcd}
  3598. ,{col: "pid", val:pid }
  3599. ,{col: "orddd", val:orddd }
  3600. ,{col: "orddeptcd", val:orddeptcd}
  3601. ,{col: "ordroomcd", val:ordroomcd}
  3602. ,{col: "orddrid", val:orddrid }
  3603. ,{col: "ordrsrvtm", val:ordrsrvtm }
  3604. ,{col: "updttm", val:ordrsrvtm }
  3605. ,{col: "ordrsrvseqno", val:"" }
  3606. ,{col: "cretno", val:"" }
  3607. ,{col: "dayflag", val:dayflag }
  3608. ]);
  3609. // 검사실 전광판 대기 환자 등록 인터페이스 정보
  3610. fSaveExcuRoomPatList(ds_temp);
  3611. }
  3612. /*******************************************************************************************************************************************************************/
  3613. // 간호처방 팝업
  3614. //
  3615. // [간호처방(SMMNW10900) 파라미터 공지]
  3616. // * 대상 : 내시경실, 부정맥검사실, 간크리닉, 기관지경실, 심장초음파실
  3617. // * 이유 : 간호기능파트에서 간호처방 프로그램 오픈시 사용자 근무정보에 따라 처방위치의 기본설정을 USER위치(각 근무지)로 변경요청에 의함.
  3618. // * 처리방법
  3619. // 1. 화면에서 팝업으로 띄울경우
  3620. // -> setParameter("screenParam", "SMAEA");
  3621. // 2. 메뉴에서 오픈 할 경우
  3622. // -> 메뉴파라미터 추가 : "SMAEA"
  3623. /*******************************************************************************************************************************************************************/
  3624. function fNurPrcp(){
  3625. frmf_setParameter("screenParam","SMAEA");
  3626. frmf_open("SMMNW10900", "SMMNW10900","", "", "" , "", "","", "", "" , "", "","M");
  3627. }
  3628. /*******************************************************************************************************************************************************************/
  3629. // 통합기록조회 팝업
  3630. /*******************************************************************************************************************************************************************/
  3631. function fTotalRprtSrch(){
  3632. var pid = ds_subordlist1.getColumn(0,"pid");
  3633. if(utlf_isNull(pid)){
  3634. sysf_messageBox("통합기록조회를 검색할 환자를", "C002");
  3635. return;
  3636. }
  3637. var wndobj = frmf_findPopup("SMMRI00400");
  3638. if(!utlf_isNull(wndobj)){
  3639. frmf_setParameter("SMMRI00400_param_pid", ds_subordlist1.getColumn(0,"pid"));
  3640. wndobj.fInitalize();
  3641. }else{
  3642. frmf_setParameter("SMMRI00400_param_pid", ds_subordlist1.getColumn(0,"pid"));
  3643. frmf_open("SMMRI00400","SMMRI00400","","","","","","","","","","","M");
  3644. }
  3645. }
  3646. /*******************************************************************************************************************************************************************/
  3647. // 진정/회복 서식목록 팝업
  3648. /*******************************************************************************************************************************************************************/
  3649. function fDepeRecovDocuSrch(){
  3650. var pid = ds_send.getColumn(0,"srchpid");
  3651. var orddd = ds_send.getColumn(0,"orddd");
  3652. var cretno = ds_send.getColumn(0,"cretno");
  3653. var ioflag = ds_send.getColumn(0,"prcpgenrflag");
  3654. var orddeptcd = ds_send.getColumn(0,"orddeptcd");
  3655. var orddrid = ds_send.getColumn(0,"orddrid");
  3656. var patnm = ds_send.getColumn(0,"patnm");
  3657. var age = ds_send.getColumn(0,"age");
  3658. var sex = ds_send.getColumn(0,"sex");
  3659. //20131107 실시일자추가
  3660. var execdd = ds_send.getColumn(0,"execdd");
  3661. if (execdd == "00000000") {
  3662. execdd = utlf_getCurrentDate();
  3663. }
  3664. //var suppdeptcd = ds_send.getColumn(0,"globalinstance/instance1");
  3665. var suppdeptcd = lv_instance1;
  3666. var formdeptcd = "2010300000";
  3667. frmf_setParameter("SPMMR05400_parm_pinfo", pid + "▦" + orddd + "▦" + cretno + "▦" + ioflag + "▦" + orddeptcd + "▦" + orddrid +"▦"+ patnm + "▦" + age + "▦" + sex + "▦" + suppdeptcd + "▦" + formdeptcd);
  3668. //20131107 서식코드 변경 by kya 1000007916->1000007334
  3669. //20150223 서식코드
  3670. // setParameter("SPMMR05400_parm_formcd", "1000007334"); // 내시경 진정/회복 서식기록 -- 교육 : 1000007334, 운영 : 1000007916
  3671. var grupcdid = "";
  3672. if ( age < 12 ) { //소아일 경우
  3673. ds_send.setColumn(0,"grupcdid","A0500");
  3674. grupcdid = "A0500";
  3675. } else { //성인일경우
  3676. ds_send.setColumn(0,"grupcdid","A0501");
  3677. grupcdid = "A0501";
  3678. }
  3679. dsf_createDsRow("ds_send_req" , [
  3680. {col: "grupcdid", val:grupcdid}
  3681. ,{col: "suppdeptcd", val:lv_instance1}
  3682. ]);
  3683. ds_codelist.clear();
  3684. var oParam = {};
  3685. oParam.id = "TRAEB00010";
  3686. oParam.service = "examcurebaseapp.ComCode";
  3687. oParam.method = "reqGetComCodeDetailList";
  3688. oParam.inds = "req=ds_send_req";
  3689. oParam.outds = "ds_codelist=item";
  3690. oParam.async = false;
  3691. oParam.callback = "cf_TRAEB00010";
  3692. tranf_submit(oParam);
  3693. if (arErrorCode.pop("TRAEB00010") > -1) {
  3694. var formcd = ds_codelist.getColumn(0,"cdid"); //서식코드
  3695. }
  3696. //alert("formcd = " + formcd);
  3697. frmf_setParameter("SPMMR05400_parm_formcd", formcd ); // 진정/회복 기록
  3698. frmf_setParameter("SPMMR05400_tabflag", "formlist");
  3699. //alert("execdd = " + execdd);
  3700. // 내시경 진정/회복 서식기록
  3701. frmf_setParameter("SPMMR05400_parm_formrecdd", execdd); //20131107 kya 추가
  3702. frmf_open("SPMMR05400","SPMMR05400" , "", "", "" , "", "", "", "", "" , "", "","M");
  3703. }
  3704. /*******************************************************************************************************************************************************************/
  3705. // 진정/회복 기록목록 팝업
  3706. /*******************************************************************************************************************************************************************/
  3707. function fDepeRecovRecSrch(){
  3708. var pid = ds_send.getColumn(0,"srchpid");
  3709. var orddd = ds_send.getColumn(0,"orddd");
  3710. var cretno = ds_send.getColumn(0,"cretno");
  3711. var ioflag = ds_send.getColumn(0,"prcpgenrflag");
  3712. var orddeptcd = ds_send.getColumn(0,"orddeptcd");
  3713. var orddrid = ds_send.getColumn(0,"orddrid");
  3714. var patnm = ds_send.getColumn(0,"patnm");
  3715. var age = ds_send.getColumn(0,"age");
  3716. var sex = ds_send.getColumn(0,"sex");
  3717. //20131107 실시일자추가
  3718. var execdd = ds_send.getColumn(0,"execdd");
  3719. if (execdd == "00000000") {
  3720. execdd = utlf_getCurrentDate();
  3721. }
  3722. //var suppdeptcd = ds_send.getColumn(0,"globalinstance/instance1");
  3723. var suppdeptcd = lv_instance1;
  3724. var formdeptcd = "2010300000";
  3725. frmf_setParameter("SPMMR05400_parm_pinfo", pid + "▦" + orddd + "▦" + cretno + "▦" + ioflag + "▦" + orddeptcd + "▦" + orddrid +"▦"+ patnm + "▦" + age + "▦" + sex + "▦" + suppdeptcd + "▦" + formdeptcd);
  3726. // 20131107 서식코드 변경 by kya 1000007916->1000007334
  3727. // setParameter("SPMMR05400_parm_formcd", "1000007334"); // 내시경 진정/회복 기록
  3728. var grupcdid = "";
  3729. if ( age < 12 ) { //소아일 경우
  3730. ds_send.setColumn(0,"grupcdid","A0500");
  3731. } else { //성인일경우
  3732. ds_send.setColumn(0,"grupcdid","A0501");
  3733. }
  3734. dsf_createDsRow("ds_send_req" , [
  3735. {col: "grupcdid", val:grupcdid}
  3736. ,{col: "suppdeptcd", val:lv_instance1}
  3737. ]);
  3738. ds_codelist.clear();
  3739. var oParam = {};
  3740. oParam.id = "TRAEB00010";
  3741. oParam.service = "examcurebaseapp.ComCode";
  3742. oParam.method = "reqGetComCodeDetailList";
  3743. oParam.inds = "req=ds_send_req";
  3744. oParam.outds = "ds_codelist=item";
  3745. oParam.async = false;
  3746. oParam.callback = "cf_TRAEB00010";
  3747. tranf_submit(oParam);
  3748. if (arErrorCode.pop("TRAEB00010") > -1) {
  3749. var formcd = ds_codelist.getColumn(0,"cdid"); //서식코드
  3750. }
  3751. //alert("진정/회복 기록목록 팝업 formcd = " + formcd);
  3752. frmf_setParameter("SPMMR05400_parm_formcd", formcd ); // 진정/회복 기록
  3753. frmf_setParameter("SPMMR05400_tabflag", "reclist"); // 내시경 진정/회복 기록
  3754. //alert("execdd = " + execdd);
  3755. frmf_setParameter("SPMMR05400_parm_formrecdd", execdd); //20131107 kya 추가
  3756. frmf_open("SPMMR05400","SPMMR05400", "", "", "" , "", "", "", "", "" , "", "","M");
  3757. }
  3758. /*******************************************************************************************************************************************************************/
  3759. // 2011.05.11 진정전 환자 평가서 서식목록 팝업_ 김금련
  3760. /*******************************************************************************************************************************************************************/
  3761. function fDepeRecovPatSrch(){
  3762. var pid = ds_send.getColumn(0,"srchpid");
  3763. var orddd = ds_send.getColumn(0,"orddd");
  3764. var cretno = ds_send.getColumn(0,"cretno");
  3765. var ioflag = ds_send.getColumn(0,"prcpgenrflag");
  3766. var orddeptcd = ds_send.getColumn(0,"orddeptcd");
  3767. var orddrid = ds_send.getColumn(0,"orddrid");
  3768. var patnm = ds_send.getColumn(0,"patnm");
  3769. var age = ds_send.getColumn(0,"age");
  3770. var sex = ds_send.getColumn(0,"sex");
  3771. //20131107 실시일자추가
  3772. var execdd = ds_send.getColumn(0,"execdd");
  3773. if (execdd == "00000000") {
  3774. execdd = utlf_getCurrentDate();
  3775. }
  3776. //var suppdeptcd = ds_send.getColumn(0,"globalinstance/instance1");
  3777. var suppdeptcd = lv_instance1;
  3778. var formdeptcd = "2010300000";
  3779. frmf_setParameter("SPMMR05400_parm_pinfo", pid + "▦" + orddd + "▦" + cretno + "▦" + ioflag + "▦" + orddeptcd + "▦" + orddrid +"▦"+ patnm + "▦" + age + "▦" + sex + "▦" + suppdeptcd + "▦" + formdeptcd);
  3780. frmf_setParameter("SPMMR05400_parm_formcd", "1000007333"); // 진정전 환자 평가서
  3781. frmf_setParameter("SPMMR05400_tabflag", "formlist"); // 진정전 환자 평가서 서식기록
  3782. frmf_setParameter("SPMMR05400_parm_formrecdd", execdd); //20131107 kya 추가
  3783. frmf_open("SPMMR05400","SPMMR05400", "", "", "" , "", "", "", "", "" , "", "","M");
  3784. }
  3785. /*******************************************************************************************************************************************************************/
  3786. // 2011.05.17 진정/회복 기록 팝업_ 김금련
  3787. /*******************************************************************************************************************************************************************/
  3788. function fDepeRecovGenSrch(){
  3789. var pid = ds_send.getColumn(0,"srchpid");
  3790. var orddd = ds_send.getColumn(0,"orddd");
  3791. var cretno = ds_send.getColumn(0,"cretno");
  3792. var ioflag = ds_send.getColumn(0,"prcpgenrflag");
  3793. var orddeptcd = ds_send.getColumn(0,"orddeptcd");
  3794. var orddrid = ds_send.getColumn(0,"orddrid");
  3795. var patnm = ds_send.getColumn(0,"patnm");
  3796. var age = ds_send.getColumn(0,"age");
  3797. var sex = ds_send.getColumn(0,"sex");
  3798. //var suppdeptcd = ds_send.getColumn(0,"globalinstance/instance1");
  3799. var suppdeptcd = lv_instance1;
  3800. var formdeptcd = "2010300000";
  3801. //20131107 실시일자추가
  3802. var execdd = ds_send.getColumn(0,"execdd");
  3803. if (execdd == "00000000") {
  3804. execdd = utlf_getCurrentDate();
  3805. }
  3806. frmf_setParameter("SPMMR05400_parm_pinfo", pid + "▦" + orddd + "▦" + cretno + "▦" + ioflag + "▦" + orddeptcd + "▦" + orddrid +"▦"+ patnm + "▦" + age + "▦" + sex + "▦" + suppdeptcd + "▦" + formdeptcd);
  3807. //20150223 by kya
  3808. //인증평가에 따른 서식변경
  3809. //setParameter("SPMMR05400_parm_formcd", "1000007334"); // 진정/회복 기록
  3810. var grupcdid = "";
  3811. if ( age < 12 ) { //소아일 경우
  3812. ds_send.setColumn(0,"grupcdid","A0500");
  3813. } else { //성인일경우
  3814. ds_send.setColumn(0,"grupcdid","A0501");
  3815. }
  3816. dsf_createDsRow("ds_send_req" , [
  3817. {col: "grupcdid", val:grupcdid}
  3818. ,{col: "suppdeptcd", val:lv_instance1}
  3819. ]);
  3820. ds_codelist.clear();
  3821. var oParam = {};
  3822. oParam.id = "TRAEB00010";
  3823. oParam.service = "examcurebaseapp.ComCode";
  3824. oParam.method = "reqGetComCodeDetailList";
  3825. oParam.inds = "req=ds_send_req";
  3826. oParam.outds = "ds_codelist=item";
  3827. oParam.async = false;
  3828. oParam.callback = "cf_TRAEB00010";
  3829. tranf_submit(oParam);
  3830. if (arErrorCode.pop("TRAEB00010") > -1) {
  3831. var formcd = ds_codelist.getColumn(0,"cdid"); //서식코드
  3832. //alert("formcd = " + formcd);
  3833. }
  3834. frmf_setParameter("SPMMR05400_parm_formcd", formcd ); // 진정/회복 기록
  3835. frmf_setParameter("SPMMR05400_tabflag", "formlist"); // 진정/회복 기록
  3836. frmf_setParameter("SPMMR05400_parm_formrecdd", execdd); //20131107 kya 추가
  3837. frmf_open("SPMMR05400","SPMMR05400", "", "", "" , "", "", "", "", "" , "", "","M");
  3838. }
  3839. /*******************************************************************************************************************************************************************/
  3840. // Scope세척관리 팝업, 2017.
  3841. /*******************************************************************************************************************************************************************/
  3842. function fWashing(){
  3843. var pid = ds_send.getColumn(0,"srchpid"); //환자번호
  3844. var srchdate1 = ds_send.getColumn(0,"srchdate1"); //접수일자
  3845. var orddd = ds_send.getColumn(0,"orddd");
  3846. var prcpdd = ds_send.getColumn(0,"prcpdd");
  3847. var execprcpuniqno = ds_send.getColumn(0,"execprcpuniqno");
  3848. var patnm = ds_send.getColumn(0,"patnm");
  3849. var calcscorcd = ds_send.getColumn(0,"prntcalcscorcd");
  3850. var suppdeptcd = lv_instance1;
  3851. var parm_pinfo = pid + "▦" + srchdate1 + "▦" + orddd + "▦" + prcpdd + "▦" + execprcpuniqno + "▦" + patnm + "▦" + calcscorcd + "▦" + suppdeptcd;
  3852. //trace("parm_pinfo = " + parm_pinfo);
  3853. frmf_setParameter("SMAEA06300_parm_pinfo", parm_pinfo );
  3854. frmf_open("SMAEA06300","SMAEA06300" , "", "", "" , "", "", "", "", "" , "", "", "M");
  3855. }
  3856. //*******************************************************************************************************************************************************************/
  3857. // 임시예약 분기, 20190228
  3858. /*******************************************************************************************************************************************************************/
  3859. function fTempRsrv(){
  3860. var pid = ds_subordlist1.getColumn(0,"pid"); //환자번호
  3861. var orddepthngnm = ds_subordlist1.getColumn(0,"orddepthngnm"); //의뢰과명
  3862. var orddrnm = ds_subordlist1.getColumn(0,"orddrnm"); //의뢰의사
  3863. var prcpdd = ds_subordlist1.getColumn(0,"prcpdd"); //처방일자
  3864. var execprcpuniqno = "";
  3865. var patnm = ds_subordlist1.getColumn(0,"patnm"); //환자명
  3866. var calcscorcd = ""; //처방코드
  3867. var suppdeptcd = lv_instance1;
  3868. var sna = ds_subordlist1.getColumn(0,"sna"); //성별/나이
  3869. var parm_pinfo = pid + "▦" + orddepthngnm + "▦" + orddrnm + "▦" + prcpdd + "▦" + execprcpuniqno + "▦" + patnm + "▦" + calcscorcd + "▦" + suppdeptcd + "▦" + sna;
  3870. trace("parm_pinfo = " + parm_pinfo);
  3871. frmf_setParameter("menuparam", "OCS" ); //내시경실에서 분기
  3872. frmf_setParameter("SPAEA02201_parm_pinfo", parm_pinfo );
  3873. frmf_setParameter("excuroomgrp", "내시경" ); //검사실그룹
  3874. frmf_open("SPAEA02201","SPAEA02201" , "", "", "" , "", "", "", "", "" , "", "", "M");
  3875. }
  3876. /*******************************************************************************************************************************************************************/
  3877. // 처방내역에서 부분실시
  3878. /*******************************************************************************************************************************************************************/
  3879. function fprcpacting() {
  3880. var nodeList = ds_grd_subprcplist.findRowExpr("check=='1' || check=='Y'");
  3881. if ( nodeList < 0 ) {
  3882. sysf_messageBox("처방내역을","C002");
  3883. return "0";
  3884. }else {
  3885. //2011.06.30 다중실시 기능 추가 - 박재영
  3886. var dccnt = 0;
  3887. var actcnt = 0;
  3888. var rsltcnt = 0;
  3889. var acptcnt = 0;
  3890. var othercnt = 0; //그외
  3891. var drugcnt = 0; //A2,A6 약, 주사제에 대한 처방
  3892. for (var i = 0; i < ds_grd_subprcplist.rowcount; i ++){
  3893. //20150119 by kya
  3894. //검사접수 여부 체크
  3895. if(ds_grd_subprcplist.getColumn(i,"mset") != "ⓜ" &&
  3896. ds_grd_subprcplist.getColumn(i,"execprcpstatcd") < "440" &&
  3897. ds_grd_subprcplist.getColumn(i,"prcpgenrflag") != "S" ) {
  3898. acptcnt = acptcnt + 1;
  3899. }
  3900. if(ds_grd_subprcplist.getColumn(i,"check") == "1" || ds_grd_subprcplist.getColumn(i,"check") == "Y" ){
  3901. //반환처방 체크
  3902. if(ds_grd_subprcplist.getColumn(i,"execprcphistcd") == "E" ||
  3903. ds_grd_subprcplist.getColumn(i,"execprcphistcd") == "D" ||
  3904. ds_grd_subprcplist.getColumn(i,"execprcphistcd") == "L" ){
  3905. dccnt = dccnt + 1;
  3906. }
  3907. //실시완료처방 체크
  3908. if(ds_grd_subprcplist.getColumn(i,"execprcphistcd") == "O" &&
  3909. ds_grd_subprcplist.getColumn(i,"execprcpstatcd") == "610" ){
  3910. actcnt = actcnt + 1;
  3911. }
  3912. //결과여부 체크
  3913. if(ds_grd_subprcplist.getColumn(i,"execprcpstatcd") > "610" ){
  3914. rsltcnt = rsltcnt + 1;
  3915. }
  3916. //접수여부 체크
  3917. if(ds_grd_subprcplist.getColumn(i,"mset") != "ⓜ" &&
  3918. ds_grd_subprcplist.getColumn(i,"execprcpstatcd") < "440" &&
  3919. ds_grd_subprcplist.getColumn(i,"prcpgenrflag") != "S" ){
  3920. acptcnt = acptcnt + 1;
  3921. }
  3922. //부분실시 할수 있도록 하기위해
  3923. // 20150120 약여부 ('A2', 'A6') 체크
  3924. //alert(" prcpclscd = " + ds_grd_subprcplist.getColumn(i,"prcpclscd") );
  3925. if(ds_grd_subprcplist.getColumn(i,"mset") == "ⓜ" &&
  3926. ds_grd_subprcplist.getColumn(i,"execprcpstatcd") < "440" ) {
  3927. if ( ds_grd_subprcplist.getColumn(i,"prcpclscd") == "A2" ||
  3928. ds_grd_subprcplist.getColumn(i,"prcpclscd") == "A6" ) {
  3929. drugcnt = drugcnt + 1;
  3930. } else {
  3931. othercnt = othercnt + 1; //먹는약, 주사제외 재료, 행위에 대해 count
  3932. }
  3933. }
  3934. }
  3935. }
  3936. //alert(" drugcnt = " + drugcnt +", othercnt = " + othercnt );
  3937. if(dccnt > 0){
  3938. sysf_messageBox("이미 반환된 처방","E008");
  3939. return "0";
  3940. }
  3941. if(actcnt > 0){
  3942. sysf_messageBox("실시완료된 처방","E008");
  3943. return "0";
  3944. }
  3945. if(rsltcnt > 0){
  3946. sysf_messageBox("예비결과/최종결과 처방","E008");
  3947. return "0";
  3948. }
  3949. //20150120 kya
  3950. //단, 약일 경우에 한해, 접수없이 부분실시가 될 수 있도록 함
  3951. if( drugcnt > 0 && othercnt == 0 ){
  3952. acptcnt = 0;
  3953. }
  3954. if(acptcnt > 0){
  3955. sysf_messageBox("접수 전 실시", "E001","접수 후 실시하십시오!");
  3956. return "0";
  3957. }else {
  3958. ds_grd_subprcplist.filter("check=='1' || check=='Y'");
  3959. dsf_createDs("ds_tobeacptprcplist");
  3960. ds_tobeacptprcplist.copyData(ds_grd_subprcplist,true);
  3961. ds_grd_subprcplist.filter("");
  3962. }
  3963. }
  3964. // 처방 -> 검사접수/실시완료
  3965. if ( sysf_messageBox("실시를 ","Q002")==6 ) {
  3966. dsf_setFixVal(ds_tobeacptprcplist, "execprcpstat610cd:610,excuexectotm:-,execrid1:-");
  3967. ds_tobeacptprcplist.updateColID("execdd","excuexectodd");
  3968. ds_tobeacptprcplist.updateColID("suppdeptcd","basesuppdeptcd");
  3969. var oParam = {};
  3970. oParam.id = "TXAEA01508";
  3971. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  3972. oParam.method = "reqExeAddPrcpList";
  3973. oParam.inds = "req=ds_tobeacptprcplist";
  3974. oParam.outds = "ds_result_item=item";
  3975. oParam.async = false;
  3976. //oParam.callback = "cf_TXAEA01508";
  3977. tranf_submit(oParam);
  3978. }
  3979. call_TRAEA01517();
  3980. //상병정보, 검사예약, 진료예약, 처방내역
  3981. var oParam = {};
  3982. oParam.id = "TRAEA01506";
  3983. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  3984. oParam.method = "reqGetExamCureExecPrcpList";
  3985. oParam.inds = "reqparam=ds_send_reqparam";
  3986. oParam.outds = "ds_subordlist1=examcureexecdiaglist ds_grd_ordlist1=gettestrsrvinfo ds_grd_ordlist2=getordrsrvinfo ds_grd_subprcplist=examcureexecprcplist ds_examcureexecdiaglist=diaglist ds_prcpdelifactlist=prcpdelifactlist ds_isolinfo=patisolinfolist ds_main_subordlist_nameconflict=conflictyn";
  3987. oParam.async = false;
  3988. oParam.callback = "cf_TRAEA01506";
  3989. tranf_submit(oParam);
  3990. //감염정보
  3991. group3.cpt_isolinfo.text = "";
  3992. if (!utlf_isNull(ds_isolinfo.getColumn(0,"etccnts"))) {
  3993. group3.cpt_isolinfo.text = "확인";
  3994. }
  3995. if ( group3.switch1.tabindex == 1 ) {
  3996. ds_subordlist1.setColumn(0,"excuroomcd", ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"excuroomcd"));
  3997. }
  3998. if ( group3.switch1.tabindex == 2 ) {
  3999. ds_subordlist1.setColumn(0,"excuroomcd", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"excuroomcd"));
  4000. }
  4001. if ( group3.switch1.tabindex == 3 ) {
  4002. ds_subordlist1.setColumn(0,"excuroomcd", ds_grd_mainordlist3.getColumn(ds_grd_mainordlist3.rowposition,"excuroomcd"));
  4003. }
  4004. if ( group3.switch1.tabindex == 4 ) {
  4005. ds_subordlist1.setColumn(0,"excuroomcd", ds_grd_mainordlist4.getColumn(ds_grd_mainordlist4.rowposition,"excuroomcd"));
  4006. }
  4007. if ( group3.switch1.tabindex == 0 ) {
  4008. ds_subordlist1.setColumn(0,"excuroomcd", ds_grd_subordlist1.getColumn(ds_grd_subordlist1.rowposition,"excuroomcd"));
  4009. }
  4010. //20170213 산정특례종료일자 보여주기
  4011. var serdiagtodd = ds_patlist_serdiagtodd.getColumn(0,"serdiagtodd");
  4012. var rareobsttodd = ds_patlist_serdiagtodd.getColumn(0,"rareobsttodd");
  4013. if ( !utlf_isNull(serdiagtodd) && serdiagtodd != "-" ) {
  4014. serdiagtodd = serdiagtodd.substr(0,4) + "년 " + serdiagtodd.substr(4,2) + "월 " + serdiagtodd.substr(6,2) + "일";
  4015. group3.opt_vipflag.value = "중증 종료일자는 [ " + serdiagtodd + " ] 입니다"
  4016. }
  4017. if ( !utlf_isNull(rareobsttodd) && rareobsttodd != "-" ) {
  4018. rareobsttodd = rareobsttodd.substr(0,4) + "년 " + rareobsttodd.substr(4,2) + "월 " + rareobsttodd.substr(6,2) + "일";
  4019. group3.opt_vipflag.value = "희귀난치 종료일자는 [ " + rareobsttodd + " ] 입니다"
  4020. }
  4021. //반환처방 색상주기
  4022. // grdf_initGridStyle(group3.grd_subprcplist);
  4023. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "E" , "execprcphistcd","equal" );
  4024. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "D" , "execprcphistcd","equal" );
  4025. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "L" , "execprcphistcd","equal" );
  4026. group3.bool1.value = false;
  4027. }
  4028. /*******************************************************************************************************************************************************************/
  4029. // 처방내역에서 실시취소
  4030. /*******************************************************************************************************************************************************************/
  4031. function fprcpactingcncl() {
  4032. var nodeList = ds_grd_subprcplist.findRowExpr("check=='1' || check=='Y'");
  4033. if ( nodeList < 0 ) {
  4034. sysf_messageBox("처방내역을","C002");
  4035. return "0";
  4036. }else {
  4037. //2011.06.30 다중실시취소 기능 추가 - 박재영
  4038. var dccnt = 0;
  4039. var actcnt = 0;
  4040. for (var i = 0; i < ds_grd_subprcplist.rowcount; i ++){
  4041. if(ds_grd_subprcplist.getColumn(i,"check") == "Y" || ds_grd_subprcplist.getColumn(i,"check") == "1"){
  4042. //반환처방 체크
  4043. if(ds_grd_subprcplist.getColumn(i,"execprcphistcd") == "E" ||
  4044. ds_grd_subprcplist.getColumn(i,"execprcphistcd") == "D" ||
  4045. ds_grd_subprcplist.getColumn(i,"execprcphistcd") == "L" ){
  4046. dccnt = dccnt + 1;
  4047. }
  4048. //미실시처방 체크
  4049. if(ds_grd_subprcplist.getColumn(i,"execprcphistcd") == "O" &&
  4050. ds_grd_subprcplist.getColumn(i,"execprcpstatcd") < "610" ){
  4051. actcnt = actcnt + 1;
  4052. }
  4053. }
  4054. }
  4055. if(dccnt > 0){
  4056. sysf_messageBox("이미 반환된 처방","E008");
  4057. return "0";
  4058. }
  4059. if(actcnt > 0){
  4060. sysf_messageBox("실시되지 않은 처방","E008");
  4061. return "0";
  4062. }else {
  4063. dsf_createDs("ds_send_tobeacptprcplist");
  4064. ds_grd_subprcplist.filter("check=='1' || check=='Y'");
  4065. ds_send_tobeacptprcplist.copyData(ds_grd_subprcplist,true);
  4066. ds_send_tobeacptprcplist.updateColID("suppdeptcd","basesuppdeptcd");
  4067. dsf_setFixVal(ds_send_tobeacptprcplist, "execprcpstat440cd:440,execprcpstat610cd:610,execprcpstat230cd:230,execprcpstat100cd:100,execprcpstat000cd:000,excuexectodd:00000000,excuexectotm:000000,execrid1:-,tretflagcd:610");
  4068. ds_grd_subprcplist.filter("");
  4069. }
  4070. }
  4071. // 처방 -> 검사접수/실시완료
  4072. if ( sysf_messageBox("실시취소를 ","Q002")==6 ) {
  4073. ds_send_tobeacptprcplist.updateColID("root","rootgubn");
  4074. var oParam = {};
  4075. oParam.id = "TXAEA01509";
  4076. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  4077. oParam.method = "reqExeAddPrcpCnclList";
  4078. oParam.inds = "req=ds_send_tobeacptprcplist";
  4079. oParam.outds = "ds_result_item=item";
  4080. oParam.async = false;
  4081. //oParam.callback = "cf_TXAEA01509";
  4082. tranf_submit(oParam);
  4083. }
  4084. call_TRAEA01517();
  4085. //상병정보, 검사예약, 진료예약, 처방내역
  4086. var oParam = {};
  4087. oParam.id = "TRAEA01506";
  4088. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  4089. oParam.method = "reqGetExamCureExecPrcpList";
  4090. oParam.inds = "reqparam=ds_send_reqparam";
  4091. oParam.outds = "ds_subordlist1=examcureexecdiaglist ds_grd_ordlist1=gettestrsrvinfo ds_grd_ordlist2=getordrsrvinfo ds_grd_subprcplist=examcureexecprcplist ds_examcureexecdiaglist=diaglist ds_prcpdelifactlist=prcpdelifactlist ds_isolinfo=patisolinfolist ds_main_subordlist_nameconflict=conflictyn";
  4092. oParam.async = false;
  4093. oParam.callback = "cf_TRAEA01506";
  4094. tranf_submit(oParam);
  4095. //감염정보
  4096. group3.cpt_isolinfo.text = "";
  4097. if (!utlf_isNull(ds_isolinfo.getColumn(0,"etccnts"))) {
  4098. group3.cpt_isolinfo.text = "확인";
  4099. }
  4100. if ( group3.switch1.tabindex == 1 ) {
  4101. ds_subordlist1.setColumn(0,"excuroomcd", ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"excuroomcd"));
  4102. }
  4103. if ( group3.switch1.tabindex == 2 ) {
  4104. ds_subordlist1.setColumn(0,"excuroomcd", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"excuroomcd"));
  4105. }
  4106. if ( group3.switch1.tabindex == 3 ) {
  4107. ds_subordlist1.setColumn(0,"excuroomcd", ds_grd_mainordlist3.getColumn(ds_grd_mainordlist3.rowposition,"excuroomcd"));
  4108. }
  4109. if ( group3.switch1.tabindex == 4 ) {
  4110. ds_subordlist1.setColumn(0,"excuroomcd", ds_grd_mainordlist4.getColumn(ds_grd_mainordlist4.rowposition,"excuroomcd"));
  4111. }
  4112. if ( group3.switch1.tabindex == 0 ) {
  4113. ds_subordlist1.setColumn(0,"excuroomcd", ds_grd_subordlist1.getColumn(ds_grd_subordlist1.rowposition,"excuroomcd"));
  4114. }
  4115. //20170213 산정특례종료일자 보여주기
  4116. var serdiagtodd = ds_patlist_serdiagtodd.getColumn(0,"serdiagtodd");
  4117. var rareobsttodd = ds_patlist_serdiagtodd.getColumn(0,"rareobsttodd");
  4118. if ( !utlf_isNull(serdiagtodd) && serdiagtodd != "-" ) {
  4119. serdiagtodd = serdiagtodd.substr(0,4) + "년 " + serdiagtodd.substr(4,2) + "월 " + serdiagtodd.substr(6,2) + "일";
  4120. group3.opt_vipflag.value = "중증 종료일자는 [ " + serdiagtodd + " ] 입니다"
  4121. }
  4122. if ( !utlf_isNull(rareobsttodd) && rareobsttodd != "-" ) {
  4123. rareobsttodd = rareobsttodd.substr(0,4) + "년 " + rareobsttodd.substr(4,2) + "월 " + rareobsttodd.substr(6,2) + "일";
  4124. group3.opt_vipflag.value = "희귀난치 종료일자는 [ " + rareobsttodd + " ] 입니다"
  4125. }
  4126. //반환처방 색상주기
  4127. // grdf_initGridStyle(group3.grd_subprcplist);
  4128. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "E" , "execprcphistcd","equal" );
  4129. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "D" , "execprcphistcd","equal" );
  4130. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "L" , "execprcphistcd","equal" );
  4131. group3.bool1.value = false;
  4132. }
  4133. /*******************************************************************************************************************************************************************/
  4134. // 처방내역에서 처방반환
  4135. /*******************************************************************************************************************************************************************/
  4136. function fprcpdc() {
  4137. var nodeList = ds_grd_subprcplist.findRowExpr("check=='1' || check=='Y'");
  4138. var fCnt = ds_grd_subprcplist.filter("check=='Y'")
  4139. if ( nodeList < 0 ) {
  4140. sysf_messageBox("처방내역을","C002");
  4141. return "0";
  4142. }else {
  4143. //2011.06.30 다중실시 기능 추가 - 박재영
  4144. var actcnt = 0;
  4145. var acptcnt = 0;
  4146. var rsrvcnt = 0;
  4147. var dccnt = 0;
  4148. var rowcnt = 0;
  4149. for (var i = 0; i < ds_grd_subprcplist.rowcount; i ++){
  4150. if(ds_grd_subprcplist.getColumn(i,"check") == "Y" || ds_grd_subprcplist.getColumn(i,"check") == "1"){
  4151. //DC처방수
  4152. rowcnt = rowcnt + 1;
  4153. //실시완료처방 체크
  4154. if(ds_grd_subprcplist.getColumn(i,"execdd") != "00000000" &&
  4155. ds_grd_subprcplist.getColumn(i,"execprcpstatcd") == "610" ){
  4156. actcnt = actcnt + 1;
  4157. }
  4158. //접수여부 체크
  4159. if(ds_grd_subprcplist.getColumn(i,"execprcpstatcd") == "440"){
  4160. acptcnt = acptcnt + 1;
  4161. }
  4162. //예약여부 체크
  4163. if(ds_grd_subprcplist.getColumn(i,"rsrvflag") == "Y"){
  4164. rsrvcnt = rsrvcnt + 1;
  4165. }
  4166. //반환처방 체크
  4167. if(ds_grd_subprcplist.getColumn(i,"execprcphistcd") != "O" ){
  4168. dccnt = dccnt + 1;
  4169. }
  4170. }
  4171. }
  4172. if(actcnt > 0){
  4173. sysf_messageBox("실시된 처방","E008","취소 후 반환하십시오");
  4174. return "0";
  4175. }
  4176. if(acptcnt > 0){
  4177. sysf_messageBox("접수된 처방","E008","취소 후 반환하십시오");
  4178. return "0";
  4179. }
  4180. if(rsrvcnt > 0){
  4181. sysf_messageBox("예약된 처방","E008","예약취소 후 반환하십시오");
  4182. return "0";
  4183. }
  4184. if(dccnt > 0){
  4185. sysf_messageBox("이미 반환된 처방","E008");
  4186. return "0";
  4187. }else {
  4188. dsf_createDs("ds_send_tobeacptprcplist");
  4189. ds_grd_subprcplist.filter("check=='1' || check=='Y'");
  4190. ds_send_tobeacptprcplist.copyData(ds_grd_subprcplist,true);
  4191. ds_send_tobeacptprcplist.updateColID("calcscorcd","prcpcd");
  4192. ds_send_tobeacptprcplist.addColumn("indd","string");
  4193. for(var i = 0; i< ds_send_tobeacptprcplist.rowcount;i++)
  4194. {
  4195. ds_send_tobeacptprcplist.setColumn(i,"indd",ds_send_tobeacptprcplist.getColumn(i,"orddd"));
  4196. }
  4197. dsf_setFixVal(ds_send_tobeacptprcplist, "status:C");
  4198. ds_grd_subprcplist.filter("");
  4199. }
  4200. }
  4201. // 처방 -> 검사접수/실시완료
  4202. if ( sysf_messageBox("처방반환을 ","Q002")==6 ) {
  4203. ds_send_tobeacptprcplist.updateColID("root","rootgubn");
  4204. var oParam = {};
  4205. oParam.id = "TXAEA01510";
  4206. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  4207. oParam.method = "reqExeExecPrcpDCList";
  4208. oParam.inds = "mcdprcp=ds_send_tobeacptprcplist";
  4209. oParam.outds = "ds_result_item=item";
  4210. oParam.async = false;
  4211. //oParam.callback = "cf_TXAEA01510";
  4212. tranf_submit(oParam); // transaction 1
  4213. }
  4214. call_TRAEA01517();
  4215. //상병정보, 검사예약, 진료예약, 처방내역
  4216. var oParam = {};
  4217. oParam.id = "TRAEA01506";
  4218. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  4219. oParam.method = "reqGetExamCureExecPrcpList";
  4220. oParam.inds = "reqparam=ds_send_reqparam";
  4221. oParam.outds = "ds_subordlist1=examcureexecdiaglist ds_grd_ordlist1=gettestrsrvinfo ds_grd_ordlist2=getordrsrvinfo ds_grd_subprcplist=examcureexecprcplist ds_examcureexecdiaglist=diaglist ds_prcpdelifactlist=prcpdelifactlist ds_isolinfo=patisolinfolist ds_main_subordlist_nameconflict=conflictyn";
  4222. oParam.async = false;
  4223. oParam.callback = "cf_TRAEA01506";
  4224. tranf_submit(oParam);
  4225. //감염정보
  4226. group3.cpt_isolinfo.text = "";
  4227. if (!utlf_isNull(ds_isolinfo.getColumn(0,"etccnts"))) {
  4228. group3.cpt_isolinfo.text = "확인!";
  4229. }
  4230. if ( group3.switch1.tabindex == 1 ) {
  4231. ds_subordlist1.setColumn(0,"excuroomcd", ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"excuroomcd"));
  4232. }
  4233. if ( group3.switch1.tabindex == 2 ) {
  4234. ds_subordlist1.setColumn(0,"excuroomcd", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"excuroomcd"));
  4235. }
  4236. if ( group3.switch1.tabindex == 3 ) {
  4237. ds_subordlist1.setColumn(0,"excuroomcd", ds_grd_mainordlist3.getColumn(ds_grd_mainordlist3.rowposition,"excuroomcd"));
  4238. }
  4239. if ( group3.switch1.tabindex == 4 ) {
  4240. ds_subordlist1.setColumn(0,"excuroomcd", ds_grd_mainordlist4.getColumn(ds_grd_mainordlist4.rowposition,"excuroomcd"));
  4241. }
  4242. if ( group3.switch1.tabindex == 0 ) {
  4243. ds_subordlist1.setColumn(0,"excuroomcd", ds_grd_subordlist1.getColumn(ds_grd_subordlist1.rowposition,"excuroomcd"));
  4244. }
  4245. //20170213 산정특례종료일자 보여주기
  4246. var serdiagtodd = ds_patlist_serdiagtodd.getColumn(0,"serdiagtodd");
  4247. var rareobsttodd = ds_patlist_serdiagtodd.getColumn(0,"rareobsttodd");
  4248. if ( !utlf_isNull(serdiagtodd) && serdiagtodd != "-" ) {
  4249. serdiagtodd = serdiagtodd.substr(0,4) + "년 " + serdiagtodd.substr(4,2) + "월 " + serdiagtodd.substr(6,2) + "일";
  4250. group3.opt_vipflag.value = "중증 종료일자는 [ " + serdiagtodd + " ] 입니다"
  4251. }
  4252. if ( !utlf_isNull(rareobsttodd) && rareobsttodd != "-" ) {
  4253. rareobsttodd = rareobsttodd.substr(0,4) + "년 " + rareobsttodd.substr(4,2) + "월 " + rareobsttodd.substr(6,2) + "일";
  4254. group3.opt_vipflag.value = "희귀난치 종료일자는 [ " + rareobsttodd + " ] 입니다"
  4255. }
  4256. //반환처방 색상주기
  4257. // grdf_initGridStyle(group3.grd_subprcplist);
  4258. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "E" , "execprcphistcd","equal" );
  4259. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "D" , "execprcphistcd","equal" );
  4260. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "L" , "execprcphistcd","equal" );
  4261. group3.bool1.value = false;
  4262. }
  4263. /*******************************************************************************************************************************************************************/
  4264. // 약주사액팅
  4265. /*******************************************************************************************************************************************************************/
  4266. function fOldPrcpCdActing(){
  4267. var objArg = new Object();
  4268. dsf_createDs("ds_temp_popupdata");
  4269. if ( group3.switch1.tabindex == 1 ) {
  4270. dsf_copyColInfo(ds_temp_popupdata,ds_grd_mainordlist1);
  4271. ds_temp_popupdata.copyRow(ds_temp_popupdata.addRow(),ds_grd_mainordlist1,ds_grd_mainordlist1.rowposition);
  4272. objArg.arg_ds_init_popupdata = ds_temp_popupdata;
  4273. frmf_modal("SPAEA01105","SPAEA01105",objArg,"","","","","","","","","","M");
  4274. }
  4275. if ( group3.switch1.tabindex == 2 ) {
  4276. dsf_copyColInfo(ds_temp_popupdata,ds_grd_mainordlist2);
  4277. ds_temp_popupdata.copyRow(ds_temp_popupdata.addRow(),ds_grd_mainordlist2,ds_grd_mainordlist2.rowposition);
  4278. objArg.arg_ds_init_popupdata = ds_temp_popupdata;
  4279. frmf_modal("SPAEA01105","SPAEA01105",objArg,"","","","","","","","","","M");
  4280. }
  4281. if ( group3.switch1.tabindex == 3 ) {
  4282. dsf_copyColInfo(ds_temp_popupdata,ds_grd_mainordlist3);
  4283. ds_temp_popupdata.copyRow(ds_temp_popupdata.addRow(),ds_grd_mainordlist3,ds_grd_mainordlist3.rowposition);
  4284. objArg.arg_ds_init_popupdata = ds_temp_popupdata;
  4285. frmf_modal("SPAEA01105","SPAEA01105",objArg,"","","","","","","","","","M");
  4286. }
  4287. if ( group3.switch1.tabindex == 4 ) {
  4288. dsf_copyColInfo(ds_temp_popupdata,ds_grd_mainordlist4);
  4289. ds_temp_popupdata.copyRow(ds_temp_popupdata.addRow(),ds_grd_mainordlist4,ds_grd_mainordlist4.rowposition);
  4290. objArg.arg_ds_init_popupdata = ds_temp_popupdata;
  4291. frmf_modal("SPAEA01105","SPAEA01105",objArg,"","","","","","","","","","M");
  4292. }
  4293. if ( group3.switch1.tabindex == 0 ) {
  4294. dsf_copyColInfo(ds_temp_popupdata,ds_grd_subordlist1);
  4295. ds_temp_popupdata.copyRow(ds_temp_popupdata.addRow(),ds_grd_subordlist1,ds_grd_subordlist1.rowposition);
  4296. objArg.arg_ds_init_popupdata = ds_temp_popupdata;
  4297. frmf_modal("SPAEA01105","SPAEA01105",objArg,"","","","","","","","","","M");
  4298. }
  4299. }
  4300. /*******************************************************************************************************************************************************************/
  4301. // 이송요원호출
  4302. /*******************************************************************************************************************************************************************/
  4303. function fTranEmpCall(){
  4304. // status : "RD"
  4305. // pid : 등록번호
  4306. // prcpnm : 처방명
  4307. // kind : 종류(1:검사, 2:전동, 3:수술, 4:입원, 5:기타)
  4308. // rsrvdt : 예약일시
  4309. // arvposcd : 도착 부서코드
  4310. // startposcd : 출발 부서코드
  4311. var pid = ds_subordlist1.getColumn(0,"pid");
  4312. var prcpnm = "내시경";
  4313. var kind = "1";
  4314. //var rsrvdt = getCurrentDate() + getCurrentTime().substr(0,4) ;
  4315. var rsrvdt = utlf_getCurrentTime().substr(0,4) ;
  4316. var startposcd = lv_instance1;
  4317. var arvposcd = "";
  4318. frmf_setParameter("status", "RD");
  4319. frmf_setParameter("pid", pid);
  4320. frmf_setParameter("prcpnm", prcpnm);
  4321. frmf_setParameter("kind", kind);
  4322. frmf_setParameter("rsrvdt", rsrvdt);
  4323. frmf_setParameter("calldeptflag", "D");
  4324. frmf_setParameter("arvposcd", arvposcd);
  4325. frmf_setParameter("startposcd", startposcd);
  4326. frmf_modal("SMMNB01810" ,"SMMNB01810" ,"", "","", "300", "150", "", "", "","","","M");
  4327. //modal("SMMNB01810" ,"", "300", "150", "SMMNB01810", "", "");
  4328. }
  4329. /*******************************************************************************************************************************************************************/
  4330. // 간호일지Type2 처방정보 세팅
  4331. /*******************************************************************************************************************************************************************/
  4332. function fMakeParameter() {
  4333. var Prcpparam = "";
  4334. rowsep = "▩";
  4335. colsep = "▦";
  4336. param = "prcpflag" + colsep + "prcpnm" + rowsep;
  4337. var check ="";
  4338. var prcpflag="";
  4339. var prcpcd = "";
  4340. var prcpnm = "";
  4341. var prcpvol = "";
  4342. var prcpvolunitflag="";
  4343. var prcpqty = "";
  4344. var prcpqtyunitflag = "";
  4345. var prcptims = "";
  4346. var drugmthdspccd = "";
  4347. var abbrnm = "";
  4348. var prcpdeliverfact = "";
  4349. for(var i = 0; i < ds_grd_subprcplist.rowcount; i++) {
  4350. check = ds_grd_subprcplist.getColumn(i,"check");
  4351. if(check == "Y" || check == "1") {
  4352. prcpflag = ds_grd_subprcplist.getColumn(i,"prcpclscd");
  4353. prcpcd = ds_grd_subprcplist.getColumn(i,"calcscorcd");
  4354. prcpnm = ds_grd_subprcplist.getColumn(i,"prcpnm");
  4355. prcpvol = ds_grd_subprcplist.getColumn(i,"prcpvol");
  4356. prcpvolunitflag = ds_grd_subprcplist.getColumn(i,"prcpvolunitflag");
  4357. prcpqty = ds_grd_subprcplist.getColumn(i,"prcpqty");
  4358. prcpqtyunitflag = ds_grd_subprcplist.getColumn(i,"prcpqtyunitflag");
  4359. prcptims = ds_grd_subprcplist.getColumn(i,"prcptims");
  4360. dugmthdspccd = ds_grd_subprcplist.getColumn(i,"drugmthdspccd");
  4361. abbrnm = ds_grd_subprcplist.getColumn(i,"prcpnm");
  4362. if(prcpflag=="A2" || prcpflag == "A4" || prcpflag == "A6") {
  4363. param += prcpflag.substr(0,1) + colsep + prcpcd + "/" + prcpnm + "/" + prcpvol + "/" + prcpvolunitflag + "/" + prcpqty + "/" + prcpqtyunitflag + "/" + prcptims + "/" + dugmthdspccd + "/" + abbrnm + rowsep;
  4364. } else if(prcpflag=="B2" || prcpflag=="B4" || prcpflag=="B6" || prcpflag=="C2" || prcpflag=="C4" || prcpflag=="D2" || prcpflag=="E2" || prcpflag=="H4") {
  4365. prcpdelivefact = ds_prcpdelifactlist.getColumn(0,"prcpdelivefact");
  4366. param += prcpflag.substr(0,1) + colsep + prcpnm + "/" + prcpqty + prcpdeliverfact + rowsep;
  4367. }
  4368. }
  4369. }
  4370. return param;
  4371. }
  4372. /*******************************************************************************************************************************************************************/
  4373. // 예약증 재출력
  4374. /*******************************************************************************************************************************************************************/
  4375. function frersrvprnt(){
  4376. //검사실명 예약예문에 세팅하기 위함.
  4377. for( var i=0; i < ds_grd_temp.rowcount; i++ ) {
  4378. if( ds_init_cmb_excuroom.getColumn(i,"excuroomcdid") == ds_subordlist1.getColumn(0,"excuroomcd") ) {
  4379. var roomcd = ds_init_cmb_excuroom.getColumn(i,"excuroomcdnm");
  4380. }
  4381. }
  4382. var pid = group3.ipt_cntsqty.value;
  4383. var hngnm = group3.input1.value;
  4384. var rsrvdd = utlf_transNullToEmpty(group3.cmb_rsrvdd.value) ;
  4385. var rsrvtm = utlf_transNullToEmpty(group3.cmb_rsrvtm.value);
  4386. var year = rsrvdd.substr(0,4);
  4387. var month = rsrvdd.substr(4,2);
  4388. var day = rsrvdd.substr(6,2);
  4389. var week = rsrvdd.substr(0,8).toDate().getDayOfWeek("K");
  4390. var hh = rsrvtm.substr(0,2);
  4391. var mm = rsrvtm.substr(2,2);
  4392. //var roomcd = "";
  4393. ds_send.setColumn(0,"prntcalcscorcd", ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"calcscorcd"));
  4394. ds_send.setColumn(0,"prntsuppdeptcd", lv_instance1);
  4395. dsf_createDsRow("ds_send_req", [{col: "excucd", val:ds_send.getColumn(0,"prntcalcscorcd")}
  4396. ,{col: "suppdeptcd", val:ds_send.getColumn(0,"prntsuppdeptcd") }
  4397. ]);
  4398. var oParam = {};
  4399. oParam.id = "TRAEA01126";
  4400. oParam.service = "examcurebaseapp.ExmpTmpl";
  4401. oParam.method = "reaGetRsrvTmplList";
  4402. oParam.inds = "req=ds_send_req";
  4403. oParam.outds = "ds_tmplist=tmplinfo";
  4404. oParam.async = false;
  4405. //oParam.callback = "cf_TRAEA01126";
  4406. tranf_submit(oParam);
  4407. var tmpldata = ds_tmplist.getColumn(0,"tmpldata");
  4408. if(ds_tmplist.getColumn(0,"slepyn") == "(수면)") {
  4409. roomcd = roomcd+ds_tmplist.getColumn(0,"slepyn");
  4410. }
  4411. if(!utlf_isNull(tmpldata)) {
  4412. //1. 예약예문내용을 뷰어로 보여주기
  4413. group3.switch1.case1.rtfviewer.TextRtf = tmpldata;
  4414. //2. 바꾸기
  4415. group3.switch1.case1.rtfviewer.ReplaceRtfCode("pid",pid); //등록번호
  4416. group3.switch1.case1.rtfviewer.ReplaceRtfCode("patnm",hngnm); //성명
  4417. group3.switch1.case1.rtfviewer.ReplaceRtfCode("year",year); //년
  4418. group3.switch1.case1.rtfviewer.ReplaceRtfCode("month",month); //월
  4419. group3.switch1.case1.rtfviewer.ReplaceRtfCode("day",day); //일
  4420. group3.switch1.case1.rtfviewer.ReplaceRtfCode("week",week); //요일
  4421. group3.switch1.case1.rtfviewer.ReplaceRtfCode("hh",hh); //시
  4422. group3.switch1.case1.rtfviewer.ReplaceRtfCode("mm",mm); //분
  4423. group3.switch1.case1.rtfviewer.ReplaceRtfCode("roomcd", roomcd); //분
  4424. //3. 현재내용을 파일에 저장
  4425. group3.switch1.case1.rtfviewer.SaveRtfFile();
  4426. //4. 출력
  4427. group3.switch1.case1.rtfviewer.Print();
  4428. //5. 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  4429. fInitialize();
  4430. }
  4431. else {
  4432. sysf_messageBox("등록된 예약예문이 ", "I004");
  4433. }
  4434. }
  4435. function ChangeTmplcd(){
  4436. var stmpcd = ds_grd_subordlist1.getColumn(ds_grd_subordlist1.rowposition,"rsrvmultitmplcd");
  4437. if (utlf_isNull(stmpcd)){
  4438. sysf_messageBox("처리할 자료를 클릭한 후 처리하시기 바랍니다.", "E999", "");
  4439. }
  4440. var k =0;
  4441. for(var j=0; j < stmpcd.length; j++){
  4442. //var ch = escape(str.charAt(i));
  4443. var ch = stmpcd.charAt(j);
  4444. if (ch == "^"){
  4445. k = parseInt(k) + 1;
  4446. }
  4447. }
  4448. if (k == 0){
  4449. sysf_messageBox("멀티예약예문이 아닙니다.", "E999", "");
  4450. return;
  4451. }
  4452. lv_checkseq = "02";
  4453. frmf_modal("SPAEA02303","SPAEA02303","","","","","","","","","","","M" );
  4454. }
  4455. function ChangeTmplcd2(){
  4456. var stmpcd = ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"rsrvmultitmplcd");
  4457. if (utlf_isNull(stmpcd)){
  4458. sysf_messageBox("처리할 자료를 클릭한 후 처리하시기 바랍니다.", "E999", "");
  4459. return;
  4460. }
  4461. var k =0;
  4462. for(var j=0; j < stmpcd.length; j++){
  4463. //var ch = escape(str.charAt(i));
  4464. var ch = stmpcd.charAt(j);
  4465. if (ch == "^"){
  4466. k = parseInt(k) + 1;
  4467. }
  4468. }
  4469. if (k == 0){
  4470. sysf_messageBox("멀티예약예문이 아닙니다.", "E999", "");
  4471. return;
  4472. }
  4473. lv_checkseq = "03";
  4474. frmf_modal("SPAEA02303","SPAEA02303","","","","","","","","","","","M" );
  4475. }
  4476. //2009-07-30 병리 생검 - 수동 매칭작업 처리
  4477. function SPLPJ02500(){
  4478. var stmppid = dsf_getColumnNullToEmpty(ds_grd_mainordlist3,ds_grd_mainordlist3.rowposition,"pid");
  4479. if (utlf_isNull(stmppid)){
  4480. sysf_messageBox("처리할 자료를 클릭한 후 처리하시기 바랍니다.", "E999", "");
  4481. }
  4482. var prcpdd = dsf_getColumnNullToEmpty(ds_grd_mainordlist3,ds_grd_mainordlist3.rowposition,"prcpdd");
  4483. var execprcpuniqno = dsf_getColumnNullToEmpty(ds_grd_mainordlist3,ds_grd_mainordlist3.rowposition,"execprcpuniqno");
  4484. var sflag = stmppid + "▦" + prcpdd + "▦" + execprcpuniqno ;
  4485. // alert ("sflag ===>"+ sflag);
  4486. frmf_setParameter("opener_parameter_id", sflag);
  4487. frmf_modal("SPLPJ02500","SPLPJ02500","","","","","","","","","","","M" );
  4488. }
  4489. /*******************************************************************************************************************************************************************/
  4490. // 상단정보
  4491. /*******************************************************************************************************************************************************************/
  4492. function fTopInfo(){
  4493. var prcpgenrflag = ds_subordlist1.getColumn(0,"prcpgenrflag");
  4494. var instcd = sysf_getUserInfo("dutplceinstcd");
  4495. var jciyn = ds_send.getColumn(0,"jciyn");
  4496. var grd = "";
  4497. var row_idx;
  4498. var ds_obj = "";
  4499. if (prcpgenrflag != "건진" && jciyn == "Y") {
  4500. group3.btn_BarCodePrint.visible = true;
  4501. } else {
  4502. group3.btn_BarCodePrint.visible = true;
  4503. }
  4504. if ( group3.switch1.tabindex == 1 ) {
  4505. grd = "group3.switch1.case1.grd_mainordlist1";
  4506. ds_obj = ds_grd_mainordlist1 ;
  4507. row_idx = ds_grd_mainordlist1.rowposition;
  4508. }
  4509. if ( group3.switch1.tabindex == 2 ) {
  4510. grd = "group3.switch1.case2.grd_mainordlist2";
  4511. ds_obj = ds_grd_mainordlist2 ;
  4512. row_idx = ds_grd_mainordlist2.rowposition;
  4513. }
  4514. if ( group3.switch1.tabindex == 3 ) {
  4515. grd = "group3.switch1.case3.grd_mainordlist3";
  4516. ds_obj = ds_grd_mainordlist3 ;
  4517. row_idx = ds_grd_mainordlist3.rowposition;
  4518. }
  4519. if ( group3.switch1.tabindex == 4 ) {
  4520. grd = "group3.switch1.case4.grd_mainordlist4";
  4521. ds_obj = ds_grd_mainordlist4 ;
  4522. row_idx = ds_grd_mainordlist4.rowposition;
  4523. }
  4524. if ( group3.switch1.tabindex == 0 ) {
  4525. grd = "group3.switch1.case5.grd_subordlist1";
  4526. ds_obj = ds_grd_subordlist1 ;
  4527. row_idx = ds_grd_subordlist1.rowposition;
  4528. }
  4529. if ( group3.switch1.tabindex == 5 ) {
  4530. grd = "group3.switch1.case10.grd_subordlist2";
  4531. ds_obj = ds_grd_subordlist2 ;
  4532. row_idx = ds_grd_subordlist2.rowposition;
  4533. }
  4534. schk = "N";
  4535. var dschdd = ds_obj.getColumn(row_idx,"dschdd");
  4536. var srchdd = "";
  4537. // if ( ds_obj.getColumn(row_idx,"prcpgenrflag") =="O" ){
  4538. // var pat_info = "O▦"+ ds_send.getColumn(0,"srchpid") +"▦"+ds_obj.getColumn(row_idx,"orddd")+"▦"+ds_obj.getColumn(row_idx,"cretno")+"▦"+sysf_getUserInfo("dutplceinstcd")+"▦1▦"+ds_obj.getColumn(row_idx,"orddd");
  4539. // schk = "Y";
  4540. // }
  4541. // //2009-07-27 간호기록TypeII - 상단정보 prcpgenrflag -> Ioflag 변경 (상단정보기준으로 Type선택한다고 함.)
  4542. // // else if ( model.getValue("/root/main/"+list+"/mainordlist["+ row_idx +"]/prcpgenrflag") =="I" ){
  4543. // else if ( ( ds_obj.getColumn(row_idx,"prcpgenrflag") =="I" ) || ( ds_obj.getColumn(row_idx,"genrflag") !="ERBD" && ds_obj.getColumn(row_idx,"ioflag") =="I" ) ){
  4544. //
  4545. // if (utlf_isNull(dschdd) || dschdd == "99991231") {
  4546. // srchdd = utlf_getCurrentDate();
  4547. // } else {
  4548. // srchdd = dschdd;
  4549. // }
  4550. // var pat_info = "I▦"+ ds_send.getColumn(0,"srchpid")
  4551. // +"▦"+ ds_obj.getColumn(row_idx,"orddd")
  4552. // +"▦"+ ds_obj.getColumn(row_idx,"cretno")
  4553. // +"▦"+ sysf_getUserInfo("dutplceinstcd")
  4554. // +"▦"+ srchdd;
  4555. // schk = "Y";
  4556. // }
  4557. // else if ( ds_obj.getColumn(row_idx,"prcpgenrflag") =="S" ){
  4558. // var pat_info = "S▦"+ ds_obj.getColumn(row_idx,"prcpdd") +"▦"+ds_obj.getColumn(row_idx,"execprcpuniqno")+"▦"+sysf_getUserInfo("dutplceinstcd");
  4559. // schk = "Y";
  4560. // }
  4561. // else if ( ds_obj.getColumn(row_idx,"prcpgenrflag") =="E" ){
  4562. // var pat_info = "E▦"+ ds_send.getColumn(0,"srchpid") +"▦"+ds_obj.getColumn(row_idx,"orddd")+"▦"+ds_obj.getColumn(row_idx,"cretno")+"▦"+sysf_getUserInfo("dutplceinstcd");
  4563. // schk = "Y";
  4564. // }
  4565. var pat_info = "S▦"+ ds_obj.getColumn(row_idx,"prcpdd") +"▦"+ds_obj.getColumn(row_idx,"execprcpuniqno")+"▦"+sysf_getUserInfo("dutplceinstcd");
  4566. schk = "Y";
  4567. //alert(pat_info);
  4568. if (schk == "Y"){
  4569. frmf_setParameter("condparam", pat_info);
  4570. //frmf_modal("SPMMO08900","SPMMO08900", "","","","","","","","","","","M" );
  4571. appf_initPatientInfo(pat_info);
  4572. }
  4573. //20200128 코로나 바이러스 추가
  4574. fc_check_coronavirus();
  4575. }
  4576. //=====================================================================================================================================================================================
  4577. // @ 팝업메뉴 - 처방 상세 내역 조회
  4578. //=====================================================================================================================================================================================
  4579. function fOpenPrcpList() {
  4580. var objArg = new Object();
  4581. dsf_createDs("ds_temp_popupdata");
  4582. if ( group3.switch1.tabindex == 2 ) {
  4583. dsf_copyColInfo(ds_temp_popupdata,ds_grd_mainordlist2);
  4584. ds_temp_popupdata.copyRow(ds_temp_popupdata.addRow(),ds_grd_mainordlist2,ds_grd_mainordlist2.rowposition);
  4585. objArg.arg_ds_init_popupdata = ds_temp_popupdata;
  4586. frmf_modal("SPAEA01102","SPAEA01102",objArg,"","","","","","","","","","M");
  4587. fOpenActSrch();
  4588. } else if ( group3.switch1.tabindex == 3 ) {
  4589. dsf_copyColInfo(ds_temp_popupdata,ds_grd_mainordlist3);
  4590. ds_temp_popupdata.copyRow(ds_temp_popupdata.addRow(),ds_grd_mainordlist3,ds_grd_mainordlist3.rowposition);
  4591. objArg.arg_ds_init_popupdata = ds_temp_popupdata;
  4592. frmf_modal("SPAEA01102","SPAEA01102",objArg,"","","","","","","","","","M");
  4593. fOpenActSrch();
  4594. }
  4595. }
  4596. //=====================================================================================================================================================================================
  4597. // @ 약/주사/재료 엑팅 후 재 조회
  4598. //=====================================================================================================================================================================================
  4599. function fOpenActSrch() {
  4600. if ( group3.switch1.tabindex == 2 ) {
  4601. ds_send.setColumn(0,"excuroomcd",ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"excuroomcd"));
  4602. ds_send.setColumn(0,"memorgstdd",ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"rsrvdd"));
  4603. ds_send_prcplist.setColumn(0,"pid3", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"pid"));
  4604. ds_send.setColumn(0,"srchpid", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"pid"));
  4605. ds_send.setColumn(0,"orddd", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"orddd"));
  4606. ds_send.setColumn(0,"orddeptcd", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"orddeptcd"));
  4607. ds_send.setColumn(0,"ioflag", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"ioflag"));
  4608. ds_send.setColumn(0,"prcpgenrflag", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"prcpgenrflag"));
  4609. ds_send.setColumn(0,"prcpdd", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"prcpdd"));
  4610. ds_send.setColumn(0,"prcpno", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"prcpno"));
  4611. ds_send.setColumn(0,"execprcpuniqno", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"execprcpuniqno"));
  4612. } else if ( group3.switch1.tabindex == 3 ) {
  4613. ds_send.setColumn(0,"excuroomcd",ds_grd_mainordlist3.getColumn(ds_grd_mainordlist3.rowposition,"excuroomcd"));
  4614. ds_send.setColumn(0,"memorgstdd",ds_grd_mainordlist3.getColumn(ds_grd_mainordlist3.rowposition,"rsrvdd"));
  4615. ds_send_prcplist.setColumn(0,"pid3", ds_grd_mainordlist3.getColumn(ds_grd_mainordlist3.rowposition,"pid"));
  4616. ds_send.setColumn(0,"srchpid", ds_grd_mainordlist3.getColumn(ds_grd_mainordlist3.rowposition,"pid"));
  4617. ds_send.setColumn(0,"orddd", ds_grd_mainordlist3.getColumn(ds_grd_mainordlist3.rowposition,"orddd"));
  4618. ds_send.setColumn(0,"orddeptcd", ds_grd_mainordlist3.getColumn(ds_grd_mainordlist3.rowposition,"orddeptcd"));
  4619. ds_send.setColumn(0,"ioflag", ds_grd_mainordlist3.getColumn(ds_grd_mainordlist3.rowposition,"ioflag"));
  4620. ds_send.setColumn(0,"prcpgenrflag", ds_grd_mainordlist3.getColumn(ds_grd_mainordlist3.rowposition,"prcpgenrflag"));
  4621. ds_send.setColumn(0,"prcpdd", ds_grd_mainordlist3.getColumn(ds_grd_mainordlist3.rowposition,"prcpdd"));
  4622. ds_send.setColumn(0,"prcpno", ds_grd_mainordlist3.getColumn(ds_grd_mainordlist3.rowposition,"prcpno"));
  4623. ds_send.setColumn(0,"execprcpuniqno", ds_grd_mainordlist3.getColumn(ds_grd_mainordlist3.rowposition,"execprcpuniqno"));
  4624. }
  4625. call_TRAEA01517();
  4626. //상병정보, 검사예약, 진료예약, 처방내역
  4627. var oParam = {};
  4628. oParam.id = "TRAEA01506";
  4629. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  4630. oParam.method = "reqGetExamCureExecPrcpList";
  4631. oParam.inds = "reqparam=ds_send_reqparam";
  4632. oParam.outds = "ds_subordlist1=examcureexecdiaglist ds_grd_ordlist1=gettestrsrvinfo ds_grd_ordlist2=getordrsrvinfo ds_grd_subprcplist=examcureexecprcplist ds_examcureexecdiaglist=diaglist ds_prcpdelifactlist=prcpdelifactlist ds_isolinfo=patisolinfolist ds_main_subordlist_nameconflict=conflictyn";
  4633. oParam.async = false;
  4634. oParam.callback = "cf_TRAEA01506";
  4635. tranf_submit(oParam);
  4636. //****선택환자정보에 정보 뿌려주기
  4637. //1.검사의
  4638. ds_subordlist1.setColumn(0,"excuroomcd", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"excuroomcd"));
  4639. //2.예약일자
  4640. group3.cmb_rsrvdd.value = ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"rsrvdd");
  4641. // 3.예약시간
  4642. group3.cmb_rsrvtm.value = ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"rsrvtm");
  4643. //4.감염정보
  4644. group3.cpt_isolinfo.text = "";
  4645. if (!utlf_isNull(ds_isolinfo.getColumn(0,"etccnts"))) {
  4646. group3.cpt_isolinfo.text = "확인!";
  4647. }
  4648. //20170213 산정특례종료일자 보여주기
  4649. var serdiagtodd = ds_patlist_serdiagtodd.getColumn(0,"serdiagtodd");
  4650. var rareobsttodd = ds_patlist_serdiagtodd.getColumn(0,"rareobsttodd");
  4651. if ( !utlf_isNull(serdiagtodd) && serdiagtodd != "-" ) {
  4652. serdiagtodd = serdiagtodd.substr(0,4) + "년 " + serdiagtodd.substr(4,2) + "월 " + serdiagtodd.substr(6,2) + "일";
  4653. group3.opt_vipflag.value = "중증 종료일자는 [ " + serdiagtodd + " ] 입니다"
  4654. }
  4655. if ( !utlf_isNull(rareobsttodd) && rareobsttodd != "-" ) {
  4656. rareobsttodd = rareobsttodd.substr(0,4) + "년 " + rareobsttodd.substr(4,2) + "월 " + rareobsttodd.substr(6,2) + "일";
  4657. group3.opt_vipflag.value = "희귀난치 종료일자는 [ " + rareobsttodd + " ] 입니다"
  4658. }
  4659. //반환처방 색상주기
  4660. // grdf_initGridStyle(group3.grd_subprcplist);
  4661. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "E" , "execprcphistcd","equal" );
  4662. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "D" , "execprcphistcd","equal" );
  4663. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "L" , "execprcphistcd","equal" );
  4664. group3.opt_emrcnt.value = ds_grd_ordlist2.rowcount; //진료예약껀수
  4665. group3.opt_excucnt.value = ds_grd_ordlist1.rowcount; //검사예약껀수
  4666. }
  4667. //--=========================================================================================================
  4668. //2009-06-29 7/1 본인부담율 인상으로 인한 메세지 처리
  4669. //--=========================================================================================================
  4670. function fget0701GosiPrcpRcptChk() {
  4671. if ( frmf_getMenuParam() != "S") { // 건진제외
  4672. var flagvalue = ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"prcpexecdeptcd"); //시행부서
  4673. var tmpPID = ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"pid") // 등록번호
  4674. // flagvalue = "2220000001";
  4675. // tmpPID ="18684040";
  4676. flagvalue = "'" + flagvalue + "'";
  4677. dsf_createDsRow("ds_send_GosiPrcpRcpyn", [{col: "instcd", val:sysf_getUserInfo("dutplceinstcd")}
  4678. ,{col: "pid", val:tmpPID }
  4679. ,{col: "flagvalue", val:flagvalue }
  4680. ,{col: "flag", val:"2" }
  4681. ]);
  4682. dsf_createDs("ds_hidden_prcprcptyn");
  4683. var oParam = {};
  4684. oParam.id = "TRAEA01100";
  4685. oParam.service = "pamcomnapp.PamComn";
  4686. oParam.method = "get0701GosiPrcpRcptChk";
  4687. oParam.inds = "req=ds_send_GosiPrcpRcpyn";
  4688. oParam.outds = "ds_hidden_prcprcptyn=prcprcptyn";
  4689. oParam.async = false;
  4690. oParam.callback = "cf_TRAEA01100";
  4691. tranf_submit(oParam);
  4692. }
  4693. }
  4694. function cf_TRAEA01100(sSvcId, nErrorCode, sErrorMsg) {
  4695. if(nErrorCode < 0) return;
  4696. if ( ds_hidden_prcprcptyn.getColumn(0,"prcprcptyn") == "Y") {
  4697. //txtgosi.text = " 본인부담요율 변동 환자입니다. 수납에 정산 안내하시길 바랍니다." ; //재활 메세지로
  4698. sysf_messageBox(" 본인부담요율 변동 환자입니다. 수납으로 정산 안내하시길 바랍니다. ", "E999"); //재활 그외는 메세지창으로
  4699. }
  4700. }
  4701. //--=========================================================================================================
  4702. //2011-05-04 라벨출력 by kya
  4703. //--=========================================================================================================
  4704. function fPrintLabel() {
  4705. if ( utlf_isNull(ds_subordlist1.getColumn(0,"pid")) ) {
  4706. sysf_messageBox("처방목록이 선택되지 ", "E007");
  4707. return;
  4708. }
  4709. ds_rexbarcode.clearData();
  4710. ds_rexbarcode.addRow();
  4711. ds_rexbarcode.setColumn(0,"pid", ds_subordlist1.getColumn(0,"pid"));
  4712. ds_rexbarcode.setColumn(0,"patnm", ds_subordlist1.getColumn(0,"patnm"));
  4713. //20140721 by kya 주사약용량 추가
  4714. //start
  4715. var prcpclscd ="";
  4716. var prcpvolunitnm ="";
  4717. var prcpnm = "";
  4718. prcpnm = ds_grd_subprcplist.getColumn(ds_grd_subprcplist.rowposition,"prcpnm") ;
  4719. prcpclscd = ds_grd_subprcplist.getColumn(ds_grd_subprcplist.rowposition,"prcpclscd") ;
  4720. if ( prcpclscd == "A6" ) {
  4721. prcpvolunitnm = ds_grd_subprcplist.getColumn(ds_grd_subprcplist.rowposition,"drprcpetc7") ;
  4722. prcpvolunitnm += ds_grd_subprcplist.getColumn(ds_grd_subprcplist.rowposition,"prcpvolunitnm");
  4723. prcpvolunitnm += "/" ;
  4724. prcpvolunitnm += ds_grd_subprcplist.getColumn(ds_grd_subprcplist.rowposition,"drprcpetc8");
  4725. prcpvolunitnm += ds_grd_subprcplist.getColumn(ds_grd_subprcplist.rowposition,"prcpqtyunitnm") ;
  4726. prcpnm += " " + prcpvolunitnm;
  4727. }
  4728. //end
  4729. ds_rexbarcode.setColumn(0,"prcpnm", prcpnm);
  4730. ds_rexbarcode.setColumn(0,"gbn", "");
  4731. ds_rexbarcode.setColumn(0,"rrgstno1", ds_subordlist1.getColumn(0,"rgstno"));
  4732. ds_rexbarcode.setColumn(0,"rrgstno2", "");
  4733. ds_rexbarcode.setColumn(0,"rsrvdd", "");
  4734. ds_rexbarcode.setColumn(0,"sex", ds_subordlist1.getColumn(0,"sna"));
  4735. ds_rexbarcode.setColumn(0,"age", "");
  4736. ds_rexbarcode.setColumn(0,"wardcddeptengabbr", ds_subordlist1.getColumn(0,"prcpgenrflag"));
  4737. ds_rexbarcode.setColumn(0,"excupartcd", "");
  4738. ds_rexbarcode.setColumn(0,"roomcd", "");
  4739. ds_rexbarcode.setColumn(0,"examroomnm", ds_subordlist1.getColumn(0,"orddrnm"));
  4740. ds_rexbarcode.setColumn(0,"wardcdnm", ds_subordlist1.getColumn(0,"orddepthngnm"));
  4741. ds_rexbarcode.setColumn(0,"prcphopedd", ds_subordlist1.getColumn(0,"prcpdd"));
  4742. //makeReportPreview(0,0,10, 10, "");
  4743. //exeReportPreview("RPAEA01503","XMLSTR");
  4744. //fPrintRexbar("RPAEA01503"); //주사약라벨 전용
  4745. rptf_printRexbar("RPAEA01503","","/root/rexsend/rexbarcode",ds_rexbarcode);
  4746. }
  4747. function SMAEA01500_oninit(obj:Form, e:InitEventInfo)
  4748. {
  4749. frmf_initForm(obj); // 화면공통
  4750. }
  4751. function cf_TRAEB00010(sSvcId, nErrorCode, sErrorMsg) {
  4752. arErrorCode.push(sSvcId, nErrorCode);
  4753. }
  4754. function SMAEA01500_onload(obj:Form, e:LoadEventInfo)
  4755. {
  4756. grdf_setGridSort(group3.switch1.case5.grd_subordlist1);
  4757. grdf_setGridSort(group3.switch1.case10.grd_subordlist2);
  4758. grdf_setGridSort(group3.switch1.case1.grd_mainordlist1);
  4759. grdf_setGridSort(group3.switch1.case2.grd_mainordlist2);
  4760. grdf_setGridSort(group3.switch1.case3.grd_mainordlist3);
  4761. grdf_setGridSort(group3.switch1.case4.grd_mainordlist4);
  4762. grdf_initGrid(group3.grd_subprcplist);
  4763. group3.switch3.case8.grd_excuroomcd.deleteContentsCol(group3.switch3.case8.grd_excuroomcd.getCellCount("Head") -1);
  4764. //lf_aezfSetSuppDeptcd_main();
  4765. lf_aezfSetSuppDeptcd();
  4766. //zbcfGetCodeList( new Array("A0608"), new Array("/root/init/waitfoominfo/waitroomcdval") );
  4767. var arrParam = [{dsNm: "ds_init_A0608", cdGrpId: "A0608"}
  4768. ,{dsNm: "ds_init_M0011", cdGrpId: "M0011"}
  4769. ]
  4770. appf_getCodeList(arrParam);
  4771. //상단정보 초기화
  4772. //delPatientInfos();
  4773. appf_delPatientInfos();
  4774. //건진처방 구분
  4775. ds_send.setColumn(0,"sgubn",frmf_getMenuParam());
  4776. //건진일경우
  4777. if(frmf_getMenuParam() == "S"){
  4778. group3.button12.visible = true;
  4779. group3.button11.text = "결과상담";
  4780. group1.cap_title.text = "접수 관리(건진)";
  4781. //2011.03.28 예약탭에서 다중접수되게 수정
  4782. // grd_mainordlist1.fixedcellcheckbox(0,1) =true;
  4783. group3.switch1.case1.grd_mainordlist1.setCellProperty("head",1,"text","");
  4784. group3.switch1.case1.grd_mainordlist1.setCellProperty("head",1,"displaytype","checkbox");
  4785. group3.switch1.case1.grd_mainordlist1.setCellProperty("head",1,"edittype","checkbox");
  4786. grdf_initGrid(group3.switch1.case1.grd_mainordlist1);
  4787. }
  4788. group3_btn_case5_onclick();
  4789. group3.switch1.tabindex = 0;
  4790. group3.switch2.tabindex = 0;
  4791. group3.switch3.tabindex = 0;
  4792. lv_instance1 = utlf_transNullToEmpty(suppdeptcd);
  4793. dsf_createDsRow("ds_send_reqparam", [{col: "basesuppdeptcd", val:lv_instance1}
  4794. ,{col: "rbasecdflag", val:"R" }
  4795. ,{col: "ebasecdflag", val:"E" }
  4796. ,{col: "largeclass", val:"M5"}
  4797. ]);
  4798. //검사실 코드 갖고오기
  4799. var oParam = {};
  4800. oParam.id = "TRAEA01511";
  4801. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  4802. oParam.method = "reqGetInitFuncExamCureRoomList";
  4803. oParam.inds = "reqparam=ds_send_reqparam";
  4804. oParam.outds = "ds_init_cmb_excuroom=initexcuroom ds_init_prcpexecdeptcdlist=prcpexecdeptcdlist";
  4805. oParam.async = false;
  4806. oParam.callback = "cf_TRAEA01511";
  4807. tranf_submit(oParam);
  4808. dsf_createDsRow("ds_send_req", [{col: "dutplcecd", val:lv_instance1}
  4809. ]);
  4810. var oParam = {};
  4811. oParam.id = "TRAEA01136";
  4812. oParam.service = "examcurebaseapp.ExamCureCode";
  4813. oParam.method = "reqGetSpecDrnmList";
  4814. oParam.inds = "req=ds_send_req";
  4815. oParam.outds = "ds_specdridlist=item";
  4816. oParam.async = false;
  4817. //oParam.callback = "cf_TRAEA01136";
  4818. tranf_submit(oParam);
  4819. //바코드 출력
  4820. ds_send.setColumn(0,"scrnid", frmf_getScreenID()); // 20090617 SATO 관련 추가
  4821. var oParam = {};
  4822. oParam.id = "TRLLC90101";
  4823. oParam.service = "diagtestapplib.LisCommon";
  4824. oParam.method = "reqGetSetUpInfo";
  4825. oParam.inds = "scrnid=ds_send";
  4826. oParam.outds = "ds_barcdprntsetup=getSetUpInfo";
  4827. oParam.async = false;
  4828. //oParam.callback = "cf_TRLLC90101";
  4829. tranf_submit(oParam); // 20090617 SATO 관련 추가
  4830. lf_convertXmlToDs(ds_barcdprntsetup.getColumn(0,"prntsetupinfo"));
  4831. // // 라벨출력 초기화
  4832. // lzzfMakeBrcdPrntObjHanDo("CommAX");
  4833. //처방상태 공통코드 갖고오기
  4834. // dsf_createDsRow("ds_send_cmd", [{col: "minimum", val:"true")}
  4835. // ,{col: "join", val:"false" }
  4836. // ]);
  4837. // var oParam = {};
  4838. // oParam.id = "TRZBC00101";
  4839. // oParam.service = "basiccodeapp.BasicCodeUser";
  4840. // oParam.method = "reqGetCodeLists";
  4841. // oParam.inds = "cmd=ds_send_cmd";
  4842. // oParam.outds = "ds_=${repeat_ref}";
  4843. // oParam.async = false;
  4844. // //oParam.callback = "cf_TRZBC00101";
  4845. //
  4846. // tranf_submit(oParam);
  4847. var captionlable = lv_instance1;
  4848. // JCI 적용 여부
  4849. dsf_createDsRow("ds_send_req", [{col: "grupcdid", val:"JCI01"}
  4850. ,{col: "suppdeptcd", val:utlf_transNullToEmpty(suppdeptcd) }
  4851. ]);
  4852. var oParam = {};
  4853. oParam.id = "TRAEB00010";
  4854. oParam.service = "examcurebaseapp.ComCode";
  4855. oParam.method = "reqGetComCodeDetailList";
  4856. oParam.inds = "req=ds_send_req";
  4857. oParam.outds = "ds_codelist=item";
  4858. oParam.async = false;
  4859. oParam.callback = "cf_TRAEB00010";
  4860. tranf_submit(oParam);
  4861. if (arErrorCode.pop("TRAEB00010") > -1) {
  4862. var cnt = ds_codelist.rowcount;
  4863. if (cnt > 0) {
  4864. ds_send.setColumn(0,"jciyn", ds_codelist.getColumn(0,"cdid"));
  4865. var nrow = ds_init_pmenu_grid01.addRow();
  4866. ds_init_pmenu_grid01.setColumn(nrow,"name", "-");
  4867. ds_init_pmenu_grid01.setColumn(nrow,"func", "");
  4868. nrow = ds_init_pmenu_grid01.addRow();
  4869. ds_init_pmenu_grid01.setColumn(nrow,"name", "진정,회복 서식목록");
  4870. ds_init_pmenu_grid01.setColumn(nrow,"func", "fDepeRecovDocuSrch");
  4871. nrow = ds_init_pmenu_grid01.addRow();
  4872. ds_init_pmenu_grid01.setColumn(nrow,"name", "-");
  4873. ds_init_pmenu_grid01.setColumn(nrow,"func", "");
  4874. nrow = ds_init_pmenu_grid01.addRow();
  4875. ds_init_pmenu_grid01.setColumn(nrow,"name", "진정,회복 기록목록");
  4876. ds_init_pmenu_grid01.setColumn(nrow,"func", "fDepeRecovRecSrch");
  4877. nrow = ds_init_pmenu_grid03.addRow();
  4878. ds_init_pmenu_grid03.setColumn(nrow,"name", "-");
  4879. ds_init_pmenu_grid03.setColumn(nrow,"func", "");
  4880. nrow = ds_init_pmenu_grid03.addRow();
  4881. ds_init_pmenu_grid03.setColumn(nrow,"name", "진정,회복 서식목록");
  4882. ds_init_pmenu_grid03.setColumn(nrow,"func", "fDepeRecovDocuSrch");
  4883. nrow = ds_init_pmenu_grid03.addRow();
  4884. ds_init_pmenu_grid03.setColumn(nrow,"name", "-");
  4885. ds_init_pmenu_grid03.setColumn(nrow,"func", "");
  4886. nrow = ds_init_pmenu_grid03.addRow();
  4887. ds_init_pmenu_grid03.setColumn(nrow,"name", "진정,회복 기록목록");
  4888. ds_init_pmenu_grid03.setColumn(nrow,"func", "fDepeRecovRecSrch");
  4889. nrow = ds_init_pmenu_grid03.addRow();
  4890. ds_init_pmenu_grid03.setColumn(nrow,"name", "-");
  4891. ds_init_pmenu_grid03.setColumn(nrow,"func", "");
  4892. nrow = ds_init_pmenu_grid03.addRow();
  4893. ds_init_pmenu_grid03.setColumn(nrow,"name", "라벨출력");
  4894. ds_init_pmenu_grid03.setColumn(nrow,"func", "fPrintLabel");
  4895. nrow = ds_init_pmenu_grid04.addRow();
  4896. ds_init_pmenu_grid04.setColumn(nrow,"name", "-");
  4897. ds_init_pmenu_grid04.setColumn(nrow,"func", "");
  4898. nrow = ds_init_pmenu_grid04.addRow();
  4899. ds_init_pmenu_grid04.setColumn(nrow,"name","진정,회복 서식목록");
  4900. ds_init_pmenu_grid04.setColumn(nrow,"func","fDepeRecovDocuSrch");
  4901. nrow = ds_init_pmenu_grid04.addRow();
  4902. ds_init_pmenu_grid04.setColumn(nrow,"name", "-");
  4903. ds_init_pmenu_grid04.setColumn(nrow,"func", "");
  4904. nrow = ds_init_pmenu_grid04.addRow();
  4905. ds_init_pmenu_grid04.setColumn(nrow,"name", "진정,회복 기록목록");
  4906. ds_init_pmenu_grid04.setColumn(nrow,"func", "fDepeRecovRecSrch");
  4907. nrow = ds_init_pmenu_grid05.addRow();
  4908. ds_init_pmenu_grid05.setColumn(nrow,"name", "-");
  4909. ds_init_pmenu_grid05.setColumn(nrow,"func", "");
  4910. nrow = ds_init_pmenu_grid05.addRow();
  4911. ds_init_pmenu_grid05.setColumn(nrow,"name", "진정,회복 서식목록");
  4912. ds_init_pmenu_grid05.setColumn(nrow,"func", "fDepeRecovDocuSrch");
  4913. nrow = ds_init_pmenu_grid05.addRow();
  4914. ds_init_pmenu_grid05.setColumn(nrow,"name", "-");
  4915. ds_init_pmenu_grid05.setColumn(nrow,"func", "");
  4916. nrow = ds_init_pmenu_grid05.addRow();
  4917. ds_init_pmenu_grid05.setColumn(nrow,"name", "진정,회복 기록목록");
  4918. ds_init_pmenu_grid05.setColumn(nrow,"func", "fDepeRecovRecSrch");
  4919. nrow = ds_init_pmenu_grid05.addRow();
  4920. ds_init_pmenu_grid05.setColumn(nrow,"name", "-");
  4921. ds_init_pmenu_grid05.setColumn(nrow,"func", "");
  4922. nrow = ds_init_pmenu_grid05.addRow();
  4923. ds_init_pmenu_grid05.setColumn(nrow,"name", "라벨출력");
  4924. ds_init_pmenu_grid05.setColumn(nrow,"func", "fPrintLabel");
  4925. nrow = ds_init_pmenu_grid06.addRow();
  4926. ds_init_pmenu_grid06.setColumn(nrow,"name", "-");
  4927. ds_init_pmenu_grid06.setColumn(nrow,"func", "");
  4928. nrow = ds_init_pmenu_grid06.addRow();
  4929. ds_init_pmenu_grid06.setColumn(nrow,"name", "진정,회복 서식목록");
  4930. ds_init_pmenu_grid06.setColumn(nrow,"func", "fDepeRecovDocuSrch");
  4931. nrow = ds_init_pmenu_grid06.addRow();
  4932. ds_init_pmenu_grid06.setColumn(nrow,"name", "-");
  4933. ds_init_pmenu_grid06.setColumn(nrow,"func", "");
  4934. nrow = ds_init_pmenu_grid06.addRow();
  4935. ds_init_pmenu_grid06.setColumn(nrow,"name", "진정,회복 기록목록");
  4936. ds_init_pmenu_grid06.setColumn(nrow,"func", "fDepeRecovRecSrch");
  4937. } else {
  4938. ds_send.setColumn(0,"jciyn", "N");
  4939. }
  4940. }
  4941. //검사실 세팅
  4942. for(var i= 0; i< group3.switch3.case8.grd_excuroomcd.getCellCount("Head");i++)
  4943. {
  4944. group3.switch3.case8.grd_excuroomcd.deleteContentsCol(0);
  4945. }
  4946. //부서메모 조회를 위해 부서코드를 검사실코드로 세팅
  4947. ds_send.setColumn(0,"selectexcuroom", captionlable);
  4948. group3.group6.ipt_date1.value = utlf_getCurrentDate(); //현재일자 세팅
  4949. ds_send.setColumn(0,"tabgubn","P"); //미예약탭 조회
  4950. var ev = new ClickEventInfo;
  4951. frmf_inputEnterKey("group3.group6.btn_sea", "onclick", ev );
  4952. }
  4953. function cf_TRAEA01511(sSvcId, nErrorCode, sErrorMsg) {
  4954. if(nErrorCode < 0) return;
  4955. ds_init_cmb_excuroom.updateColID("basecd","excuroomcdid");
  4956. ds_init_cmb_excuroom.updateColID("basecdflagdesc","excuroomcdnm");
  4957. }
  4958. function group3_group6_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  4959. {
  4960. //데이타클리어
  4961. dataClear();
  4962. //상단정보 초기화
  4963. appf_delPatientInfos();
  4964. ds_send.setColumn(0,"memodd",ds_send.getColumn(0,"srchdate1"));
  4965. //부서메모 조회
  4966. dsf_createDsRow("ds_send_req", [{col: "excuroomcd", val:ds_send.getColumn(0,"selectexcuroom")}
  4967. ,{col: "deptcdflag", val:"room" }
  4968. ,{col: "memodt1", val:ds_send.getColumn(0,"memodd") }
  4969. ,{col: "memodt1", val:ds_send.getColumn(0,"memodd") }
  4970. ]);
  4971. var oParam = {};
  4972. oParam.id = "TRAEA01110";
  4973. oParam.service = "examcurebaseapp.ExamCureCode";
  4974. oParam.method = "reqGetExcuroomMemoCodeList";
  4975. oParam.inds = "req=ds_send_req";
  4976. oParam.outds = "ds_examcuredeptmemolist=examcuredeptmemolist";
  4977. oParam.async = false;
  4978. //oParam.callback = "cf_TRAEA01110";
  4979. tranf_submit(oParam);
  4980. if ( group3.switch1.tabindex == 0 ) {
  4981. fGetExamCureAcptList("P"); //미예약
  4982. }
  4983. if ( group3.switch1.tabindex == 1 ) {
  4984. fGetExamCureAcptList("Y"); //예약
  4985. }
  4986. if ( group3.switch1.tabindex == 2) {
  4987. fGetExamCureAcptList("T"); //접수
  4988. }
  4989. if (group3.switch1.tabindex == 3 ) {
  4990. fGetExamCureAcptList("Z"); //접수
  4991. }
  4992. if ( group3.switch1.tabindex == 4 ) {
  4993. fGetExamCureAcptList("L"); //전체
  4994. }
  4995. }
  4996. function group3_group6_input5_onkeydown(obj:Edit, e:KeyEventInfo)
  4997. {
  4998. if(e.keycode == 13)
  4999. {
  5000. obj.updateToDataset();
  5001. var ev = new ClickEventInfo;
  5002. frmf_inputEnterKey("group3.group6.btn_sea", "onclick", ev );
  5003. }
  5004. }
  5005. function group3_group6_button61_onclick(obj:Button, e:ClickEventInfo)
  5006. {
  5007. dsf_createDsRow("ds_send_srchpid", [{col: "srchpid", val:ds_send.getColumn(0,"srchpid")}
  5008. ]);
  5009. var objArg = new Object();
  5010. objArg.arg_ds_send = ds_send_srchpid;
  5011. // 환자조회화면 호출
  5012. frmf_modal("SPPMC02500", "SPPMC02500", objArg, "", "", "", "", "", "", "", "", "", "M");
  5013. ds_send.setColumn(0,"pid", ds_patinfolist.getColumn(0,"pid"));
  5014. var ev = new ClickEventInfo;
  5015. frmf_inputEnterKey("group3.group6.btn_sea", "onclick", ev );
  5016. }
  5017. function group3_switch1_case1_grd_mainordlist1_onrbuttonup(obj:Grid, e:GridMouseEventInfo)
  5018. {
  5019. var sgubn = ds_send.getColumn(0,"sgubn");
  5020. if(e.row < 0 || e.col < 0) return;
  5021. obj.setFocus();
  5022. grdf_setSelectedCell(obj, e);
  5023. //obj.oncellclick.fireEvent(obj, new GridClickEventInfo());
  5024. if (sgubn == "S") {
  5025. var nrow = ds_init_pmenu_grid04.addRow();
  5026. ds_init_pmenu_grid04.setColumn(nrow,"name", "-");
  5027. ds_init_pmenu_grid04.setColumn(nrow,"func", "");
  5028. nrow = ds_init_pmenu_grid04.addRow();
  5029. ds_init_pmenu_grid04.setColumn(nrow,"name", "진정전 환자 평가서");
  5030. ds_init_pmenu_grid04.setColumn(nrow,"func", "fDepeRecovPatSrch");
  5031. nrow = ds_init_pmenu_grid04.addRow();
  5032. ds_init_pmenu_grid04.setColumn(nrow,"name", "-");
  5033. ds_init_pmenu_grid04.setColumn(nrow,"func", "");
  5034. nrow = ds_init_pmenu_grid04.addRow();
  5035. ds_init_pmenu_grid04.setColumn(nrow,"name", "진정/회복 서식목록");
  5036. ds_init_pmenu_grid04.setColumn(nrow,"func", "fDepeRecovDocuSrch");
  5037. pmn_menu.innerdataset = "ds_init_pmenu_grid04";
  5038. pmn_menu.idcolumn = "func";
  5039. pmn_menu.captioncolumn = "name";
  5040. pmn_menu.levelcolumn = "func";
  5041. pmn_menu.trackPopup(e.screenX,e.screenY);
  5042. } else {
  5043. pmn_menu.innerdataset = "ds_init_pmenu_grid04";
  5044. pmn_menu.idcolumn = "func";
  5045. pmn_menu.captioncolumn = "name";
  5046. pmn_menu.levelcolumn = "func";
  5047. pmn_menu.trackPopup(e.screenX,e.screenY);
  5048. }
  5049. return true;
  5050. }
  5051. function group3_switch1_case1_grd_mainordlist1_oncellclick(obj:Grid, e:GridClickEventInfo)
  5052. {
  5053. if(frmf_getMenuParam() == "S" && e.col == 1){
  5054. //2011.04.05 건진내시경이면
  5055. }else{
  5056. for ( var i = 0; i < ds_grd_mainordlist1.rowcount; i++) {
  5057. ds_grd_mainordlist1.setColumn(i,"check", "N");
  5058. }
  5059. var selectRows = grdf_getSelectedRows(group3.switch1.case1.grd_mainordlist1);
  5060. for ( var i =0 ; i< selectRows.length;i++){
  5061. ds_grd_mainordlist1.setColumn(selectRows[i],"check", "Y");
  5062. }
  5063. group7.visible = false;
  5064. if(selectRows.length == 1 ){
  5065. var pidValue = ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"execprcpuniqno");
  5066. //var nodeList = instance1.selectNodes("/root/main/ordlist1/mainordlist[execprcpuniqno !='" + pidValue + "']");
  5067. //var node;
  5068. group3.tar_acptrem.value = ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"rsrvrem"); //예약코멘트
  5069. ds_send.setColumn(0,"excuroomcd",ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"excuroomcd"));
  5070. ds_send.setColumn(0,"memorgstdd",ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"rsrvdd"));
  5071. ds_send.setColumn(0,"srchpid", ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"pid"));
  5072. ds_send.setColumn(0,"orddd", ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"orddd"));
  5073. ds_send.setColumn(0,"orddeptcd", ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"orddeptcd"));
  5074. ds_send.setColumn(0,"prcpgenrflag", ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"prcpgenrflag"));
  5075. ds_send.setColumn(0,"ioflag", ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"ioflag"));
  5076. ds_send.setColumn(0,"prcpdd", ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"prcpdd"));
  5077. ds_send.setColumn(0,"prcpno", ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"prcpno"));
  5078. ds_send.setColumn(0,"execprcpuniqno", ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"execprcpuniqno"));
  5079. ds_send.setColumn(0,"cretno", ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"cretno"));
  5080. ds_send.setColumn(0,"age", ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"age"));
  5081. ds_send.setColumn(0,"patnm", ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"hngnm"));
  5082. ds_send.setColumn(0,"orddrid", ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"orddrid"));
  5083. ds_send.setColumn(0,"prntcalcscorcd", ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"calcscorcd")); //20170725 추가
  5084. //20131107 kya 실시일자추가
  5085. ds_send.setColumn(0,"execdd", ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"execdd"));
  5086. //20140731 선택진료비 제도변경에 대한 알림메시지
  5087. //start
  5088. var pid = ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"pid");
  5089. var prcpdd = ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"prcpdd");
  5090. var execprcpuniqno = ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"execprcpuniqno");
  5091. getPrcpRcptCheck("AST", pid, "","", prcpdd, execprcpuniqno );
  5092. //end
  5093. var sna = ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"sna");
  5094. if (sna.length > 1) {
  5095. ds_send.setColumn(0,"sex", sna.substring(0,1));
  5096. }
  5097. //상병정보, 검사예약, 진료예약, 처방내역
  5098. call_TRAEA01517();
  5099. //상병정보, 검사예약, 진료예약, 처방내역
  5100. var oParam = {};
  5101. oParam.id = "TRAEA01506";
  5102. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  5103. oParam.method = "reqGetExamCureExecPrcpList";
  5104. oParam.inds = "reqparam=ds_send_reqparam";
  5105. oParam.outds = "ds_subordlist1=examcureexecdiaglist ds_grd_ordlist1=gettestrsrvinfo ds_grd_ordlist2=getordrsrvinfo ds_grd_subprcplist=examcureexecprcplist ds_examcureexecdiaglist=diaglist ds_prcpdelifactlist=prcpdelifactlist ds_isolinfo=patisolinfolist ds_main_subordlist_nameconflict=conflictyn";
  5106. oParam.async = false;
  5107. oParam.callback = "cf_TRAEA01506";
  5108. tranf_submit(oParam);
  5109. //감염정보
  5110. group3.cpt_isolinfo.text = "";
  5111. if (!utlf_isNull(ds_isolinfo.getColumn(0,"etccnts"))) {
  5112. group3.cpt_isolinfo.text = "확인";
  5113. //20180918 감염정보 팝업
  5114. group7.visible = true;
  5115. }
  5116. //****선택환자정보에 정보 뿌려주기
  5117. //1.검사의
  5118. ds_subordlist1.setColumn(0,"excuroomcd", ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"excuroomcd"));
  5119. //2.예약일자
  5120. group3.cmb_rsrvdd.value = ds_send.getColumn(0,"srchdate1");
  5121. // 3.예약시간
  5122. group3.cmb_rsrvtm.value = ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"rsrvtm");
  5123. //20161108 동명이인
  5124. if (ds_main_subordlist_nameconflict.getColumn(0,"conflictyn") == "Y") {
  5125. sysf_messageBox("현재 환자와 성명이 동일한 환자가 존재합니다.\r\n" +
  5126. " 주의하여 작업하시기 바랍니다.", "I000");
  5127. }
  5128. //대표검사명 2011.04.08 by kya 환자인식표출력용
  5129. ds_subordlist1.setColumn(0,"prcpnm", ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"prcpnm"));
  5130. group3.opt_excucnt.value = ds_grd_ordlist1.rowcount; //검사예약껀수
  5131. group3.opt_emrcnt.value = ds_grd_ordlist2.rowcount; //진료예약껀수
  5132. //20160614 건진환자 VIP 사유 보여주기
  5133. if ( ds_grd_mainordlist1.getColumn(e.row,"vipflag") == "Y" ) {
  5134. group3.opt_vipflag.value = ds_grd_mainordlist1.getColumn(e.row,"clntgrde");
  5135. } else {
  5136. group3.opt_vipflag.value = "";
  5137. }
  5138. //20170213 산정특례종료일자 보여주기
  5139. var serdiagtodd = ds_patlist_serdiagtodd.getColumn(0,"serdiagtodd");
  5140. var rareobsttodd = ds_patlist_serdiagtodd.getColumn(0,"rareobsttodd");
  5141. if ( !utlf_isNull(serdiagtodd) && serdiagtodd != "-" ) {
  5142. serdiagtodd = serdiagtodd.substr(0,4) + "년 " + serdiagtodd.substr(4,2) + "월 " + serdiagtodd.substr(6,2) + "일";
  5143. group3.opt_vipflag.value = "중증 종료일자는 [ " + serdiagtodd + " ] 입니다"
  5144. }
  5145. if ( !utlf_isNull(rareobsttodd) && rareobsttodd != "-" ) {
  5146. rareobsttodd = rareobsttodd.substr(0,4) + "년 " + rareobsttodd.substr(4,2) + "월 " + rareobsttodd.substr(6,2) + "일";
  5147. group3.opt_vipflag.value = "희귀난치 종료일자는 [ " + rareobsttodd + " ] 입니다"
  5148. }
  5149. //반환처방 색상주기
  5150. // grdf_initGridStyle(group3.grd_subprcplist);
  5151. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "E" , "execprcphistcd","equal" );
  5152. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "D" , "execprcphistcd","equal" );
  5153. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "L" , "execprcphistcd","equal" );
  5154. fTopInfo(); //상단환자정보
  5155. fget0701GosiPrcpRcptChk(); //2009-06-29 7/1 본인부담율 인상으로 인한 메세지 처리
  5156. }
  5157. }
  5158. }
  5159. function group3_switch1_case2_grd_mainordlist2_onrbuttonup(obj:Grid, e:GridMouseEventInfo)
  5160. {
  5161. var sgubn = ds_send.getColumn(0,"sgubn");
  5162. if(e.row < 0 || e.col < 0) return;
  5163. obj.setFocus();
  5164. grdf_setSelectedCell(obj, e);
  5165. //obj.oncellclick.fireEvent(obj, new GridClickEventInfo());
  5166. if (sgubn == "S") {
  5167. pmn_menu.innerdataset = "ds_init_pmenu_grid07";
  5168. pmn_menu.idcolumn = "func";
  5169. pmn_menu.captioncolumn = "name";
  5170. pmn_menu.levelcolumn = "func";
  5171. pmn_menu.trackPopup(e.screenX,e.screenY);
  5172. } else {
  5173. pmn_menu.innerdataset = "ds_init_pmenu_grid01";
  5174. pmn_menu.idcolumn = "func";
  5175. pmn_menu.captioncolumn = "name";
  5176. pmn_menu.levelcolumn = "func";
  5177. pmn_menu.trackPopup(e.screenX,e.screenY);
  5178. }
  5179. }
  5180. function group3_switch1_case2_grd_mainordlist2_oncellclick(obj:Grid, e:GridClickEventInfo)
  5181. {
  5182. for ( var i = 0; i < ds_grd_mainordlist2.rowcount; i++) {
  5183. ds_grd_mainordlist2.setColumn(i,"check", "N");
  5184. }
  5185. var selectRows = grdf_getSelectedRows(group3.switch1.case2.grd_mainordlist2);
  5186. for ( var i =0 ; i< selectRows.length;i++){
  5187. ds_grd_mainordlist2.setColumn(selectRows[i],"check", "Y");
  5188. }
  5189. group7.visible = false;
  5190. if(selectRows.length == 1 ){ //한행만 선택한 경우
  5191. //20180913
  5192. //var idx = obj.vscrollbar.pos;
  5193. //model.setValue("/root/main/comment1/prcpcmt", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"prcpdelivefact")); //처방코멘트
  5194. group3.tar_acptrem.value = ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"rsrvrem"); //예약코멘트
  5195. group3.tar_execrem.value = ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"acptrem"); //검사코멘트
  5196. ds_send.setColumn(0,"excuroomcd",ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"excuroomcd"));
  5197. ds_send.setColumn(0,"memorgstdd",ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"rsrvdd"));
  5198. ds_send_prcplist.setColumn(0,"pid3", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"pid"));
  5199. ds_send.setColumn(0,"srchpid", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"pid"));
  5200. ds_send.setColumn(0,"orddd", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"orddd"));
  5201. ds_send.setColumn(0,"orddeptcd", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"orddeptcd"));
  5202. ds_send.setColumn(0,"ioflag", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"ioflag"));
  5203. ds_send.setColumn(0,"prcpgenrflag", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"prcpgenrflag"));
  5204. ds_send.setColumn(0,"prcpdd", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"prcpdd"));
  5205. ds_send.setColumn(0,"prcpno", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"prcpno"));
  5206. ds_send.setColumn(0,"execprcpuniqno", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"execprcpuniqno"));
  5207. ds_send.setColumn(0,"cretno", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"cretno"));
  5208. ds_send.setColumn(0,"age", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"age"));
  5209. ds_send.setColumn(0,"patnm", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"hngnm"));
  5210. ds_send.setColumn(0,"orddrid", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"orddrid"));
  5211. ds_send.setColumn(0,"prntcalcscorcd", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"calcscorcd")); //20170725 추가
  5212. //20140731 선택진료비 제도변경에 대한 알림메시지
  5213. //start
  5214. var pid = ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"pid");
  5215. var prcpdd = ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"prcpdd");
  5216. var execprcpuniqno = ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"execprcpuniqno");
  5217. getPrcpRcptCheck("AST", pid, "","", prcpdd, execprcpuniqno );
  5218. //end
  5219. //20131107 kya 실시일자추가
  5220. ds_send.setColumn(0,"execdd", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"execdd"));
  5221. var sna = ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"sna");
  5222. if (sna.length > 1) {
  5223. ds_send.setColumn(0,"sex", sna.substring(0,1));
  5224. }
  5225. call_TRAEA01517();
  5226. //상병정보, 검사예약, 진료예약, 처방내역
  5227. var oParam = {};
  5228. oParam.id = "TRAEA01506";
  5229. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  5230. oParam.method = "reqGetExamCureExecPrcpList";
  5231. oParam.inds = "reqparam=ds_send_reqparam";
  5232. oParam.outds = "ds_subordlist1=examcureexecdiaglist ds_grd_ordlist1=gettestrsrvinfo ds_grd_ordlist2=getordrsrvinfo ds_grd_subprcplist=examcureexecprcplist ds_examcureexecdiaglist=diaglist ds_prcpdelifactlist=prcpdelifactlist ds_isolinfo=patisolinfolist ds_main_subordlist_nameconflict=conflictyn";
  5233. oParam.async = false;
  5234. oParam.callback = "cf_TRAEA01506";
  5235. tranf_submit(oParam);
  5236. //****선택환자정보에 정보 뿌려주기
  5237. //1.검사의
  5238. ds_subordlist1.setColumn(0,"excuroomcd", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"excuroomcd"));
  5239. //2.예약일자
  5240. group3.cmb_rsrvdd.value = ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"rsrvdd");
  5241. // 3.예약시간
  5242. group3.cmb_rsrvtm.value = ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"rsrvtm");
  5243. //20161108 동명이인
  5244. if (ds_main_subordlist_nameconflict.getColumn(0,"conflictyn") == "Y") {
  5245. sysf_messageBox("현재 환자와 성명이 동일한 환자가 존재합니다.\r\n" +
  5246. " 주의하여 작업하시기 바랍니다.", "I000");
  5247. }
  5248. //대표검사명 2011.04.08 by kya 환자인식표출력용
  5249. ds_subordlist1.setColumn(0,"prcpnm", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"prcpnm"));
  5250. //4.감염정보
  5251. group3.cpt_isolinfo.text = "";
  5252. if (!utlf_isNull(ds_isolinfo.getColumn(0,"etccnts"))) {
  5253. group3.cpt_isolinfo.text = "[확인]";
  5254. //20180918 감염정보조회
  5255. //group7.visible = true;
  5256. }
  5257. //20160614 건진환자 VIP 사유 보여주기
  5258. if ( ds_grd_mainordlist2.getColumn(e.row,"vipflag") == "Y" ) {
  5259. group3.opt_vipflag.value = ds_grd_mainordlist2.getColumn(e.row,"clntgrde");
  5260. } else {
  5261. group3.opt_vipflag.value = "";
  5262. }
  5263. //20150826 건진정보일 경우, 접수전달사항 추가
  5264. if (ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"prcpgenrflag") == "S" ) {
  5265. ds_prcpdelifactlist.setColumn(0,"prcpdelivefact", ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"prcpdelivefact"));
  5266. }
  5267. //20170213 산정특례종료일자 보여주기
  5268. var serdiagtodd = ds_patlist_serdiagtodd.getColumn(0,"serdiagtodd");
  5269. var rareobsttodd = ds_patlist_serdiagtodd.getColumn(0,"rareobsttodd");
  5270. if ( !utlf_isNull(serdiagtodd) && serdiagtodd != "-" ) {
  5271. serdiagtodd = serdiagtodd.substr(0,4) + "년 " + serdiagtodd.substr(4,2) + "월 " + serdiagtodd.substr(6,2) + "일";
  5272. group3.opt_vipflag.value = "중증 종료일자는 [ " + serdiagtodd + " ] 입니다"
  5273. }
  5274. if ( !utlf_isNull(rareobsttodd) && rareobsttodd != "-" ) {
  5275. rareobsttodd = rareobsttodd.substr(0,4) + "년 " + rareobsttodd.substr(4,2) + "월 " + rareobsttodd.substr(6,2) + "일";
  5276. group3.opt_vipflag.value = "희귀난치 종료일자는 [ " + rareobsttodd + " ] 입니다"
  5277. }
  5278. //반환처방 색상주기
  5279. // grdf_initGridStyle(group3.grd_subprcplist);
  5280. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "E" , "execprcphistcd","equal" );
  5281. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "D" , "execprcphistcd","equal" );
  5282. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "L" , "execprcphistcd","equal" );
  5283. group3.opt_excucnt.value = ds_grd_ordlist1.rowcount; //검사예약껀수
  5284. group3.opt_emrcnt.value = ds_grd_ordlist2.rowcount; //진료예약껀수
  5285. fTopInfo(); //상단환자정보
  5286. }
  5287. }
  5288. //20190814 대체처방에서 호출
  5289. function fn_getmainordlist2()
  5290. {
  5291. //상병정보, 검사예약, 진료예약, 처방내역
  5292. var oParam = {};
  5293. oParam.id = "TRAEA01506";
  5294. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  5295. oParam.method = "reqGetExamCureExecPrcpList";
  5296. oParam.inds = "reqparam=ds_send_reqparam";
  5297. oParam.outds = "ds_subordlist1=examcureexecdiaglist ds_grd_ordlist1=gettestrsrvinfo ds_grd_ordlist2=getordrsrvinfo ds_grd_subprcplist=examcureexecprcplist ds_examcureexecdiaglist=diaglist ds_prcpdelifactlist=prcpdelifactlist ds_isolinfo=patisolinfolist ds_main_subordlist_nameconflict=conflictyn";
  5298. oParam.async = false;
  5299. oParam.callback = "cf_TRAEA01506";
  5300. tranf_submit(oParam);
  5301. }
  5302. function group3_switch1_case3_grd_mainordlist3_oncellclick(obj:Grid, e:GridClickEventInfo)
  5303. {
  5304. var pidValue = ds_grd_mainordlist3.getColumn(e.row,"execprcpuniqno");
  5305. ds_grd_mainordlist3.filter("execprcpuniqno !='" + pidValue + "'");
  5306. ds_grd_mainordlist3.applyChange();
  5307. for(var i =0; i<ds_grd_mainordlist3.rowcount;i++)
  5308. {
  5309. ds_grd_mainordlist3.setColumn(i,"check","N");
  5310. }
  5311. ds_grd_mainordlist3.filter("");
  5312. if( e.col != 1 ) {
  5313. if( ds_grd_mainordlist3.getColumn(e.row,"check") == "Y" ) {
  5314. ds_grd_mainordlist3.setColumn(e.row,"check", "N");
  5315. }
  5316. else {
  5317. ds_grd_mainordlist3.setColumn(e.row,"check", "Y");
  5318. }
  5319. }
  5320. // model.setValue("/root/main/comment1/prcpcmt", ds_grd_mainordlist3.getColumn(ds_grd_mainordlist3.rowposition,"prcpdelivefact")); //처방코멘트
  5321. group3.tar_acptrem.value = ds_grd_mainordlist3.getColumn(e.row,"rsrvrem"); //예약코멘트
  5322. group3.tar_execrem.value = ds_grd_mainordlist3.getColumn(e.row,"acptrem"); //검사코멘트
  5323. ds_send.setColumn(0,"excuroomcd",ds_grd_mainordlist3.getColumn(e.row,"excuroomcd"));
  5324. ds_send.setColumn(0,"memorgstdd",ds_grd_mainordlist3.getColumn(e.row,"rsrvdd"));
  5325. ds_send_prcplist.setColumn(0,"pid3", ds_grd_mainordlist3.getColumn(e.row,"pid"));
  5326. ds_send.setColumn(0,"srchpid", ds_grd_mainordlist3.getColumn(e.row,"pid"));
  5327. ds_send.setColumn(0,"orddd", ds_grd_mainordlist3.getColumn(e.row,"orddd"));
  5328. ds_send.setColumn(0,"orddeptcd", ds_grd_mainordlist3.getColumn(e.row,"orddeptcd"));
  5329. ds_send.setColumn(0,"ioflag", ds_grd_mainordlist3.getColumn(e.row,"ioflag"));
  5330. ds_send.setColumn(0,"prcpgenrflag", ds_grd_mainordlist3.getColumn(e.row,"prcpgenrflag"));
  5331. ds_send.setColumn(0,"prcpdd", ds_grd_mainordlist3.getColumn(e.row,"prcpdd"));
  5332. ds_send.setColumn(0,"prcpno", ds_grd_mainordlist3.getColumn(e.row,"prcpno"));
  5333. ds_send.setColumn(0,"execprcpuniqno", ds_grd_mainordlist3.getColumn(e.row,"execprcpuniqno"));
  5334. ds_send.setColumn(0,"cretno", ds_grd_mainordlist3.getColumn(e.row,"cretno"));
  5335. ds_send.setColumn(0,"age", ds_grd_mainordlist3.getColumn(e.row,"age"));
  5336. ds_send.setColumn(0,"patnm", ds_grd_mainordlist3.getColumn(e.row,"hngnm"));
  5337. ds_send.setColumn(0,"orddrid", ds_grd_mainordlist3.getColumn(e.row,"orddrid"));
  5338. //20170807추가
  5339. ds_send.setColumn(0,"prntcalcscorcd", ds_grd_mainordlist3.getColumn(e.row, "calcscorcd"));
  5340. //20131107 kya 실시일자추가
  5341. ds_send.setColumn(0,"execdd", ds_grd_mainordlist3.getColumn(e.row,"execdd"));
  5342. var sna = utlf_transNullToEmpty(ds_grd_mainordlist3.getColumn(e.row,"sna"));
  5343. if (sna.length > 1) {
  5344. ds_send.setColumn(0,"sex", sna.substring(0,1));
  5345. }
  5346. call_TRAEA01517();
  5347. //상병정보, 검사예약, 진료예약, 처방내역
  5348. var oParam = {};
  5349. oParam.id = "TRAEA01506";
  5350. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  5351. oParam.method = "reqGetExamCureExecPrcpList";
  5352. oParam.inds = "reqparam=ds_send_reqparam";
  5353. oParam.outds = "ds_subordlist1=examcureexecdiaglist ds_grd_ordlist1=gettestrsrvinfo ds_grd_ordlist2=getordrsrvinfo ds_grd_subprcplist=examcureexecprcplist ds_examcureexecdiaglist=diaglist ds_prcpdelifactlist=prcpdelifactlist ds_isolinfo=patisolinfolist ds_main_subordlist_nameconflict=conflictyn";
  5354. oParam.async = false;
  5355. oParam.callback = "cf_TRAEA01506";
  5356. tranf_submit(oParam);
  5357. //****선택환자정보에 정보 뿌려주기
  5358. //1.검사의
  5359. ds_subordlist1.setColumn(0,"excuroomcd", ds_grd_mainordlist3.getColumn(e.row,"excuroomcd"));
  5360. //대표검사명 2011.04.08 by kya 환자인식표출력용
  5361. ds_subordlist1.setColumn(0,"prcpnm", ds_grd_mainordlist3.getColumn(e.row,"prcpnm"));
  5362. //2.예약일자
  5363. group3.cmb_rsrvdd.value = ds_grd_mainordlist3.getColumn(e.row,"rsrvdd");
  5364. // 3.예약시간
  5365. group3.cmb_rsrvtm.value = ds_grd_mainordlist3.getColumn(e.row,"rsrvtm");
  5366. //4.감염정보
  5367. group3.cpt_isolinfo.text = "";
  5368. if (!utlf_isNull(ds_isolinfo.getColumn(0,"etccnts"))) {
  5369. group3.cpt_isolinfo.text = "[확인]";
  5370. }
  5371. //20161108 동명이인
  5372. if (ds_main_subordlist_nameconflict.getColumn(0,"conflictyn") == "Y") {
  5373. sysf_messageBox("현재 환자와 성명이 동일한 환자가 존재합니다.\r\n" +
  5374. " 주의하여 작업하시기 바랍니다.", "I000");
  5375. }
  5376. //20150826 건진정보일 경우, 접수전달사항 추가
  5377. if (ds_grd_mainordlist3.getColumn(e.row,"prcpgenrflag") == "S" ) {
  5378. ds_prcpdelifactlist.setColumn(0,"prcpdelivefact", ds_grd_mainordlist3.getColumn(e.row,"prcpdelivefact"));
  5379. }
  5380. //20160614 건진환자 VIP 사유 보여주기
  5381. if ( ds_grd_mainordlist3.getColumn(e.row,"vipflag") == "Y" ) {
  5382. group3.opt_vipflag.value = ds_grd_mainordlist3.getColumn(e.row,"clntgrde");
  5383. } else {
  5384. group3.opt_vipflag.value = "";
  5385. }
  5386. //20170213 산정특례종료일자 보여주기
  5387. var serdiagtodd = dsf_getColumnNullToEmpty(ds_patlist_serdiagtodd,0,"serdiagtodd");
  5388. var rareobsttodd = dsf_getColumnNullToEmpty(ds_patlist_serdiagtodd,0,"rareobsttodd");
  5389. if ( !utlf_isNull(serdiagtodd) && serdiagtodd != "-" ) {
  5390. serdiagtodd = serdiagtodd.substr(0,4) + "년 " + serdiagtodd.substr(4,2) + "월 " + serdiagtodd.substr(6,2) + "일";
  5391. group3.opt_vipflag.value = "중증 종료일자는 [ " + serdiagtodd + " ] 입니다"
  5392. }
  5393. if ( !utlf_isNull(rareobsttodd) && rareobsttodd != "-" ) {
  5394. rareobsttodd = rareobsttodd.substr(0,4) + "년 " + rareobsttodd.substr(4,2) + "월 " + rareobsttodd.substr(6,2) + "일";
  5395. group3.opt_vipflag.value = "희귀난치 종료일자는 [ " + rareobsttodd + " ] 입니다"
  5396. }
  5397. //반환처방 색상주기
  5398. // grdf_initGridStyle(group3.grd_subprcplist);
  5399. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "E" , "execprcphistcd","equal" );
  5400. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "D" , "execprcphistcd","equal" );
  5401. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "L" , "execprcphistcd","equal" );
  5402. group3.opt_excucnt.value = ds_grd_ordlist1.rowcount; //검사예약껀수
  5403. group3.opt_emrcnt.value = ds_grd_ordlist2.rowcount; //진료예약껀수
  5404. ds_grd_mainordlist3.rowposition = e.row;
  5405. fTopInfo(); //상단환자정보
  5406. }
  5407. function group3_switch1_case3_grd_mainordlist3_onrbuttonup(obj:Grid, e:GridMouseEventInfo)
  5408. {
  5409. var sgubn = ds_send.getColumn(0,"sgubn");
  5410. if(e.row < 0 || e.col < 0) return;
  5411. obj.setFocus();
  5412. grdf_setSelectedCell(obj, e);
  5413. //obj.oncellclick.fireEvent(obj, new GridClickEventInfo());
  5414. if (sgubn == "S") {
  5415. pmn_menu.innerdataset = "ds_init_pmenu_grid07";
  5416. pmn_menu.idcolumn = "func";
  5417. pmn_menu.captioncolumn = "name";
  5418. pmn_menu.levelcolumn = "func";
  5419. pmn_menu.trackPopup(e.screenX,e.screenY);
  5420. } else {
  5421. pmn_menu.innerdataset = "ds_init_pmenu_grid06";
  5422. pmn_menu.idcolumn = "func";
  5423. pmn_menu.captioncolumn = "name";
  5424. pmn_menu.levelcolumn = "func";
  5425. pmn_menu.trackPopup(e.screenX,e.screenY);
  5426. }
  5427. return true;
  5428. }
  5429. function group3_switch1_case4_grd_mainordlist4_oncellclick(obj:Grid, e:GridClickEventInfo)
  5430. {
  5431. if( ds_grd_mainordlist4.getColumn(e.row,"execprcpstatcd") == "000" || ds_grd_mainordlist4.getColumn(e.row,"execprcpstatcd") == "100" || ds_grd_mainordlist4.getColumn(e.row,"execprcpstatcd") == "230" ) {
  5432. group3.btn_rsrv.enable = true;
  5433. group3.btn_cncl.enable = true;
  5434. }
  5435. else {
  5436. group3.btn_rsrv.enable = false;
  5437. group3.btn_cncl.enable = false;
  5438. }
  5439. group7.visible = false;
  5440. // model.setValue("/root/main/comment1/prcpcmt", ds_grd_mainordlist4.getColumn(ds_grd_mainordlist4.rowposition,"prcpdelivefact")); //처방코멘트
  5441. group3.tar_acptrem.value = ds_grd_mainordlist4.getColumn(e.row,"rsrvrem"); //예약코멘트
  5442. group3.tar_execrem.value = ds_grd_mainordlist4.getColumn(e.row,"acptrem"); //검사코멘트
  5443. ds_send.setColumn(0,"excuroomcd",ds_grd_mainordlist4.getColumn(e.row,"excuroomcd"));
  5444. ds_send.setColumn(0,"memorgstdd",ds_grd_mainordlist4.getColumn(e.row,"rsrvdd"));
  5445. ds_send_prcplist.setColumn(0,"pid3", ds_grd_mainordlist4.getColumn(e.row,"pid"));
  5446. ds_send.setColumn(0,"srchpid", ds_grd_mainordlist4.getColumn(e.row,"pid"));
  5447. ds_send.setColumn(0,"orddd", ds_grd_mainordlist4.getColumn(e.row,"orddd"));
  5448. ds_send.setColumn(0,"orddeptcd", ds_grd_mainordlist4.getColumn(e.row,"orddeptcd"));
  5449. ds_send.setColumn(0,"prcpgenrflag", ds_grd_mainordlist4.getColumn(e.row,"prcpgenrflag"));
  5450. ds_send.setColumn(0,"ioflag", ds_grd_mainordlist4.getColumn(e.row,"ioflag"));
  5451. ds_send.setColumn(0,"prcpdd", ds_grd_mainordlist4.getColumn(e.row,"prcpdd"));
  5452. ds_send.setColumn(0,"prcpno", ds_grd_mainordlist4.getColumn(e.row,"prcpno"));
  5453. ds_send.setColumn(0,"execprcpuniqno", ds_grd_mainordlist4.getColumn(e.row,"execprcpuniqno"));
  5454. ds_send.setColumn(0,"cretno", ds_grd_mainordlist4.getColumn(e.row,"cretno"));
  5455. ds_send.setColumn(0,"age", ds_grd_mainordlist4.getColumn(e.row,"age"));
  5456. ds_send.setColumn(0,"patnm", ds_grd_mainordlist4.getColumn(e.row,"hngnm"));
  5457. ds_send.setColumn(0,"orddrid", ds_grd_mainordlist4.getColumn(e.row,"orddrid"));
  5458. //20140731 선택진료비 제도변경에 대한 알림메시지
  5459. //start
  5460. var pid = ds_grd_mainordlist4.getColumn(e.row,"pid");
  5461. var prcpdd = ds_grd_mainordlist4.getColumn(e.row,"prcpdd");
  5462. var execprcpuniqno = ds_grd_mainordlist4.getColumn(e.row,"execprcpuniqno");
  5463. getPrcpRcptCheck("AST", pid, "","", prcpdd, execprcpuniqno );
  5464. //end
  5465. //20131107 kya 실시일자추가
  5466. ds_send.setColumn(0,"execdd", ds_grd_mainordlist4.getColumn(e.row,"execdd"));
  5467. var sna = utlf_transNullToEmpty(ds_grd_mainordlist4.getColumn(e.row,"sna"));
  5468. if (sna.length > 1) {
  5469. ds_send.setColumn(0,"sex", sna.substring(0,1));
  5470. }
  5471. call_TRAEA01517();
  5472. //상병정보, 검사예약, 진료예약, 처방내역
  5473. var oParam = {};
  5474. oParam.id = "TRAEA01506";
  5475. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  5476. oParam.method = "reqGetExamCureExecPrcpList";
  5477. oParam.inds = "reqparam=ds_send_reqparam";
  5478. oParam.outds = "ds_subordlist1=examcureexecdiaglist ds_grd_ordlist1=gettestrsrvinfo ds_grd_ordlist2=getordrsrvinfo ds_grd_subprcplist=examcureexecprcplist ds_examcureexecdiaglist=diaglist ds_prcpdelifactlist=prcpdelifactlist ds_isolinfo=patisolinfolist ds_main_subordlist_nameconflict=conflictyn";
  5479. oParam.async = false;
  5480. oParam.callback = "cf_TRAEA01506";
  5481. tranf_submit(oParam);
  5482. //****선택환자정보에 정보 뿌려주기
  5483. //1.검사의
  5484. ds_subordlist1.setColumn(0,"excuroomcd", ds_grd_mainordlist4.getColumn(e.row,"excuroomcd"));
  5485. //대표검사명 2011.04.08 by kya 환자인식표출력용
  5486. ds_subordlist1.setColumn(0,"prcpnm",ds_grd_mainordlist4.getColumn(e.row,"prcpnm"));
  5487. //2.예약일자
  5488. group3.cmb_rsrvdd.value = ds_grd_mainordlist4.getColumn(e.row,"rsrvdd");
  5489. // 3.예약시간
  5490. group3.cmb_rsrvtm.value = ds_grd_mainordlist4.getColumn(e.row,"rsrvtm");
  5491. //4.감염정보
  5492. group3.cpt_isolinfo.text = "";
  5493. if (!utlf_isNull(ds_isolinfo.getColumn(0,"etccnts"))) {
  5494. group3.cpt_isolinfo.text = "[확인]";
  5495. }
  5496. //20161108 동명이인
  5497. if (ds_main_subordlist_nameconflict.getColumn(0,"conflictyn") == "Y") {
  5498. sysf_messageBox("현재 환자와 성명이 동일한 환자가 존재합니다.\r\n" +
  5499. " 주의하여 작업하시기 바랍니다.", "I000");
  5500. }
  5501. group3.opt_excucnt.value = ds_grd_ordlist1.rowcount; //검사예약껀수
  5502. group3.opt_emrcnt.value = ds_grd_ordlist2.rowcount; //진료예약껀수
  5503. //20160614 건진환자 VIP 사유 보여주기
  5504. if ( ds_grd_mainordlist4.getColumn(e.row,"vipflag") == "Y" ) {
  5505. group3.opt_vipflag.value = ds_grd_mainordlist4.getColumn(e.row,"clntgrde");
  5506. } else {
  5507. group3.opt_vipflag.value = "";
  5508. }
  5509. //20170213 산정특례종료일자 보여주기
  5510. var serdiagtodd = ds_patlist_serdiagtodd.getColumn(0,"serdiagtodd");
  5511. var rareobsttodd = ds_patlist_serdiagtodd.getColumn(0,"rareobsttodd");
  5512. if ( !utlf_isNull(serdiagtodd) && serdiagtodd != "-" ) {
  5513. serdiagtodd = serdiagtodd.substr(0,4) + "년 " + serdiagtodd.substr(4,2) + "월 " + serdiagtodd.substr(6,2) + "일";
  5514. group3.opt_vipflag.value = "중증 종료일자는 [ " + serdiagtodd + " ] 입니다"
  5515. }
  5516. if ( !utlf_isNull(rareobsttodd) && rareobsttodd != "-" ) {
  5517. rareobsttodd = rareobsttodd.substr(0,4) + "년 " + rareobsttodd.substr(4,2) + "월 " + rareobsttodd.substr(6,2) + "일";
  5518. group3.opt_vipflag.value = "희귀난치 종료일자는 [ " + rareobsttodd + " ] 입니다"
  5519. }
  5520. //반환처방 색상주기
  5521. // grdf_initGridStyle(group3.grd_subprcplist);
  5522. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "E" , "execprcphistcd","equal" );
  5523. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "D" , "execprcphistcd","equal" );
  5524. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "L" , "execprcphistcd","equal" );
  5525. fTopInfo(); //상단환자정보
  5526. }
  5527. function group3_switch1_case4_grd_mainordlist4_onrbuttonup(obj:Grid, e:GridMouseEventInfo)
  5528. {
  5529. var sgubn = ds_send.getColumn(0,"sgubn");
  5530. if(e.row < 0 || e.col < 0) return;
  5531. obj.setFocus();
  5532. grdf_setSelectedCell(obj, e);
  5533. //obj.oncellclick.fireEvent(obj, new GridClickEventInfo());
  5534. if (sgubn == "S") {
  5535. pmn_menu.innerdataset = "ds_init_pmenu_grid07";
  5536. pmn_menu.idcolumn = "func";
  5537. pmn_menu.captioncolumn = "name";
  5538. pmn_menu.levelcolumn = "func";
  5539. pmn_menu.trackPopup(e.screenX,e.screenY);
  5540. } else {
  5541. pmn_menu.innerdataset = "ds_init_pmenu_grid06";
  5542. pmn_menu.idcolumn = "func";
  5543. pmn_menu.captioncolumn = "name";
  5544. pmn_menu.levelcolumn = "func";
  5545. pmn_menu.trackPopup(e.screenX,e.screenY);
  5546. }
  5547. return true;
  5548. }
  5549. function group3_switch1_case5_grd_subordlist1_oncellclick(obj:Grid, e:GridClickEventInfo)
  5550. {
  5551. //응급환자 바로 접수
  5552. //20101005 입원환자 바로 접수가능하게 수정 - 박재영
  5553. if( ds_send.getColumn(0,"sgubn") != "S" && ds_grd_subordlist1.getColumn(e.row,"prcpgenrflag") == "E"){
  5554. group3.btn_save.enable = true;
  5555. }else if(ds_send.getColumn(0,"sgubn") != "S" && ds_grd_subordlist1.getColumn(e.row,"prcpgenrflag") == "I"){//20101005 추가
  5556. group3.btn_save.enable = true;
  5557. }else if(ds_send.getColumn(0,"sgubn") != "S" && ds_grd_subordlist1.getColumn(e.row,"prcpgenrflag") == "O"){
  5558. group3.btn_save.enable = false;
  5559. }
  5560. group7.visible = false;
  5561. ds_send.setColumn(0,"excuroomcd",ds_grd_subordlist1.getColumn(e.row,"excuroomcd"));
  5562. ds_send.setColumn(0,"memorgstdd",ds_grd_subordlist1.getColumn(e.row,"rsrvdd"));
  5563. ds_send_prcplist.setColumn(0,"pid3", ds_grd_subordlist1.getColumn(e.row,"pid"));
  5564. ds_send.setColumn(0,"srchpid", ds_grd_subordlist1.getColumn(e.row,"pid"));
  5565. ds_send.setColumn(0,"orddd", ds_grd_subordlist1.getColumn(e.row,"orddd"));
  5566. ds_send.setColumn(0,"orddeptcd", ds_grd_subordlist1.getColumn(e.row,"orddeptcd"));
  5567. ds_send.setColumn(0,"prcpgenrflag", ds_grd_subordlist1.getColumn(e.row,"prcpgenrflag"));
  5568. ds_send.setColumn(0,"ioflag", ds_grd_subordlist1.getColumn(e.row,"ioflag"));
  5569. ds_send.setColumn(0,"prcpdd", ds_grd_subordlist1.getColumn(e.row,"prcpdd"));
  5570. ds_send.setColumn(0,"prcpno", ds_grd_subordlist1.getColumn(e.row,"prcpno"));
  5571. ds_send.setColumn(0,"execprcpuniqno", ds_grd_subordlist1.getColumn(e.row,"execprcpuniqno"));
  5572. ds_send.setColumn(0,"cretno", ds_grd_subordlist1.getColumn(e.row,"cretno"));
  5573. ds_send.setColumn(0,"age", ds_grd_subordlist1.getColumn(e.row,"age"));
  5574. ds_send.setColumn(0,"patnm", ds_grd_subordlist1.getColumn(e.row,"hngnm"));
  5575. ds_send.setColumn(0,"orddrid", ds_grd_subordlist1.getColumn(e.row,"orddrid"));
  5576. //20170807추가
  5577. ds_send.setColumn(0,"prntcalcscorcd", ds_grd_subordlist1.getColumn(e.row, "calcscorcd"));
  5578. //20140731 선택진료비 제도변경에 대한 알림메시지
  5579. //start
  5580. var pid = ds_grd_subordlist1.getColumn(e.row,"pid");
  5581. var prcpdd = ds_grd_subordlist1.getColumn(e.row,"prcpdd");
  5582. var execprcpuniqno = ds_grd_subordlist1.getColumn(e.row,"execprcpuniqno");
  5583. getPrcpRcptCheck("AST", pid, "","", prcpdd, execprcpuniqno );
  5584. //end
  5585. //20131107 kya 실시일자추가
  5586. ds_send.setColumn(0,"execdd",ds_grd_subordlist1.getColumn(e.row,"execdd"));
  5587. var sna = utlf_transNullToEmpty(ds_grd_subordlist1.getColumn(e.row,"sna"));
  5588. if (sna.length > 1) {
  5589. ds_send.setColumn(0,"sex", sna.substring(0,1));
  5590. }
  5591. call_TRAEA01517();
  5592. //상병정보, 검사예약, 진료예약, 처방내역
  5593. var oParam = {};
  5594. oParam.id = "TRAEA01506";
  5595. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  5596. oParam.method = "reqGetExamCureExecPrcpList";
  5597. oParam.inds = "reqparam=ds_send_reqparam";
  5598. oParam.outds = "ds_subordlist1=examcureexecdiaglist ds_grd_ordlist1=gettestrsrvinfo ds_grd_ordlist2=getordrsrvinfo ds_grd_subprcplist=examcureexecprcplist ds_examcureexecdiaglist=diaglist ds_prcpdelifactlist=prcpdelifactlist ds_isolinfo=patisolinfolist ds_main_subordlist_nameconflict=conflictyn";
  5599. oParam.async = false;
  5600. oParam.callback = "cf_TRAEA01506";
  5601. tranf_submit(oParam);
  5602. //유효하지 않은 수가 색깔 표현
  5603. //fSetSubDetailGrid(); //그리드색깔
  5604. //20190121 미예약일 경우, 처방정보가 없어서, 처방내역에서 가져옴
  5605. ds_subordlist1.setColumn(0,"prcpnm", ds_grd_subordlist1.getColumn(e.row,"prcpnm"));
  5606. //감염정보
  5607. group3.cpt_isolinfo.text = "";
  5608. if (!utlf_isNull(ds_isolinfo.getColumn(0,"etccnts"))) {
  5609. group3.cpt_isolinfo.text = "[확인]";
  5610. //20180918 감염정보 팝업
  5611. group7.visible = true;
  5612. }
  5613. // model.setValue("/root/main/comment1/prcpcmt",model.getValue("/root/main/ordlist5/mainordlist["+grd_subordlist1.row+"]/prcpdelivefact"));
  5614. group3.tar_acptrem.value = "";
  5615. group3.tar_execrem.value = "";
  5616. group3.cmb_rsrvtm.value = "";
  5617. group3.cmb_rsrvdd.value = "";
  5618. group3.opt_excucnt.value = ds_grd_ordlist1.rowcount; //검사예약껀수
  5619. group3.opt_emrcnt.value = ds_grd_ordlist2.rowcount; //진료예약껀수
  5620. //20160614 건진환자 VIP 사유 보여주기
  5621. if ( ds_grd_subordlist1.getColumn(e.row,"vipflag") == "Y" ) {
  5622. group3.opt_vipflag.value = ds_grd_subordlist1.getColumn(e.row,"clntgrde");
  5623. } else {
  5624. group3.opt_vipflag.value = "";
  5625. }
  5626. //20161108 동명이인
  5627. if (ds_main_subordlist_nameconflict.getColumn(0,"conflictyn") == "Y") {
  5628. sysf_messageBox("현재 환자와 성명이 동일한 환자가 존재합니다.\r\n" +
  5629. " 주의하여 작업하시기 바랍니다.", "I000");
  5630. }
  5631. //20170213 산정특례종료일자 보여주기
  5632. var serdiagtodd = ds_patlist_serdiagtodd.getColumn(0,"serdiagtodd");
  5633. var rareobsttodd = ds_patlist_serdiagtodd.getColumn(0,"rareobsttodd");
  5634. if ( !utlf_isNull(serdiagtodd) && serdiagtodd != "-" ) {
  5635. serdiagtodd = serdiagtodd.substr(0,4) + "년 " + serdiagtodd.substr(4,2) + "월 " + serdiagtodd.substr(6,2) + "일";
  5636. group3.opt_vipflag.value = "중증 종료일자는 [ " + serdiagtodd + " ] 입니다"
  5637. }
  5638. if ( !utlf_isNull(rareobsttodd) && rareobsttodd != "-" ) {
  5639. rareobsttodd = rareobsttodd.substr(0,4) + "년 " + rareobsttodd.substr(4,2) + "월 " + rareobsttodd.substr(6,2) + "일";
  5640. group3.opt_vipflag.value = "희귀난치 종료일자는 [ " + rareobsttodd + " ] 입니다"
  5641. }
  5642. //반환처방 색상주기
  5643. // grdf_initGridStyle(group3.grd_subprcplist);
  5644. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "E" , "execprcphistcd","equal" );
  5645. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "D" , "execprcphistcd","equal" );
  5646. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "L" , "execprcphistcd","equal" );
  5647. fTopInfo(); //상단환자정보
  5648. }
  5649. /****************************************************************************************
  5650. * Argument : N/A
  5651. * Description : 실별대기현황 그리드 Color Setting Function
  5652. ****************************************************************************************/
  5653. function fSetSubDetailGrid()
  5654. {
  5655. for ( var i = 0 ; i < group3.grd_subprcplist.getCellCount("Head") ; i++ ) {
  5656. group3.grd_subprcplist.setCellProperty("body",i,"background","expr(sugauseyn == 'N' ? 'red' : EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : ''))");
  5657. group3.grd_subprcplist.setCellProperty("body",i,"background2","expr(sugauseyn == 'N' ? 'red' : EXPR(execprcphistcd == 'E' || execprcphistcd == 'D' || execprcphistcd == 'L' ? '#f3e1bf' : ''))");
  5658. }
  5659. }
  5660. function group3_switch1_case5_grd_subordlist1_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  5661. {
  5662. // if(e.row < 0 || e.col < 0) return;
  5663. // obj.setFocus();
  5664. // grdf_setSelectedCell(obj, e);
  5665. // //obj.oncellclick.fireEvent(obj, new GridClickEventInfo());
  5666. // pmn_menu.innerdataset = "ds_init_pmenu_grid06";
  5667. // pmn_menu.idcolumn = "func";
  5668. // pmn_menu.captioncolumn = "name";
  5669. // pmn_menu.levelcolumn = "func";
  5670. // pmn_menu.trackPopup(e.screenX,e.screenY);
  5671. }
  5672. function group3_switch1_case10_grd_subordlist2_oncellclick(obj:Grid, e:GridClickEventInfo)
  5673. {
  5674. btn_rsrv.disabled = true;
  5675. btn_cncl.disabled = true;
  5676. group3.tar_acptrem.value = ds_grd_subordlist2.getColumn(e.row,"rsrvrem"); //예약코멘트
  5677. group3.tar_execrem.value = ds_grd_subordlist2.getColumn(e.row,"acptrem"); //검사코멘트
  5678. ds_send.setColumn(0,"excuroomcd", ds_grd_subordlist2.getColumn(e.row,"excuroomcd"));
  5679. ds_send.setColumn(0,"memorgstdd", ds_grd_subordlist2.getColumn(e.row,"rsrvdd"));
  5680. ds_send_prcplist.setColumn(0,"pid3", ds_grd_subordlist2.getColumn(e.row,"pid"));
  5681. ds_send.setColumn(0,"srchpid", ds_grd_subordlist2.getColumn(e.row,"pid"));
  5682. ds_send.setColumn(0,"orddd", ds_grd_subordlist2.getColumn(e.row,"orddd"));
  5683. ds_send.setColumn(0,"orddeptcd", ds_grd_subordlist2.getColumn(e.row,"orddeptcd"));
  5684. ds_send.setColumn(0,"prcpgenrflag", ds_grd_subordlist2.getColumn(e.row,"prcpgenrflag"));
  5685. ds_send.setColumn(0,"ioflag", ds_grd_subordlist2.getColumn(e.row,"ioflag"));
  5686. ds_send.setColumn(0,"prcpdd", ds_grd_subordlist2.getColumn(e.row,"prcpdd"));
  5687. ds_send.setColumn(0,"prcpno", ds_grd_subordlist2.getColumn(e.row,"prcpno"));
  5688. ds_send.setColumn(0,"execprcpuniqno", ds_grd_subordlist2.getColumn(e.row,"execprcpuniqno"));
  5689. ds_send.setColumn(0,"cretno", ds_grd_subordlist2.getColumn(e.row,"cretno"));
  5690. ds_send.setColumn(0,"age", ds_grd_subordlist2.getColumn(e.row,"age"));
  5691. ds_send.setColumn(0,"patnm", ds_grd_subordlist2.getColumn(e.row,"hngnm"));
  5692. ds_send.setColumn(0,"orddrid", ds_grd_subordlist2.getColumn(e.row,"orddrid"));
  5693. var sna = utlf_transNullToEmpty(ds_grd_subordlist2.getColumn(e.row,"sna"));
  5694. if (sna.length > 1) {
  5695. ds_send.setColumn(0,"sex", sna.substring(0,1));
  5696. }
  5697. call_TRAEA01517();
  5698. //상병정보, 검사예약, 진료예약, 처방내역
  5699. var oParam = {};
  5700. oParam.id = "TRAEA01506";
  5701. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  5702. oParam.method = "reqGetExamCureExecPrcpList";
  5703. oParam.inds = "reqparam=ds_send_reqparam";
  5704. oParam.outds = "ds_subordlist1=examcureexecdiaglist ds_grd_ordlist1=gettestrsrvinfo ds_grd_ordlist2=getordrsrvinfo ds_grd_subprcplist=examcureexecprcplist ds_examcureexecdiaglist=diaglist ds_prcpdelifactlist=prcpdelifactlist ds_isolinfo=patisolinfolist ds_main_subordlist_nameconflict=conflictyn";
  5705. oParam.async = false;
  5706. oParam.callback = "cf_TRAEA01506";
  5707. tranf_submit(oParam);
  5708. //****선택환자정보에 정보 뿌려주기
  5709. //1.검사의
  5710. ds_subordlist1.setColumn(0,"excuroomcd", ds_grd_subordlist2.getColumn(e.row,"excuroomcd"));
  5711. //대표검사명 2011.04.08 by kya 환자인식표출력용
  5712. ds_subordlist1.setColumn(0,"prcpnm", ds_grd_subordlist2.getColumn(e.row,"prcpnm"));
  5713. //2.예약일자
  5714. ds_send.setColumn(0,"rsrvdd", ds_grd_subordlist2.getColumn(e.row,"rsrvdd"));
  5715. // 3.예약시간
  5716. group3.cmb_rsrvtm.value = ds_grd_subordlist2.getColumn(e.row,"rsrvtm");
  5717. //4.감염정보
  5718. group3.cpt_isolinfo.text = "";
  5719. if (!utlf_isNull(ds_isolinfo.getColumn(0,"etccnts"))) {
  5720. group3.cpt_isolinfo.text = "[확인]";
  5721. }
  5722. //20161108 동명이인
  5723. if (ds_main_subordlist_nameconflict.getColumn(0,"conflictyn") == "Y") {
  5724. sysf_messageBox("현재 환자와 성명이 동일한 환자가 존재합니다.\r\n" +
  5725. " 주의하여 작업하시기 바랍니다.", "I000");
  5726. }
  5727. //20170213 산정특례종료일자 보여주기
  5728. var serdiagtodd = ds_patlist_serdiagtodd.getColumn(0,"serdiagtodd");
  5729. var rareobsttodd = ds_patlist_serdiagtodd.getColumn(0,"rareobsttodd");
  5730. if ( !utlf_isNull(serdiagtodd) && serdiagtodd != "-" ) {
  5731. serdiagtodd = serdiagtodd.substr(0,4) + "년 " + serdiagtodd.substr(4,2) + "월 " + serdiagtodd.substr(6,2) + "일";
  5732. group3.opt_vipflag.value = "중증 종료일자는 [ " + serdiagtodd + " ] 입니다"
  5733. }
  5734. if ( !utlf_isNull(rareobsttodd) && rareobsttodd != "-" ) {
  5735. rareobsttodd = rareobsttodd.substr(0,4) + "년 " + rareobsttodd.substr(4,2) + "월 " + rareobsttodd.substr(6,2) + "일";
  5736. group3.opt_vipflag.value = "희귀난치 종료일자는 [ " + rareobsttodd + " ] 입니다"
  5737. }
  5738. group3.opt_emrcnt.value = ds_grd_ordlist2.rowcount; //진료예약껀수
  5739. group3.opt_excucnt.value = ds_grd_ordlist1.rowcount; //검사예약껀수
  5740. //반환처방 색상주기
  5741. // grdf_initGridStyle(group3.grd_subprcplist);
  5742. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "E" , "execprcphistcd","equal" );
  5743. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "D" , "execprcphistcd","equal" );
  5744. // grdf_setRowStyle(group3.grd_subprcplist , "2" , "L" , "execprcphistcd","equal" );
  5745. fTopInfo(); //상단환자정보
  5746. }
  5747. function group3_switch1_case10_grd_subordlist2_onrbuttonup(obj:Grid, e:GridMouseEventInfo)
  5748. {
  5749. if(e.row < 0 || e.col < 0) return;
  5750. obj.setFocus();
  5751. grdf_setSelectedCell(obj, e);
  5752. //obj.oncellclick.fireEvent(obj, new GridClickEventInfo());
  5753. pmn_menu.innerdataset = "ds_init_pmenu_grid06";
  5754. pmn_menu.idcolumn = "func";
  5755. pmn_menu.captioncolumn = "name";
  5756. pmn_menu.levelcolumn = "func";
  5757. pmn_menu.trackPopup(e.screenX,e.screenY);
  5758. //setPopupMenu("grd_mainordlist4", false, "/root/init/codedata/popupmenu/grid06/item", "name", "func");
  5759. return true;
  5760. }
  5761. function group3_grd_subprcplist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  5762. {
  5763. // if(e.row < 0 || e.col < 0) return;
  5764. // obj.setFocus();
  5765. // grdf_setSelectedCell(obj, e);
  5766. // //obj.oncellclick.fireEvent(obj, new GridClickEventInfo());
  5767. // if (group3.switch1.tabindex != 5) {
  5768. // if(ds_grd_subprcplist.getColumn(e.row,"mset") == "ⓜ" ){
  5769. // pmn_menu.innerdataset = "ds_init_pmenu_grid03";
  5770. // pmn_menu.idcolumn = "func";
  5771. // pmn_menu.captioncolumn = "name";
  5772. // pmn_menu.levelcolumn = "func";
  5773. // pmn_menu.trackPopup(e.screenX,e.screenY);
  5774. //
  5775. // }else if(ds_grd_subprcplist.getColumn(e.row,"prcpgenrflag") == "S" ){
  5776. // pmn_menu.innerdataset = "ds_init_pmenu_grid03";
  5777. // pmn_menu.idcolumn = "func";
  5778. // pmn_menu.captioncolumn = "name";
  5779. // pmn_menu.levelcolumn = "func";
  5780. // pmn_menu.trackPopup(e.screenX,e.screenY);
  5781. // }else if(ds_grd_subprcplist.getColumn(e.row,"mset") != "ⓜ" ){
  5782. // pmn_menu.innerdataset = "ds_init_pmenu_grid05";
  5783. // pmn_menu.idcolumn = "func";
  5784. // pmn_menu.captioncolumn = "name";
  5785. // pmn_menu.levelcolumn = "func";
  5786. // pmn_menu.trackPopup(e.screenX,e.screenY);
  5787. // }
  5788. // }
  5789. //
  5790. // return true;
  5791. }
  5792. function group3_grd_subprcplist_oncellclick(obj:Grid, e:GridClickEventInfo)
  5793. {
  5794. var pidValue = ds_grd_subprcplist.getColumn(e.row,"execprcpuniqno");
  5795. //var nodeList = instance1.selectNodes("/root/main/subordlist/subordlist4[execprcpuniqno !='" + pidValue + "']");
  5796. //var node;
  5797. // ds_grd_subprcplist.filter("execprcpuniqno !='" + pidValue + "'");
  5798. // ds_grd_subprcplist.applyChange();
  5799. for(var i = 0; i < ds_grd_subprcplist.rowcount;i++)
  5800. {
  5801. ds_grd_subprcplist.setColumn(i,"check","0");
  5802. }
  5803. // ds_grd_subprcplist.filter("");
  5804. // if( e.col != 0 ) {
  5805. // if( ds_grd_subprcplist.getColumn(e.row,"check") == "Y" || ds_grd_subprcplist.getColumn(e.row,"check") == "1") {
  5806. // ds_grd_subprcplist.setColumn(e.row,"check", "0");
  5807. // }
  5808. // else {
  5809. // ds_grd_subprcplist.setColumn(e.row,"check", "Y");
  5810. // }
  5811. // }
  5812. ds_grd_subprcplist.setColumn(e.row,"check", "Y");
  5813. //20140731 선택진료비 제도변경에 대한 알림메시지
  5814. //start
  5815. var pid = ds_grd_subprcplist.getColumn(e.row,"pid");
  5816. var prcpdd = ds_grd_subprcplist.getColumn(e.row,"prcpdd");
  5817. var execprcpuniqno = ds_grd_subprcplist.getColumn(e.row,"execprcpuniqno");
  5818. getPrcpRcptCheck("AST", pid, "","", prcpdd, execprcpuniqno );
  5819. }
  5820. function group3_ipt_cntsqty_oneditdblclick(obj:Edit, e:EditClickEventInfo)
  5821. {
  5822. if( !utlf_isNull(ds_subordlist1.getColumn(0,"pid")) || ds_subordlist1.getColumn(0,"pid") != " " ) {
  5823. // 전화번호 더블클릭시 해당환자의 '전화번호/주소 조회 및 수정 창' 팝업창을 호출!!!
  5824. //예약내역이 없는 필드 체크
  5825. var hngnm = ds_subordlist1.getColumn(0,"patnm");
  5826. var pid = ds_subordlist1.getColumn(0,"pid");
  5827. if (utlf_isNull(hngnm) || hngnm == " " || hngnm == "-"){
  5828. return false;
  5829. }
  5830. //setParameter("opener_parameter_id", pid);
  5831. dsf_createDsRow("ds_temp_source", [{col: "srchcond", val:"1"}
  5832. ,{col: "pid", val:pid}
  5833. ]);
  5834. var objArg = new Object();
  5835. objArg.arg_ds_source = ds_temp_source;
  5836. frmf_modal("SPPMO01400", "SPPMO01400",objArg, "", "", "", "", "","", "", "", "","M");
  5837. dsf_deleteDs("ds_temp_source");
  5838. }
  5839. }
  5840. function group3_btn_excucmtsave_onclick(obj:Button, e:ClickEventInfo)
  5841. {
  5842. ds_send.setColumn(0,"memorem", utlf_transNullToEmpty(group3.tat_deptmemo.value));
  5843. dsf_createDsRow("ds_send_req", [{col: "basesuppdeptcd", val:lv_instance1}
  5844. ,{col: "memorem", val:ds_send.getColumn(0,"memorem" )}
  5845. ,{col: "memodt", val:ds_send.getColumn(0,"srchdate1" ) }
  5846. ]);
  5847. var oParam = {};
  5848. oParam.id = "TXAEA01505";
  5849. oParam.service = "examcurebaseapp.ExamCureCode";
  5850. oParam.method = "reqExeDeptMemoCodeList";
  5851. oParam.inds = "req=ds_send_req";
  5852. oParam.outds = "ds_result_item=item";
  5853. oParam.async = false;
  5854. //oParam.callback = "cf_TXAEA01505";
  5855. tranf_submit(oParam);
  5856. }
  5857. function group3_switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  5858. {
  5859. lf_tabEvnt(e.postindex);
  5860. }
  5861. function lf_tabEvnt(tindex) {
  5862. dataClear();
  5863. if(tindex == 1)
  5864. {
  5865. //상단정보 초기화
  5866. appf_delPatientInfos();
  5867. group3.btn_excucmt.visible = false;
  5868. group3.btn_patcmtsave.visible = true; //환자COMMENT 저장버튼 20160201
  5869. //부서메모 조회
  5870. ds_send.setColumn(0,"memodd",ds_send.getColumn(0,"srchdate1"));
  5871. dsf_createDsRow("ds_send_req", [{col: "excuroomcd", val:ds_send.getColumn(0,"selectexcuroom" )}
  5872. ,{col: "deptcdflag", val:ds_send.getColumn(0,"room" )}
  5873. ,{col: "memodt1", val:ds_send.getColumn(0,"memodd" ) }
  5874. ,{col: "memodt2", val:ds_send.getColumn(0,"memodd" ) }
  5875. ]);
  5876. var oParam = {};
  5877. oParam.id = "TRAEA01110";
  5878. oParam.service = "examcurebaseapp.ExamCureCode";
  5879. oParam.method = "reqGetExcuroomMemoCodeList";
  5880. oParam.inds = "req=ds_send_req";
  5881. oParam.outds = "ds_examcuredeptmemolist=examcuredeptmemolist";
  5882. oParam.async = false;
  5883. //oParam.callback = "cf_TRAEA01110";
  5884. tranf_submit(oParam);
  5885. ds_send.setColumn(0,"tabgubn","Y");
  5886. ds_send.setColumn(0,"excuroomcd","");
  5887. ds_send.setColumn(0,"excupartcd","");
  5888. fGetExamCureAcptList("Y"); //예약
  5889. }
  5890. else if(tindex == 2)
  5891. {
  5892. appf_delPatientInfos();
  5893. dsf_createDsRow("ds_send_req", [{col: "basesuppdeptcd", val:lv_instance1}
  5894. ,{col: "ebasecdflag", val:"E"}
  5895. ]);
  5896. //진료의 코드 갖고오기
  5897. var oParam = {};
  5898. oParam.id = "TRAEA01518";
  5899. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  5900. oParam.method = "reqGetExecrSpecdrList";
  5901. oParam.inds = "req=ds_send_req";
  5902. oParam.outds = "ds_execrcodelist=item";
  5903. oParam.async = false;
  5904. //oParam.callback = "cf_TRAEA01518";
  5905. tranf_submit(oParam);
  5906. group3.btn_excucmt.visible = true;
  5907. group3.btn_patcmtsave.visible = true; //환자COMMENT 저장버튼 20160201
  5908. ds_send.setColumn(0,"tabgubn","T");
  5909. //부서메모 조회
  5910. ds_send.setColumn(0,"memodd",ds_send.getColumn(0,"srchdate1"));
  5911. dsf_createDsRow("ds_send_req", [{col: "excuroomcd", val:ds_send.getColumn(0,"selectexcuroom" )}
  5912. ,{col: "deptcdflag", val:ds_send.getColumn(0,"room" )}
  5913. ,{col: "memodt1", val:ds_send.getColumn(0,"memodd" ) }
  5914. ,{col: "memodt2", val:ds_send.getColumn(0,"memodd" ) }
  5915. ]);
  5916. var oParam = {};
  5917. oParam.id = "TRAEA01110";
  5918. oParam.service = "examcurebaseapp.ExamCureCode";
  5919. oParam.method = "reqGetExcuroomMemoCodeList";
  5920. oParam.inds = "req=ds_send_req";
  5921. oParam.outds = "ds_examcuredeptmemolist=examcuredeptmemolist";
  5922. oParam.async = false;
  5923. //oParam.callback = "cf_TRAEA01110";
  5924. tranf_submit(oParam);
  5925. ds_send.setColumn(0,"excuroomcd","");
  5926. ds_send.setColumn(0,"excupartcd","");
  5927. fGetExamCureAcptList("T"); //접수
  5928. }
  5929. else if(tindex == 3)
  5930. {
  5931. appf_delPatientInfos();
  5932. group3.btn_excucmt.visible = false;
  5933. group3.btn_patcmtsave.visible = true; //환자COMMENT 저장버튼 20160201
  5934. //부서메모 조회
  5935. ds_send.setColumn(0,"memodd",ds_send.getColumn(0,"srchdate1"));
  5936. dsf_createDsRow("ds_send_req", [{col: "excuroomcd", val:ds_send.getColumn(0,"selectexcuroom" )}
  5937. ,{col: "deptcdflag", val:ds_send.getColumn(0,"room" )}
  5938. ,{col: "memodt1", val:ds_send.getColumn(0,"memodd" ) }
  5939. ,{col: "memodt2", val:ds_send.getColumn(0,"memodd" ) }
  5940. ]);
  5941. var oParam = {};
  5942. oParam.id = "TRAEA01110";
  5943. oParam.service = "examcurebaseapp.ExamCureCode";
  5944. oParam.method = "reqGetExcuroomMemoCodeList";
  5945. oParam.inds = "req=ds_send_req";
  5946. oParam.outds = "ds_examcuredeptmemolist=examcuredeptmemolist";
  5947. oParam.async = false;
  5948. //oParam.callback = "cf_TRAEA01110";
  5949. tranf_submit(oParam);
  5950. ds_send.setColumn(0,"tabgubn","Z");
  5951. ds_send.setColumn(0,"excuroomcd","");
  5952. ds_send.setColumn(0,"excupartcd","");
  5953. fGetExamCureAcptList("Z"); //결과
  5954. }
  5955. else if(tindex == 4)
  5956. {
  5957. //상단정보 초기화
  5958. appf_delPatientInfos();
  5959. group3.btn_excucmt.visible = false;
  5960. //부서메모 조회
  5961. ds_send.setColumn(0,"memodd",ds_send.getColumn(0,"srchdate1"));
  5962. dsf_createDsRow("ds_send_req", [{col: "excuroomcd", val:ds_send.getColumn(0,"selectexcuroom" )}
  5963. ,{col: "deptcdflag", val:ds_send.getColumn(0,"room" )}
  5964. ,{col: "memodt1", val:ds_send.getColumn(0,"memodd" ) }
  5965. ,{col: "memodt2", val:ds_send.getColumn(0,"memodd" ) }
  5966. ]);
  5967. var oParam = {};
  5968. oParam.id = "TRAEA01110";
  5969. oParam.service = "examcurebaseapp.ExamCureCode";
  5970. oParam.method = "reqGetExcuroomMemoCodeList";
  5971. oParam.inds = "req=ds_send_req";
  5972. oParam.outds = "ds_examcuredeptmemolist=examcuredeptmemolist";
  5973. oParam.async = false;
  5974. //oParam.callback = "cf_TRAEA01110";
  5975. tranf_submit(oParam);
  5976. ds_send.setColumn(0,"tabgubn","L");
  5977. ds_send.setColumn(0,"excuroomcd","");
  5978. ds_send.setColumn(0,"excupartcd","");
  5979. fGetExamCureAcptList("L"); //전체
  5980. }
  5981. else if(tindex == 0)
  5982. {
  5983. dataClear();
  5984. //상단정보 초기화
  5985. appf_delPatientInfos();
  5986. group3.btn_excucmt.visible = false;
  5987. group3.btn_patcmtsave.visible = false; //환자COMMENT 저장버튼
  5988. //부서메모 조회
  5989. ds_send.setColumn(0,"memodd",ds_send.getColumn(0,"srchdate1"));
  5990. dsf_createDsRow("ds_send_req", [{col: "excuroomcd", val:ds_send.getColumn(0,"selectexcuroom" )}
  5991. ,{col: "deptcdflag", val:ds_send.getColumn(0,"room" )}
  5992. ,{col: "memodt1", val:ds_send.getColumn(0,"memodd" ) }
  5993. ,{col: "memodt2", val:ds_send.getColumn(0,"memodd" ) }
  5994. ]);
  5995. var oParam = {};
  5996. oParam.id = "TRAEA01110";
  5997. oParam.service = "examcurebaseapp.ExamCureCode";
  5998. oParam.method = "reqGetExcuroomMemoCodeList";
  5999. oParam.inds = "req=ds_send_req";
  6000. oParam.outds = "ds_examcuredeptmemolist=examcuredeptmemolist";
  6001. oParam.async = false;
  6002. //oParam.callback = "cf_TRAEA01110";
  6003. tranf_submit(oParam);
  6004. ds_send.setColumn(0,"tabgubn","P");
  6005. ds_send.setColumn(0,"excuroomcd","");
  6006. ds_send.setColumn(0,"excupartcd","");
  6007. //미예약환자리스트, 부서메모, 예약시간대 갖고오기
  6008. fGetExamCureAcptList("P"); // 미예약
  6009. }
  6010. else if(tindex == 5)
  6011. {
  6012. //상단정보 초기화
  6013. appf_delPatientInfos();
  6014. group3.btn_excucmt.visible = false;
  6015. //부서메모 조회
  6016. ds_send.setColumn(0,"memodd",ds_send.getColumn(0,"srchdate1"));
  6017. dsf_createDsRow("ds_send_req", [{col: "excuroomcd", val:ds_send.getColumn(0,"selectexcuroom" )}
  6018. ,{col: "deptcdflag", val:ds_send.getColumn(0,"room" )}
  6019. ,{col: "memodt1", val:ds_send.getColumn(0,"memodd" ) }
  6020. ,{col: "memodt2", val:ds_send.getColumn(0,"memodd" ) }
  6021. ]);
  6022. var oParam = {};
  6023. oParam.id = "TRAEA01110";
  6024. oParam.service = "examcurebaseapp.ExamCureCode";
  6025. oParam.method = "reqGetExcuroomMemoCodeList";
  6026. oParam.inds = "req=ds_send_req";
  6027. oParam.outds = "ds_examcuredeptmemolist=examcuredeptmemolist";
  6028. oParam.async = false;
  6029. //oParam.callback = "cf_TRAEA01110";
  6030. tranf_submit(oParam);
  6031. ds_send.setColumn(0,"tabgubn","S");
  6032. ds_send.setColumn(0,"excuroomcd","");
  6033. ds_send.setColumn(0,"excupartcd","");
  6034. fGetExamCureAcptList("S"); //전체
  6035. }
  6036. }
  6037. function group3_btn_acptcncl_onclick(obj:Button, e:ClickEventInfo)
  6038. {
  6039. var dsobj = ds_grd_mainordlist1;
  6040. if ( group3.switch1.tabindex == 1 ) dsobj = ds_grd_mainordlist1; // 예약
  6041. if ( group3.switch1.tabindex == 2 ) dsobj = ds_grd_mainordlist2; // 접수
  6042. if ( group3.switch1.tabindex == 3 ) dsobj = ds_grd_mainordlist3; // 결과
  6043. if ( group3.switch1.tabindex == 4 ) dsobj = ds_grd_mainordlist4; // 전체
  6044. var nodeList = dsobj.findRowExpr("check=='Y' || check =='1'");
  6045. if ( nodeList<0 ) {
  6046. sysf_messageBox("처방내역을","C002");
  6047. return "0";
  6048. }
  6049. //예약취소
  6050. if ( group3.switch1.tabindex == 1 ) {
  6051. // exeRsrvTransaction("cncl");
  6052. }
  6053. //접수취소
  6054. if ( group3.switch1.tabindex == 2 ) {
  6055. var tabgubn = ds_send.getColumn(0,"tabgubn");
  6056. if(tabgubn == "Y")
  6057. ds_hidden_grdgubnlist.setColumn(0,"grdgubn","group3.switch1.case1.grd_ordlist1");
  6058. if(tabgubn == "T")
  6059. ds_hidden_grdgubnlist.setColumn(0,"grdgubn","group3.switch1.case2.grd_ordlist2");
  6060. if(tabgubn == "Z")
  6061. ds_hidden_grdgubnlist.setColumn(0,"grdgubn","group3.switch1.case3.grd_ordlist3");
  6062. if(tabgubn == "A")
  6063. ds_hidden_grdgubnlist.setColumn(0,"grdgubn","group3.switch1.case4.grd_ordlist4");
  6064. var grid = ds_hidden_grdgubnlist.getColumn(0,"grdgubn");
  6065. var rtn = ExeCncl(tabgubn,grid);
  6066. }
  6067. ds_send.setColumn(0,"srchpid", "");
  6068. ds_send.setColumn(0,"prcpgenrflag", "");
  6069. if ( group3.switch1.tabindex == 1 ) {
  6070. fGetExamCureAcptList("Y"); // 예약
  6071. }
  6072. if ( group3.switch1.tabindex == 2 ) {
  6073. fGetExamCureAcptList("T"); // 접수
  6074. }
  6075. if ( group3.switch1.tabindex == 3 ){
  6076. fGetExamCureAcptList("Z"); // 결과
  6077. }
  6078. if ( group3.switch1.tabindex == 4 ) {
  6079. fGetExamCureAcptList("A"); // 전체
  6080. }
  6081. //클리어
  6082. dataClear();
  6083. }
  6084. function group3_btn_rsrv_onclick(obj:Button, e:ClickEventInfo)
  6085. {
  6086. if (utlf_isNull(group3.cmb_rsrvtm.value) ) {
  6087. sysf_messageBox("예약시간을","C002");
  6088. return 0;
  6089. }
  6090. if( utlf_isNull(group3.cmb_excuroom.value) ){
  6091. sysf_messageBox("검사의를","C002");
  6092. return 0;
  6093. }
  6094. //검사실명 예약예문에 세팅하기 위함.
  6095. for( var i=0; i < ds_grd_temp.rowcount; i++ ) {
  6096. if( ds_init_cmb_excuroom.getColumn(i,"excuroomcdid") == ds_subordlist1.getColumn(0,"excuroomcd") ) {
  6097. var roomcd = ds_init_cmb_excuroom.getColumn(i,"excuroomcdnm");
  6098. }
  6099. }
  6100. if ( group3.switch1.tabindex == 0 ) { //미예약탭에서 예약
  6101. ds_grd_subordlist1.setColumn(ds_grd_subordlist1.rowposition, "rsrvrem", group3.tar_acptrem.value); //예약코멘트
  6102. }
  6103. if ( group3.switch1.tabindex == 1 ) { //예약탭에서 예약변경
  6104. ds_grd_mainordlist1.setColumn(ds_grd_mainordlist1.rowposition,"rsrvrem", group3.tar_acptrem.value); //예약코멘트
  6105. }
  6106. if ( group3.switch1.tabindex == 4) { //전체탭에서 예약 및 변경
  6107. ds_grd_mainordlist4.setColumn(ds_grd_mainordlist4.rowposition,"rsrvrem", group3.tar_acptrem.value); //예약코멘트
  6108. }
  6109. //예약증출력
  6110. if(ds_send.getColumn(0,"rsrvprntflag") == "Y") {
  6111. var pid = group3.ipt_cntsqty.value;
  6112. var hngnm = group3.input1.value;
  6113. var rsrvdd = group3.cmb_rsrvdd.value ;
  6114. var rsrvtm = group3.cmb_rsrvtm.value;
  6115. var year = rsrvdd.substr(0,4);
  6116. var month = rsrvdd.substr(4,2);
  6117. var day = rsrvdd.substr(6,2);
  6118. var week = rsrvdd.substr(0,8).toDate().getDayOfWeek("K");
  6119. var hh = rsrvtm.substr(0,2);
  6120. var mm = rsrvtm.substr(2,2);
  6121. // 예약증 출력 추가
  6122. var age = utlf_transNullToEmpty(group3.input2.value).substr(2, 3);
  6123. var sex = utlf_transNullToEmpty(group3.input2.value).substr(0, 1);
  6124. var orddeptcd = group3.input3.value;
  6125. var orddrid = group3.input4.value;
  6126. if ( group3.switch1.tabindex == 0 ) { //미예약탭
  6127. ds_send.setColumn(0,"prntcalcscorcd", ds_grd_subordlist1.getColumn(ds_grd_subordlist1.rowposition,"calcscorcd"));
  6128. ds_send.setColumn(0,"prntsuppdeptcd", lv_instance1);
  6129. ds_send.setColumn(0,"rsrvtmplcd", ds_grd_subordlist1.getColumn(ds_grd_subordlist1.rowposition,"rsrvexmptmplcd"));
  6130. }
  6131. if ( group3.switch1.tabindex == 1 ) { //예약탭
  6132. ds_send.setColumn(0,"prntcalcscorcd", ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"calcscorcd"));
  6133. ds_send.setColumn(0,"prntsuppdeptcd", lv_instance1);
  6134. ds_send.setColumn(0,"rsrvtmplcd", ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"rsrvexmptmplcd"));
  6135. }
  6136. if ( group3.switch1.tabindex == 4 ) { //전체탭
  6137. ds_send.setColumn(0,"prntcalcscorcd", ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"calcscorcd"));
  6138. ds_send.setColumn(0,"prntsuppdeptcd", lv_instance1);
  6139. }
  6140. }
  6141. if ( sysf_messageBox("예약내역을","Q002")==6 ) {
  6142. exeRsrvTransaction("rsrv");
  6143. ds_send.setColumn(0,"srchpid", "");
  6144. ds_send.setColumn(0,"prcpgenrflag", "");
  6145. if ( group3.switch1.tabindex == 0 ) { //미예약탭에서 예약
  6146. fGetExamCureAcptList("P"); // 미예약
  6147. }
  6148. if ( group3.switch1.tabindex == 1) { //예약탭에서 예약변경
  6149. fGetExamCureAcptList("Y"); // 예약
  6150. }
  6151. if (group3.switch1.tabindex == 4 ) { //예약탭에서 예약변경
  6152. fGetExamCureAcptList("L"); //전체
  6153. }
  6154. }
  6155. else {
  6156. return "0";
  6157. }
  6158. //클리어
  6159. dataClear();
  6160. // btn_sea.dispatch("DOMActivate");
  6161. //예약증출력
  6162. if(ds_send.getColumn(0,"rsrvprntflag") == "Y") {
  6163. //submit("TRAEA01126");
  6164. dsf_createDsRow("ds_send_req", [{col: "excucd", val:ds_send.getColumn(0,"prntcalcscorcd" )}
  6165. ,{col: "suppdeptcd", val:ds_send.getColumn(0,"prntsuppdeptcd" )}
  6166. ,{col: "rsrvtmplcd", val:ds_send.getColumn(0,"rsrvtmplcd" ) }
  6167. ]);
  6168. var oParam = {};
  6169. oParam.id = "TRAEA01133";
  6170. oParam.service = "examcurebaseapp.ExmpTmpl";
  6171. oParam.method = "reaGetRsrvTmplList2";
  6172. oParam.inds = "req=ds_send_req";
  6173. oParam.outds = "ds_tmplist=tmplinfo";
  6174. oParam.async = false;
  6175. //oParam.callback = "cf_TRAEA01133";
  6176. tranf_submit(oParam);
  6177. var tmpldata = ds_tmplist.getColumn(0,"tmpldata");
  6178. if(ds_tmplist.getColumn(0,"slepyn") == "(수면)") {
  6179. roomcd = roomcd + ds_tmplist.getColumn(0,"slepyn");
  6180. }
  6181. if(!utlf_isNull(tmpldata)) {
  6182. //1. 예약예문내용을 뷰어로 보여주기
  6183. group3.switch1.case1.rtfviewer.TextRtf = tmpldata;
  6184. //2. 바꾸기
  6185. group3.switch1.case1.rtfviewer.ReplaceRtfCode("pid",pid); //등록번호
  6186. group3.switch1.case1.rtfviewer.ReplaceRtfCode("patnm",hngnm); //성명
  6187. group3.switch1.case1.rtfviewer.ReplaceRtfCode("year",year); //년
  6188. group3.switch1.case1.rtfviewer.ReplaceRtfCode("month",month); //월
  6189. group3.switch1.case1.rtfviewer.ReplaceRtfCode("day",day); //일
  6190. group3.switch1.case1.rtfviewer.ReplaceRtfCode("week",week); //요일
  6191. group3.switch1.case1.rtfviewer.ReplaceRtfCode("hh",hh); //시
  6192. group3.switch1.case1.rtfviewer.ReplaceRtfCode("mm",mm); //분
  6193. group3.switch1.case1.rtfviewer.ReplaceRtfCode("roomcd", roomcd); //분
  6194. // 예약증 출력 추가
  6195. group3.switch1.case1.rtfviewer.ReplaceRtfCode("age",age); //나이
  6196. group3.switch1.case1.rtfviewer.ReplaceRtfCode("sex",sex); //성별
  6197. group3.switch1.case1.rtfviewer.ReplaceRtfCode("orddeptcd",orddeptcd); //진료과명
  6198. group3.switch1.case1.rtfviewer.ReplaceRtfCode("orddrid",orddrid); //진료의명
  6199. //3. 현재내용을 파일에 저장
  6200. group3.switch1.case1.rtfviewer.SaveRtfFile();
  6201. //4. 출력
  6202. group3.switch1.case1.rtfviewer.Print();
  6203. //5. 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  6204. fInitialize();
  6205. }
  6206. else {
  6207. sysf_messageBox("등록된 예약예문이 ", "I004");
  6208. }
  6209. }
  6210. }
  6211. function group3_btn_cncl_onclick(obj:Button, e:ClickEventInfo)
  6212. {
  6213. var nodeList = ds_grd_mainordlist1.findRowExpr("check=='Y' || check=='1'");
  6214. if ( nodeList < 0 ) {
  6215. sysf_messageBox("예약취소할 처방을","C002");
  6216. return "0";
  6217. }
  6218. exeRsrvTransaction("cncl");
  6219. var tabgubn = ds_send.getColumn(0,"tabgubn");
  6220. if(tabgubn == "P")
  6221. ds_hidden_grdgubnlist.setColumn(0,"grdgubn","group3.switch1.case1.grd_ordlist1");
  6222. if(tabgubn == "U")
  6223. ds_hidden_grdgubnlist.setColumn(0,"grdgubn","group3.switch1.case2.grd_ordlist2");
  6224. if(tabgubn == "R")
  6225. ds_hidden_grdgubnlist.setColumn(0,"grdgubn","group3.switch1.case3.grd_ordlist3");
  6226. if(tabgubn == "T")
  6227. ds_hidden_grdgubnlist.setColumn(0,"grdgubn","group3.switch1.case4.grd_ordlist4");
  6228. var grid = ds_hidden_grdgubnlist.getColumn(0,"grdgubn");
  6229. ds_send.setColumn(0,"srchpid", "");
  6230. ds_send.setColumn(0,"prcpgenrflag", "");
  6231. fGetExamCureAcptList("Y"); // 예약
  6232. // setExcuCmt(grid);
  6233. //클리어
  6234. dataClear();
  6235. }
  6236. function group3_btn_save_onclick(obj:Button, e:ClickEventInfo)
  6237. {
  6238. //20180417 수가가 유효한지 체크
  6239. for(var i = 0 ; i <ds_grd_subprcplist.rowcount; i++ ) {
  6240. // 수가가 유효한 처방 여부 - 20180417 kya
  6241. if (ds_grd_subprcplist.getColumn(i,"statcd") != "D/C") {
  6242. if (ds_grd_subprcplist.getColumn(i,"sugauseyn") == "N") {
  6243. sysf_messageBox(" 유효하지 않는 처방이므로 접수","E001");
  6244. return "0";
  6245. }
  6246. }
  6247. }
  6248. //소화기센터내시경실
  6249. if(ds_send.getColumn(0,"sgubn") != "S" ) {
  6250. //응급환자의 경우 예약없이 바로 접수
  6251. //20101005 입원환자 바로 접수가능하게 수정 - 박재영
  6252. if ( ds_grd_subordlist1.getColumn(ds_grd_subordlist1.rowposition,"prcpgenrflag") == "E" ||
  6253. ds_grd_subordlist1.getColumn(ds_grd_subordlist1.rowposition,"prcpgenrflag") == "I" ) {
  6254. //model.setValue("/root/main/ordlist5/mainordlist["+grd_subordlist1.row+"]/excuroomcd", "P"); //임의로 일반 검사실로 접수테이블에 세팅,20101006 주석처리
  6255. var baseexcuroomcd = ds_grd_subordlist1.getColumn(ds_grd_subordlist1.rowposition,"baseexcuroomcd");
  6256. ds_grd_subordlist1.setColumn(ds_grd_subordlist1.rowposition,"excuroomcd",baseexcuroomcd); //20101006 임의가 아닌 기본검사실로 접수 - 박재영
  6257. dsf_createDs("ds_send_tobeacptprcplist");
  6258. dsf_copyColInfo(ds_send_tobeacptprcplist, ds_grd_subordlist1);
  6259. ds_send_tobeacptprcplist.copyRow(ds_send_tobeacptprcplist.addRow(),ds_grd_subordlist1,ds_grd_subordlist1.rowposition);
  6260. //var nodeList = instance1.selectNodes("/root/main/ordlist5/mainordlist["+grd_subordlist1.row+"]");
  6261. //var rCSV = getNodeListCSV(nodeList);
  6262. //ds_send.setColumn(0,"tobeacptprcp/tobeacptprcplist", rCSV);
  6263. ds_send_tobeacptprcplist.addColumn("sgubn","string");
  6264. ds_send_tobeacptprcplist.setColumn(0,"sgubn","S");
  6265. //model.makeNode("/root/send/data/tobeacptprcp/sgubn");
  6266. //ds_send.setColumn(0,"tobeacptprcp/sgubn","S");
  6267. if (ds_send_tobeacptprcplist.rowcount == 0 ) {
  6268. sysf_messageBox("접수할 처방을","C002");
  6269. return "0";
  6270. }
  6271. var loop;
  6272. var check;
  6273. ds_send_tobeacptprcplist.updateColID("acptrem","execrem");
  6274. dsf_setFixVal(ds_send_tobeacptprcplist, "transactiongubn:1,largeclass:M5,execprcpstat440cd:440,execprcpstat610cd:610,rtno:-,execrid1:-,reqagnphoyn:N,tretflagcd:440,indd:00000000,icfflag:-,wardcd:-,arvdt:-,execrid2:-,execrid3:-,execrid4:-,excuexectodt:00000000000000,excuexecfromdt1:00000000000000,excueqcd1:-,excuexecfromdt2:00000000000000,excueqcd2:-,excuexecfromdt3:00000000000000,excueqcd3:-,excuexecfromdt4:00000000000000,excueqcd4:-,excuexecfromdt5:00000000000000,excueqcd5:-,opdrid:orddrid,autroomassgyn:N,rsltdd:00000000,rslttm:000000,rsltno:0,rsltseqno:0,cnfmdt:00000000000000,cnfmmanid:-,eqmtifimgyn:N,ocrimgyn:N,rslttmplyn:N,deptrem:-,patrem:-,excupartgrpcd:-");
  6275. if ( sysf_messageBox("접수를 ","Q002")==6 ) {
  6276. ds_send_tobeacptprcplist.updateColID("root","rootgubn");
  6277. var oParam = {};
  6278. oParam.id = "TXAEA01504";
  6279. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  6280. oParam.method = "reqExeAcptExamCureExecPrcpList";
  6281. oParam.inds = "reqparam=ds_send_tobeacptprcplist";
  6282. oParam.outds = "ds_result_item=item";
  6283. oParam.async = false;
  6284. //oParam.callback = "cf_TXAEA01504";
  6285. tranf_submit(oParam);
  6286. }
  6287. dsf_deleteDs("ds_send_tobeacptprcplist");
  6288. var grid = ds_hidden_grdgubnlist.getColumn(0,"grdgubn");
  6289. ds_send.setColumn(0,"srchpid", "");
  6290. ds_send.setColumn(0,"prcpgenrflag", "");
  6291. if ( group3.switch1.tabindex == 1 ) {
  6292. fGetExamCureAcptList("Y"); // 예약
  6293. }
  6294. if ( group3.switch1.tabindex == 2 ){
  6295. fGetExamCureAcptList("T"); // 접수
  6296. }
  6297. if ( group3.switch1.tabindex == 3 ){
  6298. fGetExamCureAcptList("Z"); // 결과
  6299. }
  6300. if ( group3.switch1.tabindex == 4 ){
  6301. fGetExamCureAcptList("A"); // 전체
  6302. }
  6303. if ( group3.switch1.tabindex == 0 ){
  6304. fGetExamCureAcptList("P"); // 미예약
  6305. }
  6306. //클리어
  6307. dataClear();
  6308. } else{
  6309. var nodeList = ds_grd_mainordlist1.findRowExpr("check=='Y' || check=='1'");
  6310. if ( nodeList < 0 ) {
  6311. sysf_messageBox("접수할 처방을","C002");
  6312. return "0";
  6313. }
  6314. for(var i = 0 ; i <ds_grd_mainordlist1.rowcount; i++ ) {
  6315. // 미수납 예약가능 여부 - 2009.02.06 김건기
  6316. if( ds_grd_mainordlist1.getColumn(i,"check") == "Y" &&
  6317. ds_grd_mainordlist1.getColumn(i,"prcpgenrflag") == "O" &&
  6318. ds_grd_mainordlist1.getColumn(i,"rcptyn") == "N" &&
  6319. ds_grd_mainordlist1.getColumn(i,"aftrcptinfo") != "V" &&
  6320. ds_grd_mainordlist1.getColumn(i,"rcptacptyn") != "Y"){
  6321. sysf_messageBox(" 미수납 처방이므로 접수","E001");
  6322. return "0";
  6323. }
  6324. }
  6325. ds_grd_mainordlist1.setColumn(ds_grd_mainordlist1.rowposition,"acptrem",group3.tar_execrem.value);
  6326. var tabgubn = ds_send.getColumn(0,"tabgubn");
  6327. if(tabgubn == "Y")
  6328. ds_hidden_grdgubnlist.setColumn(0,"grdgubn","group3.switch1.case1.grd_ordlist1");
  6329. if(tabgubn == "T")
  6330. ds_hidden_grdgubnlist.setColumn(0,"grdgubn","group3.switch1.case2.grd_ordlist2");
  6331. if(tabgubn == "Z")
  6332. ds_hidden_grdgubnlist.setColumn(0,"grdgubn","group3.switch1.case3.grd_ordlist3");
  6333. if(tabgubn == "A")
  6334. ds_hidden_grdgubnlist.setColumn(0,"grdgubn","group3.switch1.case4.grd_ordlist4");
  6335. var grid = ds_hidden_grdgubnlist.getColumn(0,"grdgubn");
  6336. var rtn = ExeAccept(tabgubn,grid);
  6337. ds_send.setColumn(0,"srchpid", "");
  6338. ds_send.setColumn(0,"prcpgenrflag", "");
  6339. if ( group3.switch1.tabindex == 1 ) {
  6340. fGetExamCureAcptList("Y"); // 예약
  6341. }
  6342. if ( group3.switch1.tabindex == 2 ){
  6343. fGetExamCureAcptList("T"); // 접수
  6344. }
  6345. if ( group3.switch1.tabindex == 3 ){
  6346. fGetExamCureAcptList("Z"); // 결과
  6347. }
  6348. if ( group3.switch1.tabindex == 4 ){
  6349. fGetExamCureAcptList("A"); // 전체
  6350. }
  6351. if ( group3.switch1.tabindex == 5 ){
  6352. fGetExamCureAcptList("P"); // 미예약
  6353. }
  6354. //클리어
  6355. dataClear();
  6356. }
  6357. }
  6358. //건진 내시경
  6359. if(ds_send.getColumn(0,"sgubn") == "S" ) {
  6360. var nodeList = ds_grd_mainordlist1.findRowExpr("check=='Y' || check=='1'");
  6361. if ( nodeList < 0 ) {
  6362. sysf_messageBox("접수할 처방을","C002");
  6363. return "0";
  6364. }
  6365. //2011.04.05 건진내시경 다중접수처리로 인해 검사코멘트 주석처리 - 박재영
  6366. //model.setValue("/root/main/ordlist1/mainordlist["+ grd_mainordlist1.row +"]/acptrem",model.getValue("/root/main/comment3/execcmt"));
  6367. var tabgubn = ds_send.getColumn(0,"tabgubn");
  6368. if(tabgubn == "Y")
  6369. ds_hidden_grdgubnlist.setColumn(0,"grdgubn","group3.switch1.case1.grd_ordlist1");
  6370. if(tabgubn == "T")
  6371. ds_hidden_grdgubnlist.setColumn(0,"grdgubn","group3.switch1.case2.grd_ordlist2");
  6372. if(tabgubn == "Z")
  6373. ds_hidden_grdgubnlist.setColumn(0,"grdgubn","group3.switch1.case3.grd_ordlist3");
  6374. if(tabgubn == "A")
  6375. ds_hidden_grdgubnlist.setColumn(0,"grdgubn","group3.switch1.case4.grd_ordlist4");
  6376. var grid = ds_hidden_grdgubnlist.getColumn(0,"grdgubn");
  6377. var rtn = ExeAccept(tabgubn,grid);
  6378. ds_send.setColumn(0,"srchpid", "");
  6379. ds_send.setColumn(0,"prcpgenrflag", "");
  6380. if ( group3.switch1.tabindex == 1 ) {
  6381. fGetExamCureAcptList("Y"); // 예약
  6382. }
  6383. if ( group3.switch1.tabindex == 2 ){
  6384. fGetExamCureAcptList("T"); // 접수
  6385. }
  6386. if ( group3.switch1.tabindex == 3 ){
  6387. fGetExamCureAcptList("Z"); // 결과
  6388. }
  6389. if ( group3.switch1.tabindex == 4 ){
  6390. fGetExamCureAcptList("A"); // 전체
  6391. }
  6392. if ( group3.switch1.tabindex == 5 ){
  6393. fGetExamCureAcptList("P"); // 미예약
  6394. }
  6395. //클리어
  6396. dataClear();
  6397. }
  6398. }
  6399. function group3_cmb_excuroom_onitemclick(obj:Combo, e:ListBoxClickEventInfo)
  6400. {
  6401. var ev = new ClickEventInfo;
  6402. frmf_inputEnterKey("group3.btn_cal", "onclick", ev );
  6403. }
  6404. function group3_button11_onclick(obj:Button, e:ClickEventInfo)
  6405. {
  6406. if(frmf_getMenuParam() != "S"){
  6407. var nodeList = ds_grd_subprcplist.findRowExpr("check=='Y' || check == '1'");
  6408. if ( nodeList < 0 ) {
  6409. sysf_messageBox("처방내역에서 행위처방을","C002");
  6410. return "0";
  6411. }
  6412. if (ds_grd_subprcplist.getColumn(ds_grd_subprcplist.rowposition,"rootgubn" ) == "Y" ) {
  6413. sysf_messageBox("모코드는 대체처방","E001");
  6414. return "0";
  6415. }
  6416. //2011.07.22 M-Set이 아닌처방 대체처방낼경우 진행은 가능하나 취소시 문제시 되어 M-Set만 대체처방가능
  6417. if (ds_grd_subprcplist.getColumn(ds_grd_subprcplist.rowposition,"mset" ) != "ⓜ" ) {
  6418. sysf_messageBox("M-Set의 자코드가 아닌 처방은 대체처방","E001");
  6419. return "0";
  6420. }
  6421. if ( ds_grd_subprcplist.getColumn(ds_grd_subprcplist.rowposition,"mset" ) == "ⓜ" ) {
  6422. if( ds_grd_subprcplist.getColumn(ds_grd_subprcplist.rowposition,"prcpclscd" ) == "A2" || ds_grd_subprcplist.getColumn(ds_grd_subprcplist.rowposition,"prcpclscd" ) == "A4" || ds_grd_subprcplist.getColumn(ds_grd_subprcplist.rowposition,"prcpclscd" ) == "A6" || ds_grd_subprcplist.getColumn(ds_grd_subprcplist.rowposition,"prcpclscd" ) == "M2" ) {
  6423. //if( model.getValue("/root/main/subordlist/subordlist4["+grd_subprcplist.row+"]/calcscorcd" ) != model.getValue("/root/main/subordlist/subordlist4["+grd_subprcplist.row+"]/inclprcpcd" )){
  6424. sysf_messageBox("약/주사/재료처방이","E005","행위처방을 선택하십시오!");
  6425. return "0";
  6426. }
  6427. }
  6428. if ( ds_grd_subprcplist.getColumn(ds_grd_subprcplist.rowposition,"execprcpstatcd" ) < "610" ) {
  6429. sysf_messageBox("실시 되지 않는 처방은 대체처방","E001");
  6430. return "0";
  6431. }
  6432. dsf_createDsRow("ds_formdata_popdata2", [{col: "pid", val:ds_grd_subprcplist.getColumn(ds_grd_subprcplist.rowposition,"pid" )}
  6433. ,{col: "prcpdd", val:ds_grd_subprcplist.getColumn(ds_grd_subprcplist.rowposition,"prcpdd" )}
  6434. ,{col: "execprcpuniqno", val:ds_grd_subprcplist.getColumn(ds_grd_subprcplist.rowposition,"execprcpuniqno" ) }
  6435. ]);
  6436. var objArg = new Object();
  6437. objArg.arg_ds_popdata = ds_formdata_popdata2;
  6438. frmf_modal("SPAER01800","SPAER01800",objArg, "","","","", "", "", "","","","M");
  6439. //modal("SPAER01800", "", "200", "200", "SPAER01800","/root/main/formdata/popdata2","/root/popdata");
  6440. } else {
  6441. //model.setValue("/root/properties/menu/menuparam","C01");
  6442. //modal("SMAHA00900", "","","", "SMAHA00900", "","");
  6443. frmf_modal("SMAHA00900","SMAHA00900","", "","","","", "", "", "","","","M");
  6444. //model.setValue("/root/properties/menu/menuparam","S");
  6445. }
  6446. }
  6447. function group3_button18_onclick(obj:Button, e:ClickEventInfo)
  6448. {
  6449. appf_delPatientInfos();
  6450. if (group3.switch1.tabindex == 1 ) {
  6451. ds_send_bardata.setColumn(0,"regnopatnm",ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"pid"));
  6452. }
  6453. if ( group3.switch1.tabindex == 2 ) {
  6454. ds_send_bardata.setColumn(0,"regnopatnm",ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"pid"));
  6455. }
  6456. if ( group3.switch1.tabindex == 3 ) {
  6457. ds_send_bardata.setColumn(0,"regnopatnm",ds_grd_mainordlist3.getColumn(ds_grd_mainordlist3.rowposition,"pid"));
  6458. }
  6459. if ( group3.switch1.tabindex == 4 ) {
  6460. ds_send_bardata.setColumn(0,"regnopatnm",ds_grd_mainordlist4.getColumn(ds_grd_mainordlist4.rowposition,"pid"));
  6461. }
  6462. if ( group3.switch1.tabindex == 0 ) {
  6463. ds_send_bardata.setColumn(0,"regnopatnm",ds_grd_subordlist1.getColumn(ds_grd_subordlist1.rowposition,"pid"));
  6464. }
  6465. ds_send_bardata.setColumn(0,"testdeptcd",lv_instance1);
  6466. //modal("SMLLC00300","","","","","/root/send/bardata","/root/hidden/SFlag");
  6467. var objArg = new Object();
  6468. objArg.arg_ds_hidden_SFlag = ds_send_bardata;
  6469. frmf_modal("SMLLC00300","SMLLC00300",objArg,"","","","","","","","","","M");
  6470. }
  6471. function group3_button21_onclick(obj:Button, e:ClickEventInfo)
  6472. {
  6473. if(frmf_getMenuParam() != "S"){
  6474. appf_delPatientInfos();
  6475. }
  6476. var sParam="";
  6477. if ( group3.switch1.tabindex == 1 ) {
  6478. var prcpgenrflag = ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"prcpgenrflag");
  6479. }
  6480. if ( group3.switch1.tabindex == 2 ) {
  6481. var prcpgenrflag = ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"prcpgenrflag");
  6482. }
  6483. if ( group3.switch1.tabindex == 3 ) {
  6484. var prcpgenrflag = ds_grd_mainordlist3.getColumn(ds_grd_mainordlist3.rowposition,"prcpgenrflag");
  6485. }
  6486. if ( group3.switch1.tabindex == 4 ) {
  6487. var prcpgenrflag = ds_grd_mainordlist4.getColumn(ds_grd_mainordlist4.rowposition,"prcpgenrflag");
  6488. }
  6489. if ( group3.switch1.tabindex == 0 ) {
  6490. var prcpgenrflag = ds_grd_subordlist1.getColumn(ds_grd_subordlist1.rowposition,"prcpgenrflag");
  6491. }
  6492. if( prcpgenrflag == "E" ) {
  6493. sParam = "I,esop";
  6494. }
  6495. if( prcpgenrflag == "S" ) {
  6496. sParam = "O";
  6497. }
  6498. if( prcpgenrflag == "O" ) {
  6499. sParam = "O";
  6500. }
  6501. if( prcpgenrflag == "I" ) {
  6502. sParam = "I,esop";
  6503. }
  6504. frmf_setParameter("Narc_Menu_Param", sParam);
  6505. //model.setAttribute("Narc_Menu_Param", sParam);
  6506. // modal("SMADT30400",0,200,200,"","");
  6507. frmf_open("SMADT30400", "SMADT30400", "","","", "","", "","","", "","","M");
  6508. }
  6509. function group3_button31_onclick(obj:Button, e:ClickEventInfo)
  6510. {
  6511. appf_delPatientInfos();
  6512. if ( group3.switch1.tabindex == 1 ) {
  6513. var nodeList = ds_grd_mainordlist1.findRowExpr("check=='Y' || check=='1'");
  6514. if ( nodeList < 0 ) {
  6515. sysf_messageBox("1처방을 ","C002");
  6516. return "0";
  6517. }else {
  6518. lf_aezfAddPrcpMngt(group3.switch1.case1.grd_mainordlist1 , "/root/main/ordlist1/mainordlist");
  6519. }
  6520. }
  6521. if ( group3.switch1.tabindex == 2) {
  6522. var nodeList = ds_grd_mainordlist2.findRowExpr("check=='Y' || check=='1'");
  6523. if ( nodeList < 0 ) {
  6524. sysf_messageBox("2처방을 ","C002");
  6525. return "0";
  6526. }else {
  6527. lf_aezfAddPrcpMngt(group3.switch1.case2.grd_mainordlist2 , "/root/main/ordlist2/mainordlist");
  6528. }
  6529. }
  6530. if ( group3.switch1.tabindex == 3 ) {
  6531. var nodeList = ds_grd_mainordlist3.findRowExpr("check=='Y' || check=='1'");
  6532. if ( nodeList < 0 ) {
  6533. sysf_messageBox("3처방을 ","C002");
  6534. return "0";
  6535. }else {
  6536. lf_aezfAddPrcpMngt(group3.switch1.case3.grd_mainordlist3 , "/root/main/ordlist3/mainordlist");
  6537. }
  6538. }
  6539. if ( group3.switch1.tabindex == 4 ) {
  6540. if ( ds_grd_mainordlist4.rowposition < 0 ) {
  6541. sysf_messageBox("4처방을 ","C002");
  6542. return "0";
  6543. }else {
  6544. lf_aezfAddPrcpMngt(group3.switch1.case4.grd_mainordlist4 , "/root/main/ordlist4/mainordlist");
  6545. }
  6546. }
  6547. if (group3.switch1.tabindex == 0 ) {
  6548. if ( ds_grd_subordlist1.rowposition < 0 ) {
  6549. sysf_messageBox("5처방을 ","C002");
  6550. return "0";
  6551. }else {
  6552. lf_aezfAddPrcpMngt(group3.switch1.case5.grd_subordlist1 , "/root/main/ordlist5/mainordlist");
  6553. }
  6554. }
  6555. }
  6556. function group3_switch3_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  6557. {
  6558. if(e.postindex == 0)
  6559. {
  6560. if (group3.switch1.tabindex == 1 ) {
  6561. fTestRoom(group3.switch1.case1.grd_mainordlist1, ds_grd_mainordlist1);
  6562. }
  6563. if ( group3.switch1.tabindex == 2 ) {
  6564. fTestRoom(group3.switch1.case2.grd_mainordlist2, ds_grd_mainordlist2);
  6565. }
  6566. if ( group3.switch1.tabindex == 3 ) {
  6567. fTestRoom(group3.switch1.case3.grd_mainordlist3, ds_grd_mainordlist3);
  6568. }
  6569. if ( group3.switch1.tabindex == 4 ) {
  6570. fTestRoom(group3.switch1.case4.grd_mainordlist4, ds_grd_mainordlist4);
  6571. }
  6572. if ( group3.switch1.tabindex == 0 ) {
  6573. fTestRoom(group3.switch1.case5.grd_subordlist1, ds_grd_subordlist1);
  6574. }
  6575. }
  6576. else
  6577. {
  6578. if (group3.switch1.tabindex == 1 ) {
  6579. fTestRoom(group3.switch1.case1.grd_mainordlist1, ds_grd_mainordlist1);
  6580. }
  6581. if ( group3.switch1.tabindex == 2 ) {
  6582. fTestRoom(group3.switch1.case2.grd_mainordlist2, ds_grd_mainordlist2);
  6583. }
  6584. if ( group3.switch1.tabindex == 3 ) {
  6585. fTestRoom(group3.switch1.case3.grd_mainordlist3, ds_grd_mainordlist3);
  6586. }
  6587. if ( group3.switch1.tabindex == 4 ) {
  6588. fTestRoom(group3.switch1.case4.grd_mainordlist4, ds_grd_mainordlist4);
  6589. }
  6590. }
  6591. }
  6592. function group3_button3_onclick(obj:Button, e:ClickEventInfo)
  6593. {
  6594. appf_delPatientInfos();
  6595. var pid = ds_subordlist1.getColumn(0,"pid");
  6596. var objParam = [{col:"srchpid", type:"string", size:10, val: pid}]
  6597. dsf_createDsRow("ds_send_reqdata_pid", objParam, false)
  6598. var objArg = new Object();
  6599. objArg.arg_ds_send_singdata = ds_send_reqdata_pid;
  6600. frmf_open("SMAER00800", "SMAER00800", objArg, null, null, null, null, null, null, null, null, null, "M");
  6601. }
  6602. function group3_button5_onclick(obj:Button, e:ClickEventInfo)
  6603. {
  6604. appf_delPatientInfos();
  6605. var objArg = new Object();
  6606. objArg.argPid = ds_subordlist1.getColumn(0,"pid");
  6607. frmf_open("SMPAO00300", "SMPAO00300", objArg, "", "", "", "","","", "","","","M");
  6608. }
  6609. function group3_button6_onclick(obj:Button, e:ClickEventInfo)
  6610. {
  6611. //*******************************************************************************************************************************************************************/
  6612. // 간호기록(Type II) 화면을 호출하기 위한 파라미터 값 세팅
  6613. //*******************************************************************************************************************************************************************/
  6614. // [기록 구분 정보]
  6615. // SMMNR03400_AST :pid ▦ instcd ▦ hngnm ▦ age ▦ cretno ▦ ioflag ▦ orddeptcd ▦ orddrid ▩(기능검사 환자정보)
  6616. //
  6617. // - 기록구분(recflag) :
  6618. // O : 외래, F : 기능검사, I : 주사실,
  6619. // D : DSC, S : 전문간호, H : 가정간호,
  6620. // E : 응급실, A : 마취과, R : 회복실,
  6621. // L : 투석실, B : 혈당기록, P : 수술실,
  6622. // C : 외래항암 X : 내시경
  6623. //
  6624. // - 부서코드(dutplaccd) :
  6625. // 001 : 가정 005 : 병동 009 : 외래 013 : 통원 017 : 외래항암
  6626. // 002 : 간클리닉 006 : 부정맥 010 : 응급 014 : 투석 900 : 수술
  6627. // 003 : 기관지 007 : 분만 011 : 전문 015 : 혈당 900 : 마취
  6628. // 004 : 내시경 008 : 성분 012 : 주사 016 : Echo 900 : 회복
  6629. //
  6630. // - 처방구분(prcpflag)
  6631. // A : 투약
  6632. // H : 처치
  6633. // T : 검사
  6634. if ( group3.switch1.tabindex == 0 ) {
  6635. var orddd = ds_grd_subordlist1.getColumn(ds_grd_subordlist1.rowposition,"orddd");
  6636. var cretno = ds_grd_subordlist1.getColumn(ds_grd_subordlist1.rowposition,"cretno");
  6637. var instcd = sysf_getUserInfo("dutplceinstcd");
  6638. var orddeptcd = ds_grd_subordlist1.getColumn(ds_grd_subordlist1.rowposition,"orddeptcd");
  6639. var orddrid = ds_grd_subordlist1.getColumn(ds_grd_subordlist1.rowposition,"orddrid")
  6640. var pid = ds_grd_subordlist1.getColumn(ds_grd_subordlist1.rowposition,"pid");
  6641. var sPid = ds_grd_subordlist1.getColumn(ds_grd_subordlist1.rowposition,"pid");
  6642. var hngnm = ds_grd_subordlist1.getColumn(ds_grd_subordlist1.rowposition,"hngnm");
  6643. var age = ds_grd_subordlist1.getColumn(ds_grd_subordlist1.rowposition,"age");
  6644. var ioflag = ds_grd_subordlist1.getColumn(ds_grd_subordlist1.rowposition,"prcpgenrflag");
  6645. }
  6646. if ( group3.switch1.tabindex == 1 ) {
  6647. var orddd = ds_grd_mainordlist1.getColumn( ds_grd_mainordlist1.rowposition,"orddd");
  6648. var cretno = ds_grd_mainordlist1.getColumn( ds_grd_mainordlist1.rowposition,"cretno");
  6649. //var instcd = model.getValue("/root/main/ordlist1/mainordlist[" + grd_mainordlist1.row + "]/instcd");
  6650. var instcd = sysf_getUserInfo("dutplceinstcd");
  6651. var orddeptcd = ds_grd_mainordlist1.getColumn( ds_grd_mainordlist1.rowposition,"orddeptcd");
  6652. var orddrid = ds_grd_mainordlist1.getColumn( ds_grd_mainordlist1.rowposition,"orddrid");
  6653. var pid = ds_grd_mainordlist1.getColumn( ds_grd_mainordlist1.rowposition,"pid");
  6654. var sPid = ds_grd_mainordlist1.getColumn( ds_grd_mainordlist1.rowposition,"pid");
  6655. var hngnm = ds_grd_mainordlist1.getColumn( ds_grd_mainordlist1.rowposition,"hngnm");
  6656. var age = ds_grd_mainordlist1.getColumn( ds_grd_mainordlist1.rowposition,"age");
  6657. var ioflag = ds_grd_mainordlist1.getColumn( ds_grd_mainordlist1.rowposition,"prcpgenrflag");
  6658. }
  6659. if ( group3.switch1.tabindex == 2 ) {
  6660. var orddd = ds_grd_mainordlist2.getColumn( ds_grd_mainordlist2.rowposition,"orddd");
  6661. var cretno = ds_grd_mainordlist2.getColumn( ds_grd_mainordlist2.rowposition,"cretno");
  6662. //var instcd = model.getValue("/root/main/ordlist2/mainordlist[" + grd_mainordlist2.row + "]/instcd");
  6663. var instcd = sysf_getUserInfo("dutplceinstcd");
  6664. var orddeptcd = ds_grd_mainordlist2.getColumn( ds_grd_mainordlist2.rowposition,"orddeptcd");
  6665. var orddrid = ds_grd_mainordlist2.getColumn( ds_grd_mainordlist2.rowposition,"orddrid");
  6666. var pid = ds_grd_mainordlist2.getColumn( ds_grd_mainordlist2.rowposition,"pid");
  6667. var sPid = ds_grd_mainordlist2.getColumn( ds_grd_mainordlist2.rowposition,"pid");
  6668. var hngnm = ds_grd_mainordlist2.getColumn( ds_grd_mainordlist2.rowposition,"hngnm");
  6669. var age = ds_grd_mainordlist2.getColumn( ds_grd_mainordlist2.rowposition,"age");
  6670. var ioflag = ds_grd_mainordlist2.getColumn( ds_grd_mainordlist2.rowposition,"prcpgenrflag");
  6671. }
  6672. if ( group3.switch1.tabindex == 3 ) {
  6673. var orddd = ds_grd_mainordlist3.getColumn( ds_grd_mainordlist3.rowposition,"orddd");
  6674. var cretno = ds_grd_mainordlist3.getColumn( ds_grd_mainordlist3.rowposition,"cretno");
  6675. //var instcd = model.getValue("/root/main/ordlist3/mainordlist[" + grd_mainordlist3.row + "]/instcd");
  6676. var instcd = sysf_getUserInfo("dutplceinstcd");
  6677. var orddeptcd = ds_grd_mainordlist3.getColumn( ds_grd_mainordlist3.rowposition,"orddeptcd");
  6678. var orddrid = ds_grd_mainordlist3.getColumn( ds_grd_mainordlist3.rowposition,"orddrid");
  6679. var pid = ds_grd_mainordlist3.getColumn( ds_grd_mainordlist3.rowposition,"pid");
  6680. var sPid = ds_grd_mainordlist3.getColumn( ds_grd_mainordlist3.rowposition,"pid");
  6681. var hngnm = ds_grd_mainordlist3.getColumn( ds_grd_mainordlist3.rowposition,"hngnm");
  6682. var age = ds_grd_mainordlist3.getColumn( ds_grd_mainordlist3.rowposition,"age");
  6683. var ioflag = ds_grd_mainordlist3.getColumn( ds_grd_mainordlist3.rowposition,"prcpgenrflag");
  6684. }
  6685. if ( group3.switch1.tabindex == 4 ) {
  6686. var orddd = ds_grd_mainordlist4.getColumn( ds_grd_mainordlist4.rowposition,"orddd");
  6687. var cretno = ds_grd_mainordlist4.getColumn( ds_grd_mainordlist4.rowposition,"cretno");
  6688. var instcd = sysf_getUserInfo("dutplceinstcd");
  6689. //var instcd = model.getValue("/root/main/ordlist4/mainordlist[" + grd_mainordlist4.row + "]/instcd");
  6690. var orddeptcd = ds_grd_mainordlist4.getColumn( ds_grd_mainordlist4.rowposition,"orddeptcd");
  6691. var orddrid = ds_grd_mainordlist4.getColumn( ds_grd_mainordlist4.rowposition,"orddrid");
  6692. var pid = ds_grd_mainordlist4.getColumn( ds_grd_mainordlist4.rowposition,"pid");
  6693. var sPid = ds_grd_mainordlist4.getColumn( ds_grd_mainordlist4.rowposition,"pid");
  6694. var hngnm = ds_grd_mainordlist4.getColumn( ds_grd_mainordlist4.rowposition,"hngnm");
  6695. var age = ds_grd_mainordlist4.getColumn( ds_grd_mainordlist4.rowposition,"age");
  6696. var ioflag = ds_grd_mainordlist4.getColumn( ds_grd_mainordlist4.rowposition,"prcpgenrflag");
  6697. }
  6698. var Baseparam = "recflag▦dutplaccd▦reclnkkey▩X▦004▦" + sPid + "," + orddd + "," + cretno +"," + instcd + "▩";
  6699. var ASTparam = "pid ▦ instcd ▦ hngnm ▦ age ▦ orddd ▦ cretno ▦ ioflag ▦ orddeptcd ▦ orddrid ▩" + pid + "▦" + instcd + "▦" + hngnm + "▦" + age + "▦"+ orddd + "▦" + cretno+ "▦" + ioflag + "▦" + orddeptcd + "▦" + orddrid + "▩";
  6700. var Prcpparam = fMakeParameter();
  6701. frmf_setParameter("SMMNR03400_ParamBase", Baseparam);
  6702. frmf_setParameter("SMMNR03400_AST", ASTparam );
  6703. frmf_setParameter("SMMNR03400_ParamPrcp", Prcpparam);
  6704. frmf_modal("SMMNR03400","SMMNR03400","","","","","","","","","","","M");
  6705. }
  6706. function group3_cmb_rsrvdd_oneditclick(obj:MaskEdit, e:EditClickEventInfo)
  6707. {
  6708. var ev = new ClickEventInfo;
  6709. frmf_inputEnterKey("group3.btn_cal", "onclick", ev );
  6710. }
  6711. function group3_btn_cal_onclick(obj:Button, e:ClickEventInfo)
  6712. {
  6713. dsf_createDsRow("ds_send_popupdata", [{col: "suppdeptcd", val:lv_instance1}
  6714. ,{col: "prcpgenrflag", val:ds_send.getColumn(0,"prcpgenrflag")}
  6715. ,{col: "excuroomcd", val:ds_subordlist1.getColumn(0,"excuroomcd") }
  6716. ]);
  6717. var objArg = new Object();
  6718. objArg.arg_ds_send_popupdata = ds_send_popupdata;
  6719. frmf_modal("SPAEA01501","SPAEA01501",objArg,"","","","","","","","","","M");
  6720. }
  6721. function group3_cmb_rsrvtm_oneditclick(obj:MaskEdit, e:EditClickEventInfo)
  6722. {
  6723. var ev = new ClickEventInfo;
  6724. frmf_inputEnterKey("group3.btn_cal", "onclick", ev );
  6725. }
  6726. function group3_button1_onclick(obj:Button, e:ClickEventInfo)
  6727. {
  6728. //상단정보 초기화
  6729. appf_delPatientInfos();
  6730. // if ( group3.switch1.tabindex == 1 ) {
  6731. //modal("SMMMO02500","","","","","/root/main/ordlist1/mainordlist["+grd_mainordlist1.row+"]/pid","/root/send/data/srchpid");
  6732. var child = frmf_findPopup("SMMMO02500") ;
  6733. if (!utlf_isNull(child)) {
  6734. child.ds_patinfolist.setColumn(0,"pid" , ds_subordlist1.getColumn(0,"pid"));
  6735. frmf_setParameter ( "SMMMO02500_cond" , ds_subordlist1.getColumn(0,"pid"));
  6736. //child.btn_bfprcpsrch.dispatch("DOMActivate");
  6737. //child.ipt_pid.dispatch("onkeypress");
  6738. child.fReqGetPatComnInfo(child.ds_send_reqdata, ds_subordlist1.getColumn(0,"pid"));
  6739. //child.button1.selected = true;
  6740. //child.model.toggle("case1");
  6741. child.switch1.tabindex = 0;
  6742. dsf_copyDs(child.ds_patinfolist, child.ds_srchinfo_patinfolist,"replace");
  6743. child.ds_bfprcp_prcplist.clearData();
  6744. child.ds_bfprcpday.clearData();
  6745. child.switch1.case1.grd_prcpdd.visible = false;
  6746. child.switch1.case1.grd_bfprcplist.position.left = 2;
  6747. child.switch1.case1.grd_bfprcplist.position.width = 1190;
  6748. }else{
  6749. frmf_setParameter ( "SMMMO02500_cond" , ds_subordlist1.getColumn(0,"pid"));
  6750. frmf_open("SMMMO02500","SMMMO02500","", "", "", "", "", "", "", "", "", "","M");
  6751. }
  6752. }
  6753. function group3_btn_excucmt_onclick(obj:Button, e:ClickEventInfo)
  6754. {
  6755. //var tabgubn = model.getValue("/root/hidden/tabgubnlist/tabgubn");
  6756. var loop;
  6757. var check;
  6758. var execprcpstatcd;
  6759. var execbaseflag;
  6760. var grd;
  6761. var loopcnt="";
  6762. var execncl="";
  6763. var list = "";
  6764. list = "ordlist2";
  6765. grd = ds_grd_mainordlist2.rowcount;
  6766. for(var i=0 ; i < grd ; i++) {
  6767. if( ds_grd_mainordlist2.getColumn(i,"check") == "Y" || ds_grd_mainordlist2.getColumn(i,"check") == "1") {
  6768. //검사Comment 저장
  6769. ds_grd_mainordlist2.setColumn(i,"acptrem", group3.tar_execrem.value);
  6770. }
  6771. }
  6772. ds_grd_mainordlist2.filter("check=='Y' || check=='1'");
  6773. dsf_createDs("ds_send_mainordlist2");
  6774. ds_send_mainordlist2.copyData(ds_grd_mainordlist2,true);
  6775. ds_grd_mainordlist2.filter("");
  6776. if ( ds_send_mainordlist2.rowcount = 0 ) {
  6777. sysf_messageBox("처방을","C002");
  6778. return "0";
  6779. }
  6780. var oParam = {};
  6781. oParam.id = "TXAEA01511";
  6782. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  6783. oParam.method = "reqExeExcuActMemoCodeList";
  6784. oParam.inds = "reqparam=ds_send_mainordlist2";
  6785. oParam.outds = "ds_result_item=item";
  6786. oParam.async = false;
  6787. //oParam.callback = "cf_TXAEA01511";
  6788. tranf_submit(oParam);
  6789. fGetExamCureAcptList("T"); // 접수
  6790. }
  6791. function group3_btn_BarCodePrint_onclick(obj:Button, e:ClickEventInfo)
  6792. {
  6793. if (utlf_isNull(ds_subordlist1.getColumn(0,"pid")) ) {
  6794. sysf_messageBox("처방목록이 선택되지 ", "E007");
  6795. return;
  6796. }
  6797. //makeReportPreview(0,0,10, 10, "");
  6798. //fPrintRexbar("RPAER01200"); // 영상의학과
  6799. group3.group00.ipt_patcntctel.value = 1;
  6800. group3.group00.visible = true;
  6801. //rptf_printRexbar("RPAEA01502","","/root/rexsend/rexbarcode",ds_rexbarcode,"","lf_complete"); //내시경전용
  6802. }
  6803. function lf_complete() {
  6804. this.setTimer(1,100);
  6805. }
  6806. function group3_btn_rsrvsrch_onclick(obj:Button, e:ClickEventInfo)
  6807. {
  6808. if ( group3.switch1.tabindex == 1 ) {
  6809. var objArg = new Object();
  6810. dsf_createDs("ds_temp_source");
  6811. ds_temp_source.addColumn("srchpid","string");
  6812. ds_temp_source.addRow();
  6813. ds_temp_source.setColumn(0,"srchpid",ds_grd_mainordlist1.getColumn(ds_grd_mainordlist1.rowposition,"pid"));
  6814. objArg.arg_ds_send = ds_temp_source;
  6815. frmf_modal("SMAEA04100","SMAEA04100",objArg,"","","","","","","","","","M");
  6816. }
  6817. if ( group3.switch1.tabindex == 2 ) {
  6818. var objArg = new Object();
  6819. dsf_createDs("ds_temp_source");
  6820. ds_temp_source.addColumn("srchpid","string");
  6821. ds_temp_source.addRow();
  6822. ds_temp_source.setColumn(0,"srchpid",ds_grd_mainordlist2.getColumn(ds_grd_mainordlist2.rowposition,"pid"));
  6823. objArg.arg_ds_send = ds_temp_source;
  6824. frmf_modal("SMAEA04100","SMAEA04100",objArg,"","","","","","","","","","M");
  6825. }
  6826. if ( group3.switch1.tabindex == 3 ) {
  6827. var objArg = new Object();
  6828. dsf_createDs("ds_temp_source");
  6829. ds_temp_source.addColumn("srchpid","string");
  6830. ds_temp_source.addRow();
  6831. ds_temp_source.setColumn(0,"srchpid",ds_grd_mainordlist3.getColumn(ds_grd_mainordlist3.rowposition,"pid"));
  6832. objArg.arg_ds_send = ds_temp_source;
  6833. frmf_modal("SMAEA04100","SMAEA04100",objArg,"","","","","","","","","","M");
  6834. }
  6835. if ( group3.switch1.tabindex == 4 ) {
  6836. var objArg = new Object();
  6837. dsf_createDs("ds_temp_source");
  6838. ds_temp_source.addColumn("srchpid","string");
  6839. ds_temp_source.addRow();
  6840. ds_temp_source.setColumn(0,"srchpid",ds_grd_mainordlist4.getColumn(ds_grd_mainordlist4.rowposition,"pid"));
  6841. objArg.arg_ds_send = ds_temp_source;
  6842. frmf_modal("SMAEA04100","SMAEA04100",objArg,"","","","","","","","","","M");
  6843. }
  6844. if ( group3.switch1.tabindex == 0 ) {
  6845. var objArg = new Object();
  6846. dsf_createDs("ds_temp_source");
  6847. ds_temp_source.addColumn("srchpid","string");
  6848. ds_temp_source.addRow();
  6849. ds_temp_source.setColumn(0,"srchpid",ds_grd_subordlist1.getColumn(ds_grd_subordlist1.rowposition,"pid"));
  6850. objArg.arg_ds_send = ds_temp_source;
  6851. frmf_modal("SMAEA04100","SMAEA04100",objArg,"","","","","","","","","","M");
  6852. }
  6853. }
  6854. function group3_btn_upclear_onclick(obj:Button, e:ClickEventInfo)
  6855. {
  6856. appf_delPatientInfos();
  6857. }
  6858. function group3_button12_onclick(obj:Button, e:ClickEventInfo)
  6859. {
  6860. frmf_open("SMAHR00120","SMAHR00120","","","","","","","","","","","M");
  6861. }
  6862. function group3_btn_patcmtsave_onclick(obj:Button, e:ClickEventInfo)
  6863. {
  6864. ds_send.setColumn(0,"patrem", ds_patlist_patrem.getColumn(0,"memo"));
  6865. ds_send.setColumn(0,"prsrvdd", ds_send.getColumn(0,"srchdate1"));
  6866. dsf_createDsRow("ds_send_reqparam", [{col: "basesuppdeptcd", val:lv_instance1}
  6867. ,{col: "memodesc", val:ds_send.getColumn(0,"patrem")}
  6868. ,{col: "excuroomcd", val:ds_send.getColumn(0,"pexcuroomcd") }
  6869. ,{col: "memodd", val:ds_send.getColumn(0,"prsrvdd") }
  6870. ,{col: "memorgstddprcpdd", val:ds_send.getColumn(0,"memorgstddprcpdd") }
  6871. ,{col: "ecgflag", val:ds_send.getColumn(0,"ecgflag") }
  6872. ,{col: "pid", val:ds_send.getColumn(0,"srchpid") }
  6873. ]);
  6874. dsf_setFixVal(ds_send_reqparam, "showstartdd:20070707,showenddd:99999999");
  6875. var oParam = {};
  6876. oParam.id = "TXAEA01109";
  6877. oParam.service = "examcureacptexecapp.PatRem";
  6878. oParam.method = "reqInsPatRem";
  6879. oParam.inds = "reqparam=ds_send_reqparam";
  6880. oParam.outds = "ds_result_item=rtnParm";
  6881. oParam.async = false;
  6882. //oParam.callback = "cf_TXAEA01109";
  6883. tranf_submit(oParam);
  6884. //환자Comment 환자정보 조회
  6885. call_TRAEA01517();
  6886. //상병정보, 검사예약, 진료예약, 처방내역
  6887. var oParam = {};
  6888. oParam.id = "TRAEA01506";
  6889. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  6890. oParam.method = "reqGetExamCureExecPrcpList";
  6891. oParam.inds = "reqparam=ds_send_reqparam";
  6892. oParam.outds = "ds_subordlist1=examcureexecdiaglist ds_grd_ordlist1=gettestrsrvinfo ds_grd_ordlist2=getordrsrvinfo ds_grd_subprcplist=examcureexecprcplist ds_examcureexecdiaglist=diaglist ds_prcpdelifactlist=prcpdelifactlist ds_isolinfo=patisolinfolist ds_main_subordlist_nameconflict=conflictyn";
  6893. oParam.async = false;
  6894. oParam.callback = "cf_TRAEA01506";
  6895. tranf_submit(oParam);
  6896. //20170213 산정특례종료일자 보여주기
  6897. var serdiagtodd = ds_patlist_serdiagtodd.getColumn(0,"serdiagtodd");
  6898. var rareobsttodd = ds_patlist_serdiagtodd.getColumn(0,"rareobsttodd");
  6899. if ( !utlf_isNull(serdiagtodd) && serdiagtodd != "-" ) {
  6900. serdiagtodd = serdiagtodd.substr(0,4) + "년 " + serdiagtodd.substr(4,2) + "월 " + serdiagtodd.substr(6,2) + "일";
  6901. group3.opt_vipflag.value = "중증 종료일자는 [ " + serdiagtodd + " ] 입니다"
  6902. }
  6903. if ( !utlf_isNull(rareobsttodd) && rareobsttodd != "-" ) {
  6904. rareobsttodd = rareobsttodd.substr(0,4) + "년 " + rareobsttodd.substr(4,2) + "월 " + rareobsttodd.substr(6,2) + "일";
  6905. group3.opt_vipflag.value = "희귀난치 종료일자는 [ " + rareobsttodd + " ] 입니다"
  6906. }
  6907. // group3.cpt_isolinfo.text = "";
  6908. // if (model.getValue("/root/main/patrem/isolinfo/etccnts") != "") {
  6909. // group3.cpt_isolinfo.text = "확인";
  6910. // }
  6911. //
  6912. // //조회내역이 없을경우 노드만 새로 생성.
  6913. // if(utlf_isNull(group3.tar_patrem.value)) {
  6914. // model.makeNode("/root/main/patrem/rem/memo");
  6915. //
  6916. // }
  6917. }
  6918. function call_TRAEA01517() {
  6919. var objExtCommon = new ExtCommon();
  6920. dsf_createDsRow("ds_send_reqparam", [{col: "basesuppdeptcd", type:"STRING", size:256, val:lv_instance1}
  6921. ,{col: "suppdeptcd", type:"STRING", size:256, val:lv_instance1}
  6922. ,{col: "excuroomcd", type:"STRING", size:256, val:ds_send.getColumn(0,"pexcuroomcd") }
  6923. ,{col: "memorgstdd", type:"STRING", size:256, val:ds_send.getColumn(0,"memodd") }
  6924. ,{col: "memorgstddprcpdd", type:"STRING", size:256, val:ds_send.getColumn(0,"memorgstddprcpdd") }
  6925. ,{col: "ecgflag", type:"STRING", size:256, val:ds_send.getColumn(0,"ecgflag") }
  6926. ,{col: "initexcuroom", type:"STRING", size:256, val:ds_send.getColumn(0,"excuroomcdid") }
  6927. ,{col: "bodypartcdid", type:"STRING", size:256, val:ds_send.getColumn(0,"bodypartcdid") }
  6928. ,{col: "srchdate1", type:"STRING", size:256, val:ds_send.getColumn(0,"srchdate1") }
  6929. ,{col: "srchdate2", type:"STRING", size:256, val:ds_send.getColumn(0,"srchdate2") }
  6930. ,{col: "acptlistflag", type:"STRING", size:256, val:ds_send.getColumn(0,"acptlistflag") }
  6931. ,{col: "pid", type:"STRING", size:256, val:ds_send.getColumn(0,"srchpid") }
  6932. ,{col: "srchpid", type:"STRING", size:256, val:ds_send.getColumn(0,"srchpid") }
  6933. ,{col: "excuroomflag", type:"STRING", size:256, val:lv_instance1 }
  6934. ,{col: "orddd", type:"STRING", size:256, val:ds_send.getColumn(0,"orddd") }
  6935. ,{col: "prcpgenrflag", type:"STRING", size:256, val:ds_send.getColumn(0,"prcpgenrflag") }
  6936. ,{col: "ioflag", type:"STRING", size:256, val:ds_send.getColumn(0,"ioflag") }
  6937. ,{col: "execprcpuniqno", type:"INT" , size:256, val:ds_send.getColumn(0,"execprcpuniqno") }
  6938. ,{col: "orddeptcd", type:"STRING", size:256, val:ds_send.getColumn(0,"orddeptcd") }
  6939. ,{col: "prcpdd", type:"STRING", size:256, val:ds_send.getColumn(0,"prcpdd") }
  6940. ,{col: "prcpno", type:"INT" , size:256, val:ds_send.getColumn(0,"prcpno") }
  6941. ,{col: "largeclass", type:"STRING", size:256, val:"M5" }
  6942. ,{col: "sublist", type:"STRING", size:256, val:"sub" }
  6943. ,{col: "deptflag", type:"STRING", size:256, val:ds_send.getColumn(0,"deptflag") }
  6944. ,{col:"ipaddr", type:"STRING", size:256, val: objExtCommon.getIPAddress() }
  6945. ]);
  6946. ds_patlist_patrem.clearData();
  6947. var oParam = {};
  6948. oParam.id = "TRAEA01517";
  6949. oParam.service = "examcureacptexecapp.PatRem";
  6950. oParam.method = "reqGetFuncPatRemList";
  6951. oParam.inds = "reqparam=ds_send_reqparam";
  6952. oParam.outds = "ds_patlist_patrem=grdAeahMemoList ds_patlist_serdiagtodd=sltpatinfolist";
  6953. oParam.async = false;
  6954. oParam.callback = "cf_TRAEA01517";
  6955. tranf_submit(oParam);
  6956. }
  6957. function cf_TRAEA01517(sSvcId, nErrorCode, sErrorMsg) {
  6958. if(nErrorCode < 0) return;
  6959. ds_patlist_patrem.updateColID("memodesc","memo");
  6960. if(ds_patlist_patrem.rowcount == 0) ds_patlist_patrem.addRow();
  6961. }
  6962. function group3_btn_prntset_onclick(obj:Button, e:ClickEventInfo)
  6963. {
  6964. fSetPrint();
  6965. }
  6966. function group3_bool1_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  6967. {
  6968. if(e.postvalue == true)
  6969. {
  6970. var execprcphistcd = "";
  6971. var execdd = "";
  6972. for (var i = 0; i < ds_grd_subprcplist.rowcount; i ++){
  6973. execprcphistcd = ds_grd_subprcplist.getColumn(i,"execprcphistcd");
  6974. execdd = ds_grd_subprcplist.getColumn(i,"execdd");
  6975. if(execprcphistcd == "O" && execdd == "00000000"){
  6976. ds_grd_subprcplist.setColumn(i,"check", "Y");
  6977. }else{
  6978. ds_grd_subprcplist.setColumn(i,"check", "N");
  6979. }
  6980. }
  6981. //20140731 by kya 선택진료비변경에 따른 안내메시지
  6982. for ( var i = 0; i < ds_grd_subprcplist.rowcount; i++) {
  6983. var checkflag = ds_grd_subprcplist.getColumn(i,"check");
  6984. if ( checkflag == "Y" || checkflag == "1" ) {
  6985. var pid = ds_grd_subprcplist.getColumn(i,"pid");
  6986. var prcpdd = ds_grd_subprcplist.getColumn(i,"prcpdd");
  6987. var execprcpuniqno = ds_grd_subprcplist.getColumn(i,"execprcpuniqno");
  6988. var cnt = getPrcpRcptCheck("AST", pid, "","", prcpdd, execprcpuniqno );
  6989. if ( cnt > 0 ) break;
  6990. }
  6991. }
  6992. }
  6993. else
  6994. {
  6995. for (var i = 0; i < ds_grd_subprcplist.rowcount; i ++){
  6996. ds_grd_subprcplist.setColumn(i,"check", "N");
  6997. }
  6998. }
  6999. }
  7000. function group7_btn_close_onclick(obj:Button, e:ClickEventInfo)
  7001. {
  7002. group7.visible = false;
  7003. //cpt_isoldata.visible = false;
  7004. //line14.visible = false;
  7005. //line19.visible = false;
  7006. //btn_close.visible = false;
  7007. //textarea1.visible = false;
  7008. //caption20.visible = false;
  7009. }
  7010. function pmn_menu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  7011. {
  7012. eval(e.id + "()");
  7013. }
  7014. function group3_btn_case5_onclick(obj:Button, e:ClickEventInfo)
  7015. {
  7016. group3.switch1.enableevent = false;
  7017. group3.switch1.tabindex = 0;
  7018. lf_tabEvnt(0);
  7019. lf_btn_Selected(5);
  7020. group3.switch1.enableevent = true;
  7021. }
  7022. function group3_btn_case1_onclick(obj:Button, e:ClickEventInfo)
  7023. {
  7024. group3.switch1.enableevent = false;
  7025. group3.switch1.tabindex = 1;
  7026. lf_tabEvnt(1);
  7027. lf_btn_Selected(1);
  7028. group3.switch1.enableevent = true;
  7029. }
  7030. function group3_btn_case2_onclick(obj:Button, e:ClickEventInfo)
  7031. {
  7032. group3.switch1.enableevent = false;
  7033. group3.switch1.tabindex = 2;
  7034. lf_tabEvnt(2);
  7035. lf_btn_Selected(2);
  7036. group3.switch1.enableevent = true;
  7037. }
  7038. function group3_btn_case3_onclick(obj:Button, e:ClickEventInfo)
  7039. {
  7040. group3.switch1.enableevent = false;
  7041. group3.switch1.tabindex = 3;
  7042. lf_tabEvnt(3);
  7043. lf_btn_Selected(3);
  7044. group3.switch1.enableevent = true;
  7045. }
  7046. function group3_btn_case4_onclick(obj:Button, e:ClickEventInfo)
  7047. {
  7048. group3.switch1.enableevent = false;
  7049. group3.switch1.tabindex = 4;
  7050. lf_tabEvnt(4);
  7051. lf_btn_Selected(4);
  7052. group3.switch1.enableevent = true;
  7053. }
  7054. function lf_btn_Selected(btnId){
  7055. if( utlf_isNull(btnId) ) return;
  7056. for( var i = 1; i < 6; i++ ){
  7057. if( i == btnId){
  7058. var btnObj = group3.components["btn_case"+i];
  7059. btnObj.setSelectStatus(true);
  7060. btnObj.class = "btn_tab_S";
  7061. }else{
  7062. var btnObj = group3.components["btn_case"+i];
  7063. btnObj.setSelectStatus(false);
  7064. btnObj.class = "btn_tab";
  7065. }
  7066. }
  7067. }
  7068. function ds_grd_subprcplist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  7069. {
  7070. if(e.columnid=="check") {
  7071. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  7072. }
  7073. }
  7074. function group3_grd_subprcplist_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
  7075. {
  7076. var selectedRows = grdf_getSelectedRows(group3.grd_subprcplist);
  7077. if (selectedRows.length > 1) {
  7078. for ( var i = 0; i < ds_grd_subprcplist.rowcount; i++) {
  7079. ds_grd_subprcplist.setColumn(i,"check", "N");
  7080. }
  7081. for (var i= 0; i < selectedRows.length; i++){
  7082. ds_grd_subprcplist.setColumn(selectedRows[i], "check", "Y");
  7083. }
  7084. }
  7085. }
  7086. function group3_switch1_case5_grd_subordlist1_onrbuttonup(obj:Grid, e:GridMouseEventInfo)
  7087. {
  7088. if(e.row < 0 || e.col < 0) return;
  7089. obj.setFocus();
  7090. grdf_setSelectedCell(obj, e);
  7091. //obj.oncellclick.fireEvent(obj, new GridClickEventInfo());
  7092. pmn_menu.innerdataset = "ds_init_pmenu_grid06";
  7093. pmn_menu.idcolumn = "func";
  7094. pmn_menu.captioncolumn = "name";
  7095. pmn_menu.levelcolumn = "func";
  7096. pmn_menu.trackPopup(e.screenX,e.screenY);
  7097. return true;
  7098. }
  7099. function fMakeCopyColumn(objDs,sColSrc,sColTgt) {
  7100. if(utlf_isNull(objDs.getColumnInfo(sColTgt))) objDs.addColumn(sColTgt,"string");
  7101. for(var i = 0 ; i < objDs.rowcount ; i++) {
  7102. objDs.setColumn(i,sColTgt,objDs.getColumn(i,sColSrc));
  7103. }
  7104. }
  7105. function cf_TRAEA01506(sSvcId, nErrorCode, sErrorMsg) {
  7106. if(nErrorCode < 0) return;
  7107. ds_grd_subprcplist.addColumn("check","string");
  7108. }
  7109. function group3_cpt_isolinfo_onclick(obj:Static, e:ClickEventInfo)
  7110. {
  7111. group7.visible = true;
  7112. }
  7113. function group3_switch1_case1_grd_mainordlist1_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
  7114. {
  7115. var selectedRows = grdf_getSelectedRows(obj);
  7116. for (var i= 0; i < selectedRows.length; i++){
  7117. ds_grd_mainordlist1.setColumn(selectedRows[i],"check","Y");
  7118. }
  7119. }
  7120. function Static00_onclick(obj:Static, e:ClickEventInfo)
  7121. {
  7122. }
  7123. function group3_grd_subprcplist_onrbuttonup(obj:Grid, e:GridMouseEventInfo)
  7124. {
  7125. if(e.row < 0 || e.col < 0) return;
  7126. obj.setFocus();
  7127. grdf_setSelectedCell(obj, e);
  7128. //obj.oncellclick.fireEvent(obj, new GridClickEventInfo());
  7129. if (group3.switch1.tabindex != 5) {
  7130. if(ds_grd_subprcplist.getColumn(e.row,"mset") == "ⓜ" ){
  7131. pmn_menu.innerdataset = "ds_init_pmenu_grid03";
  7132. pmn_menu.idcolumn = "func";
  7133. pmn_menu.captioncolumn = "name";
  7134. pmn_menu.levelcolumn = "func";
  7135. pmn_menu.trackPopup(e.screenX,e.screenY);
  7136. }else if(ds_grd_subprcplist.getColumn(e.row,"prcpgenrflag") == "S" ){
  7137. pmn_menu.innerdataset = "ds_init_pmenu_grid03";
  7138. pmn_menu.idcolumn = "func";
  7139. pmn_menu.captioncolumn = "name";
  7140. pmn_menu.levelcolumn = "func";
  7141. pmn_menu.trackPopup(e.screenX,e.screenY);
  7142. }else if(ds_grd_subprcplist.getColumn(e.row,"mset") != "ⓜ" ){
  7143. pmn_menu.innerdataset = "ds_init_pmenu_grid05";
  7144. pmn_menu.idcolumn = "func";
  7145. pmn_menu.captioncolumn = "name";
  7146. pmn_menu.levelcolumn = "func";
  7147. pmn_menu.trackPopup(e.screenX,e.screenY);
  7148. }
  7149. }
  7150. return true;
  7151. }
  7152. function SMAEA01500_ontimer(obj:Form, e:TimerEventInfo)
  7153. {
  7154. if(e.timerid == 1) {
  7155. this.killTimer(1);
  7156. group3.btn_BarCodePrint.setFocus();
  7157. }
  7158. }
  7159. function group3_group00_btn_prtlabel_onclick(obj:Button, e:ClickEventInfo)
  7160. {
  7161. ds_rexbarcode.clearData();
  7162. ds_rexbarcode.addRow();
  7163. ds_rexbarcode.setColumn(0,"pid", ds_subordlist1.getColumn(0,"pid"));
  7164. ds_rexbarcode.setColumn(0,"patnm", ds_subordlist1.getColumn(0,"patnm"));
  7165. ds_rexbarcode.setColumn(0,"prcpnm", ds_subordlist1.getColumn(0,"prcpnm"));
  7166. ds_rexbarcode.setColumn(0,"gbn", "");
  7167. ds_rexbarcode.setColumn(0,"rrgstno1", ds_subordlist1.getColumn(0,"rgstno"));
  7168. ds_rexbarcode.setColumn(0,"rrgstno2", "");
  7169. ds_rexbarcode.setColumn(0,"rsrvdd", "");
  7170. ds_rexbarcode.setColumn(0,"sex", ds_subordlist1.getColumn(0,"sna"));
  7171. ds_rexbarcode.setColumn(0,"age", "");
  7172. ds_rexbarcode.setColumn(0,"wardcddeptengabbr", ds_subordlist1.getColumn(0,"prcpgenrflag"));
  7173. ds_rexbarcode.setColumn(0,"excupartcd", "");
  7174. ds_rexbarcode.setColumn(0,"roomcd", "");
  7175. ds_rexbarcode.setColumn(0,"examroomnm", ds_subordlist1.getColumn(0,"orddrnm"));
  7176. ds_rexbarcode.setColumn(0,"wardcdnm", ds_subordlist1.getColumn(0,"orddepthngnm"));
  7177. ds_rexbarcode.setColumn(0,"prcphopedd", ds_subordlist1.getColumn(0,"prcpdd"));
  7178. var prtcnt = group3.group00.ipt_patcntctel.value;
  7179. if(prtcnt > 0){
  7180. var sOption = "copies=" + prtcnt;
  7181. rptf_printRexbar("RPAEA01502","","/root/rexsend/rexbarcode",ds_rexbarcode,"","lf_complete", sOption); //내시경전용
  7182. }
  7183. group3.group00.visible = false;
  7184. }
  7185. function group3_group00_button9_onclick(obj:Button, e:ClickEventInfo)
  7186. {
  7187. group3.group00.visible = false;
  7188. }
  7189. //20190710 바코드 환경 설정
  7190. function fn_barcdprntsetup(){
  7191. //20190710 환자팔찌 후 바코드 재설정
  7192. ds_barcdprntsetup.clearData();
  7193. //바코드 출력
  7194. ds_send.setColumn(0,"scrnid", frmf_getScreenID()); // 20090617 SATO 관련 추가
  7195. var oParam = {};
  7196. oParam.id = "TRLLC90101";
  7197. oParam.service = "diagtestapplib.LisCommon";
  7198. oParam.method = "reqGetSetUpInfo";
  7199. oParam.inds = "scrnid=ds_send";
  7200. oParam.outds = "ds_barcdprntsetup=getSetUpInfo";
  7201. oParam.async = false;
  7202. //oParam.callback = "cf_TRLLC90101";
  7203. tranf_submit(oParam); // 20090617 SATO 관련 추가
  7204. lf_convertXmlToDs(ds_barcdprntsetup.getColumn(0,"prntsetupinfo"));
  7205. }
  7206. function group3_btn_bracelet_onclick(obj:Button, e:ClickEventInfo)
  7207. {
  7208. //설정된 상단정보를 불러옴
  7209. ds_main_paminfo.clearData();
  7210. var node = sysf_getGlobalVariable("paminfo");
  7211. dsf_setCSVToDs("ds_main_paminfo", node);
  7212. if (!utlf_isNull(ds_main_paminfo.getColumn(0, "pid"))) { //상단정보에 환자가 셋팅되어 있을 경우
  7213. var pid, indd, cretno, mskind, histstat;
  7214. ds_barcdprntsetup.clearData();
  7215. dsf_makeValue(ds_send,"scrnid", "string", "SMMNR00600");
  7216. var comport = "1";
  7217. var oParam = {};
  7218. oParam.id = "TRLLC90101";
  7219. oParam.service = "diagtestapplib.LisCommon";
  7220. oParam.method = "reqGetSetUpInfo";
  7221. oParam.inds = "scrnid=ds_send";
  7222. oParam.outds = "ds_barcdprntsetup=getSetUpInfo";
  7223. oParam.async = false;
  7224. oParam.callback = "cf_TRLLC90101";
  7225. tranf_submit(oParam);
  7226. //XML string 값을 파라미터로 넘김
  7227. //성공시 : 'success' 실패시 : 'error' 값을 리턴함
  7228. var sParamObj = new Object();
  7229. sParamObj.pathYN = 'N'; //dsvaluepath 컬럼 사용여부
  7230. var pXmlStr = ds_barcdprntsetup.getColumn(0, "prntsetupinfo");
  7231. var succYn = lf_convertXmlToDs(pXmlStr, sParamObj);
  7232. if(arErrorCode.pop("TRLLC90101") > -1){
  7233. comport = ds_data_comm02.getColumn(0,"comm"); //model.getValue("/root/main_nm/barcdprntsetup/prntsetupinfo/setupinfo[1]/comm02/comm");
  7234. }
  7235. // 바코드OCX 생성
  7236. //2. 바코드 라벨 환경설정
  7237. var barcdRef = "ds_BarCodeNode";
  7238. lzzfMakeBrcdPrntObjHanDo("CommAX");
  7239. pid = ds_main_paminfo.getColumn(0, "pid");
  7240. indd = ds_main_paminfo.getColumn(0, "orddd");
  7241. cretno = ds_main_paminfo.getColumn(0, "cretno");
  7242. mskind = ds_main_paminfo.getColumn(0, "mskind");
  7243. histstat = ds_main_paminfo.getColumn(0, "histstat");
  7244. ds_send.addColumn("data17", "string");
  7245. dsf_createDs("ds_hidden_h_receipt");
  7246. ds_hidden_h_receipt.addColumn(0, "receipt");
  7247. // model.removeNodeset("/root/hidden/h_receipt");
  7248. // model.removeNodeset("/root/send/data17");
  7249. //원무 메소드 호출
  7250. //fInPatBarCodePrn(pid, indd, cretno, mskind, histstat, comport);
  7251. /* 삭제된 파라미터 : pPort - COM Port 지정값
  7252. * 추가된 파라미터 : pSetyn - 프린터설정정보 셋팅여부
  7253. * pScrid - 프린터설정정보 조회용 화면 아이디
  7254. * pBarcdRef - 설정정보 xpath
  7255. */
  7256. //------(20100914) 경북대 s
  7257. dsf_makeValue(ds_main_barcdprntsetup,"macaddr", "string", "별도경로설정");
  7258. //------(20100914) 경북대 e
  7259. //trace("1.fPMIFPrintBarCode 시작");
  7260. fPMIFPrintBarCode(pid, indd, cretno, mskind, histstat, "N", "SMMNR00600", barcdRef); // 20090527 변경됨.
  7261. //trace("1.fPMIFPrintBarCode 종료");
  7262. //------(20100914) 경북대 s
  7263. ds_main_barcdprntsetup.deleteColumn("macaddr");
  7264. //------(20100914) 경북대 e
  7265. } else {
  7266. sysf_messageBox("환자를 선택 후 출력하십시오", "I");
  7267. }
  7268. }
  7269. /****************************************************************************************
  7270. * Components : Edit
  7271. * Components ID : grp_sea.ipt_pid
  7272. * Event : onkeyup
  7273. * Argument : 01.obj : Object Event has occurred
  7274. * : 02.e : Event Object
  7275. * Description : 20200123 코로나바이러스 알림 호출 pid= '2199411'
  7276. ****************************************************************************************/
  7277. function fc_check_coronavirus()
  7278. { //20200123 코로나바이러스 알림 호출 pid= '2199411'
  7279. //select * from ast.aebmcode where instcd = '031' and suppdeptcd = '0000000000' and grupcdid = 'A100' ;
  7280. lf_getAstCodeList([{dsNm: "ds_init_A1000", cdGrpId:"A1000", sortField: "dispseq", sortMehotd: "asc"}], true);
  7281. var curddyn = ds_init_A1000.getColumn(1, "cdid"); //2번째 row 여서...
  7282. //trace("curddyn = " + curddyn);
  7283. if ( curddyn == 'Y') {
  7284. var sPid = ds_subordlist1.getColumn(0, "pid");
  7285. frmf_setParameter("SPMMD00100_ifyn", "Y");
  7286. frmf_setParameter("SPMMD00100_pid", sPid);
  7287. var argxpt = system.clientToScreenX(this, 0) + 300;
  7288. var argypt = system.clientToScreenY(this, 0) + 100;
  7289. frmf_modal("SPMMO51000", "SPMMO51000", null, false, null, argxpt, argypt, null, null, null, null, null, "M");
  7290. }
  7291. }
  7292. ]]></Script>
  7293. </Form>
  7294. </FDL>