1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>CP Generator</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <masterinfo>
- <info>
- <cpgnm/>
- <cpgorddeptcd/>
- <cpaprvno/>
- <swimlineno/>
- <fcstinhospdayno/>
- <appdd/>
- <todd/>
- <lastupdtdt/>
- <cpgmemo/>
- <cpgno/>
- <cpghistseq/>
- <cpgflagcd>01</cpgflagcd>
- <reqrid/>
- <rgstrid/>
- <cpglasthistyn/>
- <tmpyn/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <instcd/>
- <cpgflagcd/>
- <cpkind/>
- <reqrnm/>
- <rgstrnm/>
- <cretdd/>
- <orgcpgnm/>
- <ioflagcd>I</ioflagcd>
- <cpgtypecd>D</cpgtypecd>
- <valusgeyn>N</valusgeyn>
- <valunm/>
- </info>
- </masterinfo>
- <diaginfo/>
- <opinfo/>
- <ccinfo/>
- <attfileinfo/>
- <indexinfo>
- <item/>
- </indexinfo>
- <steplist/>
- <decisionlist/>
- <stepinfo>
- <info>
- <stepno/>
- <times/>
- <stepmemo/>
- <stepnm/>
- <stepflagcd/>
- <setno/>
- <daynm/>
- </info>
- </stepinfo>
- <tempuserinfo/>
- <reqrlist>
- <list/>
- <reqrid/>
- <inputreqrnm/>
- </reqrlist>
- <sortedsteplist/>
- <exclusion/>
- <delmasterinfo/>
- <dropinfo/>
- <scrninfo/>
- <mntrinfo/>
- <inqrinfo/>
- <limtminfo/>
- </main>
- <send>
- <attfileinfo/>
- </send>
- <init>
- <P0322list>
- <P0322>
- <cdnm/>
- <cdid/>
- </P0322>
- </P0322list>
- <orddeptlist>
- <dept>
- <depthngnm/>
- <deptcd/>
- </dept>
- </orddeptlist>
- <cpmasterlist/>
- <cpgmasterlist/>
- </init>
- <temp>
- <lastrowcnt/>
- <getdata/>
- <trmqp_rslt/>
- <mstatus/>
- <copynodeset>
- <masterinfo>
- <info/>
- </masterinfo>
- </copynodeset>
- <userpopupinfo>
- <param/>
- <flag/>
- <searchitem/>
- </userpopupinfo>
- <daylist>
- <day>
- <id/>
- <nm/>
- </day>
- </daylist>
- <oldcpgno/>
- <oldcpghistseq/>
- <oldtmpyn/>
- <oldcpgorddeptcd/>
- <deptchngyn/>
- <saveflag/>
- <tempnode/>
- <stepinfo>
- <info>
- <stepno/>
- <stepflagcd>A</stepflagcd>
- <stepmemo/>
- <lnkstepno/>
- <times/>
- <startendflag/>
- <swimlineno/>
- <refseq>1</refseq>
- <decirflag/>
- <setno/>
- <settypecd/>
- <m>i</m>
- <stepnm/>
- <formexistyn/>
- <dcsnstep/>
- <orgstepno/>
- <stepattrflag/>
- </info>
- </stepinfo>
- <planertimesarray/>
- <usgecd/>
- <multideptcdlist/>
- <multideptnmlist/>
- <popupmenu1>
- <item>
- <name>코드 삭제</name>
- <func>fDiagCodeDelete</func>
- </item>
- </popupmenu1>
- <popupmenu2>
- <item>
- <name>코드 삭제</name>
- <func>fOpCodeDelete</func>
- </item>
- </popupmenu2>
- <popupmenu3>
- <item>
- <name>코드 삭제</name>
- <func>fCcCodeDelete</func>
- </item>
- </popupmenu3>
- <popupmenu4>
- <item>
- <name>코드 삭제</name>
- <func>fExcCodeDelete</func>
- </item>
- </popupmenu4>
- <popupmenu5>
- <item>
- <name>코드 삭제</name>
- <func>fDropCodeDelete</func>
- </item>
- </popupmenu5>
- </temp>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- fGetCodeList();
- fInitialize();
- fInitializeCtrl();
-
- //OCS, 환자계획표 화면의 초기화
- if( !isNull(model.getValue("/root/main/masterinfo/info/cpgno")) ){
- fSendDetailValue();
- ivw_detail.window.javascript.fInitialize();
- ivw_detail.window.javascript.fInitGrigInfo();
- //ivw_prcp.window.javascript.fInitData();
- }
-
- grd_diag_attribute_top = grd_diag.attribute("top");
- grd_op_attribute_top = grd_op.attribute("top");
- grd_drop_attribute_top = grd_drop.attribute("top");
- grd_exclusion_attribute_top = grd_exclusion.attribute("top");
-
- grd_diag.rowhidden(0) = true;
- grd_op.rowhidden(0) = true;
- grd_cc.rowhidden(0) = true;
- grd_exclusion.rowhidden(0) = true;
- grd_drop.rowHidden(0) = true;
-
- if(ipt_cpaprvno.value == "") {
- ipt_cpaprvno.value = "승인번호";
- }
- ]]>
- </script>
- <submission id="TRMQP00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/rslt"/>
- <submission id="TRMQP00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/getdata" resultref="/root/temp/trmqp_rslt"/>
- <submission id="TRMQP00603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/masterinfo" resultref="/root/temp/rslt"/>
- <submission id="TRMQP00605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/attachfile"/>
- <submission id="TRMQP00606" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/temp_attlist"/>
- <submission id="TXMQP00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/masterinfo"/>
- <submission id="TXMQP00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/attfileinfo"/>
- <submission id="TXMQP00603" mediatype="multipart/form-data" method="form-data-post" ref="/root/main/attfileinfo" resultref="/root/main/attfileinfo"/>
- <submission id="TXMQP00604" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TXMQP00605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/step" resultref="/root/temp/tempnode"/>
- <submission id="TXMMP01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/savedfolder"/>
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB04105" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript">
- <![CDATA[
- var saveIndxlist = "";
- var saveIndxHeader = "";
- var preSelectedTab = "btn_outline_tab";
- var saveMode = "";
- var changedYN = "N"; //데이터 저장 후, 환자계획표를 refresh 하기 위해서, 저장 후 Y로 바꾸고, 환자계획표를 열면 다시 N
- var OcsSaveYN = "N";
- var savedeptnm = "";
- var savedeptcd = "";
- var savesupindxno = "";
- var savesuprefseq = "";
- var oldFlag = "-"; //현재의 진단,수술,Drop,Exclusion 그리드 확대/축소 정보(2008.07.25 JJE)
- var cpgOldFlag = "-"; //CPG 그리드 정보
- var OpenerKind = "GEN";
- var cpgFlagCd = ""; //01, 02
- var cpgFlagNM = ""; //CP, CPG
- var setTypeCd = ""; //W, G
-
- var jobKindCd = ""; //직종코드(0330:의사, 0332:치과의사)
- var dutPlceCd = ""; //근무부서
-
- var grd_diag_attribute_top = 0;
- var grd_op_attribute_top = 0;
- var grd_drop_attribute_top = 0;
- var grd_exclusion_attribute_top = 0;
- var loading_detail_YN="N";
-
- /**
- * @group :
- * @ver : 2007.07
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 공통코드를 조회한다.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetCodeList() {
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = 'D';
- var rslt_ref = "/root/init/orddeptlist";
- //zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, "depthngnm", "asc");
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddeptlist" , "A"); //부서코드 콤보(외래+입원)
-
- //start: [요청번호:1580] 공용CP 생성 요청에 따른 병원 코드 추가 (2010.02. JJE)
- var lngth = instance1.selectNodes("/root/init/orddeptlist/dept").length;
- model.makeNode("/root/main/orddeptlist");
- model.copyNode("/root/main/orddeptlist", "/root/init/orddeptlist");
- //for(var i=1; i<=lngth; i++){
- // model.makeValue("/root/main/orddeptlist/dept[" + i + "]/checkyn", "N");
- //}
- model.makeValue("/root/init/orddeptlist/dept[" + lngth + "]/deptcd", "1000000000");
- model.makeValue("/root/init/orddeptlist/dept[" + lngth + "]/depthngnm", "병원");
- model.makeValue("/root/init/orddeptlist/dept[" + lngth + "]/deptengabbr", "");
- //end
-
- //[요청번호: 11937] 마스터 권한 정보 조회 (2010.03.26 JJE)
- mmbfGetHardCodeInfoNm("/root/send/reqdata", "/root/init/cpmasterlist", 203); //CP
- mmbfGetHardCodeInfoNm("/root/send/reqdata", "/root/init/cpgmasterlist", 204); //CPG
-
- jobKindCd = getUserInfo("jobkindcd"); //직종코드(0330:의사, 0332:치과의사)
- dutPlceCd = getUserInfo("dutplcecd"); //근무부서
- }
-
- /**
- * @group :
- * @ver : 2007.07
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInitialize() {
- model.removeNodeset("/root/main/attfileinfo/attach");
- model.resetInstanceNode("/root/send");
- model.refresh();
-
- //검색창에 의해 화면이 로딩되었다면, CPG 정보를 조회한다.
- var saveflag = model.getValue("/root/temp/getdata/saveasflag");
- savedeptnm = model.getValue("/root/temp/getdata/savedeptnm");
- savedeptcd = model.getValue("/root/temp/getdata/savedeptcd");
- var node = instance1.selectSingleNode("/root/temp/getdata");
- var nodeList = node.childNodes;
-
- if( saveflag == "OP" || saveflag == "" ){ //saveflag==""인 경우는 메뉴를 통해 open 한 경우..
- setSpclScrnAuth("X", false);
- }
-
- //권한에 따른, 버튼 설정
- if( checkAuth("X") && saveflag != "VW" ){
- model.makeValue("/root/temp/getdata/authflag", "M"); //생성기를 메뉴에서 바로 열었을 때, QI에게만 메뉴 open 권한을 주어준 후, 수정할 것
-
- }else{
- if( saveflag != "OP" ){
- ipt_cpgnm.disabled = true;
- rdo_cpgflagcd.disabled = true;
-
- btn_initialize.visible = false; // 초기화
- button18.visible = false; // Drop/평가/Exculusion
- button12.visible = false; // 모니터링
-
- button2.visible = false; // 첨부파일 찾기
- button3.visible = false // 첨부파일 삭제
-
- btn_newnm.disabled = true; // 새이름으로
- btn_newver.disabled = true; // 저장
- btn_allInfoSave.disabled = true; //등록
- ivw_outline.grp_button.visible = false;
- button16.visible = false; //검색버튼 (검색->Generator->검색... => X)
- ipt_stepnm.disabled = true;
- tar_stepmemo.disabled = true;
- ipt_times.disabled = true;
- cmb_stepnm.disabled = true;
- }
-
- if( jobKindCd == "0330" || jobKindCd == "0332" || jobKindCd == "9930" ){
- model.makeValue("/root/temp/getdata/authflag", "U");
- }else{
- model.makeValue("/root/temp/getdata/authflag", "S");
- }
- }
- ivw_outline.model.setValue("/root/temp/getdata/authflag", model.getValue("/root/temp/getdata/authflag") );
-
- if(nodeList.length > 0){
- // 1. saveflag != "OP" 이면, 조회부(화면 clear 후 조회)
- if( saveflag != "OP" ){
- submit("TRMQP00602"); //master 조회
- model.copyNode("/root/main/masterinfo/info", "/root/temp/trmqp_rslt/masterinfo");
-
- if( saveflag == "SR" || saveflag == "VW" ){ //조회 (2007변경됨, 조회모드만 존재함)
- model.copyNode("/root/temp/copynodeset/masterinfo/info", "/root/main/masterinfo/info");
- //초기화 (새이름으로 저장 할 경우, 진료과 변경 가능함... 진료과 변경 여부에 따라, 동일CP 조회기준이 달라짐)
- model.setValue("/root/temp/oldcpgorddeptcd", model.getValue("/root/temp/copynodeset/masterinfo/info/cpgorddeptcd"));
- model.setValue("/root/temp/deptchngyn" , "N");
- }
- var cpgflagcd = model.getValue("/root/temp/trmqp_rslt/masterinfo/cpgflagcd");
- var diagRef = "/root/temp/trmqp_rslt/diaglist";
- var opRef = "/root/temp/trmqp_rslt/oplist";
- var ccRef = "/root/temp/trmqp_rslt/cclist";
- var exclusionRef = "/root/temp/trmqp_rslt/exclist";
- var dropRef = "/root/temp/trmqp_rslt/droplist";
- var mntrRef = "/root/temp/trmqp_rslt/mntrlist";
- var limRef = "/root/temp/trmqp_rslt/limheaderinfo";
- var inqrRef = "/root/temp/trmqp_rslt/inqrheader";
- var deptRef = "/root/temp/trmqp_rslt/deptlist";
-
- if (cpgflagcd =="01") {
- copyNodeListType("/root/main/diaginfo", diagRef + "[termflag = 'T00' or termflag = 'T01']", "after", model, model);
- copyNodeListType("/root/main/opinfo", opRef + "[termflag = 'T90' or termflag = 'T91']", "after", model, model);
- copyNodeListType("/root/main/ccinfo", ccRef + "[termflag = 'T20']", "after", model, model);
- copyNodeListType("/root/main/exclusion", exclusionRef, "after", model, model);
- copyNodeListType("/root/main/dropinfo", dropRef, "after", model, model);
- copyNodeListType("/root/main/reqrlist", "/root/temp/trmqp_rslt/list", "replace", model, model);
- copyNodeListType("/root/main/attfileinfo", "/root/temp/trmqp_rslt/attach", "replace", model, model);
- } else {
- copyNodeListType("/root/main/scrninfo" , mntrRef + "[cpgmntrflag = 'S']", "after", model, model);
- copyNodeListType("/root/main/mntrinfo" , mntrRef + "[cpgmntrflag = 'M']", "after", model, model);
- copyNodeListType("/root/main/inqrinfo" , inqrRef, "after", model, model);
- copyNodeListType("/root/main/limtminfo" , limRef, "after", model, model);
- copyNodeListType("/root/main/reqrlist", "/root/temp/trmqp_rslt/list", "replace", model, model);
- }
-
- //start: multi진료과인 경우 설정된 진료과 check 설정
- var deptListNodes = instance1.selectNodes("/root/temp/trmqp_rslt/deptlist");
- if( deptListNodes.length > 0 ){
- var multideptcdlist = "";
- var multideptnmlist = "";
- for(var i=0; i<deptListNodes.length; i++){
- var node = deptListNodes.item(i);
- var deptcd = node.selectSingleNode("deptcd");
- var deptnm = node.selectSingleNode("deptnm");
- //model.setValue("/root/main/orddeptlist/dept[deptcd='" + deptcd.text + "']/checkyn", "Y");
- multideptcdlist = multideptcdlist + deptcd.text + ",";
- multideptnmlist = multideptnmlist + deptnm.text + ",";
- }
- multideptcdlist = multideptcdlist.substr(0, multideptcdlist.length-1);
- multideptnmlist = multideptnmlist.substr(0, multideptnmlist.length-1);
- model.setValue("/root/temp/multideptcdlist", multideptcdlist);
- model.setValue("/root/temp/multideptnmlist", multideptnmlist);
- ipt_cpgorddeptnm.refresh();
- }
- //end
-
- //정렬된 스텝을 셋팅한다 (2007.11.01 outlineview 에 노드 추가(스텝처방에서 탭 정렬을 위해))
- model.resetInstanceNode("/root/main/steplist");
- ivw_outline.model.resetInstanceNode("/root/main/sortedsteplist");
- var stepNodeList = instance1.selectNodes("/root/temp/trmqp_rslt/sortedsteplist");
- if( stepNodeList.length > 0 ){
- for(var i=0; i<stepNodeList.length; i++){
- var node = stepNodeList.item(i);
- var statusNode = node.selectSingleNode("orgstepno");
- model.setValue(statusNode, i+1);
- }
- var stepCSV = getNodeListCSV(stepNodeList);
- setCSVToNode("/root/main/steplist", stepCSV, "info");
-
- copyNodeListType("/root/main/sortedsteplist", "/root/main/steplist/info", "replace", ivw_outline.model, model);
- copyNodeListType("/root/main/sortedsteplist", "/root/main/steplist/info", "replace", model, model);
-
- model.makeNode("/root/main/reqrlist/reqrid");
- model.makeNode("/root/main/reqrlist/inputreqrnm");
- }
- //step 정보를 셋팅한다.
- nodeList = instance1.selectNodes("/root/temp/trmqp_rslt/steplist");
- var stepCnt = nodeList.length;
- if(nodeList.length > 0){
- model.removeNodeset("/root/main/steplist");
- model.removeNodeset("/root/main/decisionlist");
- model.makeNode("/root/main/steplist");
- model.makeNode("/root/main/decisionlist");
-
- var stepCSV = getNodeListCSV(nodeList);
- setCSVToNode("/root/main/steplist", stepCSV, "info");
- //decision step
- nodeList = instance1.selectNodes("/root/temp/trmqp_rslt/decisionlist");
- if(nodeList.length > 0){
- var dcsCSV = getNodeListCSV(nodeList);
- setCSVToNode("/root/main/decisionlist", dcsCSV, "info");
- }
-
- fCreateOutLineView();
-
- //var stepCnt = nodeList.length;
- ivw_outline.model.makeNode("/root/main/steplist");
- copyNodesetType("/root/main/steplist", "/root/main/steplist", "after", ivw_outline.model, model);
- copyNodesetType("/root/main/decisionlist", "/root/main/decisionlist", "after", ivw_outline.model, model);
- ivw_outline.model.removenode("/root/main/steplist[1]"); //빈 노드를 삭제한다.
- ivw_outline.model.removenode("/root/main/decisionlist[1]"); //빈 노드를 삭제한다.
-
- var agr1 = stepCnt; //그려야 할 컨트롤 갯수
- var agr2 = (parseInt(model.getValue("/root/main/masterinfo/info/swimlineno")) * 3) + 1; //아웃라인을 구성하는 라인 컨트롤 갯수
- ivw_outline.window.javascript.initGlobalVariant(agr1, agr2);
- ivw_outline.window.javascript.fCreateControl();
- }
-
- fSettingDayComboList(); //우측 상단의 day콤보 리스트 값 설정
- fCopyOrgCpgNM(); //CP/CPG명을 CP검색화면에서의 이름과 동일하게
- if( model.getValue("/root/temp/getdata/authflag") != "M" ){
- //조회모드(의사,간호사)
- ipt_cpgnm.disabled = true;
-
- //2008.06.16 pymi(시작)
- //CP 검색에서 조회시 ivw_detail viewer size 조정은 한번만 발생하도록
- if(model.getValue("/root/temp/getdata/srcMode") == 1) {
- btn_sizecntl.dispatch("DOMActivate");
- } else {
- //OCS, 환자계획표 화면의 초기화
- if( !isNull(model.getValue("/root/main/masterinfo/info/cpgno")) ){
- ivw_detail.window.javascript.fInitialize();
- fSendDetailValue();
- ivw_detail.window.javascript.fInitGrigInfo();
- }
- //ivw_outline size redraw
- ivw_outline.grp_swimline.attribute("width") = "1189px";
- ivw_outline.grp_button.attribute("left") = "917px";
- ivw_outline.window.javascript.fAdjustLine("allEx", "392");
-
- ivw_outline.ivw_detail.attribute("left") = "0px";
- ivw_outline.ivw_detail.attribute("width") = "1192px";
- ivw_outline.ivw_detail.attribute("height") = "655px";
-
- var currentStep = ivw_outline.window.javascript.currentStepCntl;
- ivw_outline.window.javascript.fCreateControl();
- ivw_outline.window.javascript.currentStepCntl = currentStep;
- ivw_outline.window.javascript.fChangeSelectCntl("#A683B1", ivw_outline.window.javascript.currentStepCntl);
- }
- //2008.06.16 pymi(완료)
-
- btn_detail_tab.dispatch("DOMActivate");
- btn_detail_tab.selected = true;
-
- }else{
- //관리자모드(QI)
- ipt_cpgnm.refresh(); //2008.06.24(전지은) 추가 (diabled 전에 setValue로 값만 가지고 있을 때, 화면에 보이지 않는 문제 발생... refresh 했더니 보임)
- ipt_cpgnm.disabled = true;
- rdo_cpgflagcd.disabled = true;
-
- //마지막 버전이 아닌 CP는 조회만 가능 -> 새이름저장만 가능 (2008.11.)
- if( model.getValue("/root/main/masterinfo/info/cpglasthistyn") == "N" || model.getValue("/root/main/masterinfo/info/todd") <= getCurrentDate() ){
- btn_newver.disabled = true;
- btn_allInfoSave.disabled = true;
- //btn_newnm.disabled = true; //최종이력이 아니어도 수정 후 새이름으로 저장 가능 (2008.11.15)
- }
- //등록CP인경우 진료과 재원일수 비활성화(2008.06.20 LWS)
- if( model.getValue("/root/main/masterinfo/info/tmpyn") == "N"){
- cmb_cpgorddeptcd.disabled = true;
- rdo_ioflagcd.disabled = true;
- //ipt_fcstinhospdayno.disabled = true;
- }else{
- cmb_cpgorddeptcd.disabled = false;
- rdo_ioflagcd.disabled = false;
- //if( cpgflagcd == "01" ) ipt_fcstinhospdayno.disabled = false;
- }
- }
-
- }else{
- if( !isNull(savedeptcd) ){
- var comboNodeList = instance1.selectNodes("/root/init/orddeptlist/dept");
- for( var i=1; i<=comboNodeList.length; i++){
- if( model.getValue("/root/init/orddeptlist/dept[" + i + "]/deptcd") == savedeptcd){
- cmb_cpgorddeptcd.select((i-1));
- }
- }
- }
- if( isNull(model.getValue("/root/main/masterinfo/info/cpgno")) ){
- btn_newnm.disabled = true;
- }
- savesupindxno = model.getValue("/root/temp/getdata/savesupindxno"); //선택한 폴더 no**
- savesuprefseq = model.getValue("/root/temp/getdata/savesuprefseq"); //선택한 폴더 seq
- }
- }
-
- fInitializeValue( saveflag ); //2008.06.24(전지은) 위치 바꿈. (CPG 조회 시, 승인번호 inputbox disable 시키기 위해)
- // 2014/04/24 이정택 추가
- model.setValue("/root/main/masterinfo/info/appdd", getCurrentDate());
- model.setValue("/root/main/masterinfo/info/lastupdtdt", getCurrentDate());
- // 2014/04/24 이정택 추가
- model.refresh();
- }
-
- /**
- * @group :
- * @ver : 2007.07
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 새버전으로/새이름으로 저장 시, 인스턴스의 save flag(m)를 바꿔준다
- * @param : settingYN : OP(CP검색화면에서 신규로 열거나, 메뉴에서 생성기 처음 여는 경우), 그외:조회모드
- * @return :
- * @---------------------------------------------------
- */
- function fInitializeValue( settingYN ){
- if( isNull(settingYN) ){
- settingYN = "OP"; //메뉴에서 화면을 열거나, 초기화 버튼을 누를 경우, settingYN = null (CP검색에서 신규버튼 눌렀을때와 동일)
- }
-
- //var chngYN = "N";
- //if( cpgFlagCd != model.getValue("/root/main/masterinfo/info/cpgflagcd") ) chngYN = "Y";
-
- cpgFlagCd = model.getValue("/root/main/masterinfo/info/cpgflagcd");
- var addTop = parseInt(swt_cpgmain.attribute("top")) + 2;
-
- if(cpgFlagCd == "01") { //CP
- cpgFlagNM = "CP";
- setTypeCd = "W";
- //스위치 위에 입력컨트롤을 올림
- cmb_cpgorddeptcd.attribute("top") = parseInt(cap_cpgorddeptcd.attribute("top")) + addTop;
- btn_getdept.attribute("top") = parseInt(cap_cpgorddeptcd.attribute("top")) + addTop;
- ipt_cpgorddeptcd.attribute("top") = parseInt(cap_cpgorddeptcd.attribute("top")) + addTop;
- ipt_cpgorddeptnm.attribute("top") = parseInt(cap_cpgorddeptcd.attribute("top")) + addTop;
- grp_cpgorddeptinfo.attribute("top") = 220; //진료과 멀티 선택 팝업
- ipt_fcstinhospdayno.attribute("top") = parseInt(cap_fcstinhospdayno.attribute("top")) + addTop;
- ipt_fcstinhospdayno.attribute("left") = parseInt(cap_fcstinhospdayno.attribute("left")) + parseInt(cap_fcstinhospdayno.attribute("width")) + 2;
- ipt_swimlineno.attribute("top") = parseInt(cap_swimlineno.attribute("top")) + addTop;
- ipt_swimlineno.attribute("left") = parseInt(cap_swimlineno.attribute("left")) + parseInt(cap_swimlineno.attribute("width")) + 2;
- ipt_cretdd.attribute("top") = parseInt(cap_cretdd.attribute("top")) + addTop;
- ipt_appdd.attribute("top") = parseInt(cap_appdd.attribute("top")) + addTop;
- ipt_todd.attribute("top") = parseInt(cap_todd.attribute("top")) + addTop;
- ipt_lastupdtdt.attribute("top") = parseInt(cap_lastupdtdt.attribute("top")) + addTop;
- cmb_reqrlist.attribute("top") = parseInt(cap_reqrlist.attribute("top")) + addTop;
- btn_srchreqr.attribute("top") = parseInt(cap_reqrlist.attribute("top")) + addTop + 3;
- btn_delreqr.attribute("top") = parseInt(cap_reqrlist.attribute("top")) + addTop + 3;
- ipt_lastupdtdt.attribute("top") = parseInt(cap_lastupdtdt.attribute("top")) + 3 + addTop;
- ipt_lastupdtdt.attribute("top") = parseInt(cap_lastupdtdt.attribute("top")) + 3 + addTop;
- txt_memo.attribute("top") = parseInt(cap_memo.attribute("top")) + addTop;
- txt_memo.attribute("height") = parseInt(cap_memo.attribute("height")) -1;
- model.toggle("cpmaster");
- ipt_cpaprvno.disabled = false;
- //ipt_fcstinhospdayno.disabled = false;
- ipt_stepnm.attribute("width") = 83;
- cap_stepmemo.attribute("left") = 524;
- tar_stepmemo.attribute("left") = 607;
- cap_day.attribute("left") = "988px";
- ipt_times.visible = true;
- ipt_times.disabled = false;
- cmb_stepnm.visible = true;
- ipt_times_old.visible = false;
- ipt_swimlineno.disabled = true;
- btn_attr.visible = false;
- btn_mntrorder.visible = false;
- btn_essprcpinfo.visible = false;
- ivw_outline.model.setValue("/root/main/outlineinfo/info/cpgflagcd", "W");
-
- } else { //CPG
- cpgFlagNM = "CPG";
- setTypeCd = "G";
- //스위치 위에 입력컨트롤을 올림
- cmb_cpgorddeptcd.attribute("top") = addTop + 25;
- ipt_cpgorddeptcd.attribute("top") = addTop + 25;
- ipt_cpgorddeptnm.attribute("top") = addTop + 25;
- btn_getdept.attribute("top") = addTop + 25;
- grp_cpgorddeptinfo.attribute("top") = addTop + 48; //진료과 멀티 선택 팝업
- ipt_fcstinhospdayno.attribute("top") = addTop + 50;
- ipt_fcstinhospdayno.attribute("left") = parseInt(cap_fcstinhospdayno2.attribute("left")) + parseInt(cap_fcstinhospdayno2.attribute("width")) + 2;
- ipt_swimlineno.attribute("top") = addTop + 50;
- ipt_swimlineno.attribute("left") = parseInt(cap_swimlineno2.attribute("left")) + parseInt(cap_swimlineno2.attribute("width")) + 2;
- ipt_cretdd.attribute("top") = parseInt(cap_cretdd2.attribute("top")) + addTop;
- ipt_appdd.attribute("top") = parseInt(cap_appdd2.attribute("top")) + addTop;
- ipt_todd.attribute("top") = parseInt(cap_todd2.attribute("top")) + addTop;
- ipt_lastupdtdt.attribute("top") = parseInt(cap_lastupdtdt2.attribute("top")) + addTop;
- cmb_reqrlist.attribute("top") = parseInt(cap_reqrlist2.attribute("top")) + addTop;
- btn_srchreqr.attribute("top") = parseInt(cap_reqrlist2.attribute("top")) + addTop + 3;
- btn_delreqr.attribute("top") = parseInt(cap_reqrlist2.attribute("top")) + addTop + 3;
- ipt_lastupdtdt.attribute("top") = parseInt(cap_lastupdtdt2.attribute("top")) + 3 + addTop;
- ipt_lastupdtdt.attribute("top") = parseInt(cap_lastupdtdt2.attribute("top")) + 3 + addTop;
- txt_memo.attribute("top") = parseInt(cap_memo2.attribute("top")) + addTop;
- txt_memo.attribute("height") = parseInt(cap_memo2.attribute("height")) -1;
- model.toggle("cpgmaster");
- ipt_cpaprvno.disabled = true;
- //ipt_fcstinhospdayno.disabled = true;
- /*
- ipt_stepnm.attribute("width") = 83 + 93;
- cap_stepmemo.attribute("left") = 524 + 93;
- tar_stepmemo.attribute("left") = 607 + 93;
- cap_day.attribute("left") = "1082px";
- ipt_times.visible = false;
- ipt_times.disabled = true;
- cmb_stepnm.visible = false;
- ipt_times_old.visible = true;
- ipt_times_old.disabled = true;
- */
- ipt_swimlineno.disabled = false;
- btn_attr.visible = true;
-
- //CP와 동일하게 변경 (2010.06.25)
- ipt_times.visible = true;
- ipt_times.disabled = false;
- cmb_stepnm.visible = true;
- ipt_times_old.visible = false;
-
- btn_essprcpinfo.visible = true;
- ivw_outline.model.setValue("/root/main/outlineinfo/info/cpgflagcd", "G");
- //입력된 평가명이 있으면 버튼명에서 *을 제외시킴
- if( !isNull(model.getValue("/root/main/masterinfo/info/valunm")) ){
- btn_valunm.attribute("text") = "평가명";
- btn_valunm.refresh();
- }
- }
-
- if( settingYN == "OP" ){ //2008.06.24(전지은) 신규로 open(saveflag=OP일 경우) or 메뉴를 통한 화면 open 시 초기값을 설정, 조회한 경우는 초기값 셋팅 필요 없음
- var today = getCurrentDate();
- model.setValue("/root/main/masterinfo/info/lastupdtdt", today); //최종수정일
- model.setValue("/root/main/masterinfo/info/cretdd", today); //생성일
- model.setValue("/root/main/masterinfo/info/todd", "99991231"); //종료일
- model.setValue("/root/main/masterinfo/info/rgstrid", getUserId());
- model.setValue("/root/main/masterinfo/info/rgstrnm", getUserName());
-
- ipt_lastupdtdt.refresh();
- ipt_todd.refresh();
- ipt_cretdd.refresh();
- ipt_appdd.refresh();
- ipt_rgstrnm.refresh();
- }
-
- //요청번호:1580 진료과 grid 추가
- fCngCpgType("D");
-
- //start: [요청번호: 11937] 마스터 권한 정보에 따라 컨트롤 활성화 여부 설정 (2010.03.26 JJE)
- if( model.getValue("/root/temp/getdata/authflag") == "M" ){
- var jobKindCd = getUserInfo("jobkindcd"); //직종코드(0330:의사, 0332:치과의사)
- var dutPlceCd = getUserInfo("dutplcecd"); //근무부서
- var authCnt = 0;
- var tmp_cpgFlagCd = model.getValue("/root/main/masterinfo/info/cpgflagcd");
- if( !isNull(model.getValue("/root/init/cpgmasterlist/hardcd[hardcd='" + dutPlceCd + "' or hardcd='" + jobKindCd + "']/hardcd")) ){
- authCnt++;
- tmp_cpgFlagCd = "02";
- }
- if( !isNull(model.getValue("/root/init/cpmasterlist/hardcd[hardcd='" + dutPlceCd + "' or hardcd='" + jobKindCd + "']/hardcd")) ){
- authCnt++;
- tmp_cpgFlagCd = "01";
- }
- //CP/CPG 둘 중 하나의 권한만 존재할 경우 blocking (2010.03.29 JJE)
- if( authCnt < 2 ){
- model.setValue("/root/main/masterinfo/info/cpgflagcd", tmp_cpgFlagCd);
- rdo_cpgflagcd.refresh();
- rdo_cpgflagcd.disabled = true;
- }
- //의사가 마스터 권한 있을 경우, 근무지부서로만 등록 가능하도록 blocking
- if( jobKindCd == "0330" || jobKindCd == "0332" || jobKindCd == "9930" ){
- model.setValue("/root/main/masterinfo/info/cpgorddeptcd", dutPlceCd);
- cmb_cpgorddeptcd.refresh();
- cmb_cpgorddeptcd.disabled = true;
- //btn_getdept.disabled = true;
- }
- }
- //end
- }
-
- /**
- * @group :
- * @ver : 2007.07
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 open시와 공통적인 컨트롤 초기화 (셋팅)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInitializeCtrl() {
- //새이름 입력받는 작은 인풋 팝업 위치 및 visible 상태 초기화
- grp_inputcpname.attribute("left") = 86;
- grp_inputcpname.attribute("width") = 265;
- grp_inputcpname.attribute("top") = 70;
- grp_inputcpname.attribute("height") = 0; //visible 대신 사이즈 조정으로 컨트롤하므로 초기에는 0
- grp_inputcpname.refresh();
-
- //평가명 입력받는 작은 인풋 팝업 위치 및 visible 상태 초기화
- grp_inputvalunm.attribute("left") = 86;
- grp_inputvalunm.attribute("width") = 265;
- grp_inputvalunm.attribute("top") = 127;
- grp_inputvalunm.attribute("height") = 0; //visible 대신 사이즈 조정으로 컨트롤하므로 초기에는 0
- grp_inputvalunm.refresh();
-
- }
-
- /**
- * @group :
- * @ver : 2007.07
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 새이름으로 저장 - 이름입력후 확인 버튼 클릭 시 처리
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSettingNewNameCp(){
- var cpgno = model.getValue("/root/main/masterinfo/info/cpgno");
- var ver = parseInt(model.getValue("/root/main/masterinfo/info/cpghistseq"));
- var tmpyn = model.getValue("/root/main/masterinfo/info/tmpyn"); //임시(미등록) 여부
-
- var indxno = model.getValue("/root/temp/getdata/indxno");
- var supindxno = "";
- var indxrefseq = model.getValue("/root/temp/getdata/indxrefseq");
- var indxseq = model.getValue("/root/temp/getdata/indxseq");
- var no = model.getValue("/root/temp/getdata/cpgno");
- var nm = model.getValue("/root/temp/getdata/cpgnm");
-
- model.setValue("/root/temp/oldcpgno", cpgno);
- model.setValue("/root/temp/oldcpghistseq", ver);
- model.setValue("/root/temp/oldtmpyn", tmpyn);
- model.setValue("/root/temp/saveflag", "N");
- model.setValue("/root/main/masterinfo/info/tmpyn", "Y");
-
- var selectedDeptNm = cmb_cpgorddeptcd.label;
- var selectedDeptCd = cmb_cpgorddeptcd.value;
- model.makeValue("/root/send/reqdata/deptnm", selectedDeptNm);
- model.makeValue("/root/send/reqdata/deptcd", selectedDeptCd);
- model.makeNode("/root/temp/rslt/rstdata");
- submit("TRMQP00601", false);
-
- var selectIndxCd = model.getValue("/root/temp/rslt/rstdata/indxno");
- var supindxno = selectIndxCd;
- model.makeValue("/root/temp/getdata/supindxno", supindxno);
-
- if( (!isNull(selectedDeptNm)) && isNull(selectIndxCd) ) {
- model.makeValue("/root/send/reqdata/indxnm", selectedDeptNm );
- model.makeValue("/root/send/reqdata/supindxno", "0" ); //상위색인
- model.makeValue("/root/send/reqdata/indxrefseq", "0" ); //조회순번
- model.makeValue("/root/send/reqdata/status", "i" ); //구분:등록
- model.makeValue("/root/send/reqdata/cpgflagcd", cpgFlagCd ); //구분:등록 ("" -> cpgFlagCd 2008.12.05)
- model.makeNode("/root/temp/savedfolder");
-
- supindxno = selectIndxCd;
-
- if( submit("TXMMP01501", false) ){ //과 폴더 저장
- supindxno = model.getValue("/root/temp/savedfolder/item/indxno");
- model.makeValue("/root/temp/getdata/supindxno", supindxno);
- }
- }
-
- //"m▦indxno▦indxnm▦supindxno▦indxrefseq▦depth▦indxseq▦cpgno▦cpghistseq▦image";
- //saveIndxlist = "▩i▦"+indxno+"▦"+nm+"▦"+supindxno+"▦"+indxrefseq+"▦▦"+indxseq+"▦"+no+"▦"+ver+"▦▦"+flag;
- model.makeNode("/root/main/indexinfo/item"); //필요 없는 노드(저장 이벤트 시, 그리드의 row 수가 0보다 클때 인덱스를 저장하기때문에 만들어줌)
-
- model.setValue("/root/temp/mstatus", "i");
- model.setValue("/root/main/masterinfo/info/cpgno", "");
-
- fSettingStatus();
-
- if ( fSaveCPGInfo() == false ){
- //원래 cpgno, cpghistseq를 복원 (2010.05.20 JJE)
- model.setValue("/root/main/masterinfo/info/cpgno", cpgno);
- model.setValue("/root/main/masterinfo/info/cpghistseq", ver);
- model.setValue("/root/main/masterinfo/info/tmpyn", tmpyn);
- return false;
- }
-
- if(instance1.selectSingleNode("/root/temp/tempnode/prms/newsetno")){
- ivw_outline.window.javascript.fSetStepSetNo();
- model.resetInstanceNode("/root/temp/tempnode");
- }
-
- //if(btn_action_tab.selected == true){
- if( ivw_outline.ivw_detail.visible == true && !isNull(cpgno) ){
- ivw_outline.ivw_detail.window.javascript.fExePrmsSetInfo("T");
- changedYN = "Y";
- }
-
- grp_inputcpname.attribute("height") = 0; //grp_inputcpname.visible = false;
- grp_biz.disabled = false;
- grp_btn.disabled = false;
- ivw_outline.disabled = false;
- //btn_newnm.disabled = true; //새이름으로 저장 한 후는 미등록상태이므로 새이름으로 버튼 비활성(2008.06.20 LWS)
- //closeLoadingBar(); //loading 메세지 닫기
- }
- /**
- * @group :
- * @ver : 2007.07
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 새버전으로/새이름으로 저장 시, 인스턴스의 save flag(m)를 바꿔준다
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSettingStatus(){
- for(var i=1; i<=grd_diag.rows; i++){
- if(grd_diag.rowstatus(i) != 4){
- grd_diag.rowstatus(i) = 1;
- }
- }
-
- for(var i=1; i<=grd_op.rows; i++){
- if(grd_op.rowstatus(i) != 4){
- grd_op.rowstatus(i) = 1;
- }
- }
-
- for(var i=1; i<=grd_cc.rows; i++){
- if(grd_cc.rowstatus(i) != 4){
- grd_cc.rowstatus(i) = 1;
- }
- }
-
- for(var i=1; i<=grd_exclusion.rows; i++){
- if(grd_exclusion.rowstatus(i) != 4){
- grd_exclusion.rowstatus(i) = 1;
- }
- }
-
- for(var i=1; i<=grd_drop.rows; i++){
- if(grd_drop.rowstatus(i) != 4){
- grd_drop.rowstatus(i) = 1;
- }
- }
-
- var sngNode = instance1.selectSingleNode("/root/main/reqrlist/list/userid");
- if(sngNode){
- var nodeList = instance1.selectNodes("/root/main/reqrlist/list");
- for(var i=0; i<nodeList.length; i++){
- var node = nodeList.item(i);
- var m = node.selectSingleNode("m");
- if( m.text != "d"){
- model.setValue(m, "i");
- }
- }
- }
-
- for(var i=1; i<=grd_attfile.rows; i++){ //삭제 컬럼을 제외한 기존파일+추가 파일을 새 버전으로 저장
- if(grd_attfile.rowstatus(i) != 4){
- grd_attfile.rowstatus(i) = 1;
- grd_attfile.valueMatrix(i, 4) = "false"; //삭제를 제외한 기존 파일은 DB에만 copy
- }
- }
-
- //all step
-
- nodeList = ivw_outline.instance1.selectNodes("/root/main/decisionlist/info");
- if(nodeList.length > 0){
- //decision step's link info
- if(nodeList.length > 0){
- for(var i=0; i<nodeList.length; i++){
- var node = nodeList.item(i);
- var m = node.selectSingleNode("m");
- if( m.text != "d"){
- model.setValue(m, "i");
- }
- }
- }
- }
-
- //마스터 저장 로직 변경 : (기존)모든 프로토콜(setno/settypecd)가 새로 저장 -> 수정된 프로토콜만 새로 저장, 나머지는 동일 프로토콜 번호로 copy (2009.02.19 JJE)
- nodeList = ivw_outline.instance1.selectNodes("/root/main/steplist/info");
- if(nodeList.length > 0){
- //프로토콜 창이 열려있을 때, 변경된 처방(추가/수정/삭제)가 있는 스텝만 set번호를 새로 따기 위해, 해당 스텝만 저장상태(m)을 i로 한다
- if( ivw_outline.ivw_detail.visible == true ){
- var chgPrcpNode = ivw_outline.ivw_detail.instance1.selectSingleNode("/root/main/prcp/prcplist[status != 'S' and status != '-' and status != '']");
- var chgFormNode = ivw_outline.ivw_detail.instance1.selectSingleNode("/root/main/form/forminfo/formlist[status != 'S' and status != '-' and status != '']");
- var curNo = model.getValue("/root/main/stepinfo/info/stepno");
- if( chgPrcpNode != null || chgFormNode != null ){
- m = ivw_outline.instance1.selectSingleNode("/root/main/steplist/info[stepno='"+curNo+"']/m]");
- model.setValue(m, "i");
- return;
- }
- }
-
- //프로토콜 수정 없이, 메인뷰어에서 저장이 일어나는 경우도 셋번호를 새로 딸 필요 없이 카피만 하면 되므로 status를 i가 아닌 -로 변경해준다
- for(var i=0; i<nodeList.length; i++){
- var node = nodeList.item(i);
- var m = node.selectSingleNode("m");
- if( m.text != "d" && m.text != "i" ){
- model.setValue(m, "-");
- }
- }
- }
- }
-
- /**
- * @group :
- * @ver : 2007.07
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 새버전으로/새이름으로 저장 시, 인스턴스의 save flag(m)를 바꿔준다
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fReturnStatus(){
- for(var i=1; i<=grd_diag.rows; i++){
- if(grd_diag.rowstatus(i) == 1 && !isNull(model.getValue("/root/main/diaginfo/diaglist[" + i + "]/detlinfoseq")) ){
- grd_diag.rowstatus(i) = 0;
- }
- }
-
- for(var i=1; i<=grd_op.rows; i++){
- if(grd_op.rowstatus(i) == 1 && !isNull(model.getValue("/root/main/opinfo/oplist[" + i + "]/detlinfoseq")) ){
- grd_op.rowstatus(i) = 0;
- }
- }
-
- for(var i=1; i<=grd_cc.rows; i++){
- if(grd_cc.rowstatus(i) == 1 && !isNull(model.getValue("/root/main/ccinfo/cclist[" + i + "]/detlinfoseq")) ){
- grd_cc.rowstatus(i) = 0;
- }
- }
-
- for(var i=1; i<=grd_exclusion.rows; i++){
- if(grd_exclusion.rowstatus(i) == 1 && !isNull(model.getValue("/root/main/exclusion/exclist[" + i + "]/detlinfoseq")) ){
- grd_exclusion.rowstatus(i) = 0;
- }
- }
-
- for(var i=1; i<=grd_drop.rows; i++){
- if(grd_drop.rowstatus(i) == 1 && !isNull(model.getValue("/root/main/dropinfo/droplist[" + i + "]/detlinfoseq")) ){
- grd_drop.rowstatus(i) = 0;
- }
- }
-
- var sngNode = instance1.selectSingleNode("/root/main/reqrlist/list/userid");
- if(sngNode){
- var nodeList = instance1.selectNodes("/root/main/reqrlist/list");
- for(var i=0; i<nodeList.length; i++){
- var node = nodeList.item(i);
- var m = node.selectSingleNode("m");
- var seq = node.selectSingleNode("detlinfoseq");
- if( m.text != "i" && !isNull(seq.text) ){
- model.setValue(m, "");
- }
- }
- }
-
- for(var i=1; i<=grd_attfile.rows; i++){
- if(grd_attfile.rowstatus(i) == 1 && model.getValue("/root/main/attfileinfo/attach[" + i + "]/detlinfoseq") != "0" ){
- grd_attfile.rowstatus(i) = 0;
- grd_attfile.valueMatrix(i, 4) = "true"; //삭제를 제외한 기존 파일은 DB에만 copy
- }
- }
-
- /*
- nodeList = ivw_outline.instance1.selectNodes("/root/main/steplist/info");
- if(nodeList.length > 0){
- for(var i=0; i<nodeList.length; i++){
- var node = nodeList.item(i);
- var m = node.selectSingleNode("m");
- if( m.text != "d"){
- model.setValue(m, "i");
- }
- }
-
- //decision step's link info
- nodeList = ivw_outline.instance1.selectNodes("/root/main/decisionlist/info");
- if(nodeList.length > 0){
- for(var i=0; i<nodeList.length; i++){
- var node = nodeList.item(i);
- var m = node.selectSingleNode("m");
- if( m.text != "d"){
- model.setValue(m, "i");
- }
- }
- }
- }*/
- }
-
- /**
- * @group :
- * @ver : 2007.07
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 새버전 저장 완료 후, 첨부파일, 스텝 서식, 스텝의 약속set 을 새로 insert 한다
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSaveEtcInfo(){
- //ivw_outline.ivw_detail.attribute("src") = "../../../emr/cpgweb/xrw/SPMP01400_STEP처방관리.xrw";
- //중간단계 아이뷰어를 통해 모든 스텝의 처방을 저장하도록 한다.
- if( ivw_outline.ivw_detail.visible == true){
- //선택된 탭의 약속set이나 서식이 바뀐 내용이 있는지 체크 (cpgno와 구cpghistseq 와 함께, 바뀐 내용을 담아서 서브밋을 실행)
- ivw_outline.window.javascript.fSaveEtcInfo();
- }else{
- //모든 스텝의 약속set이나 서식을 저장 (cpgno와 구cpghistseq 를 담아서 서브밋을 실행)
- ivw_outline.window.javascript.fSaveEtcInfo();
- }
-
- }
-
- /**
- * @group :
- * @ver : 2007.10
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 새버전으로/새이름으로 저장 시, 인스턴스의 save flag(m)를 바꿔준다
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDelCPG(){
- /*
- if( model.getValue("/root/main/masterinfo/info/cpgno") != "" && model.getValue("/root/main/masterinfo/info/cpghistseq") != "" ) {
- model.removeNodeset("/root/send");
- model.makeNode("/root/send/masterinfo"); // : MMPGCINF
- model.copyNode("/root/send/masterinfo", "/root/main/masterinfo/info");
- model.makeValue("/root/send/masterinfo/status", "d");
- model.makeNode("/root/temp/masterinfo/info/cpgno"); //저장 후 새로딴 키값을 얻어올 인스턴스
- model.makeNode("/root/temp/masterinfo/info/cpghistseq"); //저장 후 새로딴 키값을 얻어올
-
- submit("TXMQP00601");
- }else{
- messageBox("CP/CPG 정보를 찾을수 없어, 삭제할 수", "I004");
- return false;
- }
- */
- //삭제데이터를 만든다.
- model.makeValue("/root/main/delmasterinfo/delcpgno" , model.getValue("/root/main/masterinfo/info/cpgno"));
- model.makeValue("/root/main/delmasterinfo/delcpghistseq" , model.getValue("/root/main/masterinfo/info/cpghistseq"));
- model.makeValue("/root/main/delmasterinfo/delcpgflagcd" , cpgFlagCd);
- }
-
- /**
- * @group :
- * @ver : 2007.07
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 색인관리 화면을 펼쳤다가 닫는다.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fIndxMngt(){
- var cpgno = model.getValue("/root/main/masterinfo/info/cpgno");
- var cpghistseq = model.getValue("/root/main/masterinfo/info/cpghistseq");
- var cpgnm = model.getValue("/root/main/masterinfo/info/cpgnm");
- //model.removeNodeset("/root/temp/getdata");
-
- //새로 등록하는 상황이라면, 선택한 CP 진료과가 색인에 존재하는지를 파악한 후, 없다면 MMPHCIDX 에 insert
- var selectedDeptNm = cmb_cpgorddeptcd.label;
- var selectedDeptCd = cmb_cpgorddeptcd.value;
- if( !isNull(selectedDeptCd) ){
- model.makeValue("/root/send/reqdata/deptnm", selectedDeptNm);
- model.makeValue("/root/send/reqdata/deptcd", selectedDeptCd);
- model.makeNode("/root/temp/rslt/rstdata");
- submit("TRMQP00601", false); //조회결과 : 동일한 색인이 존재하면 존재하는 "색인명", "색인번호", 존재하지 않으면 ""
- var selectIndxCd = model.getValue("/root/temp/rslt/rstdata/indxno");
- if( (!isNull(selectedDeptNm)) && isNull(selectIndxCd) ) {
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/indxnm", selectedDeptNm );
- model.makeValue("/root/send/reqdata/supindxno", "0" ); //상위색인
- model.makeValue("/root/send/reqdata/indxrefseq", "0" ); //조회순번
- model.makeValue("/root/send/reqdata/status", "i" ); //구분:등록
- model.makeValue("/root/send/reqdata/cpgflagcd", "" ); //구분:등록
- model.makeNode("/root/temp/getdata/savedfolder");
- //ivw_indxmngt.window.javascript.submit("TXMMP01501");
- }
- model.makeValue("/root/temp/getdata/cpgflagcd", cpgFlagCd);
- model.makeValue("/root/temp/getdata/cpgnm", cpgnm);
- model.makeValue("/root/temp/getdata/selectIndxNm", selectedDeptNm);
- model.makeValue("/root/temp/getdata/selectIndxCd", selectIndxCd);
- model.makeValue("/root/temp/getdata/cpgno", cpgno);
- model.makeValue("/root/temp/getdata/cpghistseq", cpghistseq);
- }else{
- model.makeValue("/root/temp/getdata/cpgflagcd", "ALL");
- }
-
- var mon = getCurrentMonitorNumber();
- var mainObj = getMainViewer();
- //mainObj.window.javascript.modal("SPMMP01200", mon, "0", "0", "SPMMP01200", "/root/temp/getdata", "/root/temp/reqdata");
- mainObj.window.javascript.open("SPMMP01200", mon, "0", "0", "SPMMP01200", "/root/temp/getdata", "/root/temp/reqdata");
- button16.selected = false;
- }
-
- /**
- * @group :
- * @ver : 2007.07
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 저장 시점에서 데이터가 올바르게 입력되었는지 체크한다.
- * @param :
- * @return : ipt_appdd
- * @---------------------------------------------------
- */
- function fSaveDataCheck( kind ){
- if( kind == "master" ){
- // 2008.06.18 pymi (수정) 'ipt_swimlineno' 필수입력제외
- if( cpgFlagCd == "01" ){
-
- if ( ! isRequiredControls("rdo_cpgflagcd", "ipt_cpgnm", "cmb_cpgorddeptcd", "rdo_ioflagcd", "ipt_fcstinhospdayno", "ipt_todd", "ipt_lastupdtdt", "ipt_cretdd") ) {
- return false;
- }
-
- if( isNull(model.getValue("/root/main/masterinfo/info/swimlineno")) ){
- model.setValue("/root/main/masterinfo/info/swimlineno", "0");
- }
-
- }else{
- if ( ! isRequiredControls("rdo_cpgflagcd", "ipt_cpgnm", "cmb_cpgorddeptcd", "rdo_ioflagcd", "cmb_cpgtypecd", "ipt_swimlineno", "ipt_todd", "ipt_lastupdtdt", "ipt_cretdd") ) {
- return false;
- }
- }
- }
- }
-
- /**
- * @group :
- * @ver : 2007.07
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 조회해 온 그리드의 CODE를 삭제한다.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDiagCodeDelete() {
- fRowDelete( grd_diag );
- //model.makeValue("/root/main/diaginfo/diaglist[" + grd_diag.row + "]/m", "d");
- }
-
- /**
- * @group :
- * @ver : 2007.07
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 조회해 온 그리드의 CODE를 삭제한다.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fOpCodeDelete() {
- fRowDelete( grd_op );
- //model.makeValue("/root/main/opinfo/oplist[" + grd_op.row + "]/m", "d");
- }
-
- /**
- * @group :
- * @ver : 2007.07
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 조회해 온 그리드의 CODE를 삭제한다.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCcCodeDelete() {
- fRowDelete( grd_cc );
- //model.makeValue("/root/main/ccinfo/cclist[" + grd_cc.row + "]/m", "d");
- }
-
- /**
- * @group :
- * @ver : 2007.12
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 조회해 온 그리드의 CODE를 삭제한다.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fExcCodeDelete() {
- fRowDelete( grd_exclusion );
- //model.makeValue("/root/main/exclusion/exclist[" + grd_exclusion.row + "]/m", "d");
- }
-
- /**
- * @group :
- * @ver : 2008.06.20
- * @by : 임우성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 조회해 온 그리드의 CODE를 삭제한다.(Drop)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDropCodeDelete() {
- fRowDelete( grd_drop );
- //model.makeValue("/root/main/exclusion/exclist[" + grd_exclusion.row + "]/m", "d");
- }
-
- /**
- * @group :
- * @ver : 2007.07
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드의 ROW 데이터 삭제
- * @param : grdName, grdPath
- * @return :
- * @---------------------------------------------------
- */
- function fRowDelete( grdName, grdPath ){
- if( grdPath == null ) {
- grdPath = grdName.nodeset;
- }
- if(grdName.row < 1){
- return;
- }
- /*
- var status = grdName.rowStatus(grdName.row);
- if(status == 1){
- grdName.deleteRow(grdName.row, true);
- }else{
- grdName.rowStatus(grdName.row)= 4;
- }
- */
- //2008.07.25 선택한 여려건 삭제 처리(JJE)
- var iSelectedRows = grdName.selectedRows;
- var iRow = 0;
- var status = 0;
- var iDetlinfoseq = "";
- for( var i=iSelectedRows-1; i>=0; i-- ){
- iRow = grdName.selectedRow(i);
-
- status = grdName.rowStatus(iRow);
- iDetlinfoseq = model.getValue( grdPath + "[" + iRow + "]/detlinfoseq" );
-
- if( iDetlinfoseq == "" ){
- //grdName.deleteRow(iRow);
- model.removenode(grdPath + "[" + iRow + "]");
- }else{
- if(status == 4 ){
- //grdName.rowStatus(iRow) = 0;
- model.setValue( grdPath + "[" + iRow + "]/m", "" );
- }else{
- //grdName.rowStatus(iRow) = 4;
- model.setValue( grdPath + "[" + iRow + "]/m", "d" );
- }
- }
- }
- grdName.refresh();
- fSetRowStatus(grdName, grdPath);
- }
-
- /**
- * @group :
- * @ver : 2007.07
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드의 Rowstatus 변경
- * @param : grdName
- * @return :
- * @---------------------------------------------------
- */
- function fSetRowStatus(grdName, grdPath){
- for( var i=1; i<grdName.rows; i++ ){
- var iStatus = model.getValue(grdPath + "[" + i + "]/m");
- if( iStatus == "i" ){
- grdName.rowstatus(i) = 1;
- }else if( iStatus == "u" ){
- grdName.rowstatus(i) = 2;
- }else if( iStatus == "d" ){
- grdName.rowstatus(i) = 4;
- }
- }
- grdName.rowHidden(0) = true;
- }
-
- /**
- * @group :
- * @ver : 2007.07
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드의 ROW 데이터 삭제
- * @param : grdName, grdPath
- * @return :
- * @---------------------------------------------------
- */
- function fResizeGrid( grdNM ){
- var grdCtrl = document.controls(grdNM);
-
- cap_diag.attribute("font-weight") = "";
- cap_op.attribute("font-weight") = "";
- cap_drop.attribute("font-weight") = "";
- cap_exclusion.attribute("font-weight") = "";
-
- if( grdNM == oldFlag ){
- //원상복귀
- grd_diag.visible = true;
- grd_op.visible = true;
- grd_drop.visible = true;
- grd_exclusion.visible = true;
-
- line10.visible = true;
- line12.visible = true;
- line19.visible = true;
-
- if(grdNM == "grd_diag"){
- grd_diag.attribute("top") = grd_diag_attribute_top; //107 - 81
- }else if(grdNM == "grd_op"){
- grd_op.attribute("top") = grd_op_attribute_top;
- }else if(grdNM == "grd_drop"){
- grd_drop.attribute("top") = grd_drop_attribute_top;
- }else if(grdNM == "grd_exclusion"){
- grd_exclusion.attribute("top") = grd_exclusion_attribute_top;
- }
- grdCtrl.attribute("height") = "80px";
- oldFlag = "-";
-
- }else {
- line10.visible = false;
- line12.visible = false;
- line19.visible = false;
-
- if( grdNM == "grd_diag" ){
- grd_diag.visible = true;
- grd_op.visible = false;
- grd_drop.visible = false;
- grd_exclusion.visible = false;
- grd_op.attribute("top") = grd_op_attribute_top;
- grd_drop.attribute("top") = grd_drop_attribute_top;
- grd_exclusion.attribute("top") = grd_exclusion_attribute_top;
- grd_op.attribute("height") = "80px";
- grd_drop.attribute("height") = "80px";
- grd_exclusion.attribute("height") = "80px";
- cap_diag.attribute("font-weight") = "bold";
- }else if( grdNM == "grd_op" ){
- grd_diag.visible = false;
- grd_op.visible = true;
- grd_drop.visible = false;
- grd_exclusion.visible = false;
- grd_diag.attribute("top") = grd_diag_attribute_top;
- grd_drop.attribute("top") = grd_drop_attribute_top;
- grd_exclusion.attribute("top") = grd_exclusion_attribute_top;
- grd_diag.attribute("height") = "80px";
- grd_drop.attribute("height") = "80px";
- grd_exclusion.attribute("height") = "80px";
- cap_op.attribute("font-weight") = "bold";
- }else if( grdNM == "grd_drop" ){
- grd_diag.visible = false;
- grd_op.visible = false;
- grd_drop.visible = true;
- grd_exclusion.visible = false;
- grd_diag.attribute("top") = grd_diag_attribute_top;
- grd_op.attribute("top") = grd_op_attribute_top;
- grd_exclusion.attribute("top") = grd_exclusion_attribute_top;
- grd_diag.attribute("height") = "80px";
- grd_op.attribute("height") = "80px";
- grd_exclusion.attribute("height") = "80px";
- cap_drop.attribute("font-weight") = "bold";
- }else if( grdNM == "grd_exclusion" ){
- grd_diag.visible = false;
- grd_op.visible = false;
- grd_drop.visible = false;
- grd_exclusion.visible = true;
- grd_diag.attribute("top") = grd_diag_attribute_top;
- grd_op.attribute("top") = grd_op_attribute_top;
- grd_drop.attribute("top") = grd_drop_attribute_top;
- grd_diag.attribute("height") = "80px";
- grd_op.attribute("height") = "80px";
- grd_drop.attribute("height") = "80px";
- cap_exclusion.attribute("font-weight") = "bold";
- }
- grdCtrl.attribute("top") = grd_diag_attribute_top;
- grdCtrl.attribute("height") = "338px";
-
- oldFlag = grdNM;
- }
- }
-
- /**
- * @group :
- * @ver : 2009.02. 26
- * @by : 김영학
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드의 넓이 확장
- * @param : grdNM
- * @return :
- * @---------------------------------------------------
- */
-
- function fCpgResizeGrid(grdNM) {
- var grdCtrl = document.controls(grdNM);
- caption7.attribute("font-weight") = "";
- caption8.attribute("font-weight") = "";
- caption10.attribute("font-weight") = "";
- caption11.attribute("font-weight") = "";
- caption7.attribute("background-color") = "#cce8ff";
- caption8.attribute("background-color") = "#cce8ff";
- caption10.attribute("background-color") = "#cce8ff";
- caption11.attribute("background-color") = "#cce8ff";
-
- if( grdNM == cpgOldFlag ){
- //원상복귀
- grd_listsrch.visible = true;
- grd_patchk.visible = true;
- grd_popup.visible = true;
- grd_limitime.visible = true;
-
- line16.visible = true;
- line17.visible = true;
- line20.visible = true;
-
- //if(grdNM == "grd_listsrch"){
- grd_listsrch.attribute("top") = "73px"
- grd_listsrch.attribute("height") = "98px";
- // }else if(grdNM == "grd_patchk"){
- grd_patchk.attribute("top") = "174px"
- grd_patchk.attribute("height") = "98px";
- // }else if(grdNM == "grd_popup"){
- grd_popup.attribute("top") = "275px"
- grd_popup.attribute("height") = "98px";
- // }else if(grdNM == "grd_limitime"){
- grd_limitime.attribute("top") = "376px"
- grd_limitime.attribute("height") = "98px";
- // }
-
- cpgOldFlag = "-";
- } else {
- line16.visible = false;
- line17.visible = false;
- line20.visible = false;
- if( grdNM == "grd_listsrch" ){
- grd_listsrch.visible = true;
- grd_patchk.visible = false;
- grd_popup.visible = false;
- grd_limitime.visible = false;
-
- caption7.attribute("background-color") = "#99ccff";
- caption7.attribute("font-weight") = "bold";
- } else if( grdNM == "grd_patchk" ){
- grd_listsrch.visible = false;
- grd_patchk.visible = true;
- grd_popup.visible = false;
- grd_limitime.visible = false;
- caption8.attribute("background-color") = "#99ccff";
- caption8.attribute("font-weight") = "bold";
- } else if( grdNM == "grd_popup" ){
- grd_listsrch.visible = false;
- grd_patchk.visible = false;
- grd_popup.visible = true;
- grd_limitime.visible = false;
- caption10.attribute("background-color") = "#99ccff";
- caption10.attribute("font-weight") = "bold";
- } else if( grdNM == "grd_limitime" ){
- grd_listsrch.visible = false;
- grd_patchk.visible = false;
- grd_popup.visible = false;
- grd_limitime.visible = true;
- caption11.attribute("background-color") = "#99ccff";
- caption11.attribute("font-weight") = "bold";
- }
- grdCtrl.attribute("top") = "73px";
- grdCtrl.attribute("height") = "401px";
- cpgOldFlag = grdNM;
- }
- }
- /**
- * @group :
- * @ver : 2007.07
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : Outline View 화면의 사이즈를 조정한다.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSizeControl(){
- var width = ivw_outline.currentStyle.width;
-
- if(width == "838" || width == "838px" ){
- ivw_outline.attribute("left") = "0px";
- ivw_outline.attribute("width") = "1192px";
- ivw_outline.attribute("height") = "655px";
- ivw_detail.attribute("left") = "0px";
- ivw_detail.attribute("width") = "1192px";
- ivw_detail.attribute("height") = "655px";
-
- line9.attribute("x2") = "350px"; //0113 355
- cap_attfile.attribute("visibility") = "hidden";
- cap_diag.attribute("visibility") = "hidden";
- grd_diag.attribute("visibility") = "hidden";
- cap_ioflag.attribute("visibility") = "hidden";
- rdo_ioflagcd.attribute("visibility") = "hidden";
- //btn_valumngt.attribute("visibility") = "hidden";
- line20.attribute("visibility") = "hidden";
- cap_outlineinfo.attribute("left") = "5px";
- line8.attribute("x1") = "0px";
- btn_sizecntl.attribute("class") = "icon_right";
- btn_initialize.disabled = true;
- grp_inputcpname.attribute("top") = "19px";
- //뷰어 영역
- ivw_outline.window.javascript.fAdjustLine("allEx", "392");
- ivw_outline.grp_swimline.attribute("width") = "1189px";
- ivw_outline.grp_swimline.refresh();
- ivw_outline.grp_button.attribute("left") = "917px";
- //뷰어-OCS
- var vscrollPos = ivw_outline.grp_swimline.vscroll.attribute("pos");
- var hscrollPos = ivw_outline.grp_swimline.hscroll.attribute("pos");
- ivw_outline.ivw_detail.attribute("top") = vscrollPos;
- ivw_outline.ivw_detail.attribute("left") = hscrollPos;
- //ivw_outline.ivw_detail.attribute("left") = "0px";
- ivw_outline.ivw_detail.attribute("width") = "1192px";
- ivw_outline.ivw_detail.attribute("height") = "655px";
-
- if( ivw_outline.ivw_detail.ivw_prcp.visible == true ) ivw_outline.ivw_detail.grd_prcplist.attribute("width") = "805px";
- else ivw_outline.ivw_detail.grd_prcplist.attribute("width") = "1190px";
- ivw_outline.ivw_detail.btn_excel.attribute("left") = "1117px";
- ivw_outline.ivw_detail.btn_sizecntl.attribute("left") = "1162px";
- ivw_outline.ivw_detail.btn_sizecntl.visible = true;
- } else {
- ivw_outline.attribute("left") = "355px";
- ivw_outline.attribute("width") = "838px";
- ivw_outline.attribute("height") = "655px";
- ivw_detail.attribute("left") = "355px";
- ivw_detail.attribute("width") = "838px";
- ivw_detail.attribute("height") = "655px";
-
- line9.attribute("x2") = "350px";
- cap_attfile.attribute("visibility") = "visible";
- cap_diag.attribute("visibility") = "visible";
- grd_diag.attribute("visibility") = "visible";
- cap_ioflag.attribute("visibility") = "visible";
- rdo_ioflagcd.attribute("visibility") = "visible";
- //btn_valumngt.attribute("visibility") = "visible";
- line20.attribute("visibility") = "visible";
- cap_outlineinfo.attribute("left") = "360px";
- line8.attribute("x1") = "355px";
- btn_sizecntl.attribute("class") = "icon_left";
- btn_initialize.disabled = false;
- grp_inputcpname.attribute("top") = "45px";
- //뷰어 영역
- ivw_outline.grp_swimline.attribute("width") = "835px";
- ivw_outline.grp_button.attribute("left") = "557px";
- ivw_outline.window.javascript.fAdjustLine("allRe", "392");
- //뷰어-OCS
- var vscrollPos = ivw_outline.grp_swimline.vscroll.attribute("pos");
- var hscrollPos = ivw_outline.grp_swimline.hscroll.attribute("pos");
- ivw_outline.ivw_detail.attribute("top") = vscrollPos;
- ivw_outline.ivw_detail.attribute("left") = hscrollPos;
- //ivw_outline.ivw_detail.attribute("left") = "0px";
- ivw_outline.ivw_detail.attribute("width") = "835px";
- ivw_outline.ivw_detail.attribute("height") = "653px";
- if( ivw_outline.ivw_detail.ivw_prcp.visible == true )ivw_outline.ivw_detail.grd_prcplist.attribute("width") = "452px"; //ivw_outline.ivw_detail.grd_prcplist.attribute("width") = "580px";
- else ivw_outline.ivw_detail.grd_prcplist.attribute("width") = "837px"; //ivw_outline.ivw_detail.grd_prcplist.attribute("width") = "965px";
- ivw_outline.ivw_detail.btn_excel.attribute("left") = "790px";
- //ivw_outline.ivw_detail.btn_sizecntl.attribute("left") = "807px";
- ivw_outline.ivw_detail.btn_sizecntl.attribute("class") = "icon_left";
- ivw_outline.ivw_detail.btn_formsrch.visible = false;
- ivw_outline.ivw_detail.btn_consultsrch.visible = false;
- ivw_outline.ivw_detail.btn_sizecntl.visible = false;
- }
-
- fRefreshOutline();
- }
-
- /**
- * @group :
- * @ver : 2009.02
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : Outline View의 컨트롤 재생성한다. (refresh)
- * @param :copyYN (mainViewer의 steplist를 outlineViewer의 steplist로 copy할 지 여부)
- * @return :
- * @---------------------------------------------------
- */
- function fRefreshOutline(copyYN){
- if( isNull(copyYN) ) copyYN = "N";
-
- if(copyYN == "Y"){
- copyNodesetType("/root/main/steplist", "/root/main/steplist", "replace", ivw_outline.model, model);
- }
-
- //2008.07 (JJE) 사이즈 변경 시, 이전에 선택되었던 컨트롤을 알아두었다가, 컨트롤 remove-create 후, 다시 선택 및 색상 변경 처리 => 오류 수정
- var currentStep = null;
- if( ivw_outline.window.javascript.currentStepCntl != null ){
- currentStep = ivw_outline.window.javascript.currentStepCntl.attribute("id");
- if(currentStep.substr(0, 15) == "xforms:textarea"){
- currentStep = ivw_outline.window.javascript.currentStepCntl.parent.attribute("id");
- }
- }
- ivw_outline.window.javascript.fCreateControl();
-
- if( currentStep != null ){
- //크게보기/작게보기 모드 변경시, 선택돼있던 스텝의 포커스를 잃는 문제점을 처리한다
- ivw_outline.window.javascript.fChildrenCtrlToSelCtrl(currentStep);
- ivw_outline.window.javascript.currentStepCntl = ivw_outline.document.controls(currentStep);
- ivw_outline.window.javascript.fChangeSelectCntl("#A683B1", ivw_outline.window.javascript.currentStepCntl);
- }
- //alert( "currentStepCntl = " + ivw_outline.window.javascript.currentStepCntl.attribute("id") );
- }
-
- /**
- * @group :
- * @ver : 2007.07
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : FPT 서버에 저장한 파일을 다운로드 한다.
- * @param : idx
- * @return :
- * @---------------------------------------------------
- */
- function fDownLoadFile( idx ){
- model.makeNode("/root/temp/attachfile/filedata");
- var filepath = model.getValue("/root/main/attfileinfo/attach["+idx+"]/file");
- var filenm = model.getValue("/root/main/attfileinfo/attach["+idx+"]/attfilenm");
- var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
- if (localfile != "") {
- model.download(getActionURL("TRMQP00605")+"&filepath="+filepath,localfile);
- var rtn = messageBox("파일을", "Q004");
- if( rtn == 6 ) {
- window.exec(localfile);
- }
- }
- }
-
- /**
- * @group :
- * @ver : 2007.07
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 아웃라인뷰어에 스윔라인 구조를 생성한다.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCreateOutLineView(){
- var lineNo = model.getValue("/root/main/masterinfo/info/swimlineno");
- //아웃라인을 셋팅한다.
- if(ivw_outline.model.getValue("/root/main/outlineinfo/info/swimlineno") != "" || ivw_outline.model.getValue("/root/main/outlineinfo/info/swimlineno") != 0){
- ivw_outline.window.javascript.fOutlineCntlInit();
- }
- ivw_outline.model.setValue("/root/main/outlineinfo/info/swimlineno", lineNo);
- ivw_outline.model.setValue("/root/main/outlineinfo/info/cpgorddeptcd", model.getValue("/root/main/masterinfo/info/cpgorddeptcd"));
- /*if(model.getValue("/root/main/masterinfo/info/cpgflagcd") == "01"){
- ivw_outline.model.setValue("/root/main/outlineinfo/info/cpgflagcd", "W");
- }else{
- ivw_outline.model.setValue("/root/main/outlineinfo/info/cpgflagcd", "G");
- }*/
- ivw_outline.model.setValue("/root/main/outlineinfo/info/cpgno", model.getValue("/root/main/masterinfo/info/cpgno"));
- ivw_outline.model.setValue("/root/main/outlineinfo/info/cpghistseq", model.getValue("/root/main/masterinfo/info/cpghistseq"));
- ivw_outline.model.setValue("/root/main/outlineinfo/info/cpgnm", model.getValue("/root/main/masterinfo/info/cpgnm"));
- ivw_outline.window.javascript.fInitialize();
-
- /*
- if(아웃라인에서 1건 이상이라도 저장된 데이터가 있다면) {
- alert("Step 정보가 저장되었습니다. 모든 Step을 삭제하시겠습니까?");
- }
- */
- }
-
- /**
- * @group :
- * @ver : 2008.06
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 동일한 CP/CPG명이 있는지 check (사용 안함)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCheckSameCPGYN(){
- model.removeNodeset("/root/send/masterinfo");
- model.makeNode("/root/send/masterinfo");
- model.copyNode("/root/send/masterinfo", "/root/main/masterinfo/info");
- model.setValue("/root/send/masterinfo/cpgnm" , model.getValue("/root/main/masterinfo/info/orgcpgnm"));
- model.makeValue("/root/send/masterinfo/cpgorddeptnm" , cmb_cpgorddeptcd.label);
-
- if( ivw_outline.instance1.selectSingleNode("/root/main/steplist/info[times='0']/times") != null ){
- model.makeValue("/root/send/masterinfo/times", "0");
- }else if( ivw_outline.instance1.selectSingleNode("/root/main/steplist/info[times='1']/times") != null ){
- model.makeValue("/root/send/masterinfo/times", "1");
- }
-
- if( !submit("TRMQP00603", false) ){
- if( instance1.selectSingleNode("/root/temp/rslt/rstdata/cpgno") != null ){
- var msg = messageBox("이미 " + deptNM + "에 '" + cpgFlagNM + "'가(이) 존재합니다. \n 덮어쓰기", "S003", "이름을 변경하려면");
- /*
- if (msg == "6"){
-
- }else{
-
- }*/
- return;
- }
-
- }else{
- return false;
- }
-
- //★ 조회 결과가 있을 경우, 질문 ( 덮어쓰기? or 이름바꾸기 ) 처리 예정
-
-
- }
-
- /**
- * @group :
- * @ver : 2007.07
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 마스터 및 디테일, 인덱스 정보를 저장한다.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSaveCPGInfo(){
- //if( fSaveDataCheck( "master" ) == true ) {
- model.removeNodeset("/root/send");
-
- model.removeNodeset("/root/temp/masterinfo");
- model.makeNode("/root/temp/masterinfo");
- model.resetInstanceNode("/root/temp/tempnode");
- model.removeNodeset("/root/temp/rslt/rstdata");
-
- if( model.getValue("/root/main/masterinfo/info/cpgno") == "" ) {
- model.setValue("/root/temp/mstatus", "i");
- }
- /*
- //마스터를 update 치면, 이력관리 시 문제가 있으므로, 이전이력은 최종이력여부=N으로 두고, insert 한다
- else if ( model.getValue("/root/temp/mstatus") != "i" && model.getValue("/root/main/masterinfo/info/cpgno") != "" && !fCompareNodes("/root/main/masterinfo/info", "/root/temp/copynodeset/masterinfo/info" ) ){
- model.setValue("/root/temp/mstatus", "u");
- }*/
-
- var saveStatus = model.getValue("/root/temp/mstatus");
- var selectedDeptNm = cmb_cpgorddeptcd.label;
- var selectedDeptCd = cmb_cpgorddeptcd.value;
-
- if( saveStatus == "i"){
- if( model.getValue("/root/temp/saveflag") == "N" ){ //새이름으로
- model.setValue("/root/main/masterinfo/info/cpghistseq", ""); //2007.10.16 새이름 저장 : 임시저장으로 고침
- model.setValue("/root/main/masterinfo/info/appdd", ""); //적용일
- model.setValue("/root/main/masterinfo/info/todd", "99991231"); //종료일
- model.setValue("/root/main/masterinfo/info/cretdd", getCurrentDate()); //생성일
-
- //@@@CPG인 경우 새이름으로 저장 시 속성도 copy as...
- var scrnNodeList = instance1.selectNodes("/root/main/scrninfo/mntrlist");
- var mntrNodeList = instance1.selectNodes("/root/main/mntrinfo/mntrlist");
- var inqrNodeList = instance1.selectNodes("/root/main/inqrinfo/inqrheader");
- var limtNodeList = instance1.selectNodes("/root/main/limtminfo/limheaderinfo");
- if(scrnNodeList.length > 0) model.makeValue("/root/send/mntrlist/scrnstatus", "I");
- if(mntrNodeList.length > 0) model.makeValue("/root/send/mntrinfo/mntrstatus", "I");
- if(inqrNodeList.length > 0) model.makeValue("/root/send/inqrinfo/inqrstatus", "I");
- if(limtNodeList.length > 0) model.makeValue("/root/send/limtinfo/limtstatus", "I");
- }
-
- //2008.07.17 pymi
- if(ipt_cpaprvno.value == "승인번호") ipt_cpaprvno.value = "";
- /*
- // oldcpgno, oldcpghistseq가 있으므로 필요가 없을 듯
- if( model.getValue("/root/temp/saveflag") == "S" ){ //등록
- if( instance1.selectSingleNode("/root/main/delmasterinfo/delcpgno") != null ){
- model.makeNode("/root/send/delmasterinfo");
- model.copyNode("/root/send/delmasterinfo", "/root/main/delmasterinfo");
- //바로 main 초기화
- model.removeNodeset("/root/main/delmasterinfo");
- model.makeNode("/root/main/delmasterinfo");
- }
- }
- */
- }
-
- model.makeNode("/root/send/masterinfo"); // : MMPGCINF
- model.makeNode("/root/send/termlist"); // : MMPDDETL
- model.makeNode("/root/send/reqrlist"); // : MMPDDETL
- model.makeNode("/root/send/exclusionlist"); // : MMPDDETL
- model.makeNode("/root/send/deptlist"); // : MMPDDETL (multi 진료과인 경우만 들어감)
- //2008.06.20 LWS
- model.makeNode("/root/send/droplist"); // : MMPDDETL
- model.makeNode("/root/send/deptlist"); // : MMPDDETL
- model.copyNode("/root/send/masterinfo", "/root/main/masterinfo/info");
- model.makeNode("/root/temp/masterinfo/info/cpgno"); //저장 후 새로딴 키값을 얻어올 인스턴스
- model.makeNode("/root/temp/masterinfo/info/cpghistseq"); //저장 후 새로딴 키값을 얻어올 인스턴스
-
- //model.makeValue("/root/send/masterinfo/todd", model.getValue("/root/main/masterinfo/info/todd")); //이전cp이력순번 2009.04.13 막음
- model.makeValue("/root/send/masterinfo/status", model.getValue("/root/temp/mstatus"));
- model.makeValue("/root/send/masterinfo/oldcpgno", model.getValue("/root/temp/oldcpgno")); //이전cp번호
- model.makeValue("/root/send/masterinfo/oldcpghistseq", model.getValue("/root/temp/oldcpghistseq")); //이전cp이력순번
- model.makeValue("/root/send/masterinfo/oldtmpyn", model.getValue("/root/temp/oldtmpyn")); //이전cp의 임시여부
- model.makeValue("/root/send/masterinfo/saveflag", model.getValue("/root/temp/saveflag")); //이전cp이력순번
- model.makeValue("/root/send/masterinfo/ocssaveyn", OcsSaveYN); //이전cp이력순번
- //원 처방명을 가져간다
- if( model.getValue("/root/main/masterinfo/info/orgcpgnm") == "" || model.getValue("/root/temp/saveflag") == "N" ){ //orgcpgnm 인스턴스가 비어있는 경우 : 최초 저장 (현재 보이는 CP명을 copy)
- //orgcpgnm 인스턴스가 비어있는 경우 : 최초 저장 (현재 보이는 CP명을 copy)
- model.setValue( "/root/send/masterinfo/cpgnm", model.getValue("/root/main/masterinfo/info/cpgnm") );
- }else{ //orgcpgnm 인스턴스에 값이 있는 경우 : 원처방명이 있으므로, orgcpgnm 값을 copy
- model.setValue( "/root/send/masterinfo/cpgnm" , model.getValue("/root/main/masterinfo/info/orgcpgnm") );
- }
-
- /**** 동일한 CP/CPG명이 있는지 check를 위한 instasnce 구성 -> 덮어쓰기, 새이름 새로 저장 (시작) ****/
- model.makeNode("/root/send/checkcpgnm");
- model.makeNode("/root/send/checkcpgnm/orgcpgno");
- if( model.getValue("/root/temp/saveflag") != "N" ) //새이름저장은 최초저장과 유사하므로, cpgno를 동일CP검색 조건에 걸면 안됨 || (model.getValue("/root/temp/usgecd") != "2" && model.getValue("/root/temp/usgecd") != "3")
- model.setValue("/root/send/checkcpgnm/orgcpgno" , model.getValue("/root/temp/oldcpgno"));
-
- if( model.getValue("/root/main/masterinfo/info/orgcpgnm") != "" ){
- if( model.getValue("/root/temp/saveflag") != "N" )
- model.makeValue("/root/send/checkcpgnm/chkcpgnm" , model.getValue("/root/main/masterinfo/info/orgcpgnm"));
- else if( model.getValue("/root/temp/saveflag") == "N" )
- model.makeValue("/root/send/checkcpgnm/chkcpgnm" , model.getValue("/root/main/masterinfo/info/cpgnm"));
- }else
- model.makeValue("/root/send/checkcpgnm/chkcpgnm" , model.getValue("/root/main/masterinfo/info/cpgnm")); //신규 저장 시, 저장하려는 CP명을 가져간다
- /* //2008.06.30 (잠시 막음 처리) 2차 개발 시, 아래대로 처리할 예정
- //비교조건 : 어떤 기준으로 check 할 지 구분 (2008.06.30 JJE)
- if( ( model.getValue("/root/temp/saveflag") != "N" && isNull(model.getValue("/root/temp/oldcpgno")) )
- || (model.getValue("/root/temp/saveflag") == "N" && model.getValue("/root/temp/deptchngyn") == "Y") ){
- model.makeValue("/root/send/checkcpgnm/condflagcd" , "D"); //[진료과] : 최초저장 및 등록, 타진료과로 새이름저장시,
- model.makeValue("/root/send/checkcpgnm/orgcpgorddeptcd" , model.getValue("/root/main/masterinfo/info/cpgorddeptcd"));
- }else{
- model.makeValue("/root/send/checkcpgnm/condflagcd" , "I"); //[상위폴더] : 기존CP저장 및 등록, 동일진료과 새이름저장, tree에서 이동 시
- model.makeValue("/root/send/checkcpgnm/supindxno" , model.getValue("/root/temp/getdata/supindxno"));
- }
- */
- //비교조건 : 어떤 기준으로 check 할 지 구분 (2008.06.30 JJE)
- model.makeValue("/root/send/checkcpgnm/condflagcd" , "D"); //[진료과] : 최초저장 및 등록, 타진료과로 새이름저장시,
- model.makeValue("/root/send/checkcpgnm/orgcpgorddeptcd" , model.getValue("/root/main/masterinfo/info/cpgorddeptcd"));
-
- //day (회차)
- if( ivw_outline.instance1.selectSingleNode("/root/main/steplist/info[times='0']/times") != null ){
- model.makeValue("/root/send/checkcpgnm/orgtimes", "0");
- }else if( ivw_outline.instance1.selectSingleNode("/root/main/steplist/info[times='1']/times") != null ){
- model.makeValue("/root/send/checkcpgnm/orgtimes", "1");
- }else{
- model.makeValue("/root/send/checkcpgnm/orgtimes", "");
- }
-
- //덮어쓰기(예:yes) 하는 경우, 다시 체크 안함
- if( model.getValue("/root/temp/usgecd") == "4" ){
- model.makeValue("/root/send/checkcpgnm/checkyn", "N");
- }else{
- model.makeValue("/root/send/checkcpgnm/checkyn", "Y");
- }
- /**** 동일한 CP/CPG명이 있는지 check를 위한 instasnce 구성 -> 덮어쓰기, 새이름 새로 저장 (끝)****/
-
- //용어 데이터를 구성한다.
- var diagData = grd_diag.getUpdateData();
- var opData = grd_op.getUpdateData();
- var ccData = grd_cc.getUpdateData();
- var header = diagData.split("▩")[0] + "▩";
- opData = opData.setReplaceWord( header, "" );
- ccData = ccData.setReplaceWord( header, "" );
- model.setValue("/root/send/termlist", diagData+opData+ccData ); // : m▦rownum▦termcd▦termhngnm▦termengnm▦termflag▩
-
- //exclusion 사유 리스트를 구성한다.
- model.setValue("/root/send/exclusionlist", grd_exclusion.getUpdateData());
-
- //drop 사유 리스트를 구성한다. 2008.06.20 LWS
- model.setValue("/root/send/droplist", grd_drop.getUpdateData());
-
- //요청자 리스트를 구성한다.
- var nodelist = instance1.selectNodes( "/root/main/reqrlist/list" );
- if(nodelist.length > 0){
- var csvForm = getNodeListCSV(nodelist);
- model.setValue("/root/send/reqrlist", csvForm); // : m▦userid▦usernm▩
- }
-
- //요청번호:1580 병원 CP로 설정한 경우, 선택한 진료과를 리스트로 구성한다 (2009.06 JJE)
- //var nodelist = instance1.selectNodes( "/root/main/orddeptlist/dept[checkyn='Y']" );
- if( !isNull(model.getValue("/root/temp/multideptcdlist")) ){
- var dept_header = "checkyn▦deptcd▦depthngnm";
- var dept_data = "";
- var deptcd_tmp = model.getValue("/root/temp/multideptcdlist").split(",");
- var deptnm_tmp = model.getValue("/root/temp/multideptnmlist").split(",");
- for(var i=0; i < deptcd_tmp.length; i++){
- dept_data = dept_data + "▩" + "Y" + "▦" + deptcd_tmp[i] + "▦" + "deptnm_tmp[i]";
- }
- model.setValue("/root/send/deptlist", dept_header + dept_data);
- }
-
- //색인 노드셋을 리퀘스트데이터에 함께 보낸다.
- model.makeNode("/root/send/indxlist");
- var header = "m▦indxno▦indxnm▦supindxno▦indxrefseq▦depth▦indxseq▦cpgno▦cpghistseq▦image▦cpgflagcd";
- if(saveIndxlist == ""){
- var ver = "";
- var indxno = "";
- var supindxno = model.getValue("/root/temp/getdata/supindxno");
- var indxrefseq = "";
- var indxseq = "";
- var no = "";
- var nm = model.getValue("/root/main/masterinfo/info/cpgnm");
- //var flag = model.getValue("/root/main/masterinfo/info/cpgflagcd"); //cpg masterinfo 에 동일한 인스턴스명 존재
- if(model.getValue("/root/temp/mstatus") == "i"){
- model.makeValue("/root/send/reqdata/deptcd", selectedDeptCd);
- model.makeValue("/root/send/reqdata/deptnm", selectedDeptNm);
- if( isNull(selectedDeptCd) ){
- var msg = messageBox("진료과를 ", "C002");
- return false;
- }
- var selectIndxCd = "";
-
- if( !isNull(savesupindxno) && !isNull(savesuprefseq) && savedeptcd == selectedDeptCd ){
- selectIndxCd = savesupindxno;
- supindxno = savesupindxno;
- indxrefseq = parseInt(savesuprefseq);
- }else{
- model.makeNode("/root/temp/rslt/rstdata");
- submit("TRMQP00601", false); //조회결과 : 동일한 색인이 존재하면 존재하는 "색인명", "색인번호", 존재하지 않으면 ""
- selectIndxCd = model.getValue("/root/temp/rslt/rstdata/indxno");
- }
- model.makeValue("/root/temp/getdata/supindxno", selectIndxCd);
-
- if( isNull(supindxno) ) supindxno = model.getValue("/root/temp/rslt/rstdata/indxno");
-
- if( (!isNull(selectedDeptCd)) && isNull(selectIndxCd) ) {
- model.makeValue("/root/send/reqdata/indxnm", selectedDeptCd );
- model.makeValue("/root/send/reqdata/supindxno", "0" ); //상위색인
- model.makeValue("/root/send/reqdata/indxrefseq", "0" ); //조회순번
- model.makeValue("/root/send/reqdata/status", "i" ); //구분:등록
- model.makeValue("/root/send/reqdata/cpgflagcd", "" ); //구분:등록
- model.makeNode("/root/send/getdata/savedfolder");
-
- supindxno = selectIndxCd;
-
- if( submit("TXMMP01501", false) ){
- supindxno = model.getValue("/root/temp/savedfolder/item/indxno");
- model.makeValue("/root/temp/getdata/supindxno", supindxno);
- }
- }
- saveIndxlist = "▩i▦"+indxno+"▦"+nm+"▦"+supindxno+"▦"+indxrefseq+"▦▦"+indxseq+"▦"+no+"▦"+ver+"▦▦";
- }
- //else if(model.getValue("/root/temp/mstatus") == "u"){
- // saveIndxlist = "▩u▦"+indxno+"▦"+nm+"▦"+supindxno+"▦"+indxrefseq+"▦▦"+indxseq+"▦"+no+"▦"+ver+"▦▦"+flag;
- //}
- else {
- saveIndxlist = "";
- }
- }
- model.setValue("/root/send/indxlist", header + saveIndxlist + "▩");
-
- //스텝저장 _2007.10.16 추가(트랜잭션 합치기, but 첨부파일은 send에 copy할 수 없기때문에, 아직 따로 저장한다.)
- var cnt_refreshYN = fSaveWithStepInfo();
- if( cnt_refreshYN == false ) return false;
-
- var cnt = cnt_refreshYN.split("|")[0];
- var refreshYN = cnt_refreshYN.split("|")[1];
-
- grp_biz.disabled = false;
- grp_btn.disabled = false;
- ivw_outline.disabled = false;
-
- //첨부파일 : transaction 통일 불가능 ()
- //openLoadingBar("저장중입니다."); //로딩 메세지 open
- //CP/CPG 마스터 & 색인 & 진단, 수술, 주호소코드 정보를 저장한다.
-
- if(submit("TXMQP00601", false)){
- ivw_outline.window.javascript.fChangeStatus(); //저장flag 를 ''로 변환한다.
-
- if(model.getValue("/root/main/masterinfo/info/todd") <= getCurrentDate()){ //삭제 시, refresh 하지 않고, CP명만 [종료]로 바꾼 후 return
- //마스터 정보는 새로 따진 cpgno, cpghistseq만 원래 인스턴스에 copy (나머지 값은 저장 직전과 값 동일..)
- model.setValue("/root/main/masterinfo/info/cpgno", model.getValue("/root/temp/masterinfo/info/cpgno"));
- model.setValue("/root/main/masterinfo/info/cpghistseq", model.getValue("/root/temp/masterinfo/info/cpghistseq"));
- fCopyOrgCpgNM();
-
- btn_newver.disabled = true;
- btn_newnm.disabled = true;
- btn_allInfoSave.disabled = true;
-
- return;
- }
-
- if(refreshYN == "Y"){
- var agr1 = cnt; //그려야 할 컨트롤 갯수
- var agr2 = (parseInt(model.getValue("/root/main/masterinfo/info/swimlineno")) * 3) + 1; //아웃라인을 구성하는 라인 컨트롤 갯수
- ivw_outline.window.javascript.initGlobalVariant(agr1, agr2);
-
- ivw_outline.window.javascript.fCreateControl();
-
- model.resetInstanceNode("/root/main/steplist");
- }
-
- if( instance1.selectSingleNode("/root/temp/masterinfo/sameinfo/cpgno") != null ){
- grp_biz.disabled = true;
- grp_btn.disabled = true;
- ivw_outline.disabled = true;
-
- model.setValue("/root/main/masterinfo/info/cpgno" , model.getValue("/root/temp/oldcpgno"));
- model.setValue("/root/main/masterinfo/info/cpghistseq " , model.getValue("/root/temp/oldcpghistseq"));
- model.setValue("/root/main/masterinfo/info/tmpyn " , model.getValue("/root/temp/oldtmpyn"));
- var cpgNM = model.getValue("/root/main/masterinfo/info/cpgnm");
- //var msg = messageBox("이미 " + selectedDeptNm + "에 '" + cpgNM + "'가(이) 존재합니다. \n덮어쓰기로", "S002");
- var msg = messageBox("이미 " + selectedDeptNm + "에 '" + cpgNM + "'가(이) 존재합니다. \n덮어쓰기", "S003", "이름을 변경");
-
- if (msg == "6"){
- //덮어쓰기
- model.setValue("/root/main/masterinfo/info/cpgno" , model.getValue("/root/temp/masterinfo/sameinfo/cpgno"));
- model.setValue("/root/main/masterinfo/info/cpghistseq " , model.getValue("/root/temp/masterinfo/sameinfo/cpghistseq"));
- model.setValue("/root/main/masterinfo/info/tmpyn " , model.getValue("/root/temp/masterinfo/sameinfo/tmpyn"));
- model.setValue("/root/temp/usgecd", "4"); //다음 저장 시, 동일 CP 여부 체크 안함
- model.removeNodeset("/root/temp/masterinfo/sameinfo");
-
- btn_newver.dispatch("DOMActivate");
- fCnclInptNm();
- return false;
-
- }else if (msg == "7"){
- //이름변경
- //btn_newnm.dispatch("DOMActivate");
- //model.setValue("/root/main/masterinfo/info/cpgnm", model.getValue("/root/main/masterinfo/info/orgcpgnm"));
- //ipt_newcpgnm.refresh();
- cap_iptnewnm.attribute("text") = "변경할 이름을 입력하십시오.";
- cap_newcpgnm.attribute("text") = cpgFlagNM + "명";
-
- if( model.getValue("/root/main/masterinfo/info/orgcpgnm") == "" ){
- //model.setValue( "/root/send/masterinfo/cpgnm", model.getValue("/root/main/masterinfo/info/cpgnm") );
- //model.setValue( "/root/main/masterinfo/info/cpgnm", model.getValue("/root/main/masterinfo/info/orgcpgnm") );
- //model.setValue( "/root/main/masterinfo/info/orgcpgnm", "" );
- }else{
- model.setValue( "/root/main/masterinfo/info/cpgnm", model.getValue("/root/main/masterinfo/info/orgcpgnm") );
- //model.setValue( "/root/main/masterinfo/info/orgcpgnm", "" );
- ipt_newcpgnm.refresh();
- }
- grp_inputcpname.attribute("height") = 80; //grp_inputcpname.visible = true;
- model.setFocus("ipt_newcpgnm");
- if( model.getValue("/root/temp/usgecd") != "1" ){
- if(model.getValue("/root/temp/saveflag") == "T" || model.getValue("/root/temp/saveflag") == "N" )
- model.setValue("/root/temp/usgecd", "2"); //단순 이름변경 용도
- else if(model.getValue("/root/temp/saveflag") == "S")
- model.setValue("/root/temp/usgecd", "3"); //단순 이름변경 용도
- }
- model.removeNodeset("/root/temp/masterinfo/sameinfo");
-
- return false;
- }else{
- //취소 누르면 화면 전체가 비활성화->수정가능토록함(2009.03.02 추가)
- grp_inputcpname.attribute("height") = 0; //grp_inputcpname.visible = false;
- grp_biz.disabled = false;
- grp_btn.disabled = false;
- ivw_outline.disabled = false;
-
- return false;
- }
- }
-
- model.removeNodeset("/root/temp/masterinfo/sameinfo");
-
- if( model.getValue("/root/temp/mstatus") == "i" ){
- //마스터 정보는 새로 따진 cpgno, cpghistseq만 원래 인스턴스에 copy (나머지 값은 저장 직전과 값 동일..)
- model.setValue("/root/main/masterinfo/info/cpgno", model.getValue("/root/temp/masterinfo/info/cpgno"));
- model.setValue("/root/main/masterinfo/info/cpghistseq", model.getValue("/root/temp/masterinfo/info/cpghistseq"));
-
- fCopyOrgCpgNM();
-
- ivw_outline.model.setValue("/root/main/outlineinfo/info/cpgno", model.getValue("/root/temp/masterinfo/info/cpgno"));
- ivw_outline.model.setValue("/root/main/outlineinfo/info/cpghistseq", model.getValue("/root/temp/masterinfo/info/cpghistseq"));
- ivw_outline.model.setValue("/root/main/outlineinfo/info/cpgnm", model.getValue("/root/main/masterinfo/info/cpgnm"));
- ivw_outline.model.setValue("/root/main/outlineinfo/info/cpgorddeptcd", model.getValue("/root/main/masterinfo/info/cpgorddeptcd"));
- if(model.getValue("/root/main/masterinfo/info/cpgflagcd") == "01") ivw_outline.model.setValue("/root/main/outlineinfo/info/cpgflagcd", "W");
- else ivw_outline.model.setValue("/root/main/outlineinfo/info/cpgflagcd", "G");
-
- //원 진료과 다시 초기화 (새이름 저장 시, 동일CP 존재유무 체크하기 위함)
- model.setValue("/root/temp/oldcpgorddeptcd", model.getValue("/root/main/masterinfo/info/cpgorddeptcd")); //저장된 진료과로 다시 셋팅
- model.setValue("/root/temp/deptchngyn" , "N");
- }
-
- model.copyNode("/root/temp/copynodeset/masterinfo/info", "/root/main/masterinfo/info");
- model.setValue("/root/temp/mstatus", "");
- //model.removeNodeset("/root/send/delmasterinfo");
- //model.removeNodeset("/root/main/indexinfo");
- saveIndxHeader = "";
- saveIndxlist = "";
- changedYN = "Y";
- OcsSaveYN = "N";
-
- //용어 테이블 초기화
- grd_diag.clearStatus();
- grd_op.clearStatus();
- grd_cc.clearStatus();
- grd_exclusion.clearStatus();
- grd_drop.clearStatus();
- model.removeNodeset("/root/main/diaginfo/diaglist[m = 'd']");
- model.removeNodeset("/root/main/opinfo/oplist[m = 'd']");
- model.removeNodeset("/root/main/ccinfo/cclist[m = 'd']");
-
- //요청자 콤보박스 초기화
- var ref = "/root/main/reqrlist/list";
- var nodeList = instance1.selectNodes(ref + "[m = 'i' or m = 'u']");
- for(var i= 0; i<nodeList.length; i++){
- var node = nodeList.item(i);
- var statusNode = node.selectSingleNode("m");
- model.setValue(statusNode, "");
- }
- model.removeNodeset(ref + "[m = 'd']");
- model.makeNode("/root/main/reqrlist/reqrid");
- model.makeNode("/root/main/reqrlist/inputreqrnm");
-
- //새이름으로,새버전으로 버튼 재설정
- ipt_cpgnm.disabled = true;
- if( model.getValue("/root/main/masterinfo/info/tmpyn") == "N" ){
- rdo_ioflagcd.disabled = true;
- }else{
- rdo_ioflagcd.disabled = false;
- }
- btn_newver.disabled = false;
- btn_newnm.disabled = false;
-
- //트랜잭션으로 인해 결과 데이터를 받는 노드를 바꾼다
- //model.makeValue("/root/temp/masterinfo/prms", model.getValue("/root/temp/tempnode"));
- copyNodeListType("/root/temp/tempnode", "/root/temp/masterinfo/prms", "replace", model, model);
-
- //첨부파일을 저장한다.
- if( instance1.selectSingleNode("/root/main/attfileinfo/attach[check = 'false']") != null ){
- model.makeValue("/root/main/attfileinfo/master/cpgno", model.getValue("/root/main/masterinfo/info/cpgno"));
- model.makeValue("/root/main/attfileinfo/master/cpghistseq", model.getValue("/root/main/masterinfo/info/cpghistseq"));
- if( submit("TXMQP00603") == true ){
- //첨부파일 그리드 상태 초기화
- grd_attfile.clearStatus();
- }
- }
-
- //첨부파일이나 요청자 수정 후 재조회 데이터가 존재하면, 값을 다시 set한다
- if(instance1.selectSingleNode("/root/temp/masterinfo/diaglist/termcd") != null ){
- copyNodeListType("/root/main/diaginfo", "/root/temp/masterinfo/diaglist[termflag = 'T00' or termflag = 'T01']", "replace", model, model);
- }else {
- model.removeNodeset("/root/main/diaginfo/diaglist");
- grd_diag.refresh();
- }
- if(instance1.selectSingleNode("/root/temp/masterinfo/oplist/termcd") != null ){
- copyNodeListType("/root/main/opinfo", "/root/temp/masterinfo/oplist[termflag = 'T90' or termflag = 'T91']", "replace", model, model);
- }else {
- model.removeNodeset("/root/main/opinfo/oplist");
- grd_op.refresh();
- }
- if(instance1.selectSingleNode("/root/temp/masterinfo/cclist/termcd") != null ) {
- copyNodeListType("/root/main/ccinfo", "/root/temp/masterinfo/cclist[termflag = 'T20']", "replace", model, model);
- }else {
- model.removeNodeset("/root/main/ccinfo/cclist");
- grd_cc.refresh();
- }
- if(instance1.selectSingleNode("/root/temp/masterinfo/list/userid") != null ) {
- copyNodeListType("/root/main/reqrlist", "/root/temp/masterinfo/list", "replace", model, model);
- }else{
- model.removeNodeset("/root/main/reqrlist/list");
- }
- if(instance1.selectSingleNode("/root/temp/masterinfo/exclist") != null ) {
- copyNodeListType("/root/main/exclusion", "/root/temp/masterinfo/exclist", "replace", model, model);
- }else {
- model.removeNodeset("/root/main/exclusion/exclist");
- grd_exclusion.refresh();
- }
-
- //2008.06.20
- if(instance1.selectSingleNode("/root/temp/masterinfo/droplist") != null ) {
- copyNodeListType("/root/main/dropinfo", "/root/temp/masterinfo/droplist", "replace", model, model);
- }else {
- model.removeNodeset("/root/main/dropinfo/droplist");
- grd_drop.refresh();
- }
-
- if(instance1.selectSingleNode("/root/temp/masterinfo/sortedsteplist/stepno") != null) {
- //정렬된 스텝을 셋팅한다 (2007.11.01 outlineview 에 노드 추가(스텝처방에서 탭 정렬을 위해))
- //model.resetInstanceNode("/root/main/steplist");
- model.removeNodeset("/root/main/steplist");
- model.makeNode("/root/main/steplist");
- model.removeNodeset("/root/main/sortedsteplist");
- model.makeNode("/root/main/sortedsteplist");
- ivw_outline.model.removeNodeset("/root/main/sortedsteplist");
- ivw_outline.model.makeNode("/root/main/sortedsteplist");
- var nodeList = instance1.selectNodes("/root/temp/masterinfo/sortedsteplist");
- for(var i=0; i<nodeList.length; i++){
- var node = nodeList.item(i);
- var statusNode = node.selectSingleNode("orgstepno");
- model.setValue(statusNode, i+1);
- }
- var stepCSV = getNodeListCSV(nodeList);
- setCSVToNode("/root/main/steplist", stepCSV, "info");
- copyNodeListType("/root/main/sortedsteplist", "/root/main/steplist/info", "replace", ivw_outline.model, model);
- copyNodeListType("/root/main/sortedsteplist", "/root/main/steplist/info", "replace", model, model);
- //main과 outline의 steplist 구조를 맞춘다. (2009.02.26 추가 )
- copyNodeListType("/root/main/steplist", "/root/main/steplist/info", "replace", model, ivw_outline.model);
- }
-
- if(instance1.selectSingleNode("/root/temp/masterinfo/decisionlist/stepno") != null) {
- model.removeNodeset("/root/main/decisionlist");
- model.makeNode("/root/main/decisionlist");
- var nodeList = instance1.selectNodes("/root/temp/masterinfo/decisionlist");
- var stepCSV = getNodeListCSV(nodeList);
- setCSVToNode("/root/main/decisionlist", stepCSV, "info");
- copyNodeListType("/root/main/decisionlist", "/root/main/decisionlist/info", "replace", ivw_outline.model, model);
- }
-
- ivw_outline.window.javascript.fChangeStatus(); //저장flag 를 ''로 변환한다.
- if(refreshYN == "N"){
- ivw_outline.window.javascript.fCreateControl();
- ivw_outline.window.javascript.selectedControl = null;
- //CP저장 후 main의 steplist가 비는 현상 -> 주석처리 함 (2009.02.26 주석)
- //model.resetInstanceNode("/root/main/steplist");
- }else{
- refreshYN = "N";
- }
- }
- else return false;
-
- //첨부파일이나 요청자 수정 후 재조회 데이터가 존재하면, 값을 다시 set한다 (위로)
- model.makeValue("/root/main/reqrlist/reqrid", "");
- model.makeValue("/root/main/reqrlist/inputreqrnm", "");
-
- model.refresh();
-
- if( cpgFlagCd == "01" ){
- grd_diag.rowHidden(0) = true;
- grd_op.rowHidden(0) = true;
- grd_cc.rowHidden(0) = true;
- grd_exclusion.rowHidden(0) = true;
- grd_drop.rowHidden(0) = true;
- ipt_swimlineno.disabled = true;
- }else{
- //CPG인 경우, 저장 후 모든 컨트롤이 수정가능->특정 컨트롤 수정 불가(2009.03.02 추가)
- ipt_cpaprvno.disabled = true;
- //ipt_fcstinhospdayno.disabled = true;
- //ipt_times.disabled = true;
- //ipt_times_old.disabled = true;
- }
- rdo_cpgflagcd.disabled = true;
-
- //} else{
- // return false;
- //}
- }
-
- /**
- * @group :
- * @ver : 2007.07
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 마스터 저장 시 아웃라인의 모든 스텝을 함께 저장할때, fSaveCPGInfo()와 함께 호출한다.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSaveWithStepInfo(){
- //스텝의 필수조건 체크 : 임시저장일 경우는 체크 예외
- var refreshYN = "N";
- if( model.getValue("/root/temp/saveflag") == "S" ){
- if( !ivw_outline.window.javascript.fCheckEssVal("Y") ){
- return false;
- }
- }else{
- if( !ivw_outline.window.javascript.fCheckEssVal("N") ){
- return false;
- }
- }
-
- //2009.03.05 막음
- /*
- if( ivw_outline.instance1.selectSingleNode("/root/main/steplist/info") != null
- && ivw_outline.instance1.selectSingleNode("/root/temp/delsteplist/info") == null
- && ivw_outline.instance1.selectSingleNode("/root/temp/deldecisionlist/info") == null
- && ivw_outline.instance1.selectSingleNode("/root/main/steplist/info[m='i' or m='u']") == null
- && ivw_outline.instance1.selectSingleNode("/root/main/decisionlist/info[m='i' or m='u']") == null ) {
- //저장할 스텝이 1건도 없다면, 바로 return
- return model.getValue("/root/main/masterinfo/info/swimlineno") + "|" + "N";
-
- }
- */
-
- /*
- else if(ivw_outline.instance1.selectSingleNode("/root/temp/delsteplist/info") != null
- && ivw_outline.instance1.selectSingleNode("/root/temp/deldecisionlist/info") != null
- && ivw_outline.instance1.selectSingleNode("/root/main/steplist/info[m='i']") != null
- && ivw_outline.instance1.selectSingleNode("/root/main/decisionlist/info[m='i']") != null ) {
- //스텝이 변경되었다면, OCS의 스텝순서도 재조회되어야함
- }
- */
-
- //2008.06.18 pymi(s)
- //외래예약 step이 지정되지 않았다면 최종step에 외래예약step 처리하기
- fSetOutRNeedStep();
- //2008.06.18 pymi(e)
-
- //스텝영역 저장.
- model.removeNodeset("/root/main/steplist");
- model.removeNodeset("/root/main/decisionlist");
- model.makeNode("/root/main/steplist");
- model.makeNode("/root/main/decisionlist");
-
- copyNodesetType("/root/main/steplist", "/root/main/steplist", "replace", model, ivw_outline.model);
- copyNodesetType("/root/main/decisionlist", "/root/main/decisionlist", "replace", model, ivw_outline.model);
-
- if(ivw_outline.instance1.selectSingleNode("/root/temp/delsteplist/info") != null){
- copyNodesetType("/root/main/steplist", "/root/temp/delsteplist", "after", model, ivw_outline.model);
- }
- if(ivw_outline.instance1.selectSingleNode("/root/temp/deldecisionlist/info") != null){
- copyNodesetType("/root/main/decisionlist", "/root/temp/deldecisionlist", "after", model, ivw_outline.model);
- }
-
- //카피해 온 스텝이 한건도 없다면, 초기화 set의 스텝을 카피해서 자동으로 만들어준다
- if( ivw_outline.instance1.selectSingleNode("/root/main/steplist/info") == null ){
- fCreateSteps(0); //2009.03.05
- refreshYN = "Y";
- }
- nodelist = instance1.selectNodes("/root/main/steplist/info");
- var stepCSV = getNodeListCSV(nodelist);
-
- nodelist = instance1.selectNodes("/root/main/decisionlist/info");
- var deciCSV = getNodeListCSV(nodelist);
-
- if( fSaveStepInfo(stepCSV, deciCSV, "ALL" ) == true ){
- //return cnt + "|" + refreshYN;
- return "|" + "N";
-
- }else{
- ivw_outline.window.javascript.fChangeStatus(); //저장flag 를 ''로 변환한다.
- if(refreshYN == "Y"){
- var agr1 = cnt; //그려야 할 컨트롤 갯수
- var agr2 = (parseInt(model.getValue("/root/main/masterinfo/info/swimlineno")) * 3) + 1; //아웃라인을 구성하는 라인 컨트롤 갯수
- ivw_outline.window.javascript.initGlobalVariant(agr1, agr2);
-
- ivw_outline.window.javascript.fCreateControl();
- model.resetInstanceNode("/root/main/steplist");
- }
- }
- }
-
- /**
- * @group :
- * @ver : 2008.07
- * @by : 박유미
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 외래예약 필요step
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSetOutRNeedStep() {
- if( model.getValue("/root/main/masterinfo/info/ioflagcd") == "O") { //외래일때
-
- var stepNdList = ivw_outline.instance1.selectNodes("/root/main/steplist/info");
- var hddd = model.getValue("/root/main/masterinfo/info/fcstinhospdayno"); //재원일
-
- for(var i = 1; i <= stepNdList.length; i++) {
- var times = 0;
- var outPt = 0;
- var maxSlno = 0;
- var setFlag = "N";
-
- if( ivw_outline.model.getValue("/root/main/steplist/info["+ i +"]/times") != null ) { //day 정보가 있으면
- times = ivw_outline.model.getValue("/root/main/steplist/info["+ i +"]/times");
- }
-
- for(var j = 1; j <= stepNdList.length; j++) {
- //times == 0 인것은 day가 setting되지 않은 것
- if( (times != 0) && ( times != hddd )
- && (times == ivw_outline.model.getValue("/root/main/steplist/info["+ j +"]/times"))
- && (ivw_outline.model.getValue("/root/main/steplist/info["+ j +"]/stepflagcd") == "A") ){ //같은 day에 action step이면
- if( ivw_outline.model.getValue("/root/main/steplist/info["+ j +"]/decirflag") == "O" ||
- ivw_outline.model.getValue("/root/main/steplist/info["+ j +"]/decirflag") != "") { //외래예약 step 정보가 있는지?
- setFlag = "Y";
- break;
- } else {
- var temp = ivw_outline.model.getValue("/root/main/steplist/info["+ j +"]/swimlineno");
- //step 순서가 화면에 보이는 순서가 아니기때문에 swimline 번호가 가장 큰 step을 외래예약필요 step으로 설정
- if(maxSlno < temp) {
- maxSlno = temp;
- outPt = maxSlno;
- }
- }
- }
- }
-
- if(outPt != 0 && setFlag != "Y") ivw_outline.model.setValue("/root/main/steplist/info[swimlineno = '"+outPt+"']/decirflag", "O");
- }
- }
- }
-
- /**
- * @group :
- * @ver : 2007.07
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 스텝정보를 저장한다.
- * @param : stepCSV, deciCSV, flag(ALL:생성기 전체 내용 저장 중 스텝 함께 저장 시, 그외:해당 스텝만 따로 저장 시)
- * @return :
- * @---------------------------------------------------
- */
- function fSaveStepInfo(stepCSV, deciCSV, flag){
- //스텝 영역의 정보들을 구성한다.
- model.removeNodeset("/root/send/step");
- model.makeNode("/root/send/step");
-
- model.makeValue("/root/send/step/steplist", stepCSV); // : MMPDSINF (stepno▦stepflagcd▦stepmemo▦lnkstepno▦times▦startendflag▦swimlineno▦refseq▦decirflag▦setno▦settypecd▦m▩)
- model.makeValue("/root/send/step/decisionlist", deciCSV); // : MMPDSDEC (stepno▦deciseq▦lnkstepno▩m▩)
-
- model.makeValue("/root/send/step/master/settypecd", setTypeCd);
- if(flag != "ALL"){
- model.makeValue("/root/send/step/master/cpgno", model.getValue("/root/main/masterinfo/info/cpgno"));
- model.makeValue("/root/send/step/master/cpghistseq", model.getValue("/root/main/masterinfo/info/cpghistseq"));
-
- // 이력번호 비교 후, 다르면 버전이 바뀌기 이전의 이력번호를 oldcpghistseq 에 담아준다 ->
- model.makeValue("/root/send/step/master/oldcpgno", model.getValue("/root/temp/oldcpgno"));
- model.makeValue("/root/send/step/master/oldcpghistseq", model.getValue("/root/temp/oldcpghistseq"));
- model.makeValue("/root/send/step/master/saveflag", model.getValue("/root/temp/saveflag"));
- }
-
- if( flag == "ALL" ){
- return true;
-
- }else{
- //따로 스텝만 저장하는 부분의 사용은 막았음, 추후 TXMQP00601, TXMQP00605 두가지 서브밋이 서버단에서 원활하게 하나로 합쳐지도록 하거나, TXMQP00605를 사용하지 않도록 해야 함
- model.makeNode("/root/send/step/masterinfo")
-
- if(submit("TXMQP00605")){
- //CP 저장 후 main으 steplist가 삭제되는 현상 - 주석처리함 (2009.02.27)
- //model.removeNodeset("/root/main/steplist/info");
- //model.removeNodeset("/root/main/decisionlist/info");
- model.setValue("/root/temp/oldcpgno", "");
- model.setValue("/root/temp/oldcpghistseq", "");
- model.setValue("/root/temp/saveflag", "");
- //트랜잭션으로 인해 결과 데이터를 받는 노드를 바꾼다
- //model.makeValue("/root/temp/masterinfo/prms", model.getValue("/root/temp/tempnode"));
- model.removeNodeset("/root/temp/masterinfo/prms");
- copyNodeListType("/root/temp/masterinfo", "/root/temp/tempnode/prms", "after", model, model);
- }
- }
- }
-
- /**
- * @group :
- * @ver : 2007.07
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 색인 뷰어에서 이력보기를 선택한 경우, 현재 CP key값을 ivw_histList 에 넘겨준다.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetCpgHist(){
- ivw_histlist.datagrid1.attribute("height") = "645px";
- ivw_histlist.datagrid1.attribute("width") = "475px";
- ivw_histlist.line1.attribute("x2") = "475px";
- ivw_histlist.btn_close.visible = true;
- ivw_histlist.btn_close.attribute("left") = "420px";
- ivw_histlist.visible = true;
- ivw_histlist.datagrid1.refresh();
- ivw_histlist.model.makeValue("/root/main/search_cond/cpgflagcd", model.getValue("/root/main/search_cond/cpgflagcd"));
- ivw_histlist.window.javascript.fGetCpgHist();
-
- }
-
- /**
- * @group :
- * @ver : 2007.08
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 선택한 cp의 이력 조회 화면을 닫는다.(사용 안함)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCloseCpgHist(){
- ivw_histlist.visible = false;
- }
-
- /**
- * @group :
- * @ver : 2007.08
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 예상재원일수를 범위로 하는 콤보 리스트를 구성한다.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSettingDayComboList(){
- var x = 0;
- var ioflagcd = model.getValue("/root/main/masterinfo/info/ioflagcd");
- var dayno = model.getValue("/root/main/masterinfo/info/fcstinhospdayno");
-
- if(isNull(dayno)){ //재원일수 없으면 바로 return (2008.12.05)
- return;
- }
-
- //if(cpgFlagCd == "01"){ //재원일수 존재하는 CPG도 회차에 따라 스텝명이 정해지므로 조건 없앰(2008.12.05)
- // 외래이면 D0 없음
- if( ioflagcd == "O") {
- x = 1;
- } else {
- x = 0;
- }
- //2008.06.18 pymi (종료)
- model.removeNodeset("/root/temp/daylist");
- model.makeNode("/root/temp/daylist");
-
- model.makeValue("/root/temp/daylist/day[1]/id", "");
- model.makeValue("/root/temp/daylist/day[1]/nm", "");
-
- model.makeValue("/root/temp/oplist/op[1]/id", "");
- model.makeValue("/root/temp/oplist/op[1]/nm", "");
-
- if(ioflagcd != "O") {
- for(var i = x; i <= parseInt(dayno); i++){
- model.makeValue("/root/temp/daylist/day[" + (i+2) + "]/id", i);
- model.makeValue("/root/temp/oplist/op[" + (i+2) + "]/id", i);
-
- if( i == 0 ) {
- model.makeValue("/root/temp/daylist/day[" + (i+2) + "]/nm", "외래");
- }
- /*else if( i == 1) {
- model.makeValue("/root/temp/daylist/day[" + (i+2) + "]/nm", "입원일");
- model.makeValue("/root/temp/oplist/op[" + (i+2) + "]/nm", "OP");
- }*/
- else if( i == parseInt(dayno) ) {
- model.makeValue("/root/temp/daylist/day[" + (i+2) + "]/nm", "퇴원일");
- model.makeValue("/root/temp/oplist/op[" + (i+2) + "]/nm", "POD#" + (i-1));
- } else {
- //model.makeValue("/root/temp/daylist/day[" + (i+2) + "]/nm", "HD#" + (i-1));
- //model.makeValue("/root/temp/oplist/op[" + (i+2) + "]/nm", "POD#" + (i-1));
- model.makeValue("/root/temp/daylist/day[" + (i+2) + "]/nm", "HD#" + i);
- if( i == 1 ) model.makeValue("/root/temp/oplist/op[" + (i+2) + "]/nm", "OP");
- else model.makeValue("/root/temp/oplist/op[" + (i+2) + "]/nm", "POD#" + (i-1));
- }
- }
- } else {
- for(var i = x; i <= parseInt(dayno); i++){
- model.makeValue("/root/temp/daylist/day[" + (i+2) + "]/id", i);
- model.makeValue("/root/temp/daylist/day[" + (i+2) + "]/nm", "OPD#" + i);
- //model.makeValue("/root/temp/oplist/op[" + (i+2) + "]/id", i);
- //model.makeValue("/root/temp/oplist/op[" + (i+2) + "]/nm", "OPD#" + I);
- }
- }
- //if(cpgFlagCd == "01"){
- ipt_times.visible = true;
- cmb_stepnm.visible = true;
- ipt_times_old.visible = false;
- ipt_times.refresh();
- //}
-
- /*var x = 0;
- if(model.getValue("/root/main/masterinfo/info/cpgflagcd") == "01"){
- // 2008.06.18 pymi (수정)
- // 외래이면 D0 없음
- if( model.getValue("/root/main/masterinfo/info/ioflagcd") == "O") {
- x = 1;
- } else {
- x = 0;
- }
- //2008.06.18 pymi (종료)
-
- var dayno = model.getValue("/root/main/masterinfo/info/fcstinhospdayno");
- model.removeNodeset("/root/temp/daylist");
- model.makeNode("/root/temp/daylist");
-
- model.makeValue("/root/temp/daylist/day[1]/id", "");
- model.makeValue("/root/temp/daylist/day[1]/nm", "");
- for(var i = x; i <= parseInt(dayno); i++){
- model.makeValue("/root/temp/daylist/day[" + (i+2) + "]/id", i);
- model.makeValue("/root/temp/daylist/day[" + (i+2) + "]/nm", i);
- }
- ipt_times.visible = true;
- ipt_times_old.visible = false;
- ipt_times.refresh();
-
- }else{
- ipt_times.visible = false;
- ipt_times_old.visible = true;
- }*/
- }
-
- /**
- * @group :
- * @ver : 2008.06
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : CP/CPG명을 CP검색화면에서의 이름과 동일하게 바꿈
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCopyOrgCpgNM(){
- var preNM = "";
- var DayNo = "";
- var orgCpgNM = "";
- if( instance1.selectSingleNode("/root/main/masterinfo/info/orgcpgnm") == null )
- model.makeNode("/root/main/masterinfo/info/orgcpgnm");
- if( isNull(model.getValue("/root/main/masterinfo/info/orgcpgnm")) || model.getValue("/root/temp/saveflag") == "N" ){
- orgCpgNM = model.getValue("/root/main/masterinfo/info/cpgnm");
- }else{
- orgCpgNM = model.getValue("/root/main/masterinfo/info/orgcpgnm");
- }
-
- var postNM = "";
- if( model.getValue("/root/main/masterinfo/info/tmpyn") == "Y" )
- preNM = "[미등록] ";
- if( model.getValue("/root/main/masterinfo/info/todd") <= getCurrentDate() )
- preNM = "[종료] ";
- if( ivw_outline.instance1.selectSingleNode("/root/main/steplist/info[times='0']/times") != null ){
- postNM = " (D0)";
- }else if( ivw_outline.instance1.selectSingleNode("/root/main/steplist/info[times='1']/times") != null ){
- postNM = " (D1)";
- }
- //[미완성/종료] + CP명 + (DayNo)
- model.makeValue( "/root/main/masterinfo/info/orgcpgnm", orgCpgNM );
- model.setValue ( "/root/main/masterinfo/info/cpgnm" , preNM + orgCpgNM + postNM );
- ipt_cpgnm.refresh();
- }
-
- /**
- * @group :
- * @ver : 2007.10
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 환자계획표 전체 조회를 위해 필요한 값을 iviewer로 보낸다
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSendDetailValue(){
- var timesArray = "";
- var tms;
- var settypeArray;
- //2008.1.14 환자계획표의 Day가 숫자임에도, 아스키코드로 sorting 되어, 정렬된 스텝 기준으로 넘김
- var ref = "/root/main/sortedsteplist/info";
- var nodeList = ivw_outline.instance1.selectNodes(ref);
- for(var i=1; i<=nodeList.length; i++){
- var node = ivw_outline.instance1.selectSingleNode("/root/main/sortedsteplist/info[" + i + "]/times");
- var settypeNode = ivw_outline.instance1.selectSingleNode("/root/main/sortedsteplist/info[" + i + "]/settypecd");
- var setnoNode = ivw_outline.instance1.selectSingleNode("/root/main/sortedsteplist/info[" + i + "]/setno");
- if( !isNull(node.text) && tms != node.text){
- timesArray = timesArray + node.text + ",";
- settypeArray = settypeArray + settypeNode.text + ",";
- }
- tms = node.text;
- //if( !isNull(settypeNode.text) && !isNull(setnoNode) && setno != setnoNode.text ){
- //}
- //setno = setnoNode.text;
- }
- timesArray = timesArray.substr(0, timesArray.length-1);
-
- var cpgno = model.getValue("/root/main/masterinfo/info/cpgno");
- var cpghistseq = model.getValue("/root/main/masterinfo/info/cpghistseq");
-
- if( !isNull(cpgno) ){
- var returnText = cpgno + "|" + cpghistseq + "|" + setTypeCd + "|" + timesArray + "|" + "generater";
- setParameter("stepinfo", returnText);
- } else{
- messageBox("CP가 저장되지", "E007");
- }
- }
-
- /**
- * @group :
- * @ver : 2007.08
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 예상재원일수를 범위로 하는 콤보 리스트를 구성한다.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function delPrmsPrcpSetInfo(delSetInfo){
- if( ivw_detail.visible == true ){
- ivw_detail.window.javascript.delPrmsPrcpSetInfo(delSetInfo);
- }
- }
-
- /**
- * @group :
- * @ver : 2008.06.20
- * @by : LWS
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 새이름으로 버튼을 눌렀다가 취소버튼을 눌러을 경우 컨트롤 활성화 상태를 원상태로 원복시켜야 함.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCnclInptNm(){
- grp_inputcpname.attribute("height") = 0; //grp_inputcpname.visible = false;
- grp_biz.disabled = false;
- grp_btn.disabled = false;
- ivw_outline.disabled = false;
-
- ipt_stepnm.disabled = true;
- tar_stepmemo.disabled = true;
- ipt_times.disabled = true;
- cmb_stepnm.disabled = true;
- ipt_cpgnm.disabled = true;
-
- if( instance1.selectSingleNode("/root/temp/oldtmpyn") != null ){
- model.setValue( "/root/main/masterinfo/info/tmpyn", model.getValue("/root/temp/oldtmpyn") );
- }
- if( model.getValue("/root/main/masterinfo/info/tmpyn") == "N"){
- rdo_ioflagcd.disabled = true;
- cmb_cpgorddeptcd.disabled = true;
- }else{
- rdo_ioflagcd.disabled = false;
- cmb_cpgorddeptcd.disabled = false;
- }
- rdo_cpgflagcd.disabled = true;
-
- if(cpgFlagCd == "01"){
- //ipt_fcstinhospdayno.disabled = false;
- ipt_swimlineno.disabled = true;
- }else{
- //ipt_fcstinhospdayno.disabled = true;
- ipt_swimlineno.disabled = false;
- }
-
- fReturnStatus();
-
- model.refresh();
- }
-
- /**
- * @group :
- * @ver : 2008.12.05
- * @by : 김영학
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : CPG 속성관리창을 오픈하기 위한 함수
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fOpenAttAdm(){
- if( isNull(model.getValue("/root/main/masterinfo/info/cpgno")) ){
- messageBox ( "CPG 기본 정보 저장 후에 입력", "I006" );
- return;
- }
-
- CPGadminObj = getOpenWindow("SPMQP00300");
- if (CPGadminObj != null) {
- CPGadminObj.window.javascript.model.dispatch("xforms-ready");
- } else {
- open("SPMQP00300", "", null, null, "SPMQP00300", "", "", "", false);
- }
- }
-
- /**
- * @group :
- * @ver : 2009.01.28
- * @by : 김영학
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : CPG 속성관리창에서 데이터 저장한 경우 생성기창의 리스트 업데이트
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInitAttList(){
- model.makeValue("/root/send/reqdata/cpgno" , model.getValue("/root/main/masterinfo/info/cpgno"));
- model.makeValue("/root/send/reqdata/cpghistseq" , model.getValue("/root/main/masterinfo/info/cpghistseq"));
-
- submit("TRMQP00606");
- var mntrRef = "/root/temp/temp_attlist/mntrlist";
- var inqrRef = "/root/temp/temp_attlist/inqrheader";
- var limRef = "/root/temp/temp_attlist/limheaderinfo";
- model.removeNodeset("/root/main/scrninfo/mntrlist");
- model.removeNodeset("/root/main/mntrinfo/mntrlist");
- model.removeNodeset("/root/main/inqrinfo/inqrheader");
- model.removeNodeset("/root/main/limtminfo/limheaderinfo");
- copyNodeListType("/root/main/scrninfo", mntrRef + "[cpgmntrflag = 'S']", "replace", model, model);
- copyNodeListType("/root/main/mntrinfo", mntrRef + "[cpgmntrflag = 'M']", "replace", model, model);
- copyNodeListType("/root/main/inqrinfo", inqrRef, "replace", model, model);
- copyNodeListType("/root/main/limtminfo", limRef, "replace", model, model);
-
- model.refresh();
- }
-
- /**
- * @group :
- * @ver : 2009.02
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 선택한 스텝의 order , 서식 정보를 팝업으로 조회한다
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fOpenStepDetlInfo(){
- var no = model.getValue("/root/main/stepinfo/info/stepno");
- var stepflag = model.getValue("/root/main/stepinfo/info/stepflagcd");
-
- if( isNull(no) ){
- messageBox("STEP을", "C002");
- return;
- }
- if( ivw_outline.instance1.selectSingleNode("/root/main/steplist/info[setno != '']") == null ){
- messageBox(cpgFlagNM + "의 모든 Step에 저장된 처방이", "E014");
- return;
-
- }else if( ivw_outline.instance1.selectSingleNode("/root/main/sortedsteplist/info[stepno='" + no + "']") == null ){
- messageBox("선택된 Step은 저장되지 않아 조회", "E001");
- return;
- //no = ivw_outline.model.getValue("/root/main/sortedsteplist/info[1]/stepno");
- //stepflag = ivw_outline.model.getValue("/root/main/sortedsteplist/info[1]/stepflagcd");
- }
-
- clearParameter("stepinfo");
- clearParameter("steplist");
-
- //ivw_outline.window.javascript.fViewDetailInfo();
- if( !isNull(no) ){
- if(stepflag == "A" || stepflag == "B"){
- var returnText = no + "|" +
- model.getValue("/root/main/masterinfo/info/cpgno") + "|" +
- model.getValue("/root/main/masterinfo/info/cpghistseq ") + "|" +
- setTypeCd + "|" +
- model.getValue("/root/main/stepinfo/info/setno") + "|" +
- model.getValue("/root/main/stepinfo/info/stepmemo") + "|" +
- model.getValue("/root/main/stepinfo/info/times") + "|" +
- "generater"+ "|" +
- model.getValue("/root/main/stepinfo/info/stepnm");
-
- //상세보기 팝업에 전체 스텝을 보낸다
- var sortedStepNode = instance1.selectNodes("/root/main/sortedsteplist/info");
- var returnTextList = "";
- var num = 0;
- for(var i=0; i<sortedStepNode.length; i++){
- num++;
- returnTextList = returnTextList + model.getValue("/root/main/sortedsteplist/info["+num+"]/stepno") + "|" +
- model.getValue("/root/main/masterinfo/info/cpgno") + "|" +
- model.getValue("/root/main/masterinfo/info/cpghistseq") + "|" +
- setTypeCd + "|" +
- model.getValue("/root/main/sortedsteplist/info["+num+"]/setno") + "|" +
- model.getValue("/root/main/sortedsteplist/info["+num+"]/stepmemo") + "|" +
- model.getValue("/root/main/sortedsteplist/info["+num+"]/times") + "|" +
- "generater"+ "|" +
- model.getValue("/root/main/sortedsteplist/info["+num+"]/stepnm") + "▦";
- }
-
- setParameter("stepinfo", returnText);
- setParameter("steplist", returnTextList);
-
- var StepInfoObj = getOpenWindow("SPMMP01100");
- if (StepInfoObj != null) {
- StepInfoObj.window.javascript.model.dispatch("xforms-ready");
- } else {
- open("SPMMP01100");
- }
-
- } else if(stepflag == "D"){
- var returnText = model.getValue("/root/main/stepinfo/info/stepnm") + "|" +
- model.getValue("/root/main/stepinfo/info/stepmemo") + "|" +
- model.getValue("/root/main/stepinfo/info/times");
-
- setParameter("stepinfo", returnText);
-
- var StepInfoObj = getOpenWindow("SPMMP02100");
- if (StepInfoObj != null) {
- StepInfoObj.window.javascript.model.dispatch("xforms-ready");
- } else {
- open("SPMMP02100");
- }
- }
- } else {
- messageBox("STEP을", "C002");
- }
- }
-
- /**
- * @group :
- * @ver : 2009.03
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 스텝 자동 생성
- * @param : flag 0 은 저장 후 outline 컨트롤 생성, 1은 즉시 컨트롤 생성
- * @return :
- * @---------------------------------------------------
- */
- function fCreateSteps(flag){
- if( isNull(flag) ) flag = 0;
-
- //if( ivw_outline.instance1.selectSingleNode("/root/main/steplist/info") == null ){
- var cnt = parseInt( model.getValue("/root/main/masterinfo/info/swimlineno") );
-
- ivw_outline.model.makeNode("/root/main/steplist");
- for(var i=1; i<=cnt; i++){
- if(i == 1){
- model.setValue("/root/temp/stepinfo/info/startendflag", "S");
- }else if(i == cnt){
- model.setValue("/root/temp/stepinfo/info/startendflag", "E");
- }else{
- model.setValue("/root/temp/stepinfo/info/startendflag", "");
- }
- model.setValue("/root/temp/stepinfo/info/stepno", i);
- model.setValue("/root/temp/stepinfo/info/swimlineno", i);
-
- if( cpgFlagCd == "01" ){ //회차 자동지정 - cp는 무조건 day 지정, cpg는 재원일수 입력시 스윔라인 수와동일할경우 day를 지정함. (2008.12.05) //회차 자동지정 - cp는 무조건 day 지정, cpg는 재원일수 입력시 스윔라인 수와동일할경우 day를 지정함. (2008.12.05) ////&& model.getValue("/root/main/masterinfo/info/fcstinhospdayno") != model.getValue("/root/main/masterinfo/info/swimlineno")
- model.setValue("/root/temp/stepinfo/info/times", i);
- model.setValue("/root/temp/stepinfo/info/stepnm", model.getValue("/root/temp/daylist/day[id = '"+ (i) +"']/nm]")); // 2008.08.20 pymi day차수를 step명에 setting
- }else{
- model.setValue("/root/temp/stepinfo/info/times", 1); //재원일수 없는 CPG는 모두 1일차로 설정 (2008.12.13)
- model.setValue("/root/temp/stepinfo/info/stepnm", "A" + i); //스텝명 default입력 (2009.03.03)
- }
-
- if(cnt != i ){
- model.setValue("/root/temp/stepinfo/info/lnkstepno", i+1);
- }else{
- model.setValue("/root/temp/stepinfo/info/lnkstepno", "");
- }
- //스텝속성은 모두 없음으로 설정 (2009.02.23)
- model.setValue("/root/temp/stepinfo/info/stepattrflag", "0/0/0/0");
-
- copyNodesetType("/root/main/steplist", "/root/temp/stepinfo", "after", model, model);
- // 2008.08.20 pymi step 자동 생성시 outline에만 있는 instance를 강제로 생성해서 복사해야 함
- model.makeNode("/root/temp/stepinfo/info/fixedStCntl");
- model.makeNode("/root/temp/stepinfo/info/tmpstepnm");
- copyNodeListType("/root/main/steplist", "/root/temp/stepinfo/info", "after", ivw_outline.model, model);
- model.removenode("/root/temp/stepinfo/info/fixedStCntl");
- model.removenode("/root/temp/stepinfo/info/tmpstepnm");
-
- }
-
- fSetOutRNeedStep();
- //}
-
- if( flag > 0 ){
- var agr1 = cnt; //그려야 할 컨트롤 갯수
- var agr2 = (parseInt(model.getValue("/root/main/masterinfo/info/swimlineno")) * 3) + 1; //아웃라인을 구성하는 라인 컨트롤 갯수
- ivw_outline.window.javascript.initGlobalVariant(agr1, agr2);
- ivw_outline.window.javascript.fCreateControl();
- ivw_outline.window.javascript.selectedControl = null;
- }
- }
-
- /**
- * @group :
- * @ver : 2010.03.30
- * @by : 전지은
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : CP/CPG종류나 진료과에 따라 데이터 및 컨트롤 셋팅을 해줌 (조회 직후, 종류-라디오, 진료과-콤보)
- * @param : flag (T:type, D:dept)
- * @return :
- * @---------------------------------------------------
- */
- function fCngCpgType( flag ){
- if( isNull(flag) ) flag = "D";
-
- var cpgtypecd = model.getValue("/root/main/masterinfo/info/cpgtypecd");
- var cpgorddeptcd = model.getValue("/root/main/masterinfo/info/cpgorddeptcd");
-
- //병원공유 선택한 경우, 진료과를 병원으로 자동선택, 포커스는 선택버튼으로...
- if( (flag == "T" && cpgtypecd == "H") || (flag == "D" && cpgorddeptcd == "1000000000") ){
- model.setValue("/root/main/masterinfo/info/cpgorddeptcd", "1000000000");
- model.setValue("/root/main/masterinfo/info/cpgtypecd", "H");
- cmb_cpgorddeptcd.refresh();
- cmb_cpgorddeptcd.visible = false;
- btn_getdept.visible = true;
- ipt_cpgorddeptnm.visible = true;
- model.setFocus("btn_getdept");
-
- //선택된 진료과들이 있으면 버튼명에서 *을 제외시킴
- //var nodelist = instance1.selectNodes( "/root/main/orddeptlist/dept[checkyn='Y']" );
- if( !isNull(model.getValue("/root/temp/multideptcdlist")) )
- btn_getdept.attribute("text") = "선택";
- else
- btn_getdept.attribute("text") = "선택*";
- btn_getdept.refresh();
-
- }else{
- model.setValue("/root/main/masterinfo/info/cpgtypecd", "D");
- //유저가 진료의이면 진료과로, 그렇지 않으면 선택 초기화
- if( jobKindCd == "0330" || jobKindCd == "0332" || jobKindCd == "9930" ){
- model.setValue("/root/main/masterinfo/info/cpgorddeptcd", dutPlceCd);
- }else{
- //model.setValue("/root/main/masterinfo/info/cpgorddeptcd", "");
- }
- cmb_cpgorddeptcd.refresh();
- cmb_cpgorddeptcd.visible = true;
- btn_getdept.visible = false;
- ipt_cpgorddeptnm.visible = false;
-
- model.setValue("/root/temp/multideptcdlist", "");
- model.setValue("/root/temp/multideptnmlist", "");
- ipt_cpgorddeptnm.refresh();
- }
- }
-
- function fCreateViewer() {
- //grp_form.createChild("xforms:iviewer", "id:ivw_loader;src:../../../emr/medirecweb/xrw/SSMMR01100_서식로더.xrw;visibility:hidden;left:345px; top:36px; width:620px; height:708px; border-width:1px; border-style:solid; ");
- grp_form.createChild("xforms:iviewer", "id:ivw_loader;src:../../../emr/medirecweb/xrw/SSMMR01100_서식로더.xrw;visibility:hidden;left:0px; top:20px; width:620px; height:743px; border-width:1px; border-style:solid; ");
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:139px; height:14px; ">CP Generator</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:742px; ">
- <select1 id="rdo_cpgflagcd" ref="/root/main/masterinfo/info/cpgflagcd" navindex="1" appearance="full" cellspacing="150" cols="2" overflow="visible" style="left:88px; top:35px; width:242px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>CP</label>
- <value>01</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fInitializeValue();
- ]]>
- </script>
- </select1>
- <line id="line7" class="line_2" style="x1:0px; y1:55px; x2:345px; y2:55px; "/>
- <line id="line3" class="line_1" style="x1:355px; y1:28px; x2:1194px; y2:28px; "/>
- <caption id="caption19" class="tit_2" style="left:360px; top:13px; width:95px; height:13px; ">Step 정보</caption>
- <line id="line11" class="line_3" style="x1:355px; y1:55px; x2:1194px; y2:55px; "/>
- <input id="ipt_cpgno" ref="/root/main/masterinfo/info/cpgno" class="input_default" visibility="hidden" style="left:460px; top:4px; width:45px; height:19px; "/>
- <input id="ipt_cpghistseq" ref="/root/main/masterinfo/info/cpghistseq" class="input_default" visibility="hidden" style="left:505px; top:4px; width:45px; height:19px; "/>
- <select1 id="cmb_cpglasthistyn" ref="/root/main/masterinfo/info/cpglasthistyn" class="combo_default" visibility="hidden" appearance="minimal" style="left:550px; top:4px; width:40px; height:19px; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <line id="line8" class="line_1" style="x1:355px; y1:80px; x2:1194; y2:80px; "/>
- <line id="line13" class="line_3" style="x1:355px; y1:742px; x2:1194px; y2:742px; "/>
- <caption id="cap_outlineinfo" class="tit_2" style="left:360px; top:66px; width:130px; height:13px; ">Outline 정보</caption>
- <input id="ipt_cpgnm" ref="/root/main/masterinfo/info/cpgnm" class="input_essential" navindex="2" style="left:87px; top:58px; width:263px; height:19px; "/>
- <caption id="cap_cpgnm" class="cell_1" style="left:0px; top:57px; width:85px; height:23px; ">CP명</caption>
- <caption id="cap_cpaprvno" class="cell_1" style="left:0px; top:33px; width:85px; height:23px; ">구분</caption>
- <input id="ipt_cpaprvno" ref="/root/main/masterinfo/info/cpaprvno" class="input_default" navindex="3" style="left:130px; top:34px; width:130px; height:19px; ">
- <script type="javascript" ev:event="onmouseup">
- <![CDATA[
- if(ipt_cpaprvno.currentText == "승인번호") {
- ipt_cpaprvno.currentText = "";
- }
- ]]>
- </script>
- </input>
- <button id="btn_sizecntl" class="icon_left" style="left:969px; top:60px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSizeControl();
- ]]>
- </script>
- </button>
- <caption id="cap_cpgflagcd" class="cell_1" visibility="hidden" style="left:335px; top:32px; width:15px; height:23px; ">CP 구분</caption>
- <button id="button16" class="btn_sw" group="tab1" style="left:0px; top:6px; width:69px; height:22px; ">
- <caption>검색</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fIndxMngt();
- ]]>
- </script>
- </button>
- <button id="button17" class="btn_sw" visibility="hidden" group="tab2" style="left:70px; top:6px; width:69px; height:22px; ">
- <caption>묶음CP</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(button17.selected == true){
- button17.selected = false;
- } else {
- button17.selected = true;
- }
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:0px; y1:28px; x2:350px; y2:28px; "/>
- <caption id="caption1" class="cell_1" style="left:355px; top:33px; width:80px; height:23px; ">STEP명</caption>
- <iviewer id="ivw_outline" src="../../../emr/cpgweb/xrw/SPMMP01900_OutlineView.xrw" style="left:355px; top:85px; width:838px; height:655px; border-color:#c0c0c0; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; "/>
- <iviewer id="ivw_detail" visibility="hidden" src="../../../emr/prcpmngtweb/xrw/SPMMP02200_DetailView.xrw" style="left:355px; top:85px; width:838px; height:655px; border-color:#c0c0c0; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; "/>
- <input id="ipt_stepnm" ref="/root/main/stepinfo/info/stepnm" class="input_default" disabled="true" navindex="22" editable="true" style="left:438px; top:34px; width:83px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var stepno = parseInt(model.getValue("/root/main/stepinfo/info/stepno")); //스텝번호는 1부터 시작하므로, rowno = indexno 로 간주
- var times = model.getValue("/root/main/stepinfo/info/times");
- var memo = model.getValue("/root/main/stepinfo/info/stepmemo");
- var stepnm = model.getValue("/root/main/stepinfo/info/stepnm");
- ivw_outline.model.setValue( "/root/main/steplist/info[" + stepno + "]/stepnm", stepnm);
- ivw_outline.grp_swimline.refresh();
- if( ivw_outline.model.getValue("/root/main/steplist/info[" + stepno + "]/m") != "i" ){
- ivw_outline.model.setValue( "/root/main/steplist/info[" + stepno + "]/m", "u" );
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- if( ivw_detail.window.javascript.currentStepCntl != null ){
- messageBox ( "스텝을", "C002" );
- return;
- }
- ]]>
- </script>
- </input>
- <datagrid id="grd_getindxlist" nodeset="/root/main/indexinfo/item" visibility="hidden" caption="indxNO^indxSeq^indxNM^supIndxNO^indxRefSeq^cpgNo^cpgHistSeq^depth^status" colsep="^" colwidth="45, 51, 50, 66, 73, 49, 72, 41, 39" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:355px; top:620px; width:345px; height:107px; ">
- <col ref="indxno"/>
- <col ref="indxseq"/>
- <col ref="indxnm"/>
- <col ref="supindxno"/>
- <col ref="indxrefseq"/>
- <col ref="cpgno"/>
- <col ref="cpghistseq"/>
- <col ref="depth"/>
- <col ref="status"/>
- </datagrid>
- <input id="ipt_times_old" ref="/root/main/stepinfo/info/times" class="input_default" disabled="true" navindex="22" visibility="hidden" style="left:1135px; top:34px; width:58px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var stepno = parseInt(model.getValue("/root/main/stepinfo/info/stepno"));
- var times = model.getValue("/root/main/stepinfo/info/times");
- var memo = model.getValue("/root/main/stepinfo/info/stepmemo");
- var stepnm = model.getValue("/root/main/stepinfo/info/stepnm");
-
- ivw_outline.model.setValue( "/root/main/steplist/info[" + stepno + "]/times", times);
- ivw_outline.grp_swimline.refresh();
- if( ivw_outline.model.getValue("/root/main/steplist/info[" + stepno + "]/m") != "i" ){
- ivw_outline.model.setValue( "/root/main/steplist/info[" + stepno + "]/m", "u" );
- }
- //day 이미지를 생성한다.
- ivw_outline.window.javascript.fSetDayImage(stepno, times, ipt_times.label, stepnm);
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- var stepno = parseInt(model.getValue("/root/main/stepinfo/info/stepno"));
- var times = model.getValue("/root/main/stepinfo/info/times");
- var memo = model.getValue("/root/main/stepinfo/info/stepmemo");
- var stepnm = model.getValue("/root/main/stepinfo/info/stepnm");
- var fcstinhospdayno = model.getValue("/root/main/masterinfo/info/fcstinhospdayno");
- ivw_outline.model.setValue( "/root/main/steplist/info[" + stepno + "]/times", times);
- if ( !isNull(fcstinhospdayno) && times <= fcstinhospdayno ){ //cpg일때 day를 입력가능한데, 이때 재원일을 넘어간 일수는 입력 불가
- ipt_times.select(fcstinhospdayno);
- ivw_outline.model.setValue( "/root/main/steplist/info[" + stepno + "]/stepnm", ipt_times.value);
- }
- ivw_outline.grp_swimline.refresh();
- if( ivw_outline.model.getValue("/root/main/steplist/info[" + stepno + "]/m") != "i" ){
- ivw_outline.model.setValue( "/root/main/steplist/info[" + stepno + "]/m", "u" );
- }
- //day 이미지를 생성한다.
- ivw_outline.window.javascript.fSetDayImage(stepno, times, ipt_times.label, stepnm)
- }
- ]]>
- </script>
- </input>
- <select1 id="ipt_times" ref="/root/main/stepinfo/info/times" class="combo_search" disabled="true" navindex="22" appearance="minimal" editmode="search" style="left:1040px; top:34px; width:93px; height:19px; ">
- <choices>
- <itemset nodeset="/root/temp/daylist/day">
- <label ref="nm"/>
- <value ref="id"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*
- var stepno = parseInt(model.getValue("/root/main/stepinfo/info/stepno"));
- var times = model.getValue("/root/main/stepinfo/info/times");
- var memo = model.getValue("/root/main/stepinfo/info/stepmemo");
- var stepnm = cmb_stepnm.label;
-
- ivw_outline.model.setValue( "/root/main/steplist/info[stepno='"+stepno+"']/times", times);
- ivw_outline.model.setValue( "/root/main/steplist/info[stepno='"+stepno+"']/stepnm", ipt_times.label);
- //ivw_outline.model.setValue( "/root/main/steplist/info[stepno='"+stepno+"']/tmpstepnm", ipt_times.label);
- ivw_outline.grp_swimline.refresh();
-
- if( ivw_outline.model.getValue("/root/main/steplist/info[stepno='"+stepno+"']/m") != "i" ){
- ivw_outline.model.setValue( "/root/main/steplist/info[stepno='"+stepno+"']/m", "u" );
- }
- //day 이미지를 생성한다.
- ivw_outline.window.javascript.fSetDayImage(stepno, times, ipt_times.label, stepnm);
-
- //선택한 스텝의 다음 라인에 퇴원스텝이 존재할 경우, 퇴원스텝의 times 재설정 (2008.11.12)
- var curSwimLineNo = ivw_outline.model.getValue( "/root/main/steplist/info[stepno='"+stepno+"']/swimlineno");
- ivw_outline.window.javascript.fChgDschTimes( parseInt(curSwimLineNo)+1 );
- */
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- var selNo = ipt_times.value; // ipt_times.label -> ipt_times.value 2008.08.19 pymi
- var val = model.getValue("/root/main/stepinfo/info/times");
- if( !isNull(selNo) && instance1.selectSingleNode("/root/temp/daylist/day[nm='" + selNo + "']/id") != null ){
- //if( selNo != val ){
- model.setValue("/root/main/stepinfo/info/times", selNo);
- ipt_times.dispatch("xforms-value-changed");
- //}
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //재원일수기준 변경에 따른 기존 마스터 변경을 위해 xforms-value-changed => xforms-select 이동 (20100120)
- var stepno = parseInt(model.getValue("/root/main/stepinfo/info/stepno"));
- var times = model.getValue("/root/main/stepinfo/info/times");
- var memo = model.getValue("/root/main/stepinfo/info/stepmemo");
- var stepnm = cmb_stepnm.label;
-
- //이미 CPG 프로토콜 처방이 저장 된 경우, CP로 변경하는 경우이므로 스텝 삭제를 유도해야 함, CPG셋이 CP셋으로 갑자기 바뀌어서 기존 CP셋이 날라가는 경우가 생김 (2010.07.02)
- if( cpgFlagCd == "02" && ivw_outline.model.getValue("/root/main/steplist/info[stepno='"+stepno+"']/settypecd") == "G" ){
- messageBox( "[" + ivw_outline.model.getValue("/root/main/steplist/info[stepno='"+stepno+"']/stepnm") + "] 스텝에 CPG 프로토콜이 존재합니다.\n이 스텝을 삭제하고 다시 생성", "I008");
- return;
- }
-
- ivw_outline.model.setValue( "/root/main/steplist/info[stepno='"+stepno+"']/times", times);
- ivw_outline.model.setValue( "/root/main/steplist/info[stepno='"+stepno+"']/stepnm", ipt_times.label);
- //ivw_outline.model.setValue( "/root/main/steplist/info[stepno='"+stepno+"']/tmpstepnm", ipt_times.label);
- ivw_outline.grp_swimline.refresh();
-
- if( ivw_outline.model.getValue("/root/main/steplist/info[stepno='"+stepno+"']/m") != "i" ){
- ivw_outline.model.setValue( "/root/main/steplist/info[stepno='"+stepno+"']/m", "u" );
- }
-
- //cpg인 경우, cp 일자를 지정하는 것이므로 decirflag를 W로 setting (2010.06.26 JJE)
- //if( cpgFlagCd == "02" )
- //ivw_outline.model.setValue( "/root/main/steplist/info[stepno='"+stepno+"']/stepsettypecd", "W" );
- ivw_outline.model.setValue( "/root/main/steplist/info[stepno='"+stepno+"']/settypecd", "W" );
-
- //day 이미지를 생성한다.
- ivw_outline.window.javascript.fSetDayImage(stepno, times, ipt_times.label, stepnm);
-
- //선택한 스텝의 다음 라인에 퇴원스텝이 존재할 경우, 퇴원스텝의 times 재설정 (2008.11.12)
- var curSwimLineNo = ivw_outline.model.getValue( "/root/main/steplist/info[stepno='"+stepno+"']/swimlineno");
- ivw_outline.window.javascript.fChgDschTimes( parseInt(curSwimLineNo)+1 );
- ]]>
- </script>
- </select1>
- <button id="btn_detailpopup" class="btn5_letter6" style="left:880px; top:60px; width:86px; height:19px; ">
- <caption>스텝상세정보</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenStepDetlInfo();
- ]]>
- </script>
- <hint>
- <![CDATA[각 스텝의 상세 정보를 팝업으로 보여줍니다.]]>
- </hint>
- </button>
- <button id="btn_outline_tab" class="btn_sw" group="tab" selected="true" style="left:1130px; top:59px; width:64px; height:22px; ">
- <caption>OutLine</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( ivw_outline.window.javascript.fViewDetailInfo(OpenerKind) != false){
- preSelectedTab = "btn_outline_tab";
- cap_outlineinfo.attribute("text") = "OutLine 정보";
- ivw_outline.visible = true;
- ivw_detail.visible = false;
- }else{
- document.controls(preSelectedTab).selected = true;
- }
- ]]>
- </script>
- </button>
- <button id="btn_action_tab" class="btn_sw" group="tab" style="left:1075px; top:59px; width:54px; height:22px; ">
- <caption>OCS</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( ivw_outline.window.javascript.fViewDetailInfo(OpenerKind) != false ){
- /*
- if( btn_sizecntl.attribute("class") == "icon_left" ){
- ivw_outline.ivw_detail.grd_prcplist.attribute("width") = "837px";
- ivw_outline.ivw_detail.btn_excel.attribute("left") = "790px";
- //ivw_outline.ivw_detail.btn_sizecntl.attribute("left") = "807px";
- ivw_outline.ivw_detail.btn_sizecntl.visible = false;
- }else{
- ivw_outline.ivw_detail.grd_prcplist.attribute("width") = "1190px";
- ivw_outline.ivw_detail.btn_excel.attribute("left") = "1117px";
- ivw_outline.ivw_detail.btn_sizecntl.attribute("left") = "1162px";
- ivw_outline.ivw_detail.btn_sizecntl.visible = true;
- }
- */
- preSelectedTab = "btn_action_tab";
- cap_outlineinfo.attribute("text") = "OCS 정보";
- ivw_outline.visible = true;
- ivw_detail.visible = false;
- }else{
- document.controls(preSelectedTab).selected = true;
- }
- ]]>
- </script>
- </button>
- <button id="btn_detail_tab" class="btn_sw" group="tab" style="left:997px; top:59px; width:77px; height:22px; ">
- <caption>환자계획표</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var msg = "";
- if( preSelectedTab == "btn_action_tab" ){
- if( ivw_outline.ivw_detail.instance1.selectSingleNode("/root/main/prcp/prcplist[status = 'i' or status = 'u' or status = 'd']") != null
- || ivw_outline.ivw_detail.instance1.selectSingleNode("/root/main/form/forminfo/formlist[status = 'i' or status = 'd' or status = 'u']") != null
- ){
- msg = messageBox("저장되지 않은 정보가 존재합니다. 임시", "Q002");
- }
- }else if( preSelectedTab == "btn_outline_tab" ){
- if( ivw_outline.instance1.selectSingleNode("/root/main/steplist/info[m = 'i' or m = 'u']/stepno") != null
- || ivw_outline.instance1.selectSingleNode("/root/main/decisionlist/info[m = 'i' or m = 'u']/stepno") != null
- || ivw_outline.instance1.selectSingleNode("/root/temp/delsteplist/info/stepno") != null
- || ivw_outline.instance1.selectSingleNode("/root/temp/deldecisionlist/info/stepno") != null ){
- msg = messageBox("저장되지 않은 정보가 존재합니다. 임시", "Q002");
- }
- }
-
- if(msg == 6){
- if( model.getValue("/root/temp/getdata/authflag") == "M" ){
- btn_newver.dispatch("DOMActivate");
- }
- }else if(msg == 7){
- document.controls(preSelectedTab).selected = true;
- return false;
- }
-
- //공통코드 최초 조회 안되는 문제로 인해, 화면 visible 처리 전에 공통코드 조회하도록 위치 변경 (2011.07.04)
- if(loading_detail_YN=="N"){
- ivw_detail.window.javascript.fGetCodeList_Detail();
- loading_detail_YN="Y";
-
- }
- if( changedYN == "Y" ){ //outline과 환자계획표의 sync를 맞춤
- fSendDetailValue();
-
- ivw_detail.window.javascript.toNo = 0;
- ivw_detail.window.javascript.fInitGrigInfo();
- changedYN = "N";
- }
-
- preSelectedTab = "btn_detail_tab";
- cap_outlineinfo.attribute("text") = "환자계획표";
- ivw_outline.visible = false;
- ivw_detail.visible = true;
- ]]>
- </script>
- </button>
- <textarea id="tar_stepmemo" ref="/root/main/stepinfo/info/stepmemo" disabled="true" navindex="24" style="left:607px; top:34px; width:378px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- tar_stepmemo.attribute("height") = "50px";
- tar_stepmemo.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- tar_stepmemo.attribute("height") = "19px";
- tar_stepmemo.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var stepno = parseInt(model.getValue("/root/main/stepinfo/info/stepno"));
- var times = model.getValue("/root/main/stepinfo/info/times");
- var memo = model.getValue("/root/main/stepinfo/info/stepmemo");
- ivw_outline.model.setValue( "/root/main/steplist/info[" + stepno + "]/stepmemo", memo);
- //ivw_outline.model.setValue( "/root/main/steplist/info[" + stepno + "]/times", times);
- ivw_outline.grp_swimline.refresh();
-
- if( ivw_outline.model.getValue("/root/main/steplist/info[" + stepno + "]/m") == "" ){
- ivw_outline.model.setValue( "/root/main/steplist/info[" + stepno + "]/m", "u" );
- }
- ]]>
- </script>
- </textarea>
- <select1 id="cmb_stepnm" ref="/root/main/stepinfo/info/daynm" class="combo_search" disabled="true" appearance="minimal" style="left:1135px; top:34px; width:58px; height:19px; ">
- <choices>
- <itemset nodeset="/root/temp/oplist/op">
- <label ref="nm"/>
- <value ref="id"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var stepno = parseInt(model.getValue("/root/main/stepinfo/info/stepno"));
- var times = model.getValue("/root/main/stepinfo/info/times");
-
- ivw_outline.model.setValue( "/root/main/steplist/info[" + stepno + "]/tmpstepnm", cmb_stepnm.label);
- ivw_outline.grp_swimline.refresh();
- if(ivw_outline.model.getValue("/root/main/steplist/info[" + stepno + "]/m") != "i" ){
- ivw_outline.model.setValue( "/root/main/steplist/info[" + stepno + "]/m", "u" );
- }
- ivw_outline.window.javascript.fSetDayImage(stepno, times, ipt_times.label, cmb_stepnm.label);
- ]]>
- </script>
- </select1>
- <button id="btn_attr" class="btn_sw4" visibility="hidden" group="tab2" style="left:285px; top:5px; width:64px; height:22px; ">
- <caption>속성관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //model.makeValue("/root/main/masterinfo/info/cpgattadmin", "A");
- //model.makeValue("/root/main/masterinfo/info/stepattadmin", "");
- setParameter("cpgattadmin", "A");
- setParameter("stepattadmin", "");
- fOpenAttAdm();
- ]]>
- </script>
- </button>
- <button id="btn_mntrorder" class="btn_sw10" visibility="hidden" group="tab3" style="left:213px; top:5px; width:136px; height:22px; ">
- <caption>약속처방모니터링관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- ]]>
- </script>
- </button>
- <caption id="cap_ioflag" class="cell_1" style="left:0px; top:81px; width:85px; height:23px; ">외래/입원구분</caption>
- <select1 id="rdo_ioflagcd" ref="/root/main/masterinfo/info/ioflagcd" navindex="3" appearance="full" cellspacing="25" cols="3" overflow="visible" style="left:88px; top:83px; width:207px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 2008.06.18 pymi
- // 외래, 입원일때 day 일수 resetting
- ipt_fcstinhospdayno.dispatch("onkeyup");
- //fInitializeValue();
- ]]>
- </script>
- </select1>
- <line id="line4" class="line_2" style="x1:0px; y1:103px; x2:350px; y2:103px; "/>
- <switch id="swt_cpgmain" style="left:0px; top:105px; width:353px; height:634px; ">
- <case id="cpmaster" selected="true">
- <caption id="caption24" class="cell_1" visibility="hidden" style="left:0px; top:197px; width:85px; height:85px; ">주호소</caption>
- <caption id="cap_op" class="cell_1" style="left:0px; top:111px; width:85px; height:85px; ">
- <![CDATA[수술]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fResizeGrid("grd_op");
- ]]>
- </script>
- </caption>
- <caption id="cap_cretdd" class="cell_1" style="left:0px; top:419px; width:85px; height:23px; ">생성일</caption>
- <caption id="cap_diag" class="cell_1" style="left:0px; top:25px; width:85px; height:85px; ">
- <![CDATA[진단]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fResizeGrid("grd_diag");
- ]]>
- </script>
- </caption>
- <button id="button1" class="icon_search" navindex="5" style="left:55px; top:149px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rowcnt = grd_op.rows - grd_op.fixedRows;
- model.setValue("/root/temp/lastrowcnt", rowcnt);
- //setParameter("flag", "ICD");
- setParameter("flag", "OPCD");
- setParameter("usge", "CP");
-
- // 2008.07.17 pymi
- //modal("SPMQP01700", 1,1,1,"SPMQP01700", "/root/temp/lastrowcnt", "/root/temp/getdata/grdfocus");
- open("SPMQP01700", 1,1,1,"SPMQP01700", "/root/temp/lastrowcnt", "/root/temp/getdata/grdfocus");
- ]]>
- </script>
- </button>
- <datagrid id="grd_drop" nodeset="/root/main/dropinfo/droplist" allowuserresize="true" caption="^^사유^^caption1" colsep="^" colwidth="0, 0, 225, 0, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:87px; top:199px; width:263px; height:80px; ">
- <col ref="valuno" style="left:0px; top:23px; width:100px; height:23px; "/>
- <col ref="histseq"/>
- <col ref="valunm"/>
- <col ref="flag"/>
- <col ref="detlinfoseq"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if(event.button == 3){
- if(grd_drop.isCell(event.target) && grd_drop.mouseRow >= grd_drop.fixedrows){
- window.setPopupMenu(true, "/root/temp/popupmenu5/item", "name", "func", false);
- }else{
- window.setPopupMenu(false);
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- </datagrid>
- <caption id="cap_cpgorddeptcd" class="cell_1" style="left:0px; top:370px; width:85px; height:23px; ">진료과</caption>
- <input id="ipt_rgstrid" ref="/root/main/masterinfo/info/rgstrid" class="input_default" visibility="hidden" style="left:325px; top:466px; width:25px; height:19px; "/>
- <button id="button2" class="btn2_letter2" navindex="19" style="left:307px; top:538px; width:42px; height:19px; ">
- <caption>찾기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var maxsize = upload1.attribute("filesize");
-
- var files = window.fileDialog("open", "|", true);
- var filelist = files.split("|");
-
- if(isNull(filelist)){
- return;
- } else{
- for(var i = 0 ; i < filelist.length ; i++ ) {
- //파일 경로에서 이름을 자른다.
- var fileNM = filelist[i].split("\\");
- grd_attfile.addRow(false);
-
- grd_attfile.valueMatrix(grd_attfile.rows - 1, 1) = fileNM[fileNM.length-1]; //로컬의 파일 명
- grd_attfile.valueMatrix(grd_attfile.rows - 1, 2) = filelist[i]; //파일 데이터가 담기는 곳
- grd_attfile.valueMatrix(grd_attfile.rows - 1, 3) = "0"; //디테일 시퀀스
- grd_attfile.valueMatrix(grd_attfile.rows - 1, 4) = "false"; //체크여부
- grd_attfile.valueMatrix(grd_attfile.rows - 1, 5) = ""; //저장 후 DB에 저장된 파일경로를 받아올 인스턴스
-
-
-
- if (!checkFileSize(upload1)){
- grd_attfile.removeItem();
- messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
- }
- }
- }
- ]]>
- </script>
- </button>
- <caption id="cap_lastupdtdt" class="cell_1" style="left:176px; top:443px; width:85px; height:23px; ">최종수정일</caption>
- <button id="button3" class="btn2_letter2" style="left:307px; top:558px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var iRow = grd_attfile.row;
- if( iRow == null || iRow < 1){
- var msg = messageBox("삭제할 파일명을 ", "C002");
- return;
- } else {
- var status = grd_attfile.rowStatus(grd_attfile.row);
- if(status == 1){
- grd_attfile.deleteRow(grd_attfile.row, true);
- }else{
- /*
- if(instance1.selectSingleNode("/root/main/attfileinfo/delattach") != null){
- model.makeNode("/root/main/attfileinfo/delattach");
- }
- */
- grd_attfile.rowStatus(grd_attfile.row) = 4;
- /*
- var cpgno = model.getValue("/root/main/masterinfo/info/cpgno");
- var cpghistseq = model.getValue("/root/main/masterinfo/info/cpghistseq");
- var detlinfoseq = model.getValue("/root/main/attfileinfo/attach[" + grd_attfile.row + "]/detlinfoseq");
-
- var delFileInfo = grd_attfile.getUpdateData();
- var header =delFileInfo.split("▩")[0];
- var data = delFileInfo.split("▩")[1];
- header = header + "▦cpgno▦cpghistseq▦detlinfoseq▩";
- data = data + "▦" + cpgno + "▦" + cpghistseq + "▦" + detlinfoseq + "▩";
- model.makeValue("/root/main/attfileinfo/delattach", header+data);
-
- //submit("TXMQP00602");
- */
- }
- }
- ]]>
- </script>
- </button>
- <line id="line10" class="line_2" style="x1:0px; y1:109px; x2:350px; y2:109px; "/>
- <caption id="cap_attfile" class="cell_1" style="left:0px; top:534px; width:85px; height:96px; ">첨부파일</caption>
- <button id="button19" class="icon_search" navindex="6" style="left:55px; top:232px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //drop cp별 관리를 위한 화면 처리로직 추가. 2008.06.20 LWS
- setParameter("srchdrop", "Y");
- var rowcnt = grd_drop.rows - grd_drop.fixedRows;
- setParameter("lastrowcnt", rowcnt);
- modal("SMMQP02600", "",1,1,"SMMQP02600", "/root/temp/lastrowcnt", "/root/temp/getdata/grdfocus");
-
- clearParameter("srchdrop");
- //open("SMMQP02600");
- ]]>
- </script>
- </button>
- <caption id="cap_drop" class="cell_1" style="left:0px; top:197px; width:85px; height:85px; ">
- <![CDATA[Drop]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fResizeGrid("grd_drop");
- ]]>
- </script>
- </caption>
- <caption id="cap_appdd" class="cell_1" style="left:176px; top:419px; width:85px; height:23px; ">적용일</caption>
- <line id="line22" class="line_2" style="x1:0px; y1:417px; x2:350px; y2:417px; "/>
- <button id="button4" class="btn2_letter2" style="left:307px; top:578px; width:42px; height:19px; ">
- <caption>다운</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //저장한 파일을 다운로드한다.
- if( !(grd_attfile.row >= grd_attfile.fixedRows) ) {
- messageBox("다운로드 할 파일을 ", "C002");
- return;
- } else if( model.getValue("/root/main/attfileinfo/attach[" + grd_attfile.row + "]/check") != "true" ) {
- messageBox("저장되지 ", "E007");
- return;
- } else {
- fDownLoadFile( grd_attfile.row );
- }
- ]]>
- </script>
- </button>
- <input id="ipt_rgstrnm" ref="/root/main/masterinfo/info/rgstrnm" class="input_default" editable="false" style="left:263px; top:468px; width:86px; height:19px; "/>
- <line id="line12" class="line_2" style="x1:0px; y1:281px; x2:350px; y2:281px; "/>
- <line id="line23" class="line_2" style="x1:0px; y1:464px; x2:350px; y2:464px; "/>
- <button id="button5" class="icon_search" navindex="6" style="left:54px; top:233px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //drop cp별 관리를 위한 화면 처리로직 추가. 2008.06.20 LWS
- setParameter("srchdrop", "Y");
- var rowcnt = grd_drop.rows - grd_drop.fixedRows;
- setParameter("lastrowcnt", rowcnt);
- modal("SMMQP02600", "",1,1,"SMMQP02600", "/root/temp/lastrowcnt", "/root/temp/getdata/grdfocus");
-
- clearParameter("srchdrop");
- //open("SMMQP02600");
- ]]>
- </script>
- </button>
- <datagrid id="grd_attfile" nodeset="/root/main/attfileinfo/attach" caption="파일명^경로^caption1^caption2^path" colsep="^" colwidth="175, 100, 30, 100, 27" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:87px; top:535px; width:217px; height:95px; ">
- <col ref="attfilenm"/>
- <col ref="file" visibility="hidden"/>
- <col ref="detlinfoseq" visibility="hidden"/>
- <col ref="check" type="checkbox" visibility="hidden"/>
- <col ref="path" visibility="hidden"/>
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- //grd_attfile.colDisabled(0) = true;
- ]]>
- </script>
- </datagrid>
- <caption id="cap_exclusion" class="cell_1" style="left:0px; top:283px; width:85px; height:85px; ">
- <![CDATA[Exclusion
- 사유]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fResizeGrid("grd_exclusion");
- ]]>
- </script>
- </caption>
- <datagrid id="grd_cc" nodeset="/root/main/ccinfo/cclist" visibility="hidden" caption="주호소코드^주호소명^caption1^caption2^caption3" colsep="^" colwidth="80, 145, 100, 100, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:87px; top:199px; width:263px; height:80px; ">
- <col ref="termcd" style="left:0px; top:23px; width:100px; height:23px; "/>
- <col ref="termengnm"/>
- <col ref="termhngnm" visibility="hidden"/>
- <col ref="termflag" visibility="hidden"/>
- <col ref="detlinfoseq"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if(event.button == 3){
- if(grd_cc.isCell(event.target) && grd_cc.mouseRow >= grd_cc.fixedrows){
- window.setPopupMenu(true, "/root/temp/popupmenu3/item", "name", "func", false);
- }else{
- window.setPopupMenu(false);
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_exclusion" nodeset="/root/main/exclusion/exclist" allowuserresize="true" caption="^^사유^^caption1" colsep="^" colwidth="0, 0, 225, 0, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:87px; top:285px; width:263px; height:80px; ">
- <col ref="valuno" style="left:0px; top:23px; width:100px; height:23px; "/>
- <col ref="histseq"/>
- <col ref="valunm"/>
- <col ref="flag"/>
- <col ref="detlinfoseq"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if(event.button == 3){
- if(grd_exclusion.isCell(event.target) && grd_exclusion.mouseRow >= grd_exclusion.fixedrows){
- window.setPopupMenu(true, "/root/temp/popupmenu4/item", "name", "func", false);
- }else{
- window.setPopupMenu(false);
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_op" nodeset="/root/main/opinfo/oplist" allowuserresize="true" autoresize="true" caption="수술코드^수술명^caption1^caption2^caption3" colsep="^" colwidth="80, 145, 100, 100, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:87px; top:112px; width:263px; height:80px; ">
- <col ref="termcd" style="left:0px; top:23px; width:100px; height:23px; "/>
- <col ref="termengnm"/>
- <col ref="termhngnm" visibility="hidden"/>
- <col ref="termflag" visibility="hidden"/>
- <col ref="detlinfoseq"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if(event.button == 3){
- if(grd_op.isCell(event.target) && grd_op.mouseRow >= grd_op.fixedrows){
- window.setPopupMenu(true, "/root/temp/popupmenu2/item", "name", "func", false);
- }else{
- window.setPopupMenu(false);
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- </datagrid>
- <line id="line15" class="line_2" style="x1:0px; y1:440px; x2:350px; y2:440px; "/>
- <caption id="cap_swimlineno" class="cell_1" style="left:176px; top:394px; width:85px; height:23px; ">스윔라인 수</caption>
- <line id="line18" class="line_2" style="x1:0px; y1:532px; x2:350px; y2:532px; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:392px; x2:350px; y2:392px; "/>
- <line id="line19" class="line_2" style="x1:0px; y1:195px; x2:350px; y2:195px; "/>
- <upload id="upload1" nodeset="/root/main/attfileinfo/attach/file" ext="zip" filecount="5" filesize="5242880" style="left:309px; top:604px; width:20px; height:20px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:489px; x2:350px; y2:489px; "/>
- <datagrid id="grd_diag" nodeset="/root/main/diaginfo/diaglist" allowuserresize="true" autoresize="true" caption="진단코드^진단명^caption1^caption2^caption3" colsep="^" colwidth="80, 145, 100, 101, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:87px; top:26px; width:263px; height:80px; ">
- <col ref="termcd" style="left:0px; top:23px; width:100px; height:23px; "/>
- <col ref="termengnm"/>
- <col ref="termhngnm" visibility="hidden"/>
- <col ref="termflag" visibility="hidden"/>
- <col ref="detlinfoseq"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if(event.button == 3){
- if(grd_diag.isCell(event.target) && grd_diag.mouseRow >= grd_diag.fixedrows){
- window.setPopupMenu(true, "/root/temp/popupmenu1/item", "name", "func", false);
- }else{
- window.setPopupMenu(false);
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- </datagrid>
- <line id="line6" class="line_2" style="x1:0px; y1:368px; x2:350px; y2:368px; "/>
- <button id="button46" class="icon_search" navindex="4" style="left:54px; top:61px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rowcnt = grd_diag.rows - grd_diag.fixedRows;
- model.setValue("/root/temp/lastrowcnt", rowcnt);
- setParameter("flag", "ICD"); //ICD10 or 진단코드
- setParameter("usge", "CP");
-
- // 2008.07.17 pymi
- //modal("SPMQP01600", 1,1,1,"SPMQP01600", "/root/temp/lastrowcnt", "/root/temp/getdata/grdfocus"); //마지막 row no
- open("SPMQP01600" , 1,1,1,"SPMQP01600", "/root/temp/lastrowcnt", "/root/temp/getdata/grdfocus");
-
- ]]>
- </script>
- </button>
- <button id="button14" class="icon_search" navindex="7" style="left:59px; top:337px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter("srchexcls", "Y");
- var rowcnt = grd_exclusion.rows - grd_exclusion.fixedRows;
- setParameter("lastrowcnt", rowcnt);
- modal("SMMQP02600", "",1,1,"SMMQP02600", "/root/temp/lastrowcnt", "/root/temp/getdata/grdfocus");
-
- clearParameter("srchexcls");
- ]]>
- </script>
- </button>
- <caption id="cap_fcstinhospdayno" class="cell_1" style="left:0px; top:394px; width:85px; height:23px; ">재원일수</caption>
- <line id="line9" class="line_3" style="x1:0px; y1:630px; x2:350px; y2:630px; "/>
- <caption id="cap_memo" class="cell_1" style="left:0px; top:491px; width:85px; height:41px; ">메모</caption>
- <caption id="cap_rgstrnm" class="cell_1" style="left:191px; top:467px; width:70px; height:23px; ">등록자</caption>
- <caption id="cap_todd" class="cell_1" style="left:0px; top:443px; width:85px; height:23px; ">종료일</caption>
- <caption id="cap_reqrlist" class="cell_1" style="left:0px; top:467px; width:85px; height:23px; ">요청자</caption>
- <caption id="cap_cpgtypecd" class="cell_1" style="left:0px; top:0px; width:85px; height:23px; ">공유구분</caption>
- <select1 id="cmb_cpgtypecd" ref="/root/main/masterinfo/info/cpgtypecd" navindex="4" appearance="full" cols="2" overflow="visible" style="left:88px; top:3px; width:142px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>과내공유</label>
- <value>D</value>
- </item>
- <item>
- <label>병원공유</label>
- <value>H</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fCngCpgType("T");
- ]]>
- </script>
- </select1>
- <line id="line31" class="line_2" style="x1:0px; y1:23px; x2:350px; y2:23px; "/>
- </case>
- <case id="cpgmaster">
- <datagrid id="grd_popup" nodeset="/root/main/inqrinfo/inqrheader" allowuserresize="true" autoresize="true" caption="제목^Guideline" colsep="^" colwidth="100, 145" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:87px; top:275px; width:263px; height:98px; ">
- <col ref="title"/>
- <col ref="guide"/>
- </datagrid>
- <datagrid id="grd_listsrch" nodeset="/root/main/scrninfo/mntrlist" allowuserresize="true" autoresize="true" caption="제목^코드명^caption1^caption3" colsep="^" colwidth="243, 40, 0, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:87px; top:73px; width:263px; height:98px; ">
- <col ref="slipnm" style="left:0px; top:23px; width:100px; height:23px; "/>
- <col visibility="hidden"/>
- <col ref="sliphistno" visibility="hidden"/>
- <col ref="slipno" visibility="hidden"/>
- </datagrid>
- <caption id="caption10" class="cell_1" style="left:0px; top:275px; width:85px; height:100px; ">
- <![CDATA[팝업관리]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fCpgResizeGrid("grd_popup");
- ]]>
- </script>
- </caption>
- <caption id="caption11" class="cell_1" style="left:0px; top:376px; width:85px; height:100px; ">
- <![CDATA[제한시간관리]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fCpgResizeGrid("grd_limitime");
- ]]>
- </script>
- </caption>
- <datagrid id="grd_limitime" nodeset="/root/main/limtminfo/limheaderinfo" allowuserresize="true" autoresize="true" caption="스탭명^기준시점^limno^caption3" colsep="^" colwidth="80, 165, 0, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:87px; top:376px; width:263px; height:98px; ">
- <col ref="stepnm" style="left:0px; top:23px; width:100px; height:23px; "/>
- <col ref="title"/>
- <col ref="limno" visibility="hidden"/>
- <col ref="limhistno" visibility="hidden"/>
- </datagrid>
- <button id="button21" class="icon_search" navindex="4" style="left:55px; top:318px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //model.makeValue("/root/main/masterinfo/info/cpgattadmin", "B");
- //model.makeValue("/root/main/masterinfo/info/stepattadmin", "");
- setParameter("cpgattadmin", "B");
- setParameter("stepattadmin", "");
- fOpenAttAdm();
- /*
- CPGadminObj = getOpenWindow("SPMQP00300");
- if (CPGadminObj != null) {
- CPGadminObj.window.javascript.model.dispatch("xforms-ready");
- } else {
- open("SPMQP00300", "", null, null, "SPMQP00300", "", "", "", false);
- }
- */
- ]]>
- </script>
- </button>
- <caption id="caption7" class="cell_1" style="left:0px; top:73px; width:85px; height:100px; ">
- <![CDATA[대상자탐색]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fCpgResizeGrid("grd_listsrch");
- ]]>
- </script>
- </caption>
- <button id="button22" class="icon_search" navindex="4" style="left:55px; top:442px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //model.makeValue("/root/main/masterinfo/info/cpgattadmin", "C");
- //model.makeValue("/root/main/masterinfo/info/stepattadmin", "");
- setParameter("cpgattadmin", "C");
- setParameter("stepattadmin", "");
- fOpenAttAdm();
- ]]>
- </script>
- </button>
- <caption id="caption8" class="cell_1" style="left:0px; top:174px; width:85px; height:100px; ">
- <![CDATA[환자상태감시]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fCpgResizeGrid("grd_patchk");
- ]]>
- </script>
- </caption>
- <button id="button20" class="icon_search" navindex="4" style="left:55px; top:242px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //model.makeValue("/root/main/masterinfo/info/cpgattadmin", "A");
- //model.makeValue("/root/main/masterinfo/info/stepattadmin", "");
- setParameter("cpgattadmin", "D"); //2009.02.16 JJE A->D로 수정 속성팝업에서 해당목적으로 자동 셋팅하기 위함
- setParameter("stepattadmin", "");
- fOpenAttAdm();
- ]]>
- </script>
- </button>
- <datagrid id="grd_patchk" nodeset="/root/main/mntrinfo/mntrlist" allowuserresize="true" autoresize="true" caption="제목^스텝명^코드명^caption1^caption3" colsep="^" colwidth="175, 68, 40, 0, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:87px; top:174px; width:263px; height:98px; ">
- <col ref="slipnm" style="left:0px; top:23px; width:100px; height:23px; "/>
- <col ref="stepnm"/>
- <col visibility="hidden"/>
- <col ref="sliphistno" visibility="hidden"/>
- <col ref="slipno" visibility="hidden"/>
- </datagrid>
- <caption id="cap_swimlineno2" class="cell_1" style="left:0px; top:50px; width:85px; height:22px; ">스윔라인 수</caption>
- <caption id="cap_fcstinhospdayno2" class="cell_1" style="left:176px; top:50px; width:85px; height:22px; ">재원일수</caption>
- <caption id="cap_cretdd2" class="cell_1" style="left:0px; top:478px; width:85px; height:23px; ">생성일</caption>
- <caption id="cap_appdd2" class="cell_1" style="left:176px; top:478px; width:85px; height:23px; ">적용일</caption>
- <caption id="cap_todd2" class="cell_1" style="left:0px; top:503px; width:85px; height:23px; ">종료일</caption>
- <caption id="cap_lastupdtdt2" class="cell_1" style="left:176px; top:503px; width:85px; height:23px; ">최종수정일</caption>
- <button id="button6" class="icon_search" navindex="4" style="left:55px; top:134px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //model.makeValue("/root/main/masterinfo/info/cpgattadmin", "A");
- //model.makeValue("/root/main/masterinfo/info/stepattadmin", "");
- setParameter("cpgattadmin", "A");
- setParameter("stepattadmin", "");
- fOpenAttAdm();
- ]]>
- </script>
- </button>
- <caption id="cap_cpgorddeptcd2" class="cell_1" style="left:0px; top:25px; width:85px; height:23px; ">진료과</caption>
- <caption id="cap_memo2" class="cell_1" style="left:0px; top:553px; width:85px; height:78px; ">
- <![CDATA[메모]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fResizeGrid("grd_diag");
- ]]>
- </script>
- </caption>
- <caption id="cap_rgstrnm2" class="cell_1" style="left:191px; top:528px; width:70px; height:23px; ">등록자</caption>
- <input id="ipt_rgstrnm2" ref="/root/main/masterinfo/info/rgstrnm" class="input_default" editable="false" style="left:263px; top:530px; width:86px; height:19px; "/>
- <caption id="cap_reqrlist2" class="cell_1" style="left:0px; top:528px; width:85px; height:23px; ">요청자</caption>
- <line id="line30" class="line_3" style="x1:0px; y1:630px; x2:350px; y2:630px; "/>
- <line id="line24" class="line_2" style="x1:0px; y1:501px; x2:350px; y2:501px; "/>
- <line id="line16" class="line_2" style="x1:0px; y1:172px; x2:345px; y2:172px; "/>
- <line id="line17" class="line_2" style="x1:0px; y1:272px; x2:345px; y2:272px; "/>
- <line id="line20" class="line_2" style="x1:0px; y1:374px; x2:345px; y2:374px; "/>
- <line id="line25" class="line_2" style="x1:0px; y1:48px; x2:345px; y2:48px; "/>
- <line id="line27" class="line_2" style="x1:0px; y1:551px; x2:345px; y2:551px; "/>
- <line id="line28" class="line_2" style="x1:0px; y1:526px; x2:345px; y2:526px; "/>
- <line id="line29" class="line_2" style="x1:0px; y1:476px; x2:350px; y2:476px; "/>
- <line id="line14" class="line_2" style="x1:0px; y1:23px; x2:345px; y2:23px; "/>
- <line id="line26" class="line_2" style="x1:0px; y1:71px; x2:345px; y2:71px; "/>
- <caption id="caption2" class="cell_1" style="left:231px; top:0px; width:63px; height:23px; ">평가용</caption>
- <bool id="bool1" navindex="5" checkvalue="Y,N" ref="/root/main/masterinfo/info/valusgeyn" style="left:270px; top:2px; width:25px; height:20px; ">
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.setValue("/root/main/masterinfo/info/valusgeyn", "Y");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- model.setValue("/root/main/masterinfo/info/valusgeyn", "N");
- ]]>
- </script>
- </bool>
- <button id="btn_valunm" class="btn2_letter3" navindex="19" style="left:296px; top:2px; width:53px; height:19px; ">
- <caption>평가명*</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( grp_inputvalunm.attribute("height") == 0 ){
- grp_inputvalunm.attribute("height") = 115;
- }else{
- grp_inputvalunm.attribute("height") = 0;
- }
- ]]>
- </script>
- </button>
- <caption id="cap_cpgtypecd2" class="cell_1" style="left:0px; top:0px; width:85px; height:23px; ">공유구분</caption>
- <select1 id="cmb_cpgtypecd2" ref="/root/main/masterinfo/info/cpgtypecd" navindex="4" appearance="full" cols="2" overflow="visible" style="left:88px; top:2px; width:142px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>과내공유</label>
- <value>D</value>
- </item>
- <item>
- <label>병원공유</label>
- <value>H</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fCngCpgType("T");
- ]]>
- </script>
- </select1>
- </case>
- </switch>
- <line id="line21" class="line_2" style="x1:0px; y1:79px; x2:350px; y2:79px; "/>
- <input id="ipt_swimlineno" ref="/root/main/masterinfo/info/swimlineno" class="input_default" disabled="true" navindex="9" imemode="disabled" format="###" style="left:264px; top:502px; width:86px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var orgSwimLineNo = ivw_outline.model.getValue("/root/main/outlineinfo/info/swimlineno");
- if( !isNull(orgSwimLineNo) && orgSwimLineNo != "0" ){
- if( messageBox("Outline을", "Q010") != 6 ) return; //초기화여부
- }
-
- fCreateOutLineView();
-
- //if( cpgFlagCd == "02" ) fSettingDayComboList();
-
- //기본 스텝 셋을 자동으로 그려준다 (2009.03.05)
- fCreateSteps(1);
-
- /*
- if(model.getValue("/root/main/masterinfo/info/fcstinhospdayno") == ""){
- model.setValue("/root/main/masterinfo/info/fcstinhospdayno", model.getValue("/root/main/masterinfo/info/swimlineno"));
- ipt_fcstinhospdayno.refresh();
- }*/
- if( cpgFlagCd == "01" && model.getValue("/root/main/masterinfo/info/swimlineno") != ""){
- ipt_swimlineno.disabled = true;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- //CP만 재원일수가 입력됨.
- if(event.keyCode == "13") {
- var orgSwimLineNo = ivw_outline.model.getValue("/root/main/outlineinfo/info/swimlineno");
- if( !isNull(orgSwimLineNo) && orgSwimLineNo != "0" ){
- if( messageBox("Outline을", "Q010") != 6 ) return; //초기화여부
- }
-
- setInputNodeCurText();
- fCreateOutLineView();
-
- //if( cpgFlagCd == "02" ) fSettingDayComboList();
-
- //기본 스텝 셋을 자동으로 그려준다 (2009.03.05)
- fCreateSteps(1);
-
- if( cpgFlagCd == "01" ){
- if(model.getValue("/root/main/masterinfo/info/fcstinhospdayno") == ""){
- model.setValue("/root/main/masterinfo/info/fcstinhospdayno", model.getValue("/root/main/masterinfo/info/swimlineno"));
- ipt_fcstinhospdayno.refresh();
- }
- if(model.getValue("/root/main/masterinfo/info/swimlineno") != ""){
- ipt_swimlineno.disabled = true;
- }
- }
- }
- ]]>
- </script>
- </input>
- <input id="ipt_cretdd" ref="/root/main/masterinfo/info/cretdd" class="input_default" navindex="13" inputtype="date" style="left:88px; top:526px; width:86px; height:19px; "/>
- <input id="ipt_fcstinhospdayno" ref="/root/main/masterinfo/info/fcstinhospdayno" class="input_default" navindex="11" imemode="disabled" format="###" style="left:88px; top:502px; width:86px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSettingDayComboList(); // 스윔라인 존재 여부와 상관 없이 무조건 콤보 세팅 (20100120)
-
- //CP만 재원일수가 입력됨.
- //if( cpgFlagCd == "01" ){
- var swimlineCnt = model.getValue("/root/main/masterinfo/info/swimlineno");
- if( swimlineCnt == "" || swimlineCnt == "0" ){
- var dayno = model.getValue("/root/main/masterinfo/info/fcstinhospdayno");
- model.setValue("/root/main/masterinfo/info/swimlineno", dayno);
- ipt_swimlineno.refresh();
- setInputNodeCurText();
- fCreateOutLineView();
-
- //if( messageBox("Outline을", "Q010") != 6 ) return; //초기화여부
- //기본 스텝 셋을 자동으로 그려준다 (2009.03.05) 2009.03.05 (+)
- if( ivw_outline.instance1.selectSingleNode("/root/main/steplist/info") == null ){
- fCreateSteps(1);
- }
- }
- //}
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
-
- //CP만 재원일수가 입력됨.
- //if( cpgFlagCd == "01" ){
- if(event.keyCode == "13") {
- model.setValue("/root/main/masterinfo/info/fcstinhospdayno", ipt_fcstinhospdayno.currentText);
- ipt_fcstinhospdayno.dispatch("xforms-value-changed");
- model.setfocus("ipt_cretdd", true);
- /*
- var swimlineCnt = model.getValue("/root/main/masterinfo/info/swimlineno");
-
- if( isNull(swimlineCnt) || swimlineCnt == "0" ){
- fSettingDayComboList(); // 스윔라인 존재 여부와 상관 없이 무조건 콤보 세팅 (20100120)
-
- var dayno = model.getValue("/root/main/masterinfo/info/fcstinhospdayno");
- model.setValue("/root/main/masterinfo/info/swimlineno", dayno);
-
- setInputNodeCurText();
- model.setValue("/root/main/masterinfo/info/swimlineno", model.getValue("/root/main/masterinfo/info/fcstinhospdayno"));
- ipt_swimlineno.refresh();
- fCreateOutLineView();
-
- //if( messageBox("Outline을", "Q010") != 6 ) return; //초기화여부
- //기본 스텝 셋을 자동으로 그려준다 (2009.03.05)
- if( ivw_outline.instance1.selectSingleNode("/root/main/steplist/info") == null ){
- fCreateSteps(1);
- }
- }
- */
- }
- //}
- ]]>
- </script>
- </input>
- <select1 id="cmb_cpgorddeptcd" ref="/root/main/masterinfo/info/cpgorddeptcd" class="combo_search" navindex="8" appearance="minimal" editmode="search" style="left:88px; top:477px; width:262px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if(cpgFlagCd == "01")
- model.setFocus("ipt_fcstinhospdayno");
- else
- model.setFocus("ipt_swimlineno");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //원래 진료과와 선택한 진료과가 다르면, 진료과변경여부 instance에 "Y" 셋팅
- if( model.getValue("/root/temp/oldcpgorddeptcd") != model.getValue("/root/main/masterinfo/info/cpgorddeptcd") ){
- model.setValue("/root/temp/deptchngyn", "Y");
- }else{
- model.setValue("/root/temp/deptchngyn", "N");
- }
- //요청번호:1580 진료과 멀티 선택 (병원용)
- fCngCpgType("D");
-
- ]]>
- </script>
- </select1>
- <input id="ipt_appdd" ref="/root/main/masterinfo/info/appdd" class="input_default" navindex="14" inputtype="date" style="left:264px; top:526px; width:86px; height:19px; "/>
- <input id="ipt_lastupdtdt" ref="/root/main/masterinfo/info/lastupdtdt" class="input_default" navindex="16" inputtype="date" style="left:264px; top:550px; width:86px; height:19px; "/>
- <input id="ipt_todd" ref="/root/main/masterinfo/info/todd" class="input_default" navindex="15" inputtype="date" style="left:88px; top:550px; width:86px; height:19px; "/>
- <select1 id="cmb_reqrlist" ref="/root/main/reqrlist/reqrid" appearance="minimal" editmode="input" style="left:88px; top:574px; width:67px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/reqrlist/list">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //var iFcs = cmb_reqrlist.focusIndex + 1;
- //model.setValue("/root/main/reqrlist/reqrid", model.getValue("/root/main/reqrlist/list[" + iFcs + "]/userid"));
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- //model.setFocus("ipt_reqrnm");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == "13") {
- btn_srchreqr.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </select1>
- <textarea id="txt_memo" ref="/root/main/masterinfo/info/cpgmemo" navindex="18" style="left:88px; top:598px; width:262px; height:39px; "/>
- <button id="btn_srchreqr" class="icon_search" navindex="17" style="left:157px; top:576px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.removeNodeset("/root/main/tempuserinfo");
- model.makeValue("/root/main/userpopupinfo/param", "_OneS");
- model.makeValue("/root/main/userpopupinfo/flag", "usernm");
- model.makeValue("/root/main/userpopupinfo/searchitem", cmb_reqrlist.label );
-
- modal("../../userdeptinfoweb/xrw/SPZSU10103", "", "200", "200", "SPZSU10103","/root/main/userpopupinfo","/root/main/temp");
-
- var ref = "/root/main/tempuserinfo";
- model.makeNode(ref);
-
- var iParam = getParameter("SPZSU10103_");
- setCSVToNode(ref, iParam, "list");
-
- var totalItemCnt = cmb_reqrlist.length + 1;
- var nodeList = instance1.selectNodes(ref+"/list");
- for(var i=0; i<nodeList.length; i++){
- var node = nodeList.item(i);
- var id = node.selectSingleNode("userid");
- var nm = node.selectSingleNode("usernm");
-
- model.makeNode("/root/main/reqrlist/list[" + totalItemCnt + "]");
- model.makeValue("/root/main/reqrlist/list[" + totalItemCnt + "]/userid", id.value);
- model.makeValue("/root/main/reqrlist/list[" + totalItemCnt + "]/usernm", nm.value);
- model.makeValue("/root/main/reqrlist/list[" + totalItemCnt + "]/flag", "U01");
- model.makeValue("/root/main/reqrlist/list[" + totalItemCnt + "]/detlinfoseq", "");
- model.makeValue("/root/main/reqrlist/list[" + totalItemCnt + "]/m", "i");
- totalItemCnt++;
- }
- clearParameter("SPZSU10103_");
- model.removeNodeset("/root/main/userpopupinfo");
- cmb_reqrlist.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_delreqr" class="icon_minus" style="left:176px; top:576px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //var reqrid = model.getValue("/root/main/reqrlist/reqrid");
- var iFcs = cmb_reqrlist.focusIndex + 1;
- if( cmb_reqrlist.focusIndex < 0 ){
- var msg = messageBox("삭제할 요청자를 ", "C002");
- return;
- } else {
- if(model.getValue("/root/main/reqrlist/list[" + iFcs + "]/m") != "i"){
- model.setValue("/root/main/reqrlist/list[" + iFcs + "]/m", "d");
- fSaveCPGInfo();
- }
- model.removeNodeset("/root/main/reqrlist/list[m = 'd']");
- model.setValue("/root/main/reqrlist/reqrid", "");
- cmb_reqrlist.refresh();
- }
-
- cmb_reqrlist.deselect();
- ]]>
- </script>
- <help>
- <![CDATA[삭제할 요청자를 선택해주세요.]]>
- </help>
- </button>
- <caption id="cap_day" class="cell_1" style="left:988px; top:33px; width:50px; height:23px; ">DAY</caption>
- <caption id="cap_stepmemo" class="cell_1" style="left:524px; top:33px; width:80px; height:23px; ">STEP 개요</caption>
- <group id="grp_cpgorddeptinfo" visibility="hidden" style="left:5px; top:220px; width:345px; height:255px; border-style:solid; ">
- <datagrid id="grd_cpgorddeptinfo" nodeset="/root/main/orddeptlist/dept" visibility="hidden" caption="^caption2^진료과를 선택하세요." colsep="^" colwidth="21, 0, 176" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:-1px; width:339px; height:250px; ">
- <col checkvalue="Y,N" ref="checkyn" type="checkbox"/>
- <col ref="deptcd"/>
- <col ref="depthngnm"/>
- </datagrid>
- <select id="checkbox1" ref="/root/temp/multideptcdlist" overflow="scroll" scroll="vertical" appearance="full" cols="2" sep="," style="left:0px; top:4px; width:342px; height:248px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/main/orddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // /root/temp/multideptcdlist
-
- ]]>
- </script>
- </select>
- </group>
- <button id="btn_getdept" class="btn2_letter2" navindex="8" visibility="hidden" style="left:308px; top:477px; width:42px; height:19px; ">
- <caption>선택*</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( grp_cpgorddeptinfo.visible == false ){
- grp_cpgorddeptinfo.visible = true;
- btn_getdept.attribute("text") = "닫기";
- btn_getdept.refresh();
- }else{
- grp_cpgorddeptinfo.visible = false;
- //var nodelist = instance1.selectNodes( "/root/main/orddeptlist/dept[checkyn='Y']" );
- if( !isNull(model.getValue("/root/temp/multideptcdlist")) ){
- btn_getdept.attribute("text") = "선택";
-
- //@@
- var deptcd_tmp = model.getValue("/root/temp/multideptcdlist").split(",");
- var deptnm_tmp = "";
- var multideptnmlist = "";
- for(var i=0; i < deptcd_tmp.length; i++){
- deptnm_tmp = model.getValue( "/root/main/orddeptlist/dept[deptcd='"+deptcd_tmp[i]+"']/depthngnm" );
- multideptnmlist = multideptnmlist + deptnm_tmp + ",";
- }
- multideptnmlist = multideptnmlist.substr(0, multideptnmlist.length-1);
- model.setValue("/root/temp/multideptnmlist", multideptnmlist);
- ipt_cpgorddeptnm.refresh();
-
- }else{
- btn_getdept.attribute("text") = "선택*";
- }
- btn_getdept.refresh();
- }
- ]]>
- </script>
- </button>
- <group id="grp_inputvalunm" style="left:355px; top:190px; width:264px; height:112px; background-color:#ffffff; border-color:#000000; border-style:none; ">
- <shape id="roundrect2" class="roundrect_btnset" appearance="roundrect" style="left:2px; top:1px; width:258px; height:109px; border-width:3; "/>
- <button id="button11" class="btn2_letter2" style="left:210px; top:85px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( !isNull(model.getValue("/root/main/masterinfo/info/valunm")) ){
- btn_valunm.attribute("text") = "평가명";
- }
- grp_inputvalunm.attribute("height") = 0;
- ]]>
- </script>
- </button>
- <img id="img2" src="../../../com/commonweb/images/icon_n.gif" style="left:7px; top:10px; width:10px; height:13px; background-stretch:stretch; "/>
- <caption id="caption3" style="left:20px; top:5px; width:231px; height:28px; ">평가명을 입력해주세요.</caption>
- <textarea id="textarea1" ref="/root/main/masterinfo/info/valunm" style="left:22px; top:30px; width:230px; height:50px; "/>
- </group>
- <input id="ipt_cpgorddeptnm" ref="/root/temp/multideptnmlist" visibility="hidden" editable="false" style="left:88px; top:477px; width:217px; height:19px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- btn_getdept.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_cpgorddeptcd" ref="/root/temp/multideptcdlist" visibility="hidden" editable="false" style="left:88px; top:477px; width:32px; height:19px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- btn_getdept.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_essprcpinfo" class="btn5_letter6" visibility="hidden" style="left:791px; top:60px; width:86px; height:19px; ">
- <caption>필수처방정보</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SPMMP04100");
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:755px; width:1195px; height:27px; ">
- <button id="button8" class="btn4_letter2" visibility="hidden" style="left:72px; top:4px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( fDelCPG() != false ){
- btn_initialize.dispatch("DOMActivate");
- model.resetInstanceNode("/root/temp/copynodeset/masterinfo");
- }
- ]]>
- </script>
- </button>
- <button id="btn_allInfoSave" class="btn4_letter2" style="left:1137px; top:5px; width:56px; height:22px; ">
- <caption>등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/main/masterinfo/info/todd") <= getCurrentDate()){
- messageBox(cpgFlagNM + " 삭제를 하시려면 저장버튼을", "C002");
- return;
- }
-
- if( fSaveDataCheck( "master" ) == false ) {
- return;
- }
- var appDate = model.getValue("/root/main/masterinfo/info/appdd");
- if( isNull(appDate) ){
- var msg = messageBox("오늘 일자로", "Q014");
- }else{
- var msg = messageBox(appDate.substr(4,2)+"월 "+appDate.substr(6,2)+"일부터 진료프로그램에서 사용가능하게 됩니다.\n", "Q014");
- }
- if( msg != "6" ){
- if( isNull(appDate) ){
- messageBox("적용일을", "C001");
- }
- return;
- }else{
- if( isNull(appDate) ){
- model.setValue("/root/main/masterinfo/info/appdd", getCurrentDate());
- }
- }
-
- var cpgno = model.getValue("/root/main/masterinfo/info/cpgno");
- var ver = model.getValue("/root/main/masterinfo/info/cpghistseq");
- var tmpyn = model.getValue("/root/main/masterinfo/info/tmpyn");
- var str = "N";
- model.setValue("/root/temp/oldcpgno" , cpgno);
- model.setValue("/root/temp/oldcpghistseq" , ver);
- model.setValue("/root/temp/oldtmpyn" , tmpyn);
- model.setValue("/root/temp/saveflag", "S");
- model.setValue("/root/main/masterinfo/info/tmpyn", "N");
- model.setValue("/root/temp/mstatus", "i");
-
- str = "Q";
- if( !isNull(ver) ){
- saveIndxlist = "▩▦▦▦▦▦▦▦▦▦▦"; //새로운 색인 저장을 막는다
- fDelCPG(); //현재 버전 데이터를 삭제처리 하기위해 현재 cp정보를 컬럼에 따로 담음
- // "/root/main/delmasterinfo/" + delcpgno , delcpghistseq , delcpgflagcd
- //model.setValue("/root/main/masterinfo/info/cpghistseq", ""); //MAX+1하기 위해 비워 보낸다
- }
-
- if( ivw_outline.ivw_detail.visible == true && !isNull(cpgno) ){
- OcsSaveYN = "Y";
- }
-
- fSettingStatus();
- if( fSaveCPGInfo() == false ){
- //원래 cpgno, cpghistseq를 복원 (2010.05.20 JJE)
- model.setValue("/root/main/masterinfo/info/cpgno", cpgno);
- model.setValue("/root/main/masterinfo/info/cpghistseq", ver);
- model.setValue("/root/main/masterinfo/info/tmpyn", tmpyn);
- return;
- }
- //grp_inputcpname.visible = false;
- cmb_cpgorddeptcd.disabled = true;
-
- if(instance1.selectSingleNode("/root/temp/tempnode/prms/newsetno") != null){
- ivw_outline.window.javascript.fSetStepSetNo(); //바뀐 셋번호를 다시 세팅해준다
- model.resetInstanceNode("/root/temp/tempnode");
- }
-
-
- if( ivw_outline.ivw_detail.visible == true && !isNull(cpgno) ){
- ivw_outline.ivw_detail.window.javascript.fExePrmsSetInfo(str);
- changedYN = "Y";
- }
- model.refresh();
- //closeLoadingBar(); //loading 메세지 닫기
-
- //색인팝업이 열려있는 경우, 색인 재조회 (2010.03.31 JJE)
- var openObj = getOpenWindow("SPMMP01200");
- if(openObj != null) {
- openObj.btn_indexInitialize.dispatch("DOMActivate");
- }
- ]]>
- </script>
- <help>
- <![CDATA[적용 가능한 CP로 등록합니다.]]>
- </help>
- </button>
- <button id="btn_initialize" class="btn4_letter3" style="left:1px; top:4px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(ivw_outline.selected){
- ivw_outline.window.javascript.fViewDetailInfo();
- }
-
- ipt_cpgnm.disabled = false;
- rdo_cpgflagcd.disabled = false;
- rdo_ioflagcd.disabled = false;
- //textarea1.disabled = false;
- btn_newnm.disabled = true;
-
- model.resetInstanceNode("/root/main/masterinfo");
-
- if(ipt_cpaprvno.value == "") {
- ipt_cpaprvno.value = "승인번호";
- }
- btn_valunm.attribute("text") = "평가명*";
- btn_getdept.attribute("text") = "선택*";
-
- model.removeNodeset("/root/main/diaginfo/diaglist");
- model.removeNodeset("/root/main/opinfo/oplist");
- model.removeNodeset("/root/main/ccinfo/cclist");
- model.removeNodeset("/root/main/attfileinfo/attach");
- model.removeNodeset("/root/main/exclusion/exclist");
- model.removeNodeset("/root/main/dropinfo/droplist");
- model.removeNodeset("/root/main/indexinfo/item");
- model.removeNodeset("/root/main/steplist/info");
- model.removeNodeset("/root/main/decisionlist/info");
- model.removeNodeset("/root/main/sortedsteplist/info");
- model.resetInstanceNode("/root/main/stepinfo/info");
- model.resetInstanceNode("/root/main/tempuserinfo");
- model.removeNodeset("/root/main/reqrlist");
- model.makeNode("/root/main/reqrlist/list");
- model.makeValue("/root/main/reqrlist/reqrid", "");
- model.makeValue("/root/main/reqrlist/inputreqrnm", "");
- ivw_outline.model.removeNodeset("/root/main/steplist");
- ivw_outline.model.removeNodeset("/root/main/decisionlist");
- ivw_outline.model.removeNodeset("/root/temp/delsteplist");
- ivw_outline.model.removeNodeset("/root/temp/deldecisionlist");
- ivw_outline.model.removeNodeset("/root/main/sortedsteplist/info");
-
- model.setValue("/root/main/masterinfo/info/cpgflagcd", "01");
- model.setValue("/root/main/masterinfo/info/ioflagcd", "I");
- model.setValue("/root/main/masterinfo/info/cpgtypecd", "D");
- model.setValue("/root/main/masterinfo/info/valusgeyn", "N");
-
- model.setValue("/root/temp/multideptcdlist", "");
- model.setValue("/root/temp/multideptnmlist", "");
- ipt_cpgorddeptnm.refresh();
-
- fInitializeValue();
- cmb_cpgorddeptcd.disabled = false;
-
- model.refresh();
-
- grd_diag.rowhidden(0) = true;
- grd_op.rowhidden(0) = true;
- grd_cc.rowhidden(0) = true;
- grd_exclusion.rowhidden(0) = true;
- grd_drop.rowhidden(0) = true;
-
- ivw_outline.ivw_detail.visible = false;
- if(ivw_detail.visible == true){
- ivw_outline.visible = true
- }
- ivw_detail.visible = false;
- fCreateOutLineView();
- ]]>
- </script>
- </button>
- <button id="btn_newver" class="btn4_letter2" style="left:1079px; top:4px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //삭제 시 한번 물어봄 (2008.10.06)
- if(model.getValue("/root/main/masterinfo/info/todd") <= getCurrentDate()){
- if( messageBox(cpgFlagNM + "를", "Q001") == 7 ){
- return;
- }
- }
-
- if( fSaveDataCheck( "master" ) == false ) {
- return;
- }
- var cpgno = model.getValue("/root/main/masterinfo/info/cpgno");
- var ver = model.getValue("/root/main/masterinfo/info/cpghistseq");
- var tmpyn = model.getValue("/root/main/masterinfo/info/tmpyn"); //임시(미등록) 여부
- model.setValue("/root/temp/oldcpgno", cpgno);
- model.setValue("/root/temp/oldcpghistseq", ver);
- model.setValue("/root/temp/oldtmpyn", tmpyn);
- model.setValue("/root/temp/saveflag", "T");
- model.setValue("/root/main/masterinfo/info/tmpyn", "Y");
-
- model.setValue("/root/temp/mstatus", "i");
-
- if( !isNull(cpgno) && !isNull(ver) ){
- //1. 최초 미등록
- //2. 등록 -> 미등록
- //3. 미등록 -> 미등록
- saveIndxlist = "";
- /*if( isNull(ver) ){
- //1. 최초 미등록
- model.setValue("/root/main/masterinfo/info/cpghistseq", "1");
- }else{*/
- //2. 등록 -> 미등록
- if(model.getValue("/root/main/masterinfo/info/todd") > getCurrentDate()){ //삭제 시 조회 후 seq 그대로 남음 처리 (2008.10.06)
- model.setValue("/root/main/masterinfo/info/cpghistseq", ""); //parseInt(ver)+1 or MAX+1하기 위해 비워 보낸다
- fSettingStatus(); //각종 데이터의 status를 i로 바꾼다(새버전으로 저장하기 위함)
- }
- saveIndxlist = "▩▦▦▦▦▦▦▦▦▦▦"; //새로운 색인 저장을 막는다 (여기다 두면 제대로 색인저장이 되는지?)
- //}
- }
-
- if( ivw_outline.ivw_detail.visible == true && !isNull(cpgno) ){
- OcsSaveYN = "Y";
- }else {
- var SetNodeList = ivw_outline.instance1.selectSingleNode("/root/main/steplist/info[setno != '']");
- if( SetNodeList != null ){
- OcsSaveYN = "Y";
- }else{
- OcsSaveYN = "N";
- }
- }
-
- if ( fSaveCPGInfo() == false ){
- //원래 cpgno, cpghistseq를 복원 (2010.05.20 JJE)
- model.setValue("/root/main/masterinfo/info/cpgno", cpgno);
- model.setValue("/root/main/masterinfo/info/cpghistseq", ver);
- model.setValue("/root/main/masterinfo/info/tmpyn", tmpyn);
- return;
- }
- //grp_inputcpname.visible = false;
-
- if(instance1.selectSingleNode("/root/temp/tempnode/prms/newsetno") != null){
- ivw_outline.window.javascript.fSetStepSetNo(); //바뀐 셋번호를 다시 세팅해준다
- model.resetInstanceNode("/root/temp/tempnode");
- }
-
- //if(btn_action_tab.selected == true){
- if( ivw_outline.ivw_detail.visible == true && !isNull(cpgno) ){
- ivw_outline.ivw_detail.window.javascript.fExePrmsSetInfo("T");
- changedYN = "Y";
- }
-
- model.refresh();
- //closeLoadingBar(); //loading 메세지 닫기
-
- //색인팝업이 열려있는 경우, 색인 재조회 (2010.03.31 JJE)
- var openObj = getOpenWindow("SPMMP01200");
- if(openObj != null) {
- openObj.btn_indexInitialize.dispatch("DOMActivate");
- }
- ]]>
- </script>
- <hint>
- <![CDATA[미등록 상태로 저장합니다.]]>
- </hint>
- </button>
- <button id="btn_newnm" class="btn4_letter5" style="left:984px; top:4px; width:92px; height:22px; ">
- <caption>새이름으로</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( fSaveDataCheck( "master" ) == false ) {
- return;
- }
- model.setValue("/root/main/masterinfo/info/cpgnm", model.getValue("/root/main/masterinfo/info/orgcpgnm")); //실제 CP명을 보여줌
- ipt_newcpgnm.refresh();
- cap_newcpgnm.attribute("text") = cpgFlagNM + "명";
- grp_inputcpname.attribute("height") = 80; //grp_inputcpname.visible = true;
- grp_biz.disabled = true;
- grp_btn.disabled = true;
- ivw_outline.disabled = true;
- cmb_cpgorddeptcd.disabled = false;
-
- //if( cpgFlagCd == "01") ipt_fcstinhospdayno.disabled = false;
- model.setValue("/root/main/masterinfo/info/rgstrnm" , getUserName());
- model.setValue("/root/main/masterinfo/info/rgstrid" , getUserId());
-
- model.setFocus("ipt_newcpgnm");
- model.setValue("/root/temp/usgecd", "1"); //새이름으로(save as)
-
- model.refresh();
- ]]>
- </script>
- <hint>
- <![CDATA[새로운 이름을 갖는 미등록 상태의 CP를 저장합니다.]]>
- </hint>
- </button>
- <button id="button18" class="btn4_letter8" style="left:71px; top:4px; width:152px; height:22px; ">
- <caption>Drop/Exclusion</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter("openmaster", "Y");
- modal("SMMQP02600");
- ]]>
- </script>
- </button>
- <button id="button12" class="btn4_letter4" style="left:200px; top:4px; width:80px; height:22px; ">
- <caption>모니터링</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var mon = getCurrentMonitorNumber();
-
- modal("SMMMP02700", mon, "1", "30", "SMMMP02700");
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_inputcpname" style="left:355px; top:115px; width:264px; height:80px; background-color:#ffffff; border-color:#000000; border-style:none; ">
- <shape id="roundrect1" class="roundrect_btnset" appearance="roundrect" style="left:2px; top:1px; width:258px; height:77px; border-width:3; "/>
- <input id="ipt_newcpgnm" ref="/root/main/masterinfo/info/cpgnm" class="input_default" style="left:70px; top:29px; width:182px; height:19px; border-style:solid; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- button9.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="button9" class="btn2_letter2" style="left:165px; top:53px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( model.getValue("/root/temp/usgecd") == "1" ){ //save as new name
- if( fSettingNewNameCp() == false ){
- return;
- }
- }else if( model.getValue("/root/temp/usgecd") == "2" ){ //only modify name(저장)
- model.setValue( "/root/main/masterinfo/info/orgcpgnm", model.getValue("/root/main/masterinfo/info/cpgnm") );
- btn_newver.dispatch("DOMActivate");
-
- }else if( model.getValue("/root/temp/usgecd") == "3" ){ //only modify name(등록)
- model.setValue( "/root/main/masterinfo/info/orgcpgnm", model.getValue("/root/main/masterinfo/info/cpgnm") );
- btn_allInfoSave.dispatch("DOMActivate");
- }
- //grp_inputcpname.visible = false;
- //grp_inputcpname.refresh();
- //button10.dispatch("DOMActivate"); //2008.06.24(전지은) 새이름 입력창이 닫히면서, 전체창 disable을 풀어야한다
- fCnclInptNm();
- //4 : 2 or 3 -> not check
- //색인팝업이 열려있는 경우, 색인 재조회 (2010.03.31 JJE)
- var openObj = getOpenWindow("SPMMP01200");
- if(openObj != null) {
- openObj.btn_indexInitialize.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <button id="button10" class="btn2_letter2" style="left:210px; top:53px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fCopyOrgCpgNM();
- fCnclInptNm();
- ]]>
- </script>
- </button>
- <img id="img1" src="../../../com/commonweb/images/icon_n.gif" style="left:7px; top:10px; width:10px; height:13px; background-stretch:stretch; "/>
- <caption id="cap_iptnewnm" style="left:20px; top:5px; width:231px; height:28px; ">새로 저장할 이름을 입력하십시오.</caption>
- <caption id="cap_newcpgnm" class="tit_2" style="left:8px; top:31px; width:66px; height:13px; ">CP명</caption>
- <select1 id="cmb_usge" ref="/root/temp/usgecd" visibility="hidden" appearance="minimal" style="left:10px; top:55px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>save as new name</label>
- <value>1</value>
- </item>
- <item>
- <label>only modify name(저장)</label>
- <value>2</value>
- </item>
- <item>
- <label>only modify name(등록)</label>
- <value>3</value>
- </item>
- <item>
- <label>
- <![CDATA[2 or 3 -> not check]]>
- </label>
- <value>4</value>
- </item>
- </choices>
- </select1>
- </group>
- <!--iviewer id="ivw_loader" visibility="hidden" style="left:345px; top:36px; width:620px; height:708px; border-width:1px; border-style:solid; "/-->
- <group id="grp_form" visibility="hidden" scroll="auto" style="left:320px; top:6px; width:640px; height:774px; border-style:solid; ">
- <caption id="kkk" class="cell_1" style="left:0px; top:730px; width:10px; height:10px; ">.</caption>
- <button id="btn_hide" class="btn2_letter4" visibility="hidden" style="left:550px; top:2px; width:64px; height:19px; ">
- <caption>서식닫기</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- ivw_outline.visible = true;
- //ivw_detail.visible = true;
- grp_form.visible = false;
- ivw_loader.visible = false;
- btn_hide.visible = false;
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|