1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLMR00200.xrw
- * 설 명 : 미생물결과관리
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 조철형
- * 작 성 일 : 2007.03.20
- * 수정이력 :
- * 기 타 :
- -->
- <?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/>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <TestInfo>
- <getTestInfoCnts>
- <exp value=""/>
- <selchk value=""/>
- <tclsscrnm/>
- <bufinptrslt readonly=""/>
- <reptrslt/>
- <refval/>
- <rsltunit/>
- <judgmark/>
- <panicmark/>
- <deltamark/>
- <criticalmark/>
- <alertmark/>
- <rsltmark/>
- <erkind/>
- <bfreptrslt/>
- <bflastreptdt/>
- <testeqmtcd/>
- <comment/>
- <testcd/>
- <spccd/>
- <rsltseq/>
- <inptrslt/>
- <multiflag/>
- <bcno/>
- </getTestInfoCnts>
- <getSpcInfo>
- <bcno/>
- <workno/>
- <spcacptdt/>
- <reqdrrem/>
- <slipflag/>
- <cmtflag/>
- <cmtinsert/>
- <rsltregid/>
- <mdlreptid/>
- <lstreptid/>
- <spcscrnnm/>
- <testcontcd/>
- <testcont/>
- <sectcd/>
- <tsectcd/>
- <workno2/>
- <prcpremfact/>
- </getSpcInfo>
- <getCultrueTestInfo>
- <selchk value=""/>
- <tclsscrnm/>
- <bufinptrslt/>
- <multiflag/>
- <rsltmark/>
- <lastreptdt/>
- <bflastreptdt/>
- <bfreptrslt/>
- <comment/>
- <testcd/>
- <spccd/>
- <rsltseq/>
- <inptrslt/>
- <baeyangflag/>
- <bcno/>
- <bacrsltstat/>
- </getCultrueTestInfo>
- <getCultrueDivInfo>
- <growkind/>
- <bacrsltstat/>
- <bacscrnnm/>
- <tempbacnm/>
- <infcinfo/>
- <testkindcd/>
- <bcno/>
- <baccd/>
- <rsltseq/>
- <bacseqno/>
- <testcd/>
- <spccd/>
- <new/>
- <infcinfo/>
- <infcinfo2/>
- <infcrefantbiocd/>
- <infcrefchar/>
- <gyjbyn/>
- <baeyangflag/>
- </getCultrueDivInfo>
- <getAntimicInfo>
- <antibioscrnnm/>
- <antibiorslt/>
- <antibioref/>
- <bacseqno/>
- <bcno/>
- <testcd/>
- <spccd/>
- <antibiocd/>
- <testkindcd/>
- <bfantibioref/>
- <panicmark/>
- <deltamark/>
- </getAntimicInfo>
- <getDrugInfo>
- <druginfolist/>
- </getDrugInfo>
- </TestInfo>
- <getUsernm>
- <usernm/>
- </getUsernm>
- </main>
- <send>
- <data1/>
- <data2/>
- <data3/>
- <data4/>
- <data5/>
- <keycode/>
- <bacflagcd/>
- <bloodrsltflag/>
- <bcno/>
- </send>
- <spc>
- <spcstat/>
- </spc>
- <init>
- <LB0202>
- <cd/>
- <nm/>
- <etc01/>
- <etc02/>
- <etc03/>
- <etc04/>
- </LB0202>
- </init>
- <hidden>
- <refflag>
- <searchtext/>
- <searchflag>2</searchflag>
- <testlrgkind>M</testlrgkind>
- <rsltstat/>
- <bcno/>
- <testcont/>
- <testcontcd/>
- <p_isedit/>
- <userid/>
- </refflag>
- <default/>
- <TestInfo/>
- <testmtd>D</testmtd>
- <Antimic/>
- <curCultureNM/>
- <tmpAntimic/>
- <bacgensantibio>
- </bacgensantibio>
- <AntiBio/>
- <Baccd/>
- <DJGGParm>
- <bcno/>
- <testlrgkind/>
- <microtestkind/>
- <bufDJGG/>
- <uprsltYN/>
- <testcdlist/>
- <rsltsaveYN/>
- </DJGGParm>
- <GRAMParm>
- <bufParm/>
- </GRAMParm>
- <RelationParm>
- <pid/>
- <tclsscrnnm/>
- <testcd/>
- <spccd/>
- </RelationParm>
- <bfsltparm>
- <pid/>
- <bcno/>
- <spcscrnnm/>
- <workno/>
- <spcacptdt/>
- <testcd/>
- <spccd/>
- <bacrslt/>
- </bfsltparm>
- <bfbaclist/>
- <AbResultParm/>
- <abresult/>
- <cultureParm>
- <testcd/>
- <bufParm/>
- </cultureParm>
- <bacflagcd>1</bacflagcd>
- <inparam>
- <pid/>
- <bcno/>
- </inparam>
- <saveantimic/>
- <tmpbfbacr/>
- <bacflag/>
- <changebac/>
- </hidden>
- <report>
- <spcreport>
- </spcreport>
- </report>
- <temp>
- <antibiobackup/>
- </temp>
- </root>
- </instance>
- <bind id="bind1" ref="/root/main/TestInfo/getTestInfoCnts/bufinptrslt" readonly="../bufinptrslt/@readonly = 'true'"/>
- <bind id="bind2" ref="/root/main/TestInfo/getCultrueTestInfo/bufinptrslt" readonly="../bufinptrslt/@readonly = 'true'"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fBaseInfoRef("0207|0202|0109|0000|0108|0124|0413|0131|0132|0133|");
- fSetClear();
- setCloseChildWindow();
- //open("SPLMR90100");
-
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <submission id="TRLMR00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/TestInfo"/>
- <submission id="TXLMR00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/properties"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- <submission id="TRLMR00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/bacgensantibio"/>
- <submission id="TRLZZ00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getUsernm"/>
- <submission id="TRLMR00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/tmpbfbacr"/>
- <submission id="TXLMR00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TRLMR00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/LB0202"/>
- <submission id="TRLMR00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/spc"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- function fUpdtRslt(){
- var vPID = model.getValue("/root/main/TestInfo/getSpcInfo/pid");
- var vBcno = model.getValue("/root/main/TestInfo/getSpcInfo/bcno");
- model.setvalue("/root/hidden/DJGGParm/bcno" , vBcno);
- model.makevalue("/root/hidden/DJGGParm/userid" , "");
-
- if(vPID != "" && model.getvalue("/root/hidden/DJGGParm/uprsltYN") == "Y"){
- modal("SMLLR90600" , "","","","","/root/hidden/DJGGParm" , "/root/hidden/DJGGParm");
-
- if(model.getvalue("/root/hidden/DJGGParm/rsltsaveYN") == "Y")
- return 0;
- else
- return 1;
- }
-
- return 0;
- }
-
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 폼초기화
- */
- function fSetClear(){
-
- model.removeNodeset("/root/main/TestInfo/getTestInfoCnts");
- //model.removeNodeset("/root/main/TestInfo/getSpcInfo");
- model.removeNodeset("/root/main/TestInfo/getCultrueTestInfo");
- model.removeNodeset("/root/main/TestInfo/getCultrueDivInfo");
- model.removeNodeset("/root/main/TestInfo/getAntimicInfo");
- model.resetInstanceNode("/root/main/TestInfo/getSpcInfo");
- model.removeNodeset("/root/hidden/tmpAntiBio/getAntimicInfo");
- model.removeNodeset("/root/hidden/Baccd");
-
- model.setvalue("/root/hidden/refflag/p_isedit" , "");
-
- model.setvalue("/root/hidden/curCultureNM","");
- model.setvalue("/root/hidden/refflag/userid","");
-
- model.setvalue("/root/main/getUsernm/usernm" , "");
- model.setvalue("/root/hidden/Antimic" , "");
- //model.setvalue("/root/hidden/refparam/userid" , "");
- model.setvalue("/root/main/getUsernm/usernm" , "");
-
- grd_TestInfoCnts.clearStatus();
- grd_CultrueTestInfo.clearStatus();
- grd_CultrueDivInfo.clearStatus();
- model.copyNode("/root/send/data1","/root/hidden/default");
- model.copyNode("/root/send/data2","/root/hidden/default");
- model.copyNode("/root/send/data3","/root/hidden/default");
- model.copyNode("/root/send/data4","/root/hidden/default");
- model.copyNode("/root/send/data5","/root/hidden/default");
-
- model.setFocus("ipt_testpsn");
-
- model.refresh();
-
- }
-
- function fSetClear2(){
-
- model.removeNodeset("/root/main/TestInfo/getTestInfoCnts");
- //model.removeNodeset("/root/main/TestInfo/getSpcInfo");
- model.removeNodeset("/root/main/TestInfo/getCultrueTestInfo");
- model.removeNodeset("/root/main/TestInfo/getCultrueDivInfo");
- model.removeNodeset("/root/main/TestInfo/getAntimicInfo");
- //model.setValue("/root/main/TestInfo/getDrugInfo/druginfolist","");
- model.resetInstanceNode("/root/hidden/DJGGParm");
- model.resetInstanceNode("/root/main/TestInfo/getSpcInfo");
- model.removeNodeset("/root/hidden/tmpAntiBio/getAntimicInfo");
- model.removeNodeset("/root/hidden/Baccd");
-
- model.setvalue("/root/hidden/refflag/p_isedit" , "");
-
- model.setvalue("/root/hidden/curCultureNM","");
- model.setvalue("/root/hidden/Antimic" , "");
-
- grd_TestInfoCnts.clearStatus();
- grd_CultrueTestInfo.clearStatus();
- grd_CultrueDivInfo.clearStatus();
- model.copyNode("/root/send/data1","/root/hidden/default");
- model.copyNode("/root/send/data2","/root/hidden/default");
- model.copyNode("/root/send/data3","/root/hidden/default");
- model.copyNode("/root/send/data4","/root/hidden/default");
- model.copyNode("/root/send/data5","/root/hidden/default");
-
- model.refresh();
-
- }
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검체번호, 작업번호 조회
- */
- function fSpcInfoRef(){
- fSetClear2();
-
- model.copynode("/root/send/data1","/root/hidden/refflag");
- model.makeValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
-
- submit("TRLMR00201");
- if(model.getValue("/root/main/TestInfo/getPanicInfo/panic") == "Y"){
- alert("패닉 상태가 있는 검체입니다.");
- }
- model.copynode("/root/send/data1","/root/hidden/default");
-
-
- model.makenode("/root/hidden/Baccd");
- model.copynode("/root/hidden/Baccd" , "/root/main/TestInfo");
-
- model.removeNodeset("/root/hidden/Baccd/getTestInfoCnts");
- model.removeNodeset("/root/hidden/Baccd/getSpcInfo");
- model.removeNodeset("/root/hidden/Baccd/getCultrueTestInfo");
-
- fReMake_TestList("0"); // 검사항목리스트
- fReMake_CultrueTestList("0"); // 배양검사
-
- fOnclick_grd_CultrueTestInfo("Default");
-
- commentChange();
-
- fUpPatinfo();
- model.setFocus("ipt_search");
-
-
-
-
- }
-
- function fUpPatinfo(){
- if(grd_TestInfoCnts.rows> 1 || grd_CultrueTestInfo.rows>1){
- //alert(" S▦" + model.getvalue("/root/main/TestInfo/getTestInfoCnts/prcpdd")+ "▦" + model.getvalue("/root/main/TestInfo/getTestInfoCnts/execprcpseqno") + "▦" + "012")
-
- if(grd_TestInfoCnts.rows> 1){
-
- setParameter("condparam", "S" + "▦" + model.getvalue("/root/main/TestInfo/getTestInfoCnts/prcpdd")+ "▦"
- + model.getvalue("/root/main/TestInfo/getTestInfoCnts/execprcpuniqno") + "▦"
- + model.getvalue("/root/main/TestInfo/getTestInfoCnts/instcd") );
- }
- else{
- setParameter("condparam", "S" + "▦" + model.getvalue("/root/main/TestInfo/getCultrueTestInfo/prcpdd")+ "▦"
- + model.getvalue("/root/main/TestInfo/getCultrueTestInfo/execprcpuniqno") + "▦"
- + model.getvalue("/root/main/TestInfo/getCultrueTestInfo/instcd") );
-
- }
-
- //alert(getParameter("condparam"))
- //modal("SPMMO08900");
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- }
- }
-
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검색키 이벤트
- */
- function fInputKeyup(){
- if(event.keyCode == "13"){
- if(ipt_search.currentText.length < 8){
- model.setvalue("/root/hidden/refflag/searchtext", "");
- model.refresh();
- ipt_search.selBegin = 0;
- ipt_search.selEnd = ipt_search.currentText.length;
- }
- else{
- model.setvalue("/root/hidden/refflag/searchtext", ipt_search.currentText.toUpperCase());
- model.setvalue("/root/send/bcno", ipt_search.currentText.toUpperCase());
- model.refresh();
- submit("TRLMR00205"); //접수테이블 검체상태 조회
- var spcstat = model.getValue("/root/spc/spcstat");
- // alert("spcstat:" +spcstat);
- if(spcstat !='0'){
- messageBox("검체가 취소된 처방이거나 검체접수전 처방" , "I009" ,"");
- }
- fSpcInfoRef();
- ipt_search.selBegin = 0;
- ipt_search.selEnd = ipt_search.currentText.length;
- }
- model.setFocus("ipt_search");
- }
- }
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 배양분리균그리드 키이벤트
- */
- function fGrd_CultrueDivInfoKeyDown(){
- var row = grd_CultrueDivInfo.row;
- var col = grd_CultrueDivInfo.col;
-
- if(event.keyCode == 27){
- fCodeHidden("grd_Cultrue");
- radio2.visible = false;
- button9.visible = false;
- model.setValue("/root/hidden/bacflagcd" , "1");
- return;
- }
- else if(col == 3){
- if(event.keyCode == 13){
- //grd_CultrueTestInfo.row = 1;
- model.setFocus("grd_Cultrue");
- model.setValue("/root/send/keycode", grd_CultrueDivInfo.valueMatrix(row, col));
- model.setValue("/root/send/bacflagcd", model.getValue("/root/hidden/bacflagcd"));
- submit("TRLMR00204"); //균명 조회
-
-
-
-
-
-
-
- if(grd_Cultrue.rows == "2"){
- grd_Cultrue.row = 1;
- //Ondbclick_grdCultrue();
- Ondbclick_grdCultrue();
-
- var row1 = grd_CultrueDivInfo.row;
- var row2 = grd_CultrueDivInfo.rows - 1;
-
- if(row1 < row2){
- model.setFocus("grd_TestInfoCnts");
- grd_CultrueDivInfo.row = row1 + 1;
- fOnclick_grd_CultrueDivInfo();
- grd_CultrueDivInfo.col = 3;
- grd_CultrueDivInfo.select(row1 + 1, 3) = true;
- model.refresh();
- grd_CultrueDivInfo.editCell();
-
- }
-
- }else{
- grd_Cultrue.attribute("visibility") = "visible" ;
- radio2.visible = true;
- button9.visible = true;
- }
- }
- }
- }
-
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 배양분리균명 입력하면 그리드 자동 찾기
-
- function fSeekCodeHelp(pGridID, pKeyChar, pCol, pDefaultRow) {
- if(pGridID == "grd_Cultrue"){
- grd_Cultrue.attribute("visibility") = "visible" ;
- cptBufKey.attribute("visibility") = "visible" ;
-
- var findRow = grd_Cultrue.FindRow(pKeyChar,0, 0, false, false);
- //alert(findRow)
- if (eval(findRow) < 0) {
- if (typeof(pDefaultRow) == "undefined")
- findRow = 1;
- findRow = eval(pDefaultRow);
-
- }
-
- grd_Cultrue.row= findRow;
- //grd_Cultrue.select(findRow,0,findRow,grd_Cultrue.cols-1) = true;
- grd_Cultrue.topRow = findRow;
-
- model.setFocus("grd_Cultrue");
- }
- }
- */
-
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드 visibility
- */
- function fCodeHidden(pGridID) {
- if(pGridID == "grd_Cultrue"){
- grd_Cultrue.attribute("visibility") = "hidden" ;
-
- model.refresh();
- }
- }
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 배양균 search 그리드 키이벤트
- */
- function fGrd_CultrueKeyDown(){
- if (event.keyCode==13) {
- Ondbclick_grdCultrue(); // 엔터키일때 그리드 더블클릭이벤트
-
- } else if(event.keyCode == 27) {
- fCodeHidden("grd_Cultrue");
- radio2.visible = false;
- button9.visible = false;
- model.setValue("/root/hidden/bacflagcd" , "1");
-
- } else if(event.keyCode == 8) {
- var vOldChar = model.getValue("/root/hidden/keycode");
- if (vOldChar.length > 0) {
- vOldChar = vOldChar.substring(0, vOldChar.length - 1);
- }
- model.setValue("/root/hidden/keycode", vOldChar);
- model.refresh();
- fSeekCodeHelp("grd_Cultrue", vOldChar, 0);
-
- } else {
- if(event.keyCode == 37 || event.keyCode == 38 || event.keyCode == 39 || event.keyCode == 40) {
- return;
-
- } else {
- var vOldChar = model.getValue("/root/hidden/keycode");
- var vKeyChar = String.fromCharCode(event.keyCode).toLowerCase();
-
- vKeyChar = vOldChar.getTrim() + vKeyChar;
- model.setValue("/root/hidden/keycode", vKeyChar);
- model.refresh();
- fSeekCodeHelp("grd_Cultrue", vKeyChar, 0);
- }
- }
- }
-
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검사항목그리드 키이벤트
- */
- function fGrd_TestInfoKeyPress(){
-
- var vGridRef = "/root/main/TestInfo/getTestInfoCnts";
- var vRstCol = 4 // 실제결과 칼럼
-
- var curCol = grd_TestInfoCnts.Col;
- var curRow = grd_TestInfoCnts.Row;
-
- var vBufInptRslt = model.getValue(vGridRef+"["+curRow+"]/bufinptrslt").getTrim();
- var vInptRslt = model.getValue(vGridRef+"["+curRow+"]/inptrslt").getTrim();
-
- if (curCol == vRstCol && model.getValue(vGridRef+"["+curRow+"]/buforgrst/@readonly") == "") {
- // EnterKey 눌렀을 때
- if (event.keyCode == 13) {
-
-
-
- if (vBufInptRslt=="" && vInptRslt == "") {
- model.setValue(vGridRef+"["+curRow+"]/inptrslt", vBufInptRslt);
- return;
- } else {
- if (vBufInptRslt== vInptRslt) {
- fCvtViewResult(true);
- return;
- }
- }
-
- fCvtResultCode(vGridRef,curRow);
- fCvtViewResult();
- }
- // 좌, 상, 우, 하 이동시 현재 선택된 실제결과만 표시
- if(event.keyCode == 37 || event.keyCode == 38 || event.keyCode == 39 || event.keyCode == 40){
- var vRow = curRow;
- if (event.keyCode == 38){
- vRow++;
- }
- else if(event.keyCode == 40){
- vRow --;
- }
-
- model.setvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/bufinptrslt","");
- model.setvalue("/root/main/TestInfo/getTestInfoCnts["+row+"]/bufinptrslt",InptRslt);
-
- }
-
- } else {
- var vRow = curRow;
- if(event.keyCode == 38) {
- vRow++;
- } else if (event.keyCode == 40) {
- vRow--;
- }
-
- model.setvalue(vGridRef+"["+vRow+"]/bufinptrslt", "");
-
- }
-
- if(event.keyCode == 37 || event.keyCode == 38 || event.keyCode == 39 || event.keyCode == 40){
- //검사정 fCOMLIS_TestInfo(vRow , "/root/main/TestInfo/getSpcInfo" ,"/root/main/TestInfo/getTestInfoCnts" );
- }
- }
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 결과코드
- */
- function fCvtResultCode(pRef, row){
-
- var vTestcd = model.getValue(pRef + "["+row+"]/testcd");
- var vInptRslt = model.getValue(pRef + "["+row+"]/bufinptrslt");
-
- var cdNodes = instance1.selectNodes("/root/init/LB0109[etc01='" + vTestcd + "']/cd");
- var cdNodes2 = instance1.selectNodes("/root/init/LB0109[etc01='" + vTestcd + "']/nm");
- var vRstcontLower ="";
- var vRstcontUpper = "";
- for (i = 1; i <= cdNodes.length; i++) {
-
- var cd = cdNodes.item(i - 1).text;
- var nm = cdNodes2.item(i - 1).text;
-
- if(vInptRslt.toLowerCase() == cd.getTrim().toLowerCase()) vRstcontLower = nm;
- if(vInptRslt.toUpperCase() == cd.getTrim().toUpperCase()) vRstcontUpper = nm;
- }
-
-
- if (vRstcontLower.getTrim() != "" || vRstcontUpper.getTrim() != "" ) {
-
- var vRstcont = (vRstcontLower.getTrim() != "") ? vRstcontLower.getTrim() : vRstcontUpper.getTrim();
-
- model.setValue(pRef + "["+row+"]/bufinptrslt", vRstcont);
- model.setValue(pRef + "["+row+"]/inptrslt", vRstcont);
- }
- }
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 배양검사그리드 키이벤트
- */
- function fGrd_CultrueTestInfoKeyPress(){
- var vGridRef = "/root/main/TestInfo/getCultrueTestInfo";
- var vRstCol = 4 // 실제결과 칼럼
- var curCol = grd_CultrueTestInfo.Col;
- var curRow = grd_CultrueTestInfo.Row;
-
- var vBufInptRslt = model.getValue(vGridRef+"["+curRow+"]/bufinptrslt").getTrim();
- var vInptRslt = model.getValue(vGridRef+"["+curRow+"]/inptrslt").getTrim();
-
- if (curCol == vRstCol ) {
- // EnterKey 눌렀을 때
-
- if (event.keyCode == 13) {
- if (vBufInptRslt=="" && vInptRslt == "") {
- model.setValue(vGridRef+"["+curRow+"]/inptrslt", vBufInptRslt);
- return;
- } else {
- if (vBufInptRslt ==vInptRslt) {
- fEnterCultureRslt();
- return;
- }
- }
-
- fCvtResultCode(vGridRef,curRow);
- fEnterCultureRslt();
-
- }
- // 좌, 상, 우, 하 이동시 현재 선택된 실제결과만 표시
- /*if(event.keyCode == 37 || event.keyCode == 38 || event.keyCode == 39 || event.keyCode == 40){
- var vRow = curRow;
- if (event.keyCode == 38){
- vRow++;
- }
- else if(event.keyCode == 40){
- vRow --;
- }
-
- //model.setvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/bufinptrslt","");
- model.setvalue("/root/main/TestInfo/getTestInfoCnts["+row+"]/bufinptrslt",InptRslt);
-
- }*/
-
- } /*else {
-
- var vRow = curRow;
- if(event.keyCode == 38) {
- vRow++;
- } else if (event.keyCode == 40) {
- vRow--;
- }
-
- //model.setvalue(vGridRef+"["+vRow+"]/bufinptrslt", "")
-
- }
-
- if(event.keyCode == 37 || event.keyCode == 38 || event.keyCode == 39 || event.keyCode == 40){
- //검사정 fCOMLIS_TestInfo(vRow , "/root/main/TestInfo/getSpcInfo" ,"/root/main/TestInfo/getTestInfoCnts" );
- } */
-
-
- }
-
-
- function fGrd_AntimicInfoKeyPress2(){
-
- var curCol = grd_AntimicInfo.Col;
- var curRow = grd_AntimicInfo.Row;
- var rslt = grd_AntimicInfo.valueMatrix(curRow,curCol);
- var ref = grd_AntimicInfo.valueMatrix(curRow,9); //항생제코드
-
- var bcno = grd_CultrueDivInfo.valueMatrix(grd_CultrueDivInfo.row, 7);
- var baccd = grd_CultrueDivInfo.valueMatrix(grd_CultrueDivInfo.row, 8);
- var seq = grd_CultrueDivInfo.valueMatrix(grd_CultrueDivInfo.row, 10);
- var testcd = grd_CultrueDivInfo.valueMatrix(grd_CultrueDivInfo.row, 11);
-
-
- if(curCol == 2){
- if(rslt=="R" || rslt=="S" || rslt=="I" || rslt == "POS" || rslt == "NEG") {
-
- if(ref == model.getValue("/root/hidden/Baccd/getBaccd"+ testcd + "/getBacList["+grd_CultrueDivInfo.row+"]/infcrefantbiocd") &&
- rslt == model.getValue("/root/hidden/Baccd/getBaccd"+ testcd + "/getBacList["+grd_CultrueDivInfo.row+"]/infcrefchar")){
- model.setValue("/root/hidden/Baccd/getBaccd"+ testcd + "/getBacList["+grd_CultrueDivInfo.row+"]/infcinfo" ,
- model.getValue("/root/hidden/Baccd/getBaccd"+ testcd + "/getBacList["+grd_CultrueDivInfo.row+"]/infcinfo2"))
- model.refresh();
- }
- }
- else{
- grd_AntimicInfo.valueMatrix(curRow,curCol) = "";
- //model.setvalue("/root/hidden/Baccd/getAntimicInfo" + vTESTCD +iCnt + "/antibiolist["+curRow+"]/antibioref" , "");
- }
- grd_AntimicInfo.Col = curCol;
- grd_AntimicInfo.Row = curRow +1;
- grd_AntimicInfo.dispatch("onentercell");
- }
- //alert(testcd+"/"+seq);
- ///antibiolist[baccd = '" + baccd + "' and bcno = '"+bcno+"' and bacseqno = '"+seq+"']
- var antiref = model.getValue("root/hidden/Baccd/getAntimicInfo"+testcd+"/antibiolist[baccd = '" + baccd + "' and bcno = '"+bcno+"' and bacseqno = '"+seq+"' and antibiocd = '"+ref+"']/antibioref");
- var anticd = model.getValue("root/hidden/Baccd/getAntimicInfo"+testcd+"/antibiolist[baccd = '" + baccd + "' and bcno = '"+bcno+"' and bacseqno = '"+seq+"' and antibiocd = '"+ref+"']/antibiocd");
- var baccd = model.getValue("root/hidden/Baccd/getAntimicInfo"+testcd+"/antibiolist[baccd = '" + baccd + "' and bcno = '"+bcno+"' and bacseqno = '"+seq+"' and antibiocd = '"+ref+"']/baccd");
-
- //alert(baccd+"/"+anticd+"/"+antiref);
- var n = getNodesetCount("/root/init/LB0207[cd='" + baccd + "' and nm='" + anticd + "' and etc01='" + antiref + "']");
-
- if(n > 0){
- //alert("패닉");
- model.setValue("root/hidden/Baccd/getAntimicInfo"+testcd+"/antibiolist[baccd = '" + baccd + "' and bcno = '"+bcno+"' and bacseqno = '"+seq+"' and antibiocd = '"+anticd+"']/panicmark", "P");
- grd_AntimicInfo.cellStyle ("background-color", curRow,7,curRow,7) = "#7BE6B7";
- }
- else{
- model.setValue("root/hidden/Baccd/getAntimicInfo"+testcd+"/antibiolist[baccd = '" + baccd + "' and bcno = '"+bcno+"' and bacseqno = '"+seq+"' and antibiocd = '"+anticd+"']/panicmark", "");
- grd_AntimicInfo.cellStyle ("background-color",curRow,7,curRow,7) = "#ffffff";
- }
- if(model.getValue("root/hidden/Baccd/getAntimicInfo"+testcd+"/antibiolist[baccd = '" + baccd + "' and bcno = '"+bcno+"' and bacseqno = '"+seq+"' and antibiocd = '"+anticd+"']/bfantibioref") != ""){
- if((model.getValue("root/hidden/Baccd/getAntimicInfo"+testcd+"/antibiolist[baccd = '" + baccd + "' and bcno = '"+bcno+"' and bacseqno = '"+seq+"' and antibiocd = '"+anticd+"']/antibioref") == "S" &&
- model.getValue("root/hidden/Baccd/getAntimicInfo"+testcd+"/antibiolist[baccd = '" + baccd + "' and bcno = '"+bcno+"' and bacseqno = '"+seq+"' and antibiocd = '"+anticd+"']/bfantibioref") == "R") ||
- (model.getValue("root/hidden/Baccd/getAntimicInfo"+testcd+"/antibiolist[baccd = '" + baccd + "' and bcno = '"+bcno+"' and bacseqno = '"+seq+"' and antibiocd = '"+anticd+"']/antibioref") == "R" &&
- model.getValue("root/hidden/Baccd/getAntimicInfo"+testcd+"/antibiolist[baccd = '" + baccd + "' and bcno = '"+bcno+"' and bacseqno = '"+seq+"' and antibiocd = '"+anticd+"']/bfantibioref") == "S")){
-
- model.setValue("root/hidden/Baccd/getAntimicInfo"+testcd+"/antibiolist[baccd = '" + baccd + "' and bcno = '"+bcno+"' and bacseqno = '"+seq+"' and antibiocd = '"+anticd+"']/deltamark", "D");
- grd_AntimicInfo.cellStyle ("background-color", curRow,8,curRow,8) = "#dec6a4";
- }
- else{
- model.setValue("root/hidden/Baccd/getAntimicInfo"+testcd+"/antibiolist[baccd = '" + baccd + "' and bcno = '"+bcno+"' and bacseqno = '"+seq+"' and antibiocd = '"+anticd+"']/deltamark", "");
- grd_AntimicInfo.cellStyle ("background-color",curRow,8,curRow,8) = "#ffffff";
- }
- }
-
- //model.getValue("/root/init/LB0210[cd='" + curCmptcd + "' and etc01='" + vSectcd + "' and etc02='" + vTsectcd + "']/etc03");
-
-
-
- }
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 항균제그리드 키이벤트 후
- */
- function fGrd_AntimicInfoKeyPress(){
-
- var curCol = grd_AntimicInfo.Col;
- var curRow = grd_AntimicInfo.Row;
- if(curCol == 2){
- if(event.keyCode >= 97 && event.keyCode <= 122) {
- event.keyCode = event.keyCode - 32;
- }
- }
-
-
-
-
- //model.refresh();
-
-
-
- /*var vPattern = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890.";
- if (vPattern.indexOf(vKeycd) > 0) {
- // 입력키 체크는 A~Z, 0~9로 제한한다.
- var vAntirstLower = model.getValue("/root/init/LB0100[etc01='ANTIRST'][cd='"+vKeycd.toLowerCase()+"']/nm");
- var vAntirstUpper = model.getValue("/root/init/LB0100[etc01='ANTIRST'][cd='"+vKeycd.toUpperCase()+"']/nm");
- var vAntiRst = (vAntirstLower.getTrim() != "") ? vAntirstLower : vAntirstUpper;
-
- // 선택한 배양검사코드
- var r = grd_CultrueTestInfo.row;
-
- var vTESTCD = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r+"]/testcd");
-
- var vRstNo = parseInt(eval(curCol / 2)).toString().getleftPad(2);
-
- var gyjbyn = model.getValue("/root/main/TestInfo/getCultrueDivInfo["+vRstNo +"]/gyjbyn");
- var infcinfo = model.getValue("/root/main/TestInfo/getCultrueDivInfo["+vRstNo +"]/infcinfo2");
- var infcanticd = model.getValue("/root/main/TestInfo/getCultrueDivInfo["+vRstNo +"]/infcrefantbiocd");
- var infcdecrst = model.getValue("/root/main/TestInfo/getCultrueDivInfo["+vRstNo +"]/infcrefchar");
-
-
- if (vAntiRst.getTrim() != "") {
- fg.TextMatrix(curRow, curCol) = vAntiRst;
- //alert(gyjbyn)
- //jchyung 20060228 감염정보 표시하기
- if(gyjbyn=="Y"){
- if(model.getValue("/root/main/TestInfo/getAntimicInfo[tclscd='" + vTCLSCD + "'][" + curRow + "]/anticd")==infcanticd){
- if(vAntiRst==infcdecrst) {
- model.setvalue("/root/main/TestInfo/getCultrueDivInfo["+vRstNo +"]/infcinfo",infcinfo);
- }
- else {
- model.setvalue("/root/main/TestInfo/getCultrueDivInfo["+vRstNo +"]/infcinfo","-");
- }
- }
- }
- vRowpos = curRow
- vMaxRows = 0;
-
- for(i=1;i<grd_AntimicInfo.rows;i++){
- if(model.getvalue("/root/main/TestInfo/getAntimicInfo["+i+"]/tclscd") == vTCLSCD){
- vMaxRows++;
- }
- }
-
- if (curRow < vMaxRows) {
- for (var r = eval(curRow+1); r <= vMaxRows; r++) {
- var vReadonly = model.getValue("/root/main/TestInfo/getAntimicInfo[tclscd='" + vTCLSCD + "'][" + r + "]/antirst" + vRstNo + "/@readonly");
- if (vReadonly != "true") {
- vRowpos = r;
- break;
- }
- }
- }
-
- grd_AntimicInfo.row= vRowpos;
- grd_AntimicInfo.col= curCol;
-
- }
-
-
- grd_AntimicInfo.rebuild();
- }
-
- }
- else if ((curCol % 2) == 0 && curCol > 1) {
- if(curKey == 13){
- var r = grd_CultrueDivInfo.row;
- var vTCLSCD = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r+"]/tclscd");
- vMaxRows = 0;
- for(i=1;i<grd_AntimicInfo.rows;i++){
- if(model.getvalue("/root/main/TestInfo/getAntimicInfo["+i+"]/tclscd") == vTCLSCD){
- vMaxRows++;
- }
- }
-
- var vRstNo = parseInt(eval(curCol / 2)).toString().getleftPad(2);
- var vRowpos = curRow ;
- if (curRow < vMaxRows) {
- for (var r = eval(curRow+1); r <= vMaxRows; r++) {
- var vReadonly = model.getValue("/root/main/TestInfo/getAntimicInfo[tclscd='" + vTCLSCD + "'][" + r + "]/antirst" + vRstNo + "/@readonly");
- if (vReadonly != "true") {
- vRowpos = r;
- break;;
- }
- }
- }
-
-
- grd_AntimicInfo.row= vRowpos;
- grd_AntimicInfo.col= curCol;
- }
- }
- */
- }
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 결과판정
- */
- function fCvtViewResult(pMatch, pMulty, pRow){
-
- var vRow = grd_TestInfoCnts.row;
- var vCol = grd_TestInfoCnts.col;
-
- var vMaxRow = grd_TestInfoCnts.rows-1;
-
- if (typeof(pMatch) == "undefined") pMatch = false;
- if (typeof(pMulty) == "undefined") pMulty = false;
- if (typeof(pRow) != "undefined") vRow = pRow;
-
- var vBufinptrslt = model.getvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/bufinptrslt");
-
- if(!pMatch){
-
- model.setvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/inptrslt",vBufinptrslt);
-
- var vRsltkind = model.getvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/testrsltkind");
- var vRsltintsize = model.getvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/rsltintsize");
- var vRsltdcmlsize = model.getvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/rsltdcmlsize");
- var vRundkind = model.getvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/rundkind");
- var vNvalrsltlimyn = model.getvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/nvalrsltlimyn");
-
- var vReptrslt = fCOMLIS_CvtReptrslt(vBufinptrslt, vRsltkind, vRsltintsize, vRsltdcmlsize, vRundkind , vNvalrsltlimyn);
-
- if(vReptrslt == "err") {
-
- model.setvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/bufinptrslt","");
- return;
- }
- //LH 판정
- var vJudgkind = model.getvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/judgkind");
- var vRefL = model.getvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/refl");
- var vRefLS = model.getvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/refls");
- var vRefH = model.getvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/refh");
- var vRefHS = model.getvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/refhs");
- var vRefLT = model.getvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/reflt");
- var vRvalflag = model.getvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/rvalflag");
-
- var vJudgLH = fCOMLIS_JudgLH(vReptrslt, vJudgkind, vRefL, vRefLS, vRefH, vRefHS, vRefLT,vRvalflag);
- model.setvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/judgmark",vJudgLH);
-
- ///var vColor = fCOMLIS_getMarkColor(vJudgLH,"B");
- //if(vColor !="") grd_TestInfoCnts.cellStyle ("background-color",vRow,7,vRow,7) = vColor;
- //grd_TestInfoCnts.cellStyle("text-align",vRow,7) = "center";
-
- // 사용자정의판정 결과변경
- var vUjudglt = new Array(3);
- vUjudglt[0] = vJudgkind;
-
- for (var i = 1; i <= 3; i++) {
- vUjudglt[i] = model.getValue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/userjudgchar" + i.toString());
- }
-
- vReptrslt = fCOMLIS_CvtUjudgRst(vBufinptrslt, vReptrslt, vJudgLH, vUjudglt);
-
-
- model.setvalue ("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/reptrslt",vReptrslt);
-
- var tclskind = model.getvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/tclskind");
-
- if(tclskind == "2"){
-
- if(model.getvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/selchk/@value") == "false" ||
- model.getvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/selchk@value") == "true" ){
- if(model.getvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/reptrslt") != ""){
- model.setvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/selchk/@value", "true");
- grd_TestInfoCnts.cellstyle("background-image", vRow, 2) = "../../../lis/commonweb/images/chkRPT1.gif";
- grd_TestInfoCnts.cellstyle("background-position",vRow, 2) = "center";
- }
- }
-
- }
- else if(tclskind=="3" || tclskind=="4"){
- var parentidx = model.getvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/parentidx");
- if(model.getvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/reptrslt") != ""){
- model.setvalue("/root/main/TestInfo/getTestInfoCnts["+parentidx+"]/selchk/@value", "true");
- grd_TestInfoCnts.cellstyle("background-image", parentidx, 2) = "../../../lis/commonweb/images/chkRPT1.gif";
- grd_TestInfoCnts.cellstyle("background-position", parentidx, 2) = "center";
- }
-
- }
-
-
-
- }
-
-
- if (pMulty) {
-
- model.setvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/bufinptrslt", "");
-
- } else {
- // 다음 입력할 결과Row 이동
- var vMoveRow = "";
- if(vMaxRow == parseInt(vRow))
- vMoveRow = parseInt(vRow);
- else
- vMoveRow = parseInt(vRow) + 1;
- /*if( vMaxRow >= vMoveRow ) {
- if(model.getValue("/root/main/TestInfo/getTestInfoCnts["+vMoveRow+"]/bufinptrslt/@readonly") == "true" ) {
- vMoveRow += 1;
- }
- } else {
- vMoveRow -= 1;
- }*/
-
- model.setvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/bufinptrslt", "");
-
- // 다음결과로 이동
- grd_TestInfoCnts.row = vMoveRow
- //grd_TestInfoCnts.col = 3
- //grd_TestInfoCnts.select(vMoveRow,3) = true;
- //grd_TestInfoCnts.editCell();
-
-
- model.setvalue("/root/main/TestInfo/getTestInfoCnts["+vMoveRow+"]/bufinptrslt",
- model.getvalue("/root/main/TestInfo/getTestInfoCnts["+vMoveRow+"]/inptrslt"));
- //grd_TestInfoCnts.rebuild();
- //fCOMLIS_TestInfo("/root/main/TestInfo/getTestInfo", vMoveRow, "/root/MainData/GSHMSangSe/HwanJaJeongBo");
- }
- }
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 배양검사결과입력
- */
- function fEnterCultureRslt(pMatch, pMulty) {
-
- var r;
- if(model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="0" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="2" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="3"){
- r = grd_CultrueTestInfo.row;
- }
- else{
- for(i = grd_CultrueTestInfo.row ; i>0 ; i--){
- if(model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="0" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="2" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="3"){
- r = i;
- i = 0;
- }
- }
- }
-
- var vRow = grd_CultrueTestInfo.row; // 선택한 Row
- var vMaxRow = grd_CultrueTestInfo.rows-1;
-
- if (typeof(pMatch) == "undefined") pMatch = false;
- if (typeof(pMulty) == "undefined") pMulty = false;
-
- // 실제 결과
- var vBufInptRslt = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/bufinptrslt").getTrim();
-
- if (!pMatch) {
- model.setValue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/inptrslt", vBufInptRslt);
- var vReptRslt = vBufInptRslt;
- model.setValue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/reptrslt", vReptRslt);
- // 결과수정시(입력)? 자동체크
- var tclskind = model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/tclskind");
-
- if(tclskind == "2"){
-
- if(model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/selchk/@value") == "false" ||
- model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/selchk@value") == "true" ){
- if(model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/inptrslt") != ""){
- model.setvalue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/selchk/@value", "true");
- grd_CultrueTestInfo.cellstyle("background-image", vRow, 1) = "../../../lis/commonweb/images/chkRPT1.gif";
- grd_CultrueTestInfo.cellstyle("background-position",vRow, 1) = "center";
- }
- }
-
- }
- else if(tclskind=="3" || tclskind=="4" || tclskind=="5"){
- var parentidx = model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/parentidx");
- if(model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/inptrslt") != ""){
- model.setvalue("/root/main/TestInfo/getCultrueTestInfo["+r+"]/selchk/@value", "true");
- grd_CultrueTestInfo.cellstyle("background-image", r, 1) = "../../../lis/commonweb/images/chkRPT1.gif";
- grd_CultrueTestInfo.cellstyle("background-position", r, 1) = "center";
- }
-
- }
-
- var vMoveRow = "";
- if(vMaxRow == parseInt(vRow))
- vMoveRow = parseInt(vRow);
- else
- vMoveRow = parseInt(vRow) + 1;
-
- // 다음결과로 이동
- grd_CultrueTestInfo.row = vMoveRow
-
- fOnclick_grd_CultrueTestInfo(); // 결과입력후 클릭이벤트추가 110527
- // end
- }
- }
-
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 배양검사그리드 조회후 그리드 변경
- */
- function fReMake_CultrueTestList(pIdx){
- var vCurRow = 1;
-
- /* Select All2 => UnChecked로 변경 */
- /*************************************************************
- var checked = model.getValue("/root/HideData/Checked2");
- var btn = model.control("btnChkAll2");
- btn.img = "../images/chkRPT_ALL0.gif"
- btn.refresh();
- model.setValue("/root/HideData/Checked2", 0);
- /**************************************************************/
-
-
-
- if (grd_CultrueTestInfo.Rows > 1) {
- for (var vRow = 1; vRow < grd_CultrueTestInfo.Rows; vRow++ ) {
- var tclskind = model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/tclskind");
-
- if(eval(model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/rsltseq")) > 1){
-
- grd_CultrueTestInfo.cellstyle("background-image", vRow, 5) = "../../../lis/commonweb/images/icnMULTIRST.gif";
- grd_CultrueTestInfo.cellstyle("background-position", vRow, 5) = "center";
- }
-
- if(model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/rstcdexists") == "Y" &&
- model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/bufinptrslt/@readonly") != "true"){
- grd_CultrueTestInfo.cellstyle("background-image", vRow, 4) = "../../../lis/commonweb/images/icnRstCDExists.gif";
- grd_CultrueTestInfo.cellstyle("background-position", vRow, 4) = "right";
- }
-
- if(tclskind=="3" || tclskind=="2") {
- // 슬립이 41 or 42인경우는 배양항목 체크
- // 2005-08-09 Jin Hwa Ji :
- // - 41 슬립, 현미경검사가 없는경우만 체크
- var vTestcd = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/vTestcd");
- var n = grd_TestInfoCnts.rows-1;
- if (vTestcd.substr(1, 2) == "51" && eval(n) < 1) {
- model.setValue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/selchk/@value", "true")
- }
- /**
- * 항목체크 이미지
- */
- var vSelValue = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/selchk/@value");
- if (vSelValue=="true" || vSelValue=="false") {
-
- var iCnt = ((vSelValue=="true") ? "1": "0");
- grd_CultrueTestInfo.cellstyle("background-image", vRow, 1) = "../../../lis/commonweb/images/chkRPT"+iCnt+".gif";
- grd_CultrueTestInfo.cellstyle("background-position", vRow, 1) = "center"
- }
- }
- /*
- // Original 결과 BackColor 설정
- if(model.getValue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/bufinptrslt/@readonly") == "true" ) {
- // 입력 불가능
- var color = fCOMLIS_getBackColor("GRAY");
- TFGridRowColor("grdBaeYangHangMokList", vRow, 3, vRow, 4, 1, color[0], color[1], color[2]);
- if (vRow == 1)
- vCurRow += 1;
- } else {
- // 입력가능
- var color = fCOMLIS_getBackColor("YELLOW");
- TFGridRowColor("grdBaeYangHangMokList", vRow, 3, vRow, 3, 1, color[0], color[1], color[2]); // 입력결과(Origanal Result)
- //TFGridRowColor("grdGeomSaHangMokList", vRow, 5, vRow, 5, 1, 247, 251, 255); // 보이는결과(View Restult)
-
- if (model.getValue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/rstcdexists") == "Y") {
- // 결과코드 있는경우 표시
- fg.Cell(3, vRow, 3) = model.picture("imgRstCDExists");
- fg.Cell(4, vRow, 3) = 6;
- }
- }
-
- // 멀티결과 유무
- if (eval(model.getValue("/root/MainData/GSHMSangSe/BaeYangHangMokList["+vRow+"]/rstno")) > 1) {
- fg.Cell(3, vRow, 4) = model.picture("imgMULTIRST");
- fg.Cell(4, vRow, 8) = 4;
- }
- */
- if(model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/relation") == "Y") {
- grd_CultrueTestInfo.cellstyle("background-image", vRow, 3) = "../../../lis/commonweb/images/icnRelationGeomSa.gif";
- grd_CultrueTestInfo.cellstyle("background-position", vRow, 3) = "right";
- }
-
-
- // 배양항목 유무
- var vTestcd = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/testcd");
- var vTestcd = model.getValue("/root/main/TestInfo/getCultrueDivInfo[testcd='" + vTestcd + "']/testcd");
- if (vTestcd.getTrim() != "") {
- model.setValue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/baeyangflag", "y");
- }
- }
-
-
-
- } else {
- return;
- }
- }
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검사항목그리드 조회후 그리드변경
- */
- function fReMake_TestList(pIdx){
- model.copyNode("/root/hidden/TestInfo", "/root/main/TestInfo");
-
- var vCurRow = 1;
-
- /* Select All => UnChecked로 변경 */
- /*************************************************************
- var checked = model.getValue("/root/HideData/Checked");
- var btn = model.control("btnChkAll");
- btn.img = "../images/chkRPT_ALL0.gif"
- btn.refresh();
- model.setValue("/root/HideData/Checked", 0);
- /**************************************************************/
-
- if (grd_TestInfoCnts.Rows > 1) {
- for (var vRow = 1; vRow < grd_TestInfoCnts.Rows; vRow++ ) {
- var tclskind = model.getvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/tclskind");
-
- if(tclskind=="3" || tclskind=="2") {
- /**
- * 항목체크 이미지
- */
- var vSelValue = model.getValue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/selchk/@value");
- var iCnt = ((vSelValue=="true") ? "1": "0");
- grd_TestInfoCnts.cellstyle("background-image", vRow,2) = "../../../lis/commonweb/images/chkRPT"+iCnt+".gif";
- grd_TestInfoCnts.cellstyle("background-position", vRow, 2) = "center";
-
- }
-
- if(model.getvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/rstcdexists") == "Y"){
- grd_TestInfoCnts.cellstyle("background-image", vRow, 4) = "../../../lis/commonweb/images/icnRstCDExists.gif";
- grd_TestInfoCnts.cellstyle("background-position", vRow, 4) = "right";
- }
-
- if(eval(model.getvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/rsltseq")) > 1){
-
- grd_TestInfoCnts.cellstyle("background-image", vRow, 6) = "../../../lis/commonweb/images/icnMULTIRST.gif";
- grd_TestInfoCnts.cellstyle("background-position", vRow, 6) = "center";
- }
-
- if(model.getvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/relation") == "Y") {
- grd_TestInfoCnts.cellstyle("background-image", vRow, 3) = "../../../lis/commonweb/images/icnRelationGeomSa.gif";
- grd_TestInfoCnts.cellstyle("background-position", vRow, 3) = "right";
- }
- /*
- // Original 결과 BackColor 설정
- if(model.getValue("/root/MainData/GSHMSangSe/GeomSaHangMokList["+vRow+"]/buforgrst/@readonly") == "true" ) {
- // 입력 불가능
- var color = fCOMLIS_getBackColor("GRAY");
- TFGridRowColor("grdGeomSaHangMokList", vRow, 4, vRow, 6, 1, color[0], color[1], color[2]);
- if (vRow == 1)
- vCurRow += 1;
- } else {
- // 입력가능
- var color = fCOMLIS_getBackColor("BLUE");
- TFGridRowColor("grdGeomSaHangMokList", vRow, 4, vRow, 4, 1, color[0], color[1], color[2]); // 입력결과(Origanal Result)
- var color = fCOMLIS_getBackColor("YELLOW");
- TFGridRowColor("grdGeomSaHangMokList", vRow, 5, vRow, 5, 1, color[0], color[1], color[2]); // 보이는결과(View Restult)
-
- if (model.getValue("/root/MainData/GSHMSangSe/GeomSaHangMokList["+vRow+"]/rstcdexists") == "Y") {
- // 결과코드 있는경우 표시
- fg.Cell(3, vRow, 4) = model.picture("imgRstCDExists");
- fg.Cell(4, vRow, 4) = 6;
- }
- }
-
-
-
- // 최종보고는 FontColor 변경
- if (model.getValue("/root/MainData/GSHMSangSe/GeomSaHangMokList["+vRow+"]/rstmark") == "◆") {
- TFGridFontColor("grdGeomSaHangMokList", vRow, 10, vRow, 10, 1, 51, 153, 102);
- }*/
- }
- setTree(grd_TestInfoCnts , 11 , 1 , true);
- grd_TestInfoCnts.row = vCurRow;
- grd_TestInfoCnts.col = 4;
- //grd_TestInfoCnts.select(vMoveRow,3) = true;
-
-
- model.setvalue("/root/main/TestInfo/getTestInfoCnts["+vCurRow+"]/bufinptrslt",
- model.getvalue("/root/main/TestInfo/getTestInfoCnts["+vCurRow+"]/inptrslt"));
-
- // fCOMLIS_CurrGeomSaJeongBo("/root/MainData/GSHMSangSe/GeomSaHangMokList", vCurRow, "/root/MainData/GSHMSangSe/HwanJaJeongBo");
-
- } else {
-
- }
- }
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검사항목그리드 클릭
- */
- function fOnclick_grd_TestInfoCnts(){
-
- var vCol = grd_TestInfoCnts.col;
- var vRow = grd_TestInfoCnts.Row; // 선택한 Row
-
- model.setValue("/root/main/TestInfo/getSpcInfo/tsectcd", model.getValue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/tsectcd"));
- //미생물 검사 tsectcd 다시 셋팅 (미생물 검사에는 한 검체의 여러가지 tsectcd 가 있을수 있기 때문
-
- // 보이는 결과 초기화
- /****************************************************************************/
- for (var i=1; i<grd_TestInfoCnts.rows; i++) {
- if (i == vRow) {
- if (vCol== 4) {
- var vInptRslt= model.getValue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/inptrslt").getTrim();
- if (vInptRslt != "") {
- model.setvalue("/root/main/TestInfo/getTestInfoCnts["+i+"]/bufinptrslt", vInptRslt);
- }
- }
- } else {
- model.setvalue("/root/main/TestInfo/getTestInfoCnts["+i+"]/bufinptrslt", "");
- }
- }
- /****************************************************************************/
-
- if (eval(vRow) < 1) return;
- // 선택한 검사항목의 결과저장자, 중간(예비)보고자, 최종보고자 표시한다.
- //fLIS_TestInfo(vRow, "/root/main/TestInfo/getSpcInfo", "/root/main/TestInfo/getTestInfoCnts");
- if (vCol == 1) {
- // Parent항목 +/-처리
- /*
- var vExp = model.getValue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/exp/@value");
- var vTclskind = model.getValue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/tclskind");
-
- if (vTclskind == "3") {
-
- if (vExp=="0") {
- vExp = "1";
- } else {
- vExp = "0";
- }
-
- model.setValue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/exp/@value", vExp)
- grd_TestInfoCnts.cellstyle("background-image", vRow,1) = "../../../lis/commonweb/images/icnExp"+vExp+".gif";
- grd_TestInfoCnts.cellstyle("background-position", vRow, 1) = "center";
-
- var n = TFGetGridCount("grdGeomSaHangMokList");
- var parentidx = model.getValue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/parentidx");
- for (i = eval(vRow)+1; i <= n; i++) {
- var curparentidx = model.getValue("/root/main/TestInfo/getTestInfoCnts["+i+"]/parentidx");
-
- if (parentidx == curparentidx) {
- if (vExp=="0") {
- fg.RowHidden(i) = "false";
- } else {
- fg.RowHidden(i) = "true";
- }
- } else {
- break;
- }
- }
- }*/
- } else if (vCol == 2) {
- // Report Check 클릭
- var vSelValue = model.getValue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/selchk/@value");
- vSelValue = (vSelValue=="true") ? "false": "true";
- model.setValue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/selchk/@value", vSelValue);
- var iCnt = ((vSelValue=="true") ? "1": "0");
- grd_TestInfoCnts.cellstyle("background-image", vRow,2) = "../../../lis/commonweb/images/chkRPT"+iCnt+".gif";
- grd_TestInfoCnts.cellstyle("background-position", vRow, 2) = "center"
- } else if (vCol == 6) {
- if(eval(model.getvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/rsltseq")) > 1){
- var vBCNO = model.getValue("/root/main/TestInfo/getSpcInfo/bcno");
-
- model.setValue("/root/hidden/DJGGParm/bcno", vBCNO);
- model.setValue("/root/hidden/DJGGParm/testlrgkind", "M");
- model.setValue("/root/hidden/DJGGParm/microtestkind", "1");
-
- modal("SPLLR90100" ,"","","","","/root/hidden/DJGGParm", "/root/hidden/DJGGParm");
-
-
- var vBufDJGG = model.getValue("/root/hidden/DJGGParm/bufDJGG");
- if (vBufDJGG.getTrim() != "") {
- var vRowA = vBufDJGG.split("▩");
- for (n = 0; n < vRowA.length - 1; n++) {
-
- vColA = vRowA[n].split("▦");
-
- var findrow = grd_TestInfoCnts.FindRow(vColA[0].toString().getTrim(), 1, 12, false, false);
-
- if (findrow > 0) {
- grd_TestInfoCnts.row= findrow;
- grd_TestInfoCnts.col = 4;
-
- model.setValue("/root/main/TestInfo/getTestInfoCnts["+findrow+"]/bufinptrslt", vColA[1].toString());
- fCvtViewResult(false, true);
- }
- }
-
- }
- }
- } else {
- return;
- }
- }
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 배양검사그리드 클릭
- */
- function fOnclick_grd_CultrueTestInfo(state){
-
- var vCol =grd_CultrueTestInfo.col;
- var vRow;
- if(model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="0" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="2" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="3"){
- vRow = grd_CultrueTestInfo.row;
- }
- else{
- for(i = grd_CultrueTestInfo.row ; i>0 ; i--){
- if(model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="0" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="2" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="3"){
- vRow = i;
- i = 0;
- }
- }
- }
- var testinfo = grd_CultrueTestInfo.rows;
- //alert(testinfo);
- if (testinfo > 1 ){
- model.setValue("/root/main/TestInfo/getSpcInfo/tsectcd", model.getValue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/tsectcd"));
- }//미생물 검사 tsectcd 다시 셋팅 (미생물 검사에는 한 검체의 여러가지 tsectcd 가 있을수 있기 때문
-
-
-
- if(state == "Default"){
- vRow = grd_CultrueTestInfo.rows - (grd_CultrueTestInfo.rows - 1);
- grd_CultrueTestInfo.row = vRow;
- }else{
- if (eval(vRow) < 1) return;
- }
- //if(!grd_CultrueTestInfo.isCell(event.target) || grd_CultrueTestInfo.row < grd_CultrueTestInfo.fixedRows ) return;
- var oldCnt = grd_CultrueDivInfo.rows-1 //변경전 배양/분리균수
- var vTESTCD= model.getValue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/testcd").getTrim();
-
- grd_CultrueDivInfo.nodeset = "/root/hidden/Baccd/getBaccd" + vTESTCD + "/getBacList";
- //grd_AntimicInfo.nodeset = "/hidden/Baccd/getAntimicInfo" +vTESTCD + vRow;
- var vBACCD = model.getValue("/root/hidden/Baccd/getBaccd" +vTESTCD + "/getBacList["+vRow+"]/baccd");
- var vBCNO = model.getValue("/root/hidden/Baccd/getBaccd" +vTESTCD + "/getBacList["+vRow+"]/bcno");
- var vBacSeqno = model.getValue("/root/hidden/Baccd/getBaccd" +vTESTCD + "/getBacList["+vRow+"]/bcno");
- grd_AntimicInfo.nodeset = "/root/hidden/Baccd/getAntimicInfo" + vTESTCD + "/antibiolist[baccd = '" + vBACCD + "' and bcno = '"+vBCNO+"' and bacseqno = '"+vBacSeqno+"']";
- fBtnEnable(1, "true");
- fBtnEnable(2, "false");
- var n = grd_CultrueDivInfo.rows-1;
-
- var s = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/tclsscrnm");
- model.setValue("/root/hidden/curCultureNM", s);
- model.refresh();
-
- /***************************************************************************************/
-
- if (vCol == 1) {
- // Report Check 클릭
- var vSelValue = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/selchk/@value");
- vSelValue = (vSelValue=="true") ? "false": "true";
- model.setValue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/selchk/@value", vSelValue);
- var iCnt = ((vSelValue=="true") ? "1": "0");
- grd_CultrueTestInfo.cellstyle("background-image", vRow,1) = "../../../lis/commonweb/images/chkRPT"+iCnt+".gif";
- grd_CultrueTestInfo.cellstyle("background-position", vRow, 1) = "center";
-
- } else if (vCol == 5) {
- // 다중결과 클릭
-
- if(eval(model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+vRow+"]/rsltseq")) > 1){
- var vBCNO = model.getValue("/root/main/TestInfo/getSpcInfo/bcno");
-
- model.setValue("/root/hidden/DJGGParm/bcno", vBCNO);
- model.setValue("/root/hidden/DJGGParm/testlrgkind", "M");
- model.setValue("/root/hidden/DJGGParm/microtestkind", "2");
-
- modal("SPLLR90100" ,"","","","","/root/hidden/DJGGParm", "/root/hidden/DJGGParm");
-
-
- var vBufDJGG = model.getValue("/root/hidden/DJGGParm/bufDJGG");
- if (vBufDJGG.getTrim() != "") {
- var vRowA = vBufDJGG.split("▩");
- for (n = 0; n < vRowA.length - 1; n++) {
-
- vColA = vRowA[n].split("▦");
-
- var findrow = grd_CultrueTestInfo.FindRow(vColA[0].toString().getTrim(), 1, 10, false, false);
-
- if (findrow > 0) {
- grd_CultrueTestInfo.row= findrow;
- grd_CultrueTestInfo.col = 3;
-
- model.setValue("/root/main/TestInfo/getCultrueTestInfo["+findrow+"]/bufinptrslt", vColA[1].toString());
- fCvtViewResult(false, true);
- }
- }
-
- }
- }
- return;
- } else {
- }
-
- // 선택한 검사항목의 결과저장자, 중간(예비)보고자, 최종보고자 표시한다.
- //fLIS_TestInfo(vRow, "/root/main/TestInfo/getSpcInfo", "/root/main/TestInfo/getCultrueTestInfo");
-
- /************************************************************************************/
- /*var n = grd_CultrueDivInfo.rows-1;
- for (var r=1; r<=grd_AntimicInfo.rows-1; r++) {
- for (var c = 1; c <= n; c++) {
- var rseq = (c.toString().length == 1)? "0" + c: c;
- var readonly = model.getValue("/root/main/TestInfo/getAntimicInfo[testcd='"+vTESTCD+"']["+r+"]/antirst"+rseq+"/@readonly");
-
- if (readonly == "") {
- // BackColor= White Color
- } else {
- // BackColor= Gray Color
- }
- }
- }*/
- /************************************************************************************/
- //if(state == "Default"){
- if(grd_CultrueDivInfo.rows> 0 ){
- //model.setFocus("grd_CultrueDivInfo");
- grd_CultrueDivInfo.row = 1;
- grd_CultrueDivInfo.col = 3;
-
- fOnclick_grd_CultrueDivInfo();
- }
- //}
-
- }
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드 노드셋 변경
- */
- function fSetGridNodeSet(pGridID, pRef,pRebuild) {
-
- if(pGridID == "grd_CultrueTestInfo"){
- grd_CultrueTestInfo.nodeset = pRef;
- if(pRebuild =="true"){
- grd_CultrueTestInfo.rebuild();
- }
- }
-
- }
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 버튼 enable 처리
- */
- function fBtnEnable(pFlag, pState) {
- //한줄 추가, 삭제버튼
- if(pFlag=="1" || pFlag=="0") {
- btnRowInc.attribute("disabled") = pState;
- btnRowDel.attribute("disabled") = pState;
-
- }
-
- if(pFlag=="2" || pFlag=="0") {
- btnAddHangGyunJe.attribute("disabled") = pState;
- }
- }
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 배양분리균 추가 버튼 클릭
- */
- function fnRowInc_Click() {
- // 배양검사 선택 여부 체크
- //var r = grd_CultrueTestInfo.row;
-
- // 배양/분리균의 갯수 체크
- var n = grd_CultrueDivInfo.rows-1;
- if (n == 10) {
- window.alert( "[배양/분리균]은 최대 10개 까지만 추가가 가능합니다.", "결과관리", "48" );
- return;
- }
-
- var r = 0;
- // 배양검사 정보
- if(model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="0" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="2" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="3"){
- r = grd_CultrueTestInfo.row;
- }
- else{
- for(i = grd_CultrueTestInfo.row ; i>0 ; i--){
- if(model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="0" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="2" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="3"){
- r = i;
- i = 0;
- }
- }
- }
-
- if (r < 1) {
- window.alert( "배양검사를 선택해 주십시오", "결과관리", "48");
- return;
- }
- //var r = grd_CultrueTestInfo.row;
- var vBCNO = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r+"]/bcno");
- var vTESTCD = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r+"]/testcd").getTrim();
- var vSPCCD = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r+"]/spccd");
- var vRSLTSEQ = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r+"]/rsltseq");
- model.setValue("/root/main/TestInfo/getCultrueTestInfo["+r+"]/baeyangflag", "y"); // 균추가여부 체크
- //alert("vBCNO="+vBCNO+", vTCLSCD="+vTCLSCD+", vSPCCD="+vSPCCD);
- // 배양/분리균 노드셋 초기화
- //fSetGridNodeSet("grd_CultrueDivInfo", "/root/main/TestInfo/getCultrueDivInfo", "false");
- //grd_CultrueDivInfo.nodeset = "/root/main/TestInfo/getCultrueDivInfo";
- // 한줄추가
- grd_CultrueDivInfo.addItem();
-
- var vInstance = document.models(0).instances(0);
- var cntHR = vInstance.selectNodes("/root/hidden/Baccd/getBaccd" + vTESTCD).length;
-
- if(cntHR < 1) {
- model.makeNode("/root/hidden/Baccd/getBaccd" + vTESTCD);
- model.makeNode("/root/hidden/Baccd/getBaccd" + vTESTCD + "/getBacList");
- }
- var lastRow = grd_CultrueDivInfo.rows-1;
- var maxbacseqno = 0;
-
- for( i = 1 ; i < grd_CultrueDivInfo.rows-1; i++){
- if(maxbacseqno < grd_CultrueDivInfo.valueMatrix(i,10)){
- maxbacseqno = grd_CultrueDivInfo.valueMatrix(i,10);
- }
- }
-
- maxbacseqno = parseInt(maxbacseqno) + 1;
-
-
- model.makeValue("/root/hidden/Baccd/getBaccd" + vTESTCD + "/getBacList["+lastRow+"]/bcno" , vBCNO);
- model.makeValue("/root/hidden/Baccd/getBaccd" + vTESTCD + "/getBacList["+lastRow+"]/testcd" , vTESTCD);
- model.makeValue("/root/hidden/Baccd/getBaccd" + vTESTCD + "/getBacList["+lastRow+"]/spccd" , vSPCCD);
- model.makeValue("/root/hidden/Baccd/getBaccd" + vTESTCD + "/getBacList["+lastRow+"]/rsltseq" , vRSLTSEQ);
- model.makeValue("/root/hidden/Baccd/getBaccd" + vTESTCD + "/getBacList["+lastRow+"]/new" , "Y");
- model.makeValue("/root/hidden/Baccd/getBaccd" + vTESTCD + "/getBacList["+lastRow+"]/bacseqno" , maxbacseqno);
-
-
- /* 배양검사항목 정보를 추가한 Row에 기본정보 Setting
- var lastRow = grd_CultrueDivInfo.rows-1;
- var vMax = 0;
- for(var i = 1; i <= eval(lastRow); i++) {
- if (eval(vMax) < eval(model.getValue("/root/main/TestInfo/getCultrueDivInfo["+i+"]/bacseqno"))) {
- vMax = eval(model.getValue("/root/main/TestInfo/getCultrueDivInfo["+i+"]/bacseqno"));
- }
- }
-
- model.setValue("/root/main/TestInfo/getCultrueDivInfo["+lastRow+"]/bcno", vBCNO);
- model.setValue("/root/main/TestInfo/getCultrueDivInfo["+lastRow+"]/testcd", vTESTCD);
- model.setValue("/root/main/TestInfo/getCultrueDivInfo["+lastRow+"]/spccd", vSPCCD);
- model.setValue("/root/main/TestInfo/getCultrueDivInfo["+lastRow+"]/rsltseq", vRSLTSEQ);
- //model.setValue("/root/MainData/GSHMSangSe/BYBRGyunList["+lastRow+"]/seq", lastRow);
- model.setValue("/root/main/TestInfo/getCultrueDivInfo["+lastRow+"]/bacseqno", lastRow);
- model.setValue("/root/main/TestInfo/getCultrueDivInfo["+lastRow+"]/new", "Y");
- // 배양/분리균 노드셋 원상태로 변경
- //fSetGridNodeSet("grdBYBRGyunList", "/root/MainData/GSHMSangSe/BYBRGyunList[tclscd='"+vTCLSCD+"']", "true");
- //grd_CultrueDivInfo.nodeset = "/root/main/TestInfo/getCultrueDivInfo[testcd='"+vTESTCD+"']";
- model.setValue("/root/main/TestInfo/getCultrueDivInfo["+lastRow+"]/bacseqno", grd_CultrueDivInfo.rows-1);
- // 항균제명 결과, 판정 컬럼표시*/
- var n = grd_AntimicInfo.rows-1;
-
- //fGyunColHidden(n, "false");
-
- // 2005-04-21 JJH 배양균이 있는경우만 향균제결과판정컬럼 설정시버튼보이게
- /*if(n == 1) {
- model.visible("btnPanJeong", true);
- }*/
-
- var maxrows = grd_AntimicInfo.rows-1;
- if (eval(maxrows) > 0)
- //TFGridRowColor("grdHangGyunJeList", 1, eval(n*2), maxrows, eval((n*2)+1), 1, 234, 234, 234); // Gray Color
-
- // 추가한 배양균 선택
-
- model.refresh();
-
- var maxrows = grd_CultrueDivInfo.rows-1;
-
- grd_CultrueDivInfo.row= maxrows;
- grd_CultrueDivInfo.col= 3;
- }
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 배양분리균 삭제버튼 클릭
- */
- function fnRowDel_Click() {
- // 배양/분리균 선택 여부 체크
- var vRSTSEQ = grd_CultrueDivInfo.row;
- if (vRSTSEQ < 1) {
- window.alert( "삭제할 배양/분리균을 선택해 주십시오", "결과관리", "48" );
- return;
- }
-
-
- var retval = window.alert( "선택한 배양/분리균을 리스트에서 삭제 하시겠습니까?", "결과관리", "35" );
- if (retval == "7") return; // yes = 6, no = 7
- //var row = grd_CultrueTestInfo.row;
-
- var r;
- // 배양검사 정보
- if(model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="0" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="2" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="3"){
- r = grd_CultrueTestInfo.row;
- }
- else{
- for(i = grd_CultrueTestInfo.row ; i>0 ; i--){
- if(model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="0" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="2" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="3"){
- r = i;
- i = 0;
- }
- }
- }
- //var r = grd_CultrueTestInfo.row;
- var vBcno = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r+"]/bcno");
- var vTestcd = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r+"]/testcd").getTrim();
- var vBacseqno = model.getvalue("/root/hidden/Baccd/getBaccd"+vTestcd+"/getBacList["+vRSTSEQ+"]/bacseqno");
- var vBaccd = model.getvalue("/root/hidden/Baccd/getBaccd"+vTestcd+"/getBacList["+vRSTSEQ+"]/baccd");
-
- grd_CultrueDivInfo.deleteItem(vRSTSEQ);
- model.removeNodeset("/root/hidden/Baccd/getAntimicInfo" + vTestcd + "/antibiolist[baccd = '" + vBaccd + "' and bcno = '"+vBcno+"' and bacseqno = '"+vBacseqno+"']");
-
- var ins = document.models( 0 ).instances( 0 );
-
- /*
- for(i = 1 ;i<grd_CultrueDivInfo.rows;i++){
- //model.setvalue("/root/hidden/Baccd/getBaccd"+vTestcd+"/getBacList["+i+"]/bacseqno" , i);
- //var vTestcd = model.getvalue("/root/main/TestInfo/getCultrueDivInfo["+i+"]/testcd" );
- alert(vRSTSEQ);
- alert(VV);
- alert(i);
- var ipRow = parseInt(i) + 1;
- var nodename =" /root/hidden/Baccd/getAntimicInfo" +vTestcd+ ipRow;
-
- var node = ins.selectSingleNode( nodename );
- node.nodeName = "getAntimicInfo" +vTestcd+ i;
- }
- */
- //var vTestcd = model.getvalue("/root/main/TestInfo/getCultrueDivInfo["+grd_CultrueDivInfo.row+"]/testcd" );
- //grd_AntimicInfo.nodeset = "/root/hidden/Baccd/getAntimicInfo"+ vTestcd+grd_CultrueDivInfo.row +"/antibiolist"; //몰라 숨겨
- grd_CultrueDivInfo.rebuild();
-
-
-
- /*
- // 배양검사 항목코드
- var r = grd_CultrueTestInfo.row;
- var vTESTCD= model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r+"]/testcd");
-
- // 삭제할 배양/분리균정보 가져오기
- var r = grd_CultrueDivInfo.row;
- var vBCNO = model.getValue("/root/main/TestInfo/getCultrueDivInfo[tclscd='"+vTCLSCD+"']["+r+"]/bcno");
- var vTCLSCD = model.getValue("/root/main/TestInfo/getCultrueDivInfo[tclscd='"+vTCLSCD+"']["+r+"]/tclscd");
- var vSPCCD = model.getValue("/root/main/TestInfo/getCultrueDivInfo[tclscd='"+vTCLSCD+"']["+r+"]/spccd");
- var vRSTNO = model.getValue("/root/main/TestInfo/getCultrueDivInfo[tclscd='"+vTCLSCD+"']["+r+"]/rstno");
- var vSEQ = model.getValue("/root/main/TestInfo/getCultrueDivInfo[tclscd='"+vTCLSCD+"']["+r+"]/seq");
- var vBACCD = model.getValue("/root/main/TestInfo/getCultrueDivInfo[tclscd='"+vTCLSCD+"']["+r+"]/baccd");
- var vTESTMTD = model.getValue("/root/main/TestInfo/getCultrueDivInfo[tclscd='"+vTCLSCD+"']["+r+"]/testmtd");
- var vRSTSEQ = r;
- vMax = 0;
- for(i=1 ; i< grd_CultrueDivInfo.rows;i++){
- if(model.getvalue("/root/main/TestInfo/getCultrueDivInfo["+i+"]/tclscd") == vTCLSCD)
- vMax ++;
- }
- //var vMax = getNodesetCnt("/root/MainData/GSHMSangSe/BYBRGyunList[tclscd='"+vTCLSCD+"']");
- /*alert("vBCNO="+vBCNO+", vTCLSCD="+vTCLSCD+", vSPCCD="+vSPCCD+", vRSTNO="+vRSTNO
- +", vSEQ="+vSEQ+", vBACCD="+vBACCD+", vTESTMTD="+vTESTMTD+", vRSTSEQ="+vRSTSEQ);
-
- if (vBACCD != "") {
- var retval = window.alert( "선택한 배양/분리균을 리스트에서 삭제 하시겠습니까?", "결과관리", "35" );
- if (retval == "7") return; // yes = 6, no = 7
- }
-
- // 노드셋 초기화
- //fSetGridNodeSet("grdHangGyunJeList", "/root/MainData/GSHMSangSe/HangGyunJeList", "false");
- //var n = getNodesetCnt("/root/MainData/GSHMSangSe/HangGyunJeList[tclscd='"+vTCLSCD+"']");
-
- n = 0;
- for(i=1;i<grd_AntimicInfo.rows;i++){
- if(model.getvalue("/root/main/TestInfo/getAntimicInfo["+i+"]/tclscd") == vTCLSCD)
- n++;
- }
-
-
- for (i = n; i >= 1; i--) {
- var vSeqs = model.getvalue("/root/main/TestInfo/getAntimicInfo[tclscd='"+vTCLSCD+"']["+i+"]/seq");
- var vRstSeqs = model.getvalue("/root/main/TestInfo/getAntimicInfo[tclscd='"+vTCLSCD+"']["+i+"]/rstseq");
- var vTestmtds = model.getvalue("/root/main/TestInfo/getAntimicInfo[tclscd='"+vTCLSCD+"']["+i+"]/testmtd");
- //alert("vSeqs는 [" +vSeqs + "], vSEQ는 " + vSEQ);
-
- if (vSeqs.indexOf(vSEQ.getTrim() + ",") >= 0) {
- vSeqs = vSeqs.replace(vSEQ.getTrim() + ",", "");
- vRstSeqs = vRstSeqs.replace(vRSTSEQ.toString().getTrim() + ",", "");
- vTestmtds = vTestmtds.replace(vTESTMTD.toString().getTrim() + ",", "");
- model.setValue("/root/main/TestInfo/getAntimicInfo[tclscd='"+vTCLSCD+"']["+i+"]/seq", vSeqs);
- model.setValue("/root/main/TestInfo/getAntimicInfo[tclscd='"+vTCLSCD+"']["+i+"]/rstseq", vRstSeqs);
- model.setValue("/root/main/TestInfo/getAntimicInfo[tclscd='"+vTCLSCD+"']["+i+"]/testmtd", vTestmtds);
- } else {
- //alert("None");
- }
-
- var vSeqs = model.getvalue("/root/main/TestInfo/getAntimicInfo[tclscd='"+vTCLSCD+"']["+i+"]/seq");
- if (vSeqs == "") {
- model.removeNodeset("/root/main/TestInfo/getAntimicInfo[tclscd='"+vTCLSCD+"']["+i+"]");
-
- } else {
- for (j = eval(vRSTSEQ); j <= vMax; j++) {
- var vCurSeq = j.toString().getleftPad(2);
- if (j == vMax) {
- model.setValue("/root/main/TestInfo/getAntimicInfo[tclscd='"+vTCLSCD+"']["+i+"]/antirst" + vCurSeq, "");
- model.setValue("/root/main/TestInfo/getAntimicInfo[tclscd='"+vTCLSCD+"']["+i+"]/antirst" + vCurSeq + "/@readonly", "true");
- model.setValue("/root/main/TestInfo/getAntimicInfo[tclscd='"+vTCLSCD+"']["+i+"]/decrst" + vCurSeq, "");
- } else {
- fHGJCopy("/root/main/TestInfo/getAntimicInfo[tclscd='"+vTCLSCD+"']["+i+"]", eval(j+1).toString(), j.toString());
-
- }
- }
- }
- }
- // 항균제 노드셋 원상태로 변경
- //fSetGridNodeSet("grdHangGyunJeList", "/root/MainData/GSHMSangSe/HangGyunJeList[tclscd='"+vTCLSCD+"']", "true");
-
- // 항균제 결과/판정 칼럼설정
- var n = TFGetGridCount("grdBYBRGyunList");
-
- //fGyunColHidden(eval(vMax), "true");
-
- if(vMax == "1") {
- model.visible("btnPanJeong", false);
- }
-
- // 배양/분리균 삭제
- model.removeNodeset("/root/MainData/GSHMSangSe/BYBRGyunList[tclscd='"+vTCLSCD+"']["+r+"]");
- fSetGridNodeSet("grdBYBRGyunList", "/root/MainData/GSHMSangSe/BYBRGyunList[tclscd='"+vTCLSCD+"']", "true");
-
- var n = grd_CultrueDivInfo.rows - 1;
- for (var r=1; r< grd_AntimicInfo.rows;r++) {
- for (var c = 1; c <= n; c++) {
- var rseq = (c.toString().length == 1)? "0" + c: c;
- var readonly = model.getValue("/root/main/TestInfo/getAntimicInfo[tclscd='"+vTCLSCD+"']["+r+"]/antirst"+rseq+"/@readonly");
-
- if (readonly == "") {
- // BackColor= White Color
- } else {
- // BackColor= Gray Color
- }
- }
- }*/
- }
-
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 항균제결과이동
-
- function fHGJCopy(pRef, pFrom, pTo) {
- var vFrNo = pFrom.toString().getleftPad(2);
- var vToNo = pTo.toString().getleftPad(2);
-
- model.setValue(pRef + "/antirst" + vToNo, model.getValue(pRef + "/antirst" + vFrNo));
- model.setValue(pRef + "/antirst" + vToNo + "/@readonly", model.getValue(pRef + "/antirst" + vFrNo + "/@readonly"));
- model.setValue(pRef + "/decrst" + vToNo, model.getValue(pRef + "/decrst" + vFrNo));
-
- var vRstSeqs = model.getvalue(pRef + "/rstseq");
- vRstSeqs = vRstSeqs.replace(pFrom.toString().getTrim() + ",", pTo.toString().getTrim() + ",");
- model.setValue(pRef + "/rstseq", vRstSeqs);
- } */
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 항균제 결과 표시 제어
- */
- function fGyunColHidden(pRstNo, pState, pRstNo2) {
-
- if (typeof(pRstNo2) == "undefined") {
- var vCol = eval(pRstNo) * 2;
- grd_AntimicInfo.colHidden(vCol) = pState;
- grd_AntimicInfo.colHidden(eval(vCol+1)) = pState;
- } else {
- for (var i = eval(pRstNo); i <= eval(pRstNo2); i++) {
- var vCol = eval(i) * 2;
- grd_AntimicInfo.colHidden(vCol) = pState;
- grd_AntimicInfo.colHidden(eval(vCol+1)) = pState;
- }
- }
-
- }
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 배양분리균 그리드 클릭
- */
- function fOnclick_grd_CultrueDivInfo(){
- // 배양검사 항목코드
- //if(!grd_CultrueDivInfo.isCell(event.target) || grd_CultrueDivInfo.row < grd_CultrueDivInfo.fixedRows ) return;
-
-
- var r;
- if(model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="0" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="2" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="3"){
- r = grd_CultrueTestInfo.row;
- }
- else{
- for(i = grd_CultrueTestInfo.row ; i>0 ; i--){
- if(model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="0" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="2" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="3"){
- r = i;
- i = 0;
- }
- }
- }
- var vTESTCD = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r+"]/testcd").getTrim();
-
-
- // 균 테스트방식 셋팅
- if (typeof(pRow) == "undefined") {
- var vRow = grd_CultrueDivInfo.row;
- }else {
- var vRow = pRow;
- }
-
-
- //var s = model.getValue("/root/main/TestInfo/getCultrueDivInfo["+vRow+"]/bacnm");
- //model.setValue("/root/hidden/curCultureNM", s);
- //model.refresh();
-
- // 배양/분리균
- var vBACCD = model.getValue("/root/hidden/Baccd/getBaccd" +vTESTCD + "/getBacList["+vRow+"]/baccd");
- var vBACNM = model.getValue("/root/hidden/Baccd/getBaccd" +vTESTCD + "/getBacList["+vRow+"]/bacscrnnm");
- var vTESTMTD = model.getValue("/root/hidden/Baccd/getBaccd" +vTESTCD + "/getBacList["+vRow+"]/testkindcd");
- var vBACSEQNO = model.getValue("/root/hidden/Baccd/getBaccd" +vTESTCD + "/getBacList["+vRow+"]/bacseqno");
- var vBCNO = model.getValue("/root/hidden/Baccd/getBaccd" +vTESTCD + "/getBacList["+vRow+"]/bcno");
- //alert("vBACCD="+vBACCD);
- //alert("vBACNM="+vBACNM);
- //alert("vTESTMTD="+vTESTMTD);
- //alert("vBACSEQNO="+vBACSEQNO);
- //alert("vBCNO="+vBCNO);
- if (vBACCD.getTrim() != "" ) {
- // 항균제 추가버튼 활성화
- fBtnEnable(2, "true");
-
- if (vTESTMTD.getTrim() != "" ) {
- model.setValue("/root/hidden/testmtd", vTESTMTD);
- //model.enable("rdbMTD", "false");
- } else {
- model.setValue("/root/hidden/testmtd", "D");
- //model.enable("rdbMTD", "true");
- }
- //model.refresh();
-
- } else {
- // 항균제 추가버튼 활성화
- fBtnEnable(2, "false");
- model.setValue("/root/hidden/testmtd", "D");
- }
-
- //alert( "/root/hidden/AntiBio/getAntimicInfo"+ vTESTCD + vBACSEQNO +"/antibiolist")
- model.setvalue("/root/hidden/Antimic" , vBACNM);
- //alert("기존에 있던 항생제 조회");
- grd_AntimicInfo.nodeset = "/root/hidden/Baccd/getAntimicInfo" + vTESTCD + "/antibiolist[baccd = '" + vBACCD + "' and bcno = '"+vBCNO+"' and bacseqno = '"+vBACSEQNO+"']";
-
- for(i=1 ; i < grd_AntimicInfo.rows ; i++){
-
- if(grd_AntimicInfo.labelMatrix(i, 7) == "P"){
- grd_AntimicInfo.cellStyle ("background-color", i,7,i,7) = "#7BE6B7";
- }else{
- grd_AntimicInfo.cellStyle ("background-color",i,7,i,7) = "#ffffff";
- }
- if(grd_AntimicInfo.labelMatrix(i, 8) == "D"){
- grd_AntimicInfo.cellStyle ("background-color", i,8,i,8) = "#dec6a4";
- }else{
- grd_AntimicInfo.cellStyle ("background-color",i,8,i,8) = "#ffffff";
- }
- /*if(model.getValue("/root/hidden/Baccd/getAntimicInfo"+ vTESTCD +"/antibiolist[baccd = '" + vBACCD + "' and bcno = '"+vBCNO+"']["+i+"]/panicmark") == "P"){
- grd_AntimicInfo.cellStyle ("background-color", i,7,i,7) = "#7BE6B7";
- }
- else{
- grd_AntimicInfo.cellStyle ("background-color",i,7,i,7) = "#ffffff";
- }
- if(model.getValue("/root/hidden/Baccd/getAntimicInfo"+ vTESTCD +"/antibiolist["+i+"]/deltamark") == "D"){
- grd_AntimicInfo.cellStyle ("background-color", i,8,i,8) = "#dec6a4";
- }
- else{
- grd_AntimicInfo.cellStyle ("background-color",i,8,i,8) = "#ffffff";
- }*/
-
- if(grd_AntimicInfo.labelMatrix(i, 6) != ""){
- var vTooltipText = "[" +grd_AntimicInfo.labelMatrix(i, 10)
- + "]";
- var DT = grd_AntimicInfo.labelMatrix(i, 11);
-
- var OKDT = DT.substr(0,4) + "-" + DT.substr(4,2) + "-" + DT.substr(6,2) + " " + DT.substr(8,2) + ":" + DT.substr(10,2) + ":" + DT.substr(12,2);
-
- vTooltipText = vTooltipText + OKDT;
-
- grd_AntimicInfo.tooltipText(i,6) = vTooltipText.toString().replace("/", "\n");
- }
- /*if(model.getValue("/root/hidden/Baccd/getAntimicInfo"+ vTESTCD +"/antibiolist["+i+"]/bfantibioref") != ""){
- var vTooltipText = "[" + model.getValue("/root/hidden/Baccd/getAntimicInfo"+ vTESTCD +"/antibiolist["+i+"]/bfspcnm")
- + "]";
- var DT = model.getValue("/root/hidden/Baccd/getAntimicInfo"+ vTESTCD +"/antibiolist["+i+"]/bfantibiorsltdt");
- var OKDT = DT.substr(0,4) + "-" + DT.substr(4,2) + "-" + DT.substr(6,2) + " " + DT.substr(8,2) + ":" + DT.substr(10,2) + ":" + DT.substr(12,2);
- vTooltipText = vTooltipText + OKDT;
- grd_AntimicInfo.tooltipText(i,6) = vTooltipText.toString().replace("/", "\n");
- } */
-
- }
- model.refresh();
-
- }
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 배양균 서치 그리드 더블클릭 , 엔터키이벤트
- */
- function Ondbclick_grdCultrue(){
- //alert("배양균서치 더블클릭");
-
- var rowHlp = grd_Cultrue.row;
-
-
- if (rowHlp > 0) {
- //grd_Cultrue.attribute("visibility") = "hidden" ;
- // Code Help Hidden
- fCodeHidden("grd_Cultrue");
- radio2.visible = false;
- button9.visible = false;
- model.setValue("/root/hidden/bacflagcd" , "1");
-
-
- // 배양검사 항목코드
- var r;
- if(model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="0" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="2" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="3"){
- r = grd_CultrueTestInfo.row;
- }
- else{
- for(i = grd_CultrueTestInfo.row ; i>0 ; i--){
- if(model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="0" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="2" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="3"){
- r = i;
- i = 0;
- }
- }
- }
- var vTESTCD = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r+"]/testcd");
-
- if (typeof(pRow) == "undefined") {
- var vRow = grd_CultrueDivInfo.row;
- }else {
- var vRow = pRow;
- }
-
- var vBACCD = model.getValue("/root/hidden/Baccd/getBaccd" +vTESTCD + "/getBacList["+vRow+"]/baccd");
- var vBACNM = model.getValue("/root/hidden/Baccd/getBaccd" +vTESTCD + "/getBacList["+vRow+"]/bacscrnnm");
- var vTESTMTD = model.getValue("/root/hidden/Baccd/getBaccd" +vTESTCD + "/getBacList["+vRow+"]/testkindcd");
- var vBACSEQNO = model.getValue("/root/hidden/Baccd/getBaccd" +vTESTCD + "/getBacList["+vRow+"]/bacseqno");
- var vBCNO = model.getValue("/root/hidden/Baccd/getBaccd" +vTESTCD + "/getBacList["+vRow+"]/bcno");
- // 선택한 균코드
- var curGyunCD = model.getValue("/root/init/LB0202["+rowHlp+"]/cd");
- var curGyunNM = model.getValue("/root/init/LB0202["+rowHlp+"]/nm");
- var curBacgencd = model.getValue("/root/init/LB0202["+rowHlp+"]/etc01");
- var curInfcinfo = model.getValue("/root/init/LB0202["+rowHlp+"]/etc02");
- var curinfcrefantbiocd = model.getValue("/root/init/LB0202["+rowHlp+"]/etc03");
- var curinfcrefchar = model.getValue("/root/init/LB0202["+rowHlp+"]/etc04");
-
- // var lastRow = grd_CultrueDivInfo.rows-1;
- var lastRow = grd_CultrueDivInfo.row;
- //var vBacseqno = grd_CultrueDivInfo.textmatrix(vRow , 10);
-
- var testmtd = model.getvalue("/root/hidden/Baccd/getBaccd" +vTESTCD + "/getBacList["+lastRow+"]/testkindcd");
- var testmtd2 = model.getvalue("/root/hidden/testmtd");
-
-
- /*if(testmtd==""){
- if(testmtd2=="M"){
- if(window.alert( "MIC 방식의 항생제를 입력 하시겠습니까?", "결과관리", "35" )!=6){
- return;
- }
- }
- }*/
-
-
- //균코드변경기능
- if(vBACCD == ""){
- fGetCultrueAntimic(curBacgencd , curGyunCD , vTESTCD);
- fAddAntimic(true); //항생제 자동 추가
- }else{
- var tabcount = grd_AntimicInfo.rows;
-
- for(var dex = 1 ; dex < tabcount ; dex++){
-
- var bkantibiocd = grd_AntimicInfo.valueMatrix(dex,9);
- model.setValue("root/hidden/Baccd/getAntimicInfo"+vTESTCD+"/antibiolist[baccd = '" + vBACCD + "' and bcno = '"+vBCNO+"' and bacseqno = '"+vBACSEQNO+"' and antibiocd = '"+bkantibiocd+"']/baccd", curGyunCD);
-
- }
- }
-
-
-
-
-
-
-
- //fcopyAntimic(); //기존 항생제 복사
-
- //alert(vTESTCD)
- //alert(vBacseqno)
- //균리스트에 표시
-
- //alert(model.getvalue("/root/main/TestInfo/getCultrueDivInfo[testcd='"+vTESTCD+"'][bacseqno = '"+vBacseqno+"']/bacscrnnm"))
- //grd_CultrueDivInfo.nodeset = "/root/main/TestInfo/getCultrueDivInfo";
-
- //alert(lastRow)
- //model.setValue("/root/main/TestInfo/getCultrueDivInfo[testcd='"+vTESTCD+"'][bacseqno = '"+vBacseqno+"']/bacscrnnm", curGyunNM);
- //model.setValue("/root/main/TestInfo/getCultrueDivInfo[testcd='"+vTESTCD+"'][bacseqno = '"+vBacseqno+"']/baccd", curGyunCD);
- //model.setValue("/root/main/TestInfo/getCultrueDivInfo[testcd='"+vTESTCD+"'][bacseqno = '"+vBacseqno+"']/infcinfo2", curInfcinfo);
- //model.setValue("/root/main/TestInfo/getCultrueDivInfo[testcd='"+vTESTCD+"'][bacseqno = '"+vBacseqno+"']/infcrefantbiocd", curinfcrefantbiocd);
- //model.setValue("/root/main/TestInfo/getCultrueDivInfo[testcd='"+vTESTCD+"'][bacseqno = '"+vBacseqno+"']/infcrefchar", curinfcrefchar);
-
- //model.setValue("/root/main/TestInfo/getCultrueDivInfo["+lastRow+"]/bacscrnnm", curGyunNM);
- //model.setValue("/root/main/TestInfo/getCultrueDivInfo["+lastRow+"]/baccd", curGyunCD);
- //model.setValue("/root/main/TestInfo/getCultrueDivInfo["+lastRow+"]/infcinfo2", curInfcinfo);
- //model.setValue("/root/main/TestInfo/getCultrueDivInfo["+lastRow+"]/infcrefantbiocd", curinfcrefantbiocd);
- //model.setValue("/root/main/TestInfo/getCultrueDivInfo["+lastRow+"]/infcrefchar", curinfcrefchar);
- //수정의 경우를 위해 IF문 추가
- model.setValue("/root/hidden/Baccd/getBaccd" +vTESTCD + "/getBacList["+lastRow+"]/bacscrnnm", curGyunNM);
- model.setValue("/root/hidden/Baccd/getBaccd" +vTESTCD + "/getBacList["+lastRow+"]/baccd", curGyunCD);
- model.setValue("/root/hidden/Baccd/getBaccd" +vTESTCD + "/getBacList["+lastRow+"]/infcinfo2", curInfcinfo);
- model.setValue("/root/hidden/Baccd/getBaccd" +vTESTCD + "/getBacList["+lastRow+"]/infcrefantbiocd", curinfcrefantbiocd);
- model.setValue("/root/hidden/Baccd/getBaccd" +vTESTCD + "/getBacList["+lastRow+"]/infcrefchar", curinfcrefchar);
-
- if(curInfcinfo!="-") {
- model.setValue("/root/hidden/Baccd/getBaccd" +vTESTCD + "/getBacList["+lastRow+"]/gyjbyn", "Y");
- }
- else model.setValue("/root/hidden/Baccd/getBaccd" +vTESTCD + "/getBacList["+lastRow+"]/gyjbyn", "");
- //grd_CultrueDivInfo.nodeset = "/root/main/TestInfo/getCultrueDivInfo[testcd='"+vTESTCD+"']";
-
- // 배양/분리균 클릭
-
- fOnclick_grd_CultrueDivInfo(lastRow);
-
-
-
- }
- }
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 배양균속 표시
- */
- function fGetCultrueAntimic(pBacgencd , pBaccd , pTestcd) {
-
- if (pBacgencd == "00" || pBacgencd == "" || pBacgencd == "-") {
-
- }
- else{
- model.makeValue("/root/send/bacgenscd" , pBacgencd);
- model.makeValue("/root/send/baccd" , pBaccd);
- model.makeValue("/root/send/testcd" , pTestcd);
- model.makeValue("/root/send/bbcno", model.getValue("/root/main/TestInfo/getSpcInfo/bcno"));
- model.makeValue("/root/send/ppid", model.getValue("/root/main/TestInfo/getSpcInfo/pid"));
- submit("TRLMR00202");
- }
- }
-
- function fIsValidationLAST(){
- if(model.getvalue("/root/hidden/refflag/userid") == "" || model.getvalue("/root/main/getUsernm/usernm") == ""){
- messageBox("검사자를 " , "C001" ,"");
- model.setFocus("ipt_testpsn");
- return;
- }
- var lastTF = true;
-
- for(i=1;i<grd_TestInfoCnts.rows;i++){
- if(model.getvalue("/root/main/TestInfo/getTestInfoCnt["+i+"]/rsltstat") != "4"){
- lastTF = false;
- break;
- }
- }
-
- for(i=1;i<grd_CultrueTestInfo.rows;i++){
-
- if (model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/selchk/@value") == "true") {
- var tclskind = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind");
- if (tclskind == "2") {
- if(model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/rsltstat") != "4"){
- lastTF = false;
- break;
- }
- }
-
- }
- }
- messageBox("최종보고가 아닌 항목이 포함되어있습니다. " , "E" ,"");
- return lastTF;
-
-
- }
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 결과저장시 우효성검사
- */
- function fIsValidation(pRstflag) {
- if(model.getvalue("/root/hidden/refflag/userid") == "" || model.getvalue("/root/main/getUsernm/usernm") == ""){
- messageBox("검사자를 " , "C001" ,"");
- model.setFocus("ipt_testpsn");
- return false;
- }
- /*var lastTF = false;
-
- for(i=1;i<grd_TestInfoCnts.rows;i++){
- if(model.getvalue("/root/main/TestInfo/getTestInfoCnt["+i+"]/selchk/@value") == "true"){
- lastTF = true;
- break;
- }
- }*/
- var isGeomSaRst = "1";
- var isBaeYangRst = "1";
- var isGeomSaRst2 = "1";
-
- var vInstance = document.models(0).instances(0);
- // 검사항목 Validation Check
-
-
-
- isGeomSaRst = fCOMLIS_ResultValidation("/root/main/TestInfo/getTestInfoCnts", grd_TestInfoCnts, pRstflag, "false");
-
- // 배양검사 Validation Check
-
- var nGridMaxRow = grd_CultrueTestInfo.rows-1;
-
- isGeomSaRst2 = fCOMLIS_MicroResultValidation("/root/main/TestInfo/getCultrueTestInfo", grd_CultrueTestInfo, pRstflag, "false");
-
- var vBaeYangCD = "";
- for (var i = 1; i <= nGridMaxRow; i++) {
- if (model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/selchk/@value") == "true") {
- isBaeYangRst = "0";
- vBaeYangCD += model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/testcd") + ",";
- grd_CultrueTestInfo.addStatus(i,"update");
- }
- /*if (model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/selchk/@value") == "true") {
-
-
- var vTCDGBN = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind");
- // var vTITLEYN = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/titleyn"); // 타이틀 구분
- var vREPTRSLT = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/reptrslt");
-
- if (vTCDGBN == "2" || vTCDGBN == "3") {
- // Single항목 체크
-
- grd_CultrueTestInfo.addStatus( i, "update");
- vBaeYangCD += model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/testcd") + ",";
-
- if(vTCDGBN == "3"){
- for (var j = i + 1; j <= nGridMaxRow; j++) {
- vTCDGBN = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+j+"]/tclskind");
- var vTestcd = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+j+"]/testcd");
- var vN_Inptrslt = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+j+"]/inptrslt");
- var vO_Inptrslt = model.getValue("/root/hidden/TestInfo/getCultrueTestInfo[testcd ='" + vTestcd + "']/inptrslt");
- if (vTCDGBN != "4" && vTCDGBN != "5" ) {
- //--j;
- break;
- }
-
- if(vN_Inptrslt == vO_Inptrslt){
-
- }
- else{
- grd_CultrueTestInfo.addStatus( j, "update");
- }
-
- }
-
- if(model.getValue( "/root/hidden/TestInfo/getCultrueTestInfo[" + j + "]/selchk/@value") == "true"){
- if(model.getValue(pRef + "[" + j + "]/tclskind") == "3"){
- i = --j;
- continue;
- }else{
- i = j;
- }
- }else{
- i = j;
- continue;
- }
- }
- }
-
-
- }*/
- }
- if (vBaeYangCD.length > 0) {
- var n = grd_CultrueDivInfo.rows-1;
- var isExists = false;
- //alert("배양/분리균 RowCount는 " + n);
- xx=0;
-
- //vInstance.selectNodes("")
- for(i = 1 ; i <grd_CultrueTestInfo.rows ; i++){
- var vTESTCD = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/testcd");
-
- if(model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/selchk/@value") == "true"){
-
- var bacCnt = vInstance.selectNodes("/root/hidden/Baccd/getBaccd" +vTESTCD +"/getBacList").length;
- for(j=1;j<=bacCnt;j++){
- if(model.getvalue("/root/hidden/Baccd/getBaccd" +vTESTCD +"/getBacList["+j+"]/testkindcd") == "M"){
- xx++;
- }
-
- var vTESTCD = model.getvalue("/root/hidden/Baccd/getBaccd" +vTESTCD +"/getBacList["+j+"]/testcd");
- if (vBaeYangCD.indexOf(vTESTCD +",") >= 0) {
- if(model.getvalue("/root/hidden/Baccd/getBaccd" +vTESTCD +"/getBacList["+j+"]/baccd") ==""){
- window.alert( "공백인 배양/분리균은 입력할 수 없습니다.", "결과관리", "48" );
- return false;
- }
- else{
- isExists = true;
- }
- }
- }
- }
- }
-
-
- /*if(xx!=0){
- if(window.alert( "MIC 방식의 항생제를 입력 하시겠습니까?", "결과관리", "35" )!=6){
- return false;
- }
- }*/
-
-
- /*
- if (isExists == false) {
- TFGetMsgBox(-1, "배양/분리균을 하나이상 입력해 주십시오.", "결과관리", "I", "OK");
- return;
- }
- */
- // 최종보고에서만 보이게 (ACK-PJE)
- if(pRstflag==4){
- if (isExists == false) {
- //var retval = window.alert( "배양/분리균없이 저장 하시겠습니까?", "결과관리", "35" );
- //if (retval != "6") return false; // yes = 6, no = 7
- }
- }
-
- //var n = grd_AntimicInfo.rows-1;
- //alert("항균제 RowCount는 " + n);
- /*for (var i=1; i<=n; i++) {
- var vTCLSCD = model.getValue("/root/main/TestInfo/getAntimicInfo["+i+"]/testcd");
- if (vBaeYangCD.indexOf(vTESTCD+",") >= 0) {
- grd_AntimicInfo.addStatus(i,"update");
- } else {
- //model.setValue("/root/MainData/GSHMSangSe/HangGyunJeList["+i+"]/iud", ""); // 테스트용
- }
- }*/
-
- iRowBacNum = 1;
- var sMakeBacStr = "m▦rownum▦bcno▦testcd▦spccd▦rsltseq▦bacseqno▦baccd▦growkind▦testkindcd▦bacrsltstat▦tempbacnm▩";
- var vTESTCD, bacCnt, vBaccd, vBacseqno, vBcno, cntHR;
-
- iRowNum = 1;
- var sMakeStr = "m▦rownum▦antibioscrnnm▦antibiorslt▦antibioref▦antibiocd▦bacseqno▦baccd▦testcd▦pid▩";
-
- for(jCnt = 1;jCnt < grd_CultrueTestInfo.rows;jCnt++){
-
- vTESTCD = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+jCnt+"]/testcd");
-
- if(model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+jCnt+"]/selchk/@value") == "true"){
-
- bacCnt = vInstance.selectNodes("/root/hidden/Baccd/getBaccd" +vTESTCD +"/getBacList").length;
-
- for(xCnt = 1; xCnt <= bacCnt;xCnt++){
- sMakeBacStr = sMakeBacStr +"u" + "▦" + iRowBacNum + "▦" +
- model.getvalue("/root/hidden/Baccd/getBaccd" +vTESTCD +"/getBacList["+xCnt+"]/bcno") + "▦" +
- model.getvalue("/root/hidden/Baccd/getBaccd" +vTESTCD +"/getBacList["+xCnt+"]/testcd") + "▦" +
- model.getvalue("/root/hidden/Baccd/getBaccd" +vTESTCD +"/getBacList["+xCnt+"]/spccd") + "▦" +
- model.getvalue("/root/hidden/Baccd/getBaccd" +vTESTCD +"/getBacList["+xCnt+"]/rsltseq") + "▦" +
- xCnt + "▦" +
- //model.getvalue("/root/hidden/Baccd/getBaccd" +vTESTCD +"/getBacList["+xCnt+"]/bacseqno") + "▦" +
- model.getvalue("/root/hidden/Baccd/getBaccd" +vTESTCD +"/getBacList["+xCnt+"]/baccd") + "▦" +
- model.getvalue("/root/hidden/Baccd/getBaccd" +vTESTCD +"/getBacList["+xCnt+"]/growkind") + "▦" +
- model.getvalue("/root/hidden/Baccd/getBaccd" +vTESTCD +"/getBacList["+xCnt+"]/testkindcd") + "▦" +
- model.getvalue("/root/hidden/Baccd/getBaccd" +vTESTCD +"/getBacList["+xCnt+"]/bacrsltstat") + "▦" +
- model.getvalue("/root/hidden/Baccd/getBaccd" +vTESTCD +"/getBacList["+xCnt+"]/tempbacnm") + "▩" ;
-
- iRowBacNum++;
- }
-
-
- for(iCnt = 1; iCnt< grd_CultrueDivInfo.rows ;iCnt++){
-
- vBaccd = model.getValue("/root/hidden/Baccd/getBaccd" +vTESTCD + "/getBacList["+iCnt+"]/baccd");
- vBacseqno= model.getValue("/root/hidden/Baccd/getBaccd" +vTESTCD + "/getBacList["+iCnt+"]/bacseqno");
- vBcno = model.getValue("/root/hidden/Baccd/getBaccd" +vTESTCD + "/getBacList["+iCnt+"]/bcno");
- //alert(vTESTCD + " " +vBaccd + " " + vBacseqno + " " + vBcno);
- //alert(getNodesetCount("/root/hidden/Baccd/getAntimicInfo" + vTESTCD + "/antibiolist[baccd = '" + vBaccd + "' and bacseqno = '"+vBacseqno+"' and bcno = '"+vBcno+"']"));
-
- //var cntHR = vInstance.selectNodes("/root/hidden/Baccd/getAntimicInfo" +vTESTCD + "/antibiolist").length;
- cntHR = getNodesetCount("/root/hidden/Baccd/getAntimicInfo" + vTESTCD + "/antibiolist[baccd = '" + vBaccd + "' and bacseqno = '"+vBacseqno+"' and bcno = '"+vBcno+"']");
-
- if(cntHR > 0){
- copyNodeListType("/root/hidden/saveantimic", "/root/hidden/Baccd/getAntimicInfo" + vTESTCD + "/antibiolist[baccd = '" + vBaccd + "' and bacseqno = '"+vBacseqno+"' and bcno = '"+vBcno+"']", "replace"); //해당 항생제 임시노드로 복사 한 후에
- for(j = 1; j<= cntHR ;j++ ){
- //grd_exeAntiBio.addItem();
- sMakeStr = sMakeStr +"u" + "▦" + iRowNum + "▦" +
- model.getvalue("/root/hidden/saveantimic/antibiolist[" + j + "]/antibioscrnnm") + "▦" +
- model.getvalue("/root/hidden/saveantimic/antibiolist[" + j + "]/antibiorslt") + "▦" +
- model.getvalue("/root/hidden/saveantimic/antibiolist[" + j + "]/antibioref") + "▦" +
- model.getvalue("/root/hidden/saveantimic/antibiolist[" + j + "]/antibiocd") + "▦" +
- iCnt + "▦" +
- model.getvalue("/root/hidden/saveantimic/antibiolist[" + j + "]/baccd") + "▦" +
- model.getvalue("/root/hidden/saveantimic/antibiolist[" + j + "]/testcd") + "▦" +
- model.getvalue("/root/hidden/saveantimic/antibiolist[" + j + "]/bfantibioref") + "▩";
-
- /*model.getvalue("/root/hidden/Baccd/getAntimicInfo" + vTESTCD +"/antibiolist[baccd = '" + vBaccd + "' and bacseqno = '"+vBacseqno+"' and bcno = '"+vBcno+"']/antibioscrnnm") + "▦" +
- model.getvalue("/root/hidden/Baccd/getAntimicInfo" + vTESTCD +"/antibiolist[baccd = '" + vBaccd + "' and bacseqno = '"+vBacseqno+"' and bcno = '"+vBcno+"']/antibiorslt") + "▦" +
- model.getvalue("/root/hidden/Baccd/getAntimicInfo" + vTESTCD +"/antibiolist[baccd = '" + vBaccd + "' and bacseqno = '"+vBacseqno+"' and bcno = '"+vBcno+"']/antibioref") + "▦" +
- model.getvalue("/root/hidden/Baccd/getAntimicInfo" + vTESTCD +"/antibiolist[baccd = '" + vBaccd + "' and bacseqno = '"+vBacseqno+"' and bcno = '"+vBcno+"']/antibiocd") + "▦" +
- iCnt + "▦" +
- model.getvalue("/root/hidden/Baccd/getAntimicInfo" + vTESTCD +"/antibiolist[baccd = '" + vBaccd + "' and bacseqno = '"+vBacseqno+"' and bcno = '"+vBcno+"']/baccd") + "▦" +
- model.getvalue("/root/hidden/Baccd/getAntimicInfo" + vTESTCD +"/antibiolist[baccd = '" + vBaccd + "' and bacseqno = '"+vBacseqno+"' and bcno = '"+vBcno+"']/testcd") + "▦" +
- model.getvalue("/root/hidden/Baccd/getAntimicInfo" + vTESTCD +"/antibiolist[baccd = '" + vBaccd + "' and bacseqno = '"+vBacseqno+"' and bcno = '"+vBcno+"']/bfantibioref") + "▩";*/
- //model.copyNode("/root/hidden/getAntimicInfo["+grd_exeAntiBio.rows-1+"]","/root/hidden/AntiBio/getAntimicInfo" + iCnt + "/antibiolist["+j+"]");
- iRowNum ++;
- }
- model.removeNodeset("/root/hidden/saveantimic/antibiolist");
- }
- }
- }
- }
- model.setvalue("/root/send/data4" , sMakeBacStr);
- model.setvalue("/root/send/data5" , sMakeStr);
- }
- var isChk = false;
- var isCmtpEdit = model.getValue("/root/hidden/refflag/p_isedit"); // 소견 수정여부
- var vCmtpRstflag = model.getValue("/root/main/TestInfo/getSpcInfo/cmtflag"); // 소견 결과상태(검체의 최종보고여부)
- if (isCmtpEdit == "true") {
-
- if (pRstflag != "4" && (vCmtpRstflag == "4" || vCmtpRstflag == "5")) {
- window.alert( "최종보고된 검체의 소견은 수정할 수 없습니다.", "결과관리", "35");
- return false;
- }
-
-
- if (isGeomSaRst != "1" || isBaeYangRst != "1") {
- // 결과입력 오류가 아닌경우
- return true;
- }
-
- } else {
- if (isGeomSaRst == "0" || isBaeYangRst == "0") {
- return true;
- } else {
- if(isGeomSaRst != "1"){
- if (pRstflag == "1") {
- window.alert( "저장할 결과를 선택해 주십시오.", "결과관리", "35");
- } else if (pRstflag == "2") {
- window.alert( "중간(예비)보고할 결과를 선택해 주십시오.", "결과관리","35" );
- } else {
- window.alert( "최종보고할 결과를 선택해 주십시오.", "결과관리","35");
- }
- }
-
- return false;
- }
-
- }
-
-
- }
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 결과저장버튼 클릭
- */
- function fInsRsltSave(){
-
- if (fIsValidation("1") == true) {
- // 환자정보 정의
-
- model.setvalue("/root/hidden/refflag/testlrgkind" , "M");
- model.setValue("/root/hidden/refflag/rsltstat", "1");
- model.setvalue("/root/hidden/refflag/bcno",model.getvalue("/root/main/TestInfo/getSpcInfo/bcno"));
- model.setvalue("/root/hidden/refflag/testcont" , model.getvalue("/root/main/TestInfo/getSpcInfo/testcont"));
- model.setvalue("/root/hidden/refflag/testcontcd" , model.getvalue("/root/main/TestInfo/getSpcInfo/testcontcd"));
- model.copyNode("/root/send/data1","/root/hidden/refflag");
- model.setvalue("/root/send/data2",grd_TestInfoCnts.getUpdateData());
- model.setvalue("/root/send/data3",grd_CultrueTestInfo.getUpdateData());
- //model.setvalue("/root/send/data4",grd_CultrueDivInfo.getUpdateData());
- //alert(grd_CultrueTestInfo.getUpdateData())
- //alert(model.getvalue("/root/send/data3"))
- submit("TXLMR00201");
-
-
- // 화면초기화
- fSetClear2();
- model.setFocus("ipt_search");
- ipt_search.selBegin = 0;
- ipt_search.selEnd = ipt_search.currentText.length;
- }
-
- }
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 중간예비보고 그리드 클릭
- */
- function fSetMdlRept(){
- if (fIsValidation("2") == true) {
- // 환자정보 정의
-
- model.setvalue("/root/hidden/refflag/testlrgkind" , "M");
- model.setValue("/root/hidden/refflag/rsltstat", "2");
- model.setvalue("/root/hidden/refflag/bcno",model.getvalue("/root/main/TestInfo/getSpcInfo/bcno"));
- model.setvalue("/root/hidden/refflag/testcont" , model.getvalue("/root/main/TestInfo/getSpcInfo/testcont"));
- model.setvalue("/root/hidden/refflag/testcontcd" , model.getvalue("/root/main/TestInfo/getSpcInfo/testcontcd"));
- model.copyNode("/root/send/data1","/root/hidden/refflag");
- model.setvalue("/root/send/data2",grd_TestInfoCnts.getUpdateData());
- model.setvalue("/root/send/data3",grd_CultrueTestInfo.getUpdateData());
- //model.setvalue("/root/send/data4",grd_CultrueDivInfo.getUpdateData());
- //model.setvalue("/root/send/data5",grd_exeAntiBio.getUpdateData());
-
- //alert(model.getValue("/root/send/data2"));
- //alert(model.getValue("/root/send/data3"));
-
- submit("TXLMR00201");
-
-
- // 화면초기화
- fSetClear2();
- model.setFocus("ipt_search");
- ipt_search.selBegin = 0;
- ipt_search.selEnd = ipt_search.currentText.length;
- }
- }
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 최종보고버튼 클릭
- */
- function fSetLstRept2(){
-
- //if(model.getvalue(""))
-
- if (fIsValidation("3") == true) {
- // 환자정보 정의
-
- model.setvalue("/root/hidden/refflag/testlrgkind" , "M");
- model.setValue("/root/hidden/refflag/rsltstat", "3");
- model.setvalue("/root/hidden/refflag/bcno",model.getvalue("/root/main/TestInfo/getSpcInfo/bcno"));
- model.setvalue("/root/hidden/refflag/testcont" , model.getvalue("/root/main/TestInfo/getSpcInfo/testcont"));
- model.setvalue("/root/hidden/refflag/testcontcd" , model.getvalue("/root/main/TestInfo/getSpcInfo/testcontcd"));
- model.copyNode("/root/send/data1","/root/hidden/refflag");
- model.setvalue("/root/send/data2",grd_TestInfoCnts.getUpdateData());
- model.setvalue("/root/send/data3",grd_CultrueTestInfo.getUpdateData());
- //model.setvalue("/root/send/data4",grd_CultrueDivInfo.getUpdateData());
- //model.setvalue("/root/send/data5",grd_exeAntiBio.getUpdateData());
-
- submit("TXLMR00201");
-
-
- // 화면초기화
- fSetClear2();
- model.setFocus("ipt_search");
- ipt_search.selBegin = 0;
- ipt_search.selEnd = ipt_search.currentText.length;
- }
- }
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 최종보고버튼 클릭
- */
- function fSetLstRept(){
-
- //if(model.getvalue(""))
-
- if (fIsValidation("4") == true) {
- // 환자정보 정의
-
- if(fUpdtRslt() != 0) return;
-
- model.setvalue("/root/hidden/refflag/testlrgkind" , "M");
- model.setValue("/root/hidden/refflag/rsltstat", "4");
- model.setvalue("/root/hidden/refflag/bcno",model.getvalue("/root/main/TestInfo/getSpcInfo/bcno"));
- model.setvalue("/root/hidden/refflag/testcont" , model.getvalue("/root/main/TestInfo/getSpcInfo/testcont"));
- model.setvalue("/root/hidden/refflag/testcontcd" , model.getvalue("/root/main/TestInfo/getSpcInfo/testcontcd"));
- model.copyNode("/root/send/data1","/root/hidden/refflag");
- model.setvalue("/root/send/data2",grd_TestInfoCnts.getUpdateData());
- model.setvalue("/root/send/data3",grd_CultrueTestInfo.getUpdateData());
- //model.setvalue("/root/send/data4",grd_CultrueDivInfo.getUpdateData());
- //model.setvalue("/root/send/data5",grd_exeAntiBio.getUpdateData());
- //alert(model.getValue("/root/send/data1"));
- //alert(model.getValue("/root/send/data2"));
- //alert(model.getValue("/root/send/data3"));
- //alert(model.getValue("/root/send/data4"));
- //alert(model.getValue("/root/send/data5"));
-
-
- submit("TXLMR00201");
-
-
- // 화면초기화
- fSetClear2();
- model.setFocus("ipt_search");
- ipt_search.selBegin = 0;
- ipt_search.selEnd = ipt_search.currentText.length;
- }
- }
-
- function fInsJeaGeom(){
- if(fIsValidation("10")){
- model.setvalue("/root/hidden/refflag/testlrgkind" , "M");
- model.setValue("/root/hidden/refflag/rsltstat", "10");
- model.setvalue("/root/hidden/refflag/bcno",model.getvalue("/root/main/TestInfo/getSpcInfo/bcno"));
- model.setvalue("/root/hidden/refflag/testcont" , model.getvalue("/root/main/TestInfo/getSpcInfo/testcont"));
- model.setvalue("/root/hidden/refflag/testcontcd" , model.getvalue("/root/main/TestInfo/getSpcInfo/testcontcd"));
- model.copyNode("/root/send/data1","/root/hidden/refflag");
- model.setvalue("/root/send/data2",grd_TestInfoCnts.getUpdateData());
- model.setvalue("/root/send/data3",grd_CultrueTestInfo.getUpdateData());
-
-
- submit("TXLMR00201");
-
- fSetClear2();
- model.setFocus("ipt_search");
- ipt_search.selBegin = 0;
- ipt_search.selEnd = ipt_search.currentText.length;
-
-
- }
- }
-
- /* @group : 미생물결과관리
- * @ver : 2007.03.20 (CMCDEV-0001)
- * @by : 조철형
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 항균제추가버튼
- */
- function fAddAntimic(pAuto){
- if (pAuto == false) {
- var r;
- if(model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="0" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="2" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="3"){
- r = grd_CultrueTestInfo.row;
- }
- else{
- for(i = grd_CultrueTestInfo.row ; i>0 ; i--){
- if(model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="0" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="2" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="3"){
- r = i;
- i = 0;
- }
- }
- }
- var vTESTCD = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r+"]/testcd").getTrim();
- var vBACCD = model.getValue("/root/hidden/Baccd/getBaccd" +vTESTCD + "/getBacList["+grd_CultrueDivInfo.row+"]/baccd");
-
- model.makeValue("/root/send/addanti/testcd", vTESTCD);
- model.makeValue("/root/send/addanti/baccd", model.getValue("/root/hidden/Baccd/getBaccd" +vTESTCD + "/getBacList["+grd_CultrueDivInfo.row+"]/baccd"));
-
- modal("SPLMR90400","","","","","/root/send/addanti","/root/hidden/ref");
- model.removeNodeset("/root/send/addanti")
-
- }
-
- var vInstance = document.models(0).instances(0);
- var cntHR = vInstance.selectNodes("/root/hidden/bacgensantibio/antibiolist").length;
- var vTESTKINDCD = model.getvalue("/root/hidden/testmtd").getTrim();
-
- var r;
- if(model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="0" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="2" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="3"){
- r = grd_CultrueTestInfo.row;
- }
- else{
- for(i = grd_CultrueTestInfo.row ; i>0 ; i--){
- if(model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="0" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="2" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="3"){
- r = i;
- i = 0;
- }
- }
- }
- var vTESTCD = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r+"]/testcd").getTrim();
-
- var r2 = grd_CultrueDivInfo.row;
-
- if(cntHR > 0) {
-
- var bacseqno = model.getvalue("/root/hidden/Baccd/getBaccd" +vTESTCD+"/getBacList["+r2+"]/bacseqno");
- var testcd = model.getvalue("/root/hidden/Baccd/getBaccd" +vTESTCD+"/getBacList["+r2+"]/testcd").getTrim();
- var bcno = model.getvalue("/root/hidden/Baccd/getBaccd" +vTESTCD+"/getBacList["+r2+"]/bcno");
- var baccd = model.getvalue("/root/hidden/Baccd/getBaccd" +vTESTCD+"/getBacList["+r2+"]/baccd");
-
- if(vInstance.selectNodes("/root/hidden/Baccd/getAntimicInfo" + testcd).length < 1){
-
- var vCnt = model.getXPathValue('count(/root/hidden/bacgensantibio/antibiolist)');
- for (z = 1; z<= vCnt; z++){
- model.makeValue("/root/hidden/bacgensantibio/antibiolist[" + z + "]/bcno", grd_CultrueDivInfo.valueMatrix(grd_CultrueDivInfo.row, grd_CultrueDivInfo.colRef("bcno")));
- model.makeValue("/root/hidden/bacgensantibio/antibiolist[" + z + "]/bacseqno", grd_CultrueDivInfo.valueMatrix(grd_CultrueDivInfo.row, grd_CultrueDivInfo.colRef("bacseqno")));
- }
-
- model.makeNode("/root/hidden/Baccd/getAntimicInfo"+ testcd);
- copyNodeType("/root/hidden/Baccd/getAntimicInfo"+ testcd, "/root/hidden/bacgensantibio", "after");
- //model.copyNode("/root/hidden/Baccd/getAntimicInfo"+ testcd, "/root/hidden/bacgensantibio");
- fOnclick_grd_CultrueDivInfo();
- //grd_AntimicInfo.nodeset = "/root/hidden/AntiBio/getAntimicInfo"+ bacseqno+ "/antibiolist";
- }
- else{
- if(pAuto == true){
- model.removeNodeset("/root/hidden/Baccd/getAntimicInfo" + testcd + "/antibiolist[baccd = '" + baccd + "' and bcno = '"+bcno+"' and bacseqno = '"+bacseqno+"']");
- //model.makeNode("/root/hidden/Baccd/getAntimicInfo"+ testcd);
- var vCnt = model.getXPathValue('count(/root/hidden/bacgensantibio/antibiolist)');
- for (z = 1; z<= vCnt; z++){
- model.makeValue("/root/hidden/bacgensantibio/antibiolist[" + z + "]/bcno", grd_CultrueDivInfo.valueMatrix(grd_CultrueDivInfo.row, grd_CultrueDivInfo.colRef("bcno")));
- model.makeValue("/root/hidden/bacgensantibio/antibiolist[" + z + "]/bacseqno", grd_CultrueDivInfo.valueMatrix(grd_CultrueDivInfo.row, grd_CultrueDivInfo.colRef("bacseqno")));
- }
- copyNodeType("/root/hidden/Baccd/getAntimicInfo"+ testcd, "/root/hidden/bacgensantibio", "after");
- }
- else{
-
- //var baccd = model.getvalue("root/hidden/Baccd/getAntimicInfo"+ testcd+bacseqno+"/antibiolist/baccd");
- //var testcd = model.getvalue("root/hidden/Baccd/getAntimicInfo"+ testcd+bacseqno+"/antibiolist/testcd");
- var cntHR2= model.getXPathValue('count(/root/hidden/Baccd/getAntimicInfo' + testcd + '/antibiolist)');
-
- xx = 1;
- for(i=1;i<=cntHR;i++){
-
- var antibiocd = model.getvalue("/root/hidden/bacgensantibio/antibiolist["+i+"]/antibiocd");
- var findrow = grd_AntimicInfo.findRow(antibiocd,1,3,false,true);
- if(findrow < 0){
-
- var iRow = parseInt(cntHR2) +xx;
-
- model.makeNode("/root/hidden/Baccd/getAntimicInfo"+ testcd+"/antibiolist["+iRow+"]");
- model.makeValue("/root/hidden/Baccd/getAntimicInfo"+ testcd+"/antibiolist["+iRow+"]/antibioscrnnm"
- , model.getvalue("/root/hidden/bacgensantibio/antibiolist["+i+"]/antibioscrnnm"));
- model.makeValue("/root/hidden/Baccd/getAntimicInfo"+ testcd+"/antibiolist["+iRow+"]/antibiocd"
- , model.getvalue("/root/hidden/bacgensantibio/antibiolist["+i+"]/antibiocd"));
- model.makeValue("/root/hidden/Baccd/getAntimicInfo"+ testcd+"/antibiolist["+iRow+"]/antibiorslt" , "");
- model.makeValue("/root/hidden/Baccd/getAntimicInfo"+ testcd+"/antibiolist["+iRow+"]/antibioref" , "");
- model.makeValue("/root/hidden/Baccd/getAntimicInfo"+ testcd+"/antibiolist["+iRow+"]/baccd" , vBACCD);
- model.makeValue("/root/hidden/Baccd/getAntimicInfo"+ testcd+"/antibiolist["+iRow+"]/testcd" , testcd);
- model.makeValue("/root/hidden/Baccd/getAntimicInfo"+ testcd+"/antibiolist["+iRow+"]/bfantibioref"
- , model.getvalue("/root/hidden/bacgensantibio/antibiolist["+i+"]/bfantibioref"));
- model.makeValue("/root/hidden/Baccd/getAntimicInfo"+ testcd+"/antibiolist["+iRow+"]/panicmark" , "");
- model.makeValue("/root/hidden/Baccd/getAntimicInfo"+ testcd+"/antibiolist["+iRow+"]/deltamark" , "");
- model.makeValue("/root/hidden/Baccd/getAntimicInfo"+ testcd+"/antibiolist["+iRow+"]/bacseqno"
- , grd_CultrueDivInfo.valueMatrix(grd_CultrueDivInfo.row, grd_CultrueDivInfo.colRef("bacseqno")));
- model.makeValue("/root/hidden/Baccd/getAntimicInfo"+ testcd+"/antibiolist["+iRow+"]/bcno"
- , grd_CultrueDivInfo.valueMatrix(grd_CultrueDivInfo.row, grd_CultrueDivInfo.colRef("bcno")));
- xx++;
- }
-
- }
- grd_AntimicInfo.nodeset = "/root/hidden/Baccd/getAntimicInfo" + testcd + "/antibiolist[baccd = '" + baccd + "' and bcno = '"+bcno+"' and bacseqno = '"+bacseqno+"']"
- grd_AntimicInfo.rebuild();
- model.refresh();
- }
- }
-
- if(vTESTKINDCD !="" && r2 > 0 ){
- model.setValue("/root/hidden/Baccd/getBaccd" +vTESTCD+"/getBacList["+r2+"]/testkindcd" , vTESTKINDCD);
- }
-
- model.removeNodeset("/root/hidden/bacgensantibio/antibiolist");
- }
- else{
- //alert("추가할 항균제가 없습니다.");
- model.removeNodeset("/root/hidden/Baccd/getAntimicInfo" + testcd + "/antibiolist[baccd = '" + baccd + "' and bcno = '"+bcno+"' and bacseqno = '"+bacseqno+"']");
- }
-
-
- }
-
- function fcopyAntimic(){
-
- var vInstance = document.models(0).instances(0);
- var cntHR = vInstance.selectNodes("/root/hidden/bacgensantibio/antibiolist").length;
- alert(cntHR+"=cntHR");
- var vTESTKINDCD = model.getvalue("/root/hidden/testmtd").getTrim();
-
- var r;
- if(model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="0" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="2" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="3"){
- r = grd_CultrueTestInfo.row;
- }
- else{
- for(i = grd_CultrueTestInfo.row ; i>0 ; i--){
- if(model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="0" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="2" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="3"){
- r = i;
- i = 0;
- }
- }
- }
- var vTESTCD = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r+"]/testcd").getTrim();
-
- var r2 = grd_CultrueDivInfo.row;
-
- if(cntHR > 0) {
-
- var bacseqno = model.getvalue("/root/hidden/Baccd/getBaccd" +vTESTCD+"/getBacList["+r2+"]/bacseqno");
- var testcd = model.getvalue("/root/hidden/Baccd/getBaccd" +vTESTCD+"/getBacList["+r2+"]/testcd").getTrim();
- var bcno = model.getvalue("/root/hidden/Baccd/getBaccd" +vTESTCD+"/getBacList["+r2+"]/bcno");
- var baccd = model.getvalue("/root/hidden/Baccd/getBaccd" +vTESTCD+"/getBacList["+r2+"]/baccd");
-
- if(vInstance.selectNodes("/root/hidden/Baccd/getAntimicInfo" + testcd).length < 1){
-
- var vCnt = model.getXPathValue('count(/root/hidden/bacgensantibio/antibiolist)');
- for (z = 1; z<= vCnt; z++){
- model.makeValue("/root/hidden/bacgensantibio/antibiolist[" + z + "]/bcno", grd_CultrueDivInfo.valueMatrix(grd_CultrueDivInfo.row, grd_CultrueDivInfo.colRef("bcno")));
- model.makeValue("/root/hidden/bacgensantibio/antibiolist[" + z + "]/bacseqno", grd_CultrueDivInfo.valueMatrix(grd_CultrueDivInfo.row, grd_CultrueDivInfo.colRef("bacseqno")));
- }
-
- model.makeNode("/root/hidden/Baccd/getAntimicInfo"+ testcd);
- copyNodeType("/root/hidden/Baccd/getAntimicInfo"+ testcd, "/root/hidden/bacgensantibio", "after");
- //model.copyNode("/root/hidden/Baccd/getAntimicInfo"+ testcd, "/root/hidden/bacgensantibio");
- fOnclick_grd_CultrueDivInfo();
- //grd_AntimicInfo.nodeset = "/root/hidden/AntiBio/getAntimicInfo"+ bacseqno+ "/antibiolist";
- }
- else{
- if(pAuto == true){
- model.removeNodeset("/root/hidden/Baccd/getAntimicInfo" + testcd + "/antibiolist[baccd = '" + baccd + "' and bcno = '"+bcno+"' and bacseqno = '"+bacseqno+"']");
- //model.makeNode("/root/hidden/Baccd/getAntimicInfo"+ testcd);
- var vCnt = model.getXPathValue('count(/root/hidden/bacgensantibio/antibiolist)');
- for (z = 1; z<= vCnt; z++){
- model.makeValue("/root/hidden/bacgensantibio/antibiolist[" + z + "]/bcno", grd_CultrueDivInfo.valueMatrix(grd_CultrueDivInfo.row, grd_CultrueDivInfo.colRef("bcno")));
- model.makeValue("/root/hidden/bacgensantibio/antibiolist[" + z + "]/bacseqno", grd_CultrueDivInfo.valueMatrix(grd_CultrueDivInfo.row, grd_CultrueDivInfo.colRef("bacseqno")));
- }
- copyNodeType("/root/hidden/Baccd/getAntimicInfo"+ testcd, "/root/hidden/bacgensantibio", "after");
- }
- else{
-
- //var baccd = model.getvalue("root/hidden/Baccd/getAntimicInfo"+ testcd+bacseqno+"/antibiolist/baccd");
- //var testcd = model.getvalue("root/hidden/Baccd/getAntimicInfo"+ testcd+bacseqno+"/antibiolist/testcd");
- var cntHR2= model.getXPathValue('count(/root/hidden/Baccd/getAntimicInfo' + testcd + '/antibiolist)');
-
- xx = 1;
- for(i=1;i<=cntHR;i++){
-
- var antibiocd = model.getvalue("/root/hidden/bacgensantibio/antibiolist["+i+"]/antibiocd");
- var findrow = grd_AntimicInfo.findRow(antibiocd,1,3,false,true);
- if(findrow < 0){
-
- var iRow = parseInt(cntHR2) +xx;
-
- model.makeNode("/root/hidden/Baccd/getAntimicInfo"+ testcd+"/antibiolist["+iRow+"]");
- model.makeValue("/root/hidden/Baccd/getAntimicInfo"+ testcd+"/antibiolist["+iRow+"]/antibioscrnnm"
- , model.getvalue("/root/hidden/bacgensantibio/antibiolist["+i+"]/antibioscrnnm"));
- model.makeValue("/root/hidden/Baccd/getAntimicInfo"+ testcd+"/antibiolist["+iRow+"]/antibiocd"
- , model.getvalue("/root/hidden/bacgensantibio/antibiolist["+i+"]/antibiocd"));
- model.makeValue("/root/hidden/Baccd/getAntimicInfo"+ testcd+"/antibiolist["+iRow+"]/antibiorslt" , "");
- model.makeValue("/root/hidden/Baccd/getAntimicInfo"+ testcd+"/antibiolist["+iRow+"]/antibioref" , "");
- model.makeValue("/root/hidden/Baccd/getAntimicInfo"+ testcd+"/antibiolist["+iRow+"]/baccd" , vBACCD);
- model.makeValue("/root/hidden/Baccd/getAntimicInfo"+ testcd+"/antibiolist["+iRow+"]/testcd" , testcd);
- model.makeValue("/root/hidden/Baccd/getAntimicInfo"+ testcd+"/antibiolist["+iRow+"]/bfantibioref"
- , model.getvalue("/root/hidden/bacgensantibio/antibiolist["+i+"]/bfantibioref"));
- model.makeValue("/root/hidden/Baccd/getAntimicInfo"+ testcd+"/antibiolist["+iRow+"]/panicmark" , "");
- model.makeValue("/root/hidden/Baccd/getAntimicInfo"+ testcd+"/antibiolist["+iRow+"]/deltamark" , "");
- model.makeValue("/root/hidden/Baccd/getAntimicInfo"+ testcd+"/antibiolist["+iRow+"]/bacseqno"
- , grd_CultrueDivInfo.valueMatrix(grd_CultrueDivInfo.row, grd_CultrueDivInfo.colRef("bacseqno")));
- model.makeValue("/root/hidden/Baccd/getAntimicInfo"+ testcd+"/antibiolist["+iRow+"]/bcno"
- , grd_CultrueDivInfo.valueMatrix(grd_CultrueDivInfo.row, grd_CultrueDivInfo.colRef("bcno")));
- xx++;
- }
-
- }
- grd_AntimicInfo.nodeset = "/root/hidden/Baccd/getAntimicInfo" + testcd + "/antibiolist[baccd = '" + baccd + "' and bcno = '"+bcno+"' and bacseqno = '"+bacseqno+"']"
- grd_AntimicInfo.rebuild();
- model.refresh();
- }
- }
-
- if(vTESTKINDCD !="" && r2 > 0 ){
- model.setValue("/root/hidden/Baccd/getBaccd" +vTESTCD+"/getBacList["+r2+"]/testkindcd" , vTESTKINDCD);
- }
-
- model.removeNodeset("/root/hidden/bacgensantibio/antibiolist");
- }
- else{
- //alert("추가할 항균제가 없습니다.");
- model.removeNodeset("/root/hidden/Baccd/getAntimicInfo" + testcd + "/antibiolist[baccd = '" + baccd + "' and bcno = '"+bcno+"' and bacseqno = '"+bacseqno+"']");
- }
-
-
- }
-
-
-
- function fCommentSave() {
- var bcno = model.getValue("/root/main/TestInfo/getSpcInfo/bcno");
-
- if (bcno.toString() == "") {
-
- return;
- }
-
- modal("SPLMR90200","","", "","");
- }
-
- function commentChange(){
-
- if(model.getvalue("/root/main/TestInfo/getSpcInfo/testcont")!=""){
- button1.attribute("text") = "소견수정";
-
- }
- else{
- button1.attribute("text") = "소견입력";
- }
-
-
- }
-
- function fMakeSendSoGyeon(){
-
- var cntSG = getNodesetCount("/root/main/TestInfo/getSpcInfo/testcont"); //소견 저장 개수
-
- var vSndSG = "m▦testcontcd▦execdeptcd▦testcont▦testcontkind▩";
-
- for(var i = 1; i <= cntSG; i++){
-
- if(model.getValue("/root/main/TestInfo/testcont[" + i + "]/iud") != ""){
- vSndSG += "u" + "▦"
- + model.getValue("/root/main/TestInfo/getSpcInfo[" + i + "]/testcontcd") + "▦"
- + "" + "▦"
- + model.getValue("/root/main/TestInfo/getSpcInfo[" + i + "]/testcont") + "▦"
- + "" + "▩";
- }
- }
- model.setValue("/root/send/data3", vSndSG);
- }
-
- function fSearchFalg(){
- if(model.getvalue("/root/hidden/refflag/searchflag") == "1"){
- model.setvalue("/root/hidden/refflag/searchtext" , model.getvalue("/root/main/TestInfo/getSpcInfo/workno"));
- }
- else{
- model.setvalue("/root/hidden/refflag/searchtext" , model.getvalue("/root/main/TestInfo/getSpcInfo/bcno"));
- }
-
- model.refresh();
- ipt_search.selBegin = 0;
- ipt_search.selEnd = ipt_search.currentText.length;
- }
-
- function fMouseDown_grd_TestInfoCnts(){
- model.removeNodeset("/root/hidden/popupmenu");
-
- if(event.button == 3){ // 라이트클릭 메뉴만들기...
- model.makeNode("/root/hidden/popupmenu/grid");
- model.makeNode("/root/hidden/popupmenu/grid/item");
- var testcd = model.getvalue("/root/main/TestInfo/getTestInfoCnts["+grd_TestInfoCnts.mouseRow+"]/testcd").getTrim();
-
- if(grd_TestInfoCnts.mouseCol== 4){
- //결과코드관련
- var n = getNodesetCount("/root/init/LB0109[etc01='" + testcd + "']");
- if (n > 0) {
- var cdNodes = instance1.selectNodes("/root/init/LB0109[etc01='" + testcd + "']/cd");
- var cdNodes2 = instance1.selectNodes("/root/init/LB0109[etc01='" + testcd + "']/nm");
-
- var dispyn = instance1.selectNodes("/root/init/LB0109[etc01='" + testcd + "']/etc03");
-
- for (i = 1; i <= n; i++) {
-
- var cd = cdNodes.item(i - 1).text;
- var nm = cdNodes2.item(i - 1).text;
- var yn = dispyn.item(i - 1).text;
- if(yn == "Y"){
- //var cd = model.getvalue("/root/init/LB0109[etc01='" + testcd + "']["+ i +"]/cd");
- //var nm = model.getvalue("/root/init/LB0109[etc01='" + testcd + "']["+ i +"]/nm");
- model.makeValue("/root/hidden/popupmenu/grid/item["+ i +"]/name" , "["+cd+"] "+ nm);
- model.makeValue("/root/hidden/popupmenu/grid/item["+ i +"]/func" , nm + "▦" +grd_TestInfoCnts.mouseRow+ "▦검사");
- //model.makeValue("/root/hidden/popupmenu/grid/item["+i+"]/value" , cd);
- }
-
- }
- }
-
- if(testcd== "LMR132" ||testcd== "LMR100"||testcd== "LMB103" || testcd== "LMB203"){
- n = parseInt(getNodesetCount("/root/hidden/popupmenu/grid/item")) + 1;
- if(n>1){
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/name" , "-");
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/func" , "");
- n++
- }
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/name" , "▶ GramStain 결과입력");
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/func" , "fGramStain");
- }
-
- }
-
- n = parseInt(getNodesetCount("/root/hidden/popupmenu/grid/item")) + 1;
- if(n>1){
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/name" , "-");
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/func" , "");
- n++;
- }
-
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/name" , "▶ 통합결과조회");
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/func" , "fTGyeolGwa");
- n++;
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/name" , "▶ 검사정보");
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/func" , "fTestInfo2");
-
- var vRelation = model.getValue("/root/init/LB0108[cd='"+ testcd +"']/cd");
-
- if (vRelation != "" ) {
- n++;
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/name" , "▶ 연관검사조회");
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/func" , "fRelationTest");
-
- }
-
- if(grd_TestInfoCnts.isCell(event.target) && grd_TestInfoCnts.mouseRow >= grd_TestInfoCnts.fixedrows){
- setPopupMenu("grd_TestInfoCnts" , true, "/root/hidden/popupmenu/grid/item", "name", "func");
- }else{
- window.setPopupMenu(false);
- }
-
- }
- }
-
- function fRelationTest(){
- var vRow = grd_TestInfoCnts.row;
- model.setValue("/root/hidden/RelationParm/pid", model.getValue("/root/main/TestInfo/getSpcInfo/pid"));
- model.setValue("/root/hidden/RelationParm/tclsscrnnm", model.getValue("/root/main/TestInfo/getTestInfoCnts[" + vRow + "]/tclsscrnm"));
- model.setValue("/root/hidden/RelationParm/testcd", model.getValue("/root/main/TestInfo/getTestInfoCnts[" + vRow + "]/testcd"));
- model.setValue("/root/hidden/RelationParm/spccd", model.getValue("/root/main/TestInfo/getTestInfoCnts[" + vRow + "]/spccd"));
- modal("SMLLR90400" , "","","","","/root/hidden/RelationParm" , "/root/hidden/RelationParm");
- }
-
- function fRelationTest2(){
- var vRow = grd_CultrueTestInfo.row;
- model.setValue("/root/hidden/RelationParm/pid", model.getValue("/root/main/TestInfo/getSpcInfo/pid"));
- model.setValue("/root/hidden/RelationParm/tclsscrnnm", model.getValue("/root/main/TestInfo/getCultrueTestInfo[" + vRow + "]/tclsscrnm"));
- model.setValue("/root/hidden/RelationParm/testcd", model.getValue("/root/main/TestInfo/getCultrueTestInfo[" + vRow + "]/testcd"));
- model.setValue("/root/hidden/RelationParm/spccd", model.getValue("/root/main/TestInfo/getCultrueTestInfo[" + vRow + "]/spccd"));
- modal("SMLLR90400" , "","","","","/root/hidden/RelationParm" , "/root/hidden/RelationParm");
- }
-
- function fTGyeolGwa(){
- modal("SMAER00800 ","","","","","/root/main/TestInfo/getTestInfoCnts/pid","/root/send/data/singdata/srchpid");
- }
-
- function fTGyeolGwa1(){
- modal("SMAER00800 ","","","","","/root/main/TestInfo/getCultrueTestInfo/pid","/root/send/data/singdata/srchpid");
- }
-
- function fOnmenu(popupParam){
- if(popupParam == "fTGyeolGwa1"){
- fTGyeolGwa1();
- }else if(popupParam == "fTGyeolGwa"){
- fTGyeolGwa();
- }else if(popupParam == "fTestInfo"){
- fTestInfo();
- }else if(popupParam == "fTestInfo2"){
- fTestInfo2();
- }else if(popupParam == "fRelationTest"){
- fRelationTest();
- }else if(popupParam == "fRelationTest2"){
- fRelationTest2();
- }else if(popupParam == "fGramStain"){
- fGramStain();
- }else if(popupParam.substring(0,9) == "fAbResult"){
- fAbResult(popupParam.substring(9));
- }else if(popupParam.substring(0,6) == "fAbDel"){
-
- fAbResultDel(popupParam.substring(6));
-
- }else{
- if(popupParam != ""){
-
- var Arslt = popupParam.split("▦");
- if(Arslt[2] == "검사"){
- fRsltCode(Arslt[0] , Arslt[1]);
- }
- else if(Arslt[2] == "배양분리균"){
- fRsltCode2(Arslt[0] , Arslt[1], Arslt[3]);
- }
- else{
-
- fCultureRsltCode(Arslt[0] , Arslt[1] , Arslt[3] , Arslt[4]);
- }
-
- }
- }
- }
-
- function fRsltCode(nm , pRow ){
-
- model.setvalue("/root/main/TestInfo/getTestInfoCnts["+pRow+"]/bufinptrslt" ,nm);
- fCvtViewResult();
- }
-
- function fRsltCode2(nm , pRow, col){
- var r;
- if(model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="2" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="3"){
- r = grd_CultrueTestInfo.row;
- }
- else{
- for(i = grd_CultrueTestInfo.row ; i>0 ; i--){
- if(model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="2" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="3"){
- r = i;
- i = 0;
- }
- }
- }
- var vTESTCD = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r+"]/testcd").getTrim();
- if(col == "1"){
- model.setValue("/root/hidden/Baccd/getBaccd" + vTESTCD + "/getBacList["+pRow+"]/growkind" , nm);
- }
- else if(col == "2"){
- model.setValue("/root/hidden/Baccd/getBaccd" + vTESTCD + "/getBacList["+pRow+"]/tempbacnm" , nm);
- }
- //model.setvalue("/root/main/TestInfo/getCultrueDivInfo["+pRow+"]/growkind" , nm);
- model.refresh();
-
- }
-
- function fCultureRsltCode(pNM , pRow ,pYN , pCD){
-
- if(pYN == "Y"){
- model.setvalue("/root/hidden/cultureParm/testcd" ,pCD );
- model.setvalue("/root/hidden/cultureParm/bufParm" , model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+pRow+"]/bufinptrslt"));
- modal("SPLMR90700" , "","","","", "/root/hidden/cultureParm" , "/root/hidden/cultureParm" );
-
-
- if(model.getvalue("/root/hidden/cultureParm/bufParm") !=""){
- model.setvalue("/root/main/TestInfo/getCultrueTestInfo["+pRow+"]/bufinptrslt" ,model.getvalue("/root/hidden/cultureParm/bufParm"));
- model.setvalue("/root/main/TestInfo/getCultrueTestInfo["+pRow+"]/inptrslt" ,model.getvalue("/root/hidden/cultureParm/bufParm"));
- for(i = pRow; i > 0; i--){
- if(model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") == "3" || model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") == "2" ){
- model.setvalue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/amrmark" ,"2");
- i = 0;
- }
- }
- fEnterCultureRslt();
- //model.resetInstanceNode("/root/hidden/cultureParm");
- }
-
- model.setvalue("/root/hidden/cultureParm/bufParm" ,"");
- model.setvalue("/root/hidden/cultureParm/bufParm" ,"");
- }
- else{
- model.setvalue("/root/main/TestInfo/getCultrueTestInfo["+pRow+"]/bufinptrslt" ,pNM);
- model.setvalue("/root/main/TestInfo/getCultrueTestInfo["+pRow+"]/inptrslt" ,pNM);
- for(i = pRow; i > 0; i--){
- if(model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") == "3" || model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") == "2"){
- if(pYN == "G"){
- model.setvalue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/amrmark" ,"2");
- }else{
- model.setvalue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/amrmark" ,"1");
- }
- i = 0;
- }
- }
- fEnterCultureRslt();
- }
- }
-
- function fOnMouseDown_grd_Cultrue(){
- model.removeNodeset("/root/hidden/popupmenu");
-
- if(event.button == 3){ // 라이트클릭 메뉴만들기...
- model.makeNode("/root/hidden/popupmenu/grid");
- model.makeNode("/root/hidden/popupmenu/grid/item");
-
- var testcd = model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.mouseRow+"]/testcd").getTrim();
- var spccd = model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.mouseRow+"]/spccd");
- var tclskind = model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.mouseRow+"]/tclskind");
- n = parseInt(getNodesetCount("/root/hidden/popupmenu/grid/item")) + 1;
-
- if(grd_CultrueTestInfo.mouseCol== 3){
-
- if(getNodesetCount("/root/main/TestInfo/abnormallist[testcd2='" + testcd + "']") > 0){
-
- //n = parseInt(getNodesetCount("/root/hidden/popupmenu/grid/item")) + 1;
- if(n>1){
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/name" , "-");
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/func" , "");
- n++
- }
-
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/name" , "▶ AbNormal Result");
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/func" , "fAbResult" + testcd);
-
- }
-
- if(model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.mouseRow+"]/tclskind") == "5"){
-
- if(model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.mouseRow+"]/reptrslt") == ""){
-
- n = parseInt(getNodesetCount("/root/hidden/popupmenu/grid/item")) + 1;
- if(n>1){
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/name" , "-");
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/func" , "");
- n++
- }
-
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/name" , "▶ AbNormal Result 삭제");
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/func" , "fAbDel" + grd_CultrueTestInfo.mouseRow);
- }
- }
-
-
- }
-
- if(grd_CultrueTestInfo.mouseCol== 4){
-
- var testcd = model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+ grd_CultrueTestInfo.mouseRow+"]/testcd").getTrim();
- var Readis = model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+ grd_CultrueTestInfo.mouseRow+"]/bufinptrslt/@readonly");
- if(Readis == "true"){
- }
- else{
-
- var n = getNodesetCount("/root/init/LB0109[etc01='" + testcd + "']");
-
- if (n > 0) {
-
- var cdNodes = instance1.selectNodes("/root/init/LB0109[etc01='" + testcd + "']/cd");
- var cdNodes2 = instance1.selectNodes("/root/init/LB0109[etc01='" + testcd + "']/nm");
-
- var dispyn = instance1.selectNodes("/root/init/LB0109[etc01='" + testcd + "']/etc03");
- var posyn = instance1.selectNodes("/root/init/LB0109[etc01='" + testcd + "']/etc04");
-
- for (i = 1; i <= n; i++) {
-
- var cd = cdNodes.item(i - 1).text;
- var nm = cdNodes2.item(i - 1).text;
- var yn = dispyn.item(i - 1).text;
- var pyn = posyn.item(i - 1).text;
-
- if(yn == "Y"){
- //var cd = model.getvalue("/root/init/LB0109[etc01='" + testcd + "']["+ i +"]/cd");
- //var nm = model.getvalue("/root/init/LB0109[etc01='" + testcd + "']["+ i +"]/nm");
- //alert("cd : " + cd + ", YN : " + pyn);
- model.makeValue("/root/hidden/popupmenu/grid/item["+ i +"]/name" , "["+cd+"] "+ nm);
- model.makeValue("/root/hidden/popupmenu/grid/item["+ i +"]/func" , nm + "▦" + grd_CultrueTestInfo.mouseRow+ "▦배양검사▦" + pyn + "▦" + testcd );
- //model.makeValue("/root/hidden/popupmenu/grid/item["+i+"]/value" , cd);
- }
-
- }
- }
- }
-
- }
-
-
- n = parseInt(getNodesetCount("/root/hidden/popupmenu/grid/item")) + 1;
- if(n>1){
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/name" , "-");
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/func" , "");
- n++
- }
-
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/name" , "▶ 통합결과조회");
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/func" , "fTGyeolGwa1");
- n++;
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/name" , "▶ 검사정보");
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/func" , "fTestInfo");
-
- var vRelation = model.getValue("/root/init/LB0108[cd='"+ testcd +"']/cd");
-
- if (vRelation != "" ) {
- n++;
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/name" , "▶ 연관검사조회");
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/func" , "fRelationTest2");
-
- }
-
-
-
-
- if(grd_CultrueTestInfo.isCell(event.target) && grd_CultrueTestInfo.mouseRow >= grd_CultrueTestInfo.fixedrows){
- setPopupMenu("grd_CultrueTestInfo" , true, "/root/hidden/popupmenu/grid/item", "name", "func");
- }else{
- window.setPopupMenu(false);
- }
- }
- }
-
-
- function fTestInfo(){
- var row = grd_CultrueTestInfo.row;
- modal("SMLLF90100", "", "", "","", "/root/main/TestInfo/getCultrueTestInfo["+row+"]/tclscd", "/root/hidden/tclscd");
- }
-
- function fTestInfo2(){
- var row = grd_TestInfoCnts.row;
- modal("SMLLF90100", "", "", "","", "/root/main/TestInfo/getTestInfoCnts["+row+"]/tclscd", "/root/hidden/tclscd");
- }
-
-
- function fGrd_TestInfoCnts_KeyDown(){
-
- var row = grd_TestInfoCnts.row;
- var col = grd_TestInfoCnts.col;
-
-
-
- if(((col == 3 && event.keyCode == 39) || (col == 5 && event.keyCode == 37) || event.keyCode == 38 || event.keyCode == 40 )
- && model.getvalue("/root/main/TestInfo/getTestInfoCnts["+row+"]/bufinptrslt/@readonly") != "true" ){
- var vRow = row ;
-
- if (event.keyCode == 38){
-
- vRow -- ;
- }
- else if(event.keyCode == 40){
- vRow++;
- }
- var InptRslt = model.getvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/inptrslt");
- model.setvalue("/root/main/TestInfo/getTestInfoCnts["+row+"]/bufinptrslt","");
- model.setvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/bufinptrslt",InptRslt);
- }
- else{
-
- var vRow = row ;
- if (event.keyCode == 38){
-
- vRow-- ;
- }
- else if(event.keyCode == 40){
- vRow++;
- }
-
- model.setvalue("/root/main/TestInfo/getTestInfoCnts["+vRow+"]/bufinptrslt","");
- }
- if(event.keyCode == 37 || event.keyCode == 38 || event.keyCode == 39 || event.keyCode == 40){
-
- fLIS_TestInfo(vRow , "/root/main/TestInfo/getSpcInfo" ,"/root/main/TestInfo/getTestInfoCnts" );
- }
- }
-
- function fGramStain(){
-
- var row = grd_TestInfoCnts.row;
-
- model.setvalue("/root/hidden/GRAMParm/bufParm", model.getValue("/root/main/TestInfo/getTestInfoCnts["+row+"]/reptrslt"));
- modal("SPLMR90500", "","","","","/root/hidden/GRAMParm/bufParm" , "/root/hidden/GRAMParm/bufParm");
-
- var sRslt = model.getvalue("/root/hidden/GRAMParm/bufParm");
- if(sRslt != ""){
- model.setvalue("/root/main/TestInfo/getTestInfoCnts["+row+"]/bufinptrslt" ,sRslt);
- //grd_TestInfoCnts.col = 4;
- fCvtViewResult();
-
-
- }
-
-
- }
-
- function fUserNMRef(){
-
- if(model.getvalue("/root/hidden/refflag/userid") != ""){
-
- model.makeValue("/root/send/userid" , model.getvalue("/root/hidden/refflag/userid"));
- submit("TRLZZ00104");
- }
- }
-
- function fBFBacRslt(){
- var row = grd_CultrueTestInfo.row;
- if(row < 1) {
- alert("배양검사를 선택하세요");
- return;
- }
- model.setvalue("/root/hidden/bfsltparm/pid" , model.getvalue("/root/main/TestInfo/getSpcInfo/pid"));
- model.setvalue("/root/hidden/bfsltparm/bcno" , model.getvalue("/root/main/TestInfo/getSpcInfo/bcno"));
- model.setvalue("/root/hidden/bfsltparm/spcscrnnm" , model.getvalue("/root/main/TestInfo/getSpcInfo/spcscrnnm"));
- model.setvalue("/root/hidden/bfsltparm/workno" , model.getvalue("/root/main/TestInfo/getSpcInfo/workno"));
- model.setvalue("/root/hidden/bfsltparm/spcacptdt" , model.getvalue("/root/main/TestInfo/getSpcInfo/spcacptdt"));
-
- var vTestcd = model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+row+"]/testcd").substring(0, 6);
- model.setvalue("/root/hidden/bfsltparm/testcd" , vTestcd);
- model.setvalue("/root/hidden/bfsltparm/spccd" , model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+row+"]/spccd"));
-
- model.setvalue("/root/hidden/bfsltparm/bacrslt" , "");
- modal("SPLMR90600","","","","","/root/hidden/bfsltparm","/root/hidden/bfsltparm");
-
- if(model.getvalue("/root/hidden/bfsltparm/bacrslt") != ""){
- var baclist = model.getvalue("/root/hidden/bfsltparm/bacrslt"); // bcno/testcd/testcd/bascseqno@.../baccd@..
- /*var cnt = model.getXPathValue('count(/root/hidden/Baccd/getBaccd' + vTestcd + '/getBacList)');
- var baclist2 = ""; //기존에 들어와있던놈들 재조회 하기위함
- for(i = 1; i<=cnt; i++){
- baclist2 += model.getValue("/root/hidden/Baccd/getBaccd" + vTestcd + "/getBacList[" + i + "]/bcno") + "/"
- + model.getValue("/root/hidden/Baccd/getBaccd" + vTestcd + "/getBacList[" + i + "]/testcd") + "/"
- + model.getValue("/root/hidden/Baccd/getBaccd" + vTestcd + "/getBacList[" + i + "]/testcd") + "/"
- + model.getValue("/root/hidden/Baccd/getBaccd" + vTestcd + "/getBacList[" + i + "]/bacseqno") + "@/"
- + model.getValue("/root/hidden/Baccd/getBaccd" + vTestcd + "/getBacList[" + i + "]/baccd") + "@▦";
- }
- baclist = baclist2 + baclist;*/
- model.makeValue("/root/send/baclist" , baclist);
- submit("TRLMR00203");
-
- if(model.getXPathValue('count(/root/hidden/Baccd/getBaccd' + vTestcd + ')') == 0){
- model.makeNode("/root/hidden/Baccd/getBaccd"+vTestcd);
- }
- if(model.getXPathValue('count(/root/hidden/Baccd/getAntimicInfo' + vTestcd + ')') == 0){
- model.makeNode("/root/hidden/Baccd/getAntimicInfo"+vTestcd);
- }
- copyNodeType("/root/hidden/Baccd/getBaccd"+vTestcd, "/root/hidden/tmpbfbacr/getBaccd"+vTestcd, "after");
- copyNodeType("/root/hidden/Baccd/getAntimicInfo"+vTestcd, "/root/hidden/tmpbfbacr/getAntimicInfo"+vTestcd, "after");
- if(grd_CultrueDivInfo.rows> 0 ){
- model.setFocus("grd_CultrueDivInfo");
- grd_CultrueDivInfo.row = 1;
- grd_CultrueDivInfo.col = 3;
- fOnclick_grd_CultrueDivInfo();
- }
- }
- }
-
- function fConfirm(){
- if(model.getvalue("/root/hidden/refflag/userid") == "" || model.getvalue("/root/main/getUsernm/usernm") == ""){
- messageBox("검사자를 " , "C001" ,"");
- model.setFocus("ipt_testpsn");
- return;
- }
-
- if(model.getvalue("/root/main/TestInfo/getCultrueTestInfo/testcd") == "") {
- messageBox("배양검사가 없는 검체입니다." , "E");
- return;
- }
- model.setvalue("/root/hidden/refflag/testlrgkind" , "M");
- model.setValue("/root/hidden/refflag/rsltstat", "4");
- model.setvalue("/root/hidden/refflag/bcno",model.getvalue("/root/main/TestInfo/getSpcInfo/bcno"));
- model.setvalue("/root/hidden/refflag/testcont" , model.getvalue("/root/main/TestInfo/getSpcInfo/testcont"));
- model.setvalue("/root/hidden/refflag/testcontcd" , model.getvalue("/root/main/TestInfo/getSpcInfo/testcontcd"));
- model.copyNode("/root/send/data1","/root/hidden/refflag");
-
- var nGridMaxRow = grd_CultrueTestInfo.rows-1;
- var subIF = false;
- var vBaeYangCD = ""
- for (var i = 1; i <= nGridMaxRow; i++) {
- if (model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/selchk/@value") == "true") {
- var vTCDGBN = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind");
- // var vTITLEYN = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/titleyn"); // 타이틀 구분
- var vREPTRSLT = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/reptrslt");
-
- if(model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/rsltstat") == "4" || model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/rsltstat") == "4"){
- messageBox("이미 최종보고 되었습니다." , "E");
- grd_CultrueTestInfo.clearStatus();
- return;
- }
-
- if (vTCDGBN == "2" || vTCDGBN == "3") {
- // Single항목 체크
-
- grd_CultrueTestInfo.addStatus( i, "update");
- vBaeYangCD += model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/testcd") + ",";
- subIF = true;
- }
-
- isBaeYangRst = "0";
- }
- }
- if(subIF){
- model.setvalue("/root/send/data3",grd_CultrueTestInfo.getUpdateData());
-
- submit("TXLMR00202");
- fSetClear();
- }
-
- }
-
- function fAbResult(testcd){
-
- //model.makeValue("/root/hidden/AbResultParm/abnormallist");
-
- model.copyNode("/root/hidden/AbResultParm" , "/root/main/TestInfo");
- model.makeValue("/root/hidden/AbResultParm/testcd" , testcd);
-
- modal("SMLLR90500" , "","","","","/root/hidden/AbResultParm" , "/root/main/TestInfo");
-
-
-
- var abCnt = getNodesetCount("/root/hidden/abresult/abnormallist");
-
-
- if(abCnt > 0){
- var row = grd_CultrueTestInfo.row;
-
-
- for(xx = row;; xx ++){
- if(model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+xx+"]/testcd2") != testcd) break;
- if(xx == grd_CultrueTestInfo.rows) break;
- }
-
-
-
- if(xx == row) xx = row ;
- else xx = xx - 1;
-
- for(i=1;i<= abCnt;i++){
- var row = xx + i - 1;
- var testcd = model.getvalue("/root/hidden/abresult/abnormallist["+i+"]/testcd");
-
-
- var findRow = grd_CultrueTestInfo.findRow(testcd , 1, 24, true, true);
- if(findRow < 0){
-
- //var cnt = parseInt(getNodesetCount("/root/main/TestInfo/getTestInfoCnts")) + 1;
- //model.makeNode("/root/main/TestInfo/getTestInfoCnts["+cnt+"]");
-
- grd_CultrueTestInfo.insertRow(row , "below" , false);
- var pRow = parseInt(row) + 1;
-
-
- model.copyNode("/root/main/TestInfo/getCultrueTestInfo["+ pRow +"]" , "/root/hidden/abresult/abnormallist["+ i +"]");
-
- model.refresh();
- var sRow ="";
- if(pRow != grd_CultrueTestInfo.rows- 1){
- for(ee = parseInt(pRow) + 1 ; ee <grd_CultrueTestInfo.rows ; ee++){
- if(model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+ee+"]/tclskind") == "3"){
- sRow = ee;
- break;
- }
-
- }
-
- if(sRow !=""){
-
- for(zz = parseInt(sRow) ; zz <grd_CultrueTestInfo.rows ; zz++){
- var parentidx = model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+zz+"]/parentidx");
- if(parentidx != ""){
- //model.setvalue("/root/main/TestInfo/getTestInfoCnts["+ zz +"]/parentidx" ,parentidx+1)
- model.setvalue("/root/main/TestInfo/getCultrueTestInfo["+zz+"]/parentidx" , parseInt(parentidx) + 1);
- }
- }
- }
- }
-
- }
- }
-
- var Lrow = grd_CultrueTestInfo.rows-1;
- grd_CultrueTestInfo.topRow = Lrow;
- grd_CultrueTestInfo.refresh();
-
- }
-
- //model.removeNodeset("/root/hidden/abresult/abnormallist");
- //fRemakeList();
-
-
- }
-
- function fdelAntimic(pRef){
-
- var vTestcd, vBacseqno, vAntibiocd, vBcno, vBaccd;
- if(pRef == "Select"){
- if(grd_AntimicInfo.row == -1){
- alert("삭제할 항생제를 선택해 주십시오");
- return;
- }else{
-
- vTestcd = grd_AntimicInfo.valueMatrix(grd_AntimicInfo.row, grd_AntimicInfo.colRef("testcd"));
- vBacseqno = grd_AntimicInfo.valueMatrix(grd_AntimicInfo.row, grd_AntimicInfo.colRef("bacseqno"));
- vAntibiocd = grd_AntimicInfo.valueMatrix(grd_AntimicInfo.row, grd_AntimicInfo.colRef("antibiocd"));
- vBcno = grd_AntimicInfo.valueMatrix(grd_AntimicInfo.row, grd_AntimicInfo.colRef("bcno"));
- vBaccd = grd_AntimicInfo.valueMatrix(grd_AntimicInfo.row, grd_AntimicInfo.colRef("baccd"));
-
- model.removenode("/root/hidden/Baccd/getAntimicInfo" + vTestcd + "/antibiolist[baccd = '" + vBaccd + "' and antibiocd = '" +vAntibiocd + "' and bcno = '"+vBcno+"' and bacseqno = '"+vBacseqno+"']");
-
- }
- }else if(pRef == "All"){
-
- vTestcd = grd_AntimicInfo.valueMatrix(1, grd_AntimicInfo.colRef("testcd"));
- vBacseqno = grd_AntimicInfo.valueMatrix(1, grd_AntimicInfo.colRef("bacseqno"));
- vAntibiocd = grd_AntimicInfo.valueMatrix(1, grd_AntimicInfo.colRef("antibiocd"));
- vBcno = grd_AntimicInfo.valueMatrix(1, grd_AntimicInfo.colRef("bcno"));
- vBaccd = grd_AntimicInfo.valueMatrix(1, grd_AntimicInfo.colRef("baccd"));
-
- model.removeNodeset("/root/hidden/Baccd/getAntimicInfo" + vTestcd + "/antibiolist[baccd = '" + vBaccd + "' and bcno = '"+vBcno+"' and bacseqno = '"+vBacseqno+"']");
-
- }
- //grd_AntimicInfo.nodeset = "/root/hidden/Baccd/getAntimicInfo" + vTestcd + "/antibiolist[baccd = '" + vTestcd + "' and bcno = '"+vBcno+"' and bacseqno = '"+vBacseqno+"']";
- //grd_AntimicInfo.rebuild();
- model.refresh();
- }
-
- function fAbResultDel(pRow){
- grd_CultrueTestInfo.deleteitem(pRow);
- var sRow = "";
- for(ee = parseInt(pRow) ; ee <grd_CultrueTestInfo.rows ; ee++){
- if(model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+ee+"]/tclskind") == "3"){
- sRow = ee;
- break
- }
-
- }
-
- if(sRow !=""){
-
- for(zz = parseInt(sRow) ; zz <grd_TestInfoCnts.rows ; zz++){
- var parentidx = model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+zz+"]/parentidx");
- if(parentidx != ""){
- model.setvalue("/root/main/TestInfo/getCultrueTestInfo["+zz+"]/parentidx" ,parseInt(parentidx) - 1 );
- }
- }
- }
- }
-
- function fbackeep(){
- if(grd_CultrueDivInfo.row == -1){
- alert("보관 배량/분리균을 선택해 주십시오");
- }
- if(grd_CultrueDivInfo.rowStatus(grd_CultrueDivInfo.row) == 1){
- alert("보고된 배량/분리균을 선택해 주십시오");
- }
- else{
- if(grd_CultrueDivInfo.rowStatus(grd_CultrueDivInfo.row) == 1){
- alert("보고된 배량/분리균을 선택해 주십시오");
- }
- else{
- var testcd = grd_CultrueDivInfo.valueMatrix(grd_CultrueDivInfo.row, 11);
-
- model.makeValue("/root/send/backeepdata/bcno", model.getValue("/root/hidden/Baccd/getBaccd"+ testcd + "/getBacList["+grd_CultrueDivInfo.row+"]/bcno"));
- model.makeValue("/root/send/backeepdata/spccd", model.getValue("/root/hidden/Baccd/getBaccd"+ testcd + "/getBacList["+grd_CultrueDivInfo.row+"]/spccd"));
- model.makeValue("/root/send/backeepdata/baccd", model.getValue("/root/hidden/Baccd/getBaccd"+ testcd + "/getBacList["+grd_CultrueDivInfo.row+"]/baccd"));
- model.makeValue("/root/send/backeepdata/bacscrnnm", model.getValue("/root/hidden/Baccd/getBaccd"+ testcd + "/getBacList["+grd_CultrueDivInfo.row+"]/bacscrnnm"));
- model.makeValue("/root/send/backeepdata/bacseqno", model.getValue("/root/hidden/Baccd/getBaccd"+ testcd + "/getBacList["+grd_CultrueDivInfo.row+"]/bacseqno"));
- model.makeValue("/root/send/backeepdata/testcd", model.getValue("/root/hidden/Baccd/getBaccd"+ testcd + "/getBacList["+grd_CultrueDivInfo.row+"]/testcd"));
- model.makeValue("/root/send/backeepdata/rsltseq", model.getValue("/root/hidden/Baccd/getBaccd"+ testcd + "/getBacList["+grd_CultrueDivInfo.row+"]/rsltseq"));
- modal("SPLMR90300","","","","","/root/send/backeepdata","/root/hidden/ref");
- model.removeNodeset("/root/send/backeepdata")
- }
- }
- }
-
- function bacflagcdsend(){
- model.setFocus("grd_Cultrue");
- model.setValue("/root/send/bacflagcd", model.getValue("/root/hidden/bacflagcd"));
- submit("TRLMR00204");
- }
-
- function fbacmnue(){
-
- model.removeNodeset("/root/hidden/popupmenu"); //우클릭메뉴 초기화
- var Mcol = grd_CultrueDivInfo.mouseCol;
- var cd, nm; //우클릭 메뉴에 추가될 코드, 명칭
-
- if(event.button == 3){ // 라이트클릭 메뉴만들기...
- model.makeNode("/root/hidden/popupmenu/grid");
- model.makeNode("/root/hidden/popupmenu/grid/item");
-
- n = parseInt(getNodesetCount("/root/hidden/popupmenu/grid/item")) + 1;
- if(n>1){
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/name" , "-");
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/func" , "");
- n++;
- }
-
- if(grd_CultrueDivInfo.mouseCol == 1){ //증식정도 우클릭일 경우
-
- var r;
- var vGflag;
- if(model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="2" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="3"){
- r = grd_CultrueTestInfo.row;
- vGflag = false;
- }
- // 20110830 증식정도 오류수정
- else{
- vGflag = true; //tclskind가 2 나 3이 아닐경우 (차일드나 어브노말인경우)
- // r = 1;
- }
- //var vTESTCD = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r+"]/testcd").getTrim();
- if( vGflag == false){
- var vTESTCD = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r+"]/testcd").getTrim();
- }else if(vGflag == true){
- var vTESTCD = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclscd").getTrim();
- }
-
- var spccd = model.getvalue("/root/main/TestInfo/getCultrueTestInfo["+ grd_CultrueTestInfo.Row+"]/spccd").getTrim();
- var n = 0;
- var vNm, vFlag;
- var vMenuNodeCnt = 1;
-
- //alert(vTESTCD);
-
- //검사코드 비교 LMS102 , 103 존재시
- if(getNodesetCount("/root/init/LB0132[etc02 = 'tclscd' and cd = '" + vTESTCD + "']") > 0){
- //alert("tclscd");
- vNm = model.getValue("/root/init/LB0132[etc02 = 'tclscd' and cd = '" + vTESTCD + "']/nm"); //검사코드에 따른 증식정도 구분
- vFlag = model.getValue("/root/init/LB0132[etc02 = 'tclscd' and cd = '" + vTESTCD + "']/etc02"); //etc02 == "tclscd" //검사코드, 검체코드 구분
-
- }else if(getNodesetCount("/root/init/LB0132[etc02 = 'spccd' and cd = '" + spccd + "']") > 0){
- //alert("spccd");
- vNm = model.getValue("/root/init/LB0132[etc02 = 'spccd' and cd = '" + spccd + "']/nm"); //검체코드에 따른 증식정도 구분
- vFlag = model.getValue("/root/init/LB0132[etc02 = 'spccd' and cd = '" + spccd + "']/etc02"); //etc02 == "spccd" //검사코드, 검체코드 구분
-
- }else{
- //alert("3");
- vNm = "normal"; //해당 검사코드나 검체 코드가 없을경우 기본 증식정도 표시
- vFlag = "spccd";
- }
-
- //cdNodes = "/root/init/LB0131[etc01 = '" + vNm + "' and etc02 = '" + vFlag + "']";
- //n = getNodesetCount("/root/init/LB0131[etc01 = '" + vNm + "' and etc02 = '" + vFlag + "']");
- n = getNodesetCount("/root/init/LB0131");
- for (i = 1; i <= n; i++) {
- var etc1String = model.getValue("/root/init/LB0131[" + i + "]/etc01").getTrim().toString();
- var etc2String = model.getValue("/root/init/LB0131[" + i + "]/etc02").getTrim().toString();
-
- if(vNm.getTrim().toString() == etc1String && vFlag.getTrim().toString() == etc2String){
- //검체 종류 구분이 동일한 경우 우클릭 메뉴 리스트 추가하기
-
- cd = model.getValue("/root/init/LB0131[" + i + "]/cd");
- nm = model.getValue("/root/init/LB0131[" + i + "]/nm");
-
- model.makeValue("/root/hidden/popupmenu/grid/item["+ vMenuNodeCnt +"]/name" , nm);
- model.makeValue("/root/hidden/popupmenu/grid/item["+ vMenuNodeCnt +"]/func" , nm + "▦" + grd_CultrueDivInfo.mouseRow+ "▦배양분리균▦" + "1" + "▦" + "testcd" );
- vMenuNodeCnt += 1;
-
- }
- }
- }else if(grd_CultrueDivInfo.mouseCol == 2){ //배양/분리균 명 우클릭일때
-
- var n = getNodesetCount("/root/init/LB0133");
- for (i = 1; i <= n; i++) {
- cd = model.getValue("/root/init/LB0133["+i+"]/cd");
- nm = model.getValue("/root/init/LB0133["+i+"]/nm");
-
- model.makeValue("/root/hidden/popupmenu/grid/item["+ i +"]/name" , nm);
- model.makeValue("/root/hidden/popupmenu/grid/item["+ i +"]/func" , nm + "▦" + grd_CultrueDivInfo.mouseRow+ "▦배양분리균▦" + "2" + "▦" + "testcd" );
- }
- }
-
- if(grd_CultrueDivInfo.isCell(event.target) && grd_CultrueDivInfo.mouseRow >= grd_CultrueDivInfo.fixedrows){
- setPopupMenu("grd_CultrueDivInfo" , true, "/root/hidden/popupmenu/grid/item", "name", "func");
- }else{
- window.setPopupMenu(false);
- }
- }
- }
-
- function fviewrow(){
- var Lrow = grd_CultrueTestInfo.rows;
- grd_CultrueTestInfo.topRow = Lrow;
- }
-
-
- function getPcrandReadRslt(){
- if(model.getValue("/root/main/TestInfo/getSpcInfo/pid") == ""){
- return;
- }
- modal("SPLMR90800", "", "", "","", "/root/main/TestInfo/getSpcInfo/pid", "/root/hidden/ref/pid");
- }
-
-
- function getPrintData(){
- var rsltRow1 = grd_TestInfoCnts.rows; //검사항목 그리드
- var rsltRow2 = grd_CultrueTestInfo.rows; //배양검사 그리드
- var reportRow = 1;
-
- model.makeValue("/root/report/spcreport["+reportRow+"]/textgbn", "0");
- model.makeValue("/root/report/spcreport["+reportRow+"]/tclsnm", "1. 배양검사결과(및 항균제 감수성 결과)");
- model.makeValue("/root/report/spcreport["+reportRow+"]/reptrslt", "");
- model.makeValue("/root/report/spcreport["+reportRow+"]/reptrslt2", "");
- model.makeValue("/root/report/spcreport["+reportRow+"]/lastreptdt", "");
- reportRow++;
-
- if(rsltRow2 > 1){ //배양검사 존재시
-
- var bacRow = 0;
- var oldtclscd = model.getValue("/root/main/TestInfo/getCultrueTestInfo[1]/tclscd").getTrim().toString();
- var testcd = ""; //배양검사의 균 및 항생제 찾기 위한 검사코드
- var newtclscd = ""; //oldtclscd와 비교하기 위함
-
- for(var r2 = 1; r2 < rsltRow2 ; r2++){ //배양검사 그리드만큼 반복
-
- newtclscd = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r2+"]/tclscd").getTrim().toString();
-
- //검사코드 비교 검사코드가 달라지는 시점에 균 정보 및 항생제 표시
- if(newtclscd != oldtclscd || r2 == rsltRow2 -1 ){
-
- //배양검사 목록 표시
- if(r2 == rsltRow2 -1 ){ //마지막 행은 일반적으로 child나 abnormal이 오기 때문에..
- model.makeValue("/root/report/spcreport["+reportRow+"]/textgbn", "2");
- model.makeValue("/root/report/spcreport["+reportRow+"]/tclsnm",
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r2+"]/tclsscrnm"));
- model.makeValue("/root/report/spcreport["+reportRow+"]/reptrslt",
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r2+"]/reptrslt"));
- model.makeValue("/root/report/spcreport["+reportRow+"]/reptrslt2",
- "검사자 : " + model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r2+"]/rstnm"));
- model.makeValue("/root/report/spcreport["+reportRow+"]/lastreptdt",
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r2+"]/lastreptdt"));
- reportRow++;
- }
-
- //한줄 공백
- model.makeValue("/root/report/spcreport["+reportRow+"]/textgbn", "2");
- model.makeValue("/root/report/spcreport["+reportRow+"]/tclsnm", "");
- model.makeValue("/root/report/spcreport["+reportRow+"]/reptrslt", "");
- model.makeValue("/root/report/spcreport["+reportRow+"]/reptrslt2", "");
- model.makeValue("/root/report/spcreport["+reportRow+"]/lastreptdt", "");
- reportRow++;
- oldtclscd = newtclscd;
-
- //검사코드가 달라진 시점에 이전 행의 testcd로 균 및 항생제 찾기 위함
- testcd = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+ ( r2 - 1) +"]/testcd").getTrim().toString().substring(0, 6);
- bacRow = getNodesetCount("/root/hidden/Baccd/getBaccd" + testcd + "/getBacList"); //균결과
-
- if (bacRow > 0) { //균결과 존재시
-
- for(var r3 = 1; r3 <= bacRow ; r3++){
- //균정보 표시
- model.makeValue("/root/report/spcreport["+reportRow+"]/textgbn", "3");
- model.makeValue("/root/report/spcreport["+reportRow+"]/tclsnm",
- " " + model.getValue("/root/hidden/Baccd/getBaccd" + testcd + "/getBacList["+r3+"]/growkind") + " " +
- model.getValue("/root/hidden/Baccd/getBaccd" + testcd + "/getBacList["+r3+"]/tempbacnm") + " ->");
- model.makeValue("/root/report/spcreport["+reportRow+"]/reptrslt",
- model.getValue("/root/hidden/Baccd/getBaccd" + testcd + "/getBacList["+r3+"]/bacscrnnm"));
- reportRow++;
-
- //균에 대한 항생제들 찾기 위한 변수
- var bacSeq= model.getValue("/root/hidden/Baccd/getBaccd" + testcd + "/getBacList["+r3+"]/bacseqno");
- var vBaccd = model.getValue("/root/hidden/Baccd/getBaccd" +testcd + "/getBacList["+r3+"]/baccd");
- var vBcno = model.getValue("/root/hidden/Baccd/getBaccd" +testcd + "/getBacList["+r3+"]/bcno");
-
- //균에 대한 항생제 찾아서 임시 노드로 복사
- copyNodeListType("/root/hidden/saveantimic", "/root/hidden/Baccd/getAntimicInfo" + testcd + "/antibiolist[baccd = '" + vBaccd + "' and bacseqno = '"+bacSeq+"' and bcno = '"+vBcno+"']", "replace");
- //항생제 건수
- var vCnts = getNodesetCount("/root/hidden/saveantimic/antibiolist") ;
-
- for( r4 = 1; r4 <= vCnts; r4++){
- //항생제 건수만큼 반복해서 출력
- model.makeValue("/root/report/spcreport["+reportRow+"]/textgbn", "4");
- model.makeValue("/root/report/spcreport["+reportRow+"]/tclsnm",
- " " + model.getValue("/root/hidden/saveantimic/antibiolist["+r4+"]/antibioscrnnm"));
- model.makeValue("/root/report/spcreport["+reportRow+"]/reptrslt",
- model.getValue("/root/hidden/saveantimic/antibiolist["+r4+"]/antibioref") + " (" +
- model.getValue("/root/hidden/saveantimic/antibiolist["+r4+"]/antibiorslt") + ")");
- if(r4 != vCnts){
- r4 ++ ;
- model.makeValue("/root/report/spcreport["+reportRow+"]/lastreptdt",
- model.getValue("/root/hidden/saveantimic/antibiolist["+r4+"]/antibioscrnnm"));
- model.makeValue("/root/report/spcreport["+reportRow+"]/reptrslt2",
- model.getValue("/root/hidden/saveantimic/antibiolist["+r4+"]/antibioref") + " (" +
- model.getValue("/root/hidden/saveantimic/antibiolist["+r4+"]/antibiorslt") + ")");
- }
- reportRow++;
- }
- //한줄 공백
- model.makeValue("/root/report/spcreport["+reportRow+"]/textgbn", "");
- model.makeValue("/root/report/spcreport["+reportRow+"]/tclsnm", "");
- model.makeValue("/root/report/spcreport["+reportRow+"]/reptrslt", "");
- reportRow++;
-
- //항생제 노드 초기화
- model.removeNodeset("/root/hidden/saveantimic/antibiolist");
-
- }
- }
- }
-
- //배양검사 목록 표시
- if(r2 != rsltRow2 -1 ){
- model.makeValue("/root/report/spcreport["+reportRow+"]/textgbn", "2");
- model.makeValue("/root/report/spcreport["+reportRow+"]/tclsnm",
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r2+"]/tclsscrnm"));
- model.makeValue("/root/report/spcreport["+reportRow+"]/reptrslt",
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r2+"]/reptrslt"));
- model.makeValue("/root/report/spcreport["+reportRow+"]/reptrslt2",
- "검사자 : " + model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r2+"]/rstnm"));
- model.makeValue("/root/report/spcreport["+reportRow+"]/lastreptdt",
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r2+"]/lastreptdt"));
- reportRow++;
- }
- }
- }
-
- model.makeValue("/root/report/spcreport["+reportRow+"]/textgbn", "0");
- model.makeValue("/root/report/spcreport["+reportRow+"]/tclsnm", "");
- model.makeValue("/root/report/spcreport["+reportRow+"]/reptrslt", "");
- model.makeValue("/root/report/spcreport["+reportRow+"]/reptrslt2", "");
- model.makeValue("/root/report/spcreport["+reportRow+"]/lastreptdt", "");
-
- reportRow++;
-
- model.makeValue("/root/report/spcreport["+reportRow+"]/textgbn", "0");
- model.makeValue("/root/report/spcreport["+reportRow+"]/tclsnm", "2. Gram Stain(및 기타검사결과)");
- model.makeValue("/root/report/spcreport["+reportRow+"]/reptrslt", "");
- model.makeValue("/root/report/spcreport["+reportRow+"]/reptrslt2", "");
- model.makeValue("/root/report/spcreport["+reportRow+"]/lastreptdt", "");
-
- reportRow++;
-
-
-
- if(rsltRow1 > 1){
- for(var r1 = 1; r1 < rsltRow1 ; r1++){
-
- if(model.getValue("/root/main/TestInfo/getTestInfoCnts["+r1+"]/reptrslt") != ""){
- model.makeValue("/root/report/spcreport["+reportRow+"]/textgbn", "1");
- model.makeValue("/root/report/spcreport["+reportRow+"]/tclsnm",
- model.getValue("/root/main/TestInfo/getTestInfoCnts["+r1+"]/tclsscrnm"));
- model.makeValue("/root/report/spcreport["+reportRow+"]/reptrslt",
- model.getValue("/root/main/TestInfo/getTestInfoCnts["+r1+"]/reptrslt"));
- model.makeValue("/root/report/spcreport["+reportRow+"]/reptrslt2",
- "검사자 : " + model.getValue("/root/main/TestInfo/getTestInfoCnts["+r1+"]/rstnm"));
- model.makeValue("/root/report/spcreport["+reportRow+"]/lastreptdt",
- model.getValue("/root/main/TestInfo/getTestInfoCnts["+r1+"]/lastreptdt"));
-
- reportRow++;
- }
- }
- }
-
- model.makeValue("/root/report/spcreport["+reportRow+"]/textgbn", "0");
- model.makeValue("/root/report/spcreport["+reportRow+"]/tclsnm", "");
- model.makeValue("/root/report/spcreport["+reportRow+"]/reptrslt", "");
- model.makeValue("/root/report/spcreport["+reportRow+"]/reptrslt2", "");
- model.makeValue("/root/report/spcreport["+reportRow+"]/lastreptdt", "");
-
- reportRow++;
-
- model.makeValue("/root/report/spcreport["+reportRow+"]/textgbn", "0");
- model.makeValue("/root/report/spcreport["+reportRow+"]/tclsnm", "3. Remark");
- model.makeValue("/root/report/spcreport["+reportRow+"]/reptrslt", "");
- model.makeValue("/root/report/spcreport["+reportRow+"]/reptrslt2", "");
- model.makeValue("/root/report/spcreport["+reportRow+"]/lastreptdt", "");
-
- reportRow++;
-
- exeReportPreview("RPLMR00200", "XMLSTR");
-
- model.removeNodeset("/root/report/spcreport");
-
- //grd_AntimicInfo.nodeset = "/hidden/Baccd/getAntimicInfo" +vTESTCD + vRow;
-
- //grd_CultrueDivInfo.nodeset = "/root/hidden/Baccd/getBaccd" + vTESTCD + "/getBacList";
-
-
-
- }
-
- function fnchange(){
-
- var vRSTSEQ = grd_CultrueDivInfo.row; //배양분리균 의 선택된 로우를 가져온다.
- var n = grd_CultrueDivInfo.rows-1; //배양분리균 의 최대 로우수를 n 에 담는다.
- if (n == 10) {
- window.alert( "[배양/분리균]은 최대 10개 까지만 추가가 가능합니다.", "결과관리", "48" );
- return;
- } //배양분리균을 10개 가지만 추가할수 있도록 체크
-
- var r = 0; //배양검사의 선택된 로우를 넣기 위한 r 함수 선언
- // 배양검사 정보
- if(model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="0" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="2" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+grd_CultrueTestInfo.row+"]/tclskind") =="3"){
- r = grd_CultrueTestInfo.row;
- }
- else{
- for(i = grd_CultrueTestInfo.row ; i>0 ; i--){
- if(model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="0" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="2" ||
- model.getValue("/root/main/TestInfo/getCultrueTestInfo["+i+"]/tclskind") =="3"){
- r = i;
- i = 0;
- }
- }
- }
-
- if (r < 1) {
- window.alert( "배양검사를 선택해 주십시오", "결과관리", "48");
- return;
- }
- //var r = grd_CultrueTestInfo.row;
- var vBCNO = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r+"]/bcno"); //배양검사의 검체번호
- var vTESTCD = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r+"]/testcd").getTrim(); //배양검사의 검사코드
- var vSPCCD = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r+"]/spccd"); //배양검사의 검체코드
- var vRSLTSEQ = model.getValue("/root/main/TestInfo/getCultrueTestInfo["+r+"]/rsltseq"); //배양검사의 결과순서
- // model.setValue("/root/main/TestInfo/getCultrueTestInfo["+r+"]/baeyangflag", "y"); // 균추가여부 체크
- var vBACCD = model.getvalue("/root/hidden/Baccd/getBaccd"+vTESTCD+"/getBacList["+vRSTSEQ+"]/baccd");
- var vBACSEQNO = model.getValue("/root/hidden/Baccd/getBaccd" +vTESTCD + "/getBacList["+vRSTSEQ+"]/bcno");
- //alert("vBCNO="+vBCNO+", vTCLSCD="+vTCLSCD+", vSPCCD="+vSPCCD);
- // 배양/분리균 노드셋 초기화
- //fSetGridNodeSet("grd_CultrueDivInfo", "/root/main/TestInfo/getCultrueDivInfo", "false");
- //grd_CultrueDivInfo.nodeset = "/root/main/TestInfo/getCultrueDivInfo";
- // 한줄추가
- grd_CultrueDivInfo.addItem();
-
- //model.copyNode("/root/hidden/Baccd/getAntimicInfo" + vTESTCD + "/antibiolist[baccd = '" + vBACCD + "' and bcno = '"+vBCNO+"' and bacseqno = '"+vBACSEQNO+"']",model.makeNode("/root/hidden/Baccd/getAntimicInfo2" + vTESTCD + "/antibiolist[baccd = '" + vBACCD + "' and bcno = '"+vBCNO+"' and bacseqno = '"+vBACSEQNO+"']"));
- //grd_AntimicInfo.nodeset = "/root/hidden/Baccd/getAntimicInfo" + vTESTCD + "/antibiolist[baccd = '" + vBACCD + "' and bcno = '"+vBCNO+"' and bacseqno = '"+vBACSEQNO+"']"
- //grd_AntimicInfo.nodeset = "/root/hidden/Baccd/getAntimicInfo" + vTESTCD + "/antibiolist[baccd = '" + vBACCD + "' and bcno = '"+vBCNO+"' and bacseqno = '"+vBACSEQNO+"']";
- model.setValue( "/root/hidden/changebac" , "1");
- }
-
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,345;" style="font-family:굴림체; font-size:9pt; font-weight:bold; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:145px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">미생물검체별결과관리</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <caption id="caption31" class="tit_2" style="left:5px; top:55px; width:115px; height:13px; vertical-align:middle; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">검체정보</caption>
- <line id="line12" class="line_1" style="x1:0px; y1:70px; x2:725px; y2:70px; "/>
- <caption id="caption32" class="cell_1" style="left:0px; top:75px; width:90px; height:23px; vertical-align:middle; ">접수일시</caption>
- <output id="output3" ref="/root/main/TestInfo/getSpcInfo/spcacptdt" class="output_fix" format="9999-99-99 99:99:99" style="left:93px; top:76px; width:200px; height:19px; "/>
- <caption id="caption33" class="cell_1" style="left:0px; top:99px; width:90px; height:23px; vertical-align:middle; ">검체명</caption>
- <caption id="caption34" class="cell_1" style="left:296px; top:75px; width:226px; height:23px; vertical-align:middle; ">의뢰의사 리마크</caption>
- <caption id="caption35" class="cell_1" style="left:525px; top:75px; width:199px; height:23px; vertical-align:middle; ">투여약물</caption>
- <textarea id="textarea3" ref="/root/main/TestInfo/getSpcInfo/prcpremfact" style="left:296px; top:100px; width:226px; height:67px; "/>
- <textarea id="textarea4" ref="/root/main/TestInfo/getDrugInfo/druginfolist" style="left:525px; top:100px; width:199px; height:67px; "/>
- <output id="output4" ref="/root/main/TestInfo/getSpcInfo/spcscrnnm" class="output_fix" style="left:93px; top:100px; width:200px; height:19px; "/>
- <line id="line13" class="line_2" style="x1:0px; y1:97px; x2:293px; y2:97px; "/>
- <output id="output5" ref="/root/main/TestInfo/getSpcInfo/bcno" class="output_fix" style="left:93px; top:124px; width:200px; height:19px; "/>
- <caption id="caption36" class="cell_1" style="left:0px; top:123px; width:90px; height:23px; vertical-align:middle; ">바코드번호</caption>
- <line id="line14" class="line_2" style="x1:0px; y1:121px; x2:293px; y2:121px; "/>
- <line id="line15" class="line_3" style="x1:0px; y1:170px; x2:725px; y2:170px; "/>
- <line id="line16" class="line_1" style="x1:0px; y1:195px; x2:725px; y2:195px; "/>
- <caption id="caption37" class="tit_2" style="left:5px; top:180px; width:115px; height:13px; vertical-align:middle; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">검사항목</caption>
- <line id="line18" class="line_1" style="x1:0px; y1:365px; x2:725px; y2:365px; "/>
- <caption id="caption38" class="tit_2" style="left:0px; top:350px; width:115px; height:13px; vertical-align:middle; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">배양검사</caption>
- <line id="line19" class="line_1" style="x1:0px; y1:525px; x2:725px; y2:525px; "/>
- <caption id="caption39" class="tit_2" style="left:0px; top:510px; width:95px; height:13px; vertical-align:middle; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">배양/분리균</caption>
- <output id="output6" ref="/root/hidden/curCultureNM" class="output_fix" style="left:100px; top:504px; width:235px; height:19px; "/>
- <line id="line20" class="line_1" style="x1:733px; y1:70px; x2:1193px; y2:70px; "/>
- <caption id="caption41" class="tit_2" style="left:740px; top:53px; width:118px; height:13px; vertical-align:middle; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">항생제</caption>
- <output id="output7" ref="/root/hidden/Antimic" class="output_fix" style="left:805px; top:30px; width:380px; height:19px; "/>
- <select1 id="radio1" ref="/root/hidden/testmtd" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:1015px; top:52px; width:175px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>DISK</label>
- <value>D</value>
- </item>
- <item>
- <label>MIC</label>
- <value>M</value>
- </item>
- <item>
- <label>e-Test</label>
- <value>E</value>
- </item>
- </choices>
- </select1>
- <group id="group4" style="left:0px; top:10px; width:725px; height:35px; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:724px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption20" class="search_name" style="left:15px; top:9px; width:89px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">검색구분 :</caption>
- <select1 id="combo1" ref="/root/hidden/refflag/searchflag" class="combo_search" appearance="minimal" style="left:105px; top:8px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>작업번호</label>
- <value>1</value>
- </item>
- <item>
- <label>바코드번호</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearchFalg();
- ]]>
- </script>
- </select1>
- <input id="ipt_search" ref="/root/hidden/refflag/searchtext" class="input_button" navindex="1" imemode="disabled" inputtype="button" style="left:208px; top:8px; width:137px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fInputKeyup();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fSpcInfoRef();
- ]]>
- </script>
- </input>
- <input id="ipt_testpsn" ref="/root/hidden/refflag/userid" class="input_essential" imemode="disabled" _chartype="upper" style="left:498px; top:9px; width:76px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13"){
-
- model.setvalue("/root/hidden/refflag/userid",ipt_testpsn.currentText);
- model.refresh();
- fUserNMRef();
- ipt_testpsn.selBegin = 0;
- ipt_testpsn.selEnd = ipt_testpsn.currentText.length;
-
- model.setFocus("ipt_search");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <output id="opt_testpsn" ref="/root/main/getUsernm/usernm" class="output_fix" style="left:576px; top:9px; width:82px; height:19px; "/>
- <caption id="caption2" class="tit_2" style="left:428px; top:12px; width:66px; height:13px; ">검사자 :</caption>
- </group>
- <button id="button1" class="btn2_letter4" style="left:660px; top:50px; width:64px; height:14px; ">
- <caption>소견입력</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fCommentSave();
- commentChange();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter5" style="left:583px; top:50px; width:75px; height:14px; ">
- <caption>리스트조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- open("SPLMR90100");
- ]]>
- </script>
- </button>
- <button id="button8" class="btn2_letter7" style="left:480px; top:503px; width:97px; height:19px; ">
- <caption>전일결과복사</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fBFBacRslt();
-
- ]]>
- </script>
- </button>
- <button id="button12" class="btn2_letter3" style="left:579px; top:503px; width:53px; height:19px; ">
- <caption>균보관</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //window.load("균보관팝업.xrw","modeless","균보관팝업","width:300px; height:280;min:hidden;max:hidden;align:center");
- fbackeep();
- ]]>
- </script>
- </button>
- <datagrid id="grd_CultrueTestInfo" nodeset="/root/main/TestInfo/getCultrueTestInfo" backcoloralternate="transparent" caption="^검체명^검사항목명^결과^결과^R^결과일시^중간보고일시^이전결과일시^이전결과^Comment^testcd^spccd^rsltseq^inptrslt^baeyangflag^bcno" colsep="^" colwidth="20, 72, 119, 127, 25, 25, 115, 115, 115, 80, 92, 0, 0, 0, 0, 0, 0, 100" dataheight="23" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" selectionmode="free" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:370px; width:725px; height:120px; border-color:#c0c0c0; ">
- <col checkimage="../../../lis\commonweb\images\chkRPT1.gif" ref="selchk" uncheckimage="../../../lis\commonweb\images\chkRPT0.gif" style="text-align:center; "/>
- <col ref="spcscrnnm"/>
- <col ref="tclsscrnm"/>
- <col ref="bufinptrslt" type="input"/>
- <col ref="multiflag"/>
- <col ref="rsltmark" style="color:#339933; "/>
- <col ref="lastreptdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="mdlreptdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="bflastreptdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="bfreptrslt"/>
- <col ref="comment"/>
- <col ref="testcd"/>
- <col ref="spccd"/>
- <col ref="rsltseq"/>
- <col ref="inptrslt"/>
- <col ref="baeyangflag"/>
- <col ref="bcno"/>
- <col ref="amrmark"/>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fGrd_CultrueTestInfoKeyPress();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_CultrueTestInfo.isCell(event.target) && grd_CultrueTestInfo.row >= grd_CultrueTestInfo.fixedRows ){
- fOnclick_grd_CultrueTestInfo();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fOnMouseDown_grd_Cultrue();
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseout">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_CultrueDivInfo" nodeset="/root/main/TestInfo/getCultrueDivInfo" backcoloralternate="transparent" caption="증식정도^배양/분리균명^배양/분리균명^균결과^감염정보^검사방법^bcno^baccd^rsltseq^bacseqno^testcd^spccd^new^infcinfo^infcinfo2^infcrefantbiocd^infcrefchar^gyjbyn^baeyangflag" colsep="^" colwidth="100, 62, 300, 96, 62, 54, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" selectionmode="free" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:530px; width:725px; height:197px; border-color:#c0c0c0; ">
- <col ref="growkind" type="input" style="left:20px; top:23px; width:200px; height:23px; ">
- <choices/>
- </col>
- <col ref="tempbacnm" type="input"/>
- <col imemode="disabled" ref="bacscrnnm" type="input" _chartype="upper"/>
- <col ref="bacrsltstat" type="combo">
- <choices>
- <item>
- <label>Direct 결과</label>
- <value>0</value>
- </item>
- <item>
- <label>항생제 동정 중</label>
- <value>1</value>
- </item>
- <item>
- <label>
- <![CDATA[ID & 항생제 동정 중]]>
- </label>
- <value>2</value>
- </item>
- <item>
- <label>배양 중</label>
- <value>3</value>
- </item>
- <item>
- <label>완료</label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <col ref="infcinfo"/>
- <col ref="testkindcd"/>
- <col ref="bcno"/>
- <col ref="baccd"/>
- <col ref="rsltseq"/>
- <col ref="bacseqno"/>
- <col ref="testcd"/>
- <col ref="spccd"/>
- <col ref="new"/>
- <col ref="infcinfo"/>
- <col ref="infcinfo2"/>
- <col ref="infcrefantbiocd"/>
- <col ref="infcrefchar"/>
- <col ref="gyjbyn"/>
- <col ref="baeyangflag"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fOnclick_grd_CultrueDivInfo();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- fGrd_CultrueDivInfoKeyDown();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fbacmnue();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_AntimicInfo" backcoloralternate="transparent" caption="항생제^결과^판정^코드^배양균^testcd^이전결과^P^D" colsep="^" colwidth="181, 80, 60, 0, 0, 0, 60,30,30" dataheight="23" ellipsis="true" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" selectionmode="free" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:735px; top:80px; width:460px; height:647px; text-align:center; border-color:#c0c0c0; ">
- <col ref="antibioscrnnm" style="left:20px; top:23px; width:200px; height:23px; text-align:left; "/>
- <col ref="antibiorslt" type="input" style="text-align:left; "/>
- <col imemode="disabled" ref="antibioref" type="input" _chartype="upper"/>
- <col ref="bacseqno"/>
- <col ref="bcno"/>
- <col ref="testcd"/>
- <col ref="bfantibioref"/>
- <col ref="panicmark"/>
- <col ref="deltamark"/>
- <col ref="antibiocd" visibility="hidden"/>
- <col ref="bfspcnm" visibility="hidden"/>
- <col ref="bfantibiorsltdt" visibility="hidden"/>
- <col ref="baccd" visibility="hidden"/>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- //alert("onkeypress");
- // fGrd_AntimicInfoKeyPress();
-
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- //alert("onendedit");
- fGrd_AntimicInfoKeyPress2();
-
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_Cultrue" nodeset="/root/init/LB0202" visibility="hidden" backcoloralternate="transparent" caption="균코드^균명^균속" colsep="^" colwidth="60, 220, 62" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" style="left:737px; top:395px; width:361px; height:245px; ">
- <col ref="cd"/>
- <col ref="nm"/>
- <col ref="etc01"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- Ondbclick_grdCultrue();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- fGrd_CultrueKeyDown();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_TestInfoCnts" nodeset="/root/main/TestInfo/getTestInfoCnts" backcoloralternate="transparent" caption="^ ^검사항목명^결과^결과^ ^S^이전결과^이전결과일시^Comment^level^testcd^spccd^rsltseq^inptrslt" colsep="^" colwidth="21, 20, 170, 61, 102, 20, 27, 120, 125, 100, 1, 0, 0, 0, 0, 100" dataheight="23" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" selectionmode="free" tooltip="true" navindex="2" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:200px; width:725px; height:140px; border-color:#c0c0c0; ">
- <col checkimage="../../../lis\commonweb\images\chkRPT1.gif" ref="exp" uncheckimage="../../../lis\commonweb\images\chkRPT0.gif"/>
- <col ref="selchk" style="text-align:center; "/>
- <col ref="tclsscrnm"/>
- <col ref="bufinptrslt" type="input"/>
- <col ref="reptrslt"/>
- <col ref="multiflag"/>
- <col ref="rsltmark" style="color:#339966; text-align:center; "/>
- <col ref="bfreptrslt"/>
- <col ref="bflastreptdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="comment"/>
- <col ref="level"/>
- <col ref="testcd"/>
- <col ref="spccd"/>
- <col ref="rsltseq"/>
- <col ref="inptrslt"/>
- <col ref="bcno"/>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fGrd_TestInfoKeyPress();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_TestInfoCnts.isCell(event.target) && grd_TestInfoCnts.row >= grd_TestInfoCnts.fixedRows ){
- fOnclick_grd_TestInfoCnts();
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fMouseDown_grd_TestInfoCnts();
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseout">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- fGrd_TestInfoCnts_KeyDown();
- ]]>
- </script>
- </datagrid>
- <button id="btnRowInc" class="btn2_letter2" style="left:635px; top:503px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_CultrueDivInfo.col == "3"){
-
- model.setValue( "/root/hidden/changebac" , "2");
- model.refresh();
- }
- fnRowInc_Click();
-
- ]]>
- </script>
- </button>
- <button id="btnRowDel" class="btn2_letter2" style="left:680px; top:503px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fnRowDel_Click();
- ]]>
- </script>
- </button>
- <button id="btnAddHangGyunJe" class="btn2_letter2" style="left:805px; top:50px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAddAntimic(false);
- ]]>
- </script>
- </button>
- <caption id="caption1" class="cell_1" style="left:0px; top:147px; width:90px; height:23px; vertical-align:middle; ">작업번호</caption>
- <output id="output1" ref="/root/main/TestInfo/getSpcInfo/workno2" class="output_fix" style="left:93px; top:148px; width:200px; height:19px; "/>
- <line id="line1" class="line_2" style="x1:0px; y1:145px; x2:293px; y2:145px; "/>
- <button id="button6" class="btn2_letter2" style="left:850px; top:50px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fdelAntimic("Select");
- ]]>
- </script>
- </button>
- <select1 id="radio2" ref="/root/hidden/bacflagcd" visibility="hidden" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:740px; top:375px; width:195px; height:18px; border-style:none; ">
- <choices>
- <item>
- <label>균코드 조회</label>
- <value>1</value>
- </item>
- <item>
- <label>균명 조회</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- bacflagcdsend();
- ]]>
- </script>
- </select1>
- <button id="button7" class="btn2_letter4" style="left:895px; top:50px; width:64px; height:19px; ">
- <caption>전체삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fdelAntimic("All");
- ]]>
- </script>
- </button>
- <caption id="caption3" class="tit_2" style="left:740px; top:32px; width:118px; height:13px; vertical-align:middle; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">균명</caption>
- <button id="button9" class="btn2_letter2" visibility="hidden" style="left:1038px; top:374px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fCodeHidden("grd_Cultrue");
- radio2.visible = false;
- button9.visible = false;
- model.setValue("/root/hidden/bacflagcd" , "1");
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter8" style="left:613px; top:345px; width:108px; height:19px; ">
- <caption>미생물추가처방</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/hidden/inparam/bcno", model.getValue("/root/main/TestInfo/getSpcInfo/bcno"))
- model.setValue("/root/hidden/inparam/pid", model.getValue("/root/main/TestInfo/getSpcInfo/pid"))
-
- modal("SPLMR90900","","","","","/root/hidden/inparam","/root/hidden/inparam");
-
- ]]>
- </script>
- </button>
- <button id="button13" class="btn2_letter4" visibility="hidden" style="left:365px; top:45px; width:100px; height:19px; ">
- <caption>결과조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- open("SMLNR00310");
- ]]>
- </script>
- </button>
- <button id="button14" class="btn2_letter4" visibility="hidden" style="left:450px; top:45px; width:85px; height:19px; ">
- <caption>그람음성율</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- open("SMLMS00310");
- ]]>
- </script>
- </button>
- <textarea id="textarea2" ref="/root/main/TestInfo/getSpcInfo/testcont" disabled="false" style="left:80px; top:175px; width:645px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fCMT_SetEditFlag();
- //fSoGyeonJeoJang(1);
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- fSoGyeonJeoJang(1);
- ]]>
- </script>
- </textarea>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_rsltsave" class="btn4_letter4" style="left:763px; top:3px; width:80px; height:22px; border-color:#339966; border-width:2px; ">
- <caption>결과저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fInsRsltSave();
- ]]>
- </script>
- </button>
- <button id="btn_MdlRept" class="btn4_letter6" style="left:845px; top:3px; width:104px; height:22px; ">
- <caption>중간예비보고</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetMdlRept();
- ]]>
- </script>
- </button>
- <button id="btn_LstRept" class="btn4_letter5" visibility="visible" style="left:1033px; top:3px; width:92px; height:22px; ">
- <caption>책임자확인</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetLstRept2();
- ]]>
- </script>
- </button>
- <button id="btn_cle" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetClear();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter4" visibility="visible" style="left:951px; top:3px; width:80px; height:22px; ">
- <caption>최종보고</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetLstRept();
- ]]>
- </script>
- </button>
- <button id="button10" class="btn4_letter2" style="left:705px; top:3px; width:56px; height:22px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fInsJeaGeom();
- ]]>
- </script>
- </button>
- <button id="button20" class="btn3_letter8" style="left:58px; top:3px; width:128px; height:22px; ">
- <caption>PCR/방사선 결과</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- getPcrandReadRslt();
-
- ]]>
- </script>
- </button>
- <button id="button4" class="btn3_letter8" style="left:188px; top:3px; width:128px; height:22px; ">
- <caption>입원환자전실조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- modal("SPLLP90400");
- ]]>
- </script>
- </button>
- <button id="button11" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- getPrintData();
- ]]>
- </script>
- </button>
- </group>
- <script type="javascript" ev:event="onmenu">
- <![CDATA[
- var popupParam = event.description;
- fOnmenu(popupParam);
- ]]>
- </script>
- </xhtml:body>
- </xhtml:html>
|