SMPID20500_외래사후심사관리.xrw 277 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SMPID20500_외래사후심사관리.xrwopt_patrrgstno
  4. * 수정이력
  5. * - 2007.03.22 / 최초작성 / 정주미
  6. * - 2008.06.20. / 김상진 / Modify
  7. * - 재개발 및 로직튜닝
  8. * - 화면속도개선
  9. * - 화면상단 인적사항 수정
  10. * - 상병로직 수정
  11. * - 처방 및 특정내역 EDI줄번호로직 수정
  12. * - 수가계산로직 개발
  13. * - 청구금액계산로직 개발
  14. * - 처방그리드 수가단가,1회량,일수,금액 및 edi 단가, 1회량, 일수, 금액 분리
  15. * - 원외처방 특정내역 수정
  16. -->
  17. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  18. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  19. <xhtml:head>
  20. <xhtml:title>외래사후심사관리</xhtml:title>
  21. <model id="model1">
  22. <instance id="instance1">
  23. <root xmlns="">
  24. <main>
  25. <item1>
  26. <!-- 인적사항 -->
  27. <clbs>
  28. <clamkey/>
  29. <clamym/>
  30. <clamdg/>
  31. <pid/>
  32. <pidsn/>
  33. <patnm/>
  34. <patrrgstno/>
  35. <judgendyn/>
  36. <clamendyn/>
  37. <clamno/>
  38. <acptno/>
  39. <docuseqno/>
  40. <adjtresncd/>
  41. <docudelresncd/>
  42. <adjtresndesc/>
  43. <abdresncd/>
  44. <rowstat/>
  45. <workflag/>
  46. <clbtworkflag/>
  47. <ioflag/>
  48. <sdoamsg/>
  49. <rooamsg/>
  50. <undersixageyn>N</undersixageyn>
  51. <dethyn/>
  52. <opyn/>
  53. <insukindcd/>
  54. <insukindnm/>
  55. <suppkindcd/>
  56. <suppkindnm/>
  57. <payownbrate/>
  58. <ordfildcd/>
  59. <clamdeptcd/>
  60. <orddeptcd/>
  61. <orddrid/>
  62. <orddddisp/>
  63. <arvpathcd/>
  64. <inpathcd/>
  65. <ordrsltcd/>
  66. <insdnm/>
  67. <insuno/>
  68. <insunm/>
  69. <certno/>
  70. <ordfromdd/>
  71. <ordtodd/>
  72. <indd/>
  73. <dschdd/>
  74. <patage/>
  75. <mechage/>
  76. <gender/>
  77. <clamflagcd/>
  78. <chosindayno/>
  79. <medcaredayno/>
  80. <cretno/>
  81. <wardcd/>
  82. <roomcd/>
  83. <indschacptstat/>
  84. <memohist/>
  85. <diaghist/>
  86. <unexecord/>
  87. <patspcfyn/>
  88. <predocuyn/>
  89. <acptamt/>
  90. <bfclamamt/>
  91. <clamamt/>
  92. <bfclamdifamt/>
  93. <bfowndifamt/>
  94. <judgdifamt/>
  95. <ownbamt/>
  96. <insuclamamt/>
  97. <ownbmaxexamt/>
  98. <handcaprfund/>
  99. <subtamt/>
  100. <suppamt/>
  101. <paylimamt/>
  102. <instcd/>
  103. <recalcyn/>
  104. <lastupdtrid/>
  105. <cretfromdd/>
  106. <crettodd/>
  107. <iphsfromdd/>
  108. <iphstodd/>
  109. <rsvordgubn/>
  110. <ownbflag/>
  111. <oprcpdayno/>
  112. <direcprcptims/>
  113. <ordtims/>
  114. <prockindflag/>
  115. <offcharm/>
  116. <mskind/>
  117. <stsioflag/>
  118. <lockyn/>
  119. <cpyn/>
  120. <drgcd/>
  121. <proccorpcd/>
  122. <bdwt/>
  123. <samedateyn/>
  124. <samedocuyn/>
  125. <samedocuioyn/>
  126. <ordym/>
  127. <clamtypecd/>
  128. <sumtypecd/>
  129. <mig/>
  130. <maxseqno/>
  131. <surecd/>
  132. <dispclsp/>
  133. <suppkindchgresn/>
  134. <suppkind/>
  135. <totlimitdiffamt/>
  136. <orddiag/>
  137. <rareobstflag/>
  138. <paygrntno/>
  139. </clbs>
  140. <memo>
  141. <judgmemo/>
  142. <judgmemorepeat/>
  143. <edimemo/>
  144. <edimemorepeat/>
  145. </memo>
  146. </item1>
  147. <item2>
  148. <!-- [TRPID20302] 조합기호 입력에 따라 검색한 조합명칭 -->
  149. <incd>
  150. <insucd/>
  151. <insucdnm/>
  152. </incd>
  153. </item2>
  154. <item3>
  155. <!-- 심사대상자의 보험유형에 따라 선택가능한 보조/요율 Combo 설정 -->
  156. <supp>
  157. <suppratenm/>
  158. <supprateid/>
  159. </supp>
  160. </item3>
  161. <list1>
  162. <!-- 상병 -->
  163. <cldi>
  164. <rowstat/>
  165. <workflag/>
  166. <diagkindcd/>
  167. <diagseq/>
  168. <diagcd/>
  169. <diagnm/>
  170. <!-- R/O 를 의미함-->
  171. <clamdeptcd/>
  172. <ordfromdd/>
  173. <toot/>
  174. <toot1/>
  175. <estmspclcd/>
  176. <wundresncd/>
  177. <diagengnm/>
  178. <seqno/>
  179. <vcode/>
  180. <kcd6chk/>
  181. </cldi>
  182. </list1>
  183. <list2>
  184. <!-- 처방 -->
  185. <clod>
  186. <spcljudgyn/>
  187. <workflag/>
  188. <seqno/>
  189. <grupsnglflag/>
  190. <grupseqno/>
  191. <rowstat/>
  192. <initlnno/>
  193. <edilnno/>
  194. <ediitem1/>
  195. <ediitem2/>
  196. <orddd/>
  197. <grupcalcscorcd/>
  198. <matractflag/>
  199. <snglcalcscorcd/>
  200. <basecd/>
  201. <estmcls/>
  202. <estmmncd/>
  203. <estmcd/>
  204. <hosinresncd/>
  205. <hngnm/>
  206. <payflag/>
  207. <ediunitcost/>
  208. <tims/>
  209. <daydrugqty/>
  210. <dayno/>
  211. <edidayno/>
  212. <ediamt/>
  213. <cnfmcd/>
  214. <lnunitspclspecyn/>
  215. <toot/>
  216. <adjtresncd/>
  217. <orddeptcd/>
  218. <orddrid/>
  219. <execdt/>
  220. <edihospaddamt/>
  221. <ediaddamt/>
  222. <paytotamt/>
  223. <ownbamt/>
  224. <clamamt/>
  225. <choiordamt/>
  226. <edihospaddtotamt/>
  227. <ediaddtotamt/>
  228. <choiordtotamt/>
  229. <totordamt/>
  230. <ownbtotamt/>
  231. <cpflag/>
  232. <ordnm/>
  233. <edicdflag/>
  234. <item/>
  235. <item1/>
  236. <item2/>
  237. <unitcost/>
  238. <drugqty/>
  239. <totdrugqty/>
  240. <amt/>
  241. <baserlapnt/>
  242. <baseaddrlapnt/>
  243. <pntunitcost/>
  244. <updtdd/>
  245. <ordfromdd/>
  246. <ordtodd/>
  247. <ediitem/>
  248. <edicd/>
  249. <rcptunitcost/>
  250. <prcpflag/>
  251. <rcptcalcamt/>
  252. <reductamt/>
  253. <estmcdnm/>
  254. <pynpy1/>
  255. <earncls1/>
  256. <earncls2/>
  257. <earncls3/>
  258. <mechfromdd/>
  259. <mechtodd/>
  260. <unit/>
  261. <calcappyn/>
  262. <erroramtyn/>
  263. <druglimitamt/>
  264. <limitdiffamt/>
  265. <edidruglimitamt/>
  266. <edilimitdiffamt/>
  267. </clod>
  268. </list2>
  269. <list3>
  270. <!-- 특정내역 -->
  271. <clsp>
  272. <rowstat/>
  273. <seqno/>
  274. <clodseqno/>
  275. <workflag/>
  276. <unitflag/>
  277. <edilnno/>
  278. <snglcalcscorcd/>
  279. <hngnm/>
  280. <spclcd/>
  281. <cdnm/>
  282. <spclspec/>
  283. <spclformat/>
  284. <detldesc/>
  285. <oldedilnno/>
  286. <initedilnno/>
  287. <oldspclcd/>
  288. </clsp>
  289. </list3>
  290. <item5>
  291. <!-- [TRPID20303] 그룹,싱글,EDI코드 입력에 따라 조회 / 또는 SMPIC00200_수가조회 검색 결과 -->
  292. <mech>
  293. <spcljudgyn/>
  294. <seqno/>
  295. <grupsnglflag/>
  296. <grupseqno/>
  297. <rowstat/>
  298. <initlnno/>
  299. <edilnno/>
  300. <ediitem1/>
  301. <ediitem2/>
  302. <ordfromdd/>
  303. <ordtodd/>
  304. <orddd/>
  305. <grupcalcscorcd/>
  306. <snglcalcscorcd/>
  307. <basecd/>
  308. <estmcls/>
  309. <estmmncd/>
  310. <estmcd/>
  311. <hngnm/>
  312. <payflag/>
  313. <ediunitcost/>
  314. <edidrugqty/>
  315. <tims/>
  316. <daydrugqty/>
  317. <dayno/>
  318. <edidayno/>
  319. <ediamt/>
  320. <cnfmcd/>
  321. <lnunitspclspecyn/>
  322. <toot/>
  323. <updtdd/>
  324. <adjtresncd/>
  325. <edihospaddamt/>
  326. <ediaddamt/>
  327. <paytotamt/>
  328. <ownbamt/>
  329. <clamamt/>
  330. <choiordamt/>
  331. <edihospaddtotamt/>
  332. <ediaddtotamt/>
  333. <choiordtotamt/>
  334. <totordamt/>
  335. <ownbtotamt/>
  336. <matractflag/>
  337. <ordnm/>
  338. <edicdflag/>
  339. <orddeptcd/>
  340. <orddrid/>
  341. <item/>
  342. <unitcost/>
  343. <drugqty/>
  344. <totdrugqty/>
  345. <amt/>
  346. <baserlapnt/>
  347. <baseaddrlapnt/>
  348. <pntunitcost/>
  349. <hosinresncd/>
  350. <ediitem/>
  351. <edicd/>
  352. <rcptunitcost/>
  353. <prcpflag/>
  354. <rcptcalcamt/>
  355. <estmcdnm/>
  356. <mechfromdd/>
  357. <mechtodd/>
  358. <execdt/>
  359. <cnfmcd/>
  360. <clamspclcd/>
  361. <trustinstno/>
  362. <calcappyn/>
  363. <hgaddyn/>
  364. </mech>
  365. </item5>
  366. <list4>
  367. <!-- [TRPID20304] 이전 명세서 목록 -->
  368. <clbs>
  369. <chk/>
  370. <clamym/>
  371. <clamdg/>
  372. <pid/>
  373. <pidsn/>
  374. <ioflag/>
  375. <ordfromdd/>
  376. <ordfildcd/>
  377. <orddeptcd/>
  378. <orddrid/>
  379. <insukind/>
  380. <suppkind/>
  381. <judgendyn/>
  382. <clamstat/>
  383. <delresn/>
  384. <docuseqno/>
  385. <clamkey/>
  386. <diagcd/>
  387. </clbs>
  388. </list4>
  389. <list5>
  390. <clod>
  391. <!-- [TRPID20505] 삭제 처방 조회용 -->
  392. <update/>
  393. <rowstat/>
  394. <spcljudgyn/>
  395. <matractflag/>
  396. <payflag/>
  397. <seqno/>
  398. <adjtresncd/>
  399. <edilnno/>
  400. <ediitem1/>
  401. <ediitem2/>
  402. <grupcalcscorcd/>
  403. <snglcalcscorcd/>
  404. <edicd/>
  405. <hngnm/>
  406. <edicdflag/>
  407. <ediunitcost/>
  408. <edidrugqty/>
  409. <tims/>
  410. <dayno/>
  411. <ediamt/>
  412. <cnfmcd/>
  413. <lnunitspclspecyn/>
  414. <orddd/>
  415. <ordnm/>
  416. <lastupdtdt/>
  417. </clod>
  418. </list5>
  419. <list6>
  420. <delclod>
  421. <!-- 처방휴지통: 삭제된 처방 -->
  422. <spcljudgyn/>
  423. <seqno/>
  424. <grupsnglflag/>
  425. <grupseqno/>
  426. <rowstat/>
  427. <initlnno/>
  428. <edilnno/>
  429. <ediitem1/>
  430. <ediitem2/>
  431. <orddd/>
  432. <grupcalcscorcd/>
  433. <matractflag/>
  434. <snglcalcscorcd/>
  435. <basecd/>
  436. <estmcls/>
  437. <estmmncd/>
  438. <estmcd/>
  439. <hosinresncd/>
  440. <hngnm/>
  441. <payflag/>
  442. <ediunitcost/>
  443. <edidrugqty/>
  444. <tims/>
  445. <daydrugqty/>
  446. <dayno/>
  447. <ediamt/>
  448. <cnfmcd/>
  449. <lnunitspclspecyn/>
  450. <toot/>
  451. <adjtresncd/>
  452. <orddeptcd/>
  453. <orddrid/>
  454. <execdt/>
  455. <edihospaddamt/>
  456. <ediaddamt/>
  457. <paytotamt/>
  458. <ownbamt/>
  459. <clamamt/>
  460. <choiordamt/>
  461. <edihospaddtotamt/>
  462. <ediaddtotamt/>
  463. <choiordtotamt/>
  464. <totordamt/>
  465. <ownbtotamt/>
  466. <ordnm/>
  467. <edicdflag/>
  468. <item/>
  469. <unitcost/>
  470. <drugqty/>
  471. <totdrugqty/>
  472. <amt/>
  473. <baserlapnt/>
  474. <baseaddrlapnt/>
  475. <pntunitcost/>
  476. <updtdd/>
  477. <ordfromdd/>
  478. <ordtodd/>
  479. <ediitem/>
  480. <edicd/>
  481. <rcptunitcost/>
  482. <prcpflag/>
  483. <rcptcalcamt/>
  484. <reductamt/>
  485. <estmcdnm/>
  486. <pynpy1/>
  487. <earncls1/>
  488. <earncls2/>
  489. <earncls3/>
  490. <mechfromdd/>
  491. <mechtodd/>
  492. <calcappyn/>
  493. </delclod>
  494. </list6>
  495. <list8>
  496. <!-- 급여구분별 전체조회시 사용 : 조회용도 -->
  497. <clod/>
  498. </list8>
  499. <!-- SPPMC02500_환자조회 화면에서 선택된 검색결과를 받는 경로임 -->
  500. <patinfo>
  501. <patinfolist/>
  502. </patinfo>
  503. <popupendflag/>
  504. <ordddlist>
  505. <list/>
  506. </ordddlist>
  507. <item6>
  508. <essc/>
  509. </item6>
  510. <prtlhislist/>
  511. </main>
  512. <send>
  513. <item1>
  514. <clbs>
  515. <clamym/>
  516. <clamdg/>
  517. <pid/>
  518. <pidsn/>
  519. <judgno/>
  520. <workflag/>
  521. <docudelresncd/>
  522. <adjtresndesc/>
  523. </clbs>
  524. </item1>
  525. <item2>
  526. <!-- [TRPID20302] 조합명칭을 검색하려는 조합기호 조건 -->
  527. <incd>
  528. <insucd/>
  529. <ordfromdd/>
  530. </incd>
  531. </item2>
  532. <item3>
  533. <!-- CLSP 테이블에 특정내역 MX999로 저장되는 심사자메모, EDI청구메모를 설정 -->
  534. <judgmemo/>
  535. <edimemo/>
  536. <lnunitmemo/>
  537. <delclsp>
  538. <delmemo/>
  539. </delclsp>
  540. </item3>
  541. <item4>
  542. <endclbs>
  543. <clamym/>
  544. <clamdg/>
  545. <pid/>
  546. <pidsn/>
  547. <judgendyn/>
  548. <suppkind/>
  549. <insukind/>
  550. <ordtodd/>
  551. <rowstat/>
  552. </endclbs>
  553. <nextclbs>
  554. <clamym/>
  555. <judgno/>
  556. </nextclbs>
  557. </item4>
  558. <list1>
  559. <cldi/>
  560. </list1>
  561. <list2>
  562. <clod/>
  563. </list2>
  564. <list3>
  565. <clsp/>
  566. </list3>
  567. <list4>
  568. <pid/>
  569. <clamym/>
  570. <allordfild/>
  571. <ordfildcd/>
  572. <ioflag/>
  573. <refterm/>
  574. <fromdd/>
  575. <todd/>
  576. <clamdg/>
  577. <pidsn/>
  578. </list4>
  579. <item5>
  580. <!-- [TRPID20303] 처방 내역으로 조회하려는 그룹,싱글,EDI코드 조건 -->
  581. <mech>
  582. <mode/>
  583. <insukind/>
  584. <suppkind/>
  585. <orddeptcd/>
  586. <orddrid/>
  587. <indd/>
  588. <ordfromdd/>
  589. <ordtodd/>
  590. <grupcalcscorcd/>
  591. <snglcalcscorcd/>
  592. <basecd/>
  593. <estmmncd/>
  594. <drugqty/>
  595. <tims/>
  596. <dayno/>
  597. <adjtresncd/>
  598. <undersixageyn/>
  599. <hosinresncd/>
  600. <mechage/>
  601. <payflag/>
  602. <clbsordfromdd/>
  603. <ioflag/>
  604. <clamflagcd/>
  605. <unitcost/>
  606. <unitcostupdateyn/>
  607. <edidrugqty/>
  608. <edidayno/>
  609. <ediupdateyn/>
  610. </mech>
  611. </item5>
  612. <list7>
  613. <clop/>
  614. </list7>
  615. <item6>
  616. <essc>
  617. <esscclamym/>
  618. <esscclamdg/>
  619. <esscpid/>
  620. <esscpidsn/>
  621. </essc>
  622. </item6>
  623. <item7>
  624. <delclso>
  625. <clamym/>
  626. <clamdg/>
  627. <pid/>
  628. <pidsn/>
  629. <workflag/>
  630. </delclso>
  631. <clso>
  632. <clamym/>
  633. <spclcd/>
  634. <mpsno/>
  635. <calcscorcd/>
  636. <edilnno/>
  637. <spclspec/>
  638. </clso>
  639. </item7>
  640. <item8>
  641. <pifhiunc>
  642. <!-- 재청구 반송부제기사유-->
  643. <abdrresncd/>
  644. <!-- 재청구 차액발생사유-->
  645. <chgamtresncd/>
  646. </pifhiunc>
  647. </item8>
  648. <item9>
  649. <copylist>
  650. <orgclamym/>
  651. <orgclamdg/>
  652. <orgpid/>
  653. <orgpidsn/>
  654. <targetclamym/>
  655. <targetclamdg/>
  656. <targetpid/>
  657. <targetpidsn/>
  658. <mode/>
  659. </copylist>
  660. </item9>
  661. <listval>
  662. <uuee>
  663. <flag/>
  664. <scrnid/>
  665. <compsnm/>
  666. <compscnts/>
  667. <compsrefcnts/>
  668. <compssizecnts/>
  669. </uuee>
  670. </listval>
  671. <srchdata>
  672. <pid/>
  673. </srchdata>
  674. <chksuppkindflag>
  675. <cond>
  676. <diagcd/>
  677. <spclcd/>
  678. <ioflag/>
  679. <ordfromdd/>
  680. <clamym/>
  681. <clamdg/>
  682. <pidsn/>
  683. <insukindcd/>
  684. <pid/>
  685. </cond>
  686. </chksuppkindflag>
  687. </send>
  688. <init>
  689. <!--<P0008list/>환자보험유형(사용x)-->
  690. <!--<P0010list/>보조유형코드(사용x)-->
  691. <!-- 진료결과(보험) -->
  692. <P0110list/>
  693. <!-- 진료결과(산재) -->
  694. <P0297list/>
  695. <!-- 특정코드 -->
  696. <P0117list/>
  697. <!--조정사유코드 -->
  698. <P0127list>
  699. <P0127>
  700. <cdid/>
  701. <cdnm>조정사유</cdnm>
  702. </P0127>
  703. </P0127list>
  704. <!-- 표준코드구분(처방Grid사용x) -->
  705. <P0131list/>
  706. <!-- 심사완료여부 -->
  707. <P0151list/>
  708. <!-- 진료분야코드 -->
  709. <P0291list/>
  710. <!-- 진료과목별 코드 -->
  711. <P0322list/>
  712. <!-- 공상구분코드 -->
  713. <P0236list/>
  714. <!-- 명세서삭제사유코드 -->
  715. <P0465list>
  716. <P0465>
  717. <cdid/>
  718. <cdnm>삭제사유</cdnm>
  719. </P0465>
  720. </P0465list>
  721. <!-- 반송부제기사유코드 -->
  722. <P0466list>
  723. <P0466>
  724. <cdid/>
  725. <cdnm>부제기사유</cdnm>
  726. </P0466>
  727. </P0466list>
  728. <!-- 청구구분코드 -->
  729. <P0155list/>
  730. <!-- 본인부담코드 -->
  731. <P0365list>
  732. <P0365>
  733. <cdid/>
  734. <cdnm/>
  735. </P0365>
  736. </P0365list>
  737. <!-- 의료급여종별구분 -->
  738. <P0261list>
  739. <P0261>
  740. <cdid/>
  741. <cdnm/>
  742. </P0261>
  743. </P0261list>
  744. <orddeptcd>
  745. <orddeptcdlist>
  746. <cd/>
  747. <nm/>
  748. </orddeptcdlist>
  749. </orddeptcd>
  750. <!-- 주치의 -->
  751. <orddrid>
  752. <orddridlist>
  753. <cd/>
  754. <nm/>
  755. <dp/>
  756. <sp/>
  757. </orddridlist>
  758. </orddrid>
  759. <item3>
  760. <judgidyn/>
  761. </item3>
  762. <diagcd>
  763. <diagcdlist>
  764. <diagcd/>
  765. <diagnm/>
  766. </diagcdlist>
  767. </diagcd>
  768. <!-- 수정사유 -->
  769. <P0491list>
  770. <P0491>
  771. <cdid/>
  772. <cdnm>자격수정사유</cdnm>
  773. </P0491>
  774. </P0491list>
  775. <PK221list>
  776. <PK221>
  777. <cdid/>
  778. <cdnm/>
  779. </PK221>
  780. </PK221list>
  781. </init>
  782. <hidden>
  783. <listval>
  784. <uuee>
  785. <scrnid/>
  786. <compsnm/>
  787. <compscnts/>
  788. <compsrefcnts/>
  789. <compssizecnts/>
  790. </uuee>
  791. </listval>
  792. <item1>
  793. <!-- 인적사항 중 조회 후 계산하여 보여지는 output 및 combo -->
  794. <clbs>
  795. <srchrslt/>
  796. <patsupprate/>
  797. </clbs>
  798. <initclbs>
  799. <clbs/>
  800. </initclbs>
  801. <initmemo>
  802. <memo/>
  803. </initmemo>
  804. </item1>
  805. <list1>
  806. <cldi>
  807. <oldseq/>
  808. <olddiagcd/>
  809. <olddiagnm/>
  810. <oldengnm/>
  811. <oldrowstat/>
  812. <oldordfromdd/>
  813. </cldi>
  814. </list1>
  815. <list2>
  816. <clodsrch>
  817. <!-- 처방 조회부 Radio 선택 또는 Input 입력값 -->
  818. <selectedRdoPay/>
  819. <selectedRdoItem/>
  820. </clodsrch>
  821. <cloditem1>
  822. <!-- 처방 목록에 해당하는 항목이 있는 경우 Radio item을 굵게 표시 -->
  823. <ediitem1_all/>
  824. <ediitem1_01/>
  825. <!-- <ediitem1_02/>-->
  826. <ediitem1_03/>
  827. <ediitem1_04/>
  828. <ediitem1_05/>
  829. <ediitem1_06/>
  830. <ediitem1_07/>
  831. <ediitem1_08/>
  832. <ediitem1_09/>
  833. <ediitem1_10/>
  834. <ediitem1_SS/>
  835. </cloditem1>
  836. <clodstat>
  837. <cmbAdjtresncd/>
  838. </clodstat>
  839. </list2>
  840. <list3>
  841. <!-- 특정내역 선택에 따라 보여지는 기재형식 Output -->
  842. <msgspclformat/>
  843. <prespclcd/>
  844. <prespclformat/>
  845. <prerowstatus/>
  846. <selectedUnitFlag/>
  847. </list3>
  848. <item5>
  849. <clod>
  850. <adjtresncd/>
  851. <orddd/>
  852. <ordfromdd/>
  853. <ordtodd/>
  854. <updtdd/>
  855. <!-- 처방에서 그룹, 싱글, EDI코드 입력이 변경되었는지 비교하기 위한 값 -->
  856. <grupcalcscorcd/>
  857. <snglcalcscorcd/>
  858. <basecd/>
  859. <!-- 처방에서 투여량, 횟수, 일수 입력이 변경되었는지 비교하기 위한 값 -->
  860. <estmmncd/>
  861. <drugqty/>
  862. <tims/>
  863. <dayno/>
  864. <edidrugqty/>
  865. <edidayno/>
  866. <unitcost/>
  867. <rowstatus/>
  868. </clod>
  869. </item5>
  870. <list4>
  871. <clbs/>
  872. </list4>
  873. <list7>
  874. <clop>
  875. <selectedRdoPay/>
  876. <oldclopdd/>
  877. <oldclopno/>
  878. <oldrowstatus/>
  879. <oldedicd/>
  880. <oldsnglcalcscorcd/>
  881. <oldedidrugqty/>
  882. <olddrugtims/>
  883. <oldedidrugdayno/>
  884. </clop>
  885. </list7>
  886. <item6>
  887. <docudelresncd/>
  888. <!-- 명세서삭제사유-->
  889. <abdrresncd/>
  890. <!-- 반송부제기사유-->
  891. </item6>
  892. <initclodlist>
  893. <list2>
  894. <clod/>
  895. </list2>
  896. </initclodlist>
  897. <popupmenu>
  898. <gridcldi>
  899. <item>
  900. <name>상병순서 위로</name>
  901. <func>fDiagSeqUp</func>
  902. </item>
  903. <item>
  904. <name>상병순서 아래로</name>
  905. <func>fDiagSeqDown</func>
  906. </item>
  907. <item>
  908. <name>-</name>
  909. <func/>
  910. </item>
  911. <item>
  912. <name>행 삽입</name>
  913. <func>fDiagGridInsertRow</func>
  914. </item>
  915. <item>
  916. <name>행 추가</name>
  917. <func>fDiagGridAddRow</func>
  918. </item>
  919. <item>
  920. <name>행 추가(5줄)</name>
  921. <func>fDiagGridInsertRowMulti</func>
  922. </item>
  923. <item>
  924. <name>행 삭제</name>
  925. <func>fDiagGridDeleteRow</func>
  926. </item>
  927. <!-- 2008-12-10 행 삭제시 rowHidden하므로 삭제취소 불필요하여 주석처리함.
  928. <delitem>
  929. <name>삭제 취소</name>
  930. <func>fDiagGridDeleteCancel</func>
  931. </delitem>
  932. -->
  933. </gridcldi>
  934. <gridclod>
  935. <item>
  936. <name>행 추가</name>
  937. <func>fOrderGridInsertRow</func>
  938. </item>
  939. <!-- 20100209 삭제 (버튼기능 추가)
  940. <item>
  941. <name>행 복사</name>
  942. <func>fOrderGridCopyRow</func>
  943. </item>
  944. -->
  945. <item>
  946. <name>행 삭제</name>
  947. <func>fOrderGridDeleteRow</func>
  948. </item>
  949. <item>
  950. <name>-</name>
  951. <func/>
  952. </item>
  953. <item>
  954. <name>1회량 일괄수정</name>
  955. <func>fAllSetDrugqtyCol</func>
  956. </item>
  957. <item>
  958. <name>횟수 일괄수정</name>
  959. <func>fAllSetTimsCol</func>
  960. </item>
  961. <item>
  962. <name>일수 일괄수정</name>
  963. <func>fAllSetDaynoCol</func>
  964. </item>
  965. <item>
  966. <name>-</name>
  967. <func/>
  968. </item>
  969. <!-- 20100209 삭제
  970. <item>
  971. <name>수가코드 복사</name>
  972. <func>fSnglGridCopyCol</func>
  973. </item>
  974. <item>
  975. <name>EDI코드 복사</name>
  976. <func>fEdiGridCopyCol</func>
  977. </item>
  978. <item>
  979. <name>처방명 복사</name>
  980. <func>fHngnmGridCopyCol</func>
  981. </item>
  982. <item>
  983. <name>-</name>
  984. <func/>
  985. </item>
  986. -->
  987. <item>
  988. <name>처방주석입력</name>
  989. <func>fOrderGridInsertCmt</func>
  990. </item>
  991. <item>
  992. <name>확인코드입력</name>
  993. <func>fOrderGridInsertCnfmCd</func>
  994. </item>
  995. <item>
  996. <name>일괄처방주석입력</name>
  997. <func>fOrderGridInsertAllCmt</func>
  998. </item>
  999. <item>
  1000. <name>-</name>
  1001. <func/>
  1002. </item>
  1003. <item>
  1004. <name>결과조회</name>
  1005. <func>fOrderRsltSrch</func>
  1006. </item>
  1007. <item>
  1008. <name>보험인정기준</name>
  1009. <func>fOrderInsuRcogBase</func>
  1010. </item>
  1011. <item>
  1012. <name>수가조회</name>
  1013. <func>fOrderCalcScorSrch</func>
  1014. </item>
  1015. <item>
  1016. <name>약품편람</name>
  1017. <func>fOrderDrugHBook</func>
  1018. </item>
  1019. <item>
  1020. <name>상세계산내역</name>
  1021. <func>fGetOsclClamData</func>
  1022. </item>
  1023. <item>
  1024. <name>-</name>
  1025. <func/>
  1026. </item>
  1027. <item>
  1028. <name>급비변경</name>
  1029. <func>fSetPayflag</func>
  1030. </item>
  1031. <item>
  1032. <name>-</name>
  1033. <func/>
  1034. </item>
  1035. <item>
  1036. <name>처방별환자조회(계산)_수가코드</name>
  1037. <func>fOpenSMPIS00500DetailSnglCD</func>
  1038. </item>
  1039. <item>
  1040. <name>처방별환자조회(계산)_EDI코드</name>
  1041. <func>fOpenSMPIS00500DetailEdicd</func>
  1042. </item>
  1043. <item>
  1044. <name>처방별환자조회(청구/삭감)</name>
  1045. <func>fOpenSMPIS00600Detail</func>
  1046. </item>
  1047. <!-- JHP, 추가 20090817 메세지작성 시작-->
  1048. <item>
  1049. <name>-</name>
  1050. <func/>
  1051. </item>
  1052. <item>
  1053. <name>환자기준 메세지작성</name>
  1054. <func>fPatJudgPatMsgTrsm</func>
  1055. </item>
  1056. <item>
  1057. <name>처방기준 메세지작성</name>
  1058. <func>fOrderJudgPatMsgTrsm</func>
  1059. </item>
  1060. <item>
  1061. <name>환자 전체메세지 간편보기</name>
  1062. <func>fJudgPatMsgTrsmRef</func>
  1063. </item>
  1064. <item>
  1065. <name>처방사유조회</name>
  1066. <func>fPrcpResnRef</func>
  1067. </item>
  1068. <!-- JHP, 추가 20090817 메세지작성 끝-->
  1069. <delitem>
  1070. <name>삭제 취소</name>
  1071. <func>fOrderGridDeleteCancel</func>
  1072. </delitem>
  1073. <inititem>
  1074. <name>처방 추가</name>
  1075. <func>fOrderGridAddRow</func>
  1076. </inititem>
  1077. </gridclod>
  1078. <gridclsp>
  1079. <item>
  1080. <name>행 추가</name>
  1081. <func>fSpclGridInsertRow</func>
  1082. </item>
  1083. <item>
  1084. <name>행 삭제</name>
  1085. <func>fSpclGridDeleteRow</func>
  1086. </item>
  1087. <item>
  1088. <name>-</name>
  1089. <func/>
  1090. </item>
  1091. <!-- <item>
  1092. <name>특정내역 반복</name>
  1093. <func>fRepeatSpclSpec</func>
  1094. </item>
  1095. -->
  1096. </gridclsp>
  1097. <gridclop>
  1098. <inititem>
  1099. <name>원외처방 추가</name>
  1100. <func>fOutOrderGridInsertRow</func>
  1101. </inititem>
  1102. <item>
  1103. <name>처방주석입력</name>
  1104. <func>fCallClsoSpclSpec</func>
  1105. </item>
  1106. <item>
  1107. <name>일괄처방주석입력</name>
  1108. <func>fCallClsoSpclAllSpec</func>
  1109. </item>
  1110. <item>
  1111. <name>-</name>
  1112. <func/>
  1113. </item>
  1114. <item>
  1115. <name>행 추가</name>
  1116. <func>fOutOrderGridInsertRow</func>
  1117. </item>
  1118. <item>
  1119. <name>행 복사</name>
  1120. <func>fOutOrderGridCopyRow</func>
  1121. </item>
  1122. <item>
  1123. <name>-</name>
  1124. <func/>
  1125. </item>
  1126. <item>
  1127. <name>행 삭제</name>
  1128. <func>fClopGridDeleteRow</func>
  1129. </item>
  1130. <item>
  1131. <name>교부번호 전체삭제</name>
  1132. <func>fClopGridAllDeleteRow</func>
  1133. </item>
  1134. <item>
  1135. <name>-</name>
  1136. <func/>
  1137. </item>
  1138. <item>
  1139. <name>수가조회</name>
  1140. <func>fOrderCalcScorSrch_clop</func>
  1141. </item>
  1142. <item>
  1143. <name>약품편람</name>
  1144. <func>fOrderDrugHBook_clop</func>
  1145. </item>
  1146. </gridclop>
  1147. </popupmenu>
  1148. <calendar>
  1149. <year/>
  1150. <month/>
  1151. <!-- weeklist : 진료달력을 구성하는 날짜 목록 -->
  1152. <weeklist>
  1153. <list/>
  1154. </weeklist>
  1155. <!-- ordddlist : 해당년월에 진료일자 목록 검색 조건-->
  1156. <ordddlist>
  1157. <pid/>
  1158. <fromdd/>
  1159. <todd/>
  1160. <workflag/>
  1161. </ordddlist>
  1162. </calendar>
  1163. <smpic00200>
  1164. <judgsrch>
  1165. <con1_dd/>
  1166. <con2_gsflag/>
  1167. <con3_search1/>
  1168. <con4_search2/>
  1169. <con5_insu/>
  1170. <con6_calcscorcd/>
  1171. <con7_todd/>
  1172. <con8_instcd/>
  1173. <con9_lastupdtdt/>
  1174. <con10_preord_chk/>
  1175. <con11_edicd/>
  1176. <con_ordinptflag/>
  1177. </judgsrch>
  1178. <rslt>
  1179. <ediitem1/>
  1180. <ediitem2/>
  1181. <grupcalcscorcd/>
  1182. <snglcalcscorcd/>
  1183. <basecd/>
  1184. <hngnm/>
  1185. <edicdflag/>
  1186. <ediunitcost/>
  1187. <ordnm/>
  1188. </rslt>
  1189. </smpic00200>
  1190. <smpid20400>
  1191. <cond>
  1192. <!-- "대상조회" Btn SMPID20400_외래사후심사대상자조회 에 전달하기 위한 조건 값 -->
  1193. <pid/>
  1194. </cond>
  1195. <rslt>
  1196. <selectedRow/>
  1197. <clamym/>
  1198. <clamdg/>
  1199. <pid/>
  1200. <pidsn/>
  1201. <clamkey/>
  1202. <oldPid/>
  1203. <cutprcpyn/>
  1204. <judgendyn/>
  1205. <tootpopupyn/>
  1206. <ordfildcd/>
  1207. <judgenddd/>
  1208. </rslt>
  1209. </smpid20400>
  1210. <smpid20300>
  1211. <cond>
  1212. <!-- "이전 명세서 목록" Grid에서 선택한 명세서의 청구키를 SMPID20300_입원사후심사관리 에 전달하기 위한 조건 값 -->
  1213. <clamym/>
  1214. <clamdg/>
  1215. <pid/>
  1216. <pidsn/>
  1217. <ioflag/>
  1218. <workflag/>
  1219. </cond>
  1220. </smpid20300>
  1221. <smpid20500>
  1222. <cond>
  1223. <!-- "이전 명세서 목록" Grid에서 선택한 명세서의 청구키를 SMPID20500_외래사후심사관리 에 전달하기 위한 조건 값 -->
  1224. <clamym/>
  1225. <clamdg/>
  1226. <pid/>
  1227. <pidsn/>
  1228. <ioflag/>
  1229. <workflag/>
  1230. </cond>
  1231. </smpid20500>
  1232. <sppid21300>
  1233. <cond>
  1234. <clamym/>
  1235. <clamdg/>
  1236. <pid/>
  1237. <pidsn/>
  1238. <insukind/>
  1239. <suppkind/>
  1240. <ordfromdd/>
  1241. </cond>
  1242. </sppid21300>
  1243. <sppid21400>
  1244. <cond>
  1245. <pid/>
  1246. <orddeptcd/>
  1247. <orddd/>
  1248. <chk/>
  1249. </cond>
  1250. </sppid21400>
  1251. <!-- <sppid21600>
  1252. <cond>
  1253. <pid/>
  1254. <indd/>
  1255. <cretno/>
  1256. <fromdd/>
  1257. <todd/>
  1258. <calcscorcd/>
  1259. <grupsnglflag/>
  1260. <insukindcd/>
  1261. <insukind/>
  1262. <suppkindcd/>
  1263. <suppkind/>
  1264. <ownbrate/>
  1265. </cond>
  1266. </sppid21600> -->
  1267. <sppid21700>
  1268. <cond>
  1269. <clamym/>
  1270. <clamdg/>
  1271. <pid/>
  1272. <pidsn/>
  1273. <workflag/>
  1274. <ioflag/>
  1275. </cond>
  1276. </sppid21700>
  1277. <sppid22100>
  1278. <cond>
  1279. <pid/>
  1280. <instcd/>
  1281. <clamkey/>
  1282. <clamcretdd/>
  1283. <patnm/>
  1284. <gender/>
  1285. <ioflag/>
  1286. <stsioflag/>
  1287. <choicdsrch/>
  1288. <calcscorcd/>
  1289. <hngnm/>
  1290. <scrhdate/>
  1291. <fromdd/>
  1292. <todd/>
  1293. <insukind/>
  1294. <suppkind/>
  1295. <clopyn/>
  1296. </cond>
  1297. </sppid22100>
  1298. <smpiz00100>
  1299. <cond>
  1300. <!-- "상병이력" Btn에 따라 SMPIZ00100_외래입원상병이력조회 에 전달하기 위한 조건 값 -->
  1301. <pid/>
  1302. <ordfromdd/>
  1303. <ordtodd/>
  1304. <orddd/>
  1305. <ioflag/>
  1306. <deptcd/>
  1307. </cond>
  1308. </smpiz00100>
  1309. <sppiz00200>
  1310. <cond>
  1311. <clsp>
  1312. <spclcd/>
  1313. <seqno/>
  1314. <spclspec/>
  1315. <rowstat/>
  1316. </clsp>
  1317. </cond>
  1318. <rslt>
  1319. <clsp>
  1320. <unitflag/>
  1321. <spclcd/>
  1322. <seqno/>
  1323. <calcscorcd/>
  1324. <spclspec/>
  1325. <rowstat/>
  1326. </clsp>
  1327. </rslt>
  1328. </sppiz00200>
  1329. <sppiz00300>
  1330. <cond>
  1331. <pid/>
  1332. <orddeptcd/>
  1333. <ioflag/>
  1334. <refterm/>
  1335. <anofildinclyn/>
  1336. <fromdd/>
  1337. <todd/>
  1338. <clamym/>
  1339. <clamdg/>
  1340. <pidsn/>
  1341. </cond>
  1342. <rslt>
  1343. <choimemo/>
  1344. <destRef/>
  1345. <edicd/>
  1346. </rslt>
  1347. </sppiz00300>
  1348. <sppiz00400>
  1349. <cond>
  1350. <!-- 상병코드 Grid '상병코드' 컬럼 에서 SPPIZ00400_상병코드조회 에 전달하기 위한 조건 값 -->
  1351. <basedd/>
  1352. <diagcd/>
  1353. <diagnm/>
  1354. <selectedrdodiagkind/>
  1355. </cond>
  1356. <rslt>
  1357. <diagcd/>
  1358. <diaghngnm/>
  1359. <diagengnm/>
  1360. <!--
  1361. <rowstat/>
  1362. <diagseq/>
  1363. <diagcd/>
  1364. <diagnm/>
  1365. <diagkindcd/>
  1366. <clamdeptcd/>
  1367. <ordfromdd/>
  1368. <toot/>
  1369. <estmspclcd/>
  1370. <wundresncd/>
  1371. -->
  1372. </rslt>
  1373. </sppiz00400>
  1374. <sppiz00500>
  1375. <cond>
  1376. <!-- 처방 Grid 'T' 컬럼 / 특정내역 Grid '특정코드' 컬럼 에서 SPPIZ00500_특정내역상세관리 에 전달하기 위한 조건 값 -->
  1377. <flag/>
  1378. <snglcalcscorcd/>
  1379. <clodseqno/>
  1380. <edilnno/>
  1381. <spclcd/>
  1382. <detldesc/>
  1383. <spclspec/>
  1384. <spclformat/>
  1385. <rownum/>
  1386. <cdnm/>
  1387. <unitflag/>
  1388. </cond>
  1389. <rslt>
  1390. <list>
  1391. <flag/>
  1392. <rownum/>
  1393. <clodseqno/>
  1394. <edilnno/>
  1395. <spclcd/>
  1396. <cdnm/>
  1397. <spclspec/>
  1398. <spclformat/>
  1399. <detldesc/>
  1400. <snglcalcscorcd/>
  1401. <oldspclcd/>
  1402. <oldspclspec/>
  1403. </list>
  1404. </rslt>
  1405. </sppiz00500>
  1406. <sppiz01700>
  1407. <cond>
  1408. <!-- 처방 Grid 'T' 컬럼 / 특정내역 Grid '특정코드' 컬럼 에서 SPPIZ01700_원외처방특정내역상세관리 에 전달하기 위한 조건 값 -->
  1409. <flag/>
  1410. <snglcalcscorcd/>
  1411. <clopdd/>
  1412. <clopno/>
  1413. <clodseqno/>
  1414. <edilnno/>
  1415. <spclcd/>
  1416. <detldesc/>
  1417. <spclspec/>
  1418. <spclformat/>
  1419. <rownum/>
  1420. <cdnm/>
  1421. <unitflag/>
  1422. </cond>
  1423. <rslt>
  1424. <list>
  1425. <flag/>
  1426. <rownum/>
  1427. <clodseqno/>
  1428. <edilnno/>
  1429. <spclcd/>
  1430. <cdnm/>
  1431. <spclspec/>
  1432. <spclformat/>
  1433. <detldesc/>
  1434. <snglcalcscorcd/>
  1435. <oldspclcd/>
  1436. <oldspclspec/>
  1437. </list>
  1438. </rslt>
  1439. </sppiz01700>
  1440. <sppiz00600>
  1441. <cond>
  1442. <!-- 상병 Grid '치식' 컬럼 에서 SPPIZ00600_상병및처방별치식 에 전달하기 위한 조건 값 -->
  1443. <clamym/>
  1444. <clamdg/>
  1445. <pid/>
  1446. <pidsn/>
  1447. <indd/>
  1448. <cretno/>
  1449. <toot/>
  1450. <flag/>
  1451. <list/>
  1452. <popyn/>
  1453. </cond>
  1454. <rslt>
  1455. <list/>
  1456. </rslt>
  1457. </sppiz00600>
  1458. <sppiz00700>
  1459. <cond>
  1460. <judgrid/>
  1461. <memoflag/>
  1462. <memocls/>
  1463. <ediitem1/>
  1464. </cond>
  1465. <rslt>
  1466. <memocd/>
  1467. <memo/>
  1468. </rslt>
  1469. </sppiz00700>
  1470. <sppiz00800>
  1471. <cond>
  1472. <!-- 처방 Grid '산정의미/산정코드' 컬럼 에서 SPPIZ00800_산정코드조회.xrw에 전달하기 위한 조건 값
  1473. <estmcls/>
  1474. <estmmncd/>
  1475. -->
  1476. <insukind/>
  1477. <estmcls/>
  1478. <estmmncd/>
  1479. <todd/>
  1480. </cond>
  1481. <rslt>
  1482. <clcd>
  1483. <estmcls/>
  1484. <estmmncd/>
  1485. <estmcd/>
  1486. <estmcdnm/>
  1487. <addmthd/>
  1488. <pnt/>
  1489. <amt/>
  1490. <rate/>
  1491. <todd/>
  1492. </clcd>
  1493. </rslt>
  1494. </sppiz00800>
  1495. <sppiz01000>
  1496. <cond>
  1497. <cdcls/>
  1498. <cdid/>
  1499. </cond>
  1500. <rslt>
  1501. <cdid/>
  1502. <adjtresndesc/>
  1503. </rslt>
  1504. </sppiz01000>
  1505. <sppiz01100>
  1506. <cond>
  1507. <code/>
  1508. </cond>
  1509. <rslt>
  1510. <code/>
  1511. </rslt>
  1512. </sppiz01100>
  1513. <sppiz01300>
  1514. <cond>
  1515. <pid/>
  1516. <indd/>
  1517. <cretno/>
  1518. </cond>
  1519. </sppiz01300>
  1520. <sppiz01400>
  1521. <cond>
  1522. <srchcond/>
  1523. </cond>
  1524. <rslt>
  1525. <spclcd/>
  1526. <cdnm/>
  1527. <spclspec/>
  1528. <spclformat/>
  1529. <detldesc/>
  1530. </rslt>
  1531. </sppiz01400>
  1532. <sppiz01500>
  1533. <cond>
  1534. <cdid/>
  1535. </cond>
  1536. <rslt>
  1537. <cdid/>
  1538. </rslt>
  1539. </sppiz01500>
  1540. <smpao00300>
  1541. <!-- pam/outordamtmngtweb/xrw/SMPAO00300_외래수납조회.xrw -->
  1542. <cond>
  1543. <pid/>
  1544. <orddeptcd/>
  1545. <insukind/>
  1546. <cond/>
  1547. <fromdd/>
  1548. <todd/>
  1549. <rtnyn/>
  1550. <s_opmi>
  1551. <opmi/>
  1552. </s_opmi>
  1553. <minusyn/>
  1554. <mig_oscl2yn/>
  1555. <togoyn/>
  1556. </cond>
  1557. </smpao00300>
  1558. <smpmc01300>
  1559. <!-- SMPMC01300_특이환자관리 -->
  1560. <cond>
  1561. <srchcond/>
  1562. <autoflag/>
  1563. <pid/>
  1564. <hngnm/>
  1565. <rrgstno1/>
  1566. <rrgstno2/>
  1567. <acptdd/>
  1568. <checkfnexam/>
  1569. </cond>
  1570. <rslt>
  1571. <patspcfyn/>
  1572. </rslt>
  1573. </smpmc01300>
  1574. <sppmb01500>
  1575. <!-- pam\pamcomnweb\xrw\SPPMB01500_보험자기호조회 -->
  1576. <cond>
  1577. <srchcond/>
  1578. <srchcnts/>
  1579. <insuflag/>
  1580. </cond>
  1581. </sppmb01500>
  1582. <sppmc02500>
  1583. <cond>
  1584. <!-- SPPMC02500_환자조회 화면으로 검색조건을 보내는 경로임 -->
  1585. <srchcond/>
  1586. <pid/>
  1587. <hngnm/>
  1588. <rrgstno1/>
  1589. <rrgstno2/>
  1590. </cond>
  1591. </sppmc02500>
  1592. <!-- SPPID22800_재청구차액발생사유관리.xrw -->
  1593. <sppid22800>
  1594. <cond>
  1595. <cdid/>
  1596. </cond>
  1597. <rslt>
  1598. <cdid/>
  1599. </rslt>
  1600. </sppid22800>
  1601. <!-- SMPID22900_동일진료일명세서조회.xrw -->
  1602. <smpid22900>
  1603. <cond>
  1604. <clamym/>
  1605. <clamdg/>
  1606. <pid/>
  1607. <pidsn/>
  1608. <ordym/>
  1609. <judgrid/>
  1610. </cond>
  1611. </smpid22900>
  1612. <!-- SPPID23100_급비변경관리.xrw -->
  1613. <sppid23100>
  1614. <cond>
  1615. <cdid/>
  1616. </cond>
  1617. <rslt>
  1618. <cdid/>
  1619. </rslt>
  1620. </sppid23100>
  1621. <sppmc04500>
  1622. <cond>
  1623. <pid/>
  1624. </cond>
  1625. </sppmc04500>
  1626. <edicheck/>
  1627. <orddddisp>
  1628. <col1/>
  1629. <col2/>
  1630. <col3/>
  1631. <col4/>
  1632. <col5/>
  1633. <col6/>
  1634. <col7/>
  1635. <col8/>
  1636. <col9/>
  1637. <col10/>
  1638. <col11/>
  1639. <col12/>
  1640. <col13/>
  1641. <col14/>
  1642. <col15/>
  1643. <col16/>
  1644. <col17/>
  1645. <col18/>
  1646. <col19/>
  1647. <col20/>
  1648. <col21/>
  1649. <col22/>
  1650. <col23/>
  1651. <col24/>
  1652. <col25/>
  1653. <col26/>
  1654. <col27/>
  1655. <col28/>
  1656. <col29/>
  1657. <col30/>
  1658. <col31/>
  1659. </orddddisp>
  1660. <reselect/>
  1661. <orgjudgendyn/>
  1662. <rarecancermsg>
  1663. <msg/>
  1664. </rarecancermsg>
  1665. <chksuppkindflag/>
  1666. <getvcode>
  1667. <cond>
  1668. <diagcd/>
  1669. <ioflag/>
  1670. <insukind/>
  1671. <suppkind/>
  1672. <ordfromdd/>
  1673. </cond>
  1674. <rslt>
  1675. <vcode/>
  1676. </rslt>
  1677. </getvcode>
  1678. <sppiz01600>
  1679. <cond>
  1680. <calcscorcd/>
  1681. </cond>
  1682. </sppiz01600>
  1683. </hidden>
  1684. <chkJT001>Y</chkJT001>
  1685. </root>
  1686. </instance>
  1687. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  1688. <submission id="TRPID20501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  1689. <submission id="TRPID20302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item2" resultref="/root/main/item2"/>
  1690. <submission id="TRPID20301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  1691. <submission id="TRPID20303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item5" resultref="/root/main/item5"/>
  1692. <submission id="TRPID20304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/list4" resultref="/root/main/list4"/>
  1693. <submission id="TRPID20308" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/smpmc01300/cond" resultref="/root/hidden/smpmc01300"/>
  1694. <submission id="TRPID20309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/item1/clbs/ioflag" resultref="root/hidden/tmp"/>
  1695. <submission id="TRPID20312" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="root/init/diagcd"/>
  1696. <submission id="TRPID20505" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/item1/clbs/clamym" resultref="/root/main/list5"/>
  1697. <submission id="TRPID20507" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main" resultref="/root/send/item4"/>
  1698. <submission id="TRPID20508" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/calendar/ordddlist" resultref="/root/main/ordddlist"/>
  1699. <submission id="TRPID20509" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item6/essc" resultref="/root/main/item6"/>
  1700. <submission id="TRPID20510" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  1701. <submission id="TRPID21602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/listval" resultref="/root/hidden/listval"/>
  1702. <submission id="TXPID20301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/tmp"/>
  1703. <submission id="TXPID20302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item4/endclbs"/>
  1704. <submission id="TXPID20303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/item1/clbs"/>
  1705. <submission id="TXPID20304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/item9/copylist"/>
  1706. <submission id="TXPID21601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/listval" resultref="/root/hidden/listval"/>
  1707. <!-- 2009.08.18, 환자메세지 조회, JHP -->
  1708. <submission id="TRPIZ01903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/msg01" resultref="/root/main/msglist"/>
  1709. <submission id="TRPID20313" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/getvcode/cond" resultref="/root/hidden/getvcode"/>
  1710. <submission id="TXPID20307" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  1711. <submission id="TRPIZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/diag" resultref="/root/main/diaghist01/list01"/>
  1712. <submission id="TRPID20314" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/chksuppkindflag/cond" resultref="/root/hidden/chksuppkindflag"/>
  1713. <script type="javascript" ev:event="xforms-ready">
  1714. <![CDATA[
  1715. ]]>
  1716. </script>
  1717. <script type="javascript" ev:event="xforms-model-construct-done">
  1718. <![CDATA[
  1719. setCloseChildWindow(); // (common.js) open()으로 열려진 상태의 자식창을 닫는다.
  1720. delPatientInfos(); // (common.js) 상단의 환자정보 삭제
  1721. fInitialize(); // 화면을 초기화한다.
  1722. ]]>
  1723. </script>
  1724. <submission id="TRPID20306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/sppiz00400/cond" resultref="/root/hidden/sppiz00400"/>
  1725. <submission id="TRADB01007" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/prtlhislist"/>
  1726. <submission id="TXPID20315" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list3"/>
  1727. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  1728. </model>
  1729. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  1730. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  1731. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  1732. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  1733. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  1734. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  1735. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  1736. <script type="javascript" src="../../../pam/insucomweb/js/PAM.js"/>
  1737. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  1738. <script type="javascript" src="../../../pam/aftjudgweb/js/SMPID20000.js"/>
  1739. <script type="javascript" src="../../../pam/aftjudgweb/js/SMPID20500.js"/>
  1740. <script type="javascript" src="../../../com/commonweb/js/tfHelperAsync.js"/>
  1741. <!-- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/> -->
  1742. <script type="javascript">
  1743. <![CDATA[
  1744. ]]>
  1745. </script>
  1746. </xhtml:head>
  1747. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1191;" style="vertical-align:bottom; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  1748. <group id="grp_biz" style="left:0px; top:13px; width:1195px; height:771px; ">
  1749. <input id="ipt_insdnm" ref="/root/main/item1/clbs/insdnm" class="input_default" navindex="6" imemode="disabled" _auth="R" style="left:859px; top:55px; width:59px; height:19px; text-align:left; ">
  1750. <hint>
  1751. <![CDATA[보험:가입자, 자보:사고일자, 산재: 재해발생일자]]>
  1752. </hint>
  1753. </input>
  1754. <select1 id="cmb_undersixageyn" ref="/root/main/item1/clbs/undersixageyn" class="combo_default" navindex="7" appearance="minimal" _auth="R" style="left:859px; top:80px; width:59px; height:19px; ">
  1755. <choices>
  1756. <item>
  1757. <label>일반</label>
  1758. <value>N</value>
  1759. </item>
  1760. <item>
  1761. <label>6세</label>
  1762. <value>Y</value>
  1763. </item>
  1764. </choices>
  1765. <script type="javascript" ev:event="xforms-value-changed">
  1766. <![CDATA[
  1767. // 6세미만변경될 경우 체크
  1768. fSetUndersixageyn();
  1769. ]]>
  1770. </script>
  1771. </select1>
  1772. <caption id="caption6" class="cell_1" style="left:797px; top:78px; width:61px; height:23px; ">6세미만</caption>
  1773. <input id="ipt_rsvordgubn" ref="/root/main/item1/clbs/rsvordgubn" class="input_default" disabled="false" navindex="5" imemode="disabled" maxlength="3" required="###" _chartype="upper" _auth="R" style="left:770px; top:56px; width:25px; height:19px; text-align:right; ">
  1774. <hint>
  1775. <![CDATA[의료급여 예약검사여부]]>
  1776. </hint>
  1777. <script type="javascript" ev:event="xforms-value-changed">
  1778. <![CDATA[
  1779. var rsvordgubn = model.getValue("/root/main/item1/clbs/rsvordgubn");
  1780. if (rsvordgubn != "N" && rsvordgubn != "Y") {
  1781. messageBox("Y 또는 N를", "C001"); //C001=입력하십시오 !
  1782. model.setFocus("ipt_rsvordgubn");
  1783. model.setValue("/root/main/item1/clbs/rsvordgubn", "N");
  1784. ipt_rsvordgubn.refresh();
  1785. }
  1786. ]]>
  1787. </script>
  1788. </input>
  1789. <input id="input2" ref="/root/main/item1/clbs/direcprcptims" class="input_default" disabled="false" navindex="5" imemode="disabled" maxlength="3" format="###" _auth="R" style="left:743px; top:56px; width:25px; height:19px; text-align:right; ">
  1790. <hint>
  1791. <![CDATA[의료급여 직접조제횟수]]>
  1792. </hint>
  1793. </input>
  1794. <input id="input1" ref="/root/main/item1/clbs/ordtims" class="input_default" disabled="false" navindex="5" imemode="disabled" maxlength="3" format="###" _auth="R" style="left:716px; top:56px; width:25px; height:19px; text-align:right; ">
  1795. <hint>
  1796. <![CDATA[의료급여 진료횟수]]>
  1797. </hint>
  1798. </input>
  1799. <caption id="caption8" class="cell_1" style="left:618px; top:54px; width:96px; height:23px; text-align:left; ">진료/직접/예약</caption>
  1800. <input id="ipt_ordtodd" ref="/root/main/item1/clbs/ordtodd" class="input_default" navindex="5" imemode="disabled" format="yyyy-mm-dd" _auth="R" style="left:549px; top:80px; width:67px; height:19px; text-align:right; "/>
  1801. <input id="ipt_ordfromdd" ref="/root/main/item1/clbs/ordfromdd" class="input_default" navindex="5" imemode="disabled" format="yyyy-mm-dd" _auth="R" style="left:549px; top:55px; width:67px; height:19px; text-align:right; "/>
  1802. <caption id="caption9" class="cell_1" style="left:481px; top:78px; width:67px; height:23px; ">진료종료일</caption>
  1803. <caption id="caption5" class="cell_1" style="left:481px; top:54px; width:67px; height:23px; ">진료개시일</caption>
  1804. <input id="ipt_patrrgstno" ref="/root/main/item1/clbs/patrrgstno" class="input_default" format="999999-9999999" style="left:347px; top:31px; width:92px; height:19px; ">
  1805. <script type="javascript" ev:event="xforms-value-changed">
  1806. <![CDATA[
  1807. // 2008. 05.20. / smartselly / 주민번호 체크 function
  1808. fCheckPidRegNo();
  1809. ]]>
  1810. </script>
  1811. </input>
  1812. <select1 id="cmb_ownbflag" ref="/root/main/item1/clbs/ownbflag" class="combo_default" navindex="7" appearance="minimal" showvalue="true" style="left:215px; top:79px; width:68px; height:19px; ">
  1813. <choices>
  1814. <itemset nodeset="/root/init/P0365list/P0365">
  1815. <label ref="cdnm"/>
  1816. <value ref="cdid"/>
  1817. </itemset>
  1818. </choices>
  1819. </select1>
  1820. <select1 id="cmb_offcharm" ref="/root/main/item1/clbs/offcharm" class="combo_default" disabled="false" navindex="4" scroll="vertical" appearance="minimal" showvalue="true" _auth="R" style="left:215px; top:31px; width:68px; height:19px; ">
  1821. <choices>
  1822. <itemset nodeset="/root/init/P0236list/P0236">
  1823. <label ref="cdnm"/>
  1824. <value ref="cdid"/>
  1825. </itemset>
  1826. </choices>
  1827. </select1>
  1828. <output id="ipt_pidsn" ref="/root/main/item1/clbs/pidsn" class="output_fix" format="####" style="left:124px; top:54px; width:15px; height:19px; ">
  1829. <hint>
  1830. <![CDATA[등록번호순번]]>
  1831. </hint>
  1832. </output>
  1833. <caption id="cap_judgendyn" class="cell_1" style="left:1062px; top:79px; width:55px; height:23px; text-align:left; ">
  1834. <![CDATA[지급보증]]>
  1835. <script type="javascript" ev:event="onmouseover">
  1836. <![CDATA[
  1837. cap_judgendyn.hint = model.getValue("/root/main/item1/clbs/judgendyn");
  1838. cap_judgendyn.refresh();
  1839. ]]>
  1840. </script>
  1841. </caption>
  1842. <caption id="caption7" class="tit_2" style="left:5px; top:10px; width:69px; height:13px; ">인적사항</caption>
  1843. <output id="opt_srchrslt" ref="/root/hidden/item1/clbs/srchrslt" style="left:94px; top:4px; width:318px; height:19px; "/>
  1844. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  1845. <line id="line45" class="line_2" style="x1:0px; y1:52px; x2:1194px; y2:52px; "/>
  1846. <line id="line9" class="line_2" style="x1:0px; y1:76px; x2:1194px; y2:76px; "/>
  1847. <group id="grp_clodhist" style="left:0px; top:106px; width:1194px; height:638px; ">
  1848. <group id="grp_clop" style="left:0px; top:541px; width:1114px; height:96px; ">
  1849. <caption id="cap_clop" class="tit_2" style="left:0px; top:5px; width:69px; height:13px; ">
  1850. <![CDATA[원외처방]]>
  1851. <script type="javascript" ev:event="onclick">
  1852. <![CDATA[
  1853. /*
  1854. if (grp_clop.attribute("top") == "541" || grp_clop.attribute("top") == "541px") { // 원외처방 Grid 축소된 초기 상태임
  1855. grp_clop.attribute("top") = parseInt(cap_clod.attribute("top")) - 5 + 123; // 123 = 처방 Grid 98 + 처방 title 부분간격 25
  1856. grp_clop.attribute("height") = parseInt(grd_clodhist.attribute("height")) + 50 + 71 - 123;
  1857. grd_oprcphist.attribute("height") = parseInt(grp_clop.attribute("height")) - 25;
  1858. grd_clodhist.attribute("height") = "85"; // 처방Grid 타이틀 32 + data 2줄 23*2 + 스크롤 18 + 2 = 98
  1859. } else {
  1860. if (cap_clod.attribute("top") == "228") { // 처방 Grid 초기 상태임
  1861. grd_clodhist.attribute("height") = "270";
  1862. } else { // 처방 Grid 확대된 상태임
  1863. grd_clodhist.attribute("height") = "425";
  1864. }
  1865. grp_clop.attribute("top") = "541";
  1866. grp_clop.attribute("height") = "96";
  1867. grd_oprcphist.attribute("height") = parseInt(grp_clop.attribute("height")) - 25;
  1868. }
  1869. */
  1870. fClopSizeChange("CHANGE"); // 20091210
  1871. // 이전명세서, 처방휴지통, 삭제처방 Group의 컨트롤 크기를 설정한다.
  1872. fSetDelOrdPreDocuSize();
  1873. ]]>
  1874. </script>
  1875. </caption>
  1876. <line id="ln_clop" class="line_1" style="x1:0px; y1:20px; x2:1114px; y2:20px; "/>
  1877. <datagrid id="grd_oprcphist" nodeset="/root/main/list7/clop" scroll="auto" caption="교부일자^교부번호^줄^처방코드^EDI 코드^한글명^급^EDI 단가^1회량^EDI1회량^회^일^EDI일^T^분류기호^분류명칭^처방명^효능중분류^효능소분류^사유^구분^mpsno^oldclopdd^oldclopno^newmpsno^seqno^workflag^clop seqno^spcljudgyn" colsep="^" colwidth="67, 54, 18, 83, 80, 200, 26, 60, 36, 56, 18, 30, 38, 14, 54, 100, 207, 120, 140,38, 27, 52, 43, 77, 20, 60, 60, 100, 100" ellipsis="true" extendlastcol="scroll" mergecells="byrestriccol" rowheader="update" rowheight="40" rowsep="|" tooltip="true" style="left:0px; top:25px; width:1114px; height:71px; ">
  1878. <col ref="clopdd" type="input" format="yyyy-mm-dd" style="vertical-align:top; "/>
  1879. <col ref="clopno" type="input" maxlength="5" style="vertical-align:top; "/>
  1880. <col ref="edilnno"/>
  1881. <col imemode="disabled" ref="snglcalcscorcd" type="input" _chartype="upper"/>
  1882. <col imemode="disabled" ref="edicd" type="input" _chartype="upper"/>
  1883. <col ref="hngnm"/>
  1884. <col disabled="true" ref="payflag" type="combo" style="text-align:center; ">
  1885. <choices>
  1886. <item>
  1887. <label>급</label>
  1888. <value>0</value>
  1889. </item>
  1890. <item>
  1891. <label>100</label>
  1892. <value>1</value>
  1893. </item>
  1894. <item>
  1895. <label>비</label>
  1896. <value>2</value>
  1897. </item>
  1898. </choices>
  1899. </col>
  1900. <col ref="ediunitcost" format="(-)#,###" style="text-align:right; "/>
  1901. <col ref="drugqty" format="#,###.00" maxlength="5.2" style="text-align:right; "/>
  1902. <col ref="edidrugqty" type="input" format="#,###.00" maxlength="5.2" style="text-align:right; background-color:#e5d9ff; "/>
  1903. <col ref="drugtims" type="input" format="##" maxlength="2" style="text-align:right; "/>
  1904. <col ref="drugdayno" format="##" maxlength="4" style="text-align:right; "/>
  1905. <col ref="edidrugdayno" type="input" format="##" maxlength="4" style="text-align:right; "/>
  1906. <col ref="spclspecyn"/>
  1907. <col ref="efcyclscd" style="left:1060px; top:23px; width:54px; height:23px; "/>
  1908. <col ref="efcyclsnm"/>
  1909. <col ref="ordnm"/>
  1910. <col ref="efcynm2"/>
  1911. <col ref="efcynm3" style="left:920px; top:23px; width:140px; height:23px; "/>
  1912. <col ref="adjtresncd"/>
  1913. <col ref="edicdflag"/>
  1914. <col ref="mpsno" visibility="hidden" style="background-color:#c0c0c0; "/>
  1915. <col ref="oldclopdd" visibility="hidden" style="background-color:#c0c0c0; "/>
  1916. <col ref="oldclopno" visibility="hidden" style="background-color:#c0c0c0; "/>
  1917. <col ref="newmpsno" visibility="hidden" style="background-color:#c0c0c0; "/>
  1918. <col ref="seqno" visibility="hidden" style="background-color:#c0c0c0; "/>
  1919. <col ref="workflag" visibility="hidden" style="background-color:#c0c0c0; "/>
  1920. <col ref="clopseqno" visibility="hidden" style="background-color:#c0c0c0; "/>
  1921. <col ref="spcljudgyn" visibility="hidden" style="background-color:#c0c0c0; "/>
  1922. <script type="javascript" ev:event="onendedit">
  1923. <![CDATA[
  1924. fClopOnEndEdit(); // 20100405 function 대체
  1925. /*
  1926. var row = grd_oprcphist.row;
  1927. var col = grd_oprcphist.col;
  1928. var newclopdd = model.getValue("/root/main/list7/clop["+ row +"]/clopdd");
  1929. var newclopno = model.getValue("/root/main/list7/clop["+ row +"]/clopno");
  1930. var curmpsno = model.getValue("/root/main/list7/clop["+ row +"]/mpsno"); // 현재 줄의 조회된 mpsno
  1931. var newmpsno = newclopdd+newclopno;
  1932. if (col == grd_oprcphist.colRef("clopdd")) {
  1933. if (!isValidDateTime(newclopdd)) { // (dateHelper.) 유효한 날짜, 시간 인지 점검
  1934. var preclopdd = model.getValue("/root/hidden/list7/clop/oldclopdd"); // 수정전 data
  1935. model.setValue("/root/main/list7/clop["+ row +"]/clopdd", preclopdd);
  1936. grd_oprcphist.rowstatus(row) = model.getValue("/root/hidden/list7/clop/oldrowstatus");
  1937. } else {
  1938. for (var i = 1; i < grd_oprcphist.rows; i++) {
  1939. var mpsno = model.getValue("/root/main/list7/clop["+ i +"]/mpsno");
  1940. if (curmpsno == mpsno) { // 수정된 row와 처방전 교부번호가 같은 경우
  1941. model.setValue("/root/main/list7/clop["+ i +"]/clopdd", newclopdd);
  1942. model.setValue("/root/main/list7/clop["+ i +"]/newmpsno", newmpsno);
  1943. var oldclopdd = model.getValue("/root/main/list7/clop["+ i +"]/oldclopdd");
  1944. if (oldclopdd != newclopdd) {
  1945. grd_oprcphist.rowstatus(i) = 2;
  1946. }
  1947. }
  1948. }
  1949. // 수정된 원외처방 특정내역이 있는 경우
  1950. var clsoList = instance1.selectSingleNode("/root/send/item7");
  1951. if (clsoList != null) { //root/send/item7/delclso 를 제외해야함
  1952. var clsoNode = clsoList.childNodes;
  1953. for (var j = 1; j <= clsoNode.length; j++) {
  1954. if (instance1.selectSingleNode("/root/send/item7/clso["+ j +"]/mpsno") != null) {
  1955. model.setValue("/root/send/item7/clso["+ j +"]/mpsno", newmpsno);
  1956. }
  1957. }
  1958. }
  1959. }
  1960. }
  1961. else if (col == grd_oprcphist.colRef("clopno")) {
  1962. if (newclopno == "") {
  1963. var preclopno = model.getValue("/root/hidden/list7/clop/oldclopno");
  1964. model.setValue("/root/main/list7/clop["+ row +"]/clopno", preclopno);
  1965. grd_oprcphist.rowstatus(row) = model.getValue("/root/hidden/list7/clop/oldrowstatus");
  1966. } else {
  1967. for (var i = 1; i < grd_oprcphist.rows; i++) {
  1968. var mpsno = model.getValue("/root/main/list7/clop["+ i +"]/mpsno");
  1969. if (curmpsno == mpsno) { // 수정된 row와 처방전 교부번호가 같은 경우
  1970. model.setValue("/root/main/list7/clop["+ i +"]/clopno", newclopno);
  1971. model.setValue("/root/main/list7/clop["+ i +"]/newmpsno", newmpsno);
  1972. var oldclopno = model.getValue("/root/main/list7/clop["+ i +"]/oldclopno");
  1973. if (oldclopno != newclopno) {
  1974. grd_oprcphist.rowstatus(i) = 2;
  1975. }
  1976. }
  1977. }
  1978. // 수정된 원외처방 특정내역이 있는 경우
  1979. var clsoList = instance1.selectSingleNode("/root/send/item7");
  1980. if (clsoList != null) { //root/send/item7/delclso 를 제외해야함
  1981. var clsoNode = clsoList.childNodes;
  1982. for (var j = 1; j <= clsoNode.length; j++) {
  1983. if (instance1.selectSingleNode("/root/send/item7/clso["+ j +"]/mpsno") != null) {
  1984. model.setValue("/root/send/item7/clso["+ j +"]/mpsno", newmpsno);
  1985. }
  1986. }
  1987. }
  1988. }
  1989. }
  1990. grd_oprcphist.refresh();
  1991. */
  1992. ]]>
  1993. </script>
  1994. <script type="javascript" ev:event="onstartedit">
  1995. <![CDATA[
  1996. var row = grd_oprcphist.row;
  1997. model.setValue("/root/hidden/list7/clop/oldclopdd", model.getValue("/root/main/list7/clop["+ row +"]/clopdd"));
  1998. model.setValue("/root/hidden/list7/clop/oldclopno", model.getValue("/root/main/list7/clop["+ row +"]/clopno"));
  1999. model.setValue("/root/hidden/list7/clop/oldrowstatus", grd_oprcphist.rowstatus(row));
  2000. model.setValue("/root/hidden/list7/clop/oldsnglcalcscorcd", model.getValue("/root/main/list7/clop["+ row +"]/snglcalcscorcd"));
  2001. model.setValue("/root/hidden/list7/clop/oldedicd", model.getValue("/root/main/list7/clop["+ row +"]/edicd"));
  2002. model.setValue("/root/hidden/list7/clop/oldedidrugqty", model.getValue("/root/main/list7/clop["+ row +"]/edidrugqty"));
  2003. model.setValue("/root/hidden/list7/clop/olddrugtims", model.getValue("/root/main/list7/clop["+ row +"]/drugtims"));
  2004. model.setValue("/root/hidden/list7/clop/oldedidrugdayno", model.getValue("/root/main/list7/clop["+ row +"]/edidrugdayno"));
  2005. ]]>
  2006. </script>
  2007. <script type="javascript" ev:event="ondblclick">
  2008. <![CDATA[
  2009. if (isDataCell()) { // (tfHelper.js) 현재 click target이 data 영역인지 check: Boolean true or false
  2010. var col = grd_oprcphist.col;
  2011. if (col == grd_oprcphist.colRef("spclspecyn")) { // 'T' 필드
  2012. fSetLnUnitClsoSpclSpec("grd_oprcphist");
  2013. /*
  2014. var row = grd_oprcphist.row;
  2015. model.resetInstanceNode("/root/hidden/sppid21700/cond");
  2016. model.setValue("/root/hidden/sppid21700/cond/clamym", model.getValue("/root/main/item1/clbs/clamym"));
  2017. model.setValue("/root/hidden/sppid21700/cond/clamdg", model.getValue("/root/main/item1/clbs/clamdg"));
  2018. model.setValue("/root/hidden/sppid21700/cond/pid", model.getValue("/root/main/item1/clbs/pid"));
  2019. model.setValue("/root/hidden/sppid21700/cond/pidsn", model.getValue("/root/main/item1/clbs/pidsn"));
  2020. model.setValue("/root/hidden/sppid21700/cond/workflag", model.getValue("/root/main/item1/clbs/workflag"));
  2021. model.setValue("/root/hidden/sppid21700/cond/ioflag", "O");
  2022. modal("SPPID21700", "1", "10", "10", "SPPID21700", "/root/hidden/sppid21700/cond", "/root/init", "", ""); // SPPID21700_원외처방조회.xrw
  2023. model.refresh();
  2024. */
  2025. }
  2026. else if (col == grd_oprcphist.colRef("snglcalcscorcd") || col == grd_oprcphist.colRef("edicd") || col == grd_oprcphist.colRef("hngnm")) {
  2027. //else if ( col == grd_oprcphist.colRef("edicd") || col == grd_oprcphist.colRef("hngnm") ) {
  2028. var row = grd_oprcphist.row;
  2029. var rowstatus = grd_oprcphist.rowstatus(row);
  2030. if (grd_oprcphist.valueMatrix(row, col) != "" && rowstatus != 1) {
  2031. //상세계산내역조회
  2032. fGetOsclClamData("N", "grd_oprcphist");
  2033. }
  2034. }
  2035. }
  2036. ]]>
  2037. </script>
  2038. <script type="javascript" ev:event="onmouseover">
  2039. <![CDATA[
  2040. if (grd_oprcphist.isCell(event.target) && grd_oprcphist.mouseRow >= grd_oprcphist.fixedrows) {
  2041. // 수가코드, edi코드는 입력제한
  2042. var clopstatus = grd_oprcphist.rowstatus(grd_oprcphist.mouseRow);
  2043. if (clopstatus == 0 || clopstatus == 2) { // 0 : new, 2 : update
  2044. grd_oprcphist.colDisabled(grd_oprcphist.colRef("snglcalcscorcd")) = true;
  2045. grd_oprcphist.colDisabled(grd_oprcphist.colRef("edicd")) = true;
  2046. } else {
  2047. grd_oprcphist.colDisabled(grd_oprcphist.colRef("snglcalcscorcd")) = false;
  2048. grd_oprcphist.colDisabled(grd_oprcphist.colRef("edicd")) = false;
  2049. }
  2050. var row = grd_oprcphist.mouseRow;
  2051. var col = grd_oprcphist.mouseCol;
  2052. if (col == grd_oprcphist.colRef("spclspecyn")) { // 'T' 필드
  2053. var spclcd = model.getValue("/root/main/list7/clop["+ row +"]/spclcd");
  2054. var spclcdnm = model.getValue("/root/main/list7/clop["+ row +"]/spclcdnm");
  2055. var spclspec = model.getValue("/root/main/list7/clop["+ row +"]/spclspec");
  2056. var lnunitspclspec = model.getValue("/root/main/list7/clop["+ row +"]/lnunitspclspec");
  2057. grd_oprcphist.tooltipText(row, col) = lnunitspclspec;
  2058. if (spclcd && spclcdnm && spclspec) {
  2059. if (spclcd == "JT010") {
  2060. spclformat = "X(1)/X(200)";
  2061. } else {
  2062. spclformat = "X(700)";
  2063. }
  2064. grd_oprcphist.tooltipText(row, col) = "특정내역코드: "+ spclcdnm +" / 기재내역: "+ spclspec +" / 기재형식: "+ spclformat;
  2065. }
  2066. }
  2067. }
  2068. ]]>
  2069. </script>
  2070. <script type="javascript" ev:event="oncopy">
  2071. <![CDATA[
  2072. // 그리드 내용 복사
  2073. if (grd_oprcphist.selectedRows == 1) { // 한줄
  2074. var row = grd_oprcphist.row;
  2075. var col = grd_oprcphist.col;
  2076. if (col == grd_oprcphist.colRef("snglcalcscorcd") || col == grd_oprcphist.colRef("edicd") || col == grd_oprcphist.colRef("hngnm") || col == grd_oprcphist.colRef("ordnm")) {
  2077. // 처방코드/EDI 코드/한글명/처방명
  2078. // var clip = grd_oprcphist.valueMatrix(row, col);
  2079. var clip = grd_oprcphist.labelMatrix(row, col);
  2080. // var clip = grd_oprcphist.labelMatrix(grd_oprcphist.mouseRow, grd_oprcphist.mouseCol);
  2081. window.clipBoardData = clip;
  2082. } else {
  2083. grid_oncopy(); // (tfHelper.js) window.clipBoardData 복사 기능
  2084. }
  2085. }
  2086. else if (grd_oprcphist.selectedRows > 1) { // 여러줄
  2087. grid_oncopy(); // (tfHelper.js) window.clipBoardData 복사 기능
  2088. }
  2089. ]]>
  2090. </script>
  2091. <script type="javascript" ev:event="onmousedown">
  2092. <![CDATA[
  2093. if (event.button == 3) { // 3 : 오른쪽 버튼
  2094. if (grd_oprcphist.isCell(event.target) && grd_oprcphist.mouseRow >= grd_oprcphist.fixedrows) {
  2095. setPopupMenu("grd_oprcphist", false, "/root/hidden/popupmenu/gridclop/item", "name", "func"); // (tfHelper.js) 컨트롤에서 사용자 팝업 설정 함수
  2096. }
  2097. if (model.getValue("/root/main/item1/clbs/clamym")) { // 3 : 오른쪽 버튼 // 조회된 심사대상자가 있으면
  2098. if (isDataCell() == false) { // (tfHelper.js) datagrid click or dbclick 시점에 현재 click target이 data 영역인지 check
  2099. // 처방이 한줄도 없는 경우에도 "행 추가"를 하기 위해 사용함
  2100. window.showPopupMenu(true);
  2101. window.setPopupMenu(true, "/root/hidden/popupmenu/gridclop/inititem", "name", "func", false);
  2102. }
  2103. }
  2104. }
  2105. ]]>
  2106. </script>
  2107. <script type="javascript" ev:event="onmouseup">
  2108. <![CDATA[
  2109. var row = grd_oprcphist.mouseRow;
  2110. var col = grd_oprcphist.mouseCol;
  2111. if (grd_oprcphist.isCell(event.target) && grd_oprcphist.mouseRow >= grd_oprcphist.fixedRows) {
  2112. if (col == grd_oprcphist.colRef("adjtresncd")) { // '심사사유' 필드
  2113. var adjtresncd = model.getValue("/root/main/list7/clop["+ row +"]/adjtresncd");
  2114. if ( adjtresncd != "" && adjtresncd != "-" ) {
  2115. fSetAdjtResnCdClop();
  2116. }
  2117. }
  2118. }
  2119. ]]>
  2120. </script>
  2121. <script type="javascript" ev:event="DOMFocusOut">
  2122. <![CDATA[
  2123. initPopupMenu(); // (tfHelper.js) 사용자 팝업 설정 초기화
  2124. ]]>
  2125. </script>
  2126. </datagrid>
  2127. <!--
  2128. <script type="javascript" ev:event="ondblclick">
  2129. <![CDATA[
  2130. dragflag = !dragflag;
  2131. ]]>
  2132. </script>
  2133. <script type="javascript" ev:event="onmouseout">
  2134. <![CDATA[
  2135. // if (dragflag == true) {
  2136. // var preY = grp_clop.attribute("top");
  2137. // var d = event.y;
  2138. // var newY = parseInt(preY) + d;
  2139. // var maxY = parseInt(grp_clodhist.attribute("top")) + parseInt(grp_clodhist.attribute("height"));
  2140. // var minY = parseInt(grd_clodhist.attribute("top"));
  2141. // if (newY <= 600 && newY >= minY) {
  2142. // grp_clop.attribute("top") = newY;
  2143. // grp_clop.attribute("height") = parseInt(grp_clop.attribute("height")) - d;
  2144. // grd_oprcphist.attribute("height") = parseInt(grd_oprcphist.attribute("height")) - d;
  2145. // grd_clodhist.attribute("height") = parseInt(grd_clodhist.attribute("height")) + d;
  2146. // }
  2147. // }
  2148. ]]>
  2149. </script>-->
  2150. <select1 id="rdo_cloppayflag" ref="/root/hidden/list7/clop/selectedRdoPay" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:207px; top:3px; width:151px; height:15px; ">
  2151. <choices>
  2152. <item>
  2153. <label>전체</label>
  2154. <value>-</value>
  2155. </item>
  2156. <item>
  2157. <label>급여</label>
  2158. <value>0</value>
  2159. </item>
  2160. <item>
  2161. <label>비급여</label>
  2162. <value>1</value>
  2163. </item>
  2164. </choices>
  2165. <script type="javascript" ev:event="xforms-select">
  2166. <![CDATA[
  2167. fGetCoppayFlagSelect();
  2168. ]]>
  2169. </script>
  2170. </select1>
  2171. <button id="button1" class="btn2_letter6" style="left:952px; top:0px; width:86px; height:19px; ">
  2172. <caption>수가월별현황</caption>
  2173. <script type="javascript" ev:event="DOMActivate">
  2174. <![CDATA[
  2175. open("SPPID24000", "1", "10", "10", "SPPID24000", "", "", "", "");
  2176. ]]>
  2177. </script>
  2178. </button>
  2179. <button id="btn_clopmax" class="btn2_letter2" style="left:75px; top:0px; width:42px; height:19px; ">
  2180. <caption>확대</caption>
  2181. <script type="javascript" ev:event="onclick">
  2182. <![CDATA[
  2183. fClopSizeChange("MAX"); // 20091217
  2184. // 이전명세서, 처방휴지통, 삭제처방 Group의 컨트롤 크기를 설정한다.
  2185. fSetDelOrdPreDocuSize();
  2186. ]]>
  2187. </script>
  2188. </button>
  2189. <button id="btn_clopauto" class="btn2_letter2" style="left:119px; top:0px; width:42px; height:19px; ">
  2190. <caption>기본</caption>
  2191. <script type="javascript" ev:event="onclick">
  2192. <![CDATA[
  2193. fClopSizeChange("AUTO"); // 20091217
  2194. // 이전명세서, 처방휴지통, 삭제처방 Group의 컨트롤 크기를 설정한다.
  2195. fSetDelOrdPreDocuSize();
  2196. ]]>
  2197. </script>
  2198. </button>
  2199. <button id="btn_clopmin" class="btn2_letter2" style="left:163px; top:0px; width:42px; height:19px; ">
  2200. <caption>축소</caption>
  2201. <script type="javascript" ev:event="onclick">
  2202. <![CDATA[
  2203. fClopSizeChange("MIN"); // 20091217
  2204. // 이전명세서, 처방휴지통, 삭제처방 Group의 컨트롤 크기를 설정한다.
  2205. fSetDelOrdPreDocuSize();
  2206. ]]>
  2207. </script>
  2208. </button>
  2209. <button id="button4" class="btn2_letter5" style="left:851px; top:0px; width:75px; height:19px; ">
  2210. <caption>환경초기화</caption>
  2211. <script type="javascript" ev:event="DOMActivate">
  2212. <![CDATA[
  2213. fClearSetInfo();
  2214. ]]>
  2215. </script>
  2216. </button>
  2217. <button id="button5" class="btn2_letter4" style="left:785px; top:0px; width:64px; height:19px; ">
  2218. <caption>환경저장</caption>
  2219. <script type="javascript" ev:event="DOMActivate">
  2220. <![CDATA[
  2221. fSaveSetInfo();
  2222. ]]>
  2223. </script>
  2224. </button>
  2225. <button id="btn_samedateyn" class="btn2_letter5" _auth="R" style="left:1039px; top:0px; width:75px; height:19px; ">
  2226. <caption>동일진료일</caption>
  2227. <script type="javascript" ev:event="DOMActivate">
  2228. <![CDATA[
  2229. fGetSamedate();
  2230. ]]>
  2231. </script>
  2232. <hint>
  2233. <![CDATA[동일진료일 명세서 조회]]>
  2234. </hint>
  2235. </button>
  2236. </group>
  2237. <group id="grp_delorderlist" style="left:635px; top:281px; width:479px; height:260px; ">
  2238. <!-- 심사변경 조회 -->
  2239. <line id="line4" class="line_1" style="x1:0px; y1:0px; x2:479px; y2:0px; "/>
  2240. <datagrid id="grd_delorder" nodeset="/root/main/list5/clod" class="datagrid2" caption="^X^선별^재행^급여^Seq&#xA;no^조정&#xA;사유^줄^항^목^그룹코드^수가코드^EDI코드^한글명^코드&#xA;구분^단가^1회량^횟수^일수&#xA;(총투)^금액^확인&#xA;코드^T^처방일자^처방명^삭제일자" colsep="^" colwidth="20, 14, 20, 20, 20, 30, 30, 18, 28, 22, 97, 97, 80, 210, 30, 58, 40, 30, 40, 60, 37, 14, 68, 200, 68" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:5px; width:479px; height:232px; ">
  2241. <col class="update_n" ref="update"/>
  2242. <col ref="rowstat" style="background-color:#c0c0c0; "/>
  2243. <col ref="spcljudgyn" visibility="hidden" style="background-color:#c0c0c0; "/>
  2244. <col ref="matractflag" visibility="hidden" style="background-color:#c0c0c0; "/>
  2245. <col ref="payflag" visibility="hidden" style="background-color:#c0c0c0; "/>
  2246. <!-- <col ref="seqno" visibility="hidden" style="background-color:#c0c0c0; "/>-->
  2247. <col ref="seqno" visibility="hidden" style="background-color:#c0c0c0; "/>
  2248. <col ref="adjtresncd"/>
  2249. <col ref="edilnno"/>
  2250. <col ref="ediitem1"/>
  2251. <col ref="ediitem2"/>
  2252. <col ref="grupcalcscorcd"/>
  2253. <col ref="snglcalcscorcd"/>
  2254. <col ref="edicd"/>
  2255. <col ref="hngnm"/>
  2256. <col ref="edicdflag"/>
  2257. <col ref="ediunitcost" format="#,###" style="text-align:right; "/>
  2258. <col ref="edidrugqty" format="#,###.00" style="text-align:right; "/>
  2259. <col ref="tims"/>
  2260. <col ref="dayno"/>
  2261. <col ref="ediamt" format="#,###" style="text-align:right; "/>
  2262. <col ref="cnfmcd"/>
  2263. <col ref="lnunitspclspecyn" style="text-align:center; "/>
  2264. <col ref="orddd" format="yyyy-mm-dd"/>
  2265. <col ref="ordnm"/>
  2266. <col ref="lastupdtdt" format="yyyy-mm-dd"/>
  2267. <script type="javascript" ev:event="onaftersort">
  2268. <![CDATA[
  2269. grd_delorder.gridToInstance();
  2270. ]]>
  2271. </script>
  2272. </datagrid>
  2273. <button id="btn_closedelorderlist" class="btn4_letter2" style="left:423px; top:238px; width:56px; height:22px; ">
  2274. <caption>닫기</caption>
  2275. <script type="javascript" ev:event="DOMActivate">
  2276. <![CDATA[
  2277. grd_clodhist.attribute("width") = "1114";
  2278. ln_clodhist.attribute("x2") = "1114";
  2279. cap_grptemp.visible = false;
  2280. grp_delorderlist.visible = false;
  2281. ]]>
  2282. </script>
  2283. </button>
  2284. </group>
  2285. <group id="grp_delclodlist" style="left:635px; top:281px; width:479px; height:260px; ">
  2286. <!-- 처방휴지통 -->
  2287. <line id="line5" class="line_1" style="x1:0px; y1:0px; x2:479px; y2:0px; "/>
  2288. <datagrid id="grd_delclod" nodeset="/root/main/list6/delclod" class="datagrid2" caption="선별^Seq&#xA;no^grupseqno^X^init&#xA;lnno^사&#xA;유^줄^항^목^처방일시^G^그룹코드^행위&#xA;자료^수가코드^EDI코드^산정&#xA;분류^산정&#xA;의미^산정&#xA;코드^예&#xA;외^한글명^급&#xA;비^단가^1회량^횟수^1일량&#xA;(일투)^일수&#xA;(총투)^금액^확인&#xA;코드^T^치식^사&#xA;유^처방과^처방의^시행일시^병원가산&#xA;단가^가산단가^급여총액^본인&#xA;부담금^청구액^선택단가^병원가산&#xA;SUM^가산&#xA;SUM^선택진료&#xA;SUM^진료비&#xA;총액^본인부담&#xA;총액^CP^처방명^코드&#xA;구분^item^unitcost^drugqty^totdrugqty^amt^baserlapnt^baseaddrlapnt^pntunitcost^updtdd^ordfromdd^ordtodd^ediitem^edicd^rcptunitcost^prcpflag^rcptcalcamt^reductamt^estmcdnm^pynpy1^earncls1^earncls2^earncls3^mechfromdd^mechtodd^calcappyn" colsep="^" colwidth="20, 30, 30, 14, 30, 20, 18, 28, 22, 68, 18, 97, 30, 97, 80, 30, 30, 30, 18, 200, 26, 58, 40, 30, 40, 40, 58, 37, 14, 30, 18, 61, 42, 68, 58, 66, 58, 58, 58, 58, 58, 66, 58, 58, 58, 30, 200, 30, 40, 50, 40, 40, 50, 40, 50, 40, 40, 40, 40, 40, 40, 40, 40, 50, 50, 40, 40, 40, 40, 40, 100, 100, 50" dataheight="23" ellipsis="true" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:5px; width:479px; height:232px; ">
  2289. <col ref="spcljudgyn" visibility="hidden" style="background-color:#c0c0c0; "/>
  2290. <col ref="seqno" visibility="hidden" style="background-color:#c0c0c0; "/>
  2291. <col ref="grupseqno" visibility="hidden" style="background-color:#c0c0c0; "/>
  2292. <col ref="rowstat" visibility="hidden" style="background-color:#c0c0c0; "/>
  2293. <col ref="initlnno" visibility="hidden" style="background-color:#c0c0c0; "/>
  2294. <col ref="adjtresncd"/>
  2295. <col ref="edilnno"/>
  2296. <col ref="ediitem1"/>
  2297. <col ref="ediitem2"/>
  2298. <col ref="ordfromdd" format="yyyy-mm-dd"/>
  2299. <col ref="grupsnglflag"/>
  2300. <col ref="grupcalcscorcd"/>
  2301. <col disabled="true" ref="matractflag" type="combo">
  2302. <choices>
  2303. <item>
  2304. <label>재</label>
  2305. <value>1</value>
  2306. </item>
  2307. <item>
  2308. <label>가O</label>
  2309. <value>2</value>
  2310. </item>
  2311. <item>
  2312. <label>가X</label>
  2313. <value>3</value>
  2314. </item>
  2315. <item>
  2316. <label>약</label>
  2317. <value>4</value>
  2318. </item>
  2319. </choices>
  2320. </col>
  2321. <col ref="snglcalcscorcd"/>
  2322. <col ref="basecd"/>
  2323. <col ref="estmcls" visibility="hidden" style="background-color:#c0c0c0; "/>
  2324. <col ref="estmmncd"/>
  2325. <col ref="estmcd"/>
  2326. <col ref="hosinresncd"/>
  2327. <col ref="hngnm"/>
  2328. <col disabled="true" ref="payflag" type="combo">
  2329. <choices>
  2330. <item>
  2331. <label>급</label>
  2332. <value>0</value>
  2333. </item>
  2334. <item>
  2335. <label>100</label>
  2336. <value>1</value>
  2337. </item>
  2338. <item>
  2339. <label>비</label>
  2340. <value>2</value>
  2341. </item>
  2342. </choices>
  2343. </col>
  2344. <col ref="ediunitcost" format="#,###" style="text-align:right; "/>
  2345. <col ref="edidrugqty" format="#,###.00" style="text-align:right; "/>
  2346. <col ref="tims" format="##" style="text-align:right; "/>
  2347. <col ref="daydrugqty" format="#,###.00" style="text-align:right; "/>
  2348. <col ref="dayno" format="##" style="text-align:right; "/>
  2349. <col ref="ediamt" format="#,###" style="text-align:right; "/>
  2350. <col ref="cnfmcd"/>
  2351. <col ref="lnunitspclspecyn" style="text-align:center; "/>
  2352. <col ref="toot"/>
  2353. <col ref="adjtresncd"/>
  2354. <col ref="orddeptcd"/>
  2355. <col ref="orddrid"/>
  2356. <col ref="execdt" format="yyyy-mm-dd"/>
  2357. <col ref="edihospaddamt" format="#,###" style="text-align:right; "/>
  2358. <col ref="ediaddamt" format="(-)#,###" style="text-align:right; "/>
  2359. <col ref="paytotamt" format="#,###" style="text-align:right; "/>
  2360. <col ref="ownbamt" format="#,###" style="text-align:right; "/>
  2361. <col ref="clamamt" format="#,###" style="text-align:right; "/>
  2362. <col ref="choiordamt" format="#,###" style="text-align:right; "/>
  2363. <col ref="edihospaddtotamt" format="#,###" style="text-align:right; "/>
  2364. <col ref="ediaddtotamt" format="(-)#,###" style="text-align:right; "/>
  2365. <col ref="choiordtotamt" format="#,###" style="text-align:right; "/>
  2366. <col ref="totordamt" format="#,###" style="text-align:right; "/>
  2367. <col ref="ownbtotamt" format="#,###" style="text-align:right; "/>
  2368. <col ref="cp"/>
  2369. <col ref="ordnm"/>
  2370. <col ref="edicdflag"/>
  2371. <col ref="item" visibility="hidden" style="background-color:#c0c0c0; "/>
  2372. <col ref="unitcost" visibility="hidden" format="#,###" style="text-align:right; background-color:#c0c0c0; "/>
  2373. <col ref="drugqty" visibility="hidden" format="#,###.00" style="text-align:right; background-color:#c0c0c0; "/>
  2374. <col ref="totdrugqty" visibility="hidden" format="#,###.00" style="text-align:right; background-color:#c0c0c0; "/>
  2375. <col ref="amt" visibility="hidden" format="#,###" style="text-align:right; background-color:#c0c0c0; "/>
  2376. <col ref="baserlapnt" visibility="hidden" style="background-color:#c0c0c0; "/>
  2377. <col ref="baseaddrlapnt" visibility="hidden" style="background-color:#c0c0c0; "/>
  2378. <col ref="pntunitcost" visibility="hidden" style="background-color:#c0c0c0; "/>
  2379. <col ref="updtdd" visibility="hidden" format="yyyy-mm-dd" style="background-color:#c0c0c0; "/>
  2380. <col ref="ordfromdd" visibility="hidden" format="yyyy-mm-dd" style="background-color:#c0c0c0; "/>
  2381. <col ref="ordtodd" visibility="hidden" format="yyyy-mm-dd" style="background-color:#c0c0c0; "/>
  2382. <col ref="ediitem" visibility="hidden" style="background-color:#c0c0c0; "/>
  2383. <col ref="edicd" visibility="hidden" style="background-color:#c0c0c0; "/>
  2384. <col ref="rcptunitcost" visibility="hidden" format="#,###" style="text-align:right; background-color:#c0c0c0; "/>
  2385. <col ref="prcpflag" visibility="hidden" style="background-color:#c0c0c0; "/>
  2386. <col ref="rcptcalcamt" visibility="hidden" format="#,###" style="text-align:right; background-color:#c0c0c0; "/>
  2387. <col ref="reductamt" visibility="hidden" format="#,###" style="text-align:right; background-color:#c0c0c0; "/>
  2388. <col ref="estmcdnm" visibility="hidden" style="background-color:#c0c0c0; "/>
  2389. <col ref="pynpy1" visibility="hidden" style="background-color:#c0c0c0; "/>
  2390. <col ref="earncls1" visibility="hidden" style="background-color:#c0c0c0; "/>
  2391. <col ref="earncls2" visibility="hidden" style="background-color:#c0c0c0; "/>
  2392. <col ref="earncls3" visibility="hidden" style="background-color:#c0c0c0; "/>
  2393. <col ref="mechfromdd" visibility="hidden" style="background-color:#c0c0c0; "/>
  2394. <col ref="mechtodd" visibility="hidden" style="background-color:#c0c0c0; "/>
  2395. <col ref="calcappyn" visibility="hidden" style="background-color:#c0c0c0; "/>
  2396. <script type="javascript" ev:event="onmousedown">
  2397. <![CDATA[
  2398. setPopupMenu("grd_delclod", false, "/root/hidden/popupmenu/gridclod/delitem", "name", "func"); // (tfHelper.js) 컨트롤에서 사용자 팝업 설정 함수
  2399. ]]>
  2400. </script>
  2401. <script type="javascript" ev:event="DOMFocusOut">
  2402. <![CDATA[
  2403. initPopupMenu(); // (tfHelper.js) 사용자 팝업 설정 초기화
  2404. ]]>
  2405. </script>
  2406. <script type="javascript" ev:event="onaftersort">
  2407. <![CDATA[
  2408. grd_delclod.gridToInstance();
  2409. ]]>
  2410. </script>
  2411. <script type="javascript" ev:event="ondblclick">
  2412. <![CDATA[
  2413. var oldcd = model.getValue("/root/main/list6/delclod["+ grd_delclod.row +"]/adjtresncd");
  2414. model.resetInstanceNode("/root/hidden/sppiz01000");
  2415. model.setValue("/root/hidden/sppiz01000/cond/cdcls", "aftout");
  2416. model.setValue("/root/hidden/sppiz01000/cond/cdid", oldcd);
  2417. modal("SPPIZ01000", "1","500", "450", "SPPIZ01000", "/root/hidden/sppiz01000/cond", "/root/hidden/sppiz01000/cond", "", ""); // SPPIZ01000_심사수정사유관리.xrw
  2418. var newcd = model.getValue("/root/hidden/sppiz01000/rslt/cdid");
  2419. if (newcd) {
  2420. for (var i = 0; i < grd_delclod.selectedRows; i++) {
  2421. var row = grd_delclod.selectedrow(i);
  2422. model.setValue("/root/main/list6/delclod["+ row +"]/adjtresncd", newcd);
  2423. }
  2424. grd_delcold.refresh();
  2425. }
  2426. ]]>
  2427. </script>
  2428. </datagrid>
  2429. <button id="btn_closedelclodlist" class="btn4_letter2" style="left:423px; top:238px; width:56px; height:22px; ">
  2430. <caption>닫기</caption>
  2431. <script type="javascript" ev:event="DOMActivate">
  2432. <![CDATA[
  2433. grd_clodhist.attribute("width") = "1114";
  2434. ln_clodhist.attribute("x2") = "1114";
  2435. cap_grptemp.visible = false;
  2436. grp_delclodlist.visible = false;
  2437. ]]>
  2438. </script>
  2439. </button>
  2440. </group>
  2441. <datagrid id="grd_clodhist" nodeset="/root/main/list2/clod" class="datagrid2" backcoloralternate="transparent" caption="선별^Seq&#xA;no^grupseqno^X^init&#xA;lnno^줄^항^목^실시일자^G^그룹코드^행위&#xA;재료^수가코드^EDI기본코드^EDI코드^산정&#xA;분류^산정&#xA;의미^산정&#xA;코드^예&#xA;외^한글명^급&#xA;비^단가^EDI단가^1회량^EDI&#xA;1회량^횟수^1일량^일수^EDI&#xA;일수^금액^EDI금액^확인&#xA;코드^T^치식EDI^치식^사&#xA;유^상한가^ EDI&#xA;상한가^약제&#xA;상한차액^EDI&#xA;상한차액^처방과^처방의^처방일자^변경일자^계산&#xA;적용^병원가산&#xA;단가^가산단가^급여총액^본인&#xA;부담금^청구액^선택단가^병원가산&#xA;SUM^가산&#xA;SUM^선택진료&#xA;SUM^진료비&#xA;총액^본인부담&#xA;총액^본인부담&#xA;구분^처방명^코드&#xA;구분^항목^item1^item2^totdrugqty^baserlapnt^baseaddrlapnt^pntunitcost^실시종료일^ediitem^rcptunitcost^prcpflag^rcptcalcamt^reductamt^estmcdnm^pynpy1^earncls1^earncls2^earncls3^mechfromdd^mechtodd^workflag^삭제사유상세내역^면허종류^면허번호" colsep="^" colwidth="20, 30, 30, 14, 30, 26, 28, 22, 68, 18, 78, 30, 78, 78, 78, 30, 30, 30, 18, 215, 25, 58, 58, 40, 40, 30, 40, 40, 40, 58, 58, 37, 14, 30, 30, 20, 50, 50, 56, 56, 80, 60, 68, 68, 34, 58, 66, 58, 58, 58, 58, 58, 66, 58, 58, 58, 82, 200, 30, 46, 40, 34, 40, 40, 50, 40, 68, 40, 40, 40, 50, 50, 50, 40, 40, 40, 40, 68, 68, 100, 100, 100, 100" dataheight="23" ellipsis="true" explorerbar="sortmove" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:252px; width:1115px; height:276px; ">
  2442. <col ref="spcljudgyn" visibility="hidden" style="background-color:#c0c0c0; "/>
  2443. <col ref="seqno" visibility="hidden" style="background-color:#c0c0c0; "/>
  2444. <col ref="grupseqno" visibility="hidden" style="background-color:#c0c0c0; "/>
  2445. <col ref="rowstat"/>
  2446. <col ref="initlnno" visibility="hidden" style="background-color:#c0c0c0; "/>
  2447. <col ref="edilnno"/>
  2448. <col ref="ediitem1"/>
  2449. <col ref="ediitem2"/>
  2450. <col id="cal_01" ref="ordfromdd" type="input" format="yyyy-mm-dd"/>
  2451. <col ref="grupsnglflag"/>
  2452. <col imemode="disabled" ref="grupcalcscorcd" type="input" _chartype="upper"/>
  2453. <col disabled="true" ref="matractflag" type="combo">
  2454. <choices>
  2455. <item>
  2456. <label>재</label>
  2457. <value>1</value>
  2458. </item>
  2459. <item>
  2460. <label>가O</label>
  2461. <value>2</value>
  2462. </item>
  2463. <item>
  2464. <label>가X</label>
  2465. <value>3</value>
  2466. </item>
  2467. <item>
  2468. <label>약</label>
  2469. <value>4</value>
  2470. </item>
  2471. </choices>
  2472. </col>
  2473. <col imemode="disabled" ref="snglcalcscorcd" type="input" _chartype="upper"/>
  2474. <col imemode="disabled" ref="basecd" type="input" _chartype="upper"/>
  2475. <col ref="edicd"/>
  2476. <col ref="estmcls" visibility="hidden" style="background-color:#c0c0c0; "/>
  2477. <col ref="estmmncd" style="text-align:center; "/>
  2478. <col ref="estmcd" style="text-align:center; "/>
  2479. <col ref="hosinresncd"/>
  2480. <col imemode="hangul" ref="hngnm" type="input"/>
  2481. <col disabled="true" ref="payflag" type="combo" style="text-align:center; ">
  2482. <choices>
  2483. <item>
  2484. <label>급</label>
  2485. <value>0</value>
  2486. </item>
  2487. <item>
  2488. <label>100</label>
  2489. <value>1</value>
  2490. </item>
  2491. <item>
  2492. <label>비</label>
  2493. <value>2</value>
  2494. </item>
  2495. <item>
  2496. <label>선</label>
  2497. <value>8</value>
  2498. </item>
  2499. <item>
  2500. <label>선</label>
  2501. <value>9</value>
  2502. </item>
  2503. </choices>
  2504. </col>
  2505. <col ref="unitcost" type="input" format="#,###" style="text-align:right; "/>
  2506. <col ref="ediunitcost" type="input" format="#,###" style="text-align:right; background-color:#e5d9ff; "/>
  2507. <col ref="drugqty" type="input" format="###.00" maxlength="5.4" style="text-align:right; "/>
  2508. <col ref="edidrugqty" type="input" format="###.00" maxlength="5.4" style="text-align:right; background-color:#e5d9ff; "/>
  2509. <col ref="tims" type="input" format="##" maxlength="2" style="text-align:right; background-color:#e5d9ff; "/>
  2510. <col ref="daydrugqty" format="###.00" maxlength="5.4" style="text-align:right; background-color:#e5d9ff; "/>
  2511. <col ref="dayno" type="input" format="##" maxlength="4" style="text-align:right; "/>
  2512. <col ref="edidayno" type="input" format="##" maxlength="4" style="text-align:right; "/>
  2513. <col ref="amt" format="#,###" style="text-align:right; "/>
  2514. <col ref="ediamt" type="input" format="#,###" style="text-align:right; background-color:#e5d9ff; "/>
  2515. <col ref="cnfmcd" type="inputbutton"/>
  2516. <col ref="lnunitspclspecyn" style="text-align:center; "/>
  2517. <col ref="toot" visiblity="hidden"/>
  2518. <col ref="toot1"/>
  2519. <col ref="adjtresncd"/>
  2520. <col ref="druglimitamt" format="#,###" style="text-align:right; "/>
  2521. <col ref="edidruglimitamt" type="input" format="#,###" style="text-align:right; background-color:#e5d9ff; "/>
  2522. <col ref="limitdiffamt" format="#,###" style="text-align:right; "/>
  2523. <col ref="edilimitdiffamt" type="input" format="#,###" style="text-align:right; background-color:#e5d9ff; "/>
  2524. <col disabled="true" ref="orddeptcd" type="combo" style="text-align:center; ">
  2525. <choices>
  2526. <itemset nodeset="/root/init/orddeptcd2/orddeptcdlist">
  2527. <label ref="nm"/>
  2528. <value ref="cd"/>
  2529. </itemset>
  2530. </choices>
  2531. </col>
  2532. <col disabled="true" ref="orddrid" type="combo" style="text-align:center; ">
  2533. <choices>
  2534. <itemset nodeset="/root/init/orddrid2/orddridlist">
  2535. <label ref="nm"/>
  2536. <value ref="cd"/>
  2537. </itemset>
  2538. </choices>
  2539. </col>
  2540. <col ref="orddd" format="yyyy-mm-dd"/>
  2541. <col ref="updtdd" type="input" format="yyyy/mm/dd"/>
  2542. <col ref="calcappyn" style="text-align:center; "/>
  2543. <col ref="edihospaddamt" format="#,###" style="text-align:right; "/>
  2544. <col ref="ediaddamt" format="(-)#,###" style="text-align:right; "/>
  2545. <col ref="paytotamt" format="#,###" style="text-align:right; "/>
  2546. <col ref="ownbamt" format="#,###" style="text-align:right; "/>
  2547. <col ref="clamamt" format="#,###" style="text-align:right; "/>
  2548. <col ref="choiordamt" format="#,###" style="text-align:right; "/>
  2549. <col ref="edihospaddtotamt" format="#,###" style="text-align:right; "/>
  2550. <col ref="ediaddtotamt" format="(-)#,###" style="text-align:right; "/>
  2551. <col ref="choiordtotamt" format="#,###" style="text-align:right; "/>
  2552. <col ref="totordamt" format="#,###" style="text-align:right; "/>
  2553. <col ref="ownbtotamt" format="#,###" style="text-align:right; "/>
  2554. <col ref="cpflag" type="combo">
  2555. <choices>
  2556. <itemset nodeset="/root/init/PK221list/PK221">
  2557. <label ref="cdnm"/>
  2558. <value ref="cdid"/>
  2559. </itemset>
  2560. </choices>
  2561. </col>
  2562. <col ref="ordnm"/>
  2563. <col ref="edicdflag" style="text-align:center; "/>
  2564. <col ref="item" style="text-align:center; "/>
  2565. <col ref="item1" style="background-color:#c0c0c0; "/>
  2566. <col ref="item2" style="background-color:#c0c0c0; "/>
  2567. <col ref="totdrugqty" format="#,###.00" style="text-align:right; background-color:#c0c0c0; "/>
  2568. <col ref="baserlapnt" style="background-color:#c0c0c0; "/>
  2569. <col ref="baseaddrlapnt" style="background-color:#c0c0c0; "/>
  2570. <col ref="pntunitcost" style="background-color:#c0c0c0; "/>
  2571. <col ref="ordtodd" type="input" visibility="visible" format="yyyy-mm-dd" style="background-color:#c0c0c0; "/>
  2572. <col ref="ediitem" style="left:3194px; top:32px; width:40px; height:23px; background-color:#c0c0c0; "/>
  2573. <col ref="rcptunitcost" format="#,###" style="text-align:right; background-color:#c0c0c0; "/>
  2574. <col ref="prcpflag" style="background-color:#c0c0c0; "/>
  2575. <col ref="rcptcalcamt" format="#,###" style="text-align:right; background-color:#c0c0c0; "/>
  2576. <col ref="reductamt" format="#,###" style="text-align:right; background-color:#c0c0c0; "/>
  2577. <col ref="estmcdnm" style="text-align:right; background-color:#c0c0c0; "/>
  2578. <col ref="pynpy1" style="background-color:#c0c0c0; "/>
  2579. <col ref="earncls1" style="background-color:#c0c0c0; "/>
  2580. <col ref="earncls2" style="background-color:#c0c0c0; "/>
  2581. <col ref="earncls3" style="background-color:#c0c0c0; "/>
  2582. <col ref="mechfromdd" format="yyyy-mm-dd" style="background-color:#c0c0c0; "/>
  2583. <col ref="mechtodd" format="yyyy-mm-dd" style="background-color:#c0c0c0; "/>
  2584. <col ref="workflag" style="background-color:#c0c0c0; "/>
  2585. <col ref="adjtresndesc"/>
  2586. <col ref="licnsflag" type="input"/>
  2587. <col ref="licnsno" type="input"/>
  2588. <script type="javascript" ev:event="onmousedown">
  2589. <![CDATA[
  2590. setPopupMenu("grd_clodhist", false, "/root/hidden/popupmenu/gridclod/item", "name", "func"); // (tfHelper.js) 컨트롤에서 사용자 팝업 설정 함수
  2591. if (event.button == 3 && model.getValue("/root/main/item1/clbs/clamym")) { // 3 : 오른쪽 버튼 // 조회된 심사대상자가 있으면
  2592. if (isDataCell() == false) { // (tfHelper.js) datagrid click or dbclick 시점에 현재 click target이 data 영역인지 check
  2593. // 처방이 한줄도 없는 경우에도 "행 추가"를 하기 위해 사용함
  2594. window.showPopupMenu(true);
  2595. window.setPopupMenu(true, "/root/hidden/popupmenu/gridclod/inititem", "name", "func", false);
  2596. }
  2597. }
  2598. ]]>
  2599. </script>
  2600. <script type="javascript" ev:event="onmouseup">
  2601. <![CDATA[
  2602. var row = grd_clodhist.mouseRow;
  2603. var col = grd_clodhist.mouseCol;
  2604. if (grd_clodhist.isCell(event.target) && grd_clodhist.mouseRow >= grd_clodhist.fixedRows) {
  2605. if (col == grd_clodhist.colRef("estmmncd") || col == grd_clodhist.colRef("estmcd")) { // '산정의미' / '산정코드' 필드
  2606. // Message 표시
  2607. var estmcls = model.getValue("/root/main/list2/clod["+ row +"]/estmcls");
  2608. var estmmncd = model.getValue("/root/main/list2/clod["+ row +"]/estmmncd");
  2609. var estmcd = model.getValue("/root/main/list2/clod["+ row +"]/estmcd");
  2610. var estmcdnm = model.getValue("/root/main/list2/clod["+ row +"]/estmcdnm");
  2611. if (estmcls) {
  2612. var msg = "산정코드 ["+ estmcls +"] ";
  2613. if (estmmncd != "" && estmmncd != "-") {
  2614. msg += "산정의미코드: "+ estmmncd;
  2615. }
  2616. else {
  2617. model.setValue("/root/hidden/list3/msgspclformat", msg +" 입력된 산정의미코드가 없습니다.");
  2618. model.refreshpart("/root/hidden/list3/msgspclformat");
  2619. return;
  2620. }
  2621. if (estmcd) {
  2622. msg += " / 산정코드: "+ estmcd;
  2623. }
  2624. if (estmcdnm) {
  2625. msg += " / 명칭: "+ estmcdnm;
  2626. }
  2627. model.setValue("/root/hidden/list3/msgspclformat", msg);
  2628. } else {
  2629. model.setValue("/root/hidden/list3/msgspclformat", "조회된 산정코드가 없습니다.");
  2630. }
  2631. model.refreshpart("/root/hidden/list3/msgspclformat");
  2632. }
  2633. else if (col == grd_clodhist.colRef("cnfmcd")) { // '확인코드' 필드
  2634. // Message 표시
  2635. var seqno = model.getValue("/root/main/list2/clod["+ row +"]/seqno");
  2636. var clspindex = "";
  2637. for (var j = 1; j < grd_clsphist.rows; j++) {
  2638. var spcClodseqno = model.getValue("/root/main/list3/clsp["+ j +"]/clodseqno");
  2639. var unitflag = model.getValue("/root/main/list3/clsp["+ j +"]/unitflag");
  2640. if (unitflag == "J" && seqno == spcClodseqno && model.getValue("/root/main/list3/clsp["+ j +"]/spclcd") == "JT001" && grd_clsphist.rowstatus(j) != 4) {
  2641. clspindex = j;
  2642. j = grd_clsphist.rows;
  2643. }
  2644. }
  2645. if (clspindex) {
  2646. var spclcd = model.getValue("/root/main/list3/clsp["+ clspindex +"]/spclcd");
  2647. var spclspec = model.getValue("/root/main/list3/clsp["+ clspindex +"]/spclspec");
  2648. var spclformat = model.getValue("/root/main/list3/clsp["+ clspindex +"]/spclformat");
  2649. model.setValue("/root/hidden/list3/msgspclformat", "확인코드 - "+ spclcd +" / 입력코드내역 : "+ spclspec +" / 기재형식 : "+ spclformat);
  2650. } else {
  2651. model.setValue("/root/hidden/list3/msgspclformat", "입력된 확인코드 내역이 없습니다.");
  2652. }
  2653. model.refreshpart("/root/hidden/list3/msgspclformat");
  2654. }
  2655. else if (col == grd_clodhist.colRef("lnunitspclspecyn")) { // 'T' 필드
  2656. // Message 표시
  2657. var seqno = model.getValue("/root/main/list2/clod["+ row +"]/seqno");
  2658. var clspindex = "";
  2659. for (var j = 1; j < grd_clsphist.rows; j++) {
  2660. var spcClodseqno = model.getValue("/root/main/list3/clsp["+ j +"]/clodseqno");
  2661. var unitflag = model.getValue("/root/main/list3/clsp["+ j +"]/unitflag");
  2662. if (unitflag == "J" && seqno == spcClodseqno && model.getValue("/root/main/list3/clsp["+ j +"]/spclcd") != "JT001" && grd_clsphist.rowstatus(j) != 4) {
  2663. clspindex = j;
  2664. j = grd_clsphist.rows;
  2665. }
  2666. }
  2667. if (clspindex) {
  2668. var spclcd = model.getValue("/root/main/list3/clsp["+ clspindex +"]/spclcd");
  2669. var cdnm = model.getValue("/root/main/list3/clsp["+ clspindex +"]/cdnm");
  2670. var spclspec = model.getValue("/root/main/list3/clsp["+ clspindex +"]/spclspec");
  2671. var spclformat = model.getValue("/root/main/list3/clsp["+ clspindex +"]/spclformat");
  2672. model.setValue("/root/hidden/list3/msgspclformat", "특정내역코드: "+ spclcd +" / 특정내역명칭: "+ cdnm +" / 기재내역: "+ spclspec +" / 기재형식: "+ spclformat);
  2673. } else {
  2674. model.setValue("/root/hidden/list3/msgspclformat", "입력된 줄단위 특정내역이 없습니다.");
  2675. }
  2676. model.refreshpart("/root/hidden/list3/msgspclformat");
  2677. }
  2678. else if (col == grd_clodhist.colRef("hosinresncd")) { // '원내사유코드' 필드
  2679. // 원내사유코드에 따라 의약분업예외환자 요율로 재계산한다.
  2680. fSetHosInResnCd();
  2681. }
  2682. else if (col == grd_clodhist.colRef("adjtresncd")) { // '심사사유' 필드
  2683. var adjtresncd = model.getValue("/root/main/list2/clod["+ row +"]/adjtresncd");
  2684. if ( adjtresncd != "" && adjtresncd != "-" ) {
  2685. fSetAdjtResnCd();
  2686. }
  2687. }
  2688. }
  2689. ]]>
  2690. </script>
  2691. <!-- <script type="javascript" ev:event="onendedit">-->
  2692. <script type="javascript" ev:event="xforms-value-changed">
  2693. <![CDATA[
  2694. var row = grd_clodhist.row;
  2695. var col = grd_clodhist.col;
  2696. var adjtresncd = model.getValue("/root/main/list2/clod["+ row +"]/adjtresncd");
  2697. var cmbAdjtresncd = "";
  2698. var newcd = "";
  2699. if (adjtresncd == "" || adjtresncd == "-") { // 심사(조정)사유가 입력되지 않은 경우
  2700. cmbAdjtresncd = model.getValue("/root/hidden/list2/clodstat/cmbAdjtresncd");
  2701. if (cmbAdjtresncd) {
  2702. } else {
  2703. model.resetInstanceNode("/root/hidden/sppiz01000");
  2704. model.setValue("/root/hidden/sppiz01000/cond/cdcls", "aftout");
  2705. model.setValue("/root/hidden/sppiz01000/cond/cdid", adjtresncd);
  2706. modal("SPPIZ01000", "1", "500", "450", "SPPIZ01000", "/root/hidden/sppiz01000/cond", "/root/hidden/sppiz01000/cond", "", ""); // SPPIZ01000_심사수정사유관리.xrw
  2707. newcd = model.getValue("/root/hidden/sppiz01000/rslt/cdid");
  2708. if (newcd == "" || newcd == "-") {
  2709. // 처방 data 및 row status를 변경 이전 상태로 복구한다.
  2710. fCancelClodStatusChng();
  2711. //model.refresh();
  2712. grd_clodhist.refresh();
  2713. return;
  2714. }
  2715. }
  2716. }
  2717. if (col == grd_clodhist.colRef("ordfromdd")) { // 실시일자가 변경된 경우
  2718. var ordfromdd = model.getValue("/root/main/list2/clod["+ row +"]/ordfromdd");
  2719. if (model.getValue("/root/hidden/item5/clod/ordfromdd") == ordfromdd) {
  2720. return;
  2721. } else {
  2722. if (isValidDateTime(ordfromdd)) { // (dateHelper.js) 유효한 날짜, 시간 인지 점검
  2723. // 2009-01-30
  2724. /*
  2725. var mechfromdd = model.getValue("/root/main/list2/clod["+ row +"]/mechfromdd");
  2726. var mechtodd = model.getValue("/root/main/list2/clod["+ row +"]/mechtodd");
  2727. if (mechfromdd && mechtodd) { // 신규 추가된 row를 제외한다.
  2728. if (mechfromdd > ordfromdd || mechtodd < ordfromdd) { // 입력된 처방일자가 수가적용~종료일자를 벗어난 경우
  2729. messageBox("선택된 수가코드의 적용일자~종료일자를 벗어난 처방일자가", "E005"); ///선택된 수가코드의 적용일자~종료일자를 벗어난 처방일자가 선택되었습니다.
  2730. // 처방 data 및 row status를 변경 이전 상태로 복구한다.
  2731. fCancelClodStatusChng();
  2732. //model.refresh();
  2733. grd_clodhist.refresh();
  2734. return;
  2735. }
  2736. }
  2737. */
  2738. // 신규입력된 처방만 처방일수를 변경한다.
  2739. var rowstatus = grd_clodhist.rowstatus(row);
  2740. if (rowstatus == 1 || rowstatus == 3) { // 1 : insert, 3 : insert & new
  2741. model.setValue("/root/main/list2/clod["+ row +"]/orddd", ordfromdd);
  2742. }
  2743. model.setValue("/root/main/list2/clod["+ row +"]/ordfromdd", ordfromdd);
  2744. model.setValue("/root/main/list2/clod["+ row +"]/ordtodd", ordfromdd);
  2745. // 처방의 수정된 row 상태를 표시한다.
  2746. fSetOrderChangeRowStat(row);
  2747. // 2009-01-30 실시일자를 변경한 경우 현재 수가의 적용일자를 벗어나면 수가를 다시 조회한다.
  2748. var mechfromdd = model.getValue("/root/main/list2/clod["+ row +"]/mechfromdd");
  2749. var mechtodd = model.getValue("/root/main/list2/clod["+ row +"]/mechtodd");
  2750. if (mechfromdd && mechtodd) { // 신규 추가된 row를 제외한다.
  2751. if (mechfromdd > ordfromdd || mechtodd < ordfromdd) { // 입력된 처방일자가 수가적용~종료일자를 벗어난 경우
  2752. fSetTotDrugQtyAmt();
  2753. }
  2754. }
  2755. } else {
  2756. // 처방 data 및 row status를 변경 이전 상태로 복구한다.
  2757. fCancelClodStatusChng();
  2758. }
  2759. grd_clodhist.refresh();
  2760. }
  2761. }
  2762. else if (col == grd_clodhist.colRef("updtdd")) { // 변경일자가 변경된 경우
  2763. var updtdd = model.getValue("/root/main/list2/clod["+ row +"]/updtdd");
  2764. if (model.getValue("/root/hidden/item5/clod/updtdd") == updtdd) {
  2765. return;
  2766. }
  2767. if (isValidDateTime(updtdd) == false) { // (dateHelper.js) 유효한 날짜, 시간 인지 점검
  2768. // 처방 data 및 row status를 변경 이전 상태로 복구한다.
  2769. fCancelClodStatusChng();
  2770. grd_clodhist.refresh();
  2771. return;
  2772. }
  2773. }
  2774. else if (col == grd_clodhist.colRef("grupcalcscorcd") || col == grd_clodhist.colRef("snglcalcscorcd") || col == grd_clodhist.colRef("basecd") || col == grd_clodhist.colRef("hngnm")) { // 그룹/수가/EDI코드를 입력한 경우이면
  2775. fSetSrchCalcScorCd();
  2776. }
  2777. else if (col == grd_clodhist.colRef("unitcost")) { // 단가가 변경된 경우
  2778. if (model.getValue("/root/main/list2/clod["+ row +"]/unitcost") != model.getValue("/root/hidden/item5/clod/unitcost")) {
  2779. fSetTotDrugQtyAmt();
  2780. grd_clodhist.refresh();
  2781. }
  2782. }
  2783. else if (col == grd_clodhist.colRef("ediunitcost")) { // 단가가 변경된 경우
  2784. if (model.getValue("/root/main/list2/clod["+ row +"]/ediunitcost") != model.getValue("/root/hidden/item5/clod/ediunitcost")) {
  2785. var ediunitcost = model.getValue("/root/main/list2/clod["+ row +"]/ediunitcost");
  2786. var totdrugqty = model.getValue("/root/main/list2/clod["+ row +"]/totdrugqty");
  2787. var ediamt = eval(ediunitcost) * eval(totdrugqty);
  2788. model.setValue("/root/main/list2/clod["+ row +"]/ediamt",ediamt)
  2789. // fSetTotDrugQtyAmt();
  2790. grd_clodhist.refresh();
  2791. }
  2792. }
  2793. else if (col == grd_clodhist.colRef("amt")) { // 금액이 변경된 경우
  2794. if (model.getValue("/root/main/list2/clod["+ row +"]/amt") != model.getValue("/root/hidden/item5/clod/amt")) {
  2795. // fSetTotDrugQtyAmt();
  2796. grd_clodhist.refresh();
  2797. }
  2798. }
  2799. else if (col == grd_clodhist.colRef("ediamt")) { // 금액이 변경된 경우
  2800. if (model.getValue("/root/main/list2/clod["+ row +"]/ediamt") != model.getValue("/root/hidden/item5/clod/ediamt")) {
  2801. // fSetTotDrugQtyAmt();
  2802. grd_clodhist.refresh();
  2803. }
  2804. }
  2805. else if (col == grd_clodhist.colRef("druglimitamt")) { // 금액이 변경된 경우
  2806. if (model.getValue("/root/main/list2/clod["+ row +"]/druglimitamt") != model.getValue("/root/hidden/item5/clod/druglimitamt")) {
  2807. // fSetTotDrugQtyAmt();
  2808. grd_clodhist.refresh();
  2809. }
  2810. }
  2811. else if (col == grd_clodhist.colRef("edidruglimitamt")) { // 금액이 변경된 경우
  2812. if (model.getValue("/root/main/list2/clod["+ row +"]/edidruglimitamt") != model.getValue("/root/hidden/item5/clod/edidruglimitamt")) {
  2813. // fSetTotDrugQtyAmt();
  2814. var edidruglimitamt = model.getValue("/root/main/list2/clod["+ row +"]/edidruglimitamt");
  2815. var totdrugqty = model.getValue("/root/main/list2/clod["+ row +"]/totdrugqty");
  2816. var ediunitcost = model.getValue("/root/main/list2/clod["+ row +"]/ediunitcost");
  2817. var edilimitdiffamt = (eval(edidruglimitamt) - eval(ediunitcost)) * 0.7 * eval(totdrugqty);
  2818. model.setValue("/root/main/list2/clod["+ row +"]/edilimitdiffamt",edilimitdiffamt)
  2819. grd_clodhist.refresh();
  2820. }
  2821. }
  2822. else if (col == grd_clodhist.colRef("limitdiffamt")) { // 금액이 변경된 경우
  2823. if (model.getValue("/root/main/list2/clod["+ row +"]/limitdiffamt") != model.getValue("/root/hidden/item5/clod/limitdiffamt")) {
  2824. // fSetTotDrugQtyAmt();
  2825. grd_clodhist.refresh();
  2826. }
  2827. }
  2828. else if (col == grd_clodhist.colRef("edilimitdiffamt")) { // 금액이 변경된 경우
  2829. if (model.getValue("/root/main/list2/clod["+ row +"]/edilimitdiffamt") != model.getValue("/root/hidden/item5/clod/edilimitdiffamt")) {
  2830. // fSetTotDrugQtyAmt();
  2831. grd_clodhist.refresh();
  2832. }
  2833. }
  2834. else if (col == grd_clodhist.colRef("drugqty")) { // 1회투여량이 변경된 경우
  2835. if (model.getValue("/root/main/list2/clod["+ row +"]/drugqty") != model.getValue("/root/hidden/item5/clod/drugqty")) {
  2836. fSetTotDrugQtyAmt();
  2837. grd_clodhist.refresh();
  2838. }
  2839. }
  2840. else if (col == grd_clodhist.colRef("tims")) { // 횟수가 변경된 경우
  2841. if (model.getValue("/root/main/list2/clod["+ row +"]/tims") != model.getValue("/root/hidden/item5/clod/tims")) {
  2842. fSetTotDrugQtyAmt();
  2843. grd_clodhist.refresh();
  2844. }
  2845. }
  2846. else if (col == grd_clodhist.colRef("dayno")) { // 일수가 변경된 경우
  2847. if (model.getValue("/root/main/list2/clod["+ row +"]/dayno") != model.getValue("/root/hidden/item5/clod/dayno")) {
  2848. var Sdayno = model.getValue("/root/main/list2/clod["+ row +"]/dayno");
  2849. var dayno = parseInt(Sdayno);
  2850. var ordfromdd = model.getValue("/root/main/list2/clod["+ row +"]/ordfromdd");
  2851. var ordtodd = model.getValue("/root/main/list2/clod["+ row +"]/ordtodd");
  2852. var item1 = model.getValue("/root/main/list2/clod["+ row +"]/item1");
  2853. // 진료개시일과 종료일 사이의 일자인지 체크
  2854. var clbsordfromdd = model.getValue("/root/main/item1/clbs/ordfromdd");
  2855. var clbsordtodd = model.getValue("/root/main/item1/clbs/ordtodd");
  2856. var insukind = model.getValue("/root/main/item1/clbs/insukindcd");
  2857. if (Sdayno == "" || dayno <= 0) {
  2858. }
  2859. else if (ordfromdd) {
  2860. var fromDate = ordfromdd.toDate();
  2861. var toDate = fromDate.getAddDate(dayno - 1, "D"); // (dateHelper.js) 특정일자의 상대일자(+/-)를 계산
  2862. ordtodd = toDate.getDateFormat("YYYY") + toDate.getDateFormat("MM") + toDate.getDateFormat("DD");
  2863. if (insukind == "41" && clbsordfromdd && clbsordtodd) {
  2864. if (ordtodd > clbsordtodd) {
  2865. model.setValue("/root/main/item1/clbs/ordtodd", ordtodd);
  2866. }
  2867. model.setValue("/root/main/list2/clod["+ row +"]/ordtodd", ordtodd);
  2868. }
  2869. }
  2870. grd_clodhist.refresh();
  2871. ipt_ordtodd.refresh();
  2872. fSetTotDrugQtyAmt();
  2873. grd_clodhist.refresh();
  2874. }
  2875. }
  2876. else if (col == grd_clodhist.colRef("edidrugqty")) { // edi1회투여량이 변경된 경우
  2877. if (model.getValue("/root/main/list2/clod["+ row +"]/edidrugqty") != model.getValue("/root/hidden/item5/clod/edidrugqty")) {
  2878. fSetTotDrugQtyAmt();
  2879. grd_clodhist.refresh();
  2880. }
  2881. }
  2882. else if (col == grd_clodhist.colRef("edidayno")) { // edi일수가 변경된 경우
  2883. if (model.getValue("/root/main/list2/clod["+ row +"]/edidayno") != model.getValue("/root/hidden/item5/clod/edidayno")) {
  2884. fSetTotDrugQtyAmt();
  2885. grd_clodhist.refresh();
  2886. }
  2887. }
  2888. row = grd_clodhist.row;
  2889. if (row != -1 && grd_clodhist.rowStatus(row) == 2) { // sort 이후에 선택된 row가 있고 0 : new, 2 : update
  2890. if (cmbAdjtresncd) {
  2891. model.setValue("/root/main/list2/clod["+ row +"]/adjtresncd", cmbAdjtresncd);
  2892. }
  2893. else if (newcd) {
  2894. model.setValue("/root/main/list2/clod["+ row +"]/adjtresncd", newcd);
  2895. }
  2896. // 처방 Grid 배경색을 설정한다. - 추가/수정된 row
  2897. fOrderBkColorNew(row);
  2898. }
  2899. ]]>
  2900. </script>
  2901. <script type="javascript" ev:event="onstartedit">
  2902. <![CDATA[
  2903. // 잘못된 입력을 취소하고 복구할 경우를 위해 수정전 상태를 기억해둔다.
  2904. var row = grd_clodhist.row;
  2905. model.setValue("/root/hidden/item5/clod/adjtresncd", model.getValue("/root/main/list2/clod["+ row +"]/adjtresncd"));
  2906. model.setValue("/root/hidden/item5/clod/orddd", model.getValue("/root/main/list2/clod["+ row +"]/orddd"));
  2907. model.setValue("/root/hidden/item5/clod/ordfromdd", model.getValue("/root/main/list2/clod["+ row +"]/ordfromdd"));
  2908. model.setValue("/root/hidden/item5/clod/ordtodd", model.getValue("/root/main/list2/clod["+ row +"]/ordtodd"));
  2909. model.setValue("/root/hidden/item5/clod/grupcalcscorcd", model.getValue("/root/main/list2/clod["+ row +"]/grupcalcscorcd"));
  2910. model.setValue("/root/hidden/item5/clod/snglcalcscorcd", model.getValue("/root/main/list2/clod["+ row +"]/snglcalcscorcd"));
  2911. model.setValue("/root/hidden/item5/clod/basecd", model.getValue("/root/main/list2/clod["+ row +"]/basecd"));
  2912. model.setValue("/root/hidden/item5/clod/drugqty", model.getValue("/root/main/list2/clod["+ row +"]/drugqty"));
  2913. model.setValue("/root/hidden/item5/clod/tims", model.getValue("/root/main/list2/clod["+ row +"]/tims"));
  2914. model.setValue("/root/hidden/item5/clod/dayno", model.getValue("/root/main/list2/clod["+ row +"]/dayno"));
  2915. model.setValue("/root/hidden/item5/clod/edidrugqty", model.getValue("/root/main/list2/clod["+ row +"]/edidrugqty"));
  2916. model.setValue("/root/hidden/item5/clod/edidayno", model.getValue("/root/main/list2/clod["+ row +"]/edidayno"));
  2917. model.setValue("/root/hidden/item5/clod/unitcost", model.getValue("/root/main/list2/clod["+ row +"]/unitcost"));
  2918. model.setValue("/root/hidden/item5/clod/rowstatus", grd_clodhist.rowstatus(row));
  2919. ]]>
  2920. </script>
  2921. <script type="javascript" ev:event="ondblclick">
  2922. <![CDATA[
  2923. if (grd_clodhist.isCell(event.target) && grd_clodhist.mouseRow >= grd_clodhist.fixedrows) {
  2924. var col = grd_clodhist.col;
  2925. if (col == grd_clodhist.colRef("estmmncd") || col == grd_clodhist.colRef("estmcd")) { // '산정의미' / '산정코드' 필드
  2926. var row = grd_clodhist.row;
  2927. var isEstm = false;
  2928. var matractflag = model.getValue("/root/main/list2/clod["+ row +"]/matractflag");
  2929. if (matractflag == "2") { // (P0137) 1 : 재료, 2 : 가산있는 행위, 3 : 가산없는 행위, 4:약제, - : 해당없음
  2930. isEstm = true;
  2931. } else {
  2932. // 검체코드 별로 EDI코드가 존재하는 경우 가X행위로 코드길이는 8자리이고 산정붙은 EDI코드와 basecd가 동일함.
  2933. // 산정코드 바꾸려면 처방 삭제후 신규추가해야하므로 코드 길이를 체크함 (picmediu 예:C4722616)
  2934. var basecd = model.getValue("/root/main/list2/clod["+ row +"]/basecd");
  2935. if (basecd.length == 5) {
  2936. // var estmmncd = model.getValue("/root/main/list2/clod["+ row +"]/estmmncd");
  2937. // if (estmmncd != "" && estmmncd != "-") {
  2938. isEstm = true;
  2939. } else {
  2940. var ediitem = model.getValue("/root/main/list2/clod["+ row +"]/ediitem");
  2941. if (ediitem == "0101" || ediitem == "0102" || ediitem == "0103"
  2942. || ediitem == "0201" || ediitem == "0202" || ediitem == "0203" || ediitem == "0204" || ediitem == "0299") {
  2943. isEstm = true;
  2944. }
  2945. }
  2946. }
  2947. if (isEstm == false) {
  2948. return;
  2949. }
  2950. fSrchEstmCd();
  2951. //model.refresh();
  2952. grd_clodhist.refresh();
  2953. }
  2954. else if (col == grd_clodhist.colRef("cnfmcd")) { // '확인코드' 필드
  2955. // 팝업을 이용하지 않고 직접 Edit하는 것을 막기 위해
  2956. grd_clodhist.colDisabled(grd_clodhist.colRef("cnfmcd")) = true;
  2957. // fOrderGridInsertCnfmCd();
  2958. }
  2959. else if (col == grd_clodhist.colRef("lnunitspclspecyn")) { // 'T' 필드
  2960. fSetLnUnitSpclSpec();
  2961. }
  2962. else if (col == grd_clodhist.colRef("toot1")) { // '치식' 필드
  2963. fDiagOrderToothInput("Order");
  2964. }
  2965. else if (col == grd_clodhist.colRef("grupcalcscorcd") || col == grd_clodhist.colRef("snglcalcscorcd") || col == grd_clodhist.colRef("basecd") || col == grd_clodhist.colRef("ediecd") || col == grd_clodhist.colRef("hngnm")) {
  2966. var row = grd_clodhist.row;
  2967. var rowstatus = grd_clodhist.rowstatus(row);
  2968. if (grd_clodhist.valueMatrix(row, col) != "" && rowstatus != 1) {
  2969. //상세계산내역조회
  2970. fGetOsclClamData("N", "grd_clodhist");
  2971. }
  2972. }
  2973. }
  2974. ]]>
  2975. </script>
  2976. <script type="javascript" ev:event="onaftersort">
  2977. <![CDATA[
  2978. grd_clodhist.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
  2979. fGetSelectedOrderData(); // 처방 조회부 - 재행/급여/항목구분 Radio 선택에 따라 처방 내역을 보여준다.
  2980. ]]>
  2981. </script>
  2982. <script type="javascript" ev:event="onentercell">
  2983. <![CDATA[
  2984. // col@type = "input" 일 경우 onentercell시점에 EditMode 상태 만들기
  2985. if (grd_clodhist.colType(grd_clodhist.col) == "input") {
  2986. if (event.button != 3 && grd_clodhist.colDisabled(grd_clodhist.col) == false) {
  2987. if (grd_clodhist.col != grd_clodhist.colRef("cnfmcd")) { // '확인코드' 필드
  2988. grd_clodhist.editCell();
  2989. } else {
  2990. // 팝업을 이용하지 않고 직접 Edit하는 것을 막기 위해
  2991. grd_clodhist.colDisabled(grd_clodhist.colRef("cnfmcd")) = true;
  2992. return;
  2993. }
  2994. }
  2995. } else {
  2996. if (grd_clodhist.colAttribute(grd_clodhist.col,"disabled") == "true") {
  2997. if ((grd_clodhist.cols - 1)> grd_clodhist.col) {
  2998. grd_clodhist.col = grd_clodhist.col + 1;
  2999. grd_clodhist.dispatch("onentercell");
  3000. }
  3001. }
  3002. }
  3003. ]]>
  3004. </script>
  3005. <script type="javascript" ev:event="onmouseover">
  3006. <![CDATA[
  3007. if (grd_clodhist.isCell(event.target) && grd_clodhist.mouseRow >= grd_clodhist.fixedrows) {
  3008. grd_clodhist.colDisabled(grd_clodhist.colRef("orddeptcd")) = true;
  3009. grd_clodhist.colDisabled(grd_clodhist.colRef("orddrid")) = true;
  3010. var clodstatus = grd_clodhist.rowstatus(grd_clodhist.mouseRow);
  3011. if (clodstatus == 0 || clodstatus == 2) { // 0 : new, 2 : update
  3012. // 조회된 처방에 대해서는 그룹/수가/EDI코드 입력을 제한한다.
  3013. grd_clodhist.colDisabled(grd_clodhist.colRef("grupcalcscorcd")) = true;
  3014. grd_clodhist.colDisabled(grd_clodhist.colRef("snglcalcscorcd")) = true;
  3015. grd_clodhist.colDisabled(grd_clodhist.colRef("basecd")) = true;
  3016. grd_clodhist.colDisabled(grd_clodhist.colRef("hngnm")) = true;
  3017. var payflag = model.getValue("/root/main/list2/clod["+ grd_clodhist.mouseRow +"]/payflag");
  3018. if (payflag == "0" || payflag == "9") {
  3019. // 급여 처방의 경우 1회투여량, 횟수, 일수 등 수정 가능
  3020. // 2008-12-03 edi1회량, edi일수 수정가능
  3021. grd_clodhist.colDisabled(grd_clodhist.colRef("ordfromdd")) = false;
  3022. grd_clodhist.colDisabled(grd_clodhist.colRef("drugqty")) = false;
  3023. grd_clodhist.colDisabled(grd_clodhist.colRef("tims")) = false;
  3024. grd_clodhist.colDisabled(grd_clodhist.colRef("dayno")) = false;
  3025. grd_clodhist.colDisabled(grd_clodhist.colRef("edidrugqty")) = false;
  3026. grd_clodhist.colDisabled(grd_clodhist.colRef("edidayno")) = false;
  3027. grd_clodhist.colDisabled(grd_clodhist.colRef("cnfmcd")) = false;
  3028. } else {
  3029. // 비급여, 0원 처방은 조회만 가능하다.
  3030. grd_clodhist.colDisabled(grd_clodhist.colRef("ordfromdd")) = true;
  3031. grd_clodhist.colDisabled(grd_clodhist.colRef("drugqty")) = true;
  3032. grd_clodhist.colDisabled(grd_clodhist.colRef("tims")) = true;
  3033. grd_clodhist.colDisabled(grd_clodhist.colRef("dayno")) = true;
  3034. grd_clodhist.colDisabled(grd_clodhist.colRef("edidrugqty")) = true;
  3035. grd_clodhist.colDisabled(grd_clodhist.colRef("edidayno")) = true;
  3036. grd_clodhist.colDisabled(grd_clodhist.colRef("cnfmcd")) = true;
  3037. }
  3038. } else {
  3039. grd_clodhist.colDisabled(grd_clodhist.colRef("grupcalcscorcd")) = false;
  3040. grd_clodhist.colDisabled(grd_clodhist.colRef("snglcalcscorcd")) = false;
  3041. grd_clodhist.colDisabled(grd_clodhist.colRef("basecd")) = false;
  3042. grd_clodhist.colDisabled(grd_clodhist.colRef("hngnm")) = false;
  3043. grd_clodhist.colDisabled(grd_clodhist.colRef("ordfromdd")) = false;
  3044. grd_clodhist.colDisabled(grd_clodhist.colRef("drugqty")) = false;
  3045. grd_clodhist.colDisabled(grd_clodhist.colRef("tims")) = false;
  3046. grd_clodhist.colDisabled(grd_clodhist.colRef("dayno")) = false;
  3047. grd_clodhist.colDisabled(grd_clodhist.colRef("edidrugqty")) = false;
  3048. grd_clodhist.colDisabled(grd_clodhist.colRef("edidayno")) = false;
  3049. grd_clodhist.colDisabled(grd_clodhist.colRef("cnfmcd")) = false;
  3050. }
  3051. var row = grd_clodhist.mouseRow;
  3052. var col = grd_clodhist.mouseCol;
  3053. if (col == grd_clodhist.colRef("estmmncd") || col == grd_clodhist.colRef("estmcd")) { // '산정의미' / '산정코드' 필드
  3054. var estmcls = model.getValue("/root/main/list2/clod["+ row +"]/estmcls");
  3055. var estmmncd = model.getValue("/root/main/list2/clod["+ row +"]/estmmncd");
  3056. var estmcd = model.getValue("/root/main/list2/clod["+ row +"]/estmcd");
  3057. var estmcdnm = model.getValue("/root/main/list2/clod["+ row +"]/estmcdnm");
  3058. if (estmcls && estmmncd && estmcdnm) {
  3059. grd_clodhist.tooltipText(row, col) = "[산정의미코드: " + estmmncd + "] " + estmcdnm;
  3060. } else {
  3061. grd_clodhist.tooltipText(row, col) = "";
  3062. }
  3063. }
  3064. //T컬럼의 툴팁에 특정내역 보여주기
  3065. if (col == grd_clodhist.colRef("lnunitspclspecyn")) {
  3066. var lnunitspclspec = model.getValue("/root/main/list2/clod["+ row +"]/lnunitspclspec");
  3067. grd_clodhist.tooltipText(row, col) = lnunitspclspec;
  3068. }
  3069. // 청구구분이 "추가청구" 일 경우에는 단가를 수정할 수 있다.
  3070. if (col == grd_clodhist.colRef("unitcost") && model.getValue("/root/main/item1/clbs/clamflagcd") == "2") {
  3071. grd_clodhist.colDisabled(grd_clodhist.colRef("unitcost")) = false;
  3072. } else {
  3073. grd_clodhist.colDisabled(grd_clodhist.colRef("unitcost")) = true;
  3074. }
  3075. }
  3076. ]]>
  3077. </script>
  3078. <script type="javascript" ev:event="DOMFocusOut">
  3079. <![CDATA[
  3080. initPopupMenu(); // (tfHelper.js) 사용자 팝업 설정 초기화
  3081. ]]>
  3082. </script>
  3083. <script type="javascript" ev:event="onbuttonclick">
  3084. <![CDATA[
  3085. var col = grd_clodhist.col;
  3086. var row = grd_clodhist.row;
  3087. if (col == grd_clodhist.colRef("ordfromdd")) { // 처방일시 달력을 클릭한 경우
  3088. var adjtresncd = model.getValue("/root/main/list2/clod["+ row +"]/adjtresncd");
  3089. if (adjtresncd == "" || adjtresncd == "-") { // 심사(조정)사유가 입력되지 않은 경우
  3090. var newcd = fSetAdjtResnCd();
  3091. if (newcd == "" || newcd == "-") {
  3092. cal_01.calendar.attribute("height") = 0;
  3093. //grd_clodhist.row = 0;
  3094. return;
  3095. }
  3096. }
  3097. cal_01.calendar.attribute("height") = 150;
  3098. model.setFocus("body");
  3099. model.setFocus("grd_clodhist");
  3100. grd_clodhist.dispatch("onentercell");
  3101. }
  3102. else if (col == grd_clodhist.colRef("cnfmcd")) {
  3103. fOrderGridInsertCnfmCd();
  3104. }
  3105. ]]>
  3106. </script>
  3107. <script type="javascript" ev:event="oncopy">
  3108. <![CDATA[
  3109. // 그리드 내용 복사
  3110. if (grd_clodhist.selectedRows == 1) { // 한줄
  3111. var row = grd_clodhist.row;
  3112. var col = grd_clodhist.col;
  3113. if (col == grd_clodhist.colRef("grupcalcscorcd") || col == grd_clodhist.colRef("snglcalcscorcd") || col == grd_clodhist.colRef("basecd") || col == grd_clodhist.colRef("hngnm")) {
  3114. // 그룹/수가/EDI코드/한글명
  3115. // var clip = grd_clodhist.valueMatrix(row, col);
  3116. var clip = grd_clodhist.labelMatrix(row, col);
  3117. // var clip = grd_clodhist.labelMatrix(grd_clodhist.mouseRow, grd_clodhist.mouseCol);
  3118. window.clipBoardData = clip;
  3119. } else {
  3120. grid_oncopy(); // (tfHelper.js) window.clipBoardData 복사 기능
  3121. }
  3122. }
  3123. else if (grd_clodhist.selectedRows > 1) { // 여러줄
  3124. grid_oncopy(); // (tfHelper.js) window.clipBoardData 복사 기능
  3125. }
  3126. ]]>
  3127. </script>
  3128. </datagrid>
  3129. <group id="grp_predoculist" visibility="hidden" scroll="autovscroll" style="left:315px; top:250px; width:797px; height:275px; border-color:#333333; border-style:solid; ">
  3130. <line id="line6" class="line_1" style="x1:0px; y1:45px; x2:760px; y2:45px; "/>
  3131. <datagrid id="grd_predocu" nodeset="/root/main/list4/clbs" class="datagrid2" caption="선택^청구년월^차수^순&#xA;번^내&#xA;원^개시일^종료일^주상병^분야^과^진료의^유&#xA;형^보&#xA;조^심사&#xA;상태^청구&#xA;상태^명일련^삭제&#xA;사유^clamkey" colsep="^" colwidth="25, 61, 42, 27, 19, 68, 70, 56, 44, 42, 49, 18, 18, 47, 69, 42, 30, 54" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:49px; width:769px; height:191px; ">
  3132. <col ref="chk" type="checkbox"/>
  3133. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  3134. <col ref="clamdg" style="text-align:center; "/>
  3135. <col ref="pidsn" style="text-align:center; "/>
  3136. <col ref="ioflag" format="yyyy-mm-dd" style="text-align:center; "/>
  3137. <col ref="ordfromdd" style="text-align:left; "/>
  3138. <col ref="ordtodd" style="text-align:left; "/>
  3139. <col ref="diagcd" style="text-align:left; "/>
  3140. <col disabled="true" ref="ordfildcd" type="combo" style="text-align:center; ">
  3141. <choices>
  3142. <itemset nodeset="/root/init/P0291list/P0291">
  3143. <label ref="cdnm"/>
  3144. <value ref="cdid"/>
  3145. </itemset>
  3146. </choices>
  3147. </col>
  3148. <col ref="orddeptcd" style="text-align:center; "/>
  3149. <col disabled="true" ref="orddrid" type="combo" style="text-align:center; ">
  3150. <choices>
  3151. <itemset nodeset="/root/init/orddrid/orddridlist">
  3152. <label ref="nm"/>
  3153. <value ref="cd"/>
  3154. </itemset>
  3155. </choices>
  3156. </col>
  3157. <col ref="insukind"/>
  3158. <col ref="suppkind"/>
  3159. <col disabled="true" ref="judgendyn" type="combo" style="text-align:center; ">
  3160. <choices>
  3161. <itemset nodeset="/root/init/P0151list/P0151">
  3162. <label ref="cdengabbrnm"/>
  3163. <value ref="cdid"/>
  3164. </itemset>
  3165. </choices>
  3166. </col>
  3167. <col ref="clamstat" style="text-align:center; "/>
  3168. <col ref="docuseqno"/>
  3169. <col ref="delresn" style="text-align:right; "/>
  3170. <col ref="clamkey" visibility="hidden" style="background-color:#c0c0c0; "/>
  3171. <script type="javascript" ev:event="ondblclick">
  3172. <![CDATA[
  3173. // 이전 명세서 목록
  3174. fPreListOnDblClick();
  3175. ]]>
  3176. </script>
  3177. <script type="javascript" ev:event="onaftersort">
  3178. <![CDATA[
  3179. grd_predocu.gridToInstance();
  3180. ]]>
  3181. </script>
  3182. </datagrid>
  3183. <button id="btn_closepredoculist" class="btn4_letter2" style="left:610px; top:244px; width:56px; height:22px; ">
  3184. <caption>닫기</caption>
  3185. <script type="javascript" ev:event="DOMActivate">
  3186. <![CDATA[
  3187. fGetClosepredocuList();
  3188. ]]>
  3189. </script>
  3190. </button>
  3191. <select1 id="rdo_refterm" ref="/root/send/list4/refterm" appearance="full" cellspacing="6" cols="6" overflow="visible" style="left:63px; top:27px; width:377px; height:17px; border-style:none; ">
  3192. <choices>
  3193. <item>
  3194. <label>전체</label>
  3195. <value>-</value>
  3196. </item>
  3197. <item>
  3198. <label>1개월</label>
  3199. <value>1</value>
  3200. </item>
  3201. <item>
  3202. <label>3개월</label>
  3203. <value>3</value>
  3204. </item>
  3205. <item>
  3206. <label>6개월</label>
  3207. <value>6</value>
  3208. </item>
  3209. <item>
  3210. <label>기간선택</label>
  3211. <value>0</value>
  3212. </item>
  3213. <item>
  3214. <label>동일월</label>
  3215. <value>7</value>
  3216. </item>
  3217. </choices>
  3218. <script type="javascript" ev:event="xforms-value-changed">
  3219. <![CDATA[
  3220. var refterm = model.getValue("/root/send/list4/refterm");
  3221. if (refterm == "0") {
  3222. ipt_fromdd.disabled = false;
  3223. ipt_todd.disabled = false;
  3224. } else {
  3225. ipt_fromdd.disabled = true;
  3226. ipt_todd.disabled = true;
  3227. }
  3228. fSrchPreDocuList();
  3229. ]]>
  3230. </script>
  3231. </select1>
  3232. <select id="chk_allordfild" ref="/root/send/list4/allordfild" class="check_fSetDelOrdPreDocuSizesearch" overflow="visible" appearance="full" style="left:292px; top:5px; width:87px; height:17px; border-style:none; ">
  3233. <choices>
  3234. <item>
  3235. <label>타 분야 포함</label>
  3236. <value>Y</value>
  3237. </item>
  3238. </choices>
  3239. <script type="javascript" ev:event="xforms-value-changed">
  3240. <![CDATA[
  3241. fSrchPreDocuList();
  3242. ]]>
  3243. </script>
  3244. </select>
  3245. <caption id="caption3" style="left:537px; top:27px; width:11px; height:17px; ">~</caption>
  3246. <caption id="caption19" class="search_name" style="left:0px; top:25px; width:60px; height:17px; ">기간 :</caption>
  3247. <input id="ipt_todd" ref="/root/send/list4/todd" class="input_default" disabled="true" inputtype="date" style="left:549px; top:25px; width:85px; height:19px; ">
  3248. <script type="javascript" ev:event="xforms-value-changed">
  3249. <![CDATA[
  3250. fSrchPreDocuList();
  3251. // var fromdd = model.getValue("/root/send/list4/fromdd");
  3252. // var todd = model.getValue("/root/send/list4/todd");
  3253. // if (isValidDateTime(todd)) { // (dateHelper.js) 유효한 날짜, 시간 인지 점검
  3254. // if (isValidDateTime(fromdd)) {
  3255. // var dateDif = getDateInterval(fromdd, todd); // (dateHelper.js) 두 일자사이의 차를 일단위로 반환
  3256. // if (dateDif < 0) {
  3257. // messageBox("검색 시작일자가 종료일자 보다 이후", "E008"); ///검색 시작일자가 종료일자 보다 이후 입니다.
  3258. // } else {
  3259. // fSrchPreDocuList();
  3260. // }
  3261. // }
  3262. // }
  3263. ]]>
  3264. </script>
  3265. </input>
  3266. <select1 id="rdo_ioflag" ref="/root/send/list4/ioflag" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:398px; top:5px; width:140px; height:17px; border-style:none; ">
  3267. <choices>
  3268. <item>
  3269. <label>전체</label>
  3270. <value>-</value>
  3271. </item>
  3272. <item>
  3273. <label>입원</label>
  3274. <value>I</value>
  3275. </item>
  3276. <item>
  3277. <label>외래</label>
  3278. <value>O</value>
  3279. </item>
  3280. </choices>
  3281. <script type="javascript" ev:event="xforms-select">
  3282. <![CDATA[
  3283. fSrchPreDocuList();
  3284. ]]>
  3285. </script>
  3286. </select1>
  3287. <input id="ipt_fromdd" ref="/root/send/list4/fromdd" class="input_default" disabled="true" inputtype="date" style="left:451px; top:25px; width:85px; height:19px; ">
  3288. <script type="javascript" ev:event="xforms-value-changed">
  3289. <![CDATA[
  3290. fSrchPreDocuList();
  3291. // var fromdd = model.getValue("/root/send/list4/fromdd");
  3292. // var todd = model.getValue("/root/send/list4/todd");
  3293. // if (isValidDateTime(fromdd)) { // (dateHelper.js) 유효한 날짜, 시간 인지 점검
  3294. // if (isValidDateTime(todd)) {
  3295. // var dateDif = getDateInterval(fromdd, todd); // (dateHelper.js) 두 일자사이의 차를 일단위로 반환
  3296. // if (dateDif < 0) {
  3297. // messageBox("검색 시작일자가 종료일자 보다 이후", "E008"); ///검색 시작일자가 종료일자 보다 이후 입니다.
  3298. // } else {
  3299. // fSrchPreDocuList();
  3300. // }
  3301. // }
  3302. // }
  3303. ]]>
  3304. </script>
  3305. </input>
  3306. <caption id="cap_grptemp" class="tit_2" style="left:5px; top:5px; width:118px; height:13px; ">이전 명세서 목록</caption>
  3307. <button id="btn_readpopup" class="btn4_letter8" visibility="visible" style="left:348px; top:244px; width:128px; height:22px; ">
  3308. <caption>선택명세서 조회</caption>
  3309. <script type="javascript" ev:event="DOMActivate">
  3310. <![CDATA[
  3311. // 이전 명세서 목록
  3312. fPreListOnDblClick();
  3313. ]]>
  3314. </script>
  3315. </button>
  3316. <button id="btn_judgmode" class="btn4_letter8" visibility="visible" style="left:479px; top:244px; width:128px; height:22px; ">
  3317. <caption>선택명세서 심사</caption>
  3318. <script type="javascript" ev:event="DOMActivate">
  3319. <![CDATA[
  3320. // 선택한 명세서로 화면 refresh
  3321. fGetPreDocuAftJudgTrgtMan();
  3322. ]]>
  3323. </script>
  3324. </button>
  3325. <button id="btn_copydiag" class="btn4_letter4" disabled="true" style="left:5px; top:244px; width:80px; height:22px; ">
  3326. <caption>상병복사</caption>
  3327. <script type="javascript" ev:event="DOMActivate">
  3328. <![CDATA[
  3329. fCopyDiagMemo("1");
  3330. ]]>
  3331. </script>
  3332. </button>
  3333. <button id="btn_copyedimemo" class="btn4_letter6" disabled="true" style="left:85px; top:244px; width:104px; height:22px; ">
  3334. <caption>EDI메모복사</caption>
  3335. <script type="javascript" ev:event="DOMActivate">
  3336. <![CDATA[
  3337. fCopyDiagMemo("2");
  3338. ]]>
  3339. </script>
  3340. </button>
  3341. <button id="btn_copydiagedimemo" class="btn4_letter6" disabled="true" style="left:190px; top:244px; width:104px; height:22px; ">
  3342. <caption>상병메모복사</caption>
  3343. <script type="javascript" ev:event="DOMActivate">
  3344. <![CDATA[
  3345. fCopyDiagMemo("3");
  3346. ]]>
  3347. </script>
  3348. </button>
  3349. </group>
  3350. <group id="grp_ordsrch" style="left:0px; top:165px; width:570px; height:86px; ">
  3351. <shape id="roundrect3" appearance="roundrect" style="left:0px; top:1px; width:563px; height:80px; "/>
  3352. <select1 id="rdo_payflag" ref="/root/hidden/list2/clodsrch/selectedRdoPay" appearance="full" cellspacing="5" cols="5" overflow="visible" style="left:9px; top:22px; width:266px; height:16px; ">
  3353. <choices>
  3354. <item>
  3355. <label>전체</label>
  3356. <value>-</value>
  3357. </item>
  3358. <item>
  3359. <label>급여</label>
  3360. <value>0</value>
  3361. </item>
  3362. <item>
  3363. <label>전액본인</label>
  3364. <value>1</value>
  3365. </item>
  3366. <item>
  3367. <label>비급여</label>
  3368. <value>2</value>
  3369. </item>
  3370. <item>
  3371. <label>선택</label>
  3372. <value>8</value>
  3373. </item>
  3374. </choices>
  3375. <script type="javascript" ev:event="xforms-value-changed">
  3376. <![CDATA[
  3377. // 급여구분별 처방조회
  3378. fClodSelectByPayflag();
  3379. ]]>
  3380. </script>
  3381. </select1>
  3382. <select1 id="rdo_item1" ref="/root/hidden/list2/clodsrch/selectedRdoItem" appearance="full" cellspacing="3" cols="13" overflow="visible" style="left:9px; top:2px; width:516px; height:19px; ">
  3383. <choices>
  3384. <item>
  3385. <label>전체</label>
  3386. <value>-</value>
  3387. </item>
  3388. <item>
  3389. <label>진찰</label>
  3390. <value>01</value>
  3391. </item>
  3392. <!--
  3393. <item>
  3394. <label>입원</label>
  3395. <value>02</value>
  3396. </item>
  3397. -->
  3398. <item>
  3399. <label>투약</label>
  3400. <value>03</value>
  3401. </item>
  3402. <item>
  3403. <label>주사</label>
  3404. <value>04</value>
  3405. </item>
  3406. <item>
  3407. <label>마취</label>
  3408. <value>05</value>
  3409. </item>
  3410. <item>
  3411. <label>이학</label>
  3412. <value>06</value>
  3413. </item>
  3414. <item>
  3415. <label>정신</label>
  3416. <value>07</value>
  3417. </item>
  3418. <item>
  3419. <label>수술</label>
  3420. <value>08</value>
  3421. </item>
  3422. <item>
  3423. <label>검사</label>
  3424. <value>09</value>
  3425. </item>
  3426. <item>
  3427. <label>방사</label>
  3428. <value>10</value>
  3429. </item>
  3430. <item>
  3431. <label>특수</label>
  3432. <value>SS</value>
  3433. </item>
  3434. </choices>
  3435. <script type="javascript" ev:event="xforms-select">
  3436. <![CDATA[
  3437. fGetSelectedOrderData(); // 처방 조회부 - 재행/급여/항목구분 Radio 선택에 따라 처방 내역을 보여준다.
  3438. ]]>
  3439. </script>
  3440. </select1>
  3441. <button id="btn_rdoItemPre" class="icon_pre" style="left:529px; top:3px; width:13px; height:15px; ">
  3442. <caption/>
  3443. <script type="javascript" ev:event="DOMActivate">
  3444. <![CDATA[
  3445. /*
  3446. var selectedIndex = rdo_item1.selectedIndex; // 아이템의 인덱스를 반환한다.
  3447. var itemRadioList = instance1.selectSingleNode("/root/hidden/list2/cloditem1");
  3448. var itemNode = itemRadioList.childNodes;
  3449. var isFind = false;
  3450. var preIndex = itemNode.length - 1; // itemNode.length = 11
  3451. if (selectedIndex > 0) {
  3452. preIndex = parseInt(selectedIndex) - 1;
  3453. }
  3454. for (var i = preIndex; i > 0; i--) {
  3455. if (rdo_item1.item(i).attribute("font-weight") == "bold") {
  3456. preIndex = i;
  3457. i = 0;
  3458. isFind = true;
  3459. }
  3460. }
  3461. if (isFind) {
  3462. rdo_item1.selectedIndex = preIndex;
  3463. } else {
  3464. rdo_item1.selectedIndex = 0;
  3465. }
  3466. */
  3467. var selectedIndex = rdo_item1.selectedIndex; // 아이템의 인덱스를 반환한다.
  3468. var itemRadioList = instance1.selectSingleNode("/root/hidden/list2/cloditem1");
  3469. var itemNode = itemRadioList.childNodes;
  3470. var preIndex = itemNode.length - 1; // itemNode.length = 11
  3471. if (selectedIndex > 0) {
  3472. preIndex = parseInt(selectedIndex) - 1;
  3473. }
  3474. rdo_item1.selectedIndex = preIndex;
  3475. fGetSelectedOrderData(); // 처방 조회부 - 재행/급여/항목구분 Radio 선택에 따라 처방 내역을 보여준다.
  3476. ]]>
  3477. </script>
  3478. </button>
  3479. <button id="btn_rdoItemNext" class="icon_next" style="left:545px; top:3px; width:13px; height:15px; ">
  3480. <caption/>
  3481. <script type="javascript" ev:event="DOMActivate">
  3482. <![CDATA[
  3483. /*
  3484. var selectedIndex = rdo_item1.selectedIndex;
  3485. var itemRadioList = instance1.selectSingleNode("/root/hidden/list2/cloditem1");
  3486. var itemNode = itemRadioList.childNodes;
  3487. var isFind = false;
  3488. var nextIndex = 0;
  3489. if (selectedIndex < (itemNode.length - 1)) { // 전체~특수 12개의 Radio Item => 입원 항목을 제외시켜 총 11개임
  3490. nextIndex = parseInt(selectedIndex) + 1;
  3491. }
  3492. for (var i = nextIndex; i < itemNode.length; i++) {
  3493. if (rdo_item1.item(i).attribute("font-weight") == "bold") {
  3494. nextIndex = i;
  3495. i = itemNode.length;
  3496. isFind = true;
  3497. }
  3498. }
  3499. if (isFind) {
  3500. rdo_item1.selectedIndex = nextIndex;
  3501. } else {
  3502. rdo_item1.selectedIndex = 0; // 0 = 가장 첫번째 item 항목임
  3503. }
  3504. */
  3505. var selectedIndex = rdo_item1.selectedIndex;
  3506. var itemRadioList = instance1.selectSingleNode("/root/hidden/list2/cloditem1");
  3507. var itemNode = itemRadioList.childNodes;
  3508. var nextIndex = 0;
  3509. if (selectedIndex < (itemNode.length - 1)) { // 전체~특수 12개의 Radio Item => 입원 항목을 제외시켜 총 11개임
  3510. nextIndex = parseInt(selectedIndex) + 1;
  3511. }
  3512. rdo_item1.selectedIndex = nextIndex;
  3513. fGetSelectedOrderData(); // 처방 조회부 - 재행/급여/항목구분 Radio 선택에 따라 처방 내역을 보여준다.
  3514. ]]>
  3515. </script>
  3516. </button>
  3517. <button id="btn_initfilter" class="btn2_letter5" style="left:351px; top:20px; width:75px; height:19px; ">
  3518. <caption>필터초기화</caption>
  3519. <script type="javascript" ev:event="DOMActivate">
  3520. <![CDATA[
  3521. // 처방 Grid 필터용 조회조건을 초기화한다.
  3522. fInitOrderFilter();
  3523. fGetSelectedOrderData();
  3524. // 필터초기화버튼 클릭시 급여구분이 "급여"가 아니면 급여로 처방을 다시 조회한다.
  3525. if (model.getValue("/root/hidden/list2/clodsrch/selectedRdoPay") != "0") {
  3526. fClodSelectByPayflag();
  3527. }
  3528. ]]>
  3529. </script>
  3530. </button>
  3531. <select id="checkbox1" ref="/root/hidden/edicheck" overflow="visible" appearance="full" style="left:278px; top:22px; width:70px; height:17px; border-style:none; ">
  3532. <choices>
  3533. <item>
  3534. <label>재원비교</label>
  3535. <value>Y</value>
  3536. </item>
  3537. </choices>
  3538. <script type="javascript" ev:event="xforms-value-changed">
  3539. <![CDATA[
  3540. fEdiCheck();
  3541. ]]>
  3542. </script>
  3543. </select>
  3544. <caption id="caption33" class="search_name" style="left:475px; top:23px; width:80px; height:17px; ">필수심사</caption>
  3545. <output id="output3" ref="/root/main/item1/clbs/surecd" class="output_fix" style="left:254px; top:41px; width:305px; height:19px; "/>
  3546. <button id="btn_delordlist" class="btn2_letter3" _auth="R" style="left:10px; top:40px; width:53px; height:19px; ">
  3547. <caption>휴지통</caption>
  3548. <script type="javascript" ev:event="DOMActivate">
  3549. <![CDATA[
  3550. if (grp_delclodlist.visible == true) {
  3551. // 처방휴지통목록
  3552. cap_grptemp.visible = false;
  3553. grp_delclodlist.visible = false;
  3554. grd_clodhist.attribute("width") = "1114";
  3555. ln_clodhist.attribute("x2") = "1114";
  3556. } else {
  3557. grp_delclodlist.visible = true;
  3558. grp_predoculist.visible = false; // 이전 명세서 목록
  3559. grp_delorderlist.visible = false; // 심사변경 목록
  3560. fSetDelOrdPreDocuSize();
  3561. }
  3562. ]]>
  3563. </script>
  3564. <script type="javascript" ev:event="onmousemove">
  3565. <![CDATA[
  3566. var delClodNode = instance1.selectSingleNode("/root/main/list6/delclod");
  3567. if (delClodNode != null) {
  3568. grp_delclodlist.visible = true;
  3569. grp_predoculist.visible = false; // 이전 명세서 목록
  3570. grp_delorderlist.visible = false; // 심사변경 목록
  3571. fSetDelOrdPreDocuSize();
  3572. }
  3573. ]]>
  3574. </script>
  3575. </button>
  3576. <button id="btn_delordsrch" class="btn2_letter4" _auth="R" style="left:65px; top:40px; width:64px; height:19px; ">
  3577. <caption>심사변경</caption>
  3578. <script type="javascript" ev:event="DOMActivate">
  3579. <![CDATA[
  3580. var clamym = model.getValue("/root/main/item1/clbs/clamym");
  3581. if (clamym) { // 조회된 심사대상자가 있음
  3582. open("SPPID21800", "1", "10", "10", "SPPID21800", "/root/main/list2", "/root/init/list2", "", ""); // SPPID21800_처방심사변경조회.xrw
  3583. }
  3584. /**
  3585. if (grp_delorderlist.visible == true) {
  3586. // 심사변경 목록
  3587. cap_grptemp.visible = false;
  3588. grp_delorderlist.visible = false;
  3589. grd_clodhist.attribute("width") = "1114";
  3590. ln_clodhist.attribute("x2") = "1114";
  3591. } else {
  3592. // var delOrderNode = instance1.selectSingleNode("/root/main/list5");
  3593. // if (delOrderNode == null) { // 이전에 조회된 내용이 없음
  3594. // var clamym = model.getValue("/root/main/item1/clbs/clamym");
  3595. // if (clamym) { // 조회된 심사대상자가 있음
  3596. // submit("TRPID20505");
  3597. // model.refresh();
  3598. // }
  3599. // }
  3600. grp_delorderlist.visible = true;
  3601. grp_predoculist.visible = false; // 이전 명세서 목록
  3602. grp_delclodlist.visible = false; // 처방 휴지통
  3603. fSetDelOrdPreDocuSize();
  3604. var clamym = model.getValue("/root/main/item1/clbs/clamym");
  3605. if (clamym) { // 조회된 심사대상자가 있음
  3606. submit("TRPID20505");
  3607. for (var i = grd_delorder.fixedRows; i < grd_delorder.rows; i++) {
  3608. grd_delorder.cellStyle("background-image", i, grd_delorder.colRef("update")) = "../../../com/commonweb/images/icon_d.gif";
  3609. }
  3610. for (var i = grd_clodhist.fixedRows; i < grd_clodhist.rows; i++) {
  3611. var adjtresncd = model.getValue("/root/main/list2/clod["+ i +"]/adjtresncd");
  3612. if (adjtresncd) {
  3613. grd_delorder.addRow();
  3614. model.copyNode("/root/main/list5/clod["+ grd_delorder.row +"]", "/root/main/list2/clod["+ i +"]"); // desc, sorce
  3615. var rowstatus = grd_clodhist.rowstatus(i);
  3616. if (rowstatus == 1 || rowstatus == 3) { // 1 : insert, 3 : insert & new
  3617. grd_delorder.cellStyle("background-image", grd_delorder.row, grd_delorder.colRef("update")) = "../../../com/commonweb/images/icon_i.gif";
  3618. }
  3619. else if (rowstatus == 2) { // 2 : update
  3620. grd_delorder.cellStyle("background-image", grd_delorder.row, grd_delorder.colRef("update")) = "../../../com/commonweb/images/icon_u.gif";
  3621. }
  3622. }
  3623. }
  3624. model.refresh();
  3625. }
  3626. }
  3627. */
  3628. ]]>
  3629. </script>
  3630. <script type="javascript" ev:event="onmousemove">
  3631. <![CDATA[
  3632. // var preDocuNode = instance1.selectSingleNode("/root/main/list5/clod");
  3633. // if (preDocuNode != null) {
  3634. // grp_delorderlist.visible = true;
  3635. // grp_predoculist.visible = false; // 이전 명세서 목록
  3636. // grp_delclodlist.visible = false; // 처방 휴지통
  3637. // fSetDelOrdPreDocuSize();
  3638. // }
  3639. ]]>
  3640. </script>
  3641. </button>
  3642. <button id="btn_bfjudgdocu" class="btn2_letter3" _auth="X" style="left:131px; top:40px; width:53px; height:19px; ">
  3643. <caption>심사전</caption>
  3644. <script type="javascript" ev:event="DOMActivate">
  3645. <![CDATA[
  3646. var clamym = model.getValue("/root/main/item1/clbs/clamym");
  3647. var clamdg = model.getValue("/root/main/item1/clbs/clamdg");
  3648. var pid = model.getValue("/root/main/item1/clbs/pid");
  3649. var pidsn = model.getValue("/root/main/item1/clbs/pidsn");
  3650. if (clamym) {
  3651. var preDocuWindow = getChildWindow("SMPID20300");
  3652. if (preDocuWindow != null) {
  3653. var rslt = preDocuWindow.javascript.fInitSrchData(); // 화면을 초기화한다.
  3654. if (rslt == false) { // 수정사항 저장이 완료되지 않아 초기화할 수 없는 경우
  3655. activateChild("SMPID20300");
  3656. return false;
  3657. }
  3658. preDocuWindow.close();
  3659. }
  3660. preDocuWindow = getChildWindow("SMPID20500");
  3661. if (preDocuWindow == null) {
  3662. // open("SMPID20500", "2", "10", "10", "SMPID20500", "/root/main/list4/clbs["+ row +"]/clamym", "/root/send/item1/clbs/clamym", "", "");
  3663. model.setValue("/root/send/item1/clbs/workflag", "11");
  3664. model.setValue("/root/send/item1/clbs/clamym", clamym);
  3665. model.setValue("/root/send/item1/clbs/clamdg", clamdg);
  3666. model.setValue("/root/send/item1/clbs/pid", pid);
  3667. model.setValue("/root/send/item1/clbs/pidsn", pidsn);
  3668. model.setValue("/root/send/item1/clbs/ioflag", "O");
  3669. open("SMPID20500", "2", "10", "10", "SMPID20500", "/root/send/item1/clbs", "/root/send/item1/clbs", "", ""); // SMPID20500_외래사후심사관리
  3670. } else { // 이전명세서 용도의 SMPID20500_입원사후심사관리 Popup 화면이 이미 열려있는 경우
  3671. model.setValue("/root/hidden/smpid20500/cond/workflag", "11");
  3672. model.setValue("/root/hidden/smpid20500/cond/clamym", clamym);
  3673. model.setValue("/root/hidden/smpid20500/cond/clamdg", clamdg);
  3674. model.setValue("/root/hidden/smpid20500/cond/pid", pid);
  3675. model.setValue("/root/hidden/smpid20500/cond/pidsn", pidsn);
  3676. model.setValue("/root/hidden/smpid20500/cond/ioflag", "O");
  3677. preDocuWindow.javascript.fActivatePreDocuWindow();
  3678. activateChild("SMPID20500");
  3679. }
  3680. }
  3681. ]]>
  3682. </script>
  3683. </button>
  3684. <select1 id="cmb_adjtresncd" ref="/root/hidden/list2/clodstat/cmbAdjtresncd" class="combo_default" appearance="minimal" showvalue="true" _auth="R" style="left:306px; top:61px; width:125px; height:19px; ">
  3685. <choices>
  3686. <itemset nodeset="/root/init/P0127list/P0127">
  3687. <label ref="cdnm"/>
  3688. <value ref="cdid"/>
  3689. </itemset>
  3690. </choices>
  3691. <hint>
  3692. <![CDATA[심사조정사유]]>
  3693. </hint>
  3694. </select1>
  3695. <select1 id="cmb_docudelresncd" ref="/root/main/item1/clbs/docudelresncd" class="combo_default" appearance="minimal" editmode="input" showvalue="false" _auth="R" style="left:434px; top:61px; width:125px; height:19px; ">
  3696. <choices>
  3697. <itemset nodeset="/root/init/P0465list/P0465">
  3698. <label ref="cdnm"/>
  3699. <value ref="cdid"/>
  3700. </itemset>
  3701. </choices>
  3702. <hint>
  3703. <![CDATA[명세서삭제사유]]>
  3704. </hint>
  3705. <script type="javascript" ev:event="onclick">
  3706. <![CDATA[
  3707. //삭제사유 선택시 삭세상세사유 group 보이기
  3708. grp_desc.visible = true;
  3709. ]]>
  3710. </script>
  3711. </select1>
  3712. <select1 id="cmb_abdresncd" ref="/root/main/item1/clbs/abdresncd" class="combo_default" appearance="minimal" showvalue="false" _auth="R" style="left:65px; top:61px; width:110px; height:19px; ">
  3713. <choices>
  3714. <itemset nodeset="/root/init/P0466list/P0466">
  3715. <label ref="cdnm"/>
  3716. <value ref="cdid"/>
  3717. </itemset>
  3718. </choices>
  3719. <hint>
  3720. <![CDATA[반송부제기사유]]>
  3721. </hint>
  3722. </select1>
  3723. <select1 id="cmb_suppkindchgresn" ref="/root/main/item1/clbs/suppkindchgresn" class="combo_default" appearance="minimal" showvalue="true" _auth="R" style="left:178px; top:61px; width:125px; height:19px; ">
  3724. <choices>
  3725. <itemset nodeset="/root/init/P0491list/P0491">
  3726. <label ref="cdnm"/>
  3727. <value ref="cdid"/>
  3728. </itemset>
  3729. </choices>
  3730. <hint>
  3731. <![CDATA[자격수정사유]]>
  3732. </hint>
  3733. </select1>
  3734. </group>
  3735. <caption id="cap_clod" class="tit_2" style="left:10px; top:230px; width:43px; height:13px; ">
  3736. <![CDATA[처방]]>
  3737. <script type="javascript" ev:event="onclick">
  3738. <![CDATA[
  3739. // 처방조회부, 처방 Grid용 Group의 컨트롤 크기를 설정한다.
  3740. fSetOrderControlSize2();
  3741. // 이전명세서, 처방휴지통, 삭제처방 Group의 컨트롤 크기를 설정한다.
  3742. fSetDelOrdPreDocuSize();
  3743. ]]>
  3744. </script>
  3745. </caption>
  3746. <line id="ln_clodhist" class="line_1" style="x1:0px; y1:246px; x2:1192px; y2:246px; "/>
  3747. <button id="btn_oscllist" class="btn2_letter5" _auth="R" style="left:1117px; top:535px; width:75px; height:19px; ">
  3748. <caption>상세내역</caption>
  3749. <script type="javascript" ev:event="DOMActivate">
  3750. <![CDATA[
  3751. fGetOsclClamData("ALL", "grd_clodhist");
  3752. ]]>
  3753. </script>
  3754. </button>
  3755. <button id="btn_emrpatinfo" class="btn2_letter5" visibility="visible" _auth="R" style="left:1117px; top:426px; width:75px; height:19px; ">
  3756. <caption>진료정보</caption>
  3757. <script type="javascript" ev:event="DOMActivate">
  3758. <![CDATA[
  3759. //진료정보조회 : SMMMO02500_환자진료정보.xrw
  3760. fGetEmrInformation();
  3761. ]]>
  3762. </script>
  3763. </button>
  3764. <button id="btn_EnvSetup" class="btn2_letter5" visibility="hidden" _auth="P" style="left:1116px; top:577px; width:75px; height:19px; ">
  3765. <caption>환경저장</caption>
  3766. <script type="javascript" ev:event="DOMActivate">
  3767. <![CDATA[
  3768. // getOrderInfoOfCol("grd_clodhist");
  3769. var refdata = ""; // ref
  3770. var sizedata = ""; // size
  3771. var grdobj = document.controls.item("grd_clodhist");
  3772. for (var i = 0; i < grdobj.cols; i++) {
  3773. var refval = grdobj.colAttribute(i, "ref");
  3774. refdata += refval + "^";
  3775. var sizeval = grdobj.colWidth(i);
  3776. sizedata += sizeval + "^";
  3777. }
  3778. refdata = refdata.substring(0, refdata.length-1);
  3779. sizedata = sizedata.substring(0, sizedata.length-1);
  3780. var compscnts = model.getValue("/root/hidden/listval/uuee/compscnts"); // Grid의 칼럼명
  3781. var compssizecnts = model.getValue("/root/hidden/listval/uuee/compssizecnts"); // Grid의 칼럼Size
  3782. if (refdata == compscnts && sizedata == compssizecnts) {
  3783. messageBox("변경된 데이터가", "I004"); ///변경된 데이터가 없습니다.
  3784. return;
  3785. }
  3786. var scrnid = model.getValue("/root/hidden/listval/uuee/scrnid"); // 화면(xrw)의 ID
  3787. if (scrnid == "") {
  3788. model.setValue("/root/send/listval/uuee/flag", "I");
  3789. } else {
  3790. model.setValue("/root/send/listval/uuee/flag", "U");
  3791. }
  3792. model.setValue("/root/send/listval/uuee/scrnid", "SMPID20500"); // 화면(xrw)의 ID - SMPID20500_외래사후심사관리
  3793. model.setValue("/root/send/listval/uuee/compsnm", "grd_clodhist"); // Grid ID 정보
  3794. model.setValue("/root/send/listval/uuee/compscnts", refdata); // Grid의 칼럼명
  3795. model.setValue("/root/send/listval/uuee/compsrefcnts", ""); // Grid의 reference명
  3796. model.setValue("/root/send/listval/uuee/compssizecnts", sizedata); // Grid의 칼럼Size
  3797. if (submit("TXPID21601")) {
  3798. messageBox("사용자 환경 저장이", "I002"); ///사용자 환경 저장이 완료되었습니다.
  3799. //그리드 caption 재지정
  3800. var caption = ""
  3801. for( var i = 1; i < grdobj.cols ; i++ ){
  3802. if (caption == "") {
  3803. caption = grdobj.textMatrix(0,i);
  3804. } else {
  3805. caption += "^" + grdobj.textMatrix(0,i);
  3806. }
  3807. }
  3808. grdobj.caption = caption;
  3809. }
  3810. ]]>
  3811. </script>
  3812. <hint>
  3813. <![CDATA[처방item 순서저장]]>
  3814. </hint>
  3815. </button>
  3816. <group id="grp_desc" visibility="hidden" style="left:435px; top:250px; width:255px; height:189px; border-color:#c7a3cf; border-style:solid; ">
  3817. <line id="line19" class="line_1" style="x1:0px; y1:64px; x2:250px; y2:64px; "/>
  3818. <caption id="caption24" class="tit_2" style="left:6px; top:49px; width:129px; height:13px; ">삭제상세사유</caption>
  3819. <textarea id="txtr_adjtresndesc" ref="/root/main/item1/clbs/adjtresndesc" style="left:0px; top:69px; width:250px; height:85px; text-align:left; vertical-align:top; "/>
  3820. <button id="button8" class="btn4_letter2" style="left:193px; top:159px; width:56px; height:22px; ">
  3821. <caption>확인</caption>
  3822. <script type="javascript" ev:event="DOMActivate">
  3823. <![CDATA[
  3824. var judgendyn = model.getValue("/root/main/item1/clbs/judgendyn");
  3825. if(judgendyn == "D") {
  3826. model.setValue("/root/send/item1/clbs/docudelresncd", model.getValue("/root/main/item1/clbs/docudelresncd"));
  3827. model.setValue("/root/send/item1/clbs/adjtresndesc", model.getValue("/root/main/item1/clbs/adjtresndesc"));
  3828. submit("TXPID20307");
  3829. messageBox("","I001");
  3830. }
  3831. grp_desc.visible = false;
  3832. ]]>
  3833. </script>
  3834. </button>
  3835. <button id="button9" class="btn4_letter2" visibility="hidden" style="left:79px; top:159px; width:56px; height:22px; ">
  3836. <caption>닫기</caption>
  3837. <script type="javascript" ev:event="DOMActivate">
  3838. <![CDATA[
  3839. model.makeValue("/root/main/item1/clbs/adjtresndesc", "");
  3840. grp_desc.visible = false;
  3841. ]]>
  3842. </script>
  3843. </button>
  3844. <caption id="caption31" class="tit_2" style="left:6px; top:4px; width:129px; height:13px; ">삭제사유</caption>
  3845. <line id="line21" class="line_1" style="x1:0px; y1:19px; x2:250px; y2:19px; "/>
  3846. <select1 id="combo1" ref="/root/main/item1/clbs/docudelresncd" class="combo_default" appearance="minimal" showvalue="false" _auth="R" style="left:0px; top:24px; width:250px; height:19px; ">
  3847. <choices>
  3848. <itemset nodeset="/root/init/P0465list/P0465">
  3849. <label ref="cdnm"/>
  3850. <value ref="cdid"/>
  3851. </itemset>
  3852. </choices>
  3853. <hint>
  3854. <![CDATA[명세서삭제사유]]>
  3855. </hint>
  3856. </select1>
  3857. </group>
  3858. </group>
  3859. <group id="grp_calendar" scroll="none" style="left:569px; top:267px; width:622px; height:81px; ">
  3860. <datagrid id="grd_ordddcalc" nodeset="/root/hidden/orddddisp" class="gridcalendar" caption="일^월^화^수^목^금^토^일^월^화^수^목^금^토^일^월^화^수^목^금^토^일^월^화^수^목^금^토^일^월^화^수^목^금^토^일^월^화^수^목^금^토" colsep="^" colwidth="20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20" dataheight="15" defaultrows="3" mergecellsfixedrows="bycolrec" rowheight="15" rowsep="|" style="left:0px; top:5px; width:622px; height:75px; ">
  3861. <col class="color_sun" checkvalue="1,0" ref="col1" type="output"/>
  3862. <col checkvalue="1,0" ref="col2" type="output"/>
  3863. <col checkvalue="1,0" ref="col3" type="output"/>
  3864. <col checkvalue="1,0" ref="col4" type="output"/>
  3865. <col ref="col5" type="output"/>
  3866. <col ref="col6" type="output"/>
  3867. <col class="color_sat" ref="col7" type="output"/>
  3868. <col class="color_sun" ref="col8" type="output"/>
  3869. <col ref="col9" type="output"/>
  3870. <col checkvalue="1,0" ref="col10" type="output"/>
  3871. <col checkvalue="1,0" ref="col11" type="output"/>
  3872. <col checkvalue="1,0" ref="col12" type="output"/>
  3873. <col ref="col13" type="output"/>
  3874. <col class="color_sat" ref="col14" type="output"/>
  3875. <col class="color_sun" ref="col15" type="output"/>
  3876. <col ref="col16" type="output"/>
  3877. <col ref="col17" type="output"/>
  3878. <col ref="col18" type="output"/>
  3879. <col ref="col19" type="output"/>
  3880. <col ref="col20" type="output"/>
  3881. <col class="color_sat" ref="col21" type="output"/>
  3882. <col class="color_sun" ref="col22" type="output"/>
  3883. <col ref="col23" type="output"/>
  3884. <col ref="col24" type="output"/>
  3885. <col ref="col25" type="output"/>
  3886. <col ref="col26" type="output"/>
  3887. <col ref="col27" type="output"/>
  3888. <col class="color_sat" ref="col28" type="output"/>
  3889. <col class="color_sun" ref="col29" type="output"/>
  3890. <col ref="col30" type="output"/>
  3891. <col ref="col31" type="output"/>
  3892. <col ref="col32" type="output"/>
  3893. <col ref="col33" type="output"/>
  3894. <col ref="col34" type="output"/>
  3895. <col class="color_sat" ref="col35" type="output"/>
  3896. <col class="color_sun" ref="col36" type="output"/>
  3897. <col ref="col37" type="output"/>
  3898. <col ref="col38" type="output"/>
  3899. <col ref="col39" type="output"/>
  3900. <col ref="col40" type="output"/>
  3901. <col ref="col41" type="output"/>
  3902. <col class="color_sat" ref="col42" type="output"/>
  3903. <script type="javascript" ev:event="onclick">
  3904. <![CDATA[
  3905. fClickOrdYN(grd_ordddcalc.row,grd_ordddcalc.col);
  3906. ]]>
  3907. </script>
  3908. </datagrid>
  3909. <output id="opt_msgspclformat" ref="/root/hidden/list3/msgspclformat" class="output_fix" style="left:2px; top:56px; width:306px; height:19px; "/>
  3910. <button id="btn_cloddelete" class="btn2_letter3" _auth="R" style="left:417px; top:56px; width:53px; height:19px; ">
  3911. <caption>행삭제</caption>
  3912. <script type="javascript" ev:event="DOMActivate">
  3913. <![CDATA[
  3914. fOrderGridDeleteRow(); // 행삭제
  3915. ]]>
  3916. </script>
  3917. </button>
  3918. <button id="btn_clodcopy" class="btn2_letter3" _auth="R" style="left:363px; top:56px; width:53px; height:19px; ">
  3919. <caption>행복사</caption>
  3920. <script type="javascript" ev:event="DOMActivate">
  3921. <![CDATA[
  3922. fOrderGridCopyRow(); // 행복사
  3923. ]]>
  3924. </script>
  3925. </button>
  3926. <button id="btn_clodinsert" class="btn2_letter3" _auth="R" style="left:309px; top:56px; width:53px; height:19px; ">
  3927. <caption>행추가</caption>
  3928. <script type="javascript" ev:event="DOMActivate">
  3929. <![CDATA[
  3930. fOrderGridInsertRow(); // 행추가
  3931. ]]>
  3932. </script>
  3933. </button>
  3934. <input id="input3" ref="/root/main/item1/clbs/chosindayno" class="input_default" navindex="5" imemode="disabled" _auth="R" style="left:543px; top:56px; width:38px; height:19px; text-align:right; ">
  3935. <hint>
  3936. <![CDATA[내원일수]]>
  3937. </hint>
  3938. </input>
  3939. <input id="input4" ref="/root/main/item1/clbs/medcaredayno" class="input_default" navindex="6" imemode="disabled" _auth="R" style="left:582px; top:56px; width:38px; height:19px; text-align:right; ">
  3940. <hint>
  3941. <![CDATA[요양일수]]>
  3942. </hint>
  3943. </input>
  3944. <caption id="caption20" class="cell_1" style="left:472px; top:56px; width:70px; height:19px; ">내원/요양</caption>
  3945. </group>
  3946. <button id="btn_save" accesskey="F1" class="btn5_letter5" _auth="X" style="left:1117px; top:400px; width:75px; height:19px; ">
  3947. <caption>저장 F1</caption>
  3948. <script type="javascript" ev:event="DOMActivate">
  3949. <![CDATA[
  3950. if (btn_save.disabled == false ){
  3951. fSaveOutAftJudg("B");
  3952. } else {
  3953. messageBox("비활성 상태입니다. 진행","E001");
  3954. }
  3955. ]]>
  3956. </script>
  3957. <hint>
  3958. <![CDATA[F1]]>
  3959. </hint>
  3960. </button>
  3961. <button id="btn_end" accesskey="f3" class="btn5_letter5" _auth="X" style="left:1117px; top:422px; width:75px; height:19px; ">
  3962. <caption>완료 F3</caption>
  3963. <script type="javascript" ev:event="DOMActivate">
  3964. <![CDATA[
  3965. if (btn_end.disabled == false ){
  3966. fGetNextAftJudgTrgtMan("C"); // P0151 (사후심사-심사완료여부) C: 심사완료
  3967. } else {
  3968. messageBox("비활성 상태입니다. 진행","E001");
  3969. }
  3970. ]]>
  3971. </script>
  3972. <hint>
  3973. <![CDATA[F3]]>
  3974. </hint>
  3975. </button>
  3976. <button id="btn_unjudg" accesskey="F6" class="btn5_letter5" _auth="X" style="left:1117px; top:444px; width:75px; height:19px; ">
  3977. <caption>미심 F6</caption>
  3978. <script type="javascript" ev:event="DOMActivate">
  3979. <![CDATA[
  3980. if (btn_unjudg.disabled == false ){
  3981. fGetNextAftJudgTrgtMan("A"); // P0151 (사후심사-심사완료여부) A: 미심사
  3982. } else {
  3983. messageBox("비활성 상태입니다. 진행","E001");
  3984. }
  3985. ]]>
  3986. </script>
  3987. <hint>
  3988. <![CDATA[F6]]>
  3989. </hint>
  3990. </button>
  3991. <button id="btn_rete" accesskey="F9" class="btn5_letter5" _auth="X" style="left:1117px; top:466px; width:75px; height:19px; ">
  3992. <caption>보류 F9</caption>
  3993. <script type="javascript" ev:event="DOMActivate">
  3994. <![CDATA[
  3995. if (btn_rete.disabled == false ){
  3996. fGetNextAftJudgTrgtMan("N"); // P0151 (사후심사-심사완료여부) N: 심사보류
  3997. } else {
  3998. messageBox("비활성 상태입니다. 진행","E001");
  3999. }
  4000. ]]>
  4001. </script>
  4002. <hint>
  4003. <![CDATA[F9]]>
  4004. </hint>
  4005. </button>
  4006. <button id="btn_del" class="btn5_letter5" _auth="X" style="left:1117px; top:488px; width:75px; height:19px; ">
  4007. <caption>삭제</caption>
  4008. <script type="javascript" ev:event="DOMActivate">
  4009. <![CDATA[
  4010. // 1. 재청구삭제일 경우 : (1). 반송부제기사유 체크
  4011. // (2). 반송부제기사유 UPDATE
  4012. if ( messageBox("","Q001")==6 ) {
  4013. var clamflagcd = model.getValue("/root/main/item1/clbs/clamflagcd");
  4014. if (clamflagcd == "1") {
  4015. if (pidfChkAbdResncd()) {
  4016. fGetNextAftJudgTrgtMan("D"); // P0151 (사후심사-심사완료여부) D: 삭제
  4017. }
  4018. }
  4019. // 2. 명세서삭제일 경우 : (1). 명세서삭제사유 체크
  4020. // (2). 기타일경우 심사자메모에 기타사유 추가
  4021. else {
  4022. if (pidfChkDocuDelResncd()) {
  4023. fGetNextAftJudgTrgtMan("D"); // P0151 (사후심사-심사완료여부) D: 삭제
  4024. }
  4025. }
  4026. }
  4027. ]]>
  4028. </script>
  4029. <hint>
  4030. <![CDATA[심사상태 삭제처리]]>
  4031. </hint>
  4032. </button>
  4033. <button id="btn_amtsum" class="btn2_letter5" _auth="R" style="left:1117px; top:553px; width:75px; height:19px; ">
  4034. <caption>진료비누적</caption>
  4035. <script type="javascript" ev:event="DOMActivate">
  4036. <![CDATA[
  4037. var clamym = model.getValue("/root/main/item1/clbs/clamym");
  4038. if (clamym) {
  4039. // 심사전후 차액이 얼마 이상이면 심사전후차액조회 Popup을 표시한다.
  4040. // 그 화면에서 "심사완료" 처리를 한다던건 보류.
  4041. model.setValue("/root/hidden/sppid21300/cond/clamym", clamym);
  4042. model.setValue("/root/hidden/sppid21300/cond/clamdg", model.getValue("/root/main/item1/clbs/clamdg"));
  4043. model.setValue("/root/hidden/sppid21300/cond/pid", model.getValue("/root/main/item1/clbs/pid"));
  4044. model.setValue("/root/hidden/sppid21300/cond/pidsn", model.getValue("/root/main/item1/clbs/pidsn"));
  4045. model.setValue("/root/hidden/sppid21300/cond/insukind", model.getValue("/root/main/item1/clbs/insukindcd"));
  4046. model.setValue("/root/hidden/sppid21300/cond/suppkind", model.getValue("/root/main/item1/clbs/suppkindcd"));
  4047. model.setValue("/root/hidden/sppid21300/cond/ordfromdd", model.getValue("/root/main/item1/clbs/ordfromdd"));
  4048. //modal("SPPID21300", "1", "10", "10", "SPPID21300", "/root/hidden/sppid21300/cond", "/root/send/data1", "", ""); // SPPID21300_심사전후차액조회.xrw
  4049. open("SPPID21300", "1", "10", "10", "SPPID21300", "/root/hidden/sppid21300/cond", "/root/send/data1", "", ""); // SPPID21300_심사전후차액조회.xrw
  4050. }
  4051. ]]>
  4052. </script>
  4053. <hint>
  4054. <![CDATA[심사전후 차액조회]]>
  4055. </hint>
  4056. </button>
  4057. <button id="btn_predocu" class="btn2_letter5" _auth="X" style="left:1117px; top:575px; width:75px; height:19px; ">
  4058. <caption>이전명세서</caption>
  4059. <script type="javascript" ev:event="DOMActivate">
  4060. <![CDATA[
  4061. if ( grp_predoculist.visible == true ) {
  4062. grd_clodhist.attribute("width") = "1114";
  4063. ln_clodhist.attribute("x2") = "1114";
  4064. cap_grptemp.visible = false;
  4065. grp_predoculist.visible = false;
  4066. return;
  4067. }
  4068. var clamym = model.getValue("/root/main/item1/clbs/clamym");
  4069. var clamdg = model.getValue("/root/main/item1/clbs/clamdg");
  4070. var pid = model.getValue("/root/main/item1/clbs/pid");
  4071. var pidsn = model.getValue("/root/main/item1/clbs/pidsn");
  4072. if (clamym) { // 조회된 심사대상자가 있음
  4073. // pid로 검색한 명세서 목록을 보여주고, 해당 목록에서 고른 건에 대하여 이전명세서 조회 화면을 호출한다.
  4074. var preDocuNode = instance1.selectSingleNode("/root/hidden/list4/clbs");
  4075. if (preDocuNode == null) { // 이전에 조회된 내용이 없음
  4076. model.resetInstanceNode("/root/send/list4");
  4077. model.setValue("/root/send/list4/pid", model.getValue("/root/main/item1/clbs/pid"));
  4078. model.setValue("/root/send/list4/clamym", model.getValue("/root/main/item1/clbs/clamym"));
  4079. model.setValue("/root/send/list4/allordfild", "Y");
  4080. // model.setValue("/root/send/list4/ordfildcd", model.getValue("/root/main/item1/clbs/ordfildcd"));
  4081. model.setValue("/root/send/list4/ioflag", "-");
  4082. model.setValue("/root/send/list4/refterm", "3");
  4083. // 현재 명세서는 제외하고 산출해야하기 때문에 clamdg, pidsn추가 - 20091127 박창원
  4084. model.setValue("/root/send/list4/clamdg", model.getValue("/root/main/item1/clbs/clamdg"));
  4085. model.setValue("/root/send/list4/pidsn", model.getValue("/root/main/item1/clbs/pidsn"));
  4086. model.setValue("/root/send/list4/refterm", "3");
  4087. ipt_fromdd.disabled = true;
  4088. ipt_todd.disabled = true;
  4089. submit("TRPID20304");
  4090. model.copyNode("/root/hidden/list4", "/root/main/list4");
  4091. grd_predocu.refresh();
  4092. } else {
  4093. model.copyNode("/root/main/list4", "/root/hidden/list4");
  4094. grd_predocu.refresh();
  4095. }
  4096. grd_predocu.rebuildStyle();
  4097. for (var i = 1; i < grd_predocu.rows; i++) {
  4098. if ((clamym == model.getValue("/root/main/list4/clbs["+ i +"]/clamym")) &&
  4099. (clamdg == model.getValue("/root/main/list4/clbs["+ i +"]/clamdg")) &&
  4100. (pid == model.getValue("/root/main/list4/clbs["+ i +"]/pid")) &&
  4101. (pidsn == model.getValue("/root/main/list4/clbs["+ i +"]/pidsn"))) {
  4102. grd_predocu.rowStyle(i, "data", "background-color") = "#4d4d4d"; // common.css (input)
  4103. grd_predocu.rowStyle(i, "data", "background-image") = "../../../com/commonweb/images/grid_bg.gif";
  4104. grd_predocu.rowStyle(i, "data", "background-repeat") = "repeat-x";
  4105. i = grd_predocu.rows;
  4106. }
  4107. }
  4108. }
  4109. grp_predoculist.visible = true;
  4110. grp_delclodlist.visible = false; // 처방 휴지통
  4111. grp_delorderlist.visible = false; // 심사변경 목록
  4112. fSetDelOrdPreDocuSize();
  4113. // }
  4114. ]]>
  4115. </script>
  4116. <!--
  4117. <script type="javascript" ev:event="onmousemove">
  4118. <![CDATA[
  4119. var preDocuNode = instance1.selectSingleNode("/root/main/list4/clbs");
  4120. if (preDocuNode != null) {
  4121. grp_predoculist.visible = true;
  4122. grp_delclodlist.visible = false; // 처방 휴지통
  4123. grp_delorderlist.visible = false; // 심사변경 목록
  4124. fSetDelOrdPreDocuSize();
  4125. }
  4126. ]]>
  4127. </script>
  4128. -->
  4129. </button>
  4130. <button id="btn_unexecord" class="btn2_letter5" _auth="R" style="left:1117px; top:597px; width:75px; height:19px; ">
  4131. <caption>미시행처방</caption>
  4132. <script type="javascript" ev:event="DOMActivate">
  4133. <![CDATA[
  4134. var clamym = model.getValue("/root/main/item1/clbs/clamym");
  4135. if (clamym) {
  4136. var judgOpenWindow = getChildWindow("SPPID21400"); // SPPID21400_외래미시행처방조회
  4137. if (judgOpenWindow == null) {
  4138. model.setValue("/root/hidden/sppid21400/cond/pid", model.getValue("/root/main/item1/clbs/pid"));
  4139. model.setValue("/root/hidden/sppid21400/cond/orddeptcd", model.getValue("/root/main/item1/clbs/orddeptcd"));
  4140. model.setValue("/root/hidden/sppid21400/cond/orddd", model.getValue("/root/main/item1/clbs/indd"));
  4141. model.setValue("/root/hidden/sppid21400/cond/chk", "Y"); // 타과포함 조회 CheckBox 선택
  4142. open("SPPID21400", "2", "10", "10", "SPPID21400", "/root/hidden/sppid21400/cond", "/root/send", "", ""); // SPPID21400_외래미시행처방조회
  4143. } else {
  4144. judgOpenWindow.model.setValue("/root/send/pid", model.getValue("/root/main/item1/clbs/pid"));
  4145. judgOpenWindow.model.setValue("/root/send/orddeptcd", model.getValue("/root/main/item1/clbs/orddeptcd"));
  4146. judgOpenWindow.model.setValue("/root/send/orddd", model.getValue("/root/main/item1/clbs/indd"));
  4147. judgOpenWindow.model.setValue("/root/send/chk", "Y"); // 타과포함 조회 CheckBox 선택
  4148. judgOpenWindow.btn_srch.dispatch("DOMActivate");
  4149. activateChild("SPPID21400");
  4150. }
  4151. }
  4152. ]]>
  4153. </script>
  4154. </button>
  4155. <output id="opt_patage" ref="/root/main/item1/clbs/patage" class="output_fix" style="left:442px; top:31px; width:37px; height:19px; text-align:right; ">
  4156. <hint>
  4157. <![CDATA[나이]]>
  4158. </hint>
  4159. </output>
  4160. <output id="opt_insunm" ref="/root/main/item1/clbs/insunm" class="output_fix" style="left:976px; top:55px; width:85px; height:19px; "/>
  4161. <caption id="caption51" class="cell_1" style="left:285px; top:78px; width:61px; height:23px; text-align:left; ">보조유형</caption>
  4162. <output id="opt_payownbrate" ref="/root/main/item1/clbs/payownbrate" class="output_fix" style="left:455px; top:54px; width:24px; height:19px; text-align:right; ">
  4163. <hint>
  4164. <![CDATA[요율]]>
  4165. </hint>
  4166. </output>
  4167. <caption id="cap_certno" class="cell_1" style="left:920px; top:78px; width:55px; height:23px; text-align:left; ">증번호</caption>
  4168. <input id="ipt_certno" ref="/root/main/item1/clbs/certno" class="input_default" navindex="9" maxlength="30" _auth="R" style="left:976px; top:80px; width:85px; height:19px; ">
  4169. <hint>
  4170. <![CDATA[보험:증번호, 자보:접수번호, 산재:관리번호]]>
  4171. </hint>
  4172. </input>
  4173. <caption id="caption30" class="cell_1" style="left:159px; top:30px; width:55px; height:23px; text-align:left; ">공상구분</caption>
  4174. <caption id="caption32" class="cell_1" style="left:285px; top:54px; width:61px; height:23px; text-align:left; ">보험유형</caption>
  4175. <output id="opt_insukindnm" ref="/root/main/item1/clbs/insukindnm" class="output_fix" style="left:367px; top:54px; width:85px; height:19px; "/>
  4176. <input id="opt_acptno" ref="/root/main/item1/clbs/acptno" navindex="1" style="left:57px; top:79px; width:64px; height:19px; border-style:solid; "/>
  4177. <caption id="cap_ordfildcd" class="cell_1" style="left:481px; top:29px; width:67px; height:23px; text-align:left; ">
  4178. <![CDATA[진료분야]]>
  4179. <script type="javascript" ev:event="onmouseover">
  4180. <![CDATA[
  4181. cap_ordfildcd.hint = model.getValue("/root/main/item1/clbs/ordfildcd");
  4182. ]]>
  4183. </script>
  4184. </caption>
  4185. <select1 id="cmb_ordfildcd" ref="/root/main/item1/clbs/ordfildcd" class="combo_default" disabled="false" appearance="minimal" style="left:549px; top:31px; width:67px; height:19px; ">
  4186. <choices>
  4187. <itemset nodeset="/root/init/P0291list/P0291">
  4188. <label ref="cdnm"/>
  4189. <value ref="cdid"/>
  4190. </itemset>
  4191. </choices>
  4192. <script type="javascript" ev:event="xforms-value-changed">
  4193. <![CDATA[
  4194. var ordfildcd = model.getValue("/root/main/item1/clbs/ordfildcd");
  4195. var clamtypecd = model.getValue("/root/main/item1/clbs/clamtypecd");
  4196. // 집계형태(sumtypecd) 업데이트
  4197. // 건강보험, 의료급여 => 진료분야그대로...
  4198. //if (clamtypecd == "1") {
  4199. // model.setValue("/root/main/item1/clbs/sumtypecd", ordfildcd); // 집계형태 : 진료분야
  4200. //}
  4201. // 자보 => 의과,치과,한방
  4202. //else
  4203. if (clamtypecd == "8") {
  4204. if (ordfildcd == "6") {
  4205. model.setValue("/root/main/item1/clbs/sumtypecd", "6"); // 집계형태 : 치과분야
  4206. }
  4207. else if (ordfildcd == "8") {
  4208. model.setValue("/root/main/item1/clbs/sumtypecd", "8"); // 집계형태 : 한방분야
  4209. }
  4210. else {
  4211. model.setValue("/root/main/item1/clbs/sumtypecd", "0"); // 집계형태 : 의과분야
  4212. }
  4213. }
  4214. ]]>
  4215. </script>
  4216. </select1>
  4217. <output id="opt_insukindcd" ref="/root/main/item1/clbs/insukindcd" class="output_fix" style="left:347px; top:54px; width:17px; height:19px; "/>
  4218. <select1 id="cmb_orddeptcd" ref="/root/main/item1/clbs/orddeptcd" class="c ombo_default" disabled="false" appearance="minimal" style="left:618px; top:31px; width:96px; height:19px; ">
  4219. <choices>
  4220. <itemset nodeset="/root/init/orddeptcd2/orddeptcdlist">
  4221. <label ref="nm"/>
  4222. <value ref="cd"/>
  4223. </itemset>
  4224. </choices>
  4225. <script type="javascript" ev:event="xforms-value-changed">
  4226. <![CDATA[
  4227. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '"+ model.getValue("/root/main/item1/clbs/orddeptcd") +"']";
  4228. model.resetInstanceNode("/root/main/item1/clbs/orddrid"); // 진료과가 변경되었으므로 주치의를 초기화한다.
  4229. cmb_orddrid.refresh();
  4230. // 변경된 진료과의 청구과를 다시 셋팅한다.
  4231. var orddeptcd = model.getValue("/root/main/item1/clbs/orddeptcd");
  4232. var nodeList = instance1.selectNodes("/root/init/orddeptcd2/orddeptcdlist");
  4233. var i=1;
  4234. for (i=1; i < nodeList.length; i++) {
  4235. if (orddeptcd == model.getValue("/root/init/orddeptcd2/orddeptcdlist[" + i + "]/cd")) {
  4236. var clamdeptcd = model.getValue("/root/init/orddeptcd2/orddeptcdlist[" + i + "]/reqdeptno");
  4237. model.setValue("/root/main/item1/clbs/clamdeptcd", clamdeptcd);
  4238. break;
  4239. }
  4240. }
  4241. ]]>
  4242. </script>
  4243. <script type="javascript" ev:event="onmousedown">
  4244. <![CDATA[
  4245. cmb_orddeptcd.choices.itemset.attribute("nodeset") = "/root/init/orddeptcd/orddeptcdlist[reqfild = '"+ model.getValue("/root/main/item1/clbs/ordfildcd") +"']";
  4246. cmb_orddeptcd.refresh();
  4247. ]]>
  4248. </script>
  4249. </select1>
  4250. <select1 id="cmb_orddrid" ref="/root/main/item1/clbs/orddrid" class="combo_default" disabled="false" appearance="minimal" style="left:716px; top:31px; width:79px; height:19px; ">
  4251. <choices>
  4252. <itemset nodeset="/root/init/orddrid2/orddridlist">
  4253. <label ref="nm"/>
  4254. <value ref="cd"/>
  4255. </itemset>
  4256. </choices>
  4257. <script type="javascript" ev:event="onmousedown">
  4258. <![CDATA[
  4259. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '"+ model.getValue("/root/main/item1/clbs/orddeptcd") +"']";
  4260. cmb_orddrid.refresh();
  4261. // [2008-01-16] 주치의 Combo disabled 상태이므로 아래 구현을 주석처리함
  4262. /*
  4263. if (model.getValue("/root/main/item1/clbs/orddeptcd") == "") {
  4264. messageBox("진료과를 먼저", "C002"); ///진료과를 먼저 선택하십시오.
  4265. cmb_orddrid.disabled = true;
  4266. }
  4267. */
  4268. ]]>
  4269. </script>
  4270. <script type="javascript" ev:event="xforms-value-changed">
  4271. <![CDATA[
  4272. var orddrid = model.getValue("/root/main/item1/clbs/orddrid");
  4273. var chk_snglcalcscorcd = model.getValue("/root/main/list2/clod[item='0101' or item='0102']/snglcalcscorcd");
  4274. if (orddrid == "") {
  4275. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid2/orddridlist";
  4276. cmb_orddrid.refresh();
  4277. }
  4278. grd_cldihist.rowstatus(1) = 2;
  4279. grd_clodhist.rowstatus(grd_clodhist.findRow(chk_snglcalcscorcd,grd_clodhist.fixedRows,grd_clodhist.colRef("snglcalcscorcd"), false, true)) = 2;
  4280. ]]>
  4281. </script>
  4282. </select1>
  4283. <caption id="caption11" class="cell_1" style="left:0px; top:30px; width:55px; height:23px; text-align:left; ">청구차수</caption>
  4284. <caption id="caption12" class="cell_1" style="left:159px; top:78px; width:55px; height:23px; text-align:left; ">본인부담</caption>
  4285. <input id="opt_patnm" ref="/root/main/item1/clbs/patnm" appearance="input" style="left:215px; top:55px; width:47px; height:19px; "/>
  4286. <caption id="caption25" class="cell_1" style="left:797px; top:30px; width:61px; height:23px; text-align:left; ">진료결과</caption>
  4287. <select1 id="cmb_ordrsltcd" ref="/root/main/item1/clbs/ordrsltcd" class="combo_default" navindex="7" appearance="minimal" style="left:859px; top:30px; width:59px; height:19px; ">
  4288. <choices>
  4289. <itemset nodeset="/root/init/P0110list/P0110">
  4290. <label ref="cdnm"/>
  4291. <value ref="cdid"/>
  4292. </itemset>
  4293. </choices>
  4294. </select1>
  4295. <input id="ipt_clamym" ref="/root/main/item1/clbs/clamym" class="input_default" navindex="2" inputtype="date" format="yyyy-mm" style="left:57px; top:30px; width:71px; height:19px; "/>
  4296. <caption id="caption26" class="cell_1" style="left:0px; top:54px; width:55px; height:23px; text-align:left; ">등록번호</caption>
  4297. <caption id="caption13" class="cell_1" style="left:159px; top:54px; width:55px; height:23px; text-align:left; ">환자이름</caption>
  4298. <input id="opt_docuseqno" ref="/root/main/item1/clbs/docuseqno" style="left:122px; top:79px; width:36px; height:19px; border-style:solid; "/>
  4299. <caption id="cap_insuno" class="cell_1" style="left:920px; top:30px; width:55px; height:23px; text-align:left; ">조합기호</caption>
  4300. <caption id="caption48" class="cell_1" style="left:618px; top:78px; width:96px; height:23px; ">내원/요양</caption>
  4301. <caption id="caption37" class="cell_1" style="left:285px; top:29px; width:61px; height:23px; text-align:left; ">주민번호</caption>
  4302. <caption id="caption1" class="cell_1" style="left:920px; top:54px; width:55px; height:23px; text-align:left; ">조합명칭</caption>
  4303. <input id="ipt_pid" ref="/root/main/item1/clbs/pid" class="input_default" navindex="3" imemode="disabled" maxlength="10" _auth="R" style="left:57px; top:54px; width:66px; height:19px; ">
  4304. <script type="javascript" ev:event="onkeypress">
  4305. <![CDATA[
  4306. if (event.keyCode == "13") {
  4307. var clamym = model.getValue("/root/main/item1/clbs/clamym"); // 청구일자
  4308. var oldpid = model.getValue("/root/main/item1/clbs/pid");
  4309. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  4310. var newpid = model.getValue("/root/main/item1/clbs/pid");
  4311. if (newpid == model.getValue("/root/hidden/item1/initclbs/clbs/pid")) {
  4312. return;
  4313. }
  4314. var rslt = fInitSrchData(); // 화면을 초기화한다.
  4315. if (rslt == false) { // 수정사항 저장이 완료되지 않아 초기화할 수 없는 경우
  4316. model.setValue("/root/main/item1/clbs/pid", oldpid);
  4317. model.refreshpart("/root/main/item1/clbs/pid");
  4318. } else {
  4319. model.setValue("/root/main/item1/clbs/clamym", clamym);
  4320. model.setValue("/root/main/item1/clbs/pid", newpid);
  4321. model.refreshpart("/root/main/item1/clbs/pid");
  4322. fGetOutAftJudgTrgtManPidSrch();
  4323. }
  4324. }
  4325. ]]>
  4326. </script>
  4327. <script type="javascript" ev:event="xforms-value-changed">
  4328. <![CDATA[
  4329. var clamym = model.getValue("/root/main/item1/clbs/clamym"); // 청구일자
  4330. var newpid = model.getValue("/root/main/item1/clbs/pid");
  4331. var oldpid = model.getValue("/root/hidden/item1/initclbs/clbs/pid");
  4332. var rslt = fInitSrchData(); // 화면을 초기화한다.
  4333. if (rslt == false) { // 수정사항 저장이 완료되지 않아 초기화할 수 없는 경우
  4334. model.setValue("/root/main/item1/clbs/pid", oldpid);
  4335. model.refreshpart("/root/main/item1/clbs/pid");
  4336. //model.refresh();
  4337. } else {
  4338. model.setValue("/root/main/item1/clbs/clamym", clamym);
  4339. model.setValue("/root/main/item1/clbs/pid", newpid);
  4340. model.refreshpart("/root/main/item1/clbs/pid");
  4341. //model.refresh();
  4342. }
  4343. ]]>
  4344. </script>
  4345. </input>
  4346. <button id="btn_srchpid" class="icon_search" _auth="R" style="left:141px; top:54px; width:16px; height:16px; ">
  4347. <caption/>
  4348. <script type="javascript" ev:event="DOMActivate">
  4349. <![CDATA[
  4350. var ipt_pid = model.getValue("/root/main/item1/clbs/pid");
  4351. if (ipt_pid) {
  4352. // if (ipt_pid.length < 8) {
  4353. // ipt_pid = ipt_pid.getLeftPad(8, "0"); // (stringHelper.js) 저장된 숫자 값에 원하는 길이만큼 '0'을 붙여 표현
  4354. // }
  4355. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
  4356. model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
  4357. } else {
  4358. model.resetInstanceNode("/root/hidden/sppmc02500/cond");
  4359. }
  4360. modal("SPPMC02500", "1", "10", "10", "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", ""); // SPPMC02500_환자조회.xrw
  4361. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  4362. if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
  4363. var rslt = fInitSrchData(); // 화면을 초기화한다.
  4364. if (rslt == false) { // 수정사항 저장이 완료되지 않아 초기화할 수 없는 경우
  4365. } else {
  4366. model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
  4367. model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
  4368. model.setValue("/root/main/item1/clbs/pid", srch_pid);
  4369. //model.refresh();
  4370. model.refreshpart("/root/main/item1/clbs/pid");
  4371. }
  4372. }
  4373. ]]>
  4374. </script>
  4375. </button>
  4376. <input id="ipt_insuno" ref="/root/main/item1/clbs/insuno" class="input_default" navindex="8" inputtype="button" _auth="R" style="left:976px; top:31px; width:85px; height:19px; ">
  4377. <script type="javascript" ev:event="onkeypress">
  4378. <![CDATA[
  4379. if (event.keyCode == "13") {
  4380. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  4381. fGetOutAftJudgTrgtManInsunm();
  4382. }
  4383. ]]>
  4384. </script>
  4385. <script type="javascript" ev:event="onbuttonclick">
  4386. <![CDATA[
  4387. var pid = model.getValue("/root/main/item1/clbs/pid");
  4388. if (pid) { // 조회된 심사대상자가 있으면
  4389. /*
  4390. // pam\pamcomnweb\xrw\SPPMC03700_자격조회
  4391. // 보험증번호 조회(보험자격조회)
  4392. var rrgstno = model.getValue("/root/main/item1/clbs/patrrgstno");
  4393. rrgstno = rrgstno.replace("-", "");
  4394. var patnm = model.getValue("/root/main/item1/clbs/patnm");
  4395. var indd = model.getValue("/root/main/item1/clbs/indd");
  4396. var parm = rrgstno + "▦" + patnm + "▦" + indd + "▦"; // 주민번호▦이름▦진료일자
  4397. setParameter("SPPMC03700_PARM", parm);
  4398. setParameter("SPPMC03700_RTN", "");
  4399. modal("SPPMC03700", "1", "10", "10", "SPPMC03700", "", "", "", ""); // SPPMC03700_자격조회.xrw
  4400. if (getParameter("SPPMC03700_RTN") == "Y") {
  4401. var ptin_insdnm = getParameter("SPPMC03700_insdnm"); // 세대주성명
  4402. var ptin_insucd = getParameter("SPPMC03700_insucd"); // 보장기관기호(사업장기호)
  4403. var ptin_insuno = getParameter("SPPMC03700_insuno"); // 시설기호(증번호)
  4404. if (ptin_insdnm == "") {
  4405. ptin_insdnm = "-";
  4406. }
  4407. if (ptin_insucd == "") {
  4408. ptin_insucd = "-";
  4409. }
  4410. if (ptin_insuno == "") {
  4411. ptin_insuno = "-";
  4412. }
  4413. model.setValue("/root/main/item1/clbs/insdnm", ptin_insdnm); //가입자
  4414. model.setValue("/root/main/item1/clbs/insuno", ptin_insucd); //조합기호
  4415. model.setValue("/root/main/item1/clbs/certno", ptin_insuno); //증번호
  4416. model.refreshpart("/root/main/item1/clbs/insdnm");
  4417. model.refreshpart("/root/main/item1/clbs/insuno");
  4418. model.refreshpart("/root/main/item1/clbs/certno");
  4419. // 조합기호에 해당하는 조합명칭을 조회한다.
  4420. model.makeValue("/root/send/item2/incd/insucd", model.getValue("/root/main/item1/clbs/insuno"));
  4421. model.makeValue("/root/send/item2/incd/ordfromdd", model.getValue("/root/main/item1/clbs/ordfromdd"));
  4422. submit("TRPID20302");
  4423. var insucdnm = model.getValue("/root/main/item2/incd/insucdnm");
  4424. model.setValue("/root/main/item1/clbs/insunm", insucdnm);
  4425. model.refreshpart("/root/main/item1/clbs/insunm");
  4426. }
  4427. */
  4428. // pam\pamcomnweb\xrw\SPPMC03900_의료급여자격조회승인
  4429. // 의료급여자격조회
  4430. var ordtype = model.getValue("/root/main/item1/clbs/stsioflag");
  4431. if (ordtype == "-") {
  4432. ordtype = "O";
  4433. }
  4434. var parm = model.getValue("/root/main/item1/clbs/patrrgstno").substr(0,6) +
  4435. model.getValue("/root/main/item1/clbs/patrrgstno").substr(6,7) + "▦" + //주민번호
  4436. model.getValue("/root/main/item1/clbs/patnm") + "▦" + //이름
  4437. model.getValue("/root/main/item1/clbs/ordfromdd") + "▦" + //입원일
  4438. model.getValue("/root/main/item1/clbs/cretno") + "▦" + //생성번호
  4439. ordtype + "▦" + //진료형태
  4440. model.getValue("/root/main/item1/clbs/ordtodd") + "▦" + //퇴원일자
  4441. "" + "▦" + //본인일부부담금
  4442. "" + "▦" + //기관부담금
  4443. model.getValue("/root/main/item1/clbs/pid") + "▦" + //등록번호
  4444. model.getValue("/root/main/item1/clbs/orddeptcd") + "▦" ; //진료과
  4445. setParameter("SPPMC03900_PARM",parm);
  4446. modal("SPPMC03900", "1","50", "50", "SPPMC03900", "", "");
  4447. if (getParameter("SPPMC03900_RTN") == "Y") {
  4448. var ptin_insdnm = getParameter("SPPMC03900_insdnm"); // 세대주성명
  4449. var ptin_insucd = getParameter("SPPMC03900_insucd"); // 보장기관기호(사업장기호)
  4450. var ptin_insuno = getParameter("SPPMC03900_insuno"); // 시설기호(증번호)
  4451. if (ptin_insdnm == "") {
  4452. ptin_insdnm = "-";
  4453. }
  4454. if (ptin_insucd == "") {
  4455. ptin_insucd = "-";
  4456. }
  4457. if (ptin_insuno == "") {
  4458. ptin_insuno = "-";
  4459. }
  4460. model.setValue("/root/main/item1/clbs/insdnm", ptin_insdnm); //가입자
  4461. model.setValue("/root/main/item1/clbs/insuno", ptin_insucd); //조합기호
  4462. model.setValue("/root/main/item1/clbs/certno", ptin_insuno); //증번호
  4463. model.refreshpart("/root/main/item1/clbs/insdnm");
  4464. model.refreshpart("/root/main/item1/clbs/insuno");
  4465. model.refreshpart("/root/main/item1/clbs/certno");
  4466. // 조합기호에 해당하는 조합명칭을 조회한다.
  4467. model.makeValue("/root/send/item2/incd/insucd", model.getValue("/root/main/item1/clbs/insuno"));
  4468. model.makeValue("/root/send/item2/incd/ordfromdd", model.getValue("/root/main/item1/clbs/ordfromdd"));
  4469. submit("TRPID20302");
  4470. var insucdnm = model.getValue("/root/main/item2/incd/insucdnm");
  4471. model.setValue("/root/main/item1/clbs/insunm", insucdnm);
  4472. model.refreshpart("/root/main/item1/clbs/insunm");
  4473. }
  4474. }
  4475. ]]>
  4476. </script>
  4477. </input>
  4478. <output id="opt_clamdgfr" ref="/root/main/item1/clbs/clamdg" class="output_fix" format="####" style="left:130px; top:30px; width:27px; height:19px; text-align:center; ">
  4479. <hint>
  4480. <![CDATA[차수시작]]>
  4481. </hint>
  4482. </output>
  4483. <caption id="caption29" class="cell_1" style="left:0px; top:78px; width:55px; height:23px; text-align:left; ">접수번호</caption>
  4484. <caption id="cap_insdnm" class="cell_1" style="left:797px; top:54px; width:61px; height:23px; text-align:left; ">가입자</caption>
  4485. <line id="line3" class="line_3" style="x1:0px; y1:100px; x2:1194px; y2:100px; "/>
  4486. <output id="opt_gender" ref="/root/main/item1/clbs/gender" class="output_fix" style="left:265px; top:55px; width:18px; height:19px; ">
  4487. <hint>
  4488. <![CDATA[성별]]>
  4489. </hint>
  4490. </output>
  4491. <select1 id="cmb_supprate" ref="/root/hidden/item1/clbs/patsupprate" class="combo_default" navindex="4" appearance="minimal" _auth="R" style="left:367px; top:79px; width:85px; height:19px; ">
  4492. <choices>
  4493. <itemset nodeset="/root/main/item3/supp">
  4494. <label ref="suppratenm"/>
  4495. <value ref="supprateid"/>
  4496. </itemset>
  4497. </choices>
  4498. <script type="javascript" ev:event="xforms-value-changed">
  4499. <![CDATA[
  4500. // 보조유형 및 요율 combo의 선택 값이 변경된 경우 각각을 해당 output에 설정한다.
  4501. fSetPatSuppRate();
  4502. ]]>
  4503. </script>
  4504. </select1>
  4505. <output id="opt_suppkind" ref="/root/main/item1/clbs/suppkindcd" class="output_fix" style="left:347px; top:79px; width:17px; height:19px; "/>
  4506. <group id="grp_cldihist" style="left:0px; top:102px; width:482px; height:165px; ">
  4507. <button id="btn_opyn" class="btn2_letter4" _auth="R" style="left:282px; top:0px; width:64px; height:19px; ">
  4508. <caption>수술(유)</caption>
  4509. <script type="javascript" ev:event="DOMActivate">
  4510. <![CDATA[
  4511. var clamym = model.getValue("/root/main/item1/clbs/clamym");
  4512. if (clamym) { // 조회된 심사대상자가 있으면
  4513. var judgOpenWindow = getChildWindow("SPPIZ01300"); // SPPIZ01300_수술정보조회
  4514. if (judgOpenWindow == null) {
  4515. model.resetInstanceNode("/root/hidden/sppiz01300/cond");
  4516. model.setValue("/root/hidden/sppiz01300/cond/pid", model.getValue("/root/main/item1/clbs/pid"));
  4517. model.setValue("/root/hidden/sppiz01300/cond/indd", model.getValue("/root/main/item1/clbs/indd"));
  4518. model.setValue("/root/hidden/sppiz01300/cond/cretno", model.getValue("/root/main/item1/clbs/cretno"));
  4519. // alert("opyn = "+ model.getValue("/root/main/item1/clbs/opyn"));
  4520. open("SPPIZ01300", "2", "10", "10", "SPPIZ01300","/root/hidden/sppiz01300/cond", "/root/send/data1", "", ""); // SPPIZ01300_수술정보조회
  4521. } else {
  4522. judgOpenWindow.javascript.fSrchInfo();
  4523. activateChild("SPPIZ01300");
  4524. // model.refresh();
  4525. }
  4526. }
  4527. // var testnum = "456.789";
  4528. // var test1 = testnum.getRound("1", "HALF_UP"); // 460 // (numericHelper.js) 지정한 자리에서 올림/반올림/버림 처리
  4529. // var test2 = testnum.getRound("2", "HALF_UP"); // 500
  4530. // var test3 = testnum.getRound("-1", "HALF_UP"); // 457
  4531. // var test4 = testnum.getRound("-2", "HALF_UP"); // 456.8
  4532. // alert(test1 +" / "+ test2 +" / "+ test3 +" / "+ test4);
  4533. ]]>
  4534. </script>
  4535. </button>
  4536. <button id="btn_diagHist" class="btn2_letter4" _auth="X" style="left:349px; top:0px; width:64px; height:19px; ">
  4537. <caption>상병이력</caption>
  4538. <script type="javascript" ev:event="DOMActivate">
  4539. <![CDATA[
  4540. fGetDiagHistList(); // 특정 환자에 대한 상병이력을 조회한다.
  4541. ]]>
  4542. </script>
  4543. </button>
  4544. <caption id="cap_diag" class="tit_2" style="left:5px; top:5px; width:43px; height:14px; ">
  4545. <![CDATA[상병]]>
  4546. <script type="javascript" ev:event="onclick">
  4547. <![CDATA[
  4548. if (grd_cldihist.attribute("height") == "143") { // 기존 크기를 세로로 확대시킨다.
  4549. grp_cldihist.attribute("height") = "300";
  4550. grd_cldihist.attribute("height") = "275";
  4551. //cap_message.attribute("left") = "485"; // "635";
  4552. //opt_msgspclformat.attribute("left") = parseInt(cap_message.attribute("left")) + 90;
  4553. //opt_msgspclformat.attribute("width") = 1099 - parseInt(cap_message.attribute("left")) + 5; //"545";
  4554. } else {
  4555. grp_cldihist.attribute("height") = "170";
  4556. grd_cldihist.attribute("height") = "143";
  4557. //cap_message.attribute("left") = "5";
  4558. //opt_msgspclformat.attribute("left") = parseInt(cap_message.attribute("left")) + 90;
  4559. //opt_msgspclformat.attribute("width") = 1099 - parseInt(cap_message.attribute("left")) + 5; //"1099";
  4560. }
  4561. ]]>
  4562. </script>
  4563. </caption>
  4564. <line id="line7" class="line_1" style="x1:0px; y1:20px; x2:480px; y2:20px; "/>
  4565. <datagrid id="grd_cldihist" nodeset="/root/main/list1/cldi" caption="X^R/O^no^상병코드^상 병 명^청구과^MT002^치식EDI^치식^진료일자^특정기호^wundresncd^diagengnm^seqno^workflag^kcd6chk^면허구분^면허번호^caption1^caption2" colsep="^" colwidth="20, 30, 20, 56, 159, 67, 44, 30, 53, 85, 74, 68, 40, 60, 100, 100, 100, 100, 100, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:25px; width:480px; height:138px; ">
  4566. <col ref="rowstat"/>
  4567. <col checkvalue="R,C" ref="diagkindcd" type="checkbox"/>
  4568. <col imemode="disabled" ref="diagseq" type="input" format="##"/>
  4569. <col imemode="disabled" ref="diagcd" type="input" _chartype="upper"/>
  4570. <col ref="diagnm"/>
  4571. <col disabled="true" ref="clamdeptcd" type="combo">
  4572. <choices>
  4573. <itemset nodeset="/root/init/P0322list/P0322">
  4574. <label ref="cdnm"/>
  4575. <value ref="cdid"/>
  4576. </itemset>
  4577. </choices>
  4578. </col>
  4579. <col ref="vcode" style="text-align:center; "/>
  4580. <col ref="toot" visibility="hidden" style="background-color:#c0c0c0; "/>
  4581. <col ref="toot1"/>
  4582. <col ref="ordfromdd" type="inputdate" format="yyyy/mm/dd"/>
  4583. <col ref="estmspclcd" visibility="hidden" style="background-color:#c0c0c0; "/>
  4584. <col ref="wundresncd" visibility="hidden" style="background-color:#c0c0c0; "/>
  4585. <col ref="diagengnm" visibility="hidden" style="background-color:#c0c0c0; "/>
  4586. <col ref="seqno" visibility="hidden" style="background-color:#c0c0c0; "/>
  4587. <col ref="workflag" visibility="hidden" style="background-color:#c0c0c0; "/>
  4588. <col ref="kcd6chk" visibility="hidden" style="background-color:#c0c0c0; "/>
  4589. <col ref="licnsflag" type="input"/>
  4590. <col ref="licnsno" type="input"/>
  4591. <col ref="dutpno" visibility="hidden"/>
  4592. <col ref="endyn" visibility="hidden"/>
  4593. <script type="javascript" ev:event="onkeypress">
  4594. <![CDATA[
  4595. if (event.keyCode == "13") {
  4596. var col = grd_cldihist.col;
  4597. var row = grd_cldihist.row;
  4598. if (col == grd_cldihist.colRef("ordfromdd")) { // 진료개시일이 변경된 경우
  4599. var ordfromdd = model.getValue("/root/main/list1/cldi["+ row +"]/ordfromdd");
  4600. if (!isValidDateTime(ordfromdd)) { // (dateHelper.js) 유효한 날짜, 시간 인지 점검
  4601. model.setValue("/root/main/list1/cldi["+ row +"]/ordfromdd", model.getValue("/root/hidden/list1/cldi/oldordfromdd"));
  4602. grd_cldihist.rowstatus(row) = model.getValue("/root/hidden/list1/cldi/oldrowstat");
  4603. grd_cldihist.refresh();
  4604. }
  4605. }
  4606. else if (col == grd_cldihist.colRef("diagcd")) { // '상병코드'
  4607. if (model.getValue("/root/hidden/list1/cldi/olddiagcd") != model.getValue("/root/main/list1/cldi["+ row +"]/diagcd")) {
  4608. model.resetInstanceNode("/root/main/list1/cldi["+ grd_cldihist.row +"]/diagnm");
  4609. model.resetInstanceNode("/root/main/list1/cldi["+ grd_cldihist.row +"]/diagengnm");
  4610. fSearchDiageCode();
  4611. }
  4612. }
  4613. }
  4614. ]]>
  4615. </script>
  4616. <script type="javascript" ev:event="onentercell">
  4617. <![CDATA[
  4618. // col@type = "input" 일 경우 onentercell시점에 EditMode 상태 만들기
  4619. if (grd_cldihist.colType(grd_cldihist.col) == "input") {
  4620. grd_cldihist.editCell();
  4621. }
  4622. ]]>
  4623. </script>
  4624. <script type="javascript" ev:event="onstartedit">
  4625. <![CDATA[
  4626. var row = grd_cldihist.row;
  4627. model.setValue("/root/hidden/list1/cldi/oldseq", model.getValue("/root/main/list1/cldi["+ row +"]/diagseq"));
  4628. model.setValue("/root/hidden/list1/cldi/olddiagcd", model.getValue("/root/main/list1/cldi["+ row +"]/diagcd"));
  4629. model.setValue("/root/hidden/list1/cldi/olddiagnm", model.getValue("/root/main/list1/cldi["+ row +"]/diagnm"));
  4630. model.setValue("/root/hidden/list1/cldi/oldengnm", model.getValue("/root/main/list1/cldi["+ row +"]/diagengnm"));
  4631. model.setValue("/root/hidden/list1/cldi/oldrowstat", grd_cldihist.rowstatus(row));
  4632. model.setValue("/root/hidden/list1/cldi/oldordfromdd", model.getValue("/root/main/list1/cldi["+ row +"]/ordfromdd"));
  4633. ]]>
  4634. </script>
  4635. <script type="javascript" ev:event="onendedit">
  4636. <![CDATA[
  4637. // event="xforms-value-changed" 사용시에는 오류 발생한다.
  4638. // 숫자 입력 후 마우스 커서 위치를 바꾸거나 Enter 입력 시에 호출된다.
  4639. var col = grd_cldihist.col;
  4640. if (col == grd_cldihist.colRef("diagseq")) { // no (상병순서)
  4641. if (model.getValue("/root/main/list1/cldi["+ grd_cldihist.row +"]/diagseq") != model.getValue("/root/hidden/list1/cldi/oldseq")) {
  4642. // 사용자가 입력한 숫자를 기준으로 상병순서 부여
  4643. fChangeDiagNo();
  4644. }
  4645. }
  4646. /*
  4647. else if (col == grd_cldihist.colRef("diagcd")) { // '상병코드'
  4648. if (model.getValue("/root/main/list1/cldi["+ grd_cldihist.row +"]/diagcd") != model.getValue("/root/hidden/list1/cldi/olddiagcd")) {
  4649. model.resetInstanceNode("/root/main/list1/cldi["+ grd_cldihist.row +"]/diagnm");
  4650. model.resetInstanceNode("/root/main/list1/cldi["+ grd_cldihist.row +"]/diagengnm");
  4651. fSearchDiageCode();
  4652. }
  4653. }
  4654. */
  4655. ]]>
  4656. </script>
  4657. <script type="javascript" ev:event="onmousedown">
  4658. <![CDATA[
  4659. if (event.button == 3) { // 3 : 오른쪽 버튼
  4660. if (grd_cldihist.isCell(event.target) && grd_cldihist.mouseRow >= grd_cldihist.fixedrows) {
  4661. var rowstatus = grd_cldihist.rowstatus(grd_cldihist.mouseRow);
  4662. if (rowstatus == 4) { // 4 : delete
  4663. setPopupMenu("grd_cldihist", false, "/root/hidden/popupmenu/gridcldi/delitem", "name", "func"); // (tfHelper.js) 컨트롤에서 사용자 팝업 설정 함수
  4664. } else {
  4665. setPopupMenu("grd_cldihist", false, "/root/hidden/popupmenu/gridcldi/item", "name", "func"); // (tfHelper.js) 컨트롤에서 사용자 팝업 설정 함수
  4666. }
  4667. }
  4668. // else {
  4669. // // 상병이 한줄도 없는 경우에도 "행 추가"를 하기 위해 사용함
  4670. // window.showPopupMenu(true);
  4671. // window.setPopupMenu(true, "/root/hidden/popupmenu/gridcldi/inititem", "name", "func", false);
  4672. // }
  4673. } else {
  4674. // if (grd_cldihist.isCell(event.target) && grd_cldihist.mouseRow >= grd_cldihist.fixedrows) {
  4675. // // 해당 상병의 한글상병명과 영문상병명이 Message 용 output 컨트롤에 표시된다.
  4676. // var diagcd = model.getValue("/root/main/list1/cldi["+ grd_cldihist.mouseRow +"]/diagcd");
  4677. // var diagnm = model.getValue("/root/main/list1/cldi["+ grd_cldihist.mouseRow +"]/diagnm");
  4678. // var diagengnm = model.getValue("/root/main/list1/cldi["+ grd_cldihist.mouseRow +"]/diagengnm");
  4679. // model.setValue("/root/hidden/list3/msgspclformat", "상병코드 - "+ diagcd +" / "+ diagnm +" / "+ diagengnm);
  4680. // model.refresh();
  4681. // }
  4682. }
  4683. ]]>
  4684. </script>
  4685. <script type="javascript" ev:event="DOMFocusOut">
  4686. <![CDATA[
  4687. initPopupMenu(); // (tfHelper.js) 사용자 팝업 설정 초기화
  4688. ]]>
  4689. </script>
  4690. <script type="javascript" ev:event="ondblclick">
  4691. <![CDATA[
  4692. var row = grd_cldihist.mouseRow;
  4693. if (grd_cldihist.isCell(event.target) && row >= grd_cldihist.fixedrows) {
  4694. var col = grd_cldihist.mouseCol;
  4695. if (col == grd_cldihist.colRef("diagnm")) { // '상병명'
  4696. // 상병코드 조회를 위해 SPPIZ00400_상병코드조회.xrw 를 호출한다.
  4697. fSearchSPPIZ00400();
  4698. fSortDiagNo(true);
  4699. }
  4700. else if (col == grd_cldihist.colRef("toot1")) { // 상병 - 치식여부 (Y/N)
  4701. fDiagOrderToothInput("Diag");
  4702. }
  4703. }
  4704. ]]>
  4705. </script>
  4706. <!-- <script type="javascript" ev:event="onclick">
  4707. <![CDATA[
  4708. if (grd_cldihist.colType(grd_cldihist.col) == "input") {
  4709. grd_cldihist.editCell();
  4710. }
  4711. ]]>
  4712. </script>-->
  4713. <script type="javascript" ev:event="onclick">
  4714. <![CDATA[
  4715. if (grd_cldihist.isCell(event.target) && grd_cldihist.mouseRow >= grd_cldihist.fixedrows) {
  4716. var row = grd_cldihist.mouseRow;
  4717. // 해당 상병의 한글상병명과 영문상병명이 Message 용 output 컨트롤에 표시된다.
  4718. var diagcd = model.getValue("/root/main/list1/cldi["+ row +"]/diagcd");
  4719. var diagnm = model.getValue("/root/main/list1/cldi["+ row +"]/diagnm");
  4720. var diagengnm = model.getValue("/root/main/list1/cldi["+ row +"]/diagengnm");
  4721. model.setValue("/root/hidden/list3/msgspclformat", "상병코드 - "+ diagcd +" / "+ diagnm +" / "+ diagengnm);
  4722. model.refreshpart("/root/hidden/list3/msgspclformat");
  4723. }
  4724. ]]>
  4725. </script>
  4726. <script type="javascript" ev:event="oncopy">
  4727. <![CDATA[
  4728. // 그리드 내용 복사
  4729. if (grd_cldihist.selectedRows == 1) { // 한줄
  4730. var row = grd_cldihist.row;
  4731. var col = grd_cldihist.col;
  4732. if (col == grd_cldihist.colRef("diagcd") || col == grd_cldihist.colRef("diagnm")) {
  4733. // 상병코드/상병명
  4734. // var clip = grd_cldihist.valueMatrix(row, col);
  4735. var clip = grd_cldihist.labelMatrix(row, col);
  4736. // var clip = grd_cldihist.labelMatrix(grd_cldihist.mouseRow, grd_cldihist.mouseCol);
  4737. window.clipBoardData = clip;
  4738. } else {
  4739. grid_oncopy(); // (tfHelper.js) window.clipBoardData 복사 기능
  4740. }
  4741. }
  4742. else if (grd_cldihist.selectedRows > 1) { // 여러줄
  4743. grid_oncopy(); // (tfHelper.js) window.clipBoardData 복사 기능
  4744. }
  4745. ]]>
  4746. </script>
  4747. </datagrid>
  4748. <button id="btn_diagSrch" class="btn2_letter4" _auth="X" style="left:416px; top:0px; width:64px; height:19px; ">
  4749. <caption>상병조회</caption>
  4750. <script type="javascript" ev:event="DOMActivate">
  4751. <![CDATA[
  4752. fSearchSPPIZ00400();
  4753. var clamym = model.getValue("/root/main/item1/clbs/clamym");
  4754. if (clamym) { // 조회된 심사대상자가 있음
  4755. fSortDiagNo(true);
  4756. }
  4757. ]]>
  4758. </script>
  4759. </button>
  4760. <button id="btn_esscdiag" class="btn2_letter4" visibility="hidden" _auth="R" style="left:215px; top:0px; width:64px; height:19px; ">
  4761. <caption>중증질환</caption>
  4762. <script type="javascript" ev:event="DOMActivate">
  4763. <![CDATA[
  4764. var clamym = model.getValue("/root/main/item1/clbs/clamym");
  4765. var clamdg = model.getValue("/root/main/item1/clbs/clamdg");
  4766. var pid = model.getValue("/root/main/item1/clbs/pid");
  4767. var pidsn = model.getValue("/root/main/item1/clbs/pidsn");
  4768. if (clamym) { // 조회된 심사대상자가 있으면
  4769. // 중증, 산정특례 여부 체크
  4770. model.makeValue("/root/send/item6/essc/esscclamym", clamym);
  4771. model.makeValue("/root/send/item6/essc/esscclamdg", clamdg);
  4772. model.makeValue("/root/send/item6/essc/esscpid", pid);
  4773. model.makeValue("/root/send/item6/essc/esscpidsn", pidsn);
  4774. submit("TRPID20509");
  4775. var cEssc = instance1.selectSingleNode("/root/main/item6/essc");
  4776. if (cEssc == null) { // 특례기호가 없는 경우임
  4777. return;
  4778. }
  4779. var isEsscV193 = false;
  4780. var isEsscV191V192 = false;
  4781. var isEsscVelse = false;
  4782. cEssc = instance1.selectSingleNode("/root/main/item6");
  4783. var cEsscChildNodeList = cEssc.childNodes;
  4784. for (var i = 1; i <= cEsscChildNodeList.length; i++) { // root/main/item6/essc
  4785. var spclcd = model.getValue("root/main/item6/essc["+ i +"]/vcode");
  4786. if (spclcd == "V193") {
  4787. isEsscV193 = true;
  4788. }
  4789. else if (spclcd == "V191" || spclcd == "V192") {
  4790. isEsscV191V192 = true;
  4791. }
  4792. else {
  4793. isEsscVelse = true;
  4794. }
  4795. }
  4796. var newsuppkind = "";
  4797. var supprateid = "";
  4798. var msg = "";
  4799. var suppkindcd = model.getValue("/root/main/item1/clbs/suppkindcd");
  4800. if (isEsscV193) { // 등록 암환자
  4801. if (suppkindcd != "06") { // 06: 등록암 10%
  4802. newsuppkind = "06";
  4803. supprateid = "06/10";
  4804. msg = "등록암환자입니다. 중증요율";
  4805. }
  4806. }
  4807. else if (isEsscV191V192) { // 개두술(V191) 및 개심술(V192)환자
  4808. if (suppkindcd != "05") { // 05: 개심,개두 10%
  4809. newsuppkind = "05";
  4810. supprateid = "05/10";
  4811. msg = "개심,개두환자입니다. 중증요율";
  4812. }
  4813. }
  4814. else if (isEsscVelse) {
  4815. if (suppkindcd != "07") { // 07: 산정특례 20%
  4816. newsuppkind = "07";
  4817. supprateid = "07/20";
  4818. msg = "산정특례환자입니다. 산정특례";
  4819. }
  4820. }
  4821. if (newsuppkind){
  4822. var ans = messageBox(msg+" 적용","S001"); ///***환자입니다. **요율 적용하시려면 예(Yes)\n아니면 아니오(No)
  4823. if (ans != 6) { // 6: yes
  4824. return;
  4825. } else {
  4826. // model.setValue("/root/main/item1/clbs/suppkindcd", newsuppkind);
  4827. model.setValue("/root/hidden/item1/clbs/patsupprate", supprateid);
  4828. model.refreshpart("/root/hidden/item1/clbs/patsupprate");
  4829. // 보조유형 및 요율 combo의 선택 값이 변경된 경우 각각을 해당 output에 설정한다.
  4830. fSetPatSuppRate();
  4831. model.makeValue("/root/send/item4/endclbs/suppkind", newsuppkind);
  4832. }
  4833. }
  4834. }
  4835. ]]>
  4836. </script>
  4837. </button>
  4838. <output id="opt_drgcd" ref="/root/main/item1/clbs/drgcd" class="output_fix" visibility="hidden" style="left:77px; top:1px; width:58px; height:19px; text-align:center; "/>
  4839. <button id="button2" class="btn2_letter4" _auth="X" style="left:215px; top:0px; width:64px; height:19px; ">
  4840. <caption>청구상병</caption>
  4841. <script type="javascript" ev:event="DOMActivate">
  4842. <![CDATA[
  4843. fGetClamDiagHistList(); // 특정 환자에 대한 상병이력을 조회한다.
  4844. ]]>
  4845. </script>
  4846. </button>
  4847. <select1 id="cbo_diag" ref="/root/main/item1/clbs/orddiag" class="combo_default" appearance="minimal" editmode="inputsearch" showvalue="true" style="left:56px; top:0px; width:156px; height:19px; text-align:left; ">
  4848. <choices>
  4849. <itemset nodeset="/root/main/diaghist01/list01/mmohdiag1">
  4850. <label ref="diaghngnm"/>
  4851. <value ref="diagcd"/>
  4852. </itemset>
  4853. </choices>
  4854. </select1>
  4855. </group>
  4856. <caption id="caption14" class="cell_1" style="left:1062px; top:31px; width:55px; height:23px; text-align:left; ">청구구분</caption>
  4857. <output id="opt_clamno" ref="/root/main/item1/clbs/clamno" class="output_fix" style="left:1118px; top:55px; width:73px; height:19px; "/>
  4858. <caption id="caption17" class="cell_1" style="left:1062px; top:55px; width:55px; height:23px; text-align:left; ">청구번호</caption>
  4859. <select1 id="cmb_clamflagcd" ref="/root/main/item1/clbs/clamflagcd" class="combo_default" disabled="true" appearance="minimal" style="left:1118px; top:31px; width:73px; height:19px; ">
  4860. <choices>
  4861. <itemset nodeset="/root/init/P0155list/P0155">
  4862. <label ref="cdnm"/>
  4863. <value ref="cdid"/>
  4864. </itemset>
  4865. </choices>
  4866. </select1>
  4867. <select1 id="cmb_judgendstat" ref="/root/main/item1/clbs/judgendyn" class="combo_default" disabled="true" visibility="hidden" appearance="minimal" style="left:1118px; top:80px; width:73px; height:19px; ">
  4868. <choices>
  4869. <itemset nodeset="/root/init/P0151list/P0151">
  4870. <label ref="cdnm"/>
  4871. <value ref="cdid"/>
  4872. </itemset>
  4873. </choices>
  4874. </select1>
  4875. <group id="grp_aftamt" style="left:0px; top:744px; width:1194px; height:27px; ">
  4876. <line id="line11" class="line_3" style="x1:0px; y1:2px; x2:1191px; y2:2px; "/>
  4877. <caption id="caption21" style="left:0px; top:4px; width:26px; height:23px; text-align:center; background-color:#ffe79d; ">인수</caption>
  4878. <output id="opt_acptamt" ref="/root/main/item1/clbs/acptamt" class="output_fix" format="#,###" appearance="output" style="left:25px; top:5px; width:60px; height:19px; text-align:right; "/>
  4879. <caption id="caption23" style="left:171px; top:4px; width:26px; height:23px; text-align:center; background-color:#ffe79d; ">사후</caption>
  4880. <output id="opt_clamamt" ref="/root/main/item1/clbs/clamamt" class="output_fix" format="#,###" appearance="output" style="left:197px; top:5px; width:60px; height:19px; text-align:right; "/>
  4881. <caption id="caption27" style="left:453px; top:4px; width:38px; height:23px; font-size:10; text-align:center; background-color:#f7a08b; ">심사수정차액</caption>
  4882. <output id="opt_judgdifamt" ref="/root/main/item1/clbs/judgdifamt" class="output_fix" format="(-)#,###" appearance="output" style="left:491px; top:5px; width:60px; height:19px; text-align:right; "/>
  4883. <caption id="caption28" class="cell_1" style="left:551px; top:4px; width:31px; height:23px; text-align:center; ">본인</caption>
  4884. <output id="opt_ownbamt" ref="/root/main/item1/clbs/ownbamt" class="output_fix" format="#,###" appearance="output" style="left:582px; top:5px; width:60px; height:19px; text-align:right; "/>
  4885. <caption id="caption36" class="cell_1" style="left:642px; top:4px; width:31px; height:23px; text-align:center; ">청구</caption>
  4886. <output id="opt_insuclamamt" ref="/root/main/item1/clbs/insuclamamt" class="output_fix" format="#,###" appearance="output" style="left:672px; top:5px; width:60px; height:19px; text-align:right; "/>
  4887. <caption id="caption38" class="cell_1" style="left:732px; top:4px; width:31px; height:23px; text-align:center; ">상한</caption>
  4888. <output id="opt_ownbmaxexamt" ref="/root/main/item1/clbs/ownbmaxexamt" class="output_fix" format="#,###" appearance="output" style="left:762px; top:5px; width:60px; height:19px; text-align:right; "/>
  4889. <caption id="caption39" class="cell_1" style="left:911px; top:4px; width:31px; height:23px; ">장애</caption>
  4890. <output id="opt_handcaprfund" ref="/root/main/item1/clbs/handcaprfund" class="output_fix" format="#,###" appearance="output" style="left:941px; top:5px; width:60px; height:19px; text-align:right; "/>
  4891. <caption id="caption40" class="cell_1" style="left:1101px; top:4px; width:31px; height:23px; ">대불</caption>
  4892. <output id="opt_subtamt" ref="/root/main/item1/clbs/subtamt" class="output_fix" format="#,###" appearance="output" style="left:1132px; top:5px; width:59px; height:19px; text-align:right; "/>
  4893. <line id="line12" class="line_3" style="x1:0px; y1:26px; x2:1191px; y2:26px; "/>
  4894. <caption id="caption2" class="cell_1" style="left:822px; top:4px; width:31px; height:22px; ">지원</caption>
  4895. <output id="opt_suppamt" ref="/root/main/item1/clbs/suppamt" class="output_fix" format="#,###" appearance="output" style="left:851px; top:5px; width:60px; height:19px; text-align:right; "/>
  4896. <output id="output1" ref="/root/main/item1/clbs/bfclamamt" class="output_fix" format="#,###" appearance="output" style="left:111px; top:5px; width:60px; height:19px; text-align:right; "/>
  4897. <caption id="caption10" style="left:85px; top:3px; width:26px; height:23px; text-align:center; background-color:#ffe79d; ">사전</caption>
  4898. <caption id="caption15" style="left:257px; top:3px; width:38px; height:23px; font-size:10; text-align:center; background-color:#ffcc99; ">인수차액총액</caption>
  4899. <output id="output2" ref="/root/main/item1/clbs/bfclamdifamt" class="output_fix" format="(-)#,###" appearance="output" style="left:295px; top:5px; width:60px; height:19px; text-align:right; "/>
  4900. <caption id="caption16" style="left:355px; top:3px; width:38px; height:23px; font-size:10; text-align:center; background-color:#ffcc99; ">인수차액본인부담</caption>
  4901. <output id="output4" ref="/root/main/item1/clbs/bfowndifamt" class="output_fix" format="(-)#,###" appearance="output" style="left:393px; top:5px; width:60px; height:19px; text-align:right; "/>
  4902. <caption id="caption18" class="cell_1" style="left:1001px; top:4px; width:43px; height:22px; font-size:10; ">약제상한차액총액</caption>
  4903. <output id="output5" ref="/root/main/item1/clbs/totlimitdiffamt" class="output_fix" format="#,###" appearance="output" style="left:1044px; top:5px; width:58px; height:19px; text-align:right; "/>
  4904. </group>
  4905. <input id="ipt_chosindayno" ref="/root/main/item1/clbs/chosindayno" class="input_default" navindex="5" imemode="disabled" _auth="R" style="left:716px; top:80px; width:38px; height:19px; text-align:right; ">
  4906. <hint>
  4907. <![CDATA[내원일수]]>
  4908. </hint>
  4909. </input>
  4910. <input id="ipt_medcaredayno" ref="/root/main/item1/clbs/medcaredayno" class="input_default" navindex="6" imemode="disabled" _auth="R" style="left:757px; top:80px; width:38px; height:19px; text-align:right; ">
  4911. <hint>
  4912. <![CDATA[요양일수]]>
  4913. </hint>
  4914. </input>
  4915. <button id="btn_trgtsrch" class="btn2_letter5" _auth="R" style="left:1117px; top:357px; width:75px; height:19px; ">
  4916. <caption>대상자조회</caption>
  4917. <script type="javascript" ev:event="DOMActivate">
  4918. <![CDATA[
  4919. fGetOutAftJudgTrgtManPidSrch();
  4920. ]]>
  4921. </script>
  4922. </button>
  4923. <button id="btn_pretrgtman" class="icon_left" _auth="R" style="left:1124px; top:378px; width:26px; height:19px; ">
  4924. <caption/>
  4925. <script type="javascript" ev:event="DOMActivate">
  4926. <![CDATA[
  4927. // 이전 심사대상 조회
  4928. fClickPrevNext("P");
  4929. ]]>
  4930. </script>
  4931. </button>
  4932. <button id="btn_nexttrgtman" class="icon_right" _auth="R" style="left:1159px; top:378px; width:26px; height:19px; ">
  4933. <caption/>
  4934. <script type="javascript" ev:event="DOMActivate">
  4935. <![CDATA[
  4936. // 다음 심사대상 조회
  4937. fClickPrevNext("N");
  4938. ]]>
  4939. </script>
  4940. </button>
  4941. <button id="btn_outrcpt" class="btn2_letter5" _auth="R" style="left:1117px; top:619px; width:75px; height:19px; ">
  4942. <caption>외래수납</caption>
  4943. <script type="javascript" ev:event="DOMActivate">
  4944. <![CDATA[
  4945. var clamym = model.getValue("/root/main/item1/clbs/clamym");
  4946. if (clamym) {
  4947. // pam/outordamtmngtweb/xrw/SMPAO00300_외래수납조회.xrw
  4948. // var judgOpenWindow = getChildWindow("SMPAO00300"); // SMPAO00300_외래수납조회.xrw
  4949. // if (judgOpenWindow == null) {
  4950. model.resetInstanceNode("/root/hidden/smpao00300/cond");
  4951. model.setValue("/root/hidden/smpao00300/cond/pid", model.getValue("/root/main/item1/clbs/pid"));
  4952. model.setValue("/root/hidden/smpao00300/cond/orddeptcd", model.getValue("/root/main/item1/clbs/orddeptcd"));
  4953. model.setValue("/root/hidden/smpao00300/cond/insukind", model.getValue("/root/main/item1/clbs/insukindcd"));
  4954. model.setValue("/root/hidden/smpao00300/cond/cond", "1"); // 1:수납일자, 2:진료일자
  4955. model.setValue("/root/hidden/smpao00300/cond/fromdd", model.getValue("/root/main/item1/clbs/indd"));
  4956. model.setValue("/root/hidden/smpao00300/cond/todd", model.getValue("/root/main/item1/clbs/dschdd"));
  4957. model.setValue("/root/hidden/smpao00300/cond/mig_oscl2yn", false);
  4958. model.setValue("/root/hidden/smpao00300/cond/togoyn", false);
  4959. modal("SMPAO00300", "1", "10", "10", "SMPAO00300", "/root/hidden/smpao00300/cond", "/root/send", "", ""); // SMPAO00300_외래수납조회
  4960. // open("SMPAO00300", "2", "10", "10", "SMPAO00300", "/root/hidden/smpao00300/cond", "/root/send", "", ""); // SMPAO00300_외래수납조회
  4961. // } else {
  4962. // activateChild("SMPAO00300");
  4963. // }
  4964. }
  4965. ]]>
  4966. </script>
  4967. </button>
  4968. <button id="btn_patinfodetl" class="btn2_letter5" _auth="R" style="left:1117px; top:662px; width:75px; height:19px; ">
  4969. <caption>환자상세</caption>
  4970. <script type="javascript" ev:event="DOMActivate">
  4971. <![CDATA[
  4972. var clamym = model.getValue("/root/main/item1/clbs/clamym");
  4973. if (clamym) {
  4974. // pam/patinfomngtweb/xrw/SMPMC01900_환자상세내역조회.xrw
  4975. // 환자상세내역조회
  4976. modal("SMPMC01900", "1", "10", "10", "SMPMC01900", "/root/main/item1/clbs/pid", "/root/source/pid", "", ""); // SMPMC01900_환자상세내역조회.xrw
  4977. }
  4978. ]]>
  4979. </script>
  4980. </button>
  4981. <button id="btn_excelsave" class="btn2_letter5" _auth="P" style="left:1117px; top:683px; width:75px; height:19px; ">
  4982. <caption>
  4983. <![CDATA[엑셀&출력]]>
  4984. </caption>
  4985. <script type="javascript" ev:event="DOMActivate">
  4986. <![CDATA[
  4987. var ans = messageBox("1. 엑셀저장", "S006", "2. 프린터출력|3. 취소"); ///하시려면 예(Yes)\n아니면 아니오(No)
  4988. if (ans == 6) {
  4989. //원내처방 엑셀저장
  4990. if (grd_clodhist.rows > 1) {
  4991. var isSave = false;
  4992. for (var i = grd_clodhist.fixedRows; i < grd_clodhist.rows; i ++ ) {
  4993. if (grd_clodhist.rowHidden(i) == false) {
  4994. isSave = true;
  4995. i = grd_clodhist.rows;
  4996. }
  4997. }
  4998. if (isSave == false) {
  4999. messageBox("처방 필터를 변경하세요. 엑셀저장할 원내처방이", "I004"); ///처방 필터를 변경하세요. 엑셀저장할 원내처방이 없습니다.
  5000. return;
  5001. }
  5002. var fileName = window.fileDialog("save", "", false, "원내처방", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  5003. if (fileName != "") {
  5004. //datagrid.saveExcel의 7번째 인자 값(boolean) : 그리드의 col type=combo일 경우 엑셀저장내용이 lable 또는 value로 설정 함
  5005. // grd_clodhist.saveExcel(fileName, "SheetName", true, true, "", "", true);
  5006. // grd_clodhist.saveExcel(fileName, "sheetname:Transaction;colhiddenextend:true;", true, true, "", "", true);
  5007. grd_clodhist.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
  5008. }
  5009. } else {
  5010. messageBox("엑셀저장할 원내처방이", "I004"); ///엑셀저장할 원내처방이 없습니다.
  5011. }
  5012. //원외처방 엑셀저장
  5013. if (grd_oprcphist.rows > 1) {
  5014. var isSave = false;
  5015. for (var i = grd_oprcphist.fixedRows; i < grd_oprcphist.rows; i ++ ) {
  5016. if (grd_oprcphist.rowHidden(i) == false) {
  5017. isSave = true;
  5018. i = grd_oprcphist.rows;
  5019. }
  5020. }
  5021. if (isSave == false) {
  5022. //messageBox("처방 필터를 변경하세요. 엑셀저장할 원외처방이", "I004"); ///처방 필터를 변경하세요. 엑셀저장할 원외처방이 없습니다.
  5023. return;
  5024. }
  5025. var fileName = window.fileDialog("save", "", false, "원외처방", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  5026. if (fileName != "") {
  5027. //datagrid.saveExcel의 7번째 인자 값(boolean) : 그리드의 col type=combo일 경우 엑셀저장내용이 lable 또는 value로 설정 함
  5028. grd_oprcphist.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
  5029. }
  5030. }
  5031. }
  5032. else if (ans == 7) {
  5033. if (grd_clodhist.rows > 1) {
  5034. // 선택 : 부분출력(예6), 전체출력(아니오7), 취소(취소7)
  5035. // 보고서에 들어갈 내용 담기
  5036. var pid = model.getValue("/root/main/item1/clbs/pid");
  5037. var patnm = model.getValue("/root/main/item1/clbs/patnm");
  5038. var ordfromdd = model.getValue("/root/main/item1/clbs/ordfromdd");
  5039. var ordtodd = model.getValue("/root/main/item1/clbs/ordtodd");
  5040. var insukind = model.getValue("/root/main/item1/clbs/insukindcd");
  5041. var insukindnm = model.getValue("/root/main/item1/clbs/insukindnm");
  5042. var suppkind = model.getValue("/root/main/item1/clbs/suppkindcd");
  5043. var suppkindnm = cmb_supprate.label;
  5044. var iphsfromdd = model.getValue("/root/main/item1/clbs/iphsfromdd"); // 유형시작일
  5045. var diagcd = model.getValue("/root/main/list1/cldi/diagcd") + " (" + model.getValue("/root/main/list1/cldi/diagnm") + ")";
  5046. var ret = messageBox("데이터를 부분출력", "S001"); ///데이터를 부분출력 하시려면 예(Yes)\n아니면 아니오(No)
  5047. if (ret == 6) {
  5048. // 1. 부분출력 (그리드에 선택된 행만 보고서로 전달한다.)
  5049. model.removeNodeset("/root/send/prntlist");
  5050. model.makeNode("/root/send/prntlist");
  5051. var idx = 1;
  5052. for (var i = 0; i < grd_clodhist.selectedRows; i++) {
  5053. var row = grd_clodhist.selectedRow(i);
  5054. // 상단 정보
  5055. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/pid", pid); // 환자번호
  5056. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/patnm", patnm); // 성명
  5057. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/indd", ordfromdd); // 진료시작일
  5058. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/insukindcd", insukind); // 환자유형
  5059. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/insukindnm", insukindnm);
  5060. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/suppkindcd", suppkind); // 보조유형
  5061. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/suppkindnm", suppkindnm);
  5062. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/iphsfromdd", ordtodd); // 진료종료일
  5063. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/diagcd", diagcd);
  5064. // 리스트
  5065. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/edilnno", model.getValue("/root/main/list2/clod["+ row +"]/edilnno")); // 줄
  5066. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/item1", model.getValue("/root/main/list2/clod["+ row +"]/ediitem1")); // 항
  5067. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/item2", model.getValue("/root/main/list2/clod["+ row +"]/ediitem2")); // 목
  5068. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/ordfromdd", model.getValue("/root/main/list2/clod["+ row +"]/ordfromdd")); // 처방시작일자
  5069. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/grupsnglflag", model.getValue("/root/main/list2/clod["+ row +"]/grupsnglflag")); // G
  5070. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/grupcalcscorcd", model.getValue("/root/main/list2/clod["+ row +"]/grupcalcscorcd")); // 그룹코드
  5071. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/matractflag", grd_clodhist.labelMatrix(row, grd_clodhist.colRef("matractflag"))); // 행위재료
  5072. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/snglcalcscorcd", model.getValue("/root/main/list2/clod["+ row +"]/snglcalcscorcd")); // 수가코드
  5073. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/basecd", model.getValue("/root/main/list2/clod["+ row +"]/basecd")); // EDI코드
  5074. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/estmcd", model.getValue("/root/main/list2/clod["+ row +"]/estmcd")); // 산정코드
  5075. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/hngnm", model.getValue("/root/main/list2/clod["+ row +"]/hngnm")); // 한글명
  5076. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/payflag", grd_clodhist.labelMatrix(row, grd_clodhist.colRef("payflag"))); // 급비
  5077. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/ediunitcost", model.getValue("/root/main/list2/clod["+ row +"]/ediunitcost")); // 단가
  5078. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/edidrugqty", model.getValue("/root/main/list2/clod["+ row +"]/edidrugqty")); // 1회량
  5079. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/tims", model.getValue("/root/main/list2/clod["+ row +"]/tims")); // 횟수
  5080. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/daydrugqty", model.getValue("/root/main/list2/clod["+ row +"]/daydrugqty")); // 1일량(일투)
  5081. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/dayno", model.getValue("/root/main/list2/clod["+ row +"]/dayno")); // 일수(총투)
  5082. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/ediamt", model.getValue("/root/main/list2/clod["+ row +"]/ediamt")); // 금액
  5083. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/cnfmcd", model.getValue("/root/main/list2/clod["+ row +"]/cnfmcd")); // 확인코드
  5084. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/ordtodd", model.getValue("/root/main/list2/clod["+ row +"]/ordtodd")); // 처방종료일자
  5085. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/updtdd", model.getValue("/root/main/list2/clod["+ row +"]/updtdd")); // 변경일자
  5086. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/edihospaddamt", model.getValue("/root/main/list2/clod["+ row +"]/edihospaddamt")); // 병원가산단가
  5087. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/ediaddamt", model.getValue("/root/main/list2/clod["+ row +"]/ediaddamt")); // 가산단가
  5088. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/totordamt", model.getValue("/root/main/list2/clod["+ row +"]/totordamt")); // 진료비총액
  5089. idx++;
  5090. }
  5091. //model.refresh();
  5092. exeReportPreview("RPPID20500", "XMLSTR", "", "", "false", "", "", "", "", "false");
  5093. } else if (ret == 7) {
  5094. // 2. 전체출력 (그리드에 보여지는 내용 전체를 보고서로 전달한다.)
  5095. var isPrint = false;
  5096. model.removeNodeset("/root/send/prntlist");
  5097. model.makeNode("/root/send/prntlist");
  5098. var idx = 1;
  5099. for (var i = grd_clodhist.fixedRows; i < grd_clodhist.rows; i ++ ) {
  5100. if (grd_clodhist.rowHidden(i) == false) {
  5101. isPrint = true;
  5102. var row = i;
  5103. // 상단 정보
  5104. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/pid", pid); // 환자번호
  5105. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/patnm", patnm); // 성명
  5106. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/indd", ordfromdd); // 진료시작일
  5107. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/insukindcd", insukind); // 환자유형
  5108. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/insukindnm", insukindnm);
  5109. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/suppkindcd", suppkind); // 보조유형
  5110. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/suppkindnm", suppkindnm);
  5111. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/iphsfromdd", ordtodd); // 진료종료일
  5112. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/diagcd", diagcd);
  5113. // 리스트
  5114. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/edilnno", model.getValue("/root/main/list2/clod["+ row +"]/edilnno")); // 줄
  5115. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/item1", model.getValue("/root/main/list2/clod["+ row +"]/ediitem1")); // 항
  5116. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/item2", model.getValue("/root/main/list2/clod["+ row +"]/ediitem2")); // 목
  5117. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/ordfromdd", model.getValue("/root/main/list2/clod["+ row +"]/ordfromdd")); // 처방시작일자
  5118. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/grupsnglflag", model.getValue("/root/main/list2/clod["+ row +"]/grupsnglflag")); // G
  5119. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/grupcalcscorcd", model.getValue("/root/main/list2/clod["+ row +"]/grupcalcscorcd")); // 그룹코드
  5120. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/matractflag", model.getValue("/root/main/list2/clod["+ row +"]/matractflag")); // 행위재료
  5121. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/snglcalcscorcd", model.getValue("/root/main/list2/clod["+ row +"]/snglcalcscorcd")); // 수가코드
  5122. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/basecd", model.getValue("/root/main/list2/clod["+ row +"]/basecd")); // EDI코드
  5123. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/estmcd", model.getValue("/root/main/list2/clod["+ row +"]/estmcd")); // 산정코드
  5124. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/hngnm", model.getValue("/root/main/list2/clod["+ row +"]/hngnm")); // 한글명
  5125. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/payflag", model.getValue("/root/main/list2/clod["+ row +"]/payflag")); // 급비
  5126. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/ediunitcost", model.getValue("/root/main/list2/clod["+ row +"]/ediunitcost")); // 단가
  5127. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/edidrugqty", model.getValue("/root/main/list2/clod["+ row +"]/edidrugqty")); // 1회량
  5128. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/tims", model.getValue("/root/main/list2/clod["+ row +"]/tims")); // 횟수
  5129. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/daydrugqty", model.getValue("/root/main/list2/clod["+ row +"]/daydrugqty")); // 1일량(일투)
  5130. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/dayno", model.getValue("/root/main/list2/clod["+ row +"]/dayno")); // 일수(총투)
  5131. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/ediamt", model.getValue("/root/main/list2/clod["+ row +"]/ediamt")); // 금액
  5132. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/cnfmcd", model.getValue("/root/main/list2/clod["+ row +"]/cnfmcd")); // 확인코드
  5133. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/ordtodd", model.getValue("/root/main/list2/clod["+ row +"]/ordtodd")); // 처방종료일자
  5134. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/updtdd", model.getValue("/root/main/list2/clod["+ row +"]/updtdd")); // 변경일자
  5135. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/edihospaddamt", model.getValue("/root/main/list2/clod["+ row +"]/edihospaddamt")); // 병원가산단가
  5136. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/ediaddamt", model.getValue("/root/main/list2/clod["+ row +"]/ediaddamt")); // 가산단가
  5137. model.makeValue("/root/send/prntlist/prntinfo["+ idx +"]/totordamt", model.getValue("/root/main/list2/clod["+ row +"]/totordamt")); // 진료비총액
  5138. idx++;
  5139. }
  5140. }
  5141. if (isPrint == false) {
  5142. messageBox("처방 필터를 변경하세요. 출력할 처방이", "I004"); ///처방 필터를 변경하세요. 출력할 처방이 없습니다.
  5143. return;
  5144. }
  5145. model.refresh();
  5146. exeReportPreview("RPPID20500", "XMLSTR", "", "", "false", "", "", "", "", "false");
  5147. } else {
  5148. // 3. 취소
  5149. return;
  5150. }
  5151. } else {
  5152. messageBox("출력할 처방이", "I004"); ///출력할 처방이 없습니다.
  5153. }
  5154. }
  5155. ]]>
  5156. </script>
  5157. </button>
  5158. <caption id="caption46" class="cell_1" style="left:1116px; top:704px; width:75px; height:23px; ">자보한도</caption>
  5159. <output id="opt_paylimamt" ref="/root/main/item1/clbs/paylimamt" class="output_fix" format="#,###" appearance="output" style="left:1115px; top:724px; width:75px; height:19px; text-align:right; "/>
  5160. <button id="btn_autolimit" style="left:1174px; top:707px; width:14px; height:14px; background-image:../../../com/commonweb/images/icon_btn.gif; ">
  5161. <caption/>
  5162. <script type="javascript" ev:event="onclick">
  5163. <![CDATA[
  5164. var insukind = model.getValue("/root/main/item1/clbs/insukindcd");
  5165. var suppkind = model.getValue("/root/main/item1/clbs/suppkindcd");
  5166. if (insukind != "31" && suppkind != "18") {
  5167. messageBox("자보환자중 자손/책임/무보험만 한도잔액조회","I006");
  5168. return;
  5169. }
  5170. model.resetInstanceNode("/root/hidden/sppmc04500/cond");
  5171. model.setValue("/root/hidden/sppmc04500/cond/pid", model.getValue("/root/main/item1/clbs/pid"));
  5172. modal("SPPMC04500", "1", "", "", "SPPMC04500", "/root/hidden/sppmc04500/cond", "/root/send");
  5173. ]]>
  5174. </script>
  5175. </button>
  5176. <button id="btn_maininit" class="btn5_letter5" _auth="R" style="left:1117px; top:510px; width:75px; height:19px; ">
  5177. <caption>종료</caption>
  5178. <script type="javascript" ev:event="DOMActivate">
  5179. <![CDATA[
  5180. fInitSrchData(); // 화면을 초기화한다.
  5181. // 치식팝업 닫기
  5182. var tootpopwindow = getChildWindow("SPPIZ00600");
  5183. if ( tootpopwindow != null ) { tootpopwindow.close(); }
  5184. model.refresh();
  5185. ]]>
  5186. </script>
  5187. <hint>
  5188. <![CDATA[화면초기화]]>
  5189. </hint>
  5190. </button>
  5191. <group id="grp_clsphist" style="left:483px; top:101px; width:709px; height:168px; ">
  5192. <switch id="swt_spclmemo" class="sw_box" style="left:0px; top:24px; width:709px; height:144px; ">
  5193. <case id="case_spclspec" selected="true">
  5194. <datagrid id="grd_clsphist" nodeset="/root/main/list3/clsp" caption="X^구분^줄^수가코드^한글명^특정내역코드^구분코드^내역^형식^상세설명^initedilnno^oldedilnno^seqno^oldspclcd^clodseqno^원외^교부번호^workflag^spclcd^caption1" colsep="^" colwidth="15, 30, 24, 61, 45, 152, 70, 210, 82, 440, 30, 30, 30, 30, 41, 38, 100, 29, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:2px; top:23px; width:704px; height:118px; ">
  5195. <col ref="rowstat"/>
  5196. <col ref="unitflag" style="text-align:center; "/>
  5197. <col ref="edilnno"/>
  5198. <col ref="snglcalcscorcd"/>
  5199. <col ref="hngnm"/>
  5200. <col id="col01" ref="spclcd" type="combo">
  5201. <choices>
  5202. <itemset nodeset="/root/init/P0117list/P0117">
  5203. <label ref="cdengabbrnm"/>
  5204. <value ref="cdid"/>
  5205. </itemset>
  5206. </choices>
  5207. </col>
  5208. <col ref="cdnm" visibility="hidden" style="background-color:#c0c0c0; "/>
  5209. <col ref="spclspec" type="input"/>
  5210. <col ref="spclformat"/>
  5211. <col ref="detldesc" visibility="hidden"/>
  5212. <col ref="initedilnno" visibility="hidden" style="background-color:#c0c0c0; "/>
  5213. <col ref="oldedilnno" visibility="hidden" style="background-color:#c0c0c0; "/>
  5214. <col ref="seqno" visibility="hidden" style="background-color:#c0c0c0; "/>
  5215. <col ref="oldspclcd" visibility="hidden" style="background-color:#c0c0c0; "/>
  5216. <col ref="clodseqno" visibility="hidden" style="background-color:#c0c0c0; "/>
  5217. <col ref="clsoyn" style="text-align:center; "/>
  5218. <col ref="mpsno" type="input" visibility="visible" style="text-align:center; "/>
  5219. <col ref="workflag" visibility="hidden" style="background-color:#c0c0c0; "/>
  5220. <col ref="spclcd" visibility="hidden" style="background-color:#c0c0c0; "/>
  5221. <col ref="insntstat" visibility="hidden" style="background-color:#c0c0c0; "/>
  5222. <script type="javascript" ev:event="onmousedown">
  5223. <![CDATA[
  5224. setPopupMenu("grd_clsphist", false, "/root/hidden/popupmenu/gridclsp/item", "name", "func"); // (tfHelper.js) 컨트롤에서 사용자 팝업 설정 함수
  5225. // if (event.button != 3) {
  5226. // var row = grd_clsphist.mouseRow;
  5227. // if (grd_clsphist.isCell(event.target) && row >= grd_clsphist.fixedRows) {
  5228. // // 해당 특정코드의 기재형식이 Message 용 output 컨트롤에 표시된다.
  5229. // var spclcd = model.getValue("/root/main/list3/clsp["+ row +"]/spclcd");
  5230. // if (spclcd == "JT001") {
  5231. // var spclspec = model.getValue("/root/main/list3/clsp["+ row +"]/spclspec");
  5232. // var spclformat = model.getValue("/root/main/list3/clsp["+ row +"]/spclformat");
  5233. // model.setValue("/root/hidden/list3/msgspclformat", "확인코드 - "+ spclcd +" / 입력코드내역 : "+ spclspec +" / 기재형식 : "+ spclformat);
  5234. // model.refresh();
  5235. // } else if (spclcd) {
  5236. // var cdnm = model.getValue("/root/main/list3/clsp["+ row +"]/cdnm");
  5237. // var spclspec = model.getValue("/root/main/list3/clsp["+ row +"]/spclspec");
  5238. // var spclformat = model.getValue("/root/main/list3/clsp["+ row +"]/spclformat");
  5239. // model.setValue("/root/hidden/list3/msgspclformat", "특정내역코드: "+ spclcd +" / 특정내역명칭: "+ cdnm +" / 기재내역: "+ spclspec +" / 기재형식: "+ spclformat);
  5240. // model.refresh();
  5241. // }
  5242. // }
  5243. // }
  5244. ]]>
  5245. </script>
  5246. <script type="javascript" ev:event="xforms-value-changed">
  5247. <![CDATA[
  5248. // 특정내역 그리드 변경시
  5249. fSpclGridChanged();
  5250. ]]>
  5251. </script>
  5252. <script type="javascript" ev:event="onmouseover">
  5253. <![CDATA[
  5254. var row = grd_clsphist.mouseRow;
  5255. if (grd_clsphist.isCell(event.target) && row >= grd_clsphist.fixedRows) {
  5256. var rowstatus = grd_clsphist.rowstatus(grd_clsphist.mouseRow);
  5257. if (rowstatus == 0 || rowstatus == 2 || rowstatus == 4) { // DB에 저장된 data인 경우
  5258. grd_clsphist.colDisabled(grd_clsphist.colRef("spclcd")) = true;
  5259. grd_clsphist.colDisabled(grd_clsphist.colRef("spclspec")) = false;
  5260. } else { // 신규로 추가한 경우
  5261. grd_clsphist.colDisabled(grd_clsphist.colRef("spclcd")) = false;
  5262. grd_clsphist.colDisabled(grd_clsphist.colRef("spclspec")) = false;
  5263. var unitflag = model.getValue("/root/main/list3/clsp["+ grd_clsphist.mouseRow +"]/unitflag");
  5264. if (unitflag == "J") {
  5265. if (model.getValue("/root/main/list3/clsp["+ grd_clsphist.mouseRow +"]/spclcd") == "JT001") {
  5266. // 확인코드의 경우 전용 팝업창을 사용하므로 특정내역 Grid에서 수정하지 않는다.
  5267. grd_clsphist.colDisabled(grd_clsphist.colRef("spclcd")) = true;
  5268. grd_clsphist.cellComboNodeset(row, grd_clsphist.colRef("spclcd")) = "/root/init/P0117list/P0117[cdid = 'JT001']";
  5269. } else {
  5270. grd_clsphist.cellComboNodeset(row, grd_clsphist.colRef("spclcd")) = "/root/init/P0117list/P0117[minval = 'J' and cdid != 'JT001']";
  5271. }
  5272. } else {
  5273. grd_clsphist.cellComboNodeset(row, grd_clsphist.colRef("spclcd")) = "/root/init/P0117list/P0117[minval = 'M' and cdid != 'MX999']";
  5274. }
  5275. }
  5276. }
  5277. ]]>
  5278. </script>
  5279. <script type="javascript" ev:event="DOMFocusOut">
  5280. <![CDATA[
  5281. initPopupMenu(); // (tfHelper.js) 사용자 팝업 설정 초기화
  5282. ]]>
  5283. </script>
  5284. <script type="javascript" ev:event="ondblclick">
  5285. <![CDATA[
  5286. // 특정내역 Grid 에서 선택한 줄단위 특정내역을 조회하고, 명세서단위 특정내역을 수정/입력한다.
  5287. if (grd_clsphist.isCell(event.target) && grd_clsphist.mouseRow >= grd_clsphist.fixedRows) {
  5288. var row = grd_clsphist.mouseRow;
  5289. if (model.getValue("/root/main/list3/clsp["+ row +"]/spclcd") == "JT001") {
  5290. fSetCnfmCdSpclSpec();
  5291. } else {
  5292. if (model.getValue("/root/main/list3/clsp["+ row +"]/clsoyn") == "N") {
  5293. fSetDocRefLnSpclSpec(); // 명세서 특정내역
  5294. } else {
  5295. fSetLnUnitClsoSpclSpec("grd_clsphist"); // 원외처방 특정내역
  5296. }
  5297. }
  5298. }
  5299. ]]>
  5300. </script>
  5301. <script type="javascript" ev:event="onentercell">
  5302. <![CDATA[
  5303. // col@type = "input" 일 경우 onentercell시점에 EditMode 상태 만들기
  5304. if (event.button != 3 && grd_clsphist.colType(grd_clsphist.col) == "input") {
  5305. grd_clsphist.editCell();
  5306. }
  5307. ]]>
  5308. </script>
  5309. <script type="javascript" ev:event="onmouseup">
  5310. <![CDATA[
  5311. // if (event.button != 3) {
  5312. var row = grd_clsphist.mouseRow;
  5313. if (grd_clsphist.isCell(event.target) && row >= grd_clsphist.fixedRows) {
  5314. // 해당 특정코드의 기재형식이 Message 용 output 컨트롤에 표시된다.
  5315. var spclcd = model.getValue("/root/main/list3/clsp["+ row +"]/spclcd");
  5316. if (spclcd == "JT001") {
  5317. var spclspec = model.getValue("/root/main/list3/clsp["+ row +"]/spclspec");
  5318. var spclformat = model.getValue("/root/main/list3/clsp["+ row +"]/spclformat");
  5319. model.setValue("/root/hidden/list3/msgspclformat", "확인코드 - "+ spclcd +" / 입력코드내역 : "+ spclspec +" / 기재형식 : "+ spclformat);
  5320. opt_msgspclformat.refresh();
  5321. } else if (spclcd) {
  5322. var cdnm = model.getValue("/root/main/list3/clsp["+ row +"]/cdnm");
  5323. var spclspec = model.getValue("/root/main/list3/clsp["+ row +"]/spclspec");
  5324. var spclformat = model.getValue("/root/main/list3/clsp["+ row +"]/spclformat");
  5325. model.setValue("/root/hidden/list3/msgspclformat", "특정내역코드: "+ spclcd +" / 특정내역명칭: "+ cdnm +" / 기재내역: "+ spclspec +" / 기재형식: "+ spclformat);
  5326. opt_msgspclformat.refresh();
  5327. }
  5328. }
  5329. // }
  5330. ]]>
  5331. </script>
  5332. <script type="javascript" ev:event="oncopy">
  5333. <![CDATA[
  5334. // 그리드 내용 복사
  5335. if (grd_clsphist.selectedRows == 1) { // 한줄
  5336. var row = grd_clsphist.row;
  5337. var col = grd_clsphist.col;
  5338. if (col == grd_clsphist.colRef("snglcalcscorcd")) {
  5339. // EDI코드
  5340. // var clip = grd_clsphist.valueMatrix(row, col);
  5341. var clip = grd_clsphist.labelMatrix(row, col);
  5342. // var clip = grd_clsphist.labelMatrix(grd_clsphist.mouseRow, grd_clsphist.mouseCol);
  5343. window.clipBoardData = clip;
  5344. } else {
  5345. grid_oncopy(); // (tfHelper.js) window.clipBoardData 복사 기능
  5346. }
  5347. }
  5348. else if (grd_clsphist.selectedRows > 1) { // 여러줄
  5349. grid_oncopy(); // (tfHelper.js) window.clipBoardData 복사 기능
  5350. }
  5351. ]]>
  5352. </script>
  5353. </datagrid>
  5354. <button id="btn_spcldetl" class="btn2_letter4" _auth="X" style="left:576px; top:3px; width:64px; height:19px; ">
  5355. <caption>코드조회</caption>
  5356. <script type="javascript" ev:event="DOMActivate">
  5357. <![CDATA[
  5358. var row = grd_clsphist.row;
  5359. var spclcd = model.getValue("/root/main/list3/clsp["+ row +"]/spclcd");
  5360. model.setValue("/root/hidden/sppiz01400/cond/srchcond", spclcd);
  5361. model.removeNodeset("/root/hidden/sppiz01400/rslt");
  5362. modal("SPPIZ01400", "1", "10", "10", "SPPIZ01400", "/root/hidden/sppiz01400/cond", "/root/send", "", ""); // SPPIZ01400_특정내역코드상세조회.xrw
  5363. if (model.getValue("/root/hidden/sppiz01400/rslt/spclcd")) {
  5364. fSpclGridInsertRow(); // 특정내역 Grid 마우스 오른쪽 버튼 클릭시 팝업 메뉴 "행 추가"
  5365. var clsprow = grd_clsphist.row;
  5366. //copyNode 로 복사하는 경우에는 특정내역Grid의 모든 필드를 전달해야 함
  5367. //model.copyNode("/root/main/list3/clsp["+ clsprow +"]", "/root/hidden/sppiz01400/rslt");
  5368. model.setValue("/root/main/list3/clsp["+ clsprow +"]/spclcd", model.getValue("/root/hidden/sppiz01400/rslt/spclcd"));
  5369. model.setValue("/root/main/list3/clsp["+ clsprow +"]/cdnm", model.getValue("/root/hidden/sppiz01400/rslt/cdnm"));
  5370. model.setValue("/root/main/list3/clsp["+ clsprow +"]/spclspec", model.getValue("/root/hidden/sppiz01400/rslt/spclspec"));
  5371. model.setValue("/root/main/list3/clsp["+ clsprow +"]/spclformat", model.getValue("/root/hidden/sppiz01400/rslt/spclformat"));
  5372. model.setValue("/root/main/list3/clsp["+ clsprow +"]/detldesc", model.getValue("/root/hidden/sppiz01400/rslt/detldesc"));
  5373. // 특정내역 줄번호/특정코드에 따라 sorting 작업
  5374. fSortSpclNo();
  5375. //model.refresh();
  5376. grd_clsphist.refresh();
  5377. }
  5378. ]]>
  5379. </script>
  5380. </button>
  5381. <button id="btn_addspec" class="btn2_letter4" _auth="X" style="left:642px; top:3px; width:64px; height:19px; ">
  5382. <caption>내역추가</caption>
  5383. <script type="javascript" ev:event="DOMActivate">
  5384. <![CDATA[
  5385. var row = grd_clsphist.row;
  5386. if (row > 0) {
  5387. if (model.getValue("/root/main/list3/clsp["+ row +"]/spclcd") == "JT001") {
  5388. fSetCnfmCdSpclSpec();
  5389. } else {
  5390. fSetDocRefLnSpclSpec();
  5391. }
  5392. } else { // 특정내역 Grid에서 선택한 row가 없는 경우임
  5393. var clamym = model.getValue("/root/main/item1/clbs/clamym");
  5394. if (clamym) { // 조회된 심사대상자가 있으면
  5395. var rdounitflag = model.getValue("/root/hidden/list3/selectedUnitFlag");
  5396. if (rdounitflag == "-" || rdounitflag == "M") {
  5397. fSpclGridInsertRow(); // 특정내역 Grid 마우스 오른쪽 버튼 클릭시 팝업 메뉴 "행 추가"
  5398. fSetDocRefLnSpclSpec();
  5399. } else {
  5400. if (grd_clodhist.row > 0) {
  5401. fSetLnUnitSpclSpec(); // 'T' 필드 더블클릭시 호출한다.
  5402. } else {
  5403. messageBox("특정내역을 추가할 줄번호를 먼저", "C002"); ///특정내역을 추가할 줄번호를 먼저 선택하십시오.
  5404. }
  5405. }
  5406. }
  5407. }
  5408. ]]>
  5409. </script>
  5410. </button>
  5411. <select1 id="rdo_unitflag" ref="/root/hidden/list3/selectedUnitFlag" appearance="full" cols="4" _auth="X" overflow="visible" style="left:5px; top:4px; width:222px; height:17px; border-style:none; ">
  5412. <choices>
  5413. <item>
  5414. <label>전체</label>
  5415. <value>-</value>
  5416. </item>
  5417. <item>
  5418. <label>명단위</label>
  5419. <value>M</value>
  5420. </item>
  5421. <item>
  5422. <label>줄단위</label>
  5423. <value>J</value>
  5424. </item>
  5425. <item>
  5426. <label>처방주석</label>
  5427. <value>JX999</value>
  5428. </item>
  5429. </choices>
  5430. <script type="javascript" ev:event="xforms-select">
  5431. <![CDATA[
  5432. // 특정내역 Radio button
  5433. fSelectSpclRadio();
  5434. ]]>
  5435. </script>
  5436. </select1>
  5437. </case>
  5438. <case id="case_judgrmemo">
  5439. <textarea id="tar_judgrmemo" ref="/root/main/item1/memo/judgmemo" style="left:5px; top:27px; width:698px; height:109px; vertical-align:top; ">
  5440. <hint>
  5441. <![CDATA[심사자 메모]]>
  5442. </hint>
  5443. <script type="javascript" ev:event="onmouseout">
  5444. <![CDATA[
  5445. tar_judgrmemo.attribute("_selectionText") = tar_judgrmemo.selectionText;
  5446. ]]>
  5447. </script>
  5448. </textarea>
  5449. <button id="btn_memohistory" class="btn2_letter5" _auth="X" style="left:5px; top:5px; width:75px; height:19px; ">
  5450. <caption>심사자메모</caption>
  5451. <script type="javascript" ev:event="DOMActivate">
  5452. <![CDATA[
  5453. // SPPIZ00700_심사Comment조회.xrw 호출
  5454. fGetJudgEdiComment("1", "");
  5455. ]]>
  5456. </script>
  5457. </button>
  5458. <button id="btn_memohistory_drug" class="btn2_letter2" _auth="X" style="left:83px; top:5px; width:42px; height:19px; ">
  5459. <caption>약</caption>
  5460. <script type="javascript" ev:event="DOMActivate">
  5461. <![CDATA[
  5462. // SPPIZ00700_심사Comment조회.xrw 호출
  5463. fGetJudgEdiComment("1", "01"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  5464. ]]>
  5465. </script>
  5466. </button>
  5467. <button id="btn_memohistory_injection" class="btn2_letter2" _auth="X" style="left:128px; top:5px; width:42px; height:19px; ">
  5468. <caption>주사</caption>
  5469. <script type="javascript" ev:event="DOMActivate">
  5470. <![CDATA[
  5471. // SPPIZ00700_심사Comment조회.xrw 호출
  5472. fGetJudgEdiComment("1", "02"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  5473. ]]>
  5474. </script>
  5475. </button>
  5476. <button id="btn_memohistory_treat" class="btn2_letter2" _auth="X" style="left:173px; top:5px; width:42px; height:19px; ">
  5477. <caption>처치</caption>
  5478. <script type="javascript" ev:event="DOMActivate">
  5479. <![CDATA[
  5480. // SPPIZ00700_심사Comment조회.xrw 호출
  5481. fGetJudgEdiComment("1", "03"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  5482. ]]>
  5483. </script>
  5484. </button>
  5485. <button id="btn_memohistory_exam" class="btn2_letter2" _auth="X" style="left:218px; top:5px; width:42px; height:19px; ">
  5486. <caption>검사</caption>
  5487. <script type="javascript" ev:event="DOMActivate">
  5488. <![CDATA[
  5489. // SPPIZ00700_심사Comment조회.xrw 호출
  5490. fGetJudgEdiComment("1", "04"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  5491. ]]>
  5492. </script>
  5493. </button>
  5494. <button id="btn_memohistory_etc" class="btn2_letter2" _auth="X" style="left:263px; top:5px; width:42px; height:19px; ">
  5495. <caption>기타</caption>
  5496. <script type="javascript" ev:event="DOMActivate">
  5497. <![CDATA[
  5498. // SPPIZ00700_심사Comment조회.xrw 호출
  5499. fGetJudgEdiComment("1", "99"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  5500. ]]>
  5501. </script>
  5502. </button>
  5503. <button id="btn_clearjudgrmemo" class="btn5_letter3" _auth="X" style="left:561px; top:5px; width:53px; height:19px; ">
  5504. <caption>지우기</caption>
  5505. <script type="javascript" ev:event="DOMActivate">
  5506. <![CDATA[
  5507. model.resetInstanceNode("/root/main/item1/memo/judgmemo");
  5508. model.refreshpart("/root/main/item1/memo/judgmemo");
  5509. ]]>
  5510. </script>
  5511. </button>
  5512. <button id="btn_toclammemo" class="btn5_letter7" _auth="X" style="left:461px; top:5px; width:97px; height:19px; ">
  5513. <caption>청구메모로 전달</caption>
  5514. <script type="javascript" ev:event="DOMActivate">
  5515. <![CDATA[
  5516. var memo = model.getValue("/root/main/item1/memo/edimemo");
  5517. if (memo) {
  5518. // var seletedMemo = tar_judgrmemo.selectionText;
  5519. var seletedMemo = tar_judgrmemo.attribute("_selectionText");
  5520. if (seletedMemo) {
  5521. memo += " \n"+ seletedMemo;
  5522. } else {
  5523. var judgmemo = model.getValue("/root/main/item1/memo/judgmemo");
  5524. if (judgmemo) {
  5525. memo += " \n"+ model.getValue("/root/main/item1/memo/judgmemo");
  5526. }
  5527. }
  5528. } else {
  5529. // var seletedMemo = tar_judgrmemo.selectionText;
  5530. var seletedMemo = tar_judgrmemo.attribute("_selectionText");
  5531. if (seletedMemo) {
  5532. memo = seletedMemo;
  5533. } else {
  5534. memo = model.getValue("/root/main/item1/memo/judgmemo");
  5535. }
  5536. }
  5537. model.setValue("/root/main/item1/memo/edimemo", memo);
  5538. model.refreshpart("/root/main/item1/memo/edimemo");
  5539. btn_ediclammemo.selected = true;
  5540. case_ediclammemo.selected = true;
  5541. model.toggle("case_ediclammemo"); // 해당 tab 으로 토글시킨다.
  5542. ]]>
  5543. </script>
  5544. </button>
  5545. <button id="btn_judgmemorepeat" class="btn2_letter6" visibility="hidden" _auth="X" style="left:617px; top:5px; width:86px; height:19px; ">
  5546. <caption>심사메모반복</caption>
  5547. <script type="javascript" ev:event="DOMActivate">
  5548. <![CDATA[
  5549. var judgmemorepeat = model.getValue("/root/main/item1/memo/judgmemorepeat");
  5550. if (judgmemorepeat == "R") {
  5551. judgmemorepeat = "";
  5552. btn_judgmemorepeat.attribute("class") = "btn2_letter6"; // 표준에서 정한 기본 버튼으로 설정
  5553. } else {
  5554. judgmemorepeat = "R";
  5555. btn_judgmemorepeat.attribute("class") = "btn5_letter6";
  5556. btn_judgmemorepeat.attribute("color") = "#cc3333"; //#ff0066"; // 해당 정보가 있는 경우 버튼 색 변경 // cc3333=붉은색
  5557. }
  5558. model.setValue("/root/main/item1/memo/judgmemorepeat", judgmemorepeat);
  5559. ]]>
  5560. </script>
  5561. </button>
  5562. </case>
  5563. <case id="case_ediclammemo">
  5564. <textarea id="tar_ediclammemo" ref="/root/main/item1/memo/edimemo" style="left:5px; top:27px; width:698px; height:109px; vertical-align:top; ">
  5565. <hint>
  5566. <![CDATA[EDI 청구메모]]>
  5567. </hint>
  5568. </textarea>
  5569. <button id="btn_memoedi" class="btn2_letter5" _auth="X" style="left:5px; top:5px; width:75px; height:19px; ">
  5570. <caption>EDI 메모</caption>
  5571. <script type="javascript" ev:event="DOMActivate">
  5572. <![CDATA[
  5573. // SPPIZ00700_심사Comment조회.xrw 호출
  5574. fGetJudgEdiComment("2", "");
  5575. ]]>
  5576. </script>
  5577. </button>
  5578. <button id="btn_memoedi_drug" class="btn2_letter2" _auth="X" style="left:83px; top:5px; width:42px; height:19px; ">
  5579. <caption>약</caption>
  5580. <script type="javascript" ev:event="DOMActivate">
  5581. <![CDATA[
  5582. // SPPIZ00700_심사Comment조회.xrw 호출
  5583. fGetJudgEdiComment("2", "01"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  5584. ]]>
  5585. </script>
  5586. </button>
  5587. <button id="btn_memoedi_injection" class="btn2_letter2" _auth="X" style="left:128px; top:5px; width:42px; height:19px; ">
  5588. <caption>주사</caption>
  5589. <script type="javascript" ev:event="DOMActivate">
  5590. <![CDATA[
  5591. // SPPIZ00700_심사Comment조회.xrw 호출
  5592. fGetJudgEdiComment("2", "02"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  5593. ]]>
  5594. </script>
  5595. </button>
  5596. <button id="btn_memoedi_treat" class="btn2_letter2" _auth="X" style="left:173px; top:5px; width:42px; height:19px; ">
  5597. <caption>처치</caption>
  5598. <script type="javascript" ev:event="DOMActivate">
  5599. <![CDATA[
  5600. // SPPIZ00700_심사Comment조회.xrw 호출
  5601. fGetJudgEdiComment("2", "03"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  5602. ]]>
  5603. </script>
  5604. </button>
  5605. <button id="btn_memoedi_exam" class="btn2_letter2" _auth="X" style="left:218px; top:5px; width:42px; height:19px; ">
  5606. <caption>검사</caption>
  5607. <script type="javascript" ev:event="DOMActivate">
  5608. <![CDATA[
  5609. // SPPIZ00700_심사Comment조회.xrw 호출
  5610. fGetJudgEdiComment("2", "04"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  5611. ]]>
  5612. </script>
  5613. </button>
  5614. <button id="btn_memoedi_etc" class="btn2_letter2" _auth="X" style="left:263px; top:5px; width:42px; height:19px; ">
  5615. <caption>기타</caption>
  5616. <script type="javascript" ev:event="DOMActivate">
  5617. <![CDATA[
  5618. // SPPIZ00700_심사Comment조회.xrw 호출
  5619. fGetJudgEdiComment("2", "99"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  5620. ]]>
  5621. </script>
  5622. </button>
  5623. <button id="btn_clearediclammemo" class="btn5_letter3" _auth="X" style="left:561px; top:5px; width:53px; height:19px; ">
  5624. <caption>지우기</caption>
  5625. <script type="javascript" ev:event="DOMActivate">
  5626. <![CDATA[
  5627. model.resetInstanceNode("/root/main/item1/memo/edimemo");
  5628. model.refresh("/root/main/item1/memo/edimemo");
  5629. ]]>
  5630. </script>
  5631. </button>
  5632. <button id="btn_edimemorepeat" class="btn2_letter6" visibility="hidden" _auth="X" style="left:617px; top:5px; width:86px; height:19px; ">
  5633. <caption>EDI메모반복</caption>
  5634. <script type="javascript" ev:event="DOMActivate">
  5635. <![CDATA[
  5636. var edimemorepeat = model.getValue("/root/main/item1/memo/edimemorepeat");
  5637. if (edimemorepeat == "R") {
  5638. edimemorepeat = "";
  5639. btn_edimemorepeat.attribute("class") = "btn2_letter6"; // 표준에서 정한 기본 버튼으로 설정
  5640. } else {
  5641. edimemorepeat = "R";
  5642. btn_edimemorepeat.attribute("class") = "btn5_letter6";
  5643. btn_edimemorepeat.attribute("color") = "#cc3333"; //#ff0066"; // 해당 정보가 있는 경우 버튼 색 변경 // cc3333=붉은색
  5644. }
  5645. model.setValue("/root/main/item1/memo/edimemorepeat", edimemorepeat);
  5646. ]]>
  5647. </script>
  5648. </button>
  5649. </case>
  5650. </switch>
  5651. <button id="btn_spclspec" class="btn_sw" group="tab" selected="true" style="left:0px; top:3px; width:85px; height:22px; ">
  5652. <caption>특정내역</caption>
  5653. <!--
  5654. <toggle case="case_spclspec" ev:event="onclick"/>
  5655. -->
  5656. <script type="javascript" ev:event="DOMActivate">
  5657. <![CDATA[
  5658. fGeCaseSelect("case_spclspec", true);
  5659. ]]>
  5660. </script>
  5661. </button>
  5662. <button id="btn_judgrmemo" class="btn_sw" group="tab" style="left:84px; top:3px; width:85px; height:22px; ">
  5663. <caption>심사자메모</caption>
  5664. <!--
  5665. <toggle case="case_judgrmemo" ev:event="onclick"/>
  5666. -->
  5667. <script type="javascript" ev:event="DOMActivate">
  5668. <![CDATA[
  5669. fGeCaseSelect("case_judgrmemo", false);
  5670. ]]>
  5671. </script>
  5672. </button>
  5673. <button id="btn_ediclammemo" class="btn_sw" group="tab" style="left:168px; top:3px; width:85px; height:22px; ">
  5674. <caption>EDI 메모</caption>
  5675. <!--
  5676. <toggle case="case_ediclammemo" ev:event="onclick"/>
  5677. -->
  5678. <script type="javascript" ev:event="DOMActivate">
  5679. <![CDATA[
  5680. fGeCaseSelect("case_ediclammemo", false);
  5681. ]]>
  5682. </script>
  5683. </button>
  5684. <button id="btn_mt0004" class="btn2_letter4" _auth="X" style="left:513px; top:4px; width:64px; height:19px; ">
  5685. <caption>MT004</caption>
  5686. <script type="javascript" ev:event="DOMActivate">
  5687. <![CDATA[
  5688. fSetSpclMT004(); // 특정내역 중 MT004 내역을 설정한다.
  5689. ]]>
  5690. </script>
  5691. </button>
  5692. <button id="btn_attData" class="btn2_letter4" _auth="X" style="left:579px; top:4px; width:64px; height:19px; ">
  5693. <caption>소명자료</caption>
  5694. <script type="javascript" ev:event="DOMActivate">
  5695. <![CDATA[
  5696. fGetAttachedDataList(); // 특정내역 중 MT015, MT016 내역을 조회하여 "소명자료" Btn (첨부물 자료관리) Popup 화면에 표시한다.
  5697. ]]>
  5698. </script>
  5699. </button>
  5700. <button id="btn_memohist" class="btn2_letter4" _auth="X" style="left:645px; top:4px; width:64px; height:19px; ">
  5701. <caption>메모이력</caption>
  5702. <script type="javascript" ev:event="DOMActivate">
  5703. <![CDATA[
  5704. fGetMemoHistList(); // 특정 환자에 대해 그동안 작성된 심사자메모, 청구메모 내역을 조회한다.
  5705. ]]>
  5706. </script>
  5707. </button>
  5708. <select id="chk_JT001" ref="/root/chkJT001" class="check_fSetDelOrdPreDocuSizesearch" overflow="visible" appearance="full" style="left:404px; top:30px; width:90px; height:16px; border-style:none; ">
  5709. <choices>
  5710. <item>
  5711. <label>JT001 제외</label>
  5712. <value>Y</value>
  5713. </item>
  5714. </choices>
  5715. <script type="javascript" ev:event="xforms-value-changed">
  5716. <![CDATA[
  5717. rdo_unitflag.dispatch("xforms-select"); //20091013 JT001 제외 기능 추가 - 박창원
  5718. ]]>
  5719. </script>
  5720. </select>
  5721. <output id="opt_preresncd" ref="/root/main/item1/clbs/preresncd" class="output_fix" style="left:325px; top:4px; width:30px; height:19px; "/>
  5722. <output id="opt_preresncdnm" ref="/root/main/item1/clbs/preresncdnm" class="output_fix" style="left:357px; top:4px; width:154px; height:19px; ">
  5723. <script type="javascript" ev:event="onmouseover">
  5724. <![CDATA[
  5725. opt_preresncdnm.hint = model.getValue("/root/main/item1/clbs/preresncdnm");
  5726. ]]>
  5727. </script>
  5728. </output>
  5729. <button id="btn_preresncd" class="btn2_letter4" style="left:259px; top:4px; width:64px; height:19px; ">
  5730. <caption>반송사유</caption>
  5731. <script type="javascript" ev:event="onclick">
  5732. <![CDATA[
  5733. messageBox( "반송사유 : "
  5734. + model.getValue("/root/main/item1/clbs/preresncd") + " - "
  5735. + model.getValue("/root/main/item1/clbs/preresncdnm") + "\n\n"
  5736. + "수신비고 : "
  5737. + model.getValue("/root/main/item1/clbs/preresntext")
  5738. , "I009");
  5739. ]]>
  5740. </script>
  5741. </button>
  5742. </group>
  5743. <button id="btn_histref" class="btn2_letter4" _auth="R" style="left:416px; top:5px; width:64px; height:19px; ">
  5744. <caption>이력조회</caption>
  5745. <script type="javascript" ev:event="onmouseover">
  5746. <![CDATA[
  5747. if (btn_histref.disabled == false) {
  5748. model.toggle("histref");
  5749. grp_dropdownmenu.attribute("left") = btn_histref.attribute("left");
  5750. }
  5751. ]]>
  5752. </script>
  5753. <script type="javascript" ev:event="DOMActivate">
  5754. <![CDATA[
  5755. if (grp_dropdownmenu.visible == true) {
  5756. grp_dropdownmenu.visible = false;
  5757. } else {
  5758. grp_dropdownmenu.attribute("left") = btn_histref.attribute("left");
  5759. grp_dropdownmenu.visible = true;
  5760. }
  5761. ]]>
  5762. </script>
  5763. </button>
  5764. <button id="btn_patinfo" class="btn2_letter4" _auth="R" style="left:481px; top:5px; width:64px; height:19px; ">
  5765. <caption>환자정보</caption>
  5766. <script type="javascript" ev:event="onmouseover">
  5767. <![CDATA[
  5768. if (btn_patinfo.disabled == false) {
  5769. model.toggle("patinfo");
  5770. grp_dropdownmenu.attribute("left") = btn_patinfo.attribute("left");
  5771. }
  5772. ]]>
  5773. </script>
  5774. <script type="javascript" ev:event="DOMActivate">
  5775. <![CDATA[
  5776. if (grp_dropdownmenu.visible == true) {
  5777. grp_dropdownmenu.visible = false;
  5778. } else {
  5779. grp_dropdownmenu.attribute("left") = btn_patinfo.attribute("left");
  5780. grp_dropdownmenu.visible = true;
  5781. }
  5782. ]]>
  5783. </script>
  5784. </button>
  5785. <button id="btn_qualinfo" class="btn2_letter4" _auth="R" style="left:546px; top:5px; width:64px; height:19px; ">
  5786. <caption>자격정보</caption>
  5787. <script type="javascript" ev:event="onmouseover">
  5788. <![CDATA[
  5789. if (btn_qualinfo.disabled == false) {
  5790. model.toggle("qualinfo");
  5791. grp_dropdownmenu.attribute("left") = btn_qualinfo.attribute("left");
  5792. }
  5793. ]]>
  5794. </script>
  5795. <script type="javascript" ev:event="DOMActivate">
  5796. <![CDATA[
  5797. if (grp_dropdownmenu.visible == true) {
  5798. grp_dropdownmenu.visible = false;
  5799. } else {
  5800. grp_dropdownmenu.attribute("left") = btn_qualinfo.attribute("left");
  5801. grp_dropdownmenu.visible = true;
  5802. }
  5803. ]]>
  5804. </script>
  5805. </button>
  5806. <button id="btn_prcpref" class="btn2_letter4" _auth="R" style="left:611px; top:5px; width:64px; height:19px; ">
  5807. <caption>처방조회</caption>
  5808. <script type="javascript" ev:event="onmouseover">
  5809. <![CDATA[
  5810. if (btn_prcpref.disabled == false) {
  5811. model.toggle("prcpref");
  5812. grp_dropdownmenu.attribute("left") = btn_prcpref.attribute("left");
  5813. }
  5814. ]]>
  5815. </script>
  5816. <script type="javascript" ev:event="DOMActivate">
  5817. <![CDATA[
  5818. if (grp_dropdownmenu.visible == true) {
  5819. grp_dropdownmenu.visible = false;
  5820. } else {
  5821. grp_dropdownmenu.attribute("left") = btn_prcpref.attribute("left");
  5822. grp_dropdownmenu.visible = true;
  5823. }
  5824. ]]>
  5825. </script>
  5826. </button>
  5827. <button id="btn_mediinfo" class="btn2_letter4" _auth="R" style="left:676px; top:5px; width:64px; height:19px; ">
  5828. <caption>투약정보</caption>
  5829. <script type="javascript" ev:event="onmouseover">
  5830. <![CDATA[
  5831. if (btn_mediinfo.disabled == false) {
  5832. model.toggle("mediinfo");
  5833. grp_dropdownmenu.attribute("left") = btn_mediinfo.attribute("left");
  5834. }
  5835. ]]>
  5836. </script>
  5837. <script type="javascript" ev:event="DOMActivate">
  5838. <![CDATA[
  5839. if (grp_dropdownmenu.visible == true) {
  5840. grp_dropdownmenu.visible = false;
  5841. } else {
  5842. grp_dropdownmenu.attribute("left") = btn_mediinfo.attribute("left");
  5843. grp_dropdownmenu.visible = true;
  5844. }
  5845. ]]>
  5846. </script>
  5847. </button>
  5848. <button id="btn_rsltsrch" class="btn2_letter4" _auth="R" style="left:741px; top:5px; width:64px; height:19px; ">
  5849. <caption>결과조회</caption>
  5850. <script type="javascript" ev:event="DOMActivate">
  5851. <![CDATA[
  5852. fOrderRsltSrch();
  5853. ]]>
  5854. </script>
  5855. <script type="javascript" ev:event="onmouseover">
  5856. <![CDATA[
  5857. if (grp_dropdownmenu.visible == true) {
  5858. grp_dropdownmenu.visible = false;
  5859. }
  5860. ]]>
  5861. </script>
  5862. </button>
  5863. <button id="btn_ordamt" class="btn2_letter3" _auth="R" style="left:806px; top:5px; width:53px; height:19px; ">
  5864. <caption>진료비</caption>
  5865. <script type="javascript" ev:event="onmouseover">
  5866. <![CDATA[
  5867. if (btn_ordamt.disabled == false) {
  5868. model.toggle("ordamt");
  5869. grp_dropdownmenu.attribute("left") = btn_ordamt.attribute("left");
  5870. }
  5871. ]]>
  5872. </script>
  5873. <script type="javascript" ev:event="DOMActivate">
  5874. <![CDATA[
  5875. if (grp_dropdownmenu.visible == true) {
  5876. grp_dropdownmenu.visible = false;
  5877. } else {
  5878. grp_dropdownmenu.attribute("left") = btn_ordamt.attribute("left");
  5879. grp_dropdownmenu.visible = true;
  5880. }
  5881. ]]>
  5882. </script>
  5883. </button>
  5884. <button id="btn_etcref" class="btn2_letter4" _auth="R" style="left:860px; top:5px; width:64px; height:19px; ">
  5885. <caption>각종조회</caption>
  5886. <script type="javascript" ev:event="onmouseover">
  5887. <![CDATA[
  5888. if (btn_etcref.disabled == false) {
  5889. model.toggle("etcref");
  5890. grp_dropdownmenu.attribute("left") = btn_etcref.attribute("left");
  5891. }
  5892. ]]>
  5893. </script>
  5894. <script type="javascript" ev:event="DOMActivate">
  5895. <![CDATA[
  5896. if (grp_dropdownmenu.visible == true) {
  5897. grp_dropdownmenu.visible = false;
  5898. } else {
  5899. grp_dropdownmenu.attribute("left") = btn_etcref.attribute("left");
  5900. grp_dropdownmenu.visible = true;
  5901. }
  5902. ]]>
  5903. </script>
  5904. </button>
  5905. <button id="btn_emr" class="btn2_letter2" _auth="R" style="left:925px; top:5px; width:42px; height:19px; ">
  5906. <caption>EMR</caption>
  5907. <script type="javascript" ev:event="onmouseover">
  5908. <![CDATA[
  5909. if (btn_emr.disabled == false) {
  5910. model.toggle("emr");
  5911. grp_dropdownmenu.attribute("left") = btn_emr.attribute("left");
  5912. }
  5913. ]]>
  5914. </script>
  5915. <script type="javascript" ev:event="DOMActivate">
  5916. <![CDATA[
  5917. if (grp_dropdownmenu.visible == true) {
  5918. grp_dropdownmenu.visible = false;
  5919. } else {
  5920. grp_dropdownmenu.attribute("left") = btn_emr.attribute("left");
  5921. grp_dropdownmenu.visible = true;
  5922. }
  5923. ]]>
  5924. </script>
  5925. </button>
  5926. <button id="btn_erroomref" class="btn2_letter5" _auth="R" style="left:968px; top:5px; width:75px; height:19px; ">
  5927. <caption>응급실정보</caption>
  5928. <script type="javascript" ev:event="onmouseover">
  5929. <![CDATA[
  5930. if (btn_erroomref.disabled == false) {
  5931. model.toggle("erroomref");
  5932. grp_dropdownmenu.attribute("left") = btn_erroomref.attribute("left");
  5933. }
  5934. ]]>
  5935. </script>
  5936. <script type="javascript" ev:event="DOMActivate">
  5937. <![CDATA[
  5938. if (grp_dropdownmenu.visible == true) {
  5939. grp_dropdownmenu.visible = false;
  5940. } else {
  5941. grp_dropdownmenu.attribute("left") = btn_erroomref.attribute("left");
  5942. grp_dropdownmenu.visible = true;
  5943. }
  5944. ]]>
  5945. </script>
  5946. </button>
  5947. <button id="btn_trnptinforef" class="btn2_letter4" _auth="R" style="left:1044px; top:5px; width:64px; height:19px; ">
  5948. <caption>이식정보</caption>
  5949. <script type="javascript" ev:event="onmouseover">
  5950. <![CDATA[
  5951. if (btn_trnptinforef.disabled == false) {
  5952. model.toggle("trnptinforef");
  5953. grp_dropdownmenu.attribute("left") = parseInt(btn_trnptinforef.attribute("left")) + parseInt(btn_trnptinforef.attribute("width")) - parseInt(grp_dropdownmenu.attribute("width"));
  5954. }
  5955. ]]>
  5956. </script>
  5957. <script type="javascript" ev:event="DOMActivate">
  5958. <![CDATA[
  5959. if (grp_dropdownmenu.visible == true) {
  5960. grp_dropdownmenu.visible = false;
  5961. } else {
  5962. grp_dropdownmenu.attribute("left") = parseInt(btn_trnptinforef.attribute("left")) + parseInt(btn_trnptinforef.attribute("width")) - parseInt(grp_dropdownmenu.attribute("width"));
  5963. grp_dropdownmenu.visible = true;
  5964. }
  5965. ]]>
  5966. </script>
  5967. </button>
  5968. <button id="btn_patspcfyn" style="left:77px; top:9px; width:14px; height:14px; background-image:../../../com/commonweb/images/icon_btn.gif; ">
  5969. <caption/>
  5970. <script type="javascript" ev:event="DOMActivate">
  5971. <![CDATA[
  5972. // pam/patinfomngtweb/xrw/SMPMC01300_특이환자관리.xrw
  5973. model.resetInstanceNode("/root/hidden/smpmc01300/cond");
  5974. model.resetInstanceNode("/root/hidden/smpmc01300/rslt");
  5975. model.setValue("/root/hidden/smpmc01300/cond/srchcond", 1);
  5976. model.setValue("/root/hidden/smpmc01300/cond/pid", model.getValue("/root/main/item1/clbs/pid"));
  5977. modal("SMPMC01300", "1", "", "", "SMPMC01300", "/root/hidden/smpmc01300/cond", "/root/source");
  5978. var indd = model.getValue("/root/main/item1/clbs/indd");
  5979. if (indd) {
  5980. // SMPMC01300_특이환자관리 팝업에서 특이내역을 추가,삭제한 경우 결과를 표시하기 위해
  5981. model.setValue("/root/hidden/smpmc01300/cond/acptdd", indd);
  5982. submit("TRPID20308");
  5983. var patspcfyn = model.getValue("/root/hidden/smpmc01300/rslt/patspcfyn");
  5984. model.setValue("/root/main/item1/clbs/patspcfyn", patspcfyn);
  5985. // 특이환자 버튼 설정
  5986. if (model.getValue("/root/main/item1/clbs/patspcfyn") == "Y") {
  5987. btn_patspcfyn.attribute("background-image") = "../../../com/commonweb/images/icon_btn_s.gif"; // 주황색
  5988. } else {
  5989. btn_patspcfyn.attribute("background-image") = "../../../com/commonweb/images/icon_btn.gif"; // 파란색
  5990. }
  5991. //model.refresh();
  5992. }
  5993. ]]>
  5994. </script>
  5995. </button>
  5996. <button id="btn_closepredocupopup" class="btn4_letter2" style="left:1115px; top:720px; width:56px; height:22px; ">
  5997. <caption>닫기</caption>
  5998. <close ev:event="DOMActivate"/>
  5999. </button>
  6000. <img id="img_msg" visibility="hidden" src="../../../com/commonweb/images/icon_input.gif" style="left:1174px; top:7px; width:16px; height:15px; background-stretch:stretch; ">
  6001. <script type="javascript" ev:event="onclick">
  6002. <![CDATA[
  6003. // 등록번호가 존재하면(환자가 조회되었다는 판단에 의해) 간편조회 열기
  6004. if (model.getValue("/root/main/item1/clbs/pid") != "" &&
  6005. model.getValue("/root/main/item1/clbs/pid") != " " &&
  6006. model.getValue("/root/main/item1/clbs/pid") != "-" &&
  6007. model.getValue("/root/main/item1/clbs/pid") != null ){
  6008. // SMPIJ00300.js 환자전체 메세지 내용 간편조회
  6009. fJudgPatMsgTrsmRef();
  6010. }
  6011. ]]>
  6012. </script>
  6013. </img>
  6014. <button id="button6" accesskey="F8" class="btn5_letter5" visibility="hidden" _auth="X" style="left:1117px; top:430px; width:75px; height:19px; ">
  6015. <caption>완료 F8</caption>
  6016. <script type="javascript" ev:event="DOMActivate">
  6017. <![CDATA[
  6018. if (button6.disabled == false ){
  6019. fGetNextAftJudgTrgtMan("C"); // P0151 (사후심사-심사완료여부) C: 심사완료
  6020. } else {
  6021. messageBox("비활성 상태입니다. 진행","E001");
  6022. }
  6023. ]]>
  6024. </script>
  6025. <hint>
  6026. <![CDATA[F8]]>
  6027. </hint>
  6028. </button>
  6029. <select1 id="cmb_rarecancermsg" ref="/root/hidden/rarecancermsg/msg" visibility="hidden" appearance="minimal" style="left:95px; top:5px; width:320px; height:19px; ">
  6030. <choices>
  6031. <itemset nodeset="/root/main/rarecancermsglist/rarecancermsg">
  6032. <label ref="msg"/>
  6033. <value ref="msg"/>
  6034. </itemset>
  6035. </choices>
  6036. </select1>
  6037. <button id="button3" class="btn2_letter4" style="left:1109px; top:5px; width:64px; height:19px; ">
  6038. <caption>삭감처방</caption>
  6039. <script type="javascript" ev:event="DOMActivate">
  6040. <![CDATA[
  6041. setParameter("openflag", 'O');
  6042. setParameter("pid", model.getvalue("/root/main/item1/clbs/pid"));
  6043. open("SMPIS00600", "", "50", "50" ,"SMPIS00600", "", "");
  6044. ]]>
  6045. </script>
  6046. </button>
  6047. <input id="ipt_rareobstflag" ref="/root/main/item1/clbs/rareobstflag" style="left:455px; top:79px; width:24px; height:19px; border-style:solid; "/>
  6048. <input id="ipt_paygrntno" ref="/root/main/item1/clbs/paygrntno" class="input_default" navindex="9" maxlength="30" _auth="R" style="left:1118px; top:80px; width:73px; height:19px; ">
  6049. <hint>
  6050. <![CDATA[자보 지급보증번호]]>
  6051. </hint>
  6052. </input>
  6053. </group>
  6054. <group id="grp_dropdownmenu" visibility="hidden" style="left:490px; top:40px; width:181px; height:321px; border-color:#c7a3cf; border-style:solid; ">
  6055. <button id="btn_closedropdownmenu" class="btn4_letter2" style="left:120px; top:294px; width:56px; height:22px; ">
  6056. <caption>닫기</caption>
  6057. <script type="javascript" ev:event="DOMActivate">
  6058. <![CDATA[
  6059. grp_dropdownmenu.visible = false;
  6060. ]]>
  6061. </script>
  6062. </button>
  6063. <switch id="swt_dropdownmenu" class="sw_box" style="left:-1px; top:-1px; width:179px; height:289px; ">
  6064. <case id="histref" style="left:0px; top:0px; width:177px; height:287px; ">
  6065. <line id="line50" class="line_1" style="x1:0px; y1:19px; x2:175px; y2:19px; "/>
  6066. <caption id="caption133" class="tit_2" style="left:6px; top:4px; width:129px; height:13px; ">이력조회</caption>
  6067. <treeview id="trv_histref" expanddepth="3" itemsettype="depth" style="left:0px; top:25px; width:175px; height:260px; ">
  6068. <item>
  6069. <label>이력조회</label>
  6070. <value/>
  6071. <item>
  6072. <label>환자진료정보</label>
  6073. <value>SMMMO02500</value>
  6074. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6075. </item>
  6076. <item>
  6077. <label>환자상세내역</label>
  6078. <value>SMPMC01900</value>
  6079. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6080. </item>
  6081. <item>
  6082. <label>외래등록조회</label>
  6083. <value>SMPMO00600</value>
  6084. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6085. </item>
  6086. <item>
  6087. <label>청구및자료수집이력</label>
  6088. <value>SMPIS00100</value>
  6089. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6090. </item>
  6091. <item>
  6092. <label>계산처방시행조회</label>
  6093. <value>SMPIS00500</value>
  6094. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6095. </item>
  6096. <item>
  6097. <label>청구삭감조회</label>
  6098. <value>SMPIS00600</value>
  6099. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6100. </item>
  6101. </item>
  6102. <script type="javascript" ev:event="onclick">
  6103. <![CDATA[
  6104. var select = trv_histref.selectedIndex;
  6105. var view = trv_histref.item(select);
  6106. if (view == null) return;
  6107. var trgtWindow = trv_histref.item(select).value;
  6108. // 트리뷰 조회 ( 타메뉴조회시 )
  6109. fTrvOnClick(trgtWindow);
  6110. ]]>
  6111. </script>
  6112. </treeview>
  6113. </case>
  6114. <case id="patinfo">
  6115. <line id="line2" class="line_1" style="x1:0px; y1:19px; x2:175px; y2:19px; "/>
  6116. <caption id="caption41" class="tit_2" style="left:6px; top:4px; width:129px; height:13px; ">환자정보</caption>
  6117. <treeview id="trv_patinfo" expanddepth="3" itemsettype="depth" style="left:0px; top:25px; width:175px; height:260px; ">
  6118. <script type="javascript" ev:event="onclick">
  6119. <![CDATA[
  6120. var select = trv_patinfo.selectedIndex;
  6121. var view = trv_patinfo.item(select);
  6122. if (view == null) return;
  6123. var trgtWindow = trv_patinfo.item(select).value;
  6124. // 트리뷰 조회 ( 타메뉴조회시 )
  6125. fTrvOnClick(trgtWindow);
  6126. ]]>
  6127. </script>
  6128. <item>
  6129. <label>환자정보</label>
  6130. <value/>
  6131. <item>
  6132. <label>입원의뢰서</label>
  6133. <value>SPMMO00100</value>
  6134. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6135. </item>
  6136. <item>
  6137. <label>카덱스조회</label>
  6138. <value>SMMNB00200</value>
  6139. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6140. </item>
  6141. <item>
  6142. <label>병기분류조회</label>
  6143. <value>SPMMO08500</value>
  6144. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6145. </item>
  6146. <item>
  6147. <label>중증등록신청서</label>
  6148. <value>SMMRD00200</value>
  6149. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6150. </item>
  6151. <item>
  6152. <label>중증등록사항</label>
  6153. <value>SPMRD00900</value>
  6154. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6155. </item>
  6156. <item>
  6157. <label>희귀난치등록신청서</label>
  6158. <value>SMMRD02000</value>
  6159. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6160. </item>
  6161. <item>
  6162. <label>휘귀난치등록사항</label>
  6163. <value>SPMRD02100</value>
  6164. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6165. </item>
  6166. <item>
  6167. <label>병원감염대상자기록</label>
  6168. <value>SMASI00100</value>
  6169. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6170. </item>
  6171. <item>
  6172. <label>환자별영양관리</label>
  6173. <value>SMANC00300</value>
  6174. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6175. </item>
  6176. <item>
  6177. <label>피부욕창기록</label>
  6178. <value>SMMNW04700</value>
  6179. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6180. </item>
  6181. <item>
  6182. <label>중증도및위험사정</label>
  6183. <value>SMMNW04000</value>
  6184. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6185. </item>
  6186. <item>
  6187. <label>투석간호정보</label>
  6188. <value>SMMND00300</value>
  6189. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6190. </item>
  6191. <item>
  6192. <label>항암제투여현황</label>
  6193. <value>SMPIJ02900</value>
  6194. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6195. </item>
  6196. </item>
  6197. </treeview>
  6198. </case>
  6199. <case id="qualinfo">
  6200. <line id="line10" class="line_1" style="x1:0px; y1:19px; x2:175px; y2:19px; "/>
  6201. <caption id="caption42" class="tit_2" style="left:6px; top:4px; width:129px; height:13px; ">자격정보</caption>
  6202. <treeview id="trv_qualinfo" expanddepth="3" itemsettype="depth" style="left:0px; top:25px; width:175px; height:260px; ">
  6203. <item>
  6204. <label>자격정보</label>
  6205. <value/>
  6206. <item>
  6207. <label>환자기본정보관리</label>
  6208. <value>SMPMC01400</value>
  6209. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6210. </item>
  6211. <item>
  6212. <label>재원변경관리</label>
  6213. <value>SMPMI00400</value>
  6214. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6215. </item>
  6216. <item>
  6217. <label>자보환자관리</label>
  6218. <value>SMPMC02600</value>
  6219. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6220. </item>
  6221. <item>
  6222. <label>산재공상환자관리</label>
  6223. <value>SMPMC02700</value>
  6224. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6225. </item>
  6226. <item>
  6227. <label>장애인환자관리</label>
  6228. <value>SMPMC01700</value>
  6229. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6230. </item>
  6231. <item>
  6232. <label>선택진료관리</label>
  6233. <value>SMPMC06500</value>
  6234. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6235. </item>
  6236. </item>
  6237. <script type="javascript" ev:event="onclick">
  6238. <![CDATA[
  6239. var select = trv_qualinfo.selectedIndex;
  6240. var view = trv_qualinfo.item(select);
  6241. if (view == null) return;
  6242. var trgtWindow = trv_qualinfo.item(select).value;
  6243. // 트리뷰 조회 ( 타메뉴조회시 )
  6244. fTrvOnClick(trgtWindow);
  6245. ]]>
  6246. </script>
  6247. </treeview>
  6248. </case>
  6249. <case id="prcpref">
  6250. <line id="line13" class="line_1" style="x1:0px; y1:19px; x2:175px; y2:19px; "/>
  6251. <caption id="caption43" class="tit_2" style="left:6px; top:4px; width:129px; height:13px; ">처방조회</caption>
  6252. <treeview id="trv_prcpref" expanddepth="3" itemsettype="depth" style="left:0px; top:25px; width:175px; height:260px; ">
  6253. <item>
  6254. <label>처방조회</label>
  6255. <value/>
  6256. <item>
  6257. <label>처방상태조회</label>
  6258. <value>SMPIJ01200</value>
  6259. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6260. </item>
  6261. <item>
  6262. <label>식사력조회</label>
  6263. <value>SMANT01000</value>
  6264. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6265. </item>
  6266. <item>
  6267. <label>수혈조회</label>
  6268. <value>SMMNR01000</value>
  6269. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6270. </item>
  6271. <item>
  6272. <label>수혈현황조회</label>
  6273. <value>SMMNR04600</value>
  6274. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6275. </item>
  6276. <item>
  6277. <label>검사진행현황</label>
  6278. <value>SMAEA00500</value>
  6279. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6280. </item>
  6281. <item>
  6282. <label>개인별예약현황</label>
  6283. <value>SMAEA00300</value>
  6284. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6285. </item>
  6286. <item>
  6287. <label>CRRT 내역</label>
  6288. <value>SMMNW09100</value>
  6289. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6290. </item>
  6291. <item>
  6292. <label>미수행처방관리</label>
  6293. <value>SMPIJ01700</value>
  6294. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6295. </item>
  6296. <item>
  6297. <label>시행부서처방</label>
  6298. <value>SMMMO00200</value>
  6299. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6300. </item>
  6301. <item>
  6302. <label>판독신청</label>
  6303. <value>SMAEF00100</value>
  6304. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6305. </item>
  6306. <item>
  6307. <label>수혈심사</label>
  6308. <value>SPPIZ01800</value>
  6309. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6310. </item>
  6311. <item>
  6312. <label>처방조회</label>
  6313. <value>SPMMO14900</value>
  6314. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6315. </item>
  6316. <item>
  6317. <label>특수조제실처방조회</label>
  6318. <value>SMADT20100</value>
  6319. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6320. </item>
  6321. <item>
  6322. <label>병리조직결과조회</label>
  6323. <value>SMLPP00500</value>
  6324. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6325. </item>
  6326. </item>
  6327. <script type="javascript" ev:event="onclick">
  6328. <![CDATA[
  6329. var select = trv_prcpref.selectedIndex;
  6330. var view = trv_prcpref.item(select);
  6331. if (view == null) return;
  6332. var trgtWindow = trv_prcpref.item(select).value;
  6333. // 트리뷰 조회 ( 타메뉴조회시 )
  6334. fTrvOnClick(trgtWindow);
  6335. ]]>
  6336. </script>
  6337. </treeview>
  6338. </case>
  6339. <case id="mediinfo">
  6340. <line id="line14" class="line_1" style="x1:0px; y1:19px; x2:175px; y2:19px; "/>
  6341. <caption id="caption44" class="tit_2" style="left:6px; top:4px; width:129px; height:13px; ">투약정보</caption>
  6342. <treeview id="trv_mediinfo" expanddepth="3" itemsettype="depth" style="left:0px; top:25px; width:175px; height:260px; ">
  6343. <item>
  6344. <label>투약정보</label>
  6345. <value/>
  6346. <item>
  6347. <label>투약이력</label>
  6348. <value>SPMMO02400</value>
  6349. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6350. </item>
  6351. <item>
  6352. <label>투약기록</label>
  6353. <value>SMMNR04500</value>
  6354. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6355. </item>
  6356. <item>
  6357. <label>제한항생제</label>
  6358. <value>SMASI00800</value>
  6359. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6360. </item>
  6361. <item>
  6362. <label>항암프로토콜</label>
  6363. <value>SMADB01020</value>
  6364. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6365. </item>
  6366. <item>
  6367. <label>주사실액팅조회</label>
  6368. <value>SMMNI00400</value>
  6369. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6370. </item>
  6371. </item>
  6372. <script type="javascript" ev:event="onclick">
  6373. <![CDATA[
  6374. var select = trv_mediinfo.selectedIndex;
  6375. var view = trv_mediinfo.item(select);
  6376. if (view == null) return;
  6377. var trgtWindow = trv_mediinfo.item(select).value;
  6378. // 트리뷰 조회 ( 타메뉴조회시 )
  6379. fTrvOnClick(trgtWindow);
  6380. ]]>
  6381. </script>
  6382. </treeview>
  6383. </case>
  6384. <case id="ordamt">
  6385. <line id="line15" class="line_1" style="x1:0px; y1:19px; x2:175px; y2:19px; "/>
  6386. <caption id="caption45" class="tit_2" style="left:6px; top:4px; width:129px; height:13px; ">진료비</caption>
  6387. <treeview id="trv_ordamt" expanddepth="3" itemsettype="depth" style="left:0px; top:25px; width:175px; height:260px; ">
  6388. <item>
  6389. <label>진료비</label>
  6390. <value/>
  6391. <item>
  6392. <label>진료비누적(사후)</label>
  6393. <value>SPPID21300</value>
  6394. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6395. </item>
  6396. <item>
  6397. <label>입원진료비상세</label>
  6398. <value>SMPAI00200</value>
  6399. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6400. </item>
  6401. <item>
  6402. <label>외래수납조회</label>
  6403. <value>SMPAO00300</value>
  6404. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6405. </item>
  6406. <item>
  6407. <label>외래처방계산내역조회</label>
  6408. <value>SMPMOTMP00</value>
  6409. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6410. </item>
  6411. <item>
  6412. <label>예상진료비조회</label>
  6413. <value>SMPAI00400</value>
  6414. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6415. </item>
  6416. <item>
  6417. <label>급종변경전후금액조회</label>
  6418. <value>SMPAI03600</value>
  6419. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6420. </item>
  6421. </item>
  6422. <script type="javascript" ev:event="onclick">
  6423. <![CDATA[
  6424. var select = trv_ordamt.selectedIndex;
  6425. var view = trv_ordamt.item(select);
  6426. if (view == null) return;
  6427. var trgtWindow = trv_ordamt.item(select).value;
  6428. // 트리뷰 조회 ( 타메뉴조회시 )
  6429. fTrvOnClick(trgtWindow);
  6430. ]]>
  6431. </script>
  6432. </treeview>
  6433. </case>
  6434. <case id="etcref">
  6435. <line id="line16" class="line_1" style="x1:0px; y1:19px; x2:175px; y2:19px; "/>
  6436. <caption id="caption47" class="tit_2" style="left:6px; top:4px; width:129px; height:13px; ">각종조회</caption>
  6437. <treeview id="trv_etcref" expanddepth="3" itemsettype="depth" style="left:0px; top:25px; width:175px; height:260px; ">
  6438. <item>
  6439. <label>각종조회</label>
  6440. <value/>
  6441. <item>
  6442. <label>약품편람</label>
  6443. <value>SMADB01900</value>
  6444. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6445. </item>
  6446. <item>
  6447. <label>의약품정보조회</label>
  6448. <value>SMADB00100</value>
  6449. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6450. </item>
  6451. <item>
  6452. <label>수가관리</label>
  6453. <value>SMPIC00100</value>
  6454. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6455. </item>
  6456. <item>
  6457. <label>수가세부조회</label>
  6458. <value>SMPIC00700</value>
  6459. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6460. </item>
  6461. <item>
  6462. <label>보험인정기준</label>
  6463. <value>SPPIZ01600</value>
  6464. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6465. </item>
  6466. <item>
  6467. <label>격리신청서</label>
  6468. <value>SMASB02100</value>
  6469. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6470. </item>
  6471. <item>
  6472. <label>수술마취스케줄조회</label>
  6473. <value>SMMMO05100</value>
  6474. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6475. </item>
  6476. <item>
  6477. <label>수술마취의뢰서등록</label>
  6478. <value>SPMMO00200</value>
  6479. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6480. </item>
  6481. <item>
  6482. <label>입원/퇴원/재원조회</label>
  6483. <value>SMPMI00700</value>
  6484. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6485. </item>
  6486. <item>
  6487. <label>임상시험약속처방</label>
  6488. <value>SMMMB00200</value>
  6489. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6490. </item>
  6491. <item>
  6492. <label>신규항암프로토콜조회</label>
  6493. <value>SMADB00900</value>
  6494. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6495. </item>
  6496. <item>
  6497. <label>보험유형코드관리</label>
  6498. <value>SMPMB00200</value>
  6499. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6500. </item>
  6501. <item>
  6502. <label>CP검색</label>
  6503. <value>SPMMP01200_CP</value>
  6504. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6505. </item>
  6506. </item>
  6507. <script type="javascript" ev:event="onclick">
  6508. <![CDATA[
  6509. var select = trv_etcref.selectedIndex;
  6510. var view = trv_etcref.item(select);
  6511. if (view == null) return;
  6512. var trgtWindow = trv_etcref.item(select).value;
  6513. // 트리뷰 조회 ( 타메뉴조회시 )
  6514. fTrvOnClick(trgtWindow);
  6515. ]]>
  6516. </script>
  6517. </treeview>
  6518. </case>
  6519. <case id="emr">
  6520. <line id="line17" class="line_1" style="x1:0px; y1:19px; x2:175px; y2:19px; "/>
  6521. <caption id="caption49" class="tit_2" style="left:6px; top:4px; width:54px; height:13px; ">EMR</caption>
  6522. <treeview id="trv_emr" expanddepth="3" itemsettype="depth" style="left:0px; top:25px; width:175px; height:260px; ">
  6523. <item>
  6524. <label>EMR</label>
  6525. <value/>
  6526. <item>
  6527. <label>입퇴원요약기록지</label>
  6528. <value>SSMMR01100</value>
  6529. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6530. </item>
  6531. <item>
  6532. <label>경과기록지</label>
  6533. <value>SSMMR01100</value>
  6534. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6535. </item>
  6536. <item>
  6537. <label>CONSULT</label>
  6538. <value>SMMMR05000</value>
  6539. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6540. </item>
  6541. <item>
  6542. <label>임상관찰기록지</label>
  6543. <value>SMMNR00900</value>
  6544. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6545. </item>
  6546. <item>
  6547. <label>혈당간호기록</label>
  6548. <value>SMMNR02500</value>
  6549. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6550. </item>
  6551. <item>
  6552. <label>통합기록전체조회</label>
  6553. <value>SMMRI00400</value>
  6554. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6555. </item>
  6556. </item>
  6557. <script type="javascript" ev:event="onclick">
  6558. <![CDATA[
  6559. var select = trv_emr.selectedIndex;
  6560. var view = trv_emr.item(select);
  6561. if (view == null) return;
  6562. var trgtWindow = trv_emr.item(select).value;
  6563. // 트리뷰 조회 ( 타메뉴조회시 )
  6564. fTrvOnClick(trgtWindow);
  6565. ]]>
  6566. </script>
  6567. </treeview>
  6568. </case>
  6569. <case id="erroomref">
  6570. <line id="line18" class="line_1" style="x1:0px; y1:19px; x2:175px; y2:19px; "/>
  6571. <caption id="caption50" class="tit_2" style="left:6px; top:4px; width:54px; height:13px; ">응급실정보</caption>
  6572. <treeview id="trv_erroomref" expanddepth="3" itemsettype="depth" style="left:0px; top:25px; width:175px; height:260px; ">
  6573. <item>
  6574. <label>응급실정보</label>
  6575. <value/>
  6576. <item>
  6577. <label>ERcensus</label>
  6578. <value>SMMNE01300</value>
  6579. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6580. </item>
  6581. <item>
  6582. <label>응급실triage</label>
  6583. <value>SPMNE04400</value>
  6584. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6585. </item>
  6586. <item>
  6587. <label>응급의료관리료</label>
  6588. <value>SMMMO06300</value>
  6589. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6590. </item>
  6591. <item>
  6592. <label>응급간호기록</label>
  6593. <value>SMMNE04300</value>
  6594. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6595. </item>
  6596. </item>
  6597. <script type="javascript" ev:event="onclick">
  6598. <![CDATA[
  6599. var select = trv_erroomref.selectedIndex;
  6600. var view = trv_erroomref.item(select);
  6601. if (view == null) return;
  6602. var trgtWindow = trv_erroomref.item(select).value;
  6603. // 트리뷰 조회 ( 타메뉴조회시 )
  6604. fTrvOnClick(trgtWindow);
  6605. ]]>
  6606. </script>
  6607. </treeview>
  6608. </case>
  6609. <case id="trnptinforef" selected="true">
  6610. <line id="line20" class="line_1" style="x1:0px; y1:19px; x2:175px; y2:19px; "/>
  6611. <caption id="caption53" class="tit_2" style="left:6px; top:4px; width:54px; height:13px; ">이식정보</caption>
  6612. <treeview id="trv_trnptinforef" expanddepth="3" itemsettype="depth" style="left:0px; top:25px; width:175px; height:260px; ">
  6613. <item>
  6614. <label>이식정보</label>
  6615. <value/>
  6616. <item>
  6617. <label>HSCT원무관리</label>
  6618. <value>SMPMC01600</value>
  6619. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6620. </item>
  6621. <item>
  6622. <label>HSCT스케줄조회</label>
  6623. <value>SMABO00800</value>
  6624. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6625. </item>
  6626. <item>
  6627. <label>HSCT환자별스케줄</label>
  6628. <value>SMMMR02100</value>
  6629. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6630. </item>
  6631. <item>
  6632. <label>조혈모처리현황</label>
  6633. <value>SMABC00900</value>
  6634. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6635. </item>
  6636. <item>
  6637. <label>HSCT환자관리</label>
  6638. <value>SMABO00100</value>
  6639. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6640. </item>
  6641. <item>
  6642. <label>조혈모보관해동현황</label>
  6643. <value>SMABC00300</value>
  6644. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6645. </item>
  6646. <item>
  6647. <label>장기이식</label>
  6648. <value>SMPIB02400</value>
  6649. <image>../../../com/commonweb/images/tree_bullet.gif</image>
  6650. </item>
  6651. </item>
  6652. <script type="javascript" ev:event="onclick">
  6653. <![CDATA[
  6654. var select = trv_trnptinforef.selectedIndex;
  6655. var view = trv_trnptinforef.item(select);
  6656. if (view == null) return;
  6657. var trgtWindow = trv_trnptinforef.item(select).value;
  6658. // 트리뷰 조회 ( 타메뉴조회시 )
  6659. fTrvOnClick(trgtWindow);
  6660. ]]>
  6661. </script>
  6662. </treeview>
  6663. </case>
  6664. </switch>
  6665. </group>
  6666. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  6667. <caption id="caption4" class="tit_1" style="left:0px; top:0px; width:93px; height:13px; ">사후외래심사</caption>
  6668. </group>
  6669. </xhtml:body>
  6670. </xhtml:html>